2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.638 2006/09/21 15:54:37 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_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-denyop Deny Operation overlay no|yes|mod [no]
1053 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1054 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1055 --enable-lastmod Last Modification overlay no|yes|mod [no]
1056 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1057 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1058 --enable-refint Referential Integrity overlay no|yes|mod [no]
1059 --enable-retcode Return Code testing overlay no|yes|mod [no]
1060 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1061 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1062 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1063 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1064 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1065 --enable-valsort Value Sorting overlay no|yes|mod [no]
1067 SLURPD (Replication Daemon) Options:
1068 --enable-slurpd enable building slurpd [auto]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-threads with threads [auto]
1088 --with-tls with TLS/SSL support [auto]
1089 --with-yielding-select with implicitly yielding select [auto]
1090 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1091 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1092 --with-pic try to use only PIC/non-PIC objects [default=use
1095 include additional configurations [automatic]
1097 See INSTALL file for further details.
1099 Some influential environment variables:
1100 CC C compiler command
1101 CFLAGS C compiler flags
1102 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1103 nonstandard directory <lib dir>
1104 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105 headers in a nonstandard directory <include dir>
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1114 if test "$ac_init_help" = "recursive"; then
1115 # If there are subdirs, report their specific --help.
1117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118 test -d $ac_dir || continue
1121 if test "$ac_dir" != .; then
1122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123 # A "../" for each directory in $ac_dir_suffix.
1124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 ac_dir_suffix= ac_top_builddir=
1130 .) # No --srcdir option. We are building in place.
1132 if test -z "$ac_top_builddir"; then
1135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137 [\\/]* | ?:[\\/]* ) # Absolute path.
1138 ac_srcdir=$srcdir$ac_dir_suffix;
1139 ac_top_srcdir=$srcdir ;;
1141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 # Do not use `cd foo && pwd` to compute absolute paths, because
1146 # the directories may not exist.
1148 .) ac_abs_builddir="$ac_dir";;
1151 .) ac_abs_builddir=`pwd`;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156 case $ac_abs_builddir in
1157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 case ${ac_top_builddir}. in
1160 .) ac_abs_top_builddir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165 case $ac_abs_builddir in
1166 .) ac_abs_srcdir=$ac_srcdir;;
1169 .) ac_abs_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174 case $ac_abs_builddir in
1175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 case $ac_top_srcdir in
1178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1185 # Check for guested configure; otherwise get Cygnus style configure.
1186 if test -f $ac_srcdir/configure.gnu; then
1188 $SHELL $ac_srcdir/configure.gnu --help=recursive
1189 elif test -f $ac_srcdir/configure; then
1191 $SHELL $ac_srcdir/configure --help=recursive
1192 elif test -f $ac_srcdir/configure.ac ||
1193 test -f $ac_srcdir/configure.in; then
1195 $ac_configure --help
1197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203 test -n "$ac_init_help" && exit 0
1204 if $ac_init_version; then
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1211 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1212 Restrictions apply, see COPYRIGHT and LICENSE files.
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1221 It was created by $as_me, which was
1222 generated by GNU Autoconf 2.59. Invocation command line was
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1242 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1243 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1246 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1247 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1248 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 test -z "$as_dir" && as_dir=.
1257 echo "PATH: $as_dir"
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1281 ac_must_keep_next=false
1287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298 if test $ac_must_keep_next = true; then
1299 ac_must_keep_next=false # Got value, back to normal.
1302 *=* | --config-cache | -C | -disable-* | --disable-* \
1303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305 | -with-* | --with-* | -without-* | --without-* | --x)
1306 case "$ac_configure_args0 " in
1307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310 -* ) ac_must_keep_next=true ;;
1313 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314 # Get rid of the leading space.
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log. We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329 # Save into config.log some information that might help in debugging.
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1339 # The following way of writing the cache mishandles newlines in values,
1342 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1362 for ac_var in $ac_subst_vars
1364 eval ac_val=$`echo $ac_var`
1365 echo "$ac_var='"'"'$ac_val'"'"'"
1369 if test -n "$ac_subst_files"; then
1376 for ac_var in $ac_subst_files
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1384 if test -s confdefs.h; then
1391 sed "/^$/d" confdefs.h | sort
1394 test "$ac_signal" != 0 &&
1395 echo "$as_me: caught signal $ac_signal"
1396 echo "$as_me: exit $exit_status"
1398 rm -f core *.core &&
1399 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402 for ac_signal in 1 2 13 15; do
1403 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 # Predefined preprocessor variables.
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442 if test "x$prefix" != xNONE; then
1443 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448 for ac_site_file in $CONFIG_SITE; do
1449 if test -r "$ac_site_file"; then
1450 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452 sed 's/^/| /' "$ac_site_file" >&5
1458 # Check that the precious variables saved in the cache have kept the same
1460 ac_cache_corrupted=false
1461 for ac_var in `(set) 2>&1 |
1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1480 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1482 echo "$as_me: former value: $ac_old_val" >&2;}
1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1484 echo "$as_me: current value: $ac_new_val" >&2;}
1485 ac_cache_corrupted=:
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1510 ac_cpp='$CPP $CPPFLAGS'
1511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558 for ac_dir in build $srcdir/build; do
1559 if test -f $ac_dir/install-sh; then
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1563 elif test -f $ac_dir/install.sh; then
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1567 elif test -f $ac_dir/shtool; then
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1573 if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576 { (exit 1); exit 1; }; }
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586 { (exit 1); exit 1; }; }
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590 ac_cv_shtool="$ac_aux_dir/shtool"
1592 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594 { (exit 1); exit 1; }; }
1597 SHTOOL="$ac_cv_shtool"
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603 if test -d $ac_aux_dir/CVS; then
1604 OPENLDAP_CVS="(from CVS sources) "
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1690 program_prefix=${target_alias}-
1692 am__api_version="1.9"
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 # Account for people who put trailing slashes in PATH elements.
1719 ./ | .// | /cC/* | \
1720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724 # OSF1 and SCO ODT 3.0 have their own names for install.
1725 # Don't use installbsd from OSF since it installs stuff as root
1727 for ac_prog in ginstall scoinst install; do
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730 if test $ac_prog = install &&
1731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # AIX install. It has an incompatible calling convention.
1734 elif test $ac_prog = install &&
1735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # program-specific install script used by HP pwplus--don't use.
1739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1751 if test "${ac_cv_path_install+set}" = set; then
1752 INSTALL=$ac_cv_path_install
1754 # As a last resort, use the slow shell script. We don't cache a
1755 # path for INSTALL within a source directory, because that will
1756 # break other packages using the cache if that directory is
1757 # removed, or if the path is relative.
1758 INSTALL=$ac_install_sh
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments. Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1783 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784 if test "$*" = "X"; then
1786 set X `ls -t $srcdir/configure conftest.file`
1789 if test "$*" != "X $srcdir/configure conftest.file" \
1790 && test "$*" != "X conftest.file $srcdir/configure"; then
1792 # If neither matched, then we have a broken ls. This can happen
1793 # if, for instance, CONFIG_SHELL is bash and it inherits a
1794 # broken ls alias from the environment. This has actually
1795 # happened. Such a system could not be considered "sane".
1796 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&2;}
1800 { (exit 1); exit 1; }; }
1803 test "$2" = conftest.file
1809 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $. echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836 am_missing_run="$MISSING --run "
1839 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844 # We used to keeping the `.' as first argument, in order to
1845 # allow $(mkdir_p) to be used without argument. As in
1846 # $(mkdir_p) $(somedir)
1847 # where $(somedir) is conditionally defined. However this is wrong
1849 # 1. if the package is installed by a user who cannot write `.'
1850 # make install will fail,
1851 # 2. the above comment should most certainly read
1852 # $(mkdir_p) $(DESTDIR)$(somedir)
1853 # so it does not work when $(somedir) is undefined and
1854 # $(DESTDIR) is not.
1855 # To support the latter case, we have to write
1856 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857 # so the `.' trick is pointless.
1858 mkdir_p='mkdir -p --'
1860 # On NextStep and OpenStep, the `mkdir' command does not
1861 # recognize any option. It will interpret all options as
1862 # directories to create, and then abort because `.' already
1864 for d in ./-p ./--version;
1866 test -d $d && rmdir $d
1868 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869 if test -f "$ac_aux_dir/mkinstalldirs"; then
1870 mkdir_p='$(mkinstalldirs)'
1872 mkdir_p='$(install_sh) -d'
1876 for ac_prog in gawk mawk nawk awk
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$AWK"; then
1886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_AWK="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$AWK"; then
1906 echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$AWK" && break
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.make <<\_ACEOF
1924 @echo 'ac_maketemp="$(MAKE)"'
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929 eval ac_cv_prog_make_${ac_make}_set=yes
1931 eval ac_cv_prog_make_${ac_make}_set=no
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936 echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 SET_MAKE="MAKE=${MAKE-make}"
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1952 rmdir .tst 2>/dev/null
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956 test -f $srcdir/config.status; then
1957 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964 if (cygpath --version) >/dev/null 2>/dev/null; then
1965 CYGPATH_W='cygpath -w'
1972 # Define the identity of the package.
1977 # Some tools Automake needs.
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'. However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000 if test -n "$ac_tool_prefix"; then
2001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$STRIP"; then
2009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029 echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2037 if test -z "$ac_cv_prog_STRIP"; then
2039 # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$ac_ct_STRIP"; then
2047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_STRIP="strip"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2077 STRIP="$ac_cv_prog_STRIP"
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083 # We need awk for the "check" target. The system "awk" is bad on
2085 # Always define AMTAR for backward compatibility.
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2140 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2142 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2151 ldap_subdir="/openldap"
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156 withval="$with_subdir"
2163 ldap_subdir="$withval"
2166 ldap_subdir="/$withval"
2172 # OpenLDAP --enable-debug
2174 # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176 enableval="$enable_debug"
2179 for ol_val in no yes traditional ; do
2180 if test "$enableval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187 { (exit 1); exit 1; }; }
2189 ol_enable_debug="$ol_arg"
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2197 # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199 enableval="$enable_dynamic"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210 { (exit 1); exit 1; }; }
2212 ol_enable_dynamic="$ol_arg"
2215 ol_enable_dynamic=no
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2220 # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222 enableval="$enable_syslog"
2225 for ol_val in auto yes no ; do
2226 if test "$enableval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233 { (exit 1); exit 1; }; }
2235 ol_enable_syslog="$ol_arg"
2238 ol_enable_syslog=auto
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2243 # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245 enableval="$enable_proctitle"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256 { (exit 1); exit 1; }; }
2258 ol_enable_proctitle="$ol_arg"
2261 ol_enable_proctitle=yes
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2268 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270 enableval="$enable_ipv6"
2273 for ol_val in auto yes no ; do
2274 if test "$enableval" = "$ol_val" ; then
2278 if test "$ol_arg" = "invalid" ; then
2279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281 { (exit 1); exit 1; }; }
2283 ol_enable_ipv6="$ol_arg"
2289 # OpenLDAP --enable-local
2291 # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293 enableval="$enable_local"
2296 for ol_val in auto yes no ; do
2297 if test "$enableval" = "$ol_val" ; then
2301 if test "$ol_arg" = "invalid" ; then
2302 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304 { (exit 1); exit 1; }; }
2306 ol_enable_local="$ol_arg"
2309 ol_enable_local=auto
2311 # end --enable-local
2313 # OpenLDAP --with-cyrus_sasl
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317 withval="$with_cyrus_sasl"
2320 for ol_val in auto yes no ; do
2321 if test "$withval" = "$ol_val" ; then
2325 if test "$ol_arg" = "invalid" ; then
2326 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328 { (exit 1); exit 1; }; }
2330 ol_with_cyrus_sasl="$ol_arg"
2333 ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2336 # OpenLDAP --with-fetch
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340 withval="$with_fetch"
2343 for ol_val in auto yes no ; do
2344 if test "$withval" = "$ol_val" ; then
2348 if test "$ol_arg" = "invalid" ; then
2349 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351 { (exit 1); exit 1; }; }
2353 ol_with_fetch="$ol_arg"
2356 ol_with_fetch="auto"
2357 fi; # end --with-fetch
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364 withval="$with_threads"
2367 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2368 if test "$withval" = "$ol_val" ; then
2372 if test "$ol_arg" = "invalid" ; then
2373 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375 { (exit 1); exit 1; }; }
2377 ol_with_threads="$ol_arg"
2380 ol_with_threads="auto"
2381 fi; # end --with-threads
2383 # OpenLDAP --with-tls
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2390 for ol_val in auto openssl yes no ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398 { (exit 1); exit 1; }; }
2400 ol_with_tls="$ol_arg"
2404 fi; # end --with-tls
2406 # OpenLDAP --with-yielding_select
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410 withval="$with_yielding_select"
2413 for ol_val in auto yes no manual ; do
2414 if test "$withval" = "$ol_val" ; then
2418 if test "$ol_arg" = "invalid" ; then
2419 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421 { (exit 1); exit 1; }; }
2423 ol_with_yielding_select="$ol_arg"
2426 ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2429 # OpenLDAP --with-mp
2431 # Check whether --with-mp or --without-mp was given.
2432 if test "${with_mp+set}" = set; then
2436 for ol_val in auto longlong long bignum gmp yes no ; do
2437 if test "$withval" = "$ol_val" ; then
2441 if test "$ol_arg" = "invalid" ; then
2442 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2443 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2444 { (exit 1); exit 1; }; }
2446 ol_with_mp="$ol_arg"
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456 enableval="$enable_xxslapdoptions"
2459 # OpenLDAP --enable-slapd
2461 # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463 enableval="$enable_slapd"
2466 for ol_val in auto yes no ; do
2467 if test "$enableval" = "$ol_val" ; then
2471 if test "$ol_arg" = "invalid" ; then
2472 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474 { (exit 1); exit 1; }; }
2476 ol_enable_slapd="$ol_arg"
2481 # end --enable-slapd
2482 # OpenLDAP --enable-dynacl
2484 # Check whether --enable-dynacl or --disable-dynacl was given.
2485 if test "${enable_dynacl+set}" = set; then
2486 enableval="$enable_dynacl"
2489 for ol_val in auto yes no ; do
2490 if test "$enableval" = "$ol_val" ; then
2494 if test "$ol_arg" = "invalid" ; then
2495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2497 { (exit 1); exit 1; }; }
2499 ol_enable_dynacl="$ol_arg"
2504 # end --enable-dynacl
2505 # OpenLDAP --enable-aci
2507 # Check whether --enable-aci or --disable-aci was given.
2508 if test "${enable_aci+set}" = set; then
2509 enableval="$enable_aci"
2512 for ol_val in no yes mod ; do
2513 if test "$enableval" = "$ol_val" ; then
2517 if test "$ol_arg" = "invalid" ; then
2518 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2520 { (exit 1); exit 1; }; }
2522 ol_enable_aci="$ol_arg"
2528 # OpenLDAP --enable-cleartext
2530 # Check whether --enable-cleartext or --disable-cleartext was given.
2531 if test "${enable_cleartext+set}" = set; then
2532 enableval="$enable_cleartext"
2535 for ol_val in auto yes no ; do
2536 if test "$enableval" = "$ol_val" ; then
2540 if test "$ol_arg" = "invalid" ; then
2541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2543 { (exit 1); exit 1; }; }
2545 ol_enable_cleartext="$ol_arg"
2548 ol_enable_cleartext=yes
2550 # end --enable-cleartext
2551 # OpenLDAP --enable-crypt
2553 # Check whether --enable-crypt or --disable-crypt was given.
2554 if test "${enable_crypt+set}" = set; then
2555 enableval="$enable_crypt"
2558 for ol_val in auto yes no ; do
2559 if test "$enableval" = "$ol_val" ; then
2563 if test "$ol_arg" = "invalid" ; then
2564 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2566 { (exit 1); exit 1; }; }
2568 ol_enable_crypt="$ol_arg"
2573 # end --enable-crypt
2574 # OpenLDAP --enable-lmpasswd
2576 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2577 if test "${enable_lmpasswd+set}" = set; then
2578 enableval="$enable_lmpasswd"
2581 for ol_val in auto yes no ; do
2582 if test "$enableval" = "$ol_val" ; then
2586 if test "$ol_arg" = "invalid" ; then
2587 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2589 { (exit 1); exit 1; }; }
2591 ol_enable_lmpasswd="$ol_arg"
2594 ol_enable_lmpasswd=no
2596 # end --enable-lmpasswd
2597 # OpenLDAP --enable-spasswd
2599 # Check whether --enable-spasswd or --disable-spasswd was given.
2600 if test "${enable_spasswd+set}" = set; then
2601 enableval="$enable_spasswd"
2604 for ol_val in auto yes no ; do
2605 if test "$enableval" = "$ol_val" ; then
2609 if test "$ol_arg" = "invalid" ; then
2610 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2612 { (exit 1); exit 1; }; }
2614 ol_enable_spasswd="$ol_arg"
2617 ol_enable_spasswd=no
2619 # end --enable-spasswd
2620 # OpenLDAP --enable-modules
2622 # Check whether --enable-modules or --disable-modules was given.
2623 if test "${enable_modules+set}" = set; then
2624 enableval="$enable_modules"
2627 for ol_val in auto yes no ; do
2628 if test "$enableval" = "$ol_val" ; then
2632 if test "$ol_arg" = "invalid" ; then
2633 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2635 { (exit 1); exit 1; }; }
2637 ol_enable_modules="$ol_arg"
2640 ol_enable_modules=no
2642 # end --enable-modules
2643 # OpenLDAP --enable-rewrite
2645 # Check whether --enable-rewrite or --disable-rewrite was given.
2646 if test "${enable_rewrite+set}" = set; then
2647 enableval="$enable_rewrite"
2650 for ol_val in auto yes no ; do
2651 if test "$enableval" = "$ol_val" ; then
2655 if test "$ol_arg" = "invalid" ; then
2656 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_rewrite="$ol_arg"
2663 ol_enable_rewrite=auto
2665 # end --enable-rewrite
2666 # OpenLDAP --enable-rlookups
2668 # Check whether --enable-rlookups or --disable-rlookups was given.
2669 if test "${enable_rlookups+set}" = set; then
2670 enableval="$enable_rlookups"
2673 for ol_val in auto yes no ; do
2674 if test "$enableval" = "$ol_val" ; then
2678 if test "$ol_arg" = "invalid" ; then
2679 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_rlookups="$ol_arg"
2686 ol_enable_rlookups=no
2688 # end --enable-rlookups
2689 # OpenLDAP --enable-slapi
2691 # Check whether --enable-slapi or --disable-slapi was given.
2692 if test "${enable_slapi+set}" = set; then
2693 enableval="$enable_slapi"
2696 for ol_val in auto yes no ; do
2697 if test "$enableval" = "$ol_val" ; then
2701 if test "$ol_arg" = "invalid" ; then
2702 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2704 { (exit 1); exit 1; }; }
2706 ol_enable_slapi="$ol_arg"
2711 # end --enable-slapi
2712 # OpenLDAP --enable-slp
2714 # Check whether --enable-slp or --disable-slp was given.
2715 if test "${enable_slp+set}" = set; then
2716 enableval="$enable_slp"
2719 for ol_val in auto yes no ; do
2720 if test "$enableval" = "$ol_val" ; then
2724 if test "$ol_arg" = "invalid" ; then
2725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2727 { (exit 1); exit 1; }; }
2729 ol_enable_slp="$ol_arg"
2735 # OpenLDAP --enable-wrappers
2737 # Check whether --enable-wrappers or --disable-wrappers was given.
2738 if test "${enable_wrappers+set}" = set; then
2739 enableval="$enable_wrappers"
2742 for ol_val in auto yes no ; do
2743 if test "$enableval" = "$ol_val" ; then
2747 if test "$ol_arg" = "invalid" ; then
2748 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2749 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2750 { (exit 1); exit 1; }; }
2752 ol_enable_wrappers="$ol_arg"
2755 ol_enable_wrappers=no
2757 # end --enable-wrappers
2772 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2773 if test "${enable_xxslapbackends+set}" = set; then
2774 enableval="$enable_xxslapbackends"
2778 # OpenLDAP --enable-backends
2780 # Check whether --enable-backends or --disable-backends was given.
2781 if test "${enable_backends+set}" = set; then
2782 enableval="$enable_backends"
2785 for ol_val in no yes mod ; do
2786 if test "$enableval" = "$ol_val" ; then
2790 if test "$ol_arg" = "invalid" ; then
2791 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2793 { (exit 1); exit 1; }; }
2795 ol_enable_backends="$ol_arg"
2798 # end --enable-backends
2799 # OpenLDAP --enable-bdb
2801 # Check whether --enable-bdb or --disable-bdb was given.
2802 if test "${enable_bdb+set}" = set; then
2803 enableval="$enable_bdb"
2806 for ol_val in no yes mod ; do
2807 if test "$enableval" = "$ol_val" ; then
2811 if test "$ol_arg" = "invalid" ; then
2812 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2813 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2814 { (exit 1); exit 1; }; }
2816 ol_enable_bdb="$ol_arg"
2819 ol_enable_bdb=${ol_enable_backends:-yes}
2822 # OpenLDAP --enable-dnssrv
2824 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2825 if test "${enable_dnssrv+set}" = set; then
2826 enableval="$enable_dnssrv"
2829 for ol_val in no yes mod ; do
2830 if test "$enableval" = "$ol_val" ; then
2834 if test "$ol_arg" = "invalid" ; then
2835 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2836 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2837 { (exit 1); exit 1; }; }
2839 ol_enable_dnssrv="$ol_arg"
2842 ol_enable_dnssrv=${ol_enable_backends:-no}
2844 # end --enable-dnssrv
2845 # OpenLDAP --enable-hdb
2847 # Check whether --enable-hdb or --disable-hdb was given.
2848 if test "${enable_hdb+set}" = set; then
2849 enableval="$enable_hdb"
2852 for ol_val in no yes mod ; do
2853 if test "$enableval" = "$ol_val" ; then
2857 if test "$ol_arg" = "invalid" ; then
2858 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2859 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2860 { (exit 1); exit 1; }; }
2862 ol_enable_hdb="$ol_arg"
2865 ol_enable_hdb=${ol_enable_backends:-yes}
2868 # OpenLDAP --enable-ldap
2870 # Check whether --enable-ldap or --disable-ldap was given.
2871 if test "${enable_ldap+set}" = set; then
2872 enableval="$enable_ldap"
2875 for ol_val in no yes mod ; do
2876 if test "$enableval" = "$ol_val" ; then
2880 if test "$ol_arg" = "invalid" ; then
2881 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2882 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2883 { (exit 1); exit 1; }; }
2885 ol_enable_ldap="$ol_arg"
2888 ol_enable_ldap=${ol_enable_backends:-no}
2891 # OpenLDAP --enable-meta
2893 # Check whether --enable-meta or --disable-meta was given.
2894 if test "${enable_meta+set}" = set; then
2895 enableval="$enable_meta"
2898 for ol_val in no yes mod ; do
2899 if test "$enableval" = "$ol_val" ; then
2903 if test "$ol_arg" = "invalid" ; then
2904 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2905 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2906 { (exit 1); exit 1; }; }
2908 ol_enable_meta="$ol_arg"
2911 ol_enable_meta=${ol_enable_backends:-no}
2914 # OpenLDAP --enable-monitor
2916 # Check whether --enable-monitor or --disable-monitor was given.
2917 if test "${enable_monitor+set}" = set; then
2918 enableval="$enable_monitor"
2921 for ol_val in no yes mod ; do
2922 if test "$enableval" = "$ol_val" ; then
2926 if test "$ol_arg" = "invalid" ; then
2927 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2928 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2929 { (exit 1); exit 1; }; }
2931 ol_enable_monitor="$ol_arg"
2934 ol_enable_monitor=${ol_enable_backends:-yes}
2936 # end --enable-monitor
2937 # OpenLDAP --enable-null
2939 # Check whether --enable-null or --disable-null was given.
2940 if test "${enable_null+set}" = set; then
2941 enableval="$enable_null"
2944 for ol_val in no yes mod ; do
2945 if test "$enableval" = "$ol_val" ; then
2949 if test "$ol_arg" = "invalid" ; then
2950 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2951 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2952 { (exit 1); exit 1; }; }
2954 ol_enable_null="$ol_arg"
2957 ol_enable_null=${ol_enable_backends:-no}
2960 # OpenLDAP --enable-passwd
2962 # Check whether --enable-passwd or --disable-passwd was given.
2963 if test "${enable_passwd+set}" = set; then
2964 enableval="$enable_passwd"
2967 for ol_val in no yes mod ; do
2968 if test "$enableval" = "$ol_val" ; then
2972 if test "$ol_arg" = "invalid" ; then
2973 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2975 { (exit 1); exit 1; }; }
2977 ol_enable_passwd="$ol_arg"
2980 ol_enable_passwd=${ol_enable_backends:-no}
2982 # end --enable-passwd
2983 # OpenLDAP --enable-perl
2985 # Check whether --enable-perl or --disable-perl was given.
2986 if test "${enable_perl+set}" = set; then
2987 enableval="$enable_perl"
2990 for ol_val in no yes mod ; do
2991 if test "$enableval" = "$ol_val" ; then
2995 if test "$ol_arg" = "invalid" ; then
2996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2998 { (exit 1); exit 1; }; }
3000 ol_enable_perl="$ol_arg"
3003 ol_enable_perl=${ol_enable_backends:-no}
3006 # OpenLDAP --enable-relay
3008 # Check whether --enable-relay or --disable-relay was given.
3009 if test "${enable_relay+set}" = set; then
3010 enableval="$enable_relay"
3013 for ol_val in no yes mod ; do
3014 if test "$enableval" = "$ol_val" ; then
3018 if test "$ol_arg" = "invalid" ; then
3019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3021 { (exit 1); exit 1; }; }
3023 ol_enable_relay="$ol_arg"
3026 ol_enable_relay=${ol_enable_backends:-yes}
3028 # end --enable-relay
3029 # OpenLDAP --enable-shell
3031 # Check whether --enable-shell or --disable-shell was given.
3032 if test "${enable_shell+set}" = set; then
3033 enableval="$enable_shell"
3036 for ol_val in no yes mod ; do
3037 if test "$enableval" = "$ol_val" ; then
3041 if test "$ol_arg" = "invalid" ; then
3042 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3044 { (exit 1); exit 1; }; }
3046 ol_enable_shell="$ol_arg"
3049 ol_enable_shell=${ol_enable_backends:-no}
3051 # end --enable-shell
3052 # OpenLDAP --enable-sql
3054 # Check whether --enable-sql or --disable-sql was given.
3055 if test "${enable_sql+set}" = set; then
3056 enableval="$enable_sql"
3059 for ol_val in no yes mod ; do
3060 if test "$enableval" = "$ol_val" ; then
3064 if test "$ol_arg" = "invalid" ; then
3065 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3067 { (exit 1); exit 1; }; }
3069 ol_enable_sql="$ol_arg"
3072 ol_enable_sql=${ol_enable_backends:-no}
3076 Overlays="accesslog \
3095 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3096 if test "${enable_xxslapoverlays+set}" = set; then
3097 enableval="$enable_xxslapoverlays"
3101 # OpenLDAP --enable-overlays
3103 # Check whether --enable-overlays or --disable-overlays was given.
3104 if test "${enable_overlays+set}" = set; then
3105 enableval="$enable_overlays"
3108 for ol_val in no yes mod ; do
3109 if test "$enableval" = "$ol_val" ; then
3113 if test "$ol_arg" = "invalid" ; then
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3116 { (exit 1); exit 1; }; }
3118 ol_enable_overlays="$ol_arg"
3121 # end --enable-overlays
3122 # OpenLDAP --enable-accesslog
3124 # Check whether --enable-accesslog or --disable-accesslog was given.
3125 if test "${enable_accesslog+set}" = set; then
3126 enableval="$enable_accesslog"
3129 for ol_val in no yes mod ; do
3130 if test "$enableval" = "$ol_val" ; then
3134 if test "$ol_arg" = "invalid" ; then
3135 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3137 { (exit 1); exit 1; }; }
3139 ol_enable_accesslog="$ol_arg"
3142 ol_enable_accesslog=${ol_enable_overlays:-no}
3144 # end --enable-accesslog
3146 # OpenLDAP --enable-auditlog
3148 # Check whether --enable-auditlog or --disable-auditlog was given.
3149 if test "${enable_auditlog+set}" = set; then
3150 enableval="$enable_auditlog"
3153 for ol_val in no yes mod ; do
3154 if test "$enableval" = "$ol_val" ; then
3158 if test "$ol_arg" = "invalid" ; then
3159 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3161 { (exit 1); exit 1; }; }
3163 ol_enable_auditlog="$ol_arg"
3166 ol_enable_auditlog=${ol_enable_overlays:-no}
3168 # end --enable-auditlog
3170 # OpenLDAP --enable-constraint
3172 # Check whether --enable-constraint or --disable-constraint was given.
3173 if test "${enable_constraint+set}" = set; then
3174 enableval="$enable_constraint"
3177 for ol_val in no yes mod ; do
3178 if test "$enableval" = "$ol_val" ; then
3182 if test "$ol_arg" = "invalid" ; then
3183 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3185 { (exit 1); exit 1; }; }
3187 ol_enable_constraint="$ol_arg"
3190 ol_enable_constraint=${ol_enable_overlays:-no}
3192 # end --enable-constraint
3194 # OpenLDAP --enable-dds
3196 # Check whether --enable-dds or --disable-dds was given.
3197 if test "${enable_dds+set}" = set; then
3198 enableval="$enable_dds"
3201 for ol_val in no yes mod ; do
3202 if test "$enableval" = "$ol_val" ; then
3206 if test "$ol_arg" = "invalid" ; then
3207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3208 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3209 { (exit 1); exit 1; }; }
3211 ol_enable_dds="$ol_arg"
3214 ol_enable_dds=${ol_enable_overlays:-no}
3218 # OpenLDAP --enable-denyop
3220 # Check whether --enable-denyop or --disable-denyop was given.
3221 if test "${enable_denyop+set}" = set; then
3222 enableval="$enable_denyop"
3225 for ol_val in no yes mod ; do
3226 if test "$enableval" = "$ol_val" ; then
3230 if test "$ol_arg" = "invalid" ; then
3231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3233 { (exit 1); exit 1; }; }
3235 ol_enable_denyop="$ol_arg"
3238 ol_enable_denyop=${ol_enable_overlays:-no}
3240 # end --enable-denyop
3242 # OpenLDAP --enable-dyngroup
3244 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3245 if test "${enable_dyngroup+set}" = set; then
3246 enableval="$enable_dyngroup"
3249 for ol_val in no yes mod ; do
3250 if test "$enableval" = "$ol_val" ; then
3254 if test "$ol_arg" = "invalid" ; then
3255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3257 { (exit 1); exit 1; }; }
3259 ol_enable_dyngroup="$ol_arg"
3262 ol_enable_dyngroup=${ol_enable_overlays:-no}
3264 # end --enable-dyngroup
3266 # OpenLDAP --enable-dynlist
3268 # Check whether --enable-dynlist or --disable-dynlist was given.
3269 if test "${enable_dynlist+set}" = set; then
3270 enableval="$enable_dynlist"
3273 for ol_val in no yes mod ; do
3274 if test "$enableval" = "$ol_val" ; then
3278 if test "$ol_arg" = "invalid" ; then
3279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3281 { (exit 1); exit 1; }; }
3283 ol_enable_dynlist="$ol_arg"
3286 ol_enable_dynlist=${ol_enable_overlays:-no}
3288 # end --enable-dynlist
3290 # OpenLDAP --enable-lastmod
3292 # Check whether --enable-lastmod or --disable-lastmod was given.
3293 if test "${enable_lastmod+set}" = set; then
3294 enableval="$enable_lastmod"
3297 for ol_val in no yes mod ; do
3298 if test "$enableval" = "$ol_val" ; then
3302 if test "$ol_arg" = "invalid" ; then
3303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3305 { (exit 1); exit 1; }; }
3307 ol_enable_lastmod="$ol_arg"
3310 ol_enable_lastmod=${ol_enable_overlays:-no}
3312 # end --enable-lastmod
3314 # OpenLDAP --enable-ppolicy
3316 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3317 if test "${enable_ppolicy+set}" = set; then
3318 enableval="$enable_ppolicy"
3321 for ol_val in no yes mod ; do
3322 if test "$enableval" = "$ol_val" ; then
3326 if test "$ol_arg" = "invalid" ; then
3327 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3329 { (exit 1); exit 1; }; }
3331 ol_enable_ppolicy="$ol_arg"
3334 ol_enable_ppolicy=${ol_enable_overlays:-no}
3336 # end --enable-ppolicy
3338 # OpenLDAP --enable-proxycache
3340 # Check whether --enable-proxycache or --disable-proxycache was given.
3341 if test "${enable_proxycache+set}" = set; then
3342 enableval="$enable_proxycache"
3345 for ol_val in no yes mod ; do
3346 if test "$enableval" = "$ol_val" ; then
3350 if test "$ol_arg" = "invalid" ; then
3351 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3353 { (exit 1); exit 1; }; }
3355 ol_enable_proxycache="$ol_arg"
3358 ol_enable_proxycache=${ol_enable_overlays:-no}
3360 # end --enable-proxycache
3362 # OpenLDAP --enable-refint
3364 # Check whether --enable-refint or --disable-refint was given.
3365 if test "${enable_refint+set}" = set; then
3366 enableval="$enable_refint"
3369 for ol_val in no yes mod ; do
3370 if test "$enableval" = "$ol_val" ; then
3374 if test "$ol_arg" = "invalid" ; then
3375 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3377 { (exit 1); exit 1; }; }
3379 ol_enable_refint="$ol_arg"
3382 ol_enable_refint=${ol_enable_overlays:-no}
3384 # end --enable-refint
3386 # OpenLDAP --enable-retcode
3388 # Check whether --enable-retcode or --disable-retcode was given.
3389 if test "${enable_retcode+set}" = set; then
3390 enableval="$enable_retcode"
3393 for ol_val in no yes mod ; do
3394 if test "$enableval" = "$ol_val" ; then
3398 if test "$ol_arg" = "invalid" ; then
3399 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3401 { (exit 1); exit 1; }; }
3403 ol_enable_retcode="$ol_arg"
3406 ol_enable_retcode=${ol_enable_overlays:-no}
3408 # end --enable-retcode
3410 # OpenLDAP --enable-rwm
3412 # Check whether --enable-rwm or --disable-rwm was given.
3413 if test "${enable_rwm+set}" = set; then
3414 enableval="$enable_rwm"
3417 for ol_val in no yes mod ; do
3418 if test "$enableval" = "$ol_val" ; then
3422 if test "$ol_arg" = "invalid" ; then
3423 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3425 { (exit 1); exit 1; }; }
3427 ol_enable_rwm="$ol_arg"
3430 ol_enable_rwm=${ol_enable_overlays:-no}
3434 # OpenLDAP --enable-seqmod
3436 # Check whether --enable-seqmod or --disable-seqmod was given.
3437 if test "${enable_seqmod+set}" = set; then
3438 enableval="$enable_seqmod"
3441 for ol_val in no yes mod ; do
3442 if test "$enableval" = "$ol_val" ; then
3446 if test "$ol_arg" = "invalid" ; then
3447 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3449 { (exit 1); exit 1; }; }
3451 ol_enable_seqmod="$ol_arg"
3454 ol_enable_seqmod=${ol_enable_overlays:-yes}
3456 # end --enable-seqmod
3458 # OpenLDAP --enable-syncprov
3460 # Check whether --enable-syncprov or --disable-syncprov was given.
3461 if test "${enable_syncprov+set}" = set; then
3462 enableval="$enable_syncprov"
3465 for ol_val in no yes mod ; do
3466 if test "$enableval" = "$ol_val" ; then
3470 if test "$ol_arg" = "invalid" ; then
3471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3473 { (exit 1); exit 1; }; }
3475 ol_enable_syncprov="$ol_arg"
3478 ol_enable_syncprov=${ol_enable_overlays:-yes}
3480 # end --enable-syncprov
3482 # OpenLDAP --enable-translucent
3484 # Check whether --enable-translucent or --disable-translucent was given.
3485 if test "${enable_translucent+set}" = set; then
3486 enableval="$enable_translucent"
3489 for ol_val in no yes mod ; do
3490 if test "$enableval" = "$ol_val" ; then
3494 if test "$ol_arg" = "invalid" ; then
3495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3497 { (exit 1); exit 1; }; }
3499 ol_enable_translucent="$ol_arg"
3502 ol_enable_translucent=${ol_enable_overlays:-no}
3504 # end --enable-translucent
3506 # OpenLDAP --enable-unique
3508 # Check whether --enable-unique or --disable-unique was given.
3509 if test "${enable_unique+set}" = set; then
3510 enableval="$enable_unique"
3513 for ol_val in no yes mod ; do
3514 if test "$enableval" = "$ol_val" ; then
3518 if test "$ol_arg" = "invalid" ; then
3519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3521 { (exit 1); exit 1; }; }
3523 ol_enable_unique="$ol_arg"
3526 ol_enable_unique=${ol_enable_overlays:-no}
3528 # end --enable-unique
3530 # OpenLDAP --enable-valsort
3532 # Check whether --enable-valsort or --disable-valsort was given.
3533 if test "${enable_valsort+set}" = set; then
3534 enableval="$enable_valsort"
3537 for ol_val in no yes mod ; do
3538 if test "$enableval" = "$ol_val" ; then
3542 if test "$ol_arg" = "invalid" ; then
3543 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3545 { (exit 1); exit 1; }; }
3547 ol_enable_valsort="$ol_arg"
3550 ol_enable_valsort=${ol_enable_overlays:-no}
3552 # end --enable-valsort
3555 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3556 if test "${enable_xxslurpdoptions+set}" = set; then
3557 enableval="$enable_xxslurpdoptions"
3560 # OpenLDAP --enable-slurpd
3562 # Check whether --enable-slurpd or --disable-slurpd was given.
3563 if test "${enable_slurpd+set}" = set; then
3564 enableval="$enable_slurpd"
3567 for ol_val in auto yes no ; do
3568 if test "$enableval" = "$ol_val" ; then
3572 if test "$ol_arg" = "invalid" ; then
3573 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3574 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3575 { (exit 1); exit 1; }; }
3577 ol_enable_slurpd="$ol_arg"
3580 ol_enable_slurpd=auto
3582 # end --enable-slurpd
3584 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3585 if test "${enable_xxliboptions+set}" = set; then
3586 enableval="$enable_xxliboptions"
3589 # Check whether --enable-static or --disable-static was given.
3590 if test "${enable_static+set}" = set; then
3591 enableval="$enable_static"
3592 p=${PACKAGE-default}
3594 yes) enable_static=yes ;;
3595 no) enable_static=no ;;
3598 # Look at the argument we got. We use all the common list separators.
3599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3600 for pkg in $enableval; do
3602 if test "X$pkg" = "X$p"; then
3613 # Check whether --enable-shared or --disable-shared was given.
3614 if test "${enable_shared+set}" = set; then
3615 enableval="$enable_shared"
3616 p=${PACKAGE-default}
3618 yes) enable_shared=yes ;;
3619 no) enable_shared=no ;;
3622 # Look at the argument we got. We use all the common list separators.
3623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3624 for pkg in $enableval; do
3626 if test "X$pkg" = "X$p"; then
3640 if test $ol_enable_slapd = no ; then
3641 if test $ol_enable_slapi = yes ; then
3642 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3645 case "$ol_enable_backends" in yes | mod)
3646 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3649 for i in $Backends; do
3650 eval "ol_tmp=\$ol_enable_$i"
3651 if test $ol_tmp != no ; then
3652 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3653 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3654 eval "ol_enable_$i=no"
3657 if test $ol_enable_modules = yes ; then
3658 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3661 if test $ol_enable_wrappers = yes ; then
3662 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3665 if test $ol_enable_rlookups = yes ; then
3666 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3669 if test $ol_enable_dynacl = yes ; then
3670 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3673 if test $ol_enable_aci != no ; then
3674 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3677 if test $ol_enable_slurpd = yes ; then
3678 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3679 echo "$as_me: error: slurpd requires slapd" >&2;}
3680 { (exit 1); exit 1; }; }
3682 if test $ol_enable_rewrite = yes ; then
3683 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3686 case "$ol_enable_overlays" in yes | mod)
3687 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3690 for i in $Overlays; do
3691 eval "ol_tmp=\$ol_enable_$i"
3692 if test $ol_tmp != no ; then
3693 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3695 eval "ol_enable_$i=no"
3699 # force settings to no
3704 ol_enable_modules=no
3705 ol_enable_rlookups=no
3708 ol_enable_wrappers=no
3712 ol_enable_rewrite=no
3714 elif test $ol_enable_modules != yes &&
3715 test $ol_enable_bdb = no &&
3716 test $ol_enable_dnssrv = no &&
3717 test $ol_enable_hdb = no &&
3718 test $ol_enable_ldap = no &&
3719 test $ol_enable_meta = no &&
3720 test $ol_enable_monitor = no &&
3721 test $ol_enable_null = no &&
3722 test $ol_enable_passwd = no &&
3723 test $ol_enable_perl = no &&
3724 test $ol_enable_relay = no &&
3725 test $ol_enable_shell = no &&
3726 test $ol_enable_sql = no ; then
3728 if test $ol_enable_slapd = yes ; then
3729 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3730 echo "$as_me: error: slapd requires a backend" >&2;}
3731 { (exit 1); exit 1; }; }
3733 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3734 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3739 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3740 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3741 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3742 { (exit 1); exit 1; }; }
3745 if test $ol_enable_slurpd = yes ; then
3746 if test $ol_with_threads = no ; then
3747 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3748 echo "$as_me: error: slurpd requires threads" >&2;}
3749 { (exit 1); exit 1; }; }
3753 if test $ol_enable_lmpasswd = yes ; then
3754 if test $ol_with_tls = no ; then
3755 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3756 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3757 { (exit 1); exit 1; }; }
3761 if test $ol_enable_kbind = yes ; then
3762 if test $ol_with_kerberos = no ; then
3763 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3764 echo "$as_me: error: options require --with-kerberos" >&2;}
3765 { (exit 1); exit 1; }; }
3766 elif test $ol_with_kerberos = auto ; then
3767 ol_with_kerberos=yes
3770 elif test $ol_enable_kbind = no ; then
3771 if test $ol_with_kerberos = auto ; then
3773 elif test $ol_with_kerberos != no ; then
3774 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3775 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3780 if test $ol_enable_spasswd = yes ; then
3781 if test $ol_with_cyrus_sasl = no ; then
3782 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3783 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3784 { (exit 1); exit 1; }; }
3786 ol_with_cyrus_sasl=yes
3789 echo "$as_me:$LINENO: result: done" >&5
3790 echo "${ECHO_T}done" >&6
3836 BUILD_TRANSLUCENT=no
3840 SLAPD_STATIC_OVERLAYS=
3841 SLAPD_DYNAMIC_OVERLAYS=
3843 SLAPD_MODULES_LDFLAGS=
3844 SLAPD_MODULES_CPPFLAGS=
3846 SLAPD_STATIC_BACKENDS=back-ldif
3847 SLAPD_DYNAMIC_BACKENDS=
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_MKVERSION 1
3882 *-*-aix*) if test -z "$CC" ; then
3883 case "$ol_with_threads" in
3884 auto | yes | posix) ol_aix_threads=yes ;;
3890 if test $ol_aix_threads = yes ; then
3891 if test -z "${CC}" ; then
3892 for ac_prog in cc_r xlc_r cc
3894 # Extract the first word of "$ac_prog", so it can be a program name with args.
3895 set dummy $ac_prog; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_prog_CC+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CC="$ac_prog"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 if test -n "$CC"; then
3922 echo "$as_me:$LINENO: result: $CC" >&5
3923 echo "${ECHO_T}$CC" >&6
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3929 test -n "$CC" && break
3933 if test "$CC" = cc ; then
3934 if test $ol_with_threads != auto ; then
3935 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3936 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3937 { (exit 1); exit 1; }; }
3939 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3940 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3946 case ${CC} in cc_r | xlc_r)
3947 ol_with_threads=posix
3948 ol_cv_pthread_create=yes
3953 if test -z "${CC}"; then
3954 for ac_prog in cc gcc
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_CC+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if test -n "$CC"; then
3964 ac_cv_prog_CC="$CC" # Let the user override the test.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_CC="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 if test -n "$CC"; then
3984 echo "$as_me:$LINENO: result: $CC" >&5
3985 echo "${ECHO_T}$CC" >&6
3987 echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3991 test -n "$CC" && break
3993 test -n "$CC" || CC="missing"
3996 if test "${CC}" = "missing" ; then
3997 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3998 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3999 { (exit 1); exit 1; }; }
4003 if test -z "${AR}"; then
4004 for ac_prog in ar gar
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_AR+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if test -n "$AR"; then
4014 ac_cv_prog_AR="$AR" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_AR="$ac_prog"
4024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test -n "$AR"; then
4034 echo "$as_me:$LINENO: result: $AR" >&5
4035 echo "${ECHO_T}$AR" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4041 test -n "$AR" && break
4043 test -n "$AR" || AR="missing"
4046 if test "${AR}" = "missing" ; then
4047 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4048 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4049 { (exit 1); exit 1; }; }
4057 # Check whether --enable-fast-install or --disable-fast-install was given.
4058 if test "${enable_fast_install+set}" = set; then
4059 enableval="$enable_fast_install"
4060 p=${PACKAGE-default}
4062 yes) enable_fast_install=yes ;;
4063 no) enable_fast_install=no ;;
4065 enable_fast_install=no
4066 # Look at the argument we got. We use all the common list separators.
4067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4068 for pkg in $enableval; do
4070 if test "X$pkg" = "X$p"; then
4071 enable_fast_install=yes
4078 enable_fast_install=yes
4081 DEPDIR="${am__leading_dot}deps"
4083 ac_config_commands="$ac_config_commands depfiles"
4086 am_make=${MAKE-make}
4087 cat > confinc << 'END'
4092 # If we don't find an include directive, just comment out the code.
4093 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4094 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4098 # First try GNU make style include.
4099 echo "include confinc" > confmf
4100 # We grep out `Entering directory' and `Leaving directory'
4101 # messages which can occur if `w' ends up in MAKEFLAGS.
4102 # In particular we don't look at `^make:' because GNU make might
4103 # be invoked under some other name (usually "gmake"), in which
4104 # case it prints its new name instead of `make'.
4105 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4110 # Now try BSD make style include.
4111 if test "$am__include" = "#"; then
4112 echo '.include "confinc"' > confmf
4113 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4114 am__include=.include
4121 echo "$as_me:$LINENO: result: $_am_result" >&5
4122 echo "${ECHO_T}$_am_result" >&6
4123 rm -f confinc confmf
4125 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4126 if test "${enable_dependency_tracking+set}" = set; then
4127 enableval="$enable_dependency_tracking"
4130 if test "x$enable_dependency_tracking" != xno; then
4131 am_depcomp="$ac_aux_dir/depcomp"
4136 if test "x$enable_dependency_tracking" != xno; then
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_CC+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 if test -n "$CC"; then
4180 echo "$as_me:$LINENO: result: $CC" >&5
4181 echo "${ECHO_T}$CC" >&6
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4188 if test -z "$ac_cv_prog_CC"; then
4190 # Extract the first word of "gcc", so it can be a program name with args.
4191 set dummy gcc; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test -n "$ac_ct_CC"; then
4198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_ac_ct_CC="gcc"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4230 if test -z "$CC"; then
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}cc; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_CC+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_CC="${ac_tool_prefix}cc"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 if test -n "$CC"; then
4260 echo "$as_me:$LINENO: result: $CC" >&5
4261 echo "${ECHO_T}$CC" >&6
4263 echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4268 if test -z "$ac_cv_prog_CC"; then
4270 # Extract the first word of "cc", so it can be a program name with args.
4271 set dummy cc; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 if test -n "$ac_ct_CC"; then
4278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_CC="cc"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4297 if test -n "$ac_ct_CC"; then
4298 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4299 echo "${ECHO_T}$ac_ct_CC" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4311 if test -z "$CC"; then
4312 # Extract the first word of "cc", so it can be a program name with args.
4313 set dummy cc; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_CC+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$CC"; then
4320 ac_cv_prog_CC="$CC" # Let the user override the test.
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4331 ac_prog_rejected=yes
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 if test $ac_prog_rejected = yes; then
4342 # We found a bogon in the path, so make sure we never use it.
4343 set dummy $ac_cv_prog_CC
4345 if test $# != 0; then
4346 # We chose a different compiler from the bogus one.
4347 # However, it has the same basename, so the bogon will be chosen
4348 # first if we set CC to just the basename; use the full file name.
4350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4356 if test -n "$CC"; then
4357 echo "$as_me:$LINENO: result: $CC" >&5
4358 echo "${ECHO_T}$CC" >&6
4360 echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4365 if test -z "$CC"; then
4366 if test -n "$ac_tool_prefix"; then
4369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4373 if test "${ac_cv_prog_CC+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 if test -n "$CC"; then
4377 ac_cv_prog_CC="$CC" # Let the user override the test.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 if test -n "$CC"; then
4397 echo "$as_me:$LINENO: result: $CC" >&5
4398 echo "${ECHO_T}$CC" >&6
4400 echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6
4404 test -n "$CC" && break
4407 if test -z "$CC"; then
4411 # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 if test -n "$ac_ct_CC"; then
4419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_ac_ct_CC="$ac_prog"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4438 if test -n "$ac_ct_CC"; then
4439 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4440 echo "${ECHO_T}$ac_ct_CC" >&6
4442 echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4446 test -n "$ac_ct_CC" && break
4455 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4456 See \`config.log' for more details." >&5
4457 echo "$as_me: error: no acceptable C compiler found in \$PATH
4458 See \`config.log' for more details." >&2;}
4459 { (exit 1); exit 1; }; }
4461 # Provide some information about the compiler.
4462 echo "$as_me:$LINENO:" \
4463 "checking for C compiler version" >&5
4464 ac_compiler=`set X $ac_compile; echo $2`
4465 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4466 (eval $ac_compiler --version </dev/null >&5) 2>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }
4470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4471 (eval $ac_compiler -v </dev/null >&5) 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }
4475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4476 (eval $ac_compiler -V </dev/null >&5) 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4496 ac_clean_files_save=$ac_clean_files
4497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4498 # Try to create an executable without -o first, disregard a.out.
4499 # It will help us diagnose broken compilers, and finding out an intuition
4501 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4505 (eval $ac_link_default) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; then
4509 # Find the output, starting from the most likely. This scheme is
4510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4513 # Be careful to initialize this variable, since it used to be cached.
4514 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4516 # b.out is created by i960 compilers.
4517 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4519 test -f "$ac_file" || continue
4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4524 # This is the source file.
4527 # We found the default executable, but exeext='' is most
4531 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532 # FIXME: I believe we export ac_cv_exeext for Libtool,
4533 # but it would be cool to find out if it's true. Does anybody
4534 # maintain Libtool? --akim.
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4546 See \`config.log' for more details." >&5
4547 echo "$as_me: error: C compiler cannot create executables
4548 See \`config.log' for more details." >&2;}
4549 { (exit 77); exit 77; }; }
4552 ac_exeext=$ac_cv_exeext
4553 echo "$as_me:$LINENO: result: $ac_file" >&5
4554 echo "${ECHO_T}$ac_file" >&6
4556 # Check the compiler produces executables we can run. If not, either
4557 # the compiler is broken, or we cross compile.
4558 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4559 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4561 # If not cross compiling, check that we can run a simple program.
4562 if test "$cross_compiling" != yes; then
4563 if { ac_try='./$ac_file'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4571 if test "$cross_compiling" = maybe; then
4574 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4575 If you meant to cross compile, use \`--host'.
4576 See \`config.log' for more details." >&5
4577 echo "$as_me: error: cannot run C compiled programs.
4578 If you meant to cross compile, use \`--host'.
4579 See \`config.log' for more details." >&2;}
4580 { (exit 1); exit 1; }; }
4584 echo "$as_me:$LINENO: result: yes" >&5
4585 echo "${ECHO_T}yes" >&6
4587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4588 ac_clean_files=$ac_clean_files_save
4589 # Check the compiler produces executables we can run. If not, either
4590 # the compiler is broken, or we cross compile.
4591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4594 echo "${ECHO_T}$cross_compiling" >&6
4596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; then
4603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4605 # work properly (i.e., refer to `conftest.exe'), while it won't with
4607 for ac_file in conftest.exe conftest conftest.*; do
4608 test -f "$ac_file" || continue
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4618 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4619 See \`config.log' for more details." >&5
4620 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4621 See \`config.log' for more details." >&2;}
4622 { (exit 1); exit 1; }; }
4625 rm -f conftest$ac_cv_exeext
4626 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4627 echo "${ECHO_T}$ac_cv_exeext" >&6
4629 rm -f conftest.$ac_ext
4630 EXEEXT=$ac_cv_exeext
4632 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4633 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4634 if test "${ac_cv_objext+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4652 rm -f conftest.o conftest.obj
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; then
4658 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4670 See \`config.log' for more details." >&5
4671 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4672 See \`config.log' for more details." >&2;}
4673 { (exit 1); exit 1; }; }
4676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4679 echo "${ECHO_T}$ac_cv_objext" >&6
4680 OBJEXT=$ac_cv_objext
4682 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag"
4715 || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4740 GCC=`test $ac_compiler_gnu = yes && echo yes`
4741 ac_test_CFLAGS=${CFLAGS+set}
4742 ac_save_CFLAGS=$CFLAGS
4744 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4745 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4746 if test "${ac_cv_prog_cc_g+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4796 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4797 if test "$ac_test_CFLAGS" = set; then
4798 CFLAGS=$ac_save_CFLAGS
4799 elif test $ac_cv_prog_cc_g = yes; then
4800 if test "$GCC" = yes; then
4806 if test "$GCC" = yes; then
4812 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4813 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4814 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 ac_cv_prog_cc_stdc=no
4819 cat >conftest.$ac_ext <<_ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4827 #include <sys/types.h>
4828 #include <sys/stat.h>
4829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4830 struct buf { int x; };
4831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832 static char *e (p, i)
4838 static char *f (char * (*g) (char **, int), char **p, ...)
4843 s = g (p, va_arg (v,int));
4848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4849 function prototypes and stuff, but not '\xHH' hex character constants.
4850 These don't provoke an error unfortunately, instead are silently treated
4851 as 'x'. The following induces an error, until -std1 is added to get
4852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4853 array size at least. It's necessary to write '\x00'==0 to get something
4854 that's true only with -std1. */
4855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4857 int test (int i, double x);
4858 struct s1 {int (*f) (int a);};
4859 struct s2 {int (*f) (double a);};
4860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4871 # Don't try gcc -ansi; that turns off useful extensions and
4872 # breaks some systems' header files.
4873 # AIX -qlanglvl=ansi
4874 # Ultrix and OSF/1 -std1
4875 # HP-UX 10.20 and later -Ae
4876 # HP-UX older versions -Aa -D_HPUX_SOURCE
4877 # SVR4 -Xc -D__EXTENSIONS__
4878 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4880 CC="$ac_save_CC $ac_arg"
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_prog_cc_stdc=$ac_arg
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f conftest.err conftest.$ac_objext
4912 rm -f conftest.$ac_ext conftest.$ac_objext
4917 case "x$ac_cv_prog_cc_stdc" in
4919 echo "$as_me:$LINENO: result: none needed" >&5
4920 echo "${ECHO_T}none needed" >&6 ;;
4922 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4923 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4924 CC="$CC $ac_cv_prog_cc_stdc" ;;
4927 # Some people use a C++ compiler to compile C. Since we use `exit',
4928 # in C++ we need to declare it. In case someone uses the same compiler
4929 # for both compiling C and C++ we need to have the C++ compiler decide
4930 # the declaration of exit, since it's the most demanding environment.
4931 cat >conftest.$ac_ext <<_ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1 >conftest.err
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest.$ac_objext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 for ac_declaration in \
4960 'extern "C" void std::exit (int) throw (); using std::exit;' \
4961 'extern "C" void std::exit (int); using std::exit;' \
4962 'extern "C" void exit (int) throw ();' \
4963 'extern "C" void exit (int);' \
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1 >conftest.err
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058 if test -n "$ac_declaration"; then
5059 echo '#ifdef __cplusplus' >>confdefs.h
5060 echo $ac_declaration >>confdefs.h
5061 echo '#endif' >>confdefs.h
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 depcc="$CC" am_compiler_list=
5078 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5080 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084 # We make a subdir and do the tests there. Otherwise we can end up
5085 # making bogus files that we don't know about and never remove. For
5086 # instance it was reported that on HP-UX the gcc test will end up
5087 # making a dummy file named `D' -- because `-MD' means `put the output
5090 # Copy depcomp to subdir because otherwise we won't find it if we're
5091 # using a relative directory.
5092 cp "$am_depcomp" conftest.dir
5094 # We will build objects and dependencies in a subdirectory because
5095 # it helps to detect inapplicable dependency modes. For instance
5096 # both Tru64's cc and ICC support -MD to output dependencies as a
5097 # side effect of compilation, but ICC will put the dependencies in
5098 # the current directory while Tru64 will put them in the object
5102 am_cv_CC_dependencies_compiler_type=none
5103 if test "$am_compiler_list" = ""; then
5104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5106 for depmode in $am_compiler_list; do
5107 # Setup a source with many dependencies, because some compilers
5108 # like to wrap large dependency lists on column 80 (with \), and
5109 # we should not choose a depcomp mode which is confused by this.
5111 # We need to recreate these files for each test, as the compiler may
5112 # overwrite some of them when testing with obscure command lines.
5113 # This happens at least with the AIX C compiler.
5115 for i in 1 2 3 4 5 6; do
5116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5117 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5118 # Solaris 8's {/usr,}/bin/sh.
5119 touch sub/conftst$i.h
5121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5125 # after this tag, mechanisms are not by side-effect, so they'll
5126 # only be used when explicitly requested
5127 if test "x$enable_dependency_tracking" = xyes; then
5135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5136 # mode. It turns out that the SunPro C++ compiler does not properly
5137 # handle `-M -o', and we need to detect this.
5138 if depmode=$depmode \
5139 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5141 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5142 >/dev/null 2>conftest.err &&
5143 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5144 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5145 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5146 # icc doesn't choke on unknown options, it will just issue warnings
5147 # or remarks (even with -Werror). So we grep stderr for any message
5148 # that says an option was ignored or not supported.
5149 # When given -MP, icc 7.0 and 7.1 complain thusly:
5150 # icc: Command line warning: ignoring option '-M'; no argument required
5151 # The diagnosis changed in icc 8.0:
5152 # icc: Command line remark: option '-MP' not supported
5153 if (grep 'ignoring option' conftest.err ||
5154 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5155 am_cv_CC_dependencies_compiler_type=$depmode
5164 am_cv_CC_dependencies_compiler_type=none
5168 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5169 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5175 test "x$enable_dependency_tracking" != xno \
5176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5178 am__fastdepCC_FALSE='#'
5180 am__fastdepCC_TRUE='#'
5181 am__fastdepCC_FALSE=
5185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5187 if test "${lt_cv_path_SED+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 # Loop through the user's path and test for sed and gsed.
5191 # Then use that list of sed's as ones to test for truncation.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for lt_ac_prog in sed gsed; do
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5208 # along with /bin/sed that truncates output.
5209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5210 test ! -f $lt_ac_sed && continue
5211 cat /dev/null > conftest.in
5213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5214 # Check for GNU sed and select it if it is found.
5215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5216 lt_cv_path_SED=$lt_ac_sed
5220 cat conftest.in conftest.in >conftest.tmp
5221 mv conftest.tmp conftest.in
5222 cp conftest.in conftest.nl
5224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5225 cmp -s conftest.out conftest.nl || break
5226 # 10000 chars as input seems more than enough
5227 test $lt_ac_count -gt 10 && break
5228 lt_ac_count=`expr $lt_ac_count + 1`
5229 if test $lt_ac_count -gt $lt_ac_max; then
5230 lt_ac_max=$lt_ac_count
5231 lt_cv_path_SED=$lt_ac_sed
5239 echo "$as_me:$LINENO: result: $SED" >&5
5240 echo "${ECHO_T}$SED" >&6
5242 echo "$as_me:$LINENO: checking for egrep" >&5
5243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5244 if test "${ac_cv_prog_egrep+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5248 then ac_cv_prog_egrep='grep -E'
5249 else ac_cv_prog_egrep='egrep'
5252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5254 EGREP=$ac_cv_prog_egrep
5258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5259 if test "${with_gnu_ld+set}" = set; then
5260 withval="$with_gnu_ld"
5261 test "$withval" = no || with_gnu_ld=yes
5266 if test "$GCC" = yes; then
5267 # Check if gcc -print-prog-name=ld gives a path.
5268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5272 # gcc leaves a trailing carriage return which upsets mingw
5273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5278 # Accept absolute paths.
5280 re_direlt='/[^/][^/]*/\.\./'
5281 # Canonicalize the pathname of ld
5282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5286 test -z "$LD" && LD="$ac_prog"
5289 # If it fails, then pretend we aren't using GCC.
5293 # If it is relative, then search for the first ld in PATH.
5297 elif test "$with_gnu_ld" = yes; then
5298 echo "$as_me:$LINENO: checking for GNU ld" >&5
5299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5304 if test "${lt_cv_path_LD+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 if test -z "$LD"; then
5308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5309 for ac_dir in $PATH; do
5311 test -z "$ac_dir" && ac_dir=.
5312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5313 lt_cv_path_LD="$ac_dir/$ac_prog"
5314 # Check to see if the program is GNU ld. I'd rather use --version,
5315 # but apparently some variants of GNU ld only accept -v.
5316 # Break only if it was the GNU/non-GNU ld that we prefer.
5317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5318 *GNU* | *'with BFD'*)
5319 test "$with_gnu_ld" != no && break
5322 test "$with_gnu_ld" != yes && break
5329 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5334 if test -n "$LD"; then
5335 echo "$as_me:$LINENO: result: $LD" >&5
5336 echo "${ECHO_T}$LD" >&6
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5343 { (exit 1); exit 1; }; }
5344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5350 case `$LD -v 2>&1 </dev/null` in
5351 *GNU* | *'with BFD'*)
5352 lt_cv_prog_gnu_ld=yes
5355 lt_cv_prog_gnu_ld=no
5359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5361 with_gnu_ld=$lt_cv_prog_gnu_ld
5364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5366 if test "${lt_cv_ld_reload_flag+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 lt_cv_ld_reload_flag='-r'
5371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5373 reload_flag=$lt_cv_ld_reload_flag
5374 case $reload_flag in
5376 *) reload_flag=" $reload_flag" ;;
5378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5381 if test "$GCC" = yes; then
5382 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5391 if test "${lt_cv_path_NM+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 if test -n "$NM"; then
5395 # Let the user override the test.
5398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5399 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5401 test -z "$ac_dir" && ac_dir=.
5402 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5403 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5404 # Check to see if the nm accepts a BSD-compat flag.
5405 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5406 # nm: unknown option "B" ignored
5407 # Tru64's nm complains that /dev/null is an invalid object file
5408 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5409 */dev/null* | *'Invalid file or object type'*)
5410 lt_cv_path_NM="$tmp_nm -B"
5414 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5416 lt_cv_path_NM="$tmp_nm -p"
5420 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5421 continue # so that we can try to find one that supports BSD flags
5428 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5431 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5432 echo "${ECHO_T}$lt_cv_path_NM" >&6
5435 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5438 if test "$LN_S" = "ln -s"; then
5439 echo "$as_me:$LINENO: result: yes" >&5
5440 echo "${ECHO_T}yes" >&6
5442 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5443 echo "${ECHO_T}no, using $LN_S" >&6
5446 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5447 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5448 if test "${lt_cv_deplibs_check_method+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 lt_cv_file_magic_cmd='$MAGIC_CMD'
5452 lt_cv_file_magic_test_file=
5453 lt_cv_deplibs_check_method='unknown'
5454 # Need to set the preceding variable on all platforms that support
5455 # interlibrary dependencies.
5456 # 'none' -- dependencies not supported.
5457 # `unknown' -- same as none, but documents that we really don't know.
5458 # 'pass_all' -- all dependencies passed with no checks.
5459 # 'test_compile' -- check by making test program.
5460 # 'file_magic [[regex]]' -- check by looking for files in library path
5461 # which responds to the $file_magic_cmd with a given extended regex.
5462 # If you have `file' or equivalent on your system and you're not sure
5463 # whether `pass_all' will *always* work, you probably want this one.
5467 lt_cv_deplibs_check_method=pass_all
5471 lt_cv_deplibs_check_method=pass_all
5475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5476 lt_cv_file_magic_cmd='/usr/bin/file -L'
5477 lt_cv_file_magic_test_file=/shlib/libc.so
5481 # func_win32_libid is a shell function defined in ltmain.sh
5482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5483 lt_cv_file_magic_cmd='func_win32_libid'
5487 # Base MSYS/MinGW do not provide the 'file' command needed by
5488 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5490 lt_cv_file_magic_cmd='$OBJDUMP -f'
5493 darwin* | rhapsody*)
5494 lt_cv_deplibs_check_method=pass_all
5497 freebsd* | kfreebsd*-gnu | dragonfly*)
5498 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5501 # Not sure whether the presence of OpenBSD here was a mistake.
5502 # Let's accept both of them until this is cleared up.
5503 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5504 lt_cv_file_magic_cmd=/usr/bin/file
5505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5509 lt_cv_deplibs_check_method=pass_all
5514 lt_cv_deplibs_check_method=pass_all
5517 hpux10.20* | hpux11*)
5518 lt_cv_file_magic_cmd=/usr/bin/file
5521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5525 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]'
5526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5530 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5535 irix5* | irix6* | nonstopux*)
5537 *-32|*"-32 ") libmagic=32-bit;;
5538 *-n32|*"-n32 ") libmagic=N32;;
5539 *-64|*"-64 ") libmagic=64-bit;;
5540 *) libmagic=never-match;;
5542 lt_cv_deplibs_check_method=pass_all
5545 # This must be Linux ELF.
5547 lt_cv_deplibs_check_method=pass_all
5551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5560 lt_cv_file_magic_cmd=/usr/bin/file
5561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5565 lt_cv_deplibs_check_method=unknown
5569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5576 osf3* | osf4* | osf5*)
5577 lt_cv_deplibs_check_method=pass_all
5581 lt_cv_deplibs_check_method=pass_all
5585 lt_cv_deplibs_check_method=pass_all
5588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5589 case $host_vendor in
5591 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]'
5592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5595 lt_cv_deplibs_check_method=pass_all
5598 lt_cv_file_magic_cmd='/bin/file'
5599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5602 lt_cv_file_magic_cmd='/bin/file'
5603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5604 lt_cv_file_magic_test_file=/lib/libc.so
5607 lt_cv_deplibs_check_method=pass_all
5612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5613 lt_cv_deplibs_check_method=pass_all
5618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5620 file_magic_cmd=$lt_cv_file_magic_cmd
5621 deplibs_check_method=$lt_cv_deplibs_check_method
5622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5627 # If no C compiler was specified, use CC.
5630 # Allow CC to be a program name with arguments.
5634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5635 if test "${enable_libtool_lock+set}" = set; then
5636 enableval="$enable_libtool_lock"
5639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5641 # Some flags need to be propagated to the compiler or linker for good
5645 # Find out which ABI we are using.
5646 echo 'int i;' > conftest.$ac_ext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; then
5652 case `/usr/bin/file conftest.$ac_objext` in
5664 # Find out which ABI we are using.
5665 echo '#line 5665 "configure"' > conftest.$ac_ext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; then
5671 if test "$lt_cv_prog_gnu_ld" = yes; then
5672 case `/usr/bin/file conftest.$ac_objext` in
5674 LD="${LD-ld} -melf32bsmip"
5677 LD="${LD-ld} -melf32bmipn32"
5680 LD="${LD-ld} -melf64bmip"
5684 case `/usr/bin/file conftest.$ac_objext` in
5700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5701 # Find out which ABI we are using.
5702 echo 'int i;' > conftest.$ac_ext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; then
5708 case `/usr/bin/file conftest.o` in
5712 LD="${LD-ld} -m elf_i386"
5714 ppc64-*linux*|powerpc64-*linux*)
5715 LD="${LD-ld} -m elf32ppclinux"
5718 LD="${LD-ld} -m elf_s390"
5721 LD="${LD-ld} -m elf32_sparc"
5728 LD="${LD-ld} -m elf_x86_64"
5730 ppc*-*linux*|powerpc*-*linux*)
5731 LD="${LD-ld} -m elf64ppc"
5734 LD="${LD-ld} -m elf64_s390"
5737 LD="${LD-ld} -m elf64_sparc"
5747 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5748 SAVE_CFLAGS="$CFLAGS"
5749 CFLAGS="$CFLAGS -belf"
5750 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5752 if test "${lt_cv_cc_needs_belf+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 ac_cpp='$CPP $CPPFLAGS'
5757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761 cat >conftest.$ac_ext <<_ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5776 rm -f conftest.$ac_objext conftest$ac_exeext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778 (eval $ac_link) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1 >conftest.err
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 lt_cv_cc_needs_belf=yes
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 lt_cv_cc_needs_belf=no
5805 rm -f conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5808 ac_cpp='$CPP $CPPFLAGS'
5809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5816 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5817 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5818 CFLAGS="$SAVE_CFLAGS"
5821 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 if test -n "$DLLTOOL"; then
5831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 DLLTOOL=$ac_cv_prog_DLLTOOL
5850 if test -n "$DLLTOOL"; then
5851 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5852 echo "${ECHO_T}$DLLTOOL" >&6
5854 echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5859 if test -z "$ac_cv_prog_DLLTOOL"; then
5860 ac_ct_DLLTOOL=$DLLTOOL
5861 # Extract the first word of "dlltool", so it can be a program name with args.
5862 set dummy dlltool; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 if test -n "$ac_ct_DLLTOOL"; then
5869 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5888 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5889 if test -n "$ac_ct_DLLTOOL"; then
5890 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5891 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5897 DLLTOOL=$ac_ct_DLLTOOL
5899 DLLTOOL="$ac_cv_prog_DLLTOOL"
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}as; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_AS+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test -n "$AS"; then
5911 ac_cv_prog_AS="$AS" # Let the user override the test.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_AS="${ac_tool_prefix}as"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 if test -n "$AS"; then
5931 echo "$as_me:$LINENO: result: $AS" >&5
5932 echo "${ECHO_T}$AS" >&6
5934 echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5939 if test -z "$ac_cv_prog_AS"; then
5941 # Extract the first word of "as", so it can be a program name with args.
5942 set dummy as; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_AS"; then
5949 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_AS="as"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5968 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5969 if test -n "$ac_ct_AS"; then
5970 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5971 echo "${ECHO_T}$ac_ct_AS" >&6
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5985 echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 if test -n "$OBJDUMP"; then
5991 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 OBJDUMP=$ac_cv_prog_OBJDUMP
6010 if test -n "$OBJDUMP"; then
6011 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6012 echo "${ECHO_T}$OBJDUMP" >&6
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6019 if test -z "$ac_cv_prog_OBJDUMP"; then
6020 ac_ct_OBJDUMP=$OBJDUMP
6021 # Extract the first word of "objdump", so it can be a program name with args.
6022 set dummy objdump; ac_word=$2
6023 echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6025 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 if test -n "$ac_ct_OBJDUMP"; then
6029 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6048 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6049 if test -n "$ac_ct_OBJDUMP"; then
6050 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6051 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6053 echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6057 OBJDUMP=$ac_ct_OBJDUMP
6059 OBJDUMP="$ac_cv_prog_OBJDUMP"
6066 need_locks="$enable_libtool_lock"
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6075 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6076 # On Suns, sometimes $CPP names a directory.
6077 if test -n "$CPP" && test -d "$CPP"; then
6080 if test -z "$CPP"; then
6081 if test "${ac_cv_prog_CPP+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 # Double quotes because CPP needs to be expanded
6085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6088 for ac_c_preproc_warn_flag in '' yes
6090 # Use a header file that comes with gcc, so configuring glibc
6091 # with a fresh cross-compiler works.
6092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093 # <limits.h> exists even on freestanding compilers.
6094 # On the NeXT, cc -E runs the code through the compiler's parser,
6095 # not just through cpp. "Syntax error" is here to catch this case.
6096 cat >conftest.$ac_ext <<_ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6103 # include <limits.h>
6105 # include <assert.h>
6109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } >/dev/null; then
6117 if test -s conftest.err; then
6118 ac_cpp_err=$ac_c_preproc_warn_flag
6119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6126 if test -z "$ac_cpp_err"; then
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 # Broken: fails on valid input.
6135 rm -f conftest.err conftest.$ac_ext
6137 # OK, works on sane cases. Now check whether non-existent headers
6138 # can be detected and how.
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <ac_nonexistent.h>
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null; then
6155 if test -s conftest.err; then
6156 ac_cpp_err=$ac_c_preproc_warn_flag
6157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164 if test -z "$ac_cpp_err"; then
6165 # Broken: success on invalid input.
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 # Passes both tests.
6175 rm -f conftest.err conftest.$ac_ext
6178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6179 rm -f conftest.err conftest.$ac_ext
6180 if $ac_preproc_ok; then
6192 echo "$as_me:$LINENO: result: $CPP" >&5
6193 echo "${ECHO_T}$CPP" >&6
6195 for ac_c_preproc_warn_flag in '' yes
6197 # Use a header file that comes with gcc, so configuring glibc
6198 # with a fresh cross-compiler works.
6199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6200 # <limits.h> exists even on freestanding compilers.
6201 # On the NeXT, cc -E runs the code through the compiler's parser,
6202 # not just through cpp. "Syntax error" is here to catch this case.
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 # include <limits.h>
6212 # include <assert.h>
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null; then
6224 if test -s conftest.err; then
6225 ac_cpp_err=$ac_c_preproc_warn_flag
6226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6233 if test -z "$ac_cpp_err"; then
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 # Broken: fails on valid input.
6242 rm -f conftest.err conftest.$ac_ext
6244 # OK, works on sane cases. Now check whether non-existent headers
6245 # can be detected and how.
6246 cat >conftest.$ac_ext <<_ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 #include <ac_nonexistent.h>
6254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6257 grep -v '^ *+' conftest.er1 >conftest.err
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } >/dev/null; then
6262 if test -s conftest.err; then
6263 ac_cpp_err=$ac_c_preproc_warn_flag
6264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6271 if test -z "$ac_cpp_err"; then
6272 # Broken: success on invalid input.
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 # Passes both tests.
6282 rm -f conftest.err conftest.$ac_ext
6285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6286 rm -f conftest.err conftest.$ac_ext
6287 if $ac_preproc_ok; then
6290 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6291 See \`config.log' for more details." >&5
6292 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6293 See \`config.log' for more details." >&2;}
6294 { (exit 1); exit 1; }; }
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6304 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6306 if test "${ac_cv_header_stdc+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330 (eval $ac_compile) 2>conftest.er1
6332 grep -v '^ *+' conftest.er1 >conftest.err
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_c_werror_flag"
6338 || test ! -s conftest.err'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_header_stdc=yes
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 ac_cv_header_stdc=no
6357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359 if test $ac_cv_header_stdc = yes; then
6360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6361 cat >conftest.$ac_ext <<_ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371 $EGREP "memchr" >/dev/null 2>&1; then
6374 ac_cv_header_stdc=no
6380 if test $ac_cv_header_stdc = yes; then
6381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392 $EGREP "free" >/dev/null 2>&1; then
6395 ac_cv_header_stdc=no
6401 if test $ac_cv_header_stdc = yes; then
6402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6403 if test "$cross_compiling" = yes; then
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6413 #if ((' ' & 0x0FF) == 0x020)
6414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6417 # define ISLOWER(c) \
6418 (('a' <= (c) && (c) <= 'i') \
6419 || ('j' <= (c) && (c) <= 'r') \
6420 || ('s' <= (c) && (c) <= 'z'))
6421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6429 for (i = 0; i < 256; i++)
6430 if (XOR (islower (i), ISLOWER (i))
6431 || toupper (i) != TOUPPER (i))
6436 rm -f conftest$ac_exeext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438 (eval $ac_link) 2>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6449 echo "$as_me: program exited with status $ac_status" >&5
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_cv_header_stdc=no
6456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6462 if test $ac_cv_header_stdc = yes; then
6464 cat >>confdefs.h <<\_ACEOF
6465 #define STDC_HEADERS 1
6470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6481 inttypes.h stdint.h unistd.h
6483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6484 echo "$as_me:$LINENO: checking for $ac_header" >&5
6485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 $ac_includes_default
6497 #include <$ac_header>
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag"
6509 || test ! -s conftest.err'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest.$ac_objext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 eval "$as_ac_Header=yes"
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 eval "$as_ac_Header=no"
6528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6543 for ac_header in dlfcn.h
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547 echo "$as_me:$LINENO: checking for $ac_header" >&5
6548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555 # Is the header compilable?
6556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 $ac_includes_default
6565 #include <$ac_header>
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>conftest.er1
6571 grep -v '^ *+' conftest.er1 >conftest.err
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_header_compiler=yes
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_compiler=no
6596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 echo "${ECHO_T}$ac_header_compiler" >&6
6600 # Is the header present?
6601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <$ac_header>
6611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6614 grep -v '^ *+' conftest.er1 >conftest.err
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } >/dev/null; then
6619 if test -s conftest.err; then
6620 ac_cpp_err=$ac_c_preproc_warn_flag
6621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6628 if test -z "$ac_cpp_err"; then
6629 ac_header_preproc=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_header_preproc=no
6636 rm -f conftest.err conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6647 ac_header_preproc=yes
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6664 ## --------------------------------------------- ##
6665 ## Report this to <http://www.openldap.org/its/> ##
6666 ## --------------------------------------------- ##
6669 sed "s/^/$as_me: WARNING: /" >&2
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 eval "$as_ac_Header=\$ac_header_preproc"
6679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6684 cat >>confdefs.h <<_ACEOF
6685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6693 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6695 # find the maximum length of command line arguments
6696 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6697 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6698 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 # On DJGPP, this test can blow up pretty badly due to problems in libc
6707 # (any single argument exceeding 2000 bytes causes a buffer overrun
6708 # during glob expansion). Even if it were fixed, the result of this
6709 # check would be larger than it should be.
6710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6714 # Under GNU Hurd, this test is not required because there is
6715 # no limit to the length of command line arguments.
6716 # Libtool will interpret -1 as no limit whatsoever
6717 lt_cv_sys_max_cmd_len=-1;
6721 # On Win9x/ME, this test blows up -- it succeeds, but takes
6722 # about 5 minutes as the teststring grows exponentially.
6723 # Worse, since 9x/ME are not pre-emptively multitasking,
6724 # you end up with a "frozen" computer, even though with patience
6725 # the test eventually succeeds (with a max line length of 256k).
6726 # Instead, let's just punt: use the minimum linelength reported by
6727 # all of the supported platforms: 8192 (on NT/2K/XP).
6728 lt_cv_sys_max_cmd_len=8192;
6732 # On AmigaOS with pdksh, this test takes hours, literally.
6733 # So we just punt and use a minimum line length of 8192.
6734 lt_cv_sys_max_cmd_len=8192;
6737 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6738 # This has been around since 386BSD, at least. Likely further.
6739 if test -x /sbin/sysctl; then
6740 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6741 elif test -x /usr/sbin/sysctl; then
6742 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6744 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6746 # And add a safety zone
6747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6751 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6752 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6753 # nice to cause kernel panics so lets avoid the loop below.
6754 # First set a reasonable default.
6755 lt_cv_sys_max_cmd_len=16384
6757 if test -x /sbin/sysconfig; then
6758 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6759 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6764 # If test is not a shell built-in, we'll probably end up computing a
6765 # maximum length that is only half of the actual maximum length, but
6767 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6768 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6769 = "XX$teststring") >/dev/null 2>&1 &&
6770 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6771 lt_cv_sys_max_cmd_len=$new_result &&
6772 test $i != 17 # 1/2 MB should be enough
6775 teststring=$teststring$teststring
6778 # Add a significant safety factor because C++ compilers can tack on massive
6779 # amounts of additional arguments before passing them to the linker.
6780 # It appears as though 1/2 is a usable value.
6781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6787 if test -n $lt_cv_sys_max_cmd_len ; then
6788 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6789 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6791 echo "$as_me:$LINENO: result: none" >&5
6792 echo "${ECHO_T}none" >&6
6798 # Check for command to grab the raw symbol name followed by C symbol from nm.
6799 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6800 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6801 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 # These are sane defaults that work on at least a few old systems.
6806 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6808 # Character class describing NM global symbol codes.
6809 symcode='[BCDEGRST]'
6811 # Regexp to match symbols that can be accessed directly from C.
6812 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6814 # Transform an extracted symbol line into a proper C declaration
6815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6817 # Transform an extracted symbol line into symbol name and symbol address
6818 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'"
6820 # Define system-specific variables.
6825 cygwin* | mingw* | pw32*)
6826 symcode='[ABCDGISTW]'
6828 hpux*) # Its linker distinguishes data from code symbols
6829 if test "$host_cpu" = ia64; then
6830 symcode='[ABCDEGRST]'
6832 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6833 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'"
6836 if test "$host_cpu" = ia64; then
6837 symcode='[ABCDGIRSTW]'
6838 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6839 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'"
6843 symcode='[BCDEGRST]'
6846 symcode='[BCDEGQRST]'
6856 # Handle CRLF in mingw tool chain
6860 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6864 # If we're using GNU nm, then use its standard symbol codes.
6865 case `$NM -V 2>&1` in
6866 *GNU* | *'with BFD'*)
6867 symcode='[ABCDGIRSTW]' ;;
6870 # Try without a prefix undercore, then with it.
6871 for ac_symprfx in "" "_"; do
6873 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874 symxfrm="\\1 $ac_symprfx\\2 \\2"
6876 # Write the raw and C identifiers.
6877 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6879 # Check to see that the pipe works correctly.
6883 cat > conftest.$ac_ext <<EOF
6888 void nm_test_func(){}
6892 int main(){nm_test_var='a';nm_test_func();return(0);}
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; then
6900 # Now try to grab the symbols.
6902 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6903 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && test -s "$nlist"; then
6907 # Try sorting and uniquifying the output.
6908 if sort "$nlist" | uniq > "$nlist"T; then
6909 mv -f "$nlist"T "$nlist"
6914 # Make sure that we snagged all the symbols we need.
6915 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6916 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6917 cat <<EOF > conftest.$ac_ext
6923 # Now generate the symbol file.
6924 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6926 cat <<EOF >> conftest.$ac_ext
6927 #if defined (__STDC__) && __STDC__
6928 # define lt_ptr_t void *
6930 # define lt_ptr_t char *
6934 /* The mapping between symbol names and symbols. */
6939 lt_preloaded_symbols[] =
6942 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6943 cat <<\EOF >> conftest.$ac_ext
6951 # Now try linking the two files.
6952 mv conftest.$ac_objext conftstm.$ac_objext
6953 lt_save_LIBS="$LIBS"
6954 lt_save_CFLAGS="$CFLAGS"
6955 LIBS="conftstm.$ac_objext"
6956 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6964 LIBS="$lt_save_LIBS"
6965 CFLAGS="$lt_save_CFLAGS"
6967 echo "cannot find nm_test_func in $nlist" >&5
6970 echo "cannot find nm_test_var in $nlist" >&5
6973 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6976 echo "$progname: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 rm -f conftest* conftst*
6981 # Do not use the global_symbol_pipe unless it works.
6982 if test "$pipe_works" = yes; then
6985 lt_cv_sys_global_symbol_pipe=
6991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992 lt_cv_sys_global_symbol_to_cdecl=
6994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995 echo "$as_me:$LINENO: result: failed" >&5
6996 echo "${ECHO_T}failed" >&6
6998 echo "$as_me:$LINENO: result: ok" >&5
6999 echo "${ECHO_T}ok" >&6
7002 echo "$as_me:$LINENO: checking for objdir" >&5
7003 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7004 if test "${lt_cv_objdir+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 rm -f .libs 2>/dev/null
7008 mkdir .libs 2>/dev/null
7009 if test -d .libs; then
7012 # MS-DOS does not allow filenames that begin with a dot.
7015 rmdir .libs 2>/dev/null
7017 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7018 echo "${ECHO_T}$lt_cv_objdir" >&6
7019 objdir=$lt_cv_objdir
7027 # AIX sometimes has problems with the GCC collect2 program. For some
7028 # reason, if we set the COLLECT_NAMES environment variable, the problems
7029 # vanish in a puff of smoke.
7030 if test "X${COLLECT_NAMES+set}" != Xset; then
7032 export COLLECT_NAMES
7037 # Sed substitution that helps us do robust quoting. It backslashifies
7038 # metacharacters that are still active within double-quoted strings.
7039 Xsed='sed -e 1s/^X//'
7040 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7042 # Same as above, but do not quote variable references.
7043 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7045 # Sed substitution to delay expansion of an escaped shell variable in a
7046 # double_quote_subst'ed string.
7047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7049 # Sed substitution to avoid accidental globbing in evaled expressions
7050 no_glob_subst='s/\*/\\\*/g'
7056 default_ofile=libtool
7057 can_build_shared=yes
7059 # All known linkers require a `.a' archive for static linking (except MSVC,
7060 # which needs '.lib').
7062 ltmain="$ac_aux_dir/ltmain.sh"
7063 ofile="$default_ofile"
7064 with_gnu_ld="$lt_cv_prog_gnu_ld"
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}ar; ac_word=$2
7069 echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7071 if test "${ac_cv_prog_AR+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 if test -n "$AR"; then
7075 ac_cv_prog_AR="$AR" # Let the user override the test.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_AR="${ac_tool_prefix}ar"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 if test -n "$AR"; then
7095 echo "$as_me:$LINENO: result: $AR" >&5
7096 echo "${ECHO_T}$AR" >&6
7098 echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6
7103 if test -z "$ac_cv_prog_AR"; then
7105 # Extract the first word of "ar", so it can be a program name with args.
7106 set dummy ar; ac_word=$2
7107 echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 if test -n "$ac_ct_AR"; then
7113 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_AR="ar"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7133 if test -n "$ac_ct_AR"; then
7134 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7135 echo "${ECHO_T}$ac_ct_AR" >&6
7137 echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7146 if test -n "$ac_tool_prefix"; then
7147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7149 echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151 if test "${ac_cv_prog_RANLIB+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 if test -n "$RANLIB"; then
7155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 RANLIB=$ac_cv_prog_RANLIB
7174 if test -n "$RANLIB"; then
7175 echo "$as_me:$LINENO: result: $RANLIB" >&5
7176 echo "${ECHO_T}$RANLIB" >&6
7178 echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6
7183 if test -z "$ac_cv_prog_RANLIB"; then
7184 ac_ct_RANLIB=$RANLIB
7185 # Extract the first word of "ranlib", so it can be a program name with args.
7186 set dummy ranlib; ac_word=$2
7187 echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 if test -n "$ac_ct_RANLIB"; then
7193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_ac_ct_RANLIB="ranlib"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7213 if test -n "$ac_ct_RANLIB"; then
7214 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7215 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7221 RANLIB=$ac_ct_RANLIB
7223 RANLIB="$ac_cv_prog_RANLIB"
7226 if test -n "$ac_tool_prefix"; then
7227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}strip; ac_word=$2
7229 echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7231 if test "${ac_cv_prog_STRIP+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 if test -n "$STRIP"; then
7235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 STRIP=$ac_cv_prog_STRIP
7254 if test -n "$STRIP"; then
7255 echo "$as_me:$LINENO: result: $STRIP" >&5
7256 echo "${ECHO_T}$STRIP" >&6
7258 echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7263 if test -z "$ac_cv_prog_STRIP"; then
7265 # Extract the first word of "strip", so it can be a program name with args.
7266 set dummy strip; ac_word=$2
7267 echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7269 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 if test -n "$ac_ct_STRIP"; then
7273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_ac_ct_STRIP="strip"
7283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293 if test -n "$ac_ct_STRIP"; then
7294 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7295 echo "${ECHO_T}$ac_ct_STRIP" >&6
7297 echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7303 STRIP="$ac_cv_prog_STRIP"
7308 old_CFLAGS="$CFLAGS"
7310 # Set sane defaults for various variables
7311 test -z "$AR" && AR=ar
7312 test -z "$AR_FLAGS" && AR_FLAGS=cru
7313 test -z "$AS" && AS=as
7314 test -z "$CC" && CC=cc
7315 test -z "$LTCC" && LTCC=$CC
7316 test -z "$DLLTOOL" && DLLTOOL=dlltool
7317 test -z "$LD" && LD=ld
7318 test -z "$LN_S" && LN_S="ln -s"
7319 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7320 test -z "$NM" && NM=nm
7321 test -z "$SED" && SED=sed
7322 test -z "$OBJDUMP" && OBJDUMP=objdump
7323 test -z "$RANLIB" && RANLIB=:
7324 test -z "$STRIP" && STRIP=:
7325 test -z "$ac_objext" && ac_objext=o
7327 # Determine commands to create old-style static archives.
7328 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7329 old_postinstall_cmds='chmod 644 $oldlib'
7330 old_postuninstall_cmds=
7332 if test -n "$RANLIB"; then
7335 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7338 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7341 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7344 for cc_temp in $compiler""; do
7346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7355 # Only perform the check for file, if the check method requires it
7356 case $deplibs_check_method in
7358 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7359 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7360 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7361 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7369 lt_save_MAGIC_CMD="$MAGIC_CMD"
7370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7372 for ac_dir in $ac_dummy; do
7374 test -z "$ac_dir" && ac_dir=.
7375 if test -f $ac_dir/${ac_tool_prefix}file; then
7376 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7377 if test -n "$file_magic_test_file"; then
7378 case $deplibs_check_method in
7380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7383 $EGREP "$file_magic_regex" > /dev/null; then
7388 *** Warning: the command libtool uses to detect shared libraries,
7389 *** $file_magic_cmd, produces output that libtool cannot recognize.
7390 *** The result is that libtool may fail to recognize shared libraries
7391 *** as such. This will affect the creation of libtool libraries that
7392 *** depend on shared libraries, but programs linked with such libtool
7393 *** libraries will work regardless of this problem. Nevertheless, you
7394 *** may want to report the problem to your system manager and/or to
7395 *** bug-libtool@gnu.org
7405 MAGIC_CMD="$lt_save_MAGIC_CMD"
7410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7411 if test -n "$MAGIC_CMD"; then
7412 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7413 echo "${ECHO_T}$MAGIC_CMD" >&6
7415 echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6
7419 if test -z "$lt_cv_path_MAGIC_CMD"; then
7420 if test -n "$ac_tool_prefix"; then
7421 echo "$as_me:$LINENO: checking for file" >&5
7422 echo $ECHO_N "checking for file... $ECHO_C" >&6
7423 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7431 lt_save_MAGIC_CMD="$MAGIC_CMD"
7432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7434 for ac_dir in $ac_dummy; do
7436 test -z "$ac_dir" && ac_dir=.
7437 if test -f $ac_dir/file; then
7438 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7439 if test -n "$file_magic_test_file"; then
7440 case $deplibs_check_method in
7442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7445 $EGREP "$file_magic_regex" > /dev/null; then
7450 *** Warning: the command libtool uses to detect shared libraries,
7451 *** $file_magic_cmd, produces output that libtool cannot recognize.
7452 *** The result is that libtool may fail to recognize shared libraries
7453 *** as such. This will affect the creation of libtool libraries that
7454 *** depend on shared libraries, but programs linked with such libtool
7455 *** libraries will work regardless of this problem. Nevertheless, you
7456 *** may want to report the problem to your system manager and/or to
7457 *** bug-libtool@gnu.org
7467 MAGIC_CMD="$lt_save_MAGIC_CMD"
7472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7473 if test -n "$MAGIC_CMD"; then
7474 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7475 echo "${ECHO_T}$MAGIC_CMD" >&6
7477 echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7491 enable_win32_dll=yes
7493 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7494 if test "${enable_libtool_lock+set}" = set; then
7495 enableval="$enable_libtool_lock"
7498 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7501 # Check whether --with-pic or --without-pic was given.
7502 if test "${with_pic+set}" = set; then
7508 test -z "$pic_mode" && pic_mode=default
7510 # Use C for the default configuration in the libtool script
7514 ac_cpp='$CPP $CPPFLAGS'
7515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520 # Source file extension for C test sources.
7523 # Object file extension for compiled C test sources.
7527 # Code to be used in simple compile tests
7528 lt_simple_compile_test_code="int some_variable = 0;\n"
7530 # Code to be used in simple link tests
7531 lt_simple_link_test_code='int main(){return(0);}\n'
7534 # If no C compiler was specified, use CC.
7537 # Allow CC to be a program name with arguments.
7541 # save warnings/boilerplate of simple test code
7542 ac_outfile=conftest.$ac_objext
7543 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7545 _lt_compiler_boilerplate=`cat conftest.err`
7548 ac_outfile=conftest.$ac_objext
7549 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7551 _lt_linker_boilerplate=`cat conftest.err`
7556 # Check for any special shared library compilation flags.
7559 if test "$GCC" = no; then
7562 lt_prog_cc_shlib='-belf'
7566 if test -n "$lt_prog_cc_shlib"; then
7567 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7568 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7569 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7571 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7572 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7573 lt_cv_prog_cc_can_build_shared=no
7579 # Check to make sure the static flag actually works.
7581 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7582 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7583 if test "${lt_prog_compiler_static_works+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 lt_prog_compiler_static_works=no
7587 save_LDFLAGS="$LDFLAGS"
7588 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7589 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7591 # The linker can only warn and ignore the option if not recognized
7592 # So say no if there are warnings
7593 if test -s conftest.err; then
7594 # Append any errors to the config.log.
7595 cat conftest.err 1>&5
7596 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7597 $SED '/^$/d' conftest.err >conftest.er2
7598 if diff conftest.exp conftest.er2 >/dev/null; then
7599 lt_prog_compiler_static_works=yes
7602 lt_prog_compiler_static_works=yes
7606 LDFLAGS="$save_LDFLAGS"
7609 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7610 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7612 if test x"$lt_prog_compiler_static_works" = xyes; then
7615 lt_prog_compiler_static=
7621 lt_prog_compiler_no_builtin_flag=
7623 if test "$GCC" = yes; then
7624 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7627 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7628 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7629 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 lt_cv_prog_compiler_rtti_exceptions=no
7633 ac_outfile=conftest.$ac_objext
7634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7635 lt_compiler_flag="-fno-rtti -fno-exceptions"
7636 # Insert the option either (1) after the last *FLAGS variable, or
7637 # (2) before a word containing "conftest.", or (3) at the end.
7638 # Note that $ac_compile itself does not contain backslashes and begins
7639 # with a dollar sign (not a hyphen), so the echo should work correctly.
7640 # The option is referenced via a variable to avoid confusing sed.
7641 lt_compile=`echo "$ac_compile" | $SED \
7642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7644 -e 's:$: $lt_compiler_flag:'`
7645 (eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
7646 (eval "$lt_compile" 2>conftest.err)
7648 cat conftest.err >&5
7649 echo "$as_me:7649: \$? = $ac_status" >&5
7650 if (exit $ac_status) && test -s "$ac_outfile"; then
7651 # The compiler can only warn and ignore the option if not recognized
7652 # So say no if there are warnings other than the usual output.
7653 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7654 $SED '/^$/d' conftest.err >conftest.er2
7655 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7656 lt_cv_prog_compiler_rtti_exceptions=yes
7662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7663 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7666 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7673 lt_prog_compiler_wl=
7674 lt_prog_compiler_pic=
7675 lt_prog_compiler_static=
7677 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7678 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7680 if test "$GCC" = yes; then
7681 lt_prog_compiler_wl='-Wl,'
7682 lt_prog_compiler_static='-static'
7686 # All AIX code is PIC.
7687 if test "$host_cpu" = ia64; then
7688 # AIX 5 now supports IA64 processor
7689 lt_prog_compiler_static='-Bstatic'
7694 # FIXME: we need at least 68020 code to build shared libraries, but
7695 # adding the `-m68020' flag to GCC prevents building anything better,
7697 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7700 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7701 # PIC is the default for these OSes.
7704 mingw* | pw32* | os2*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7710 darwin* | rhapsody*)
7711 # PIC is the default on this platform
7712 # Common symbols not allowed in MH_DYLIB files
7713 lt_prog_compiler_pic='-fno-common'
7717 # Just because we use GCC doesn't mean we suddenly get shared libraries
7718 # on systems that don't support them.
7719 lt_prog_compiler_can_build_shared=no
7724 if test -d /usr/nec; then
7725 lt_prog_compiler_pic=-Kconform_pic
7730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7737 lt_prog_compiler_pic='-fPIC'
7743 lt_prog_compiler_pic='-fPIC'
7747 # PORTME Check for flag to pass linker flags through the system compiler.
7750 lt_prog_compiler_wl='-Wl,'
7751 if test "$host_cpu" = ia64; then
7752 # AIX 5 now supports IA64 processor
7753 lt_prog_compiler_static='-Bstatic'
7755 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7759 # PIC is the default on this platform
7760 # Common symbols not allowed in MH_DYLIB files
7761 case $cc_basename in
7763 lt_prog_compiler_pic='-qnocommon'
7764 lt_prog_compiler_wl='-Wl,'
7769 mingw* | pw32* | os2*)
7770 # This hack is so that the source file can tell whether it is being
7771 # built for inclusion in a dll (and should export symbols for example).
7772 lt_prog_compiler_pic='-DDLL_EXPORT'
7775 hpux9* | hpux10* | hpux11*)
7776 lt_prog_compiler_wl='-Wl,'
7777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7784 lt_prog_compiler_pic='+Z'
7787 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7788 lt_prog_compiler_static='${wl}-a ${wl}archive'
7791 irix5* | irix6* | nonstopux*)
7792 lt_prog_compiler_wl='-Wl,'
7793 # PIC (with -KPIC) is the default.
7794 lt_prog_compiler_static='-non_shared'
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-Bstatic'
7803 case $cc_basename in
7805 lt_prog_compiler_wl='-Wl,'
7806 lt_prog_compiler_pic='-KPIC'
7807 lt_prog_compiler_static='-static'
7809 pgcc* | pgf77* | pgf90* | pgf95*)
7810 # Portland Group compilers (*not* the Pentium gcc compiler,
7811 # which looks to be a dead project)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-fpic'
7814 lt_prog_compiler_static='-Bstatic'
7817 lt_prog_compiler_wl='-Wl,'
7818 # All Alpha code is PIC.
7819 lt_prog_compiler_static='-non_shared'
7824 osf3* | osf4* | osf5*)
7825 lt_prog_compiler_wl='-Wl,'
7826 # All OSF/1 code is PIC.
7827 lt_prog_compiler_static='-non_shared'
7831 lt_prog_compiler_pic='-Kpic'
7832 lt_prog_compiler_static='-dn'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 case $cc_basename in
7840 lt_prog_compiler_wl='-Qoption ld ';;
7842 lt_prog_compiler_wl='-Wl,';;
7847 lt_prog_compiler_wl='-Qoption ld '
7848 lt_prog_compiler_pic='-PIC'
7849 lt_prog_compiler_static='-Bstatic'
7852 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_pic='-KPIC'
7855 lt_prog_compiler_static='-Bstatic'
7859 if test -d /usr/nec ;then
7860 lt_prog_compiler_pic='-Kconform_pic'
7861 lt_prog_compiler_static='-Bstatic'
7866 lt_prog_compiler_wl='-Wl,'
7867 lt_prog_compiler_can_build_shared=no
7871 lt_prog_compiler_pic='-pic'
7872 lt_prog_compiler_static='-Bstatic'
7876 lt_prog_compiler_can_build_shared=no
7881 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7882 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7885 # Check to make sure the PIC flag actually works.
7887 if test -n "$lt_prog_compiler_pic"; then
7889 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7890 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7891 if test "${lt_prog_compiler_pic_works+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 lt_prog_compiler_pic_works=no
7895 ac_outfile=conftest.$ac_objext
7896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7897 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7898 # Insert the option either (1) after the last *FLAGS variable, or
7899 # (2) before a word containing "conftest.", or (3) at the end.
7900 # Note that $ac_compile itself does not contain backslashes and begins
7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
7902 # The option is referenced via a variable to avoid confusing sed.
7903 lt_compile=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
7907 (eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
7908 (eval "$lt_compile" 2>conftest.err)
7910 cat conftest.err >&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 if (exit $ac_status) && test -s "$ac_outfile"; then
7913 # The compiler can only warn and ignore the option if not recognized
7914 # So say no if there are warnings other than the usual output.
7915 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7916 $SED '/^$/d' conftest.err >conftest.er2
7917 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7918 lt_prog_compiler_pic_works=yes
7924 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7925 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7927 if test x"$lt_prog_compiler_pic_works" = xyes; then
7928 case $lt_prog_compiler_pic in
7930 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7933 lt_prog_compiler_pic=
7934 lt_prog_compiler_can_build_shared=no
7939 # For platforms which do not support PIC, -DPIC is meaningless:
7941 lt_prog_compiler_pic=
7944 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7948 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7950 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 lt_cv_prog_compiler_c_o=no
7954 $rm -r conftest 2>/dev/null
7958 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7960 lt_compiler_flag="-o out/conftest2.$ac_objext"
7961 # Insert the option either (1) after the last *FLAGS variable, or
7962 # (2) before a word containing "conftest.", or (3) at the end.
7963 # Note that $ac_compile itself does not contain backslashes and begins
7964 # with a dollar sign (not a hyphen), so the echo should work correctly.
7965 lt_compile=`echo "$ac_compile" | $SED \
7966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7968 -e 's:$: $lt_compiler_flag:'`
7969 (eval echo "\"\$as_me:7969: $lt_compile\"" >&5)
7970 (eval "$lt_compile" 2>out/conftest.err)
7972 cat out/conftest.err >&5
7973 echo "$as_me:7973: \$? = $ac_status" >&5
7974 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7976 # The compiler can only warn and ignore the option if not recognized
7977 # So say no if there are warnings
7978 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7979 $SED '/^$/d' out/conftest.err >out/conftest.er2
7980 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7981 lt_cv_prog_compiler_c_o=yes
7986 # SGI C++ compiler will create directory out/ii_files/ for
7987 # template instantiation
7988 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7989 $rm out/* && rmdir out
7995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7999 hard_links="nottested"
8000 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8001 # do not overwrite the value of need_locks provided by the user
8002 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8008 ln conftest.a conftest.b 2>&5 || hard_links=no
8009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8010 echo "$as_me:$LINENO: result: $hard_links" >&5
8011 echo "${ECHO_T}$hard_links" >&6
8012 if test "$hard_links" = no; then
8013 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8021 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8025 allow_undefined_flag=
8026 enable_shared_with_static_runtimes=no
8028 archive_expsym_cmds=
8029 old_archive_From_new_cmds=
8030 old_archive_from_expsyms_cmds=
8031 export_dynamic_flag_spec=
8032 whole_archive_flag_spec=
8033 thread_safe_flag_spec=
8034 hardcode_libdir_flag_spec=
8035 hardcode_libdir_flag_spec_ld=
8036 hardcode_libdir_separator=
8039 hardcode_shlibpath_var=unsupported
8040 link_all_deplibs=unknown
8041 hardcode_automatic=no
8044 always_export_symbols=no
8045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8046 # include_expsyms should be a list of space-separated symbols to be *always*
8047 # included in the symbol list
8049 # exclude_expsyms can be an extended regexp of symbols to exclude
8050 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8051 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8052 # as well as any symbol that contains `d'.
8053 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8054 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8055 # platforms (ab)use it in PIC code, but their linkers get confused if
8056 # the symbol is explicitly referenced. Since portable code cannot
8057 # rely on this symbol name, it's probably fine to never include it in
8058 # preloaded symbol tables.
8059 extract_expsyms_cmds=
8060 # Just being paranoid about ensuring that cc_basename is set.
8061 for cc_temp in $compiler""; do
8063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8069 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8072 cygwin* | mingw* | pw32*)
8073 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8074 # When not using gcc, we currently assume that we are using
8075 # Microsoft Visual C++.
8076 if test "$GCC" != yes; then
8086 if test "$with_gnu_ld" = yes; then
8087 # If archive_cmds runs LD, not CC, wlarc should be empty
8090 # Set some defaults for GNU ld with shared library support. These
8091 # are reset later if shared libraries are not supported. Putting them
8092 # here allows them to be overridden if necessary.
8093 runpath_var=LD_RUN_PATH
8094 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8095 export_dynamic_flag_spec='${wl}--export-dynamic'
8096 # ancient GNU ld didn't support --whole-archive et. al.
8097 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8098 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8100 whole_archive_flag_spec=
8102 supports_anon_versioning=no
8103 case `$LD -v 2>/dev/null` in
8104 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8105 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8106 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8107 *\ 2.11.*) ;; # other 2.11 versions
8108 *) supports_anon_versioning=yes ;;
8111 # See if GNU ld supports shared libraries.
8113 aix3* | aix4* | aix5*)
8114 # On AIX/PPC, the GNU linker is very broken
8115 if test "$host_cpu" != ia64; then
8119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8120 *** to be unable to reliably create shared libraries on AIX.
8121 *** Therefore, libtool is disabling shared libraries support. If you
8122 *** really care for shared libraries, you may want to modify your PATH
8123 *** so that a non-GNU linker is found, and then restart.
8130 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)'
8131 hardcode_libdir_flag_spec='-L$libdir'
8132 hardcode_minus_L=yes
8134 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8135 # that the semantics of dynamic libraries on AmigaOS, at least up
8136 # to version 4, is to share data among multiple programs linked
8137 # with the same dynamic library. Since this doesn't match the
8138 # behavior of shared libraries on other platforms, we can't use
8144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145 allow_undefined_flag=unsupported
8146 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8147 # support --undefined. This deserves some investigation. FIXME
8148 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154 cygwin* | mingw* | pw32*)
8155 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8156 # as there is no search path for DLLs.
8157 hardcode_libdir_flag_spec='-L$libdir'
8158 allow_undefined_flag=unsupported
8159 always_export_symbols=no
8160 enable_shared_with_static_runtimes=yes
8161 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8163 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8165 # If the export-symbols file already is a .def file (1st line
8166 # is EXPORTS), use it as is; otherwise, prepend...
8167 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8168 cp $export_symbols $output_objdir/$soname.def;
8170 echo EXPORTS > $output_objdir/$soname.def;
8171 cat $export_symbols >> $output_objdir/$soname.def;
8173 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8182 case $cc_basename,$host_cpu in
8183 pgcc*) # Portland Group C compiler
8184 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'
8185 tmp_addflag=' $pic_flag'
8187 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8188 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'
8189 tmp_addflag=' $pic_flag -Mnomain' ;;
8190 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8191 tmp_addflag=' -i_dynamic' ;;
8192 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8193 tmp_addflag=' -i_dynamic -nofor_main' ;;
8194 ifc* | ifort*) # Intel Fortran compiler
8195 tmp_addflag=' -nofor_main' ;;
8197 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8199 if test $supports_anon_versioning = yes; then
8200 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8202 $echo "local: *; };" >> $output_objdir/$libname.ver~
8203 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8212 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8225 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8226 *** create shared libraries on Solaris systems. Therefore, libtool
8227 *** is disabling shared libraries support. We urge you to upgrade GNU
8228 *** binutils to release 2.9.1 or newer. Another option is to modify
8229 *** your PATH or compiler configuration so that the native linker is
8230 *** used, and then restart.
8233 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8245 hardcode_shlibpath_var=no
8249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8258 if test "$ld_shlibs" = no; then
8260 hardcode_libdir_flag_spec=
8261 export_dynamic_flag_spec=
8262 whole_archive_flag_spec=
8265 # PORTME fill in a description of your system's linker (not GNU ld)
8268 allow_undefined_flag=unsupported
8269 always_export_symbols=yes
8270 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'
8271 # Note: this linker hardcodes the directories in LIBPATH if there
8272 # are no directories specified by -L.
8273 hardcode_minus_L=yes
8274 if test "$GCC" = yes && test -z "$link_static_flag"; then
8275 # Neither direct hardcoding nor static linking is supported with a
8277 hardcode_direct=unsupported
8282 if test "$host_cpu" = ia64; then
8283 # On IA64, the linker does run time linking by default, so we don't
8284 # have to do anything special.
8285 aix_use_runtimelinking=no
8286 exp_sym_flag='-Bexport'
8289 # If we're using GNU nm, then we don't want the "-C" option.
8290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8291 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8292 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'
8294 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'
8296 aix_use_runtimelinking=no
8298 # Test if we are trying to use run time linking or normal
8299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8300 # need to do runtime linking.
8301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8302 for ld_flag in $LDFLAGS; do
8303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8304 aix_use_runtimelinking=yes
8310 exp_sym_flag='-bexport'
8311 no_entry_flag='-bnoentry'
8314 # When large executables or shared objects are built, AIX ld can
8315 # have problems creating the table of contents. If linking a library
8316 # or program results in "error TOC overflow" add -mminimal-toc to
8317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8322 hardcode_libdir_separator=':'
8323 link_all_deplibs=yes
8325 if test "$GCC" = yes; then
8326 case $host_os in aix4.[012]|aix4.[012].*)
8327 # We only want to do this on AIX 4.2 and lower, the check
8328 # below for broken collect2 doesn't work under 4.3+
8329 collect2name=`${CC} -print-prog-name=collect2`
8330 if test -f "$collect2name" && \
8331 strings "$collect2name" | grep resolve_lib_name >/dev/null
8333 # We have reworked collect2
8336 # We have old collect2
8337 hardcode_direct=unsupported
8338 # It fails to find uninstalled libraries when the uninstalled
8339 # path is not listed in the libpath. Setting hardcode_minus_L
8340 # to unsupported forces relinking
8341 hardcode_minus_L=yes
8342 hardcode_libdir_flag_spec='-L$libdir'
8343 hardcode_libdir_separator=
8346 shared_flag='-shared'
8347 if test "$aix_use_runtimelinking" = yes; then
8348 shared_flag="$shared_flag "'${wl}-G'
8352 if test "$host_cpu" = ia64; then
8353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8354 # chokes on -Wl,-G. The following line is correct:
8357 if test "$aix_use_runtimelinking" = yes; then
8358 shared_flag='${wl}-G'
8360 shared_flag='${wl}-bM:SRE'
8365 # It seems that -bexpall does not export symbols beginning with
8366 # underscore (_), so it is better to generate a list of symbols to export.
8367 always_export_symbols=yes
8368 if test "$aix_use_runtimelinking" = yes; then
8369 # Warning - without using the other runtime loading flags (-brtl),
8370 # -berok will link without error, but may produce a broken library.
8371 allow_undefined_flag='-berok'
8372 # Determine the default libpath from the value encoded in an empty executable.
8373 cat >conftest.$ac_ext <<_ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390 (eval $ac_link) 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag"
8398 || test ! -s conftest.err'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8413 # Check for a 64-bit object if we didn't find anything.
8414 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; }
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8421 rm -f conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8425 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8426 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"
8428 if test "$host_cpu" = ia64; then
8429 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8430 allow_undefined_flag="-z nodefs"
8431 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"
8433 # Determine the default libpath from the value encoded in an empty executable.
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest$ac_exeext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8474 # Check for a 64-bit object if we didn't find anything.
8475 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; }
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8482 rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8486 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8487 # Warning - without using the other run time loading flags,
8488 # -berok will link without error, but may produce a broken library.
8489 no_undefined_flag=' ${wl}-bernotok'
8490 allow_undefined_flag=' ${wl}-berok'
8491 # -bexpall does not export symbols beginning with underscore (_)
8492 always_export_symbols=yes
8493 # Exported symbols can be pulled into shared objects from archives
8494 whole_archive_flag_spec=' '
8495 archive_cmds_need_lc=yes
8496 # This is similar to how AIX traditionally builds its shared libraries.
8497 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'
8503 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)'
8504 hardcode_libdir_flag_spec='-L$libdir'
8505 hardcode_minus_L=yes
8506 # see comment about different semantics on the GNU ld section
8511 export_dynamic_flag_spec=-rdynamic
8514 cygwin* | mingw* | pw32*)
8515 # When not using gcc, we currently assume that we are using
8516 # Microsoft Visual C++.
8517 # hardcode_libdir_flag_spec is actually meaningless, as there is
8518 # no search path for DLLs.
8519 hardcode_libdir_flag_spec=' '
8520 allow_undefined_flag=unsupported
8521 # Tell ltmain to make .lib files, not .a files.
8523 # Tell ltmain to make .dll files, not .so files.
8525 # FIXME: Setting linknames here is a bad hack.
8526 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8527 # The linker will automatically build a .lib file if we build a DLL.
8528 old_archive_From_new_cmds='true'
8529 # FIXME: Should let the user specify the lib program.
8530 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8531 fix_srcfile_path='`cygpath -w "$srcfile"`'
8532 enable_shared_with_static_runtimes=yes
8535 darwin* | rhapsody*)
8537 rhapsody* | darwin1.[012])
8538 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8541 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8542 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8544 case ${MACOSX_DEPLOYMENT_TARGET} in
8546 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8549 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8555 archive_cmds_need_lc=no
8557 hardcode_automatic=yes
8558 hardcode_shlibpath_var=unsupported
8559 whole_archive_flag_spec=''
8560 link_all_deplibs=yes
8561 if test "$GCC" = yes ; then
8562 output_verbose_link_cmd='echo'
8563 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8564 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8566 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}'
8567 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}'
8569 case $cc_basename in
8571 output_verbose_link_cmd='echo'
8572 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8573 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8575 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}'
8576 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}'
8586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_shlibpath_var=no
8595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8596 # support. Future versions do this automatically, but an explicit c++rt0.o
8597 # does not break anything, and helps significantly (at the cost of a little
8600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8601 hardcode_libdir_flag_spec='-R$libdir'
8603 hardcode_shlibpath_var=no
8606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8610 hardcode_minus_L=yes
8611 hardcode_shlibpath_var=no
8614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8615 freebsd* | kfreebsd*-gnu | dragonfly*)
8616 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8617 hardcode_libdir_flag_spec='-R$libdir'
8619 hardcode_shlibpath_var=no
8623 if test "$GCC" = yes; then
8624 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'
8626 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'
8628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8629 hardcode_libdir_separator=:
8632 # hardcode_minus_L: Not really in the search PATH,
8633 # but as the default location of the library.
8634 hardcode_minus_L=yes
8635 export_dynamic_flag_spec='${wl}-E'
8639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8642 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8645 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8651 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8658 if test "$with_gnu_ld" = no; then
8661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8662 hardcode_libdir_flag_spec_ld='+b $libdir'
8663 hardcode_libdir_separator=:
8665 hardcode_shlibpath_var=no
8668 hardcode_libdir_flag_spec='-L$libdir'
8670 hardcode_shlibpath_var=no
8672 # hardcode_minus_L: Not really in the search PATH,
8673 # but as the default location of the library.
8674 hardcode_minus_L=yes
8677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8678 hardcode_libdir_separator=:
8680 export_dynamic_flag_spec='${wl}-E'
8682 # hardcode_minus_L: Not really in the search PATH,
8683 # but as the default location of the library.
8684 hardcode_minus_L=yes
8690 irix5* | irix6* | nonstopux*)
8691 if test "$GCC" = yes; then
8692 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'
8694 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'
8695 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698 hardcode_libdir_separator=:
8699 link_all_deplibs=yes
8703 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8706 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8708 hardcode_libdir_flag_spec='-R$libdir'
8710 hardcode_shlibpath_var=no
8714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717 hardcode_libdir_separator=:
8718 hardcode_shlibpath_var=no
8723 hardcode_shlibpath_var=no
8724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8725 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8728 export_dynamic_flag_spec='${wl}-E'
8731 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_libdir_flag_spec='-R$libdir'
8736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8737 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8744 hardcode_libdir_flag_spec='-L$libdir'
8745 hardcode_minus_L=yes
8746 allow_undefined_flag=unsupported
8747 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'
8748 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8752 if test "$GCC" = yes; then
8753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8754 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'
8756 allow_undefined_flag=' -expect_unresolved \*'
8757 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'
8759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760 hardcode_libdir_separator=:
8763 osf4* | osf5*) # as osf3* with the addition of -msym flag
8764 if test "$GCC" = yes; then
8765 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8766 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'
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769 allow_undefined_flag=' -expect_unresolved \*'
8770 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'
8771 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8772 $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'
8774 # Both c and cxx compiler support -rpath directly
8775 hardcode_libdir_flag_spec='-rpath $libdir'
8777 hardcode_libdir_separator=:
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_shlibpath_var=no
8783 export_dynamic_flag_spec='${wl}-Bexport'
8784 runpath_var=LD_RUN_PATH
8785 hardcode_runpath_var=yes
8789 no_undefined_flag=' -z text'
8790 if test "$GCC" = yes; then
8792 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8794 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8797 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8801 hardcode_libdir_flag_spec='-R$libdir'
8802 hardcode_shlibpath_var=no
8804 solaris2.[0-5] | solaris2.[0-5].*) ;;
8806 # The compiler driver will combine linker options so we
8807 # cannot just pass the convience library names through
8808 # without $wl, iff we do not link with $LD.
8809 # Luckily, gcc supports the same syntax we need for Sun Studio.
8810 # Supported since Solaris 2.6 (maybe 2.5.1?)
8813 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8815 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' ;;
8818 link_all_deplibs=yes
8822 if test "x$host_vendor" = xsequent; then
8823 # Use $CC to link under sequent, because it throws in some extra .o
8824 # files that make .init and .fini sections work.
8825 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8829 hardcode_libdir_flag_spec='-L$libdir'
8831 hardcode_minus_L=yes
8832 hardcode_shlibpath_var=no
8836 case $host_vendor in
8838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839 hardcode_direct=yes # is this really true???
8842 ## LD is ld it makes a PLAMLIB
8843 ## CC just makes a GrossModule.
8844 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8845 reload_cmds='$CC -r -o $output$reload_objs'
8849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8850 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8853 runpath_var='LD_RUN_PATH'
8854 hardcode_shlibpath_var=no
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_shlibpath_var=no
8860 export_dynamic_flag_spec='-Bexport'
8864 if test -d /usr/nec; then
8865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866 hardcode_shlibpath_var=no
8867 runpath_var=LD_RUN_PATH
8868 hardcode_runpath_var=yes
8874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8877 hardcode_shlibpath_var=no
8878 hardcode_runpath_var=yes
8879 runpath_var=LD_RUN_PATH
8882 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8883 no_undefined_flag='${wl}-z ${wl}text'
8884 if test "$GCC" = yes; then
8885 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8887 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8889 runpath_var='LD_RUN_PATH'
8890 hardcode_shlibpath_var=no
8894 no_undefined_flag=' -z text'
8895 # $CC -shared without GNU ld will not create a library from C++
8896 # object files and a static libstdc++, better avoid it by now
8897 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8900 hardcode_libdir_flag_spec=
8901 hardcode_shlibpath_var=no
8902 runpath_var='LD_RUN_PATH'
8906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_libdir_flag_spec='-L$libdir'
8908 hardcode_shlibpath_var=no
8917 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8918 echo "${ECHO_T}$ld_shlibs" >&6
8919 test "$ld_shlibs" = no && can_build_shared=no
8921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8922 if test "$GCC" = yes; then
8923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8927 # Do we need to explicitly link libc?
8929 case "x$archive_cmds_need_lc" in
8931 # Assume -lc should be added
8932 archive_cmds_need_lc=yes
8934 if test "$enable_shared" = yes && test "$GCC" = yes; then
8935 case $archive_cmds in
8937 # FIXME: we may have to deal with multi-command sequences.
8940 # Test whether the compiler implicitly links with -lc since on some
8941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8942 # to ld, don't add -lc before -lgcc.
8943 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } 2>conftest.err; then
8955 libobjs=conftest.$ac_objext
8957 wl=$lt_prog_compiler_wl
8963 lt_save_allow_undefined_flag=$allow_undefined_flag
8964 allow_undefined_flag=
8965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8966 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }
8971 archive_cmds_need_lc=no
8973 archive_cmds_need_lc=yes
8975 allow_undefined_flag=$lt_save_allow_undefined_flag
8977 cat conftest.err 1>&5
8980 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8981 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8991 libname_spec='lib$name'
8999 shlibpath_overrides_runpath=unknown
9001 dynamic_linker="$host_os ld.so"
9002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9003 if test "$GCC" = yes; then
9004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9006 # if the path contains ";" then we assume it to be the separator
9007 # otherwise default to the standard path separator (i.e. ":") - it is
9008 # assumed that no part of a normal pathname contains ";" but that should
9009 # okay in the real world where ";" in dirpaths is itself problematic.
9010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9017 need_lib_prefix=unknown
9018 hardcode_into_libs=no
9020 # when you set need_version to no, make sure it does not cause -set_version
9021 # flags to be left without arguments
9022 need_version=unknown
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9028 shlibpath_var=LIBPATH
9030 # AIX 3 has no versioning support, so we append a major version to the name.
9031 soname_spec='${libname}${release}${shared_ext}$major'
9038 hardcode_into_libs=yes
9039 if test "$host_cpu" = ia64; then
9040 # AIX 5 supports IA64
9041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9042 shlibpath_var=LD_LIBRARY_PATH
9044 # With GCC up to 2.95.x, collect2 would create an import file
9045 # for dependence libraries. The import file would start with
9046 # the line `#! .'. This would cause the generated library to
9047 # depend on `.', always an invalid library. This was fixed in
9048 # development snapshots of GCC prior to 3.0.
9050 aix4 | aix4.[01] | aix4.[01].*)
9051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9061 # soname into executable. Probably we can add versioning support to
9062 # collect2, so additional links can be useful in future.
9063 if test "$aix_use_runtimelinking" = yes; then
9064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9065 # instead of lib<name>.a to let people know that these are not
9066 # typical AIX shared libraries.
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 # We preserve .a as extension for shared libraries through AIX4.2
9070 # and later when we are not doing run time linking.
9071 library_names_spec='${libname}${release}.a $libname.a'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LIBPATH
9079 library_names_spec='$libname.ixlibrary $libname.a'
9080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9081 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'
9085 library_names_spec='${libname}${shared_ext}'
9086 dynamic_linker="$host_os ld.so"
9087 shlibpath_var=LIBRARY_PATH
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9099 # the default ld.so.conf also contains /usr/contrib/lib and
9100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9101 # libtool to hard-code these into programs
9104 cygwin* | mingw* | pw32*)
9105 version_type=windows
9110 case $GCC,$host_os in
9111 yes,cygwin* | yes,mingw* | yes,pw32*)
9112 library_names_spec='$libname.dll.a'
9113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9114 postinstall_cmds='base_file=`basename \${file}`~
9115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9116 dldir=$destdir/`dirname \$dlpath`~
9117 test -d \$dldir || mkdir -p \$dldir~
9118 $install_prog $dir/$dlname \$dldir/$dlname~
9119 chmod a+x \$dldir/$dlname'
9120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9121 dlpath=$dir/\$dldll~
9123 shlibpath_overrides_runpath=yes
9127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9132 # MinGW DLLs use traditional 'lib' prefix
9133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9136 # It is most probably a Windows format PATH printed by
9137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9138 # path with ; separators, and with drive letters. We can handle the
9139 # drive letters (cygwin fileutils understands them), so leave them,
9140 # especially as we might pass files found there to a mingw objdump,
9141 # which wouldn't understand a cygwinified path. Ahh.
9142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9148 # pw32 DLLs use 'pw' prefix rather than 'lib'
9149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9158 dynamic_linker='Win32 ld.exe'
9159 # FIXME: first we should search . and the directory the executable is in
9163 darwin* | rhapsody*)
9164 dynamic_linker="$host_os dyld"
9168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9169 soname_spec='${libname}${release}${major}$shared_ext'
9170 shlibpath_overrides_runpath=yes
9171 shlibpath_var=DYLD_LIBRARY_PATH
9172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9174 if test "$GCC" = yes; then
9175 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"`
9177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 hardcode_into_libs=yes
9204 dynamic_linker='GNU ld.so'
9207 freebsd* | dragonfly*)
9208 # DragonFly does not have aout. When/if they implement a new
9209 # versioning mechanism, adjust this.
9210 if test -x /usr/bin/objformat; then
9211 objformat=`/usr/bin/objformat`
9214 freebsd[123]*) objformat=aout ;;
9218 version_type=freebsd-$objformat
9219 case $version_type in
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9230 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9235 freebsd3.[01]* | freebsdelf3.[01]*)
9236 shlibpath_overrides_runpath=yes
9237 hardcode_into_libs=yes
9240 shlibpath_overrides_runpath=no
9241 hardcode_into_libs=yes
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 hardcode_into_libs=yes
9256 hpux9* | hpux10* | hpux11*)
9257 # Give a soname corresponding to the major version so that dld.sl refuses to
9258 # link against other versions.
9265 hardcode_into_libs=yes
9266 dynamic_linker="$host_os dld.so"
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 if test "X$HPUX_IA64_MODE" = X32; then
9272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9280 hardcode_into_libs=yes
9281 dynamic_linker="$host_os dld.sl"
9282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9291 dynamic_linker="$host_os dld.sl"
9292 shlibpath_var=SHLIB_PATH
9293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9299 postinstall_cmds='chmod 555 $lib'
9302 irix5* | irix6* | nonstopux*)
9304 nonstopux*) version_type=nonstopux ;;
9306 if test "$lt_cv_prog_gnu_ld" = yes; then
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9317 irix5* | nonstopux*)
9321 case $LD in # libtool.m4 will add one of these switches to LD
9322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9323 libsuff= shlibsuff= libmagic=32-bit;;
9324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9325 libsuff=32 shlibsuff=N32 libmagic=N32;;
9326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9328 *) libsuff= shlibsuff= libmagic=never-match;;
9332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9333 shlibpath_overrides_runpath=no
9334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9336 hardcode_into_libs=yes
9339 # No shared lib support for Linux oldld, aout, or coff.
9340 linux*oldld* | linux*aout* | linux*coff*)
9344 # This must be Linux ELF.
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=no
9354 # This implies no fast_install, which is unacceptable.
9355 # Some rework will be needed to allow for fast_install
9356 # before this can be enabled.
9357 hardcode_into_libs=yes
9359 # Append ld.so.conf contents to the search path
9360 if test -f /etc/ld.so.conf; then
9361 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' ' '`
9362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9365 # We used to test for /lib/ld.so.1 and disable shared libraries on
9366 # powerpc, because MkLinux only supported shared libraries with the
9367 # GNU dynamic linker. Since this was broken with cross compilers,
9368 # most powerpc-linux boxes support dynamic linking these days and
9369 # people can always --disable-shared, the test was removed, and we
9370 # assume the GNU/Linux dynamic linker is in use.
9371 dynamic_linker='GNU/Linux ld.so'
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=no
9382 hardcode_into_libs=yes
9383 dynamic_linker='GNU ld.so'
9390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9393 dynamic_linker='NetBSD (a.out) ld.so'
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 dynamic_linker='NetBSD ld.elf_so'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 shlibpath_overrides_runpath=yes
9401 hardcode_into_libs=yes
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 shlibpath_overrides_runpath=yes
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 shlibpath_overrides_runpath=yes
9424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9427 *) need_version=no ;;
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9434 openbsd2.[89] | openbsd2.[89].*)
9435 shlibpath_overrides_runpath=no
9438 shlibpath_overrides_runpath=yes
9442 shlibpath_overrides_runpath=yes
9447 libname_spec='$name'
9450 library_names_spec='$libname${shared_ext} $libname.a'
9451 dynamic_linker='OS/2 ld.exe'
9452 shlibpath_var=LIBPATH
9455 osf3* | osf4* | osf5*)
9459 soname_spec='${libname}${release}${shared_ext}$major'
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 shlibpath_var=LD_LIBRARY_PATH
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 shlibpath_overrides_runpath=yes
9481 hardcode_into_libs=yes
9482 # ldd complains unless libraries are executable
9483 postinstall_cmds='chmod +x $lib'
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9489 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes
9492 if test "$with_gnu_ld" = yes; then
9498 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 case $host_vendor in
9505 shlibpath_overrides_runpath=no
9507 export_dynamic_flag_spec='${wl}-Blargedynsym'
9508 runpath_var=LD_RUN_PATH
9516 shlibpath_overrides_runpath=no
9517 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9523 if test -d /usr/nec ;then
9525 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9526 soname_spec='$libname${shared_ext}.$major'
9527 shlibpath_var=LD_LIBRARY_PATH
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 shlibpath_var=LD_LIBRARY_PATH
9542 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9543 echo "${ECHO_T}$dynamic_linker" >&6
9544 test "$dynamic_linker" = no && can_build_shared=no
9546 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9547 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9549 if test -n "$hardcode_libdir_flag_spec" || \
9550 test -n "$runpath_var" || \
9551 test "X$hardcode_automatic" = "Xyes" ; then
9553 # We can hardcode non-existant directories.
9554 if test "$hardcode_direct" != no &&
9555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9556 # have to relink, otherwise we might link with an installed library
9557 # when we should be linking with a yet-to-be-installed one
9558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9559 test "$hardcode_minus_L" != no; then
9560 # Linking always hardcodes the temporary library directory.
9561 hardcode_action=relink
9563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9564 hardcode_action=immediate
9567 # We cannot hardcode anything, or else we can only hardcode existing
9569 hardcode_action=unsupported
9571 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9572 echo "${ECHO_T}$hardcode_action" >&6
9574 if test "$hardcode_action" = relink; then
9575 # Fast installation is not supported
9576 enable_fast_install=no
9577 elif test "$shlibpath_overrides_runpath" = yes ||
9578 test "$enable_shared" = no; then
9579 # Fast installation is not necessary
9580 enable_fast_install=needless
9585 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9586 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9587 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9588 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9589 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9590 echo "$as_me:$LINENO: result: yes" >&5
9591 echo "${ECHO_T}yes" >&6
9593 # FIXME - insert some real tests, host_os isn't really good enough
9596 if test -n "$STRIP" ; then
9597 striplib="$STRIP -x"
9598 echo "$as_me:$LINENO: result: yes" >&5
9599 echo "${ECHO_T}yes" >&6
9601 echo "$as_me:$LINENO: result: no" >&5
9602 echo "${ECHO_T}no" >&6
9606 echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9612 if test "x$enable_dlopen" != xyes; then
9613 enable_dlopen=unknown
9614 enable_dlopen_self=unknown
9615 enable_dlopen_self_static=unknown
9622 lt_cv_dlopen="load_add_on"
9624 lt_cv_dlopen_self=yes
9628 lt_cv_dlopen="LoadLibrary"
9633 lt_cv_dlopen="dlopen"
9638 # if libdl is installed we need to link against it
9639 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 ac_check_lib_save_LIBS=$LIBS
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9653 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag"
9678 || test ! -s conftest.err'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_dl_dlopen=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_lib_dl_dlopen=no
9697 rm -f conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
9699 LIBS=$ac_check_lib_save_LIBS
9701 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9702 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9703 if test $ac_cv_lib_dl_dlopen = yes; then
9704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9709 lt_cv_dlopen_self=yes
9716 echo "$as_me:$LINENO: checking for shl_load" >&5
9717 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9718 if test "${ac_cv_func_shl_load+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9729 #define shl_load innocuous_shl_load
9731 /* System header to define __stub macros and hopefully few prototypes,
9732 which can conflict with char shl_load (); below.
9733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9734 <limits.h> exists even on freestanding compilers. */
9737 # include <limits.h>
9739 # include <assert.h>
9744 /* Override any gcc2 internal prototype to avoid an error. */
9749 /* We use char because int might match the return type of a gcc2
9750 builtin and then its argument prototype would still apply. */
9752 /* The GNU C library defines this for functions which it implements
9753 to always fail with ENOSYS. Some functions are actually named
9754 something starting with __ and the normal name is an alias. */
9755 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9758 char (*f) () = shl_load;
9767 return f != shl_load;
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
9776 grep -v '^ *+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_func_shl_load=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_func_shl_load=no
9801 rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9804 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9805 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9806 if test $ac_cv_func_shl_load = yes; then
9807 lt_cv_dlopen="shl_load"
9809 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9810 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9811 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 ac_check_lib_save_LIBS=$LIBS
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9823 /* Override any gcc2 internal prototype to avoid an error. */
9827 /* We use char because int might match the return type of a gcc2
9828 builtin and then its argument prototype would still apply. */
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>conftest.er1
9842 grep -v '^ *+' conftest.er1 >conftest.err
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -z "$ac_c_werror_flag"
9848 || test ! -s conftest.err'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_lib_dld_shl_load=yes
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 ac_cv_lib_dld_shl_load=no
9867 rm -f conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9871 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9873 if test $ac_cv_lib_dld_shl_load = yes; then
9874 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9876 echo "$as_me:$LINENO: checking for dlopen" >&5
9877 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9878 if test "${ac_cv_func_dlopen+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9889 #define dlopen innocuous_dlopen
9891 /* System header to define __stub macros and hopefully few prototypes,
9892 which can conflict with char dlopen (); below.
9893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9894 <limits.h> exists even on freestanding compilers. */
9897 # include <limits.h>
9899 # include <assert.h>
9904 /* Override any gcc2 internal prototype to avoid an error. */
9909 /* We use char because int might match the return type of a gcc2
9910 builtin and then its argument prototype would still apply. */
9912 /* The GNU C library defines this for functions which it implements
9913 to always fail with ENOSYS. Some functions are actually named
9914 something starting with __ and the normal name is an alias. */
9915 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9918 char (*f) () = dlopen;
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_func_dlopen=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_cv_func_dlopen=no
9961 rm -f conftest.err conftest.$ac_objext \
9962 conftest$ac_exeext conftest.$ac_ext
9964 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9965 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9966 if test $ac_cv_func_dlopen = yes; then
9967 lt_cv_dlopen="dlopen"
9969 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 ac_check_lib_save_LIBS=$LIBS
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9983 /* Override any gcc2 internal prototype to avoid an error. */
9987 /* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_lib_dl_dlopen=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_lib_dl_dlopen=no
10027 rm -f conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10033 if test $ac_cv_lib_dl_dlopen = yes; then
10034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10036 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10037 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10038 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lsvld $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 /* Override any gcc2 internal prototype to avoid an error. */
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag"
10075 || test ! -s conftest.err'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_lib_svld_dlopen=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_lib_svld_dlopen=no
10094 rm -f conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10100 if test $ac_cv_lib_svld_dlopen = yes; then
10101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10103 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10104 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_check_lib_save_LIBS=$LIBS
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any gcc2 internal prototype to avoid an error. */
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_dld_dld_link=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_lib_dld_dld_link=no
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10166 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10167 if test $ac_cv_lib_dld_dld_link = yes; then
10168 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10189 if test "x$lt_cv_dlopen" != xno; then
10195 case $lt_cv_dlopen in
10197 save_CPPFLAGS="$CPPFLAGS"
10198 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10200 save_LDFLAGS="$LDFLAGS"
10201 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10204 LIBS="$lt_cv_dlopen_libs $LIBS"
10206 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10207 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10208 if test "${lt_cv_dlopen_self+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 if test "$cross_compiling" = yes; then :
10212 lt_cv_dlopen_self=cross
10214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10215 lt_status=$lt_dlunknown
10216 cat > conftest.$ac_ext <<EOF
10217 #line 10217 "configure"
10218 #include "confdefs.h"
10227 # define LT_DLGLOBAL RTLD_GLOBAL
10230 # define LT_DLGLOBAL DL_GLOBAL
10232 # define LT_DLGLOBAL 0
10236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10237 find out it does not work in some platform. */
10238 #ifndef LT_DLLAZY_OR_NOW
10240 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10243 # define LT_DLLAZY_OR_NOW DL_LAZY
10246 # define LT_DLLAZY_OR_NOW RTLD_NOW
10249 # define LT_DLLAZY_OR_NOW DL_NOW
10251 # define LT_DLLAZY_OR_NOW 0
10259 extern "C" void exit (int);
10262 void fnord() { int i=42;}
10265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10266 int status = $lt_dlunknown;
10270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10271 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10272 /* dlclose (self); */
10278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10283 (./conftest; exit; ) >&5 2>/dev/null
10285 case x$lt_status in
10286 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10287 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10288 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10291 # compilation failed
10292 lt_cv_dlopen_self=no
10299 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10300 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10302 if test "x$lt_cv_dlopen_self" = xyes; then
10303 LDFLAGS="$LDFLAGS $link_static_flag"
10304 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10305 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10306 if test "${lt_cv_dlopen_self_static+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 if test "$cross_compiling" = yes; then :
10310 lt_cv_dlopen_self_static=cross
10312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313 lt_status=$lt_dlunknown
10314 cat > conftest.$ac_ext <<EOF
10315 #line 10315 "configure"
10316 #include "confdefs.h"
10325 # define LT_DLGLOBAL RTLD_GLOBAL
10328 # define LT_DLGLOBAL DL_GLOBAL
10330 # define LT_DLGLOBAL 0
10334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10335 find out it does not work in some platform. */
10336 #ifndef LT_DLLAZY_OR_NOW
10338 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10341 # define LT_DLLAZY_OR_NOW DL_LAZY
10344 # define LT_DLLAZY_OR_NOW RTLD_NOW
10347 # define LT_DLLAZY_OR_NOW DL_NOW
10349 # define LT_DLLAZY_OR_NOW 0
10357 extern "C" void exit (int);
10360 void fnord() { int i=42;}
10363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10364 int status = $lt_dlunknown;
10368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370 /* dlclose (self); */
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381 (./conftest; exit; ) >&5 2>/dev/null
10383 case x$lt_status in
10384 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10385 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10386 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10389 # compilation failed
10390 lt_cv_dlopen_self_static=no
10397 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10398 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10401 CPPFLAGS="$save_CPPFLAGS"
10402 LDFLAGS="$save_LDFLAGS"
10407 case $lt_cv_dlopen_self in
10408 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10409 *) enable_dlopen_self=unknown ;;
10412 case $lt_cv_dlopen_self_static in
10413 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10414 *) enable_dlopen_self_static=unknown ;;
10419 # Report which librarie types wil actually be built
10420 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10421 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10422 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10423 echo "${ECHO_T}$can_build_shared" >&6
10425 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10426 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10427 test "$can_build_shared" = "no" && enable_shared=no
10429 # On AIX, shared libraries and static libraries use the same namespace, and
10430 # are all built from PIC.
10433 test "$enable_shared" = yes && enable_static=no
10434 if test -n "$RANLIB"; then
10435 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10436 postinstall_cmds='$RANLIB $lib'
10441 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10442 test "$enable_shared" = yes && enable_static=no
10446 echo "$as_me:$LINENO: result: $enable_shared" >&5
10447 echo "${ECHO_T}$enable_shared" >&6
10449 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10450 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10451 # Make sure either enable_shared or enable_static is yes.
10452 test "$enable_shared" = yes || enable_static=yes
10453 echo "$as_me:$LINENO: result: $enable_static" >&5
10454 echo "${ECHO_T}$enable_static" >&6
10456 # The else clause should only fire when bootstrapping the
10457 # libtool distribution, otherwise you forgot to ship ltmain.sh
10458 # with your package, and you will get complaints that there are
10459 # no rules to generate ltmain.sh.
10460 if test -f "$ltmain"; then
10461 # See if we are running on zsh, and set the options which allow our commands through
10462 # without removal of \ escapes.
10463 if test -n "${ZSH_VERSION+set}" ; then
10464 setopt NO_GLOB_SUBST
10466 # Now quote all the things that may contain metacharacters while being
10467 # careful not to overquote the AC_SUBSTed values. We take copies of the
10468 # variables and quote the copies for generation of the libtool script.
10469 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10471 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10472 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10473 deplibs_check_method reload_flag reload_cmds need_locks \
10474 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10475 lt_cv_sys_global_symbol_to_c_name_address \
10476 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10477 old_postinstall_cmds old_postuninstall_cmds \
10481 lt_prog_compiler_wl \
10482 lt_prog_compiler_pic \
10483 lt_prog_compiler_static \
10484 lt_prog_compiler_no_builtin_flag \
10485 export_dynamic_flag_spec \
10486 thread_safe_flag_spec \
10487 whole_archive_flag_spec \
10488 enable_shared_with_static_runtimes \
10490 old_archive_from_new_cmds \
10495 compiler_lib_search_path \
10497 archive_expsym_cmds \
10499 postuninstall_cmds \
10500 old_archive_from_expsyms_cmds \
10501 allow_undefined_flag \
10502 no_undefined_flag \
10503 export_symbols_cmds \
10504 hardcode_libdir_flag_spec \
10505 hardcode_libdir_flag_spec_ld \
10506 hardcode_libdir_separator \
10507 hardcode_automatic \
10509 module_expsym_cmds \
10510 lt_cv_prog_compiler_c_o \
10512 include_expsyms; do
10515 old_archive_cmds | \
10516 old_archive_from_new_cmds | \
10518 archive_expsym_cmds | \
10520 module_expsym_cmds | \
10521 old_archive_from_expsyms_cmds | \
10522 export_symbols_cmds | \
10523 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10524 postinstall_cmds | postuninstall_cmds | \
10525 old_postinstall_cmds | old_postuninstall_cmds | \
10526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10527 # Double-quote double-evaled strings.
10528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10537 *'\$0 --fallback-echo"')
10538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10542 cfgfile="${ofile}T"
10543 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10545 { echo "$as_me:$LINENO: creating $ofile" >&5
10546 echo "$as_me: creating $ofile" >&6;}
10548 cat <<__EOF__ >> "$cfgfile"
10551 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10552 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10553 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10555 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10556 # Free Software Foundation, Inc.
10558 # This file is part of GNU Libtool:
10559 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10561 # This program is free software; you can redistribute it and/or modify
10562 # it under the terms of the GNU General Public License as published by
10563 # the Free Software Foundation; either version 2 of the License, or
10564 # (at your option) any later version.
10566 # This program is distributed in the hope that it will be useful, but
10567 # WITHOUT ANY WARRANTY; without even the implied warranty of
10568 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10569 # General Public License for more details.
10571 # You should have received a copy of the GNU General Public License
10572 # along with this program; if not, write to the Free Software
10573 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10575 # As a special exception to the GNU General Public License, if you
10576 # distribute this file as part of a program that contains a
10577 # configuration script generated by Autoconf, you may include it under
10578 # the same distribution terms that you use for the rest of that program.
10580 # A sed program that does not truncate output.
10583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10584 Xsed="$SED -e 1s/^X//"
10586 # The HP-UX ksh and POSIX shell print the target directory to stdout
10587 # if CDPATH is set.
10588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10590 # The names of the tagged configurations supported by this script.
10593 # ### BEGIN LIBTOOL CONFIG
10595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10597 # Shell to use when invoking shell scripts.
10600 # Whether or not to build shared libraries.
10601 build_libtool_libs=$enable_shared
10603 # Whether or not to build static libraries.
10604 build_old_libs=$enable_static
10606 # Whether or not to add -lc for building shared libraries.
10607 build_libtool_need_lc=$archive_cmds_need_lc
10609 # Whether or not to disallow shared libs when runtime libs are static
10610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10612 # Whether or not to optimize for fast installation.
10613 fast_install=$enable_fast_install
10616 host_alias=$host_alias
10620 # The build system.
10621 build_alias=$build_alias
10625 # An echo program that does not interpret backslashes.
10630 AR_FLAGS=$lt_AR_FLAGS
10635 # A language-specific compiler.
10638 # Is the compiler the GNU C compiler?
10644 # The linker used to build libraries.
10647 # Whether we need hard or soft links.
10650 # A BSD-compatible nm program.
10653 # A symbol stripping program
10656 # Used to examine libraries when file_magic_cmd begins "file"
10657 MAGIC_CMD=$MAGIC_CMD
10659 # Used on cygwin: DLL creation program.
10662 # Used on cygwin: object dumper.
10665 # Used on cygwin: assembler.
10668 # The name of the directory that contains temporary libtool files.
10671 # How to create reloadable object files.
10672 reload_flag=$lt_reload_flag
10673 reload_cmds=$lt_reload_cmds
10675 # How to pass a linker flag through the compiler.
10676 wl=$lt_lt_prog_compiler_wl
10678 # Object file suffix (normally "o").
10679 objext="$ac_objext"
10681 # Old archive suffix (normally "a").
10684 # Shared library suffix (normally ".so").
10685 shrext_cmds='$shrext_cmds'
10687 # Executable file suffix (normally "").
10690 # Additional compiler flags for building library objects.
10691 pic_flag=$lt_lt_prog_compiler_pic
10694 # What is the maximum length of a command?
10695 max_cmd_len=$lt_cv_sys_max_cmd_len
10697 # Does compiler simultaneously support -c and -o options?
10698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10700 # Must we lock files when doing compilation?
10701 need_locks=$lt_need_locks
10703 # Do we need the lib prefix for modules?
10704 need_lib_prefix=$need_lib_prefix
10706 # Do we need a version for libraries?
10707 need_version=$need_version
10709 # Whether dlopen is supported.
10710 dlopen_support=$enable_dlopen
10712 # Whether dlopen of programs is supported.
10713 dlopen_self=$enable_dlopen_self
10715 # Whether dlopen of statically linked programs is supported.
10716 dlopen_self_static=$enable_dlopen_self_static
10718 # Compiler flag to prevent dynamic linking.
10719 link_static_flag=$lt_lt_prog_compiler_static
10721 # Compiler flag to turn off builtin functions.
10722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10724 # Compiler flag to allow reflexive dlopens.
10725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10727 # Compiler flag to generate shared objects directly from archives.
10728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10730 # Compiler flag to generate thread-safe objects.
10731 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10733 # Library versioning type.
10734 version_type=$version_type
10736 # Format of library name prefix.
10737 libname_spec=$lt_libname_spec
10739 # List of archive names. First name is the real one, the rest are links.
10740 # The last name is the one that the linker finds with -lNAME.
10741 library_names_spec=$lt_library_names_spec
10743 # The coded name of the library, if different from the real name.
10744 soname_spec=$lt_soname_spec
10746 # Commands used to build and install an old-style archive.
10748 old_archive_cmds=$lt_old_archive_cmds
10749 old_postinstall_cmds=$lt_old_postinstall_cmds
10750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10752 # Create an old-style archive from a shared archive.
10753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10755 # Create a temporary old-style archive to link instead of a shared archive.
10756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10758 # Commands used to build and install a shared archive.
10759 archive_cmds=$lt_archive_cmds
10760 archive_expsym_cmds=$lt_archive_expsym_cmds
10761 postinstall_cmds=$lt_postinstall_cmds
10762 postuninstall_cmds=$lt_postuninstall_cmds
10764 # Commands used to build a loadable module (assumed same as above if empty)
10765 module_cmds=$lt_module_cmds
10766 module_expsym_cmds=$lt_module_expsym_cmds
10768 # Commands to strip libraries.
10769 old_striplib=$lt_old_striplib
10770 striplib=$lt_striplib
10772 # Dependencies to place before the objects being linked to create a
10774 predep_objects=$lt_predep_objects
10776 # Dependencies to place after the objects being linked to create a
10778 postdep_objects=$lt_postdep_objects
10780 # Dependencies to place before the objects being linked to create a
10782 predeps=$lt_predeps
10784 # Dependencies to place after the objects being linked to create a
10786 postdeps=$lt_postdeps
10788 # The library search path used internally by the compiler when linking
10789 # a shared library.
10790 compiler_lib_search_path=$lt_compiler_lib_search_path
10792 # Method to check whether dependent libraries are shared objects.
10793 deplibs_check_method=$lt_deplibs_check_method
10795 # Command to use when deplibs_check_method == file_magic.
10796 file_magic_cmd=$lt_file_magic_cmd
10798 # Flag that allows shared libraries with undefined symbols to be built.
10799 allow_undefined_flag=$lt_allow_undefined_flag
10801 # Flag that forces no undefined symbols.
10802 no_undefined_flag=$lt_no_undefined_flag
10804 # Commands used to finish a libtool library installation in a directory.
10805 finish_cmds=$lt_finish_cmds
10807 # Same as above, but a single script fragment to be evaled but not shown.
10808 finish_eval=$lt_finish_eval
10810 # Take the output of nm and produce a listing of raw symbols and C names.
10811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10813 # Transform the output of nm in a proper C declaration
10814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10816 # Transform the output of nm in a C name address pair
10817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10819 # This is the shared library runtime path variable.
10820 runpath_var=$runpath_var
10822 # This is the shared library path variable.
10823 shlibpath_var=$shlibpath_var
10825 # Is shlibpath searched before the hard-coded library search path?
10826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10828 # How to hardcode a shared library path into an executable.
10829 hardcode_action=$hardcode_action
10831 # Whether we should hardcode library paths into libraries.
10832 hardcode_into_libs=$hardcode_into_libs
10834 # Flag to hardcode \$libdir into a binary during linking.
10835 # This must work even if \$libdir does not exist.
10836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10838 # If ld is used when linking, flag to hardcode \$libdir into
10839 # a binary during linking. This must work even if \$libdir does
10841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10843 # Whether we need a single -rpath flag with a separated argument.
10844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10847 # resulting binary.
10848 hardcode_direct=$hardcode_direct
10850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10851 # resulting binary.
10852 hardcode_minus_L=$hardcode_minus_L
10854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10855 # the resulting binary.
10856 hardcode_shlibpath_var=$hardcode_shlibpath_var
10858 # Set to yes if building a shared library automatically hardcodes DIR into the library
10859 # and all subsequent libraries and executables linked against it.
10860 hardcode_automatic=$hardcode_automatic
10862 # Variables whose values should be saved in libtool wrapper scripts and
10863 # restored at relink time.
10864 variables_saved_for_relink="$variables_saved_for_relink"
10866 # Whether libtool must link a program against all its dependency libraries.
10867 link_all_deplibs=$link_all_deplibs
10869 # Compile-time system search path for libraries
10870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10872 # Run-time system search path for libraries
10873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10875 # Fix the shell variable \$srcfile for the compiler.
10876 fix_srcfile_path="$fix_srcfile_path"
10878 # Set to yes if exported symbols are required.
10879 always_export_symbols=$always_export_symbols
10881 # The commands to list exported symbols.
10882 export_symbols_cmds=$lt_export_symbols_cmds
10884 # The commands to extract the exported symbol list from a shared archive.
10885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10887 # Symbols that should not be listed in the preloaded symbols.
10888 exclude_expsyms=$lt_exclude_expsyms
10890 # Symbols that must always be exported.
10891 include_expsyms=$lt_include_expsyms
10893 # ### END LIBTOOL CONFIG
10900 cat <<\EOF >> "$cfgfile"
10902 # AIX sometimes has problems with the GCC collect2 program. For some
10903 # reason, if we set the COLLECT_NAMES environment variable, the problems
10904 # vanish in a puff of smoke.
10905 if test "X${COLLECT_NAMES+set}" != Xset; then
10907 export COLLECT_NAMES
10913 # We use sed instead of cat because bash on DJGPP gets confused if
10914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10915 # text mode, it properly converts lines to CR/LF. This bash problem
10916 # is reportedly fixed, but why not run on old versions too?
10917 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10919 mv -f "$cfgfile" "$ofile" || \
10920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10924 # If there is no Makefile yet, we rely on a make rule to execute
10925 # `config.status --recheck' to rerun these tests and create the
10926 # libtool script then.
10927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10928 if test -f "$ltmain_in"; then
10929 test -f Makefile && make "$ltmain"
10935 ac_cpp='$CPP $CPPFLAGS'
10936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943 # Check whether --with-tags or --without-tags was given.
10944 if test "${with_tags+set}" = set; then
10945 withval="$with_tags"
10946 tagnames="$withval"
10949 if test -f "$ltmain" && test -n "$tagnames"; then
10950 if test ! -f "${ofile}"; then
10951 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10952 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10955 if test -z "$LTCC"; then
10956 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10957 if test -z "$LTCC"; then
10958 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10959 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10962 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10966 # Extract list of available tagged configurations in $ofile.
10967 # Note that this assumes the entire list is on one line.
10968 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10971 for tagname in $tagnames; do
10973 # Check whether tagname contains only valid characters
10974 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10976 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10978 { (exit 1); exit 1; }; }
10982 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10984 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10986 { (exit 1); exit 1; }; }
10989 # Update the list of available tags.
10990 if test -n "$tagname"; then
10991 echo appending configuration tag \"$tagname\" to $ofile
10995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10996 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10997 (test "X$CXX" != "Xg++"))) ; then
11005 if test -n "$F77" && test "X$F77" != "Xno"; then
11013 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11024 # Source file extension for RC test sources.
11027 # Object file extension for compiled RC test sources.
11031 # Code to be used in simple compile tests
11032 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11034 # Code to be used in simple link tests
11035 lt_simple_link_test_code="$lt_simple_compile_test_code"
11037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11039 # If no C compiler was specified, use CC.
11042 # Allow CC to be a program name with arguments.
11046 # save warnings/boilerplate of simple test code
11047 ac_outfile=conftest.$ac_objext
11048 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11050 _lt_compiler_boilerplate=`cat conftest.err`
11053 ac_outfile=conftest.$ac_objext
11054 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11056 _lt_linker_boilerplate=`cat conftest.err`
11060 # Allow CC to be a program name with arguments.
11065 for cc_temp in $compiler""; do
11067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11073 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11075 lt_cv_prog_compiler_c_o_RC=yes
11077 # The else clause should only fire when bootstrapping the
11078 # libtool distribution, otherwise you forgot to ship ltmain.sh
11079 # with your package, and you will get complaints that there are
11080 # no rules to generate ltmain.sh.
11081 if test -f "$ltmain"; then
11082 # See if we are running on zsh, and set the options which allow our commands through
11083 # without removal of \ escapes.
11084 if test -n "${ZSH_VERSION+set}" ; then
11085 setopt NO_GLOB_SUBST
11087 # Now quote all the things that may contain metacharacters while being
11088 # careful not to overquote the AC_SUBSTed values. We take copies of the
11089 # variables and quote the copies for generation of the libtool script.
11090 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11092 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11093 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11094 deplibs_check_method reload_flag reload_cmds need_locks \
11095 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11096 lt_cv_sys_global_symbol_to_c_name_address \
11097 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11098 old_postinstall_cmds old_postuninstall_cmds \
11102 lt_prog_compiler_wl_RC \
11103 lt_prog_compiler_pic_RC \
11104 lt_prog_compiler_static_RC \
11105 lt_prog_compiler_no_builtin_flag_RC \
11106 export_dynamic_flag_spec_RC \
11107 thread_safe_flag_spec_RC \
11108 whole_archive_flag_spec_RC \
11109 enable_shared_with_static_runtimes_RC \
11110 old_archive_cmds_RC \
11111 old_archive_from_new_cmds_RC \
11112 predep_objects_RC \
11113 postdep_objects_RC \
11116 compiler_lib_search_path_RC \
11118 archive_expsym_cmds_RC \
11119 postinstall_cmds_RC \
11120 postuninstall_cmds_RC \
11121 old_archive_from_expsyms_cmds_RC \
11122 allow_undefined_flag_RC \
11123 no_undefined_flag_RC \
11124 export_symbols_cmds_RC \
11125 hardcode_libdir_flag_spec_RC \
11126 hardcode_libdir_flag_spec_ld_RC \
11127 hardcode_libdir_separator_RC \
11128 hardcode_automatic_RC \
11130 module_expsym_cmds_RC \
11131 lt_cv_prog_compiler_c_o_RC \
11132 exclude_expsyms_RC \
11133 include_expsyms_RC; do
11136 old_archive_cmds_RC | \
11137 old_archive_from_new_cmds_RC | \
11138 archive_cmds_RC | \
11139 archive_expsym_cmds_RC | \
11141 module_expsym_cmds_RC | \
11142 old_archive_from_expsyms_cmds_RC | \
11143 export_symbols_cmds_RC | \
11144 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11145 postinstall_cmds | postuninstall_cmds | \
11146 old_postinstall_cmds | old_postuninstall_cmds | \
11147 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11148 # Double-quote double-evaled strings.
11149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11158 *'\$0 --fallback-echo"')
11159 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11165 cat <<__EOF__ >> "$cfgfile"
11166 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11170 # Shell to use when invoking shell scripts.
11173 # Whether or not to build shared libraries.
11174 build_libtool_libs=$enable_shared
11176 # Whether or not to build static libraries.
11177 build_old_libs=$enable_static
11179 # Whether or not to add -lc for building shared libraries.
11180 build_libtool_need_lc=$archive_cmds_need_lc_RC
11182 # Whether or not to disallow shared libs when runtime libs are static
11183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11185 # Whether or not to optimize for fast installation.
11186 fast_install=$enable_fast_install
11189 host_alias=$host_alias
11193 # The build system.
11194 build_alias=$build_alias
11198 # An echo program that does not interpret backslashes.
11203 AR_FLAGS=$lt_AR_FLAGS
11208 # A language-specific compiler.
11211 # Is the compiler the GNU C compiler?
11217 # The linker used to build libraries.
11220 # Whether we need hard or soft links.
11223 # A BSD-compatible nm program.
11226 # A symbol stripping program
11229 # Used to examine libraries when file_magic_cmd begins "file"
11230 MAGIC_CMD=$MAGIC_CMD
11232 # Used on cygwin: DLL creation program.
11235 # Used on cygwin: object dumper.
11238 # Used on cygwin: assembler.
11241 # The name of the directory that contains temporary libtool files.
11244 # How to create reloadable object files.
11245 reload_flag=$lt_reload_flag
11246 reload_cmds=$lt_reload_cmds
11248 # How to pass a linker flag through the compiler.
11249 wl=$lt_lt_prog_compiler_wl_RC
11251 # Object file suffix (normally "o").
11252 objext="$ac_objext"
11254 # Old archive suffix (normally "a").
11257 # Shared library suffix (normally ".so").
11258 shrext_cmds='$shrext_cmds'
11260 # Executable file suffix (normally "").
11263 # Additional compiler flags for building library objects.
11264 pic_flag=$lt_lt_prog_compiler_pic_RC
11267 # What is the maximum length of a command?
11268 max_cmd_len=$lt_cv_sys_max_cmd_len
11270 # Does compiler simultaneously support -c and -o options?
11271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11273 # Must we lock files when doing compilation?
11274 need_locks=$lt_need_locks
11276 # Do we need the lib prefix for modules?
11277 need_lib_prefix=$need_lib_prefix
11279 # Do we need a version for libraries?
11280 need_version=$need_version
11282 # Whether dlopen is supported.
11283 dlopen_support=$enable_dlopen
11285 # Whether dlopen of programs is supported.
11286 dlopen_self=$enable_dlopen_self
11288 # Whether dlopen of statically linked programs is supported.
11289 dlopen_self_static=$enable_dlopen_self_static
11291 # Compiler flag to prevent dynamic linking.
11292 link_static_flag=$lt_lt_prog_compiler_static_RC
11294 # Compiler flag to turn off builtin functions.
11295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11297 # Compiler flag to allow reflexive dlopens.
11298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11300 # Compiler flag to generate shared objects directly from archives.
11301 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11303 # Compiler flag to generate thread-safe objects.
11304 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11306 # Library versioning type.
11307 version_type=$version_type
11309 # Format of library name prefix.
11310 libname_spec=$lt_libname_spec
11312 # List of archive names. First name is the real one, the rest are links.
11313 # The last name is the one that the linker finds with -lNAME.
11314 library_names_spec=$lt_library_names_spec
11316 # The coded name of the library, if different from the real name.
11317 soname_spec=$lt_soname_spec
11319 # Commands used to build and install an old-style archive.
11321 old_archive_cmds=$lt_old_archive_cmds_RC
11322 old_postinstall_cmds=$lt_old_postinstall_cmds
11323 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11325 # Create an old-style archive from a shared archive.
11326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11328 # Create a temporary old-style archive to link instead of a shared archive.
11329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11331 # Commands used to build and install a shared archive.
11332 archive_cmds=$lt_archive_cmds_RC
11333 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11334 postinstall_cmds=$lt_postinstall_cmds
11335 postuninstall_cmds=$lt_postuninstall_cmds
11337 # Commands used to build a loadable module (assumed same as above if empty)
11338 module_cmds=$lt_module_cmds_RC
11339 module_expsym_cmds=$lt_module_expsym_cmds_RC
11341 # Commands to strip libraries.
11342 old_striplib=$lt_old_striplib
11343 striplib=$lt_striplib
11345 # Dependencies to place before the objects being linked to create a
11347 predep_objects=$lt_predep_objects_RC
11349 # Dependencies to place after the objects being linked to create a
11351 postdep_objects=$lt_postdep_objects_RC
11353 # Dependencies to place before the objects being linked to create a
11355 predeps=$lt_predeps_RC
11357 # Dependencies to place after the objects being linked to create a
11359 postdeps=$lt_postdeps_RC
11361 # The library search path used internally by the compiler when linking
11362 # a shared library.
11363 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11365 # Method to check whether dependent libraries are shared objects.
11366 deplibs_check_method=$lt_deplibs_check_method
11368 # Command to use when deplibs_check_method == file_magic.
11369 file_magic_cmd=$lt_file_magic_cmd
11371 # Flag that allows shared libraries with undefined symbols to be built.
11372 allow_undefined_flag=$lt_allow_undefined_flag_RC
11374 # Flag that forces no undefined symbols.
11375 no_undefined_flag=$lt_no_undefined_flag_RC
11377 # Commands used to finish a libtool library installation in a directory.
11378 finish_cmds=$lt_finish_cmds
11380 # Same as above, but a single script fragment to be evaled but not shown.
11381 finish_eval=$lt_finish_eval
11383 # Take the output of nm and produce a listing of raw symbols and C names.
11384 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11386 # Transform the output of nm in a proper C declaration
11387 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11389 # Transform the output of nm in a C name address pair
11390 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11392 # This is the shared library runtime path variable.
11393 runpath_var=$runpath_var
11395 # This is the shared library path variable.
11396 shlibpath_var=$shlibpath_var
11398 # Is shlibpath searched before the hard-coded library search path?
11399 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11401 # How to hardcode a shared library path into an executable.
11402 hardcode_action=$hardcode_action_RC
11404 # Whether we should hardcode library paths into libraries.
11405 hardcode_into_libs=$hardcode_into_libs
11407 # Flag to hardcode \$libdir into a binary during linking.
11408 # This must work even if \$libdir does not exist.
11409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11411 # If ld is used when linking, flag to hardcode \$libdir into
11412 # a binary during linking. This must work even if \$libdir does
11414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11416 # Whether we need a single -rpath flag with a separated argument.
11417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11419 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11420 # resulting binary.
11421 hardcode_direct=$hardcode_direct_RC
11423 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11424 # resulting binary.
11425 hardcode_minus_L=$hardcode_minus_L_RC
11427 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11428 # the resulting binary.
11429 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11431 # Set to yes if building a shared library automatically hardcodes DIR into the library
11432 # and all subsequent libraries and executables linked against it.
11433 hardcode_automatic=$hardcode_automatic_RC
11435 # Variables whose values should be saved in libtool wrapper scripts and
11436 # restored at relink time.
11437 variables_saved_for_relink="$variables_saved_for_relink"
11439 # Whether libtool must link a program against all its dependency libraries.
11440 link_all_deplibs=$link_all_deplibs_RC
11442 # Compile-time system search path for libraries
11443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11445 # Run-time system search path for libraries
11446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11448 # Fix the shell variable \$srcfile for the compiler.
11449 fix_srcfile_path="$fix_srcfile_path_RC"
11451 # Set to yes if exported symbols are required.
11452 always_export_symbols=$always_export_symbols_RC
11454 # The commands to list exported symbols.
11455 export_symbols_cmds=$lt_export_symbols_cmds_RC
11457 # The commands to extract the exported symbol list from a shared archive.
11458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11460 # Symbols that should not be listed in the preloaded symbols.
11461 exclude_expsyms=$lt_exclude_expsyms_RC
11463 # Symbols that must always be exported.
11464 include_expsyms=$lt_include_expsyms_RC
11466 # ### END LIBTOOL TAG CONFIG: $tagname
11472 # If there is no Makefile yet, we rely on a make rule to execute
11473 # `config.status --recheck' to rerun these tests and create the
11474 # libtool script then.
11475 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11476 if test -f "$ltmain_in"; then
11477 test -f Makefile && make "$ltmain"
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11493 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11494 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11495 { (exit 1); exit 1; }; }
11499 # Append the new tag name to the list of available tags.
11500 if test -n "$tagname" ; then
11501 available_tags="$available_tags $tagname"
11507 # Now substitute the updated list of available tags.
11508 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11509 mv "${ofile}T" "$ofile"
11513 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11514 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11515 { (exit 1); exit 1; }; }
11521 # This can be used to rebuild libtool when needed
11522 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11524 # Always use our own libtool.
11525 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11527 # Prevent multiple expansion
11539 if test $ol_enable_perl != no ; then
11540 # Extract the first word of "perl", so it can be a program name with args.
11541 set dummy perl; ac_word=$2
11542 echo "$as_me:$LINENO: checking for $ac_word" >&5
11543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544 if test "${ac_cv_path_PERLBIN+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553 for as_dir in $PATH
11556 test -z "$as_dir" && as_dir=.
11557 for ac_exec_ext in '' $ac_executable_extensions; do
11558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11559 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11570 PERLBIN=$ac_cv_path_PERLBIN
11572 if test -n "$PERLBIN"; then
11573 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11574 echo "${ECHO_T}$PERLBIN" >&6
11576 echo "$as_me:$LINENO: result: no" >&5
11577 echo "${ECHO_T}no" >&6
11581 if test "no$PERLBIN" = "no" ; then
11582 if test $ol_enable_perl = yes ; then
11583 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11584 echo "$as_me: error: could not locate perl" >&2;}
11585 { (exit 1); exit 1; }; }
11589 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11590 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11592 if test x"$ol_enable_perl" = "xyes" ; then
11593 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11595 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11602 ac_cpp='$CPP $CPPFLAGS'
11603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11608 # On Suns, sometimes $CPP names a directory.
11609 if test -n "$CPP" && test -d "$CPP"; then
11612 if test -z "$CPP"; then
11613 if test "${ac_cv_prog_CPP+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 # Double quotes because CPP needs to be expanded
11617 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11619 ac_preproc_ok=false
11620 for ac_c_preproc_warn_flag in '' yes
11622 # Use a header file that comes with gcc, so configuring glibc
11623 # with a fresh cross-compiler works.
11624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 # <limits.h> exists even on freestanding compilers.
11626 # On the NeXT, cc -E runs the code through the compiler's parser,
11627 # not just through cpp. "Syntax error" is here to catch this case.
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11635 # include <limits.h>
11637 # include <assert.h>
11641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11644 grep -v '^ *+' conftest.er1 >conftest.err
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } >/dev/null; then
11649 if test -s conftest.err; then
11650 ac_cpp_err=$ac_c_preproc_warn_flag
11651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11658 if test -z "$ac_cpp_err"; then
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 # Broken: fails on valid input.
11667 rm -f conftest.err conftest.$ac_ext
11669 # OK, works on sane cases. Now check whether non-existent headers
11670 # can be detected and how.
11671 cat >conftest.$ac_ext <<_ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 #include <ac_nonexistent.h>
11679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11682 grep -v '^ *+' conftest.er1 >conftest.err
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } >/dev/null; then
11687 if test -s conftest.err; then
11688 ac_cpp_err=$ac_c_preproc_warn_flag
11689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11696 if test -z "$ac_cpp_err"; then
11697 # Broken: success on invalid input.
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 # Passes both tests.
11707 rm -f conftest.err conftest.$ac_ext
11710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11711 rm -f conftest.err conftest.$ac_ext
11712 if $ac_preproc_ok; then
11717 ac_cv_prog_CPP=$CPP
11720 CPP=$ac_cv_prog_CPP
11722 ac_cv_prog_CPP=$CPP
11724 echo "$as_me:$LINENO: result: $CPP" >&5
11725 echo "${ECHO_T}$CPP" >&6
11726 ac_preproc_ok=false
11727 for ac_c_preproc_warn_flag in '' yes
11729 # Use a header file that comes with gcc, so configuring glibc
11730 # with a fresh cross-compiler works.
11731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732 # <limits.h> exists even on freestanding compilers.
11733 # On the NeXT, cc -E runs the code through the compiler's parser,
11734 # not just through cpp. "Syntax error" is here to catch this case.
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 # include <limits.h>
11744 # include <assert.h>
11748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11751 grep -v '^ *+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } >/dev/null; then
11756 if test -s conftest.err; then
11757 ac_cpp_err=$ac_c_preproc_warn_flag
11758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11765 if test -z "$ac_cpp_err"; then
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 # Broken: fails on valid input.
11774 rm -f conftest.err conftest.$ac_ext
11776 # OK, works on sane cases. Now check whether non-existent headers
11777 # can be detected and how.
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 #include <ac_nonexistent.h>
11786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } >/dev/null; then
11794 if test -s conftest.err; then
11795 ac_cpp_err=$ac_c_preproc_warn_flag
11796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11803 if test -z "$ac_cpp_err"; then
11804 # Broken: success on invalid input.
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 # Passes both tests.
11814 rm -f conftest.err conftest.$ac_ext
11817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11818 rm -f conftest.err conftest.$ac_ext
11819 if $ac_preproc_ok; then
11822 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11823 See \`config.log' for more details." >&5
11824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11825 See \`config.log' for more details." >&2;}
11826 { (exit 1); exit 1; }; }
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11837 *mingw32* ) ac_cv_mingw32=yes ;;
11838 *cygwin* ) ac_cv_cygwin=yes ;;
11844 cat >>confdefs.h <<_ACEOF
11845 #define EXEEXT "${EXEEXT}"
11849 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11850 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11851 if test "${ac_cv_lib_be_be_app+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-lbe -lroot -lnet $LIBS"
11856 cat >conftest.$ac_ext <<_ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11863 /* Override any gcc2 internal prototype to avoid an error. */
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_lib_be_be_app=yes
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_lib_be_be_app=no
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11912 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11913 if test $ac_cv_lib_be_be_app = yes; then
11914 LIBS="$LIBS -lbe -lroot -lnet"
11921 ac_cpp='$CPP $CPPFLAGS'
11922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11925 if test -n "$ac_tool_prefix"; then
11926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11928 echo "$as_me:$LINENO: checking for $ac_word" >&5
11929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930 if test "${ac_cv_prog_CC+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 if test -n "$CC"; then
11934 ac_cv_prog_CC="$CC" # Let the user override the test.
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11953 if test -n "$CC"; then
11954 echo "$as_me:$LINENO: result: $CC" >&5
11955 echo "${ECHO_T}$CC" >&6
11957 echo "$as_me:$LINENO: result: no" >&5
11958 echo "${ECHO_T}no" >&6
11962 if test -z "$ac_cv_prog_CC"; then
11964 # Extract the first word of "gcc", so it can be a program name with args.
11965 set dummy gcc; ac_word=$2
11966 echo "$as_me:$LINENO: checking for $ac_word" >&5
11967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 if test -n "$ac_ct_CC"; then
11972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981 ac_cv_prog_ac_ct_CC="gcc"
11982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11991 if test -n "$ac_ct_CC"; then
11992 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11993 echo "${ECHO_T}$ac_ct_CC" >&6
11995 echo "$as_me:$LINENO: result: no" >&5
11996 echo "${ECHO_T}no" >&6
12001 CC="$ac_cv_prog_CC"
12004 if test -z "$CC"; then
12005 if test -n "$ac_tool_prefix"; then
12006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12007 set dummy ${ac_tool_prefix}cc; ac_word=$2
12008 echo "$as_me:$LINENO: checking for $ac_word" >&5
12009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12010 if test "${ac_cv_prog_CC+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 if test -n "$CC"; then
12014 ac_cv_prog_CC="$CC" # Let the user override the test.
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12020 test -z "$as_dir" && as_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023 ac_cv_prog_CC="${ac_tool_prefix}cc"
12024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 if test -n "$CC"; then
12034 echo "$as_me:$LINENO: result: $CC" >&5
12035 echo "${ECHO_T}$CC" >&6
12037 echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6
12042 if test -z "$ac_cv_prog_CC"; then
12044 # Extract the first word of "cc", so it can be a program name with args.
12045 set dummy cc; ac_word=$2
12046 echo "$as_me:$LINENO: checking for $ac_word" >&5
12047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 if test -n "$ac_ct_CC"; then
12052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061 ac_cv_prog_ac_ct_CC="cc"
12062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12071 if test -n "$ac_ct_CC"; then
12072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12073 echo "${ECHO_T}$ac_ct_CC" >&6
12075 echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6
12081 CC="$ac_cv_prog_CC"
12085 if test -z "$CC"; then
12086 # Extract the first word of "cc", so it can be a program name with args.
12087 set dummy cc; ac_word=$2
12088 echo "$as_me:$LINENO: checking for $ac_word" >&5
12089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090 if test "${ac_cv_prog_CC+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 if test -n "$CC"; then
12094 ac_cv_prog_CC="$CC" # Let the user override the test.
12096 ac_prog_rejected=no
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12105 ac_prog_rejected=yes
12109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 if test $ac_prog_rejected = yes; then
12116 # We found a bogon in the path, so make sure we never use it.
12117 set dummy $ac_cv_prog_CC
12119 if test $# != 0; then
12120 # We chose a different compiler from the bogus one.
12121 # However, it has the same basename, so the bogon will be chosen
12122 # first if we set CC to just the basename; use the full file name.
12124 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12130 if test -n "$CC"; then
12131 echo "$as_me:$LINENO: result: $CC" >&5
12132 echo "${ECHO_T}$CC" >&6
12134 echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12139 if test -z "$CC"; then
12140 if test -n "$ac_tool_prefix"; then
12143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12145 echo "$as_me:$LINENO: checking for $ac_word" >&5
12146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12147 if test "${ac_cv_prog_CC+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 if test -n "$CC"; then
12151 ac_cv_prog_CC="$CC" # Let the user override the test.
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12157 test -z "$as_dir" && as_dir=.
12158 for ac_exec_ext in '' $ac_executable_extensions; do
12159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 if test -n "$CC"; then
12171 echo "$as_me:$LINENO: result: $CC" >&5
12172 echo "${ECHO_T}$CC" >&6
12174 echo "$as_me:$LINENO: result: no" >&5
12175 echo "${ECHO_T}no" >&6
12178 test -n "$CC" && break
12181 if test -z "$CC"; then
12185 # Extract the first word of "$ac_prog", so it can be a program name with args.
12186 set dummy $ac_prog; ac_word=$2
12187 echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 if test -n "$ac_ct_CC"; then
12193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202 ac_cv_prog_ac_ct_CC="$ac_prog"
12203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12212 if test -n "$ac_ct_CC"; then
12213 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12214 echo "${ECHO_T}$ac_ct_CC" >&6
12216 echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12220 test -n "$ac_ct_CC" && break
12229 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12230 See \`config.log' for more details." >&5
12231 echo "$as_me: error: no acceptable C compiler found in \$PATH
12232 See \`config.log' for more details." >&2;}
12233 { (exit 1); exit 1; }; }
12235 # Provide some information about the compiler.
12236 echo "$as_me:$LINENO:" \
12237 "checking for C compiler version" >&5
12238 ac_compiler=`set X $ac_compile; echo $2`
12239 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12240 (eval $ac_compiler --version </dev/null >&5) 2>&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }
12244 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12245 (eval $ac_compiler -v </dev/null >&5) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }
12249 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12250 (eval $ac_compiler -V </dev/null >&5) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }
12255 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12256 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12257 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12278 rm -f conftest.$ac_objext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280 (eval $ac_compile) 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_compiler_gnu=yes
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12311 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12312 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12313 GCC=`test $ac_compiler_gnu = yes && echo yes`
12314 ac_test_CFLAGS=${CFLAGS+set}
12315 ac_save_CFLAGS=$CFLAGS
12317 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12319 if test "${ac_cv_prog_cc_g+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>conftest.er1
12341 grep -v '^ *+' conftest.er1 >conftest.err
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_c_werror_flag"
12347 || test ! -s conftest.err'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try='test -s conftest.$ac_objext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 ac_cv_prog_cc_g=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12369 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12370 if test "$ac_test_CFLAGS" = set; then
12371 CFLAGS=$ac_save_CFLAGS
12372 elif test $ac_cv_prog_cc_g = yes; then
12373 if test "$GCC" = yes; then
12379 if test "$GCC" = yes; then
12385 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12386 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12387 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 ac_cv_prog_cc_stdc=no
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 #include <stdarg.h>
12400 #include <sys/types.h>
12401 #include <sys/stat.h>
12402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12403 struct buf { int x; };
12404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12405 static char *e (p, i)
12411 static char *f (char * (*g) (char **, int), char **p, ...)
12416 s = g (p, va_arg (v,int));
12421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12422 function prototypes and stuff, but not '\xHH' hex character constants.
12423 These don't provoke an error unfortunately, instead are silently treated
12424 as 'x'. The following induces an error, until -std1 is added to get
12425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12426 array size at least. It's necessary to write '\x00'==0 to get something
12427 that's true only with -std1. */
12428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12430 int test (int i, double x);
12431 struct s1 {int (*f) (int a);};
12432 struct s2 {int (*f) (double a);};
12433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12439 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12444 # Don't try gcc -ansi; that turns off useful extensions and
12445 # breaks some systems' header files.
12446 # AIX -qlanglvl=ansi
12447 # Ultrix and OSF/1 -std1
12448 # HP-UX 10.20 and later -Ae
12449 # HP-UX older versions -Aa -D_HPUX_SOURCE
12450 # SVR4 -Xc -D__EXTENSIONS__
12451 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12453 CC="$ac_save_CC $ac_arg"
12454 rm -f conftest.$ac_objext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456 (eval $ac_compile) 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest.$ac_objext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_prog_cc_stdc=$ac_arg
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12483 rm -f conftest.err conftest.$ac_objext
12485 rm -f conftest.$ac_ext conftest.$ac_objext
12490 case "x$ac_cv_prog_cc_stdc" in
12492 echo "$as_me:$LINENO: result: none needed" >&5
12493 echo "${ECHO_T}none needed" >&6 ;;
12495 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12496 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12497 CC="$CC $ac_cv_prog_cc_stdc" ;;
12500 # Some people use a C++ compiler to compile C. Since we use `exit',
12501 # in C++ we need to declare it. In case someone uses the same compiler
12502 # for both compiling C and C++ we need to have the C++ compiler decide
12503 # the declaration of exit, since it's the most demanding environment.
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #ifndef __cplusplus
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511 (eval $ac_compile) 2>conftest.er1
12513 grep -v '^ *+' conftest.er1 >conftest.err
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_c_werror_flag"
12519 || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest.$ac_objext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 for ac_declaration in \
12533 'extern "C" void std::exit (int) throw (); using std::exit;' \
12534 'extern "C" void std::exit (int); using std::exit;' \
12535 'extern "C" void exit (int) throw ();' \
12536 'extern "C" void exit (int);' \
12539 cat >conftest.$ac_ext <<_ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12546 #include <stdlib.h>
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>conftest.er1
12559 grep -v '^ *+' conftest.er1 >conftest.err
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12631 if test -n "$ac_declaration"; then
12632 echo '#ifdef __cplusplus' >>confdefs.h
12633 echo $ac_declaration >>confdefs.h
12634 echo '#endif' >>confdefs.h
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12644 ac_cpp='$CPP $CPPFLAGS'
12645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12649 depcc="$CC" am_compiler_list=
12651 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12657 # We make a subdir and do the tests there. Otherwise we can end up
12658 # making bogus files that we don't know about and never remove. For
12659 # instance it was reported that on HP-UX the gcc test will end up
12660 # making a dummy file named `D' -- because `-MD' means `put the output
12663 # Copy depcomp to subdir because otherwise we won't find it if we're
12664 # using a relative directory.
12665 cp "$am_depcomp" conftest.dir
12667 # We will build objects and dependencies in a subdirectory because
12668 # it helps to detect inapplicable dependency modes. For instance
12669 # both Tru64's cc and ICC support -MD to output dependencies as a
12670 # side effect of compilation, but ICC will put the dependencies in
12671 # the current directory while Tru64 will put them in the object
12675 am_cv_CC_dependencies_compiler_type=none
12676 if test "$am_compiler_list" = ""; then
12677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12679 for depmode in $am_compiler_list; do
12680 # Setup a source with many dependencies, because some compilers
12681 # like to wrap large dependency lists on column 80 (with \), and
12682 # we should not choose a depcomp mode which is confused by this.
12684 # We need to recreate these files for each test, as the compiler may
12685 # overwrite some of them when testing with obscure command lines.
12686 # This happens at least with the AIX C compiler.
12688 for i in 1 2 3 4 5 6; do
12689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12691 # Solaris 8's {/usr,}/bin/sh.
12692 touch sub/conftst$i.h
12694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12698 # after this tag, mechanisms are not by side-effect, so they'll
12699 # only be used when explicitly requested
12700 if test "x$enable_dependency_tracking" = xyes; then
12708 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12709 # mode. It turns out that the SunPro C++ compiler does not properly
12710 # handle `-M -o', and we need to detect this.
12711 if depmode=$depmode \
12712 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12714 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12715 >/dev/null 2>conftest.err &&
12716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12717 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12719 # icc doesn't choke on unknown options, it will just issue warnings
12720 # or remarks (even with -Werror). So we grep stderr for any message
12721 # that says an option was ignored or not supported.
12722 # When given -MP, icc 7.0 and 7.1 complain thusly:
12723 # icc: Command line warning: ignoring option '-M'; no argument required
12724 # The diagnosis changed in icc 8.0:
12725 # icc: Command line remark: option '-MP' not supported
12726 if (grep 'ignoring option' conftest.err ||
12727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12728 am_cv_CC_dependencies_compiler_type=$depmode
12735 rm -rf conftest.dir
12737 am_cv_CC_dependencies_compiler_type=none
12741 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12748 test "x$enable_dependency_tracking" != xno \
12749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12750 am__fastdepCC_TRUE=
12751 am__fastdepCC_FALSE='#'
12753 am__fastdepCC_TRUE='#'
12754 am__fastdepCC_FALSE=
12758 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12759 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12760 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12761 { (exit 1); exit 1; }; }
12764 # test for make depend flag
12767 if test -z "${MKDEP}"; then
12768 OL_MKDEP="${CC-cc}"
12769 if test -z "${MKDEP_FLAGS}"; then
12770 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12771 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12772 if test "${ol_cv_mkdep+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 for flag in "-M" "-xM"; do
12778 cat > conftest.c <<EOF
12781 if { ac_try='$OL_MKDEP $flag conftest.c'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } \
12787 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12789 if test ! -f conftest."${ac_object}" ; then
12791 OL_MKDEP_FLAGS="$flag"
12799 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12800 echo "${ECHO_T}$ol_cv_mkdep" >&6
12803 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12807 OL_MKDEP="${MKDEP}"
12808 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12813 if test "${ol_cv_mkdep}" = no ; then
12814 # this will soon become an error
12815 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12816 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12819 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12820 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12821 if test "${ac_cv_lib_s_afopen+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 ac_check_lib_save_LIBS=$LIBS
12826 cat >conftest.$ac_ext <<_ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12833 /* Override any gcc2 internal prototype to avoid an error. */
12837 /* We use char because int might match the return type of a gcc2
12838 builtin and then its argument prototype would still apply. */
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850 (eval $ac_link) 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try='test -s conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_lib_s_afopen=yes
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ac_cv_lib_s_afopen=no
12877 rm -f conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12881 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12882 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12883 if test $ac_cv_lib_s_afopen = yes; then
12887 cat >>confdefs.h <<\_ACEOF
12888 #define HAVE_AIX_SECURITY 1
12897 ac_cv_func_getopt=no
12899 cat >>confdefs.h <<\_ACEOF
12900 #define BOTH_STRINGS_H 1
12907 WITH_MODULES_ENABLED=no
12908 if test $ol_enable_modules != no ; then
12910 for ac_header in ltdl.h
12912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914 echo "$as_me:$LINENO: checking for $ac_header" >&5
12915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12922 # Is the header compilable?
12923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 $ac_includes_default
12932 #include <$ac_header>
12934 rm -f conftest.$ac_objext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12936 (eval $ac_compile) 2>conftest.er1
12938 grep -v '^ *+' conftest.er1 >conftest.err
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag"
12944 || test ! -s conftest.err'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest.$ac_objext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 ac_header_compiler=yes
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 ac_header_compiler=no
12963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12965 echo "${ECHO_T}$ac_header_compiler" >&6
12967 # Is the header present?
12968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 #include <$ac_header>
12978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } >/dev/null; then
12986 if test -s conftest.err; then
12987 ac_cpp_err=$ac_c_preproc_warn_flag
12988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12995 if test -z "$ac_cpp_err"; then
12996 ac_header_preproc=yes
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_header_preproc=no
13003 rm -f conftest.err conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13005 echo "${ECHO_T}$ac_header_preproc" >&6
13007 # So? What about this header?
13008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13014 ac_header_preproc=yes
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13031 ## --------------------------------------------- ##
13032 ## Report this to <http://www.openldap.org/its/> ##
13033 ## --------------------------------------------- ##
13036 sed "s/^/$as_me: WARNING: /" >&2
13039 echo "$as_me:$LINENO: checking for $ac_header" >&5
13040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 eval "$as_ac_Header=\$ac_header_preproc"
13046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13051 cat >>confdefs.h <<_ACEOF
13052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13060 if test $ac_cv_header_ltdl_h = no ; then
13061 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13062 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13063 { (exit 1); exit 1; }; }
13066 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13067 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13068 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lltdl $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13080 /* Override any gcc2 internal prototype to avoid an error. */
13084 /* We use char because int might match the return type of a gcc2
13085 builtin and then its argument prototype would still apply. */
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13097 (eval $ac_link) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest$ac_exeext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_lib_ltdl_lt_dlinit=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_cv_lib_ltdl_lt_dlinit=no
13124 rm -f conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13128 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13129 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13130 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13132 MODULES_LIBS=-lltdl
13134 cat >>confdefs.h <<\_ACEOF
13135 #define HAVE_LIBLTDL 1
13142 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13143 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13144 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13145 { (exit 1); exit 1; }; }
13147 ol_link_modules=yes
13148 WITH_MODULES_ENABLED=yes
13151 for i in $Backends; do
13152 eval "ol_tmp=\$ol_enable_$i"
13153 if test $ol_tmp = mod ; then
13154 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13155 echo "$as_me: WARNING: building static $i backend" >&2;}
13156 eval "ol_enable_$i=yes"
13159 for i in $Overlays; do
13160 eval "ol_tmp=\$ol_enable_$i"
13161 if test $ol_tmp = mod ; then
13162 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13163 echo "$as_me: WARNING: building static $i overlay" >&2;}
13164 eval "ol_enable_$i=yes"
13170 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13171 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13172 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13184 #include <__ASCII__/generate_error.h>
13188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } >/dev/null; then
13196 if test -s conftest.err; then
13197 ac_cpp_err=$ac_c_preproc_warn_flag
13198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13205 if test -z "$ac_cpp_err"; then
13206 ol_cv_cpp_ebcdic=yes
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 ol_cv_cpp_ebcdic=no
13213 rm -f conftest.err conftest.$ac_ext
13215 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13216 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13217 if test $ol_cv_cpp_ebcdic = yes ; then
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_EBCDIC 1
13225 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13226 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13227 if test "${ol_cv_header_stdc+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 cat >conftest.$ac_ext <<_ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 #include <stdlib.h>
13237 #include <stdarg.h>
13238 #include <string.h>
13241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } >/dev/null; then
13249 if test -s conftest.err; then
13250 ac_cpp_err=$ac_c_preproc_warn_flag
13251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13258 if test -z "$ac_cpp_err"; then
13259 ol_cv_header_stdc=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ol_cv_header_stdc=no
13266 rm -f conftest.err conftest.$ac_ext
13268 if test $ol_cv_header_stdc = yes; then
13269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <string.h>
13279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280 $EGREP "memchr" >/dev/null 2>&1; then
13283 ol_cv_header_stdc=no
13289 if test $ol_cv_header_stdc = yes; then
13290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <stdlib.h>
13300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13301 $EGREP "free" >/dev/null 2>&1; then
13304 ol_cv_header_stdc=no
13310 if test $ol_cv_header_stdc = yes; then
13311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13312 if test "$cross_compiling" = yes; then
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13322 #ifndef HAVE_EBCDIC
13323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13326 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13327 || ('j' <= (c) && (c) <= 'r') \
13328 || ('s' <= (c) && (c) <= 'z'))
13329 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13332 int main () { int i; for (i = 0; i < 256; i++)
13333 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13337 rm -f conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339 (eval $ac_link) 2>&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13350 echo "$as_me: program exited with status $ac_status" >&5
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ( exit $ac_status )
13355 ol_cv_header_stdc=no
13357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13361 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13362 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13363 if test $ol_cv_header_stdc = yes; then
13364 cat >>confdefs.h <<\_ACEOF
13365 #define STDC_HEADERS 1
13369 ac_cv_header_stdc=disable
13372 if test $ol_cv_header_stdc != yes; then
13373 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13374 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13382 ac_header_dirent=no
13383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13384 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13385 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <sys/types.h>
13408 rm -f conftest.$ac_objext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410 (eval $ac_compile) 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -z "$ac_c_werror_flag"
13418 || test ! -s conftest.err'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 eval "$as_ac_Header=yes"
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13435 eval "$as_ac_Header=no"
13437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13442 cat >>confdefs.h <<_ACEOF
13443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13446 ac_header_dirent=$ac_hdr; break
13450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13451 if test $ac_header_dirent = dirent.h; then
13452 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13454 if test "${ac_cv_search_opendir+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 ac_func_search_save_LIBS=$LIBS
13458 ac_cv_search_opendir=no
13459 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13466 /* Override any gcc2 internal prototype to avoid an error. */
13470 /* We use char because int might match the return type of a gcc2
13471 builtin and then its argument prototype would still apply. */
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483 (eval $ac_link) 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag"
13491 || test ! -s conftest.err'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest$ac_exeext'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 ac_cv_search_opendir="none required"
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13509 rm -f conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13511 if test "$ac_cv_search_opendir" = no; then
13512 for ac_lib in dir; do
13513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13521 /* Override any gcc2 internal prototype to avoid an error. */
13525 /* We use char because int might match the return type of a gcc2
13526 builtin and then its argument prototype would still apply. */
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>conftest.er1
13540 grep -v '^ *+' conftest.er1 >conftest.err
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_search_opendir="-l$ac_lib"
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13565 rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_func_search_save_LIBS
13571 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13572 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13573 if test "$ac_cv_search_opendir" != no; then
13574 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13579 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13581 if test "${ac_cv_search_opendir+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 ac_func_search_save_LIBS=$LIBS
13585 ac_cv_search_opendir=no
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 /* Override any gcc2 internal prototype to avoid an error. */
13597 /* We use char because int might match the return type of a gcc2
13598 builtin and then its argument prototype would still apply. */
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610 (eval $ac_link) 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_cv_search_opendir="none required"
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13636 rm -f conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 if test "$ac_cv_search_opendir" = no; then
13639 for ac_lib in x; do
13640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13648 /* Override any gcc2 internal prototype to avoid an error. */
13652 /* We use char because int might match the return type of a gcc2
13653 builtin and then its argument prototype would still apply. */
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13665 (eval $ac_link) 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -z "$ac_c_werror_flag"
13673 || test ! -s conftest.err'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest$ac_exeext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_search_opendir="-l$ac_lib"
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13692 rm -f conftest.err conftest.$ac_objext \
13693 conftest$ac_exeext conftest.$ac_ext
13696 LIBS=$ac_func_search_save_LIBS
13698 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13699 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13700 if test "$ac_cv_search_opendir" != no; then
13701 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13707 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13708 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13709 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 #include <sys/types.h>
13719 #include <sys/wait.h>
13720 #ifndef WEXITSTATUS
13721 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13724 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13732 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag"
13747 || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest.$ac_objext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_header_sys_wait_h=yes
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13764 ac_cv_header_sys_wait_h=no
13766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13769 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13770 if test $ac_cv_header_sys_wait_h = yes; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_SYS_WAIT_H 1
13778 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13779 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13780 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 #include <sys/types.h>
13790 #include <termios.h>
13796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797 $EGREP "yes" >/dev/null 2>&1; then
13798 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13800 ac_cv_sys_tiocgwinsz_in_termios_h=no
13805 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13806 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13808 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13809 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13810 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13811 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 #include <sys/types.h>
13821 #include <sys/ioctl.h>
13827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13828 $EGREP "yes" >/dev/null 2>&1; then
13829 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13831 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13836 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13837 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13839 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13841 cat >>confdefs.h <<\_ACEOF
13842 #define GWINSZ_IN_SYS_IOCTL 1
13940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13942 echo "$as_me:$LINENO: checking for $ac_header" >&5
13943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13950 # Is the header compilable?
13951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 $ac_includes_default
13960 #include <$ac_header>
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>conftest.er1
13966 grep -v '^ *+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag"
13972 || test ! -s conftest.err'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_header_compiler=yes
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_header_compiler=no
13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993 echo "${ECHO_T}$ac_header_compiler" >&6
13995 # Is the header present?
13996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13998 cat >conftest.$ac_ext <<_ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14004 #include <$ac_header>
14006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14009 grep -v '^ *+' conftest.er1 >conftest.err
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } >/dev/null; then
14014 if test -s conftest.err; then
14015 ac_cpp_err=$ac_c_preproc_warn_flag
14016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14023 if test -z "$ac_cpp_err"; then
14024 ac_header_preproc=yes
14026 echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14029 ac_header_preproc=no
14031 rm -f conftest.err conftest.$ac_ext
14032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14033 echo "${ECHO_T}$ac_header_preproc" >&6
14035 # So? What about this header?
14036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14042 ac_header_preproc=yes
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14059 ## --------------------------------------------- ##
14060 ## Report this to <http://www.openldap.org/its/> ##
14061 ## --------------------------------------------- ##
14064 sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
14074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14079 cat >>confdefs.h <<_ACEOF
14080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14088 if test "$ac_cv_mingw32" = yes ; then
14091 for ac_header in winsock.h winsock2.h
14093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14095 echo "$as_me:$LINENO: checking for $ac_header" >&5
14096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14103 # Is the header compilable?
14104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112 $ac_includes_default
14113 #include <$ac_header>
14115 rm -f conftest.$ac_objext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14117 (eval $ac_compile) 2>conftest.er1
14119 grep -v '^ *+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag"
14125 || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_header_compiler=yes
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_header_compiler=no
14144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6
14148 # Is the header present?
14149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <$ac_header>
14159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } >/dev/null; then
14167 if test -s conftest.err; then
14168 ac_cpp_err=$ac_c_preproc_warn_flag
14169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14176 if test -z "$ac_cpp_err"; then
14177 ac_header_preproc=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_header_preproc=no
14184 rm -f conftest.err conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14186 echo "${ECHO_T}$ac_header_preproc" >&6
14188 # So? What about this header?
14189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14195 ac_header_preproc=yes
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14212 ## --------------------------------------------- ##
14213 ## Report this to <http://www.openldap.org/its/> ##
14214 ## --------------------------------------------- ##
14217 sed "s/^/$as_me: WARNING: /" >&2
14220 echo "$as_me:$LINENO: checking for $ac_header" >&5
14221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 eval "$as_ac_Header=\$ac_header_preproc"
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14232 cat >>confdefs.h <<_ACEOF
14233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14243 for ac_header in resolv.h
14245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_header" >&5
14247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 $ac_includes_default
14258 #include <netinet/in.h>
14261 #include <$ac_header>
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>conftest.er1
14267 grep -v '^ *+' conftest.er1 >conftest.err
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag"
14273 || test ! -s conftest.err'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest.$ac_objext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 eval "$as_ac_Header=yes"
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 eval "$as_ac_Header=no"
14292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14297 cat >>confdefs.h <<_ACEOF
14298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14307 for ac_header in netinet/tcp.h
14309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14310 echo "$as_me:$LINENO: checking for $ac_header" >&5
14311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 $ac_includes_default
14322 #include <netinet/in.h>
14325 #include <$ac_header>
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>conftest.er1
14331 grep -v '^ *+' conftest.er1 >conftest.err
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
14336 { ac_try='test -z "$ac_c_werror_flag"
14337 || test ! -s conftest.err'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest.$ac_objext'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349 eval "$as_ac_Header=yes"
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 eval "$as_ac_Header=no"
14356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14371 for ac_header in sys/ucred.h
14373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14374 echo "$as_me:$LINENO: checking for $ac_header" >&5
14375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 cat >conftest.$ac_ext <<_ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14386 #ifdef HAVE_SYS_PARAM_H
14387 #include <sys/param.h>
14391 #include <$ac_header>
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag"
14403 || test ! -s conftest.err'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest.$ac_objext'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 eval "$as_ac_Header=yes"
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 eval "$as_ac_Header=no"
14422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14439 for ac_func in sigaction sigset
14441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14442 echo "$as_me:$LINENO: checking for $ac_func" >&5
14443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14444 if eval "test \"\${$as_ac_var+set}\" = set"; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 cat >conftest.$ac_ext <<_ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14455 #define $ac_func innocuous_$ac_func
14457 /* System header to define __stub macros and hopefully few prototypes,
14458 which can conflict with char $ac_func (); below.
14459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460 <limits.h> exists even on freestanding compilers. */
14463 # include <limits.h>
14465 # include <assert.h>
14470 /* Override any gcc2 internal prototype to avoid an error. */
14475 /* We use char because int might match the return type of a gcc2
14476 builtin and then its argument prototype would still apply. */
14478 /* The GNU C library defines this for functions which it implements
14479 to always fail with ENOSYS. Some functions are actually named
14480 something starting with __ and the normal name is an alias. */
14481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14484 char (*f) () = $ac_func;
14493 return f != $ac_func;
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500 (eval $ac_link) 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try='test -z "$ac_c_werror_flag"
14508 || test ! -s conftest.err'
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; } &&
14514 { ac_try='test -s conftest$ac_exeext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 eval "$as_ac_var=yes"
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14525 eval "$as_ac_var=no"
14527 rm -f conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14532 if test `eval echo '${'$as_ac_var'}'` = yes; then
14533 cat >>confdefs.h <<_ACEOF
14534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14541 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14543 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14544 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14545 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 ac_check_lib_save_LIBS=$LIBS
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14557 /* Override any gcc2 internal prototype to avoid an error. */
14561 /* We use char because int might match the return type of a gcc2
14562 builtin and then its argument prototype would still apply. */
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574 (eval $ac_link) 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 ac_cv_lib_V3_sigset=yes
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 ac_cv_lib_V3_sigset=no
14601 rm -f conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14605 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14606 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14607 if test $ac_cv_lib_V3_sigset = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_LIBV3 1
14618 if test "$ac_cv_header_winsock_h" = yes; then
14619 echo "$as_me:$LINENO: checking for winsock" >&5
14620 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14621 if test "${ol_cv_winsock+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 for curlib in ws2_32 wsock32; do
14626 LIBS="$LIBS -l$curlib"
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <winsock.h>
14640 select(0,NULL,NULL,NULL,NULL);
14642 gethostname(NULL,0);
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14650 (eval $ac_link) 2>conftest.er1
14652 grep -v '^ *+' conftest.er1 >conftest.err
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest$ac_exeext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14677 rm -f conftest.err conftest.$ac_objext \
14678 conftest$ac_exeext conftest.$ac_ext
14680 if test $ol_cv_winsock = yes; then
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_WINSOCK 1
14686 ac_cv_func_socket=yes
14687 ac_cv_func_select=yes
14688 ac_cv_func_closesocket=yes
14689 ac_cv_func_gethostname=yes
14690 if test $curlib = ws2_32; then
14691 ol_cv_winsock=winsock2
14693 cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_WINSOCK2 1
14703 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14704 echo "${ECHO_T}$ol_cv_winsock" >&6
14708 echo "$as_me:$LINENO: checking for socket" >&5
14709 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14710 if test "${ac_cv_func_socket+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14721 #define socket innocuous_socket
14723 /* System header to define __stub macros and hopefully few prototypes,
14724 which can conflict with char socket (); below.
14725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14726 <limits.h> exists even on freestanding compilers. */
14729 # include <limits.h>
14731 # include <assert.h>
14736 /* Override any gcc2 internal prototype to avoid an error. */
14741 /* We use char because int might match the return type of a gcc2
14742 builtin and then its argument prototype would still apply. */
14744 /* The GNU C library defines this for functions which it implements
14745 to always fail with ENOSYS. Some functions are actually named
14746 something starting with __ and the normal name is an alias. */
14747 #if defined (__stub_socket) || defined (__stub___socket)
14750 char (*f) () = socket;
14759 return f != socket;
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766 (eval $ac_link) 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -z "$ac_c_werror_flag"
14774 || test ! -s conftest.err'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest$ac_exeext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_func_socket=yes
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_func_socket=no
14793 rm -f conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14796 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14797 echo "${ECHO_T}$ac_cv_func_socket" >&6
14798 if test $ac_cv_func_socket = yes; then
14803 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14804 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14805 if test "${ac_cv_lib_socket_main+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lsocket $LIBS"
14810 cat >conftest.$ac_ext <<_ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14826 rm -f conftest.$ac_objext conftest$ac_exeext
14827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14828 (eval $ac_link) 2>conftest.er1
14830 grep -v '^ *+' conftest.er1 >conftest.err
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
14835 { ac_try='test -z "$ac_c_werror_flag"
14836 || test ! -s conftest.err'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; } &&
14842 { ac_try='test -s conftest$ac_exeext'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_cv_lib_socket_main=yes
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_cv_lib_socket_main=no
14855 rm -f conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14859 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14860 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14861 if test $ac_cv_lib_socket_main = yes; then
14862 cat >>confdefs.h <<_ACEOF
14863 #define HAVE_LIBSOCKET 1
14866 LIBS="-lsocket $LIBS"
14871 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14872 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14873 if test "${ac_cv_lib_net_main+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 ac_check_lib_save_LIBS=$LIBS
14878 cat >conftest.$ac_ext <<_ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14896 (eval $ac_link) 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag"
14904 || test ! -s conftest.err'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest$ac_exeext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_cv_lib_net_main=yes
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_cv_lib_net_main=no
14923 rm -f conftest.err conftest.$ac_objext \
14924 conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14928 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14929 if test $ac_cv_lib_net_main = yes; then
14930 cat >>confdefs.h <<_ACEOF
14931 #define HAVE_LIBNET 1
14939 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14940 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14941 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-lnsl_s $LIBS"
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14964 (eval $ac_link) 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag"
14972 || test ! -s conftest.err'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest$ac_exeext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_cv_lib_nsl_s_main=yes
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_cv_lib_nsl_s_main=no
14991 rm -f conftest.err conftest.$ac_objext \
14992 conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14996 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14997 if test $ac_cv_lib_nsl_s_main = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define HAVE_LIBNSL_S 1
15002 LIBS="-lnsl_s $LIBS"
15007 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15008 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15009 if test "${ac_cv_lib_nsl_main+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 ac_check_lib_save_LIBS=$LIBS
15014 cat >conftest.$ac_ext <<_ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15032 (eval $ac_link) 2>conftest.er1
15034 grep -v '^ *+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } &&
15039 { ac_try='test -z "$ac_c_werror_flag"
15040 || test ! -s conftest.err'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try='test -s conftest$ac_exeext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 ac_cv_lib_nsl_main=yes
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 ac_cv_lib_nsl_main=no
15059 rm -f conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15063 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15064 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15065 if test $ac_cv_lib_nsl_main = yes; then
15066 cat >>confdefs.h <<_ACEOF
15067 #define HAVE_LIBNSL 1
15075 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15076 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15077 if test "${ac_cv_lib_inet_socket+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-linet $LIBS"
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15089 /* Override any gcc2 internal prototype to avoid an error. */
15093 /* We use char because int might match the return type of a gcc2
15094 builtin and then its argument prototype would still apply. */
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106 (eval $ac_link) 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag"
15114 || test ! -s conftest.err'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; } &&
15120 { ac_try='test -s conftest$ac_exeext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 ac_cv_lib_inet_socket=yes
15128 echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15131 ac_cv_lib_inet_socket=no
15133 rm -f conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
15135 LIBS=$ac_check_lib_save_LIBS
15137 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15138 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15139 if test $ac_cv_lib_inet_socket = yes; then
15140 cat >>confdefs.h <<_ACEOF
15141 #define HAVE_LIBINET 1
15144 LIBS="-linet $LIBS"
15149 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15150 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15151 if test "${ac_cv_lib_gen_main+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 ac_check_lib_save_LIBS=$LIBS
15156 cat >conftest.$ac_ext <<_ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174 (eval $ac_link) 2>conftest.er1
15176 grep -v '^ *+' conftest.er1 >conftest.err
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try='test -z "$ac_c_werror_flag"
15182 || test ! -s conftest.err'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; } &&
15188 { ac_try='test -s conftest$ac_exeext'
15189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190 (eval $ac_try) 2>&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_cv_lib_gen_main=yes
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_cv_lib_gen_main=no
15201 rm -f conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_check_lib_save_LIBS
15205 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15206 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15207 if test $ac_cv_lib_gen_main = yes; then
15208 cat >>confdefs.h <<_ACEOF
15209 #define HAVE_LIBGEN 1
15220 echo "$as_me:$LINENO: checking for select" >&5
15221 echo $ECHO_N "checking for select... $ECHO_C" >&6
15222 if test "${ac_cv_func_select+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 /* Define select to an innocuous variant, in case <limits.h> declares select.
15232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15233 #define select innocuous_select
15235 /* System header to define __stub macros and hopefully few prototypes,
15236 which can conflict with char select (); below.
15237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15238 <limits.h> exists even on freestanding compilers. */
15241 # include <limits.h>
15243 # include <assert.h>
15248 /* Override any gcc2 internal prototype to avoid an error. */
15253 /* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15256 /* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259 #if defined (__stub_select) || defined (__stub___select)
15262 char (*f) () = select;
15271 return f != select;
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278 (eval $ac_link) 2>conftest.er1
15280 grep -v '^ *+' conftest.er1 >conftest.err
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } &&
15285 { ac_try='test -z "$ac_c_werror_flag"
15286 || test ! -s conftest.err'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; } &&
15292 { ac_try='test -s conftest$ac_exeext'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 ac_cv_func_select=yes
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15303 ac_cv_func_select=no
15305 rm -f conftest.err conftest.$ac_objext \
15306 conftest$ac_exeext conftest.$ac_ext
15308 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15309 echo "${ECHO_T}$ac_cv_func_select" >&6
15310 if test $ac_cv_func_select = yes; then
15313 { { echo "$as_me:$LINENO: error: select() required." >&5
15314 echo "$as_me: error: select() required." >&2;}
15315 { (exit 1); exit 1; }; }
15319 if test "${ac_cv_header_winsock_h}" != yes; then
15322 for ac_header in sys/select.h sys/socket.h
15324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15326 echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15334 # Is the header compilable?
15335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 $ac_includes_default
15344 #include <$ac_header>
15346 rm -f conftest.$ac_objext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348 (eval $ac_compile) 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_c_werror_flag"
15356 || test ! -s conftest.err'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try='test -s conftest.$ac_objext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 ac_header_compiler=yes
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_header_compiler=no
15375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15377 echo "${ECHO_T}$ac_header_compiler" >&6
15379 # Is the header present?
15380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 #include <$ac_header>
15390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15393 grep -v '^ *+' conftest.er1 >conftest.err
15395 cat conftest.err >&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } >/dev/null; then
15398 if test -s conftest.err; then
15399 ac_cpp_err=$ac_c_preproc_warn_flag
15400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15407 if test -z "$ac_cpp_err"; then
15408 ac_header_preproc=yes
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_header_preproc=no
15415 rm -f conftest.err conftest.$ac_ext
15416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15417 echo "${ECHO_T}$ac_header_preproc" >&6
15419 # So? What about this header?
15420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15426 ac_header_preproc=yes
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15443 ## --------------------------------------------- ##
15444 ## Report this to <http://www.openldap.org/its/> ##
15445 ## --------------------------------------------- ##
15448 sed "s/^/$as_me: WARNING: /" >&2
15451 echo "$as_me:$LINENO: checking for $ac_header" >&5
15452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 eval "$as_ac_Header=\$ac_header_preproc"
15458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15471 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15472 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15473 if test "${ac_cv_func_select_args+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15477 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15478 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 $ac_includes_default
15486 #if HAVE_SYS_SELECT_H
15487 # include <sys/select.h>
15489 #if HAVE_SYS_SOCKET_H
15490 # include <sys/socket.h>
15496 extern int select ($ac_arg1,
15497 $ac_arg234, $ac_arg234, $ac_arg234,
15503 rm -f conftest.$ac_objext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505 (eval $ac_compile) 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -z "$ac_c_werror_flag"
15513 || test ! -s conftest.err'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; } &&
15519 { ac_try='test -s conftest.$ac_objext'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; }; then
15525 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15535 # Provide a safe default value.
15536 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15539 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15540 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15541 ac_save_IFS=$IFS; IFS=','
15542 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15546 cat >>confdefs.h <<_ACEOF
15547 #define SELECT_TYPE_ARG1 $1
15551 cat >>confdefs.h <<_ACEOF
15552 #define SELECT_TYPE_ARG234 ($2)
15556 cat >>confdefs.h <<_ACEOF
15557 #define SELECT_TYPE_ARG5 ($3)
15566 for ac_func in poll
15568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569 echo "$as_me:$LINENO: checking for $ac_func" >&5
15570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15571 if eval "test \"\${$as_ac_var+set}\" = set"; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15582 #define $ac_func innocuous_$ac_func
15584 /* System header to define __stub macros and hopefully few prototypes,
15585 which can conflict with char $ac_func (); below.
15586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587 <limits.h> exists even on freestanding compilers. */
15590 # include <limits.h>
15592 # include <assert.h>
15597 /* Override any gcc2 internal prototype to avoid an error. */
15602 /* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15605 /* The GNU C library defines this for functions which it implements
15606 to always fail with ENOSYS. Some functions are actually named
15607 something starting with __ and the normal name is an alias. */
15608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15611 char (*f) () = $ac_func;
15620 return f != $ac_func;
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 eval "$as_ac_var=yes"
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 eval "$as_ac_var=no"
15654 rm -f conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15659 if test `eval echo '${'$as_ac_var'}'` = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15667 if test $ac_cv_func_poll = yes; then
15670 for ac_header in poll.h sys/poll.h
15672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15674 echo "$as_me:$LINENO: checking for $ac_header" >&5
15675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15682 # Is the header compilable?
15683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 $ac_includes_default
15692 #include <$ac_header>
15694 rm -f conftest.$ac_objext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15696 (eval $ac_compile) 2>conftest.er1
15698 grep -v '^ *+' conftest.er1 >conftest.err
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_header_compiler=yes
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_header_compiler=no
15723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15725 echo "${ECHO_T}$ac_header_compiler" >&6
15727 # Is the header present?
15728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15730 cat >conftest.$ac_ext <<_ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736 #include <$ac_header>
15738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } >/dev/null; then
15746 if test -s conftest.err; then
15747 ac_cpp_err=$ac_c_preproc_warn_flag
15748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15755 if test -z "$ac_cpp_err"; then
15756 ac_header_preproc=yes
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 ac_header_preproc=no
15763 rm -f conftest.err conftest.$ac_ext
15764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15765 echo "${ECHO_T}$ac_header_preproc" >&6
15767 # So? What about this header?
15768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15774 ac_header_preproc=yes
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15791 ## --------------------------------------------- ##
15792 ## Report this to <http://www.openldap.org/its/> ##
15793 ## --------------------------------------------- ##
15796 sed "s/^/$as_me: WARNING: /" >&2
15799 echo "$as_me:$LINENO: checking for $ac_header" >&5
15800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 eval "$as_ac_Header=\$ac_header_preproc"
15806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15811 cat >>confdefs.h <<_ACEOF
15812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15822 for ac_header in sys/epoll.h
15824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15826 echo "$as_me:$LINENO: checking for $ac_header" >&5
15827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15834 # Is the header compilable?
15835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15837 cat >conftest.$ac_ext <<_ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843 $ac_includes_default
15844 #include <$ac_header>
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag"
15856 || test ! -s conftest.err'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_header_compiler=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_header_compiler=no
15875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15877 echo "${ECHO_T}$ac_header_compiler" >&6
15879 # Is the header present?
15880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15882 cat >conftest.$ac_ext <<_ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 #include <$ac_header>
15890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15893 grep -v '^ *+' conftest.er1 >conftest.err
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } >/dev/null; then
15898 if test -s conftest.err; then
15899 ac_cpp_err=$ac_c_preproc_warn_flag
15900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15907 if test -z "$ac_cpp_err"; then
15908 ac_header_preproc=yes
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 ac_header_preproc=no
15915 rm -f conftest.err conftest.$ac_ext
15916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917 echo "${ECHO_T}$ac_header_preproc" >&6
15919 # So? What about this header?
15920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15926 ac_header_preproc=yes
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15943 ## --------------------------------------------- ##
15944 ## Report this to <http://www.openldap.org/its/> ##
15945 ## --------------------------------------------- ##
15948 sed "s/^/$as_me: WARNING: /" >&2
15951 echo "$as_me:$LINENO: checking for $ac_header" >&5
15952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 eval "$as_ac_Header=\$ac_header_preproc"
15958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15963 cat >>confdefs.h <<_ACEOF
15964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15971 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15972 echo "$as_me:$LINENO: checking for epoll system call" >&5
15973 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15974 if test "$cross_compiling" = yes; then
15975 echo "$as_me:$LINENO: result: no" >&5
15976 echo "${ECHO_T}no" >&6
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 int main(int argc, char **argv)
15986 int epfd = epoll_create(256);
15987 exit (epfd == -1 ? 1 : 0);
15990 rm -f conftest$ac_exeext
15991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15992 (eval $ac_link) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 echo "$as_me:$LINENO: result: yes" >&5
16002 echo "${ECHO_T}yes" >&6
16004 cat >>confdefs.h <<\_ACEOF
16005 #define HAVE_EPOLL 1
16009 echo "$as_me: program exited with status $ac_status" >&5
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ( exit $ac_status )
16014 echo "$as_me:$LINENO: result: no" >&5
16015 echo "${ECHO_T}no" >&6
16017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16022 for ac_header in sys/devpoll.h
16024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026 echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16034 # Is the header compilable?
16035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <$ac_header>
16046 rm -f conftest.$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>conftest.er1
16050 grep -v '^ *+' conftest.er1 >conftest.err
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -z "$ac_c_werror_flag"
16056 || test ! -s conftest.err'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try='test -s conftest.$ac_objext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_header_compiler=yes
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 ac_header_compiler=no
16075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6
16079 # Is the header present?
16080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 #include <$ac_header>
16090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } >/dev/null; then
16098 if test -s conftest.err; then
16099 ac_cpp_err=$ac_c_preproc_warn_flag
16100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16107 if test -z "$ac_cpp_err"; then
16108 ac_header_preproc=yes
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_header_preproc=no
16115 rm -f conftest.err conftest.$ac_ext
16116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16117 echo "${ECHO_T}$ac_header_preproc" >&6
16119 # So? What about this header?
16120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16126 ac_header_preproc=yes
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16143 ## --------------------------------------------- ##
16144 ## Report this to <http://www.openldap.org/its/> ##
16145 ## --------------------------------------------- ##
16148 sed "s/^/$as_me: WARNING: /" >&2
16151 echo "$as_me:$LINENO: checking for $ac_header" >&5
16152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 eval "$as_ac_Header=\$ac_header_preproc"
16158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16163 cat >>confdefs.h <<_ACEOF
16164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16171 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16172 -a "${ac_cv_header_poll_h}" = yes ; \
16174 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16175 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16176 if test "$cross_compiling" = yes; then
16177 echo "$as_me:$LINENO: result: no" >&5
16178 echo "${ECHO_T}no" >&6
16180 cat >conftest.$ac_ext <<_ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 int main(int argc, char **argv)
16188 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16189 exit (devpollfd == -1 ? 1 : 0);
16192 rm -f conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 echo "$as_me:$LINENO: result: yes" >&5
16204 echo "${ECHO_T}yes" >&6
16206 cat >>confdefs.h <<\_ACEOF
16207 #define HAVE_DEVPOLL 1
16211 echo "$as_me: program exited with status $ac_status" >&5
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ( exit $ac_status )
16216 echo "$as_me:$LINENO: result: no" >&5
16217 echo "${ECHO_T}no" >&6
16219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16224 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16225 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16226 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16238 #include <sys/types.h>
16241 #include <stdlib.h>
16246 char *c = (char *) *sys_errlist
16251 rm -f conftest.$ac_objext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16253 (eval $ac_compile) 2>conftest.er1
16255 grep -v '^ *+' conftest.er1 >conftest.err
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } &&
16260 { ac_try='test -z "$ac_c_werror_flag"
16261 || test ! -s conftest.err'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; } &&
16267 { ac_try='test -s conftest.$ac_objext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16273 ol_cv_dcl_sys_errlist=yes
16274 ol_cv_have_sys_errlist=yes
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 ol_cv_dcl_sys_errlist=no
16281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16284 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16286 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16287 if test $ol_cv_dcl_sys_errlist = no ; then
16289 cat >>confdefs.h <<\_ACEOF
16290 #define DECL_SYS_ERRLIST 1
16294 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16295 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16296 if test "${ol_cv_have_sys_errlist+set}" = set; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16310 char *c = (char *) *sys_errlist
16315 rm -f conftest.$ac_objext conftest$ac_exeext
16316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16317 (eval $ac_link) 2>conftest.er1
16319 grep -v '^ *+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } &&
16324 { ac_try='test -z "$ac_c_werror_flag"
16325 || test ! -s conftest.err'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; } &&
16331 { ac_try='test -s conftest$ac_exeext'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ol_cv_have_sys_errlist=yes
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16342 ol_cv_have_sys_errlist=no
16344 rm -f conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext conftest.$ac_ext
16347 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16348 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16350 if test $ol_cv_have_sys_errlist = yes ; then
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_SYS_ERRLIST 1
16359 for ac_func in strerror strerror_r
16361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16362 echo "$as_me:$LINENO: checking for $ac_func" >&5
16363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16364 if eval "test \"\${$as_ac_var+set}\" = set"; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16375 #define $ac_func innocuous_$ac_func
16377 /* System header to define __stub macros and hopefully few prototypes,
16378 which can conflict with char $ac_func (); below.
16379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16380 <limits.h> exists even on freestanding compilers. */
16383 # include <limits.h>
16385 # include <assert.h>
16390 /* Override any gcc2 internal prototype to avoid an error. */
16395 /* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16404 char (*f) () = $ac_func;
16413 return f != $ac_func;
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420 (eval $ac_link) 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -z "$ac_c_werror_flag"
16428 || test ! -s conftest.err'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try='test -s conftest$ac_exeext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 eval "$as_ac_var=yes"
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 eval "$as_ac_var=no"
16447 rm -f conftest.err conftest.$ac_objext \
16448 conftest$ac_exeext conftest.$ac_ext
16450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16452 if test `eval echo '${'$as_ac_var'}'` = yes; then
16453 cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16460 ol_cv_func_strerror_r=no
16461 if test "${ac_cv_func_strerror_r}" = yes ; then
16462 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16463 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16464 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 #include <string.h>
16476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16477 $EGREP "strerror_r" >/dev/null 2>&1; then
16478 ol_decl_strerror_r=yes
16480 ol_decl_strerror_r=no
16484 if test $ol_decl_strerror_r = yes ; then
16485 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 #include <string.h>
16495 /* from autoconf 2.59 */
16497 char x = *strerror_r (0, buf, sizeof buf);
16498 char *p = strerror_r (0, buf, sizeof buf);
16504 rm -f conftest.$ac_objext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506 (eval $ac_compile) 2>conftest.er1
16508 grep -v '^ *+' conftest.er1 >conftest.err
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -z "$ac_c_werror_flag"
16514 || test ! -s conftest.err'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ol_cv_nonposix_strerror_r=yes
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ol_cv_nonposix_strerror_r=no
16533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16535 if test "$cross_compiling" = yes; then
16536 ol_cv_nonposix_strerror=no
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16548 strerror_r( 1, buf, sizeof buf );
16549 exit( buf[0] == 0 );
16553 rm -f conftest$ac_exeext
16554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16555 (eval $ac_link) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ol_cv_nonposix_strerror_r=yes
16566 echo "$as_me: program exited with status $ac_status" >&5
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ( exit $ac_status )
16571 ol_cv_nonposix_strerror=no
16573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16578 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16579 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16580 if test $ol_cv_nonposix_strerror_r = yes ; then
16582 cat >>confdefs.h <<\_ACEOF
16583 #define HAVE_NONPOSIX_STRERROR_R 1
16588 elif test "${ac_cv_func_strerror}" = no ; then
16589 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16590 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16591 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16603 #include <sys/types.h>
16606 #include <stdlib.h>
16611 char *c = (char *) *sys_errlist
16616 rm -f conftest.$ac_objext
16617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16618 (eval $ac_compile) 2>conftest.er1
16620 grep -v '^ *+' conftest.er1 >conftest.err
16622 cat conftest.err >&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } &&
16625 { ac_try='test -z "$ac_c_werror_flag"
16626 || test ! -s conftest.err'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; } &&
16632 { ac_try='test -s conftest.$ac_objext'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
16638 ol_cv_dcl_sys_errlist=yes
16639 ol_cv_have_sys_errlist=yes
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ol_cv_dcl_sys_errlist=no
16646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16648 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16649 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16651 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16652 if test $ol_cv_dcl_sys_errlist = no ; then
16654 cat >>confdefs.h <<\_ACEOF
16655 #define DECL_SYS_ERRLIST 1
16659 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16660 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16661 if test "${ol_cv_have_sys_errlist+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 cat >conftest.$ac_ext <<_ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16675 char *c = (char *) *sys_errlist
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16682 (eval $ac_link) 2>conftest.er1
16684 grep -v '^ *+' conftest.er1 >conftest.err
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag"
16690 || test ! -s conftest.err'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; } &&
16696 { ac_try='test -s conftest$ac_exeext'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ol_cv_have_sys_errlist=yes
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 ol_cv_have_sys_errlist=no
16709 rm -f conftest.err conftest.$ac_objext \
16710 conftest$ac_exeext conftest.$ac_ext
16712 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16713 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16715 if test $ol_cv_have_sys_errlist = yes ; then
16717 cat >>confdefs.h <<\_ACEOF
16718 #define HAVE_SYS_ERRLIST 1
16727 for ac_header in regex.h
16729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16730 echo "$as_me:$LINENO: checking for $ac_header" >&5
16731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 $ac_includes_default
16742 #ifdef HAVE_SYS_TYPES_H
16743 #include <sys/types.h>
16747 #include <$ac_header>
16749 rm -f conftest.$ac_objext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751 (eval $ac_compile) 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag"
16759 || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest.$ac_objext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 eval "$as_ac_Header=yes"
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 eval "$as_ac_Header=no"
16778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16792 if test "$ac_cv_header_regex_h" != yes ; then
16793 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16794 echo "$as_me: error: POSIX regex.h required." >&2;}
16795 { (exit 1); exit 1; }; }
16797 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16798 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16799 if test "${ac_cv_search_regfree+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 ac_func_search_save_LIBS=$LIBS
16803 ac_cv_search_regfree=no
16804 cat >conftest.$ac_ext <<_ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16811 /* Override any gcc2 internal prototype to avoid an error. */
16815 /* We use char because int might match the return type of a gcc2
16816 builtin and then its argument prototype would still apply. */
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_cv_search_regfree="none required"
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16854 rm -f conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16856 if test "$ac_cv_search_regfree" = no; then
16857 for ac_lib in regex gnuregex; do
16858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16866 /* Override any gcc2 internal prototype to avoid an error. */
16870 /* We use char because int might match the return type of a gcc2
16871 builtin and then its argument prototype would still apply. */
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16883 (eval $ac_link) 2>conftest.er1
16885 grep -v '^ *+' conftest.er1 >conftest.err
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -z "$ac_c_werror_flag"
16891 || test ! -s conftest.err'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest$ac_exeext'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 ac_cv_search_regfree="-l$ac_lib"
16906 echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16910 rm -f conftest.err conftest.$ac_objext \
16911 conftest$ac_exeext conftest.$ac_ext
16914 LIBS=$ac_func_search_save_LIBS
16916 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16917 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16918 if test "$ac_cv_search_regfree" != no; then
16919 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16922 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16923 echo "$as_me: error: POSIX regex required." >&2;}
16924 { (exit 1); exit 1; }; }
16929 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16930 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16931 if test "${ol_cv_c_posix_regex+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 if test "$cross_compiling" = yes; then
16936 ol_cv_c_posix_regex=cross
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16945 #include <sys/types.h>
16947 static char *pattern, *string;
16955 if(regcomp(&re, pattern, 0)) {
16959 string = "ALL MATCH";
16961 rc = regexec(&re, string, 0, (void*)0, 0);
16968 rm -f conftest$ac_exeext
16969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16970 (eval $ac_link) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ol_cv_c_posix_regex=yes
16981 echo "$as_me: program exited with status $ac_status" >&5
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ( exit $ac_status )
16986 ol_cv_c_posix_regex=no
16988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16991 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16992 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16994 if test "$ol_cv_c_posix_regex" = no ; then
16995 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16996 echo "$as_me: error: broken POSIX regex!" >&2;}
16997 { (exit 1); exit 1; }; }
17003 for ac_header in sys/uuid.h
17005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17007 echo "$as_me:$LINENO: checking for $ac_header" >&5
17008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17015 # Is the header compilable?
17016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 $ac_includes_default
17025 #include <$ac_header>
17027 rm -f conftest.$ac_objext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17029 (eval $ac_compile) 2>conftest.er1
17031 grep -v '^ *+' conftest.er1 >conftest.err
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest.$ac_objext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_header_compiler=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_header_compiler=no
17056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17058 echo "${ECHO_T}$ac_header_compiler" >&6
17060 # Is the header present?
17061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17063 cat >conftest.$ac_ext <<_ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 #include <$ac_header>
17071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17074 grep -v '^ *+' conftest.er1 >conftest.err
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } >/dev/null; then
17079 if test -s conftest.err; then
17080 ac_cpp_err=$ac_c_preproc_warn_flag
17081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17088 if test -z "$ac_cpp_err"; then
17089 ac_header_preproc=yes
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_header_preproc=no
17096 rm -f conftest.err conftest.$ac_ext
17097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17098 echo "${ECHO_T}$ac_header_preproc" >&6
17100 # So? What about this header?
17101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17107 ac_header_preproc=yes
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17124 ## --------------------------------------------- ##
17125 ## Report this to <http://www.openldap.org/its/> ##
17126 ## --------------------------------------------- ##
17129 sed "s/^/$as_me: WARNING: /" >&2
17132 echo "$as_me:$LINENO: checking for $ac_header" >&5
17133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 eval "$as_ac_Header=\$ac_header_preproc"
17139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17152 if test $ac_cv_header_sys_uuid_h = yes ; then
17154 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17155 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17156 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 ac_func_search_save_LIBS=$LIBS
17160 ac_cv_search_uuid_to_str=no
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17168 /* Override any gcc2 internal prototype to avoid an error. */
17172 /* We use char because int might match the return type of a gcc2
17173 builtin and then its argument prototype would still apply. */
17174 char uuid_to_str ();
17183 rm -f conftest.$ac_objext conftest$ac_exeext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17185 (eval $ac_link) 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag"
17193 || test ! -s conftest.err'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_search_uuid_to_str="none required"
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17211 rm -f conftest.err conftest.$ac_objext \
17212 conftest$ac_exeext conftest.$ac_ext
17213 if test "$ac_cv_search_uuid_to_str" = no; then
17214 for ac_lib in uuid; do
17215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17216 cat >conftest.$ac_ext <<_ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17223 /* Override any gcc2 internal prototype to avoid an error. */
17227 /* We use char because int might match the return type of a gcc2
17228 builtin and then its argument prototype would still apply. */
17229 char uuid_to_str ();
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240 (eval $ac_link) 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_cv_search_uuid_to_str="-l$ac_lib"
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17267 rm -f conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_func_search_save_LIBS
17273 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17274 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17275 if test "$ac_cv_search_uuid_to_str" != no; then
17276 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17284 if test have_uuid = yes ; then
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_UUID_TO_STR 1
17291 test "$ac_cv_search_uuid_to_str" = "none required" || \
17292 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17296 if test $have_uuid = no ; then
17297 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17298 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17300 LIBS="$LIBS -lrpcrt4"
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17308 int __stdcall UuidCreate(void *);
17309 int __stdcall UuidToStringA(void *,void **);
17316 UuidToStringA(0,0);
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324 (eval $ac_link) 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest$ac_exeext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17351 rm -f conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17353 if test $need_rpcrt = yes; then
17354 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17357 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17358 echo "${ECHO_T}$need_rpcrt" >&6
17361 ol_cv_lib_resolver=no
17362 if test $ol_cv_lib_resolver = no ; then
17363 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17364 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17365 if test "${ol_cv_resolver_none+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 LIBS="$ol_RESOLVER_LIB $LIBS"
17373 cat >conftest.$ac_ext <<_ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17380 #ifdef HAVE_SYS_TYPES_H
17381 # include <sys/types.h>
17383 #include <netinet/in.h>
17384 #ifdef HAVE_ARPA_NAMESER_H
17385 # include <arpa/nameser.h>
17387 #ifdef HAVE_RESOLV_H
17388 # include <resolv.h>
17396 char *request = NULL;
17397 unsigned char reply[64*1024];
17398 unsigned char host[64*1024];
17402 /* Bind 8/9 interface */
17403 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17405 /* Bind 4 interface */
17409 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17413 /* Bind 8/9 interface */
17415 #elif defined(HFIXEDSZ)
17416 /* Bind 4 interface w/ HFIXEDSZ */
17419 /* Bind 4 interface w/o HFIXEDSZ */
17420 p += sizeof(HEADER);
17422 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag"
17438 || test ! -s conftest.err'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 ol_cv_resolver_none=yes
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17455 ol_cv_resolver_none=no
17457 rm -f conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17463 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17464 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17466 if test $ol_cv_resolver_none = yes ; then
17467 ol_cv_lib_resolver=yes
17471 if test $ol_cv_lib_resolver = no ; then
17472 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17473 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17474 if test "${ol_cv_resolver_resolv+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 ol_RESOLVER_LIB=-lresolv
17480 LIBS="$ol_RESOLVER_LIB $LIBS"
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17489 #ifdef HAVE_SYS_TYPES_H
17490 # include <sys/types.h>
17492 #include <netinet/in.h>
17493 #ifdef HAVE_ARPA_NAMESER_H
17494 # include <arpa/nameser.h>
17496 #ifdef HAVE_RESOLV_H
17497 # include <resolv.h>
17505 char *request = NULL;
17506 unsigned char reply[64*1024];
17507 unsigned char host[64*1024];
17511 /* Bind 8/9 interface */
17512 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17514 /* Bind 4 interface */
17518 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17522 /* Bind 8/9 interface */
17524 #elif defined(HFIXEDSZ)
17525 /* Bind 4 interface w/ HFIXEDSZ */
17528 /* Bind 4 interface w/o HFIXEDSZ */
17529 p += sizeof(HEADER);
17531 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17537 rm -f conftest.$ac_objext conftest$ac_exeext
17538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17539 (eval $ac_link) 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag"
17547 || test ! -s conftest.err'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest$ac_exeext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ol_cv_resolver_resolv=yes
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 ol_cv_resolver_resolv=no
17566 rm -f conftest.err conftest.$ac_objext \
17567 conftest$ac_exeext conftest.$ac_ext
17572 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17573 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17575 if test $ol_cv_resolver_resolv = yes ; then
17576 ol_cv_lib_resolver=-lresolv
17580 if test $ol_cv_lib_resolver = no ; then
17581 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17582 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17583 if test "${ol_cv_resolver_bind+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 ol_RESOLVER_LIB=-lbind
17589 LIBS="$ol_RESOLVER_LIB $LIBS"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17598 #ifdef HAVE_SYS_TYPES_H
17599 # include <sys/types.h>
17601 #include <netinet/in.h>
17602 #ifdef HAVE_ARPA_NAMESER_H
17603 # include <arpa/nameser.h>
17605 #ifdef HAVE_RESOLV_H
17606 # include <resolv.h>
17614 char *request = NULL;
17615 unsigned char reply[64*1024];
17616 unsigned char host[64*1024];
17620 /* Bind 8/9 interface */
17621 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17623 /* Bind 4 interface */
17627 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17631 /* Bind 8/9 interface */
17633 #elif defined(HFIXEDSZ)
17634 /* Bind 4 interface w/ HFIXEDSZ */
17637 /* Bind 4 interface w/o HFIXEDSZ */
17638 p += sizeof(HEADER);
17640 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>conftest.er1
17650 grep -v '^ *+' conftest.er1 >conftest.err
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 ol_cv_resolver_bind=yes
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 ol_cv_resolver_bind=no
17675 rm -f conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17681 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17682 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17684 if test $ol_cv_resolver_bind = yes ; then
17685 ol_cv_lib_resolver=-lbind
17692 if test "$ol_cv_lib_resolver" != no ; then
17694 cat >>confdefs.h <<\_ACEOF
17695 #define HAVE_RES_QUERY 1
17699 if test "$ol_enable_dnssrv" != no ; then
17703 if test "$ol_cv_lib_resolver" != yes ; then
17704 LIBS="$ol_cv_lib_resolver $LIBS"
17708 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17709 if test "$ol_link_dnssrv" = no ; then
17710 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17711 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17712 { (exit 1); exit 1; }; }
17715 ol_enable_dnssrv=no
17719 for ac_func in hstrerror
17721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17722 echo "$as_me:$LINENO: checking for $ac_func" >&5
17723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17724 if eval "test \"\${$as_ac_var+set}\" = set"; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17735 #define $ac_func innocuous_$ac_func
17737 /* System header to define __stub macros and hopefully few prototypes,
17738 which can conflict with char $ac_func (); below.
17739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17740 <limits.h> exists even on freestanding compilers. */
17743 # include <limits.h>
17745 # include <assert.h>
17750 /* Override any gcc2 internal prototype to avoid an error. */
17755 /* We use char because int might match the return type of a gcc2
17756 builtin and then its argument prototype would still apply. */
17758 /* The GNU C library defines this for functions which it implements
17759 to always fail with ENOSYS. Some functions are actually named
17760 something starting with __ and the normal name is an alias. */
17761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17764 char (*f) () = $ac_func;
17773 return f != $ac_func;
17778 rm -f conftest.$ac_objext conftest$ac_exeext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17780 (eval $ac_link) 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest$ac_exeext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 eval "$as_ac_var=yes"
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 eval "$as_ac_var=no"
17807 rm -f conftest.err conftest.$ac_objext \
17808 conftest$ac_exeext conftest.$ac_ext
17810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17812 if test `eval echo '${'$as_ac_var'}'` = yes; then
17813 cat >>confdefs.h <<_ACEOF
17814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17825 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17828 echo "$as_me:$LINENO: checking for $ac_func" >&5
17829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17830 if eval "test \"\${$as_ac_var+set}\" = set"; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 cat >conftest.$ac_ext <<_ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17841 #define $ac_func innocuous_$ac_func
17843 /* System header to define __stub macros and hopefully few prototypes,
17844 which can conflict with char $ac_func (); below.
17845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17846 <limits.h> exists even on freestanding compilers. */
17849 # include <limits.h>
17851 # include <assert.h>
17856 /* Override any gcc2 internal prototype to avoid an error. */
17861 /* We use char because int might match the return type of a gcc2
17862 builtin and then its argument prototype would still apply. */
17864 /* The GNU C library defines this for functions which it implements
17865 to always fail with ENOSYS. Some functions are actually named
17866 something starting with __ and the normal name is an alias. */
17867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17870 char (*f) () = $ac_func;
17879 return f != $ac_func;
17884 rm -f conftest.$ac_objext conftest$ac_exeext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17886 (eval $ac_link) 2>conftest.er1
17888 grep -v '^ *+' conftest.er1 >conftest.err
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag"
17894 || test ! -s conftest.err'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 eval "$as_ac_var=yes"
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 eval "$as_ac_var=no"
17913 rm -f conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17918 if test `eval echo '${'$as_ac_var'}'` = yes; then
17919 cat >>confdefs.h <<_ACEOF
17920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17928 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17929 if test $ol_enable_ipv6 = yes ; then
17930 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17931 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17932 { (exit 1); exit 1; }; }
17934 elif test $ol_enable_ipv6 != no ; then
17935 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17936 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17937 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17948 # include <netinet/in.h>
17949 # ifdef INET6_ADDRSTRLEN
17950 __has_inet6_addrstrlen__;
17954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17955 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17956 ol_cv_inet6_addrstrlen=yes
17958 ol_cv_inet6_addrstrlen=no
17963 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17964 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17967 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17968 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17969 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 cat >conftest.$ac_ext <<_ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17980 #include <sys/types.h>
17981 #include <sys/socket.h>
17987 struct sockaddr_storage ss;
17993 rm -f conftest.$ac_objext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17995 (eval $ac_compile) 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest.$ac_objext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 ol_cv_struct_sockaddr_storage=yes
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 ol_cv_struct_sockaddr_storage=no
18022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18024 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18025 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18027 if test $ol_cv_inet6_addrstrlen = yes &&
18028 test $ol_cv_struct_sockaddr_storage = yes ; then
18030 elif test $ol_enable_ipv6 = yes &&
18031 test $ol_cv_inet6_addrstrlen = no ; then
18032 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18033 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18034 { (exit 1); exit 1; }; }
18035 elif test $ol_enable_ipv6 = yes &&
18036 test $ol_cv_struct_sockaddr_storage = no ; then
18037 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18038 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18039 { (exit 1); exit 1; }; }
18043 if test $ol_enable_local != no ; then
18045 for ac_header in sys/un.h
18047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18049 echo "$as_me:$LINENO: checking for $ac_header" >&5
18050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18057 # Is the header compilable?
18058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18067 #include <$ac_header>
18069 rm -f conftest.$ac_objext
18070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18071 (eval $ac_compile) 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
18078 { ac_try='test -z "$ac_c_werror_flag"
18079 || test ! -s conftest.err'
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest.$ac_objext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_header_compiler=yes
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_header_compiler=no
18098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18100 echo "${ECHO_T}$ac_header_compiler" >&6
18102 # Is the header present?
18103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 #include <$ac_header>
18113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18116 grep -v '^ *+' conftest.er1 >conftest.err
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } >/dev/null; then
18121 if test -s conftest.err; then
18122 ac_cpp_err=$ac_c_preproc_warn_flag
18123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18130 if test -z "$ac_cpp_err"; then
18131 ac_header_preproc=yes
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_header_preproc=no
18138 rm -f conftest.err conftest.$ac_ext
18139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18140 echo "${ECHO_T}$ac_header_preproc" >&6
18142 # So? What about this header?
18143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18149 ac_header_preproc=yes
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18166 ## --------------------------------------------- ##
18167 ## Report this to <http://www.openldap.org/its/> ##
18168 ## --------------------------------------------- ##
18171 sed "s/^/$as_me: WARNING: /" >&2
18174 echo "$as_me:$LINENO: checking for $ac_header" >&5
18175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 eval "$as_ac_Header=\$ac_header_preproc"
18181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18186 cat >>confdefs.h <<_ACEOF
18187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18195 if test $ol_enable_local = auto ; then
18196 ol_enable_local=$ac_cv_header_sys_un_h
18197 elif test $ac_cv_header_sys_un_h = no ; then
18198 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18199 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18200 { (exit 1); exit 1; }; }
18208 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18211 for ac_header in krb5.h
18213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18215 echo "$as_me:$LINENO: checking for $ac_header" >&5
18216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18223 # Is the header compilable?
18224 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18226 cat >conftest.$ac_ext <<_ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 $ac_includes_default
18233 #include <$ac_header>
18235 rm -f conftest.$ac_objext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18237 (eval $ac_compile) 2>conftest.er1
18239 grep -v '^ *+' conftest.er1 >conftest.err
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } &&
18244 { ac_try='test -z "$ac_c_werror_flag"
18245 || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest.$ac_objext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 ac_header_compiler=yes
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 ac_header_compiler=no
18264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18266 echo "${ECHO_T}$ac_header_compiler" >&6
18268 # Is the header present?
18269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 #include <$ac_header>
18279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } >/dev/null; then
18287 if test -s conftest.err; then
18288 ac_cpp_err=$ac_c_preproc_warn_flag
18289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18296 if test -z "$ac_cpp_err"; then
18297 ac_header_preproc=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_header_preproc=no
18304 rm -f conftest.err conftest.$ac_ext
18305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18306 echo "${ECHO_T}$ac_header_preproc" >&6
18308 # So? What about this header?
18309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18315 ac_header_preproc=yes
18318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18332 ## --------------------------------------------- ##
18333 ## Report this to <http://www.openldap.org/its/> ##
18334 ## --------------------------------------------- ##
18337 sed "s/^/$as_me: WARNING: /" >&2
18340 echo "$as_me:$LINENO: checking for $ac_header" >&5
18341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18345 eval "$as_ac_Header=\$ac_header_preproc"
18347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18352 cat >>confdefs.h <<_ACEOF
18353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18361 if test $ac_cv_header_krb5_h = yes ; then
18363 for ac_header in heim_err.h
18365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18367 echo "$as_me:$LINENO: checking for $ac_header" >&5
18368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18375 # Is the header compilable?
18376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 $ac_includes_default
18385 #include <$ac_header>
18387 rm -f conftest.$ac_objext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18389 (eval $ac_compile) 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_header_compiler=yes
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_header_compiler=no
18416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18418 echo "${ECHO_T}$ac_header_compiler" >&6
18420 # Is the header present?
18421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 #include <$ac_header>
18431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18434 grep -v '^ *+' conftest.er1 >conftest.err
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } >/dev/null; then
18439 if test -s conftest.err; then
18440 ac_cpp_err=$ac_c_preproc_warn_flag
18441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18448 if test -z "$ac_cpp_err"; then
18449 ac_header_preproc=yes
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_header_preproc=no
18456 rm -f conftest.err conftest.$ac_ext
18457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458 echo "${ECHO_T}$ac_header_preproc" >&6
18460 # So? What about this header?
18461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18467 ac_header_preproc=yes
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18484 ## --------------------------------------------- ##
18485 ## Report this to <http://www.openldap.org/its/> ##
18486 ## --------------------------------------------- ##
18489 sed "s/^/$as_me: WARNING: /" >&2
18492 echo "$as_me:$LINENO: checking for $ac_header" >&5
18493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 eval "$as_ac_Header=\$ac_header_preproc"
18499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18504 cat >>confdefs.h <<_ACEOF
18505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18512 if test $ac_cv_header_heim_err_h = yes ; then
18518 if test $krb5_impl = mit; then
18519 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18520 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18521 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lk5crypto $LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1 >conftest.err
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_lib_k5crypto_main=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 ac_cv_lib_k5crypto_main=no
18571 rm -f conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18575 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18576 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18577 if test $ac_cv_lib_k5crypto_main = yes; then
18578 krb5crypto=k5crypto
18584 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18585 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18586 if test "${ac_cv_lib_krb5_main+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ac_check_lib_save_LIBS=$LIBS
18590 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>conftest.er1
18611 grep -v '^ *+' conftest.er1 >conftest.err
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag"
18617 || test ! -s conftest.err'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } &&
18623 { ac_try='test -s conftest$ac_exeext'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629 ac_cv_lib_krb5_main=yes
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 ac_cv_lib_krb5_main=no
18636 rm -f conftest.err conftest.$ac_objext \
18637 conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_check_lib_save_LIBS
18640 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18641 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18642 if test $ac_cv_lib_krb5_main = yes; then
18644 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18650 elif test $krb5_impl = heimdal; then
18651 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18652 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18653 if test "${ac_cv_lib_des_main+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 ac_check_lib_save_LIBS=$LIBS
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676 (eval $ac_link) 2>conftest.er1
18678 grep -v '^ *+' conftest.er1 >conftest.err
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag"
18684 || test ! -s conftest.err'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest$ac_exeext'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 ac_cv_lib_des_main=yes
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 ac_cv_lib_des_main=no
18703 rm -f conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18707 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18708 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18709 if test $ac_cv_lib_des_main = yes; then
18716 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18717 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18718 if test "${ac_cv_lib_krb5_main+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 ac_check_lib_save_LIBS=$LIBS
18722 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18739 rm -f conftest.$ac_objext conftest$ac_exeext
18740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18741 (eval $ac_link) 2>conftest.er1
18743 grep -v '^ *+' conftest.er1 >conftest.err
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -z "$ac_c_werror_flag"
18749 || test ! -s conftest.err'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try='test -s conftest$ac_exeext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_lib_krb5_main=yes
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 ac_cv_lib_krb5_main=no
18768 rm -f conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18772 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18773 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18774 if test $ac_cv_lib_krb5_main = yes; then
18776 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18783 cat >>confdefs.h <<\_ACEOF
18784 #define HAVE_HEIMDAL_KERBEROS 1
18790 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18791 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18794 if test $have_krb5 = yes ; then
18798 cat >>confdefs.h <<\_ACEOF
18799 #define HAVE_KRB5 1
18803 if test $ol_with_kerberos = k5only ; then
18804 ol_with_kerberos=found
18807 elif test $ol_with_kerberos != auto ; then
18808 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18809 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18810 { (exit 1); exit 1; }; }
18817 if test $ol_link_krb5 = yes &&
18818 { test $ol_with_kerberos = yes ||
18819 test $ol_with_kerberos = auto ||
18820 test $ol_with_kerberos = k425; }; then
18824 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18828 echo "$as_me:$LINENO: checking for $ac_header" >&5
18829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18836 # Is the header compilable?
18837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18839 cat >conftest.$ac_ext <<_ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 $ac_includes_default
18846 #include <$ac_header>
18848 rm -f conftest.$ac_objext
18849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18850 (eval $ac_compile) 2>conftest.er1
18852 grep -v '^ *+' conftest.er1 >conftest.err
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } &&
18857 { ac_try='test -z "$ac_c_werror_flag"
18858 || test ! -s conftest.err'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; } &&
18864 { ac_try='test -s conftest.$ac_objext'
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 ac_header_compiler=yes
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18875 ac_header_compiler=no
18877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18879 echo "${ECHO_T}$ac_header_compiler" >&6
18881 # Is the header present?
18882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18884 cat >conftest.$ac_ext <<_ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 #include <$ac_header>
18892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } >/dev/null; then
18900 if test -s conftest.err; then
18901 ac_cpp_err=$ac_c_preproc_warn_flag
18902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18909 if test -z "$ac_cpp_err"; then
18910 ac_header_preproc=yes
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_header_preproc=no
18917 rm -f conftest.err conftest.$ac_ext
18918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18919 echo "${ECHO_T}$ac_header_preproc" >&6
18921 # So? What about this header?
18922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18928 ac_header_preproc=yes
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18945 ## --------------------------------------------- ##
18946 ## Report this to <http://www.openldap.org/its/> ##
18947 ## --------------------------------------------- ##
18950 sed "s/^/$as_me: WARNING: /" >&2
18953 echo "$as_me:$LINENO: checking for $ac_header" >&5
18954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 eval "$as_ac_Header=\$ac_header_preproc"
18960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18965 cat >>confdefs.h <<_ACEOF
18966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18974 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18975 if test $krb5_impl = mit; then
18976 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18977 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18978 if test "${ac_cv_lib_krb4_main+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 ac_check_lib_save_LIBS=$LIBS
18982 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18983 cat >conftest.$ac_ext <<_ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>conftest.er1
19003 grep -v '^ *+' conftest.er1 >conftest.err
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_c_werror_flag"
19009 || test ! -s conftest.err'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_krb4_main=yes
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_cv_lib_krb4_main=no
19028 rm -f conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext conftest.$ac_ext
19030 LIBS=$ac_check_lib_save_LIBS
19032 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19033 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19034 if test $ac_cv_lib_krb4_main = yes; then
19036 KRB4_LIBS="-lkrb4 -ldes425"
19042 elif test $krb5_impl = heimdal; then
19043 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19044 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19045 if test "${ac_cv_lib_krb4_main+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 ac_check_lib_save_LIBS=$LIBS
19049 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19050 cat >conftest.$ac_ext <<_ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19068 (eval $ac_link) 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag"
19076 || test ! -s conftest.err'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest$ac_exeext'
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_cv_lib_krb4_main=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_lib_krb4_main=no
19095 rm -f conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19099 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19100 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19101 if test $ac_cv_lib_krb4_main = yes; then
19111 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19112 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19115 if test $have_k425 = yes ; then
19116 ol_with_kerberos=found
19120 cat >>confdefs.h <<\_ACEOF
19121 #define HAVE_KRB425 1
19125 cat >>confdefs.h <<\_ACEOF
19126 #define HAVE_KRB4 1
19130 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19131 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19132 if test "${ol_cv_var_des_debug+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19145 #include <kerberosIV/krb.h>
19146 #include <kerberosIV/des.h>
19147 extern int des_debug;
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19161 (eval $ac_link) 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest$ac_exeext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ol_cv_var_des_debug=yes
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ol_cv_var_des_debug=no
19188 rm -f conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19193 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19194 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19196 if test $ol_cv_var_des_debug = yes ; then
19198 cat >>confdefs.h <<\_ACEOF
19199 #define HAVE_DES_DEBUG 1
19209 if test $ol_link_krb5 = yes ; then
19210 ol_with_kerberos=found
19213 case $ol_with_kerberos in yes | auto | k4 | kth)
19218 for ac_header in krb.h des.h krb-archaeology.h
19220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19222 echo "$as_me:$LINENO: checking for $ac_header" >&5
19223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19230 # Is the header compilable?
19231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19233 cat >conftest.$ac_ext <<_ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19240 #include <$ac_header>
19242 rm -f conftest.$ac_objext
19243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19244 (eval $ac_compile) 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_c_werror_flag"
19252 || test ! -s conftest.err'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_header_compiler=yes
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 ac_header_compiler=no
19271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19273 echo "${ECHO_T}$ac_header_compiler" >&6
19275 # Is the header present?
19276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284 #include <$ac_header>
19286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19289 grep -v '^ *+' conftest.er1 >conftest.err
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } >/dev/null; then
19294 if test -s conftest.err; then
19295 ac_cpp_err=$ac_c_preproc_warn_flag
19296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19303 if test -z "$ac_cpp_err"; then
19304 ac_header_preproc=yes
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_header_preproc=no
19311 rm -f conftest.err conftest.$ac_ext
19312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19313 echo "${ECHO_T}$ac_header_preproc" >&6
19315 # So? What about this header?
19316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19322 ac_header_preproc=yes
19325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19339 ## --------------------------------------------- ##
19340 ## Report this to <http://www.openldap.org/its/> ##
19341 ## --------------------------------------------- ##
19344 sed "s/^/$as_me: WARNING: /" >&2
19347 echo "$as_me:$LINENO: checking for $ac_header" >&5
19348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 eval "$as_ac_Header=\$ac_header_preproc"
19354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19368 if test $ac_cv_header_krb_h = yes ; then
19369 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19370 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19371 if test "${ac_cv_lib_krb_main+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 ac_check_lib_save_LIBS=$LIBS
19375 LIBS="-lkrb -ldes $LIBS"
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19392 rm -f conftest.$ac_objext conftest$ac_exeext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19394 (eval $ac_link) 2>conftest.er1
19396 grep -v '^ *+' conftest.er1 >conftest.err
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest$ac_exeext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_lib_krb_main=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ac_cv_lib_krb_main=no
19421 rm -f conftest.err conftest.$ac_objext \
19422 conftest$ac_exeext conftest.$ac_ext
19423 LIBS=$ac_check_lib_save_LIBS
19425 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19426 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19427 if test $ac_cv_lib_krb_main = yes; then
19434 if test $have_k4 = yes ; then
19435 ol_with_kerberos=found
19439 cat >>confdefs.h <<\_ACEOF
19440 #define HAVE_KRB4 1
19444 KRB4_LIBS="-lkrb -ldes"
19446 if test $ac_cv_header_krb_archaeology_h = yes ; then
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_KTH_KERBEROS 1
19458 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19461 elif test $ol_enable_kbind = yes ; then
19462 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19463 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19464 { (exit 1); exit 1; }; }
19467 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19469 cat >>confdefs.h <<\_ACEOF
19470 #define HAVE_KERBEROS 1
19474 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19475 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19476 echo "$as_me: error: Kerberos detection failed" >&2;}
19477 { (exit 1); exit 1; }; }
19481 if test $ol_with_tls = yes ; then
19486 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19488 for ac_header in openssl/ssl.h
19490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19492 echo "$as_me:$LINENO: checking for $ac_header" >&5
19493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19500 # Is the header compilable?
19501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19503 cat >conftest.$ac_ext <<_ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509 $ac_includes_default
19510 #include <$ac_header>
19512 rm -f conftest.$ac_objext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>conftest.er1
19516 grep -v '^ *+' conftest.er1 >conftest.err
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
19521 { ac_try='test -z "$ac_c_werror_flag"
19522 || test ! -s conftest.err'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 ac_header_compiler=yes
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_header_compiler=no
19541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19543 echo "${ECHO_T}$ac_header_compiler" >&6
19545 # Is the header present?
19546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <$ac_header>
19556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } >/dev/null; then
19564 if test -s conftest.err; then
19565 ac_cpp_err=$ac_c_preproc_warn_flag
19566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19573 if test -z "$ac_cpp_err"; then
19574 ac_header_preproc=yes
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 ac_header_preproc=no
19581 rm -f conftest.err conftest.$ac_ext
19582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19583 echo "${ECHO_T}$ac_header_preproc" >&6
19585 # So? What about this header?
19586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19592 ac_header_preproc=yes
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19609 ## --------------------------------------------- ##
19610 ## Report this to <http://www.openldap.org/its/> ##
19611 ## --------------------------------------------- ##
19614 sed "s/^/$as_me: WARNING: /" >&2
19617 echo "$as_me:$LINENO: checking for $ac_header" >&5
19618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 eval "$as_ac_Header=\$ac_header_preproc"
19624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19629 cat >>confdefs.h <<_ACEOF
19630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19638 if test $ac_cv_header_openssl_ssl_h = yes ; then
19639 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19640 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19641 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 ac_check_lib_save_LIBS=$LIBS
19645 LIBS="-lssl -lcrypto $LIBS"
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19653 /* Override any gcc2 internal prototype to avoid an error. */
19657 /* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
19659 char SSL_library_init ();
19663 SSL_library_init ();
19668 rm -f conftest.$ac_objext conftest$ac_exeext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19670 (eval $ac_link) 2>conftest.er1
19672 grep -v '^ *+' conftest.er1 >conftest.err
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -z "$ac_c_werror_flag"
19678 || test ! -s conftest.err'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest$ac_exeext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_lib_ssl_SSL_library_init=yes
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 ac_cv_lib_ssl_SSL_library_init=no
19697 rm -f conftest.err conftest.$ac_objext \
19698 conftest$ac_exeext conftest.$ac_ext
19699 LIBS=$ac_check_lib_save_LIBS
19701 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19702 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19703 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19711 if test $have_openssl = no ; then
19712 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19713 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19714 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19726 /* Override any gcc2 internal prototype to avoid an error. */
19730 /* We use char because int might match the return type of a gcc2
19731 builtin and then its argument prototype would still apply. */
19732 char ssl3_accept ();
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19743 (eval $ac_link) 2>conftest.er1
19745 grep -v '^ *+' conftest.er1 >conftest.err
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_c_werror_flag"
19751 || test ! -s conftest.err'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest$ac_exeext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_cv_lib_ssl_ssl3_accept=yes
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ac_cv_lib_ssl_ssl3_accept=no
19770 rm -f conftest.err conftest.$ac_objext \
19771 conftest$ac_exeext conftest.$ac_ext
19772 LIBS=$ac_check_lib_save_LIBS
19774 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19775 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19776 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19785 if test $have_openssl = yes ; then
19786 ol_with_tls=openssl
19790 cat >>confdefs.h <<\_ACEOF
19791 #define HAVE_OPENSSL 1
19795 if test $need_rsaref = yes; then
19797 cat >>confdefs.h <<\_ACEOF
19798 #define HAVE_RSAREF 1
19802 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19804 TLS_LIBS="-lssl -lcrypto"
19807 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19808 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19809 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19820 #ifdef HAVE_OPENSSL_SSL_H
19821 #include <openssl/ssl.h>
19824 /* Require 0.9.7d+ */
19825 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19826 char *__ssl_compat = "0.9.7d";
19830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19831 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19832 ol_cv_ssl_crl_compat=yes
19834 ol_cv_ssl_crl_compat=no
19839 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19840 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19842 if test $ol_cv_ssl_crl_compat = yes ; then
19844 cat >>confdefs.h <<\_ACEOF
19845 #define HAVE_OPENSSL_CRL 1
19854 if test $ol_link_tls = yes ; then
19856 cat >>confdefs.h <<\_ACEOF
19861 elif test $ol_with_tls = auto ; then
19862 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19863 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19865 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19866 elif test $ol_with_tls != no ; then
19867 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19868 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19869 { (exit 1); exit 1; }; }
19871 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19872 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19875 if test $ol_enable_lmpasswd != no; then
19876 if test $ol_link_tls != yes ; then
19877 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19878 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19879 { (exit 1); exit 1; }; }
19883 cat >>confdefs.h <<\_ACEOF
19884 #define SLAPD_LMHASH 1
19891 case $ol_with_threads in auto | yes | nt)
19894 echo "$as_me:$LINENO: checking for _beginthread" >&5
19895 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19896 if test "${ac_cv_func__beginthread+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19907 #define _beginthread innocuous__beginthread
19909 /* System header to define __stub macros and hopefully few prototypes,
19910 which can conflict with char _beginthread (); below.
19911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19912 <limits.h> exists even on freestanding compilers. */
19915 # include <limits.h>
19917 # include <assert.h>
19920 #undef _beginthread
19922 /* Override any gcc2 internal prototype to avoid an error. */
19927 /* We use char because int might match the return type of a gcc2
19928 builtin and then its argument prototype would still apply. */
19929 char _beginthread ();
19930 /* The GNU C library defines this for functions which it implements
19931 to always fail with ENOSYS. Some functions are actually named
19932 something starting with __ and the normal name is an alias. */
19933 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19936 char (*f) () = _beginthread;
19945 return f != _beginthread;
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19952 (eval $ac_link) 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag"
19960 || test ! -s conftest.err'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest$ac_exeext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_func__beginthread=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ac_cv_func__beginthread=no
19979 rm -f conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19982 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19983 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19986 if test $ac_cv_func__beginthread = yes ; then
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE_NT_THREADS 1
19992 ol_cv_nt_threads=yes
19996 if test "$ol_cv_nt_threads" = yes ; then
19998 ol_with_threads=found
19999 ol_with_yielding_select=yes
20002 cat >>confdefs.h <<\_ACEOF
20003 #define HAVE_NT_SERVICE_MANAGER 1
20007 cat >>confdefs.h <<\_ACEOF
20008 #define HAVE_NT_EVENT_LOG 1
20013 if test $ol_with_threads = nt ; then
20014 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20015 echo "$as_me: error: could not locate NT Threads" >&2;}
20016 { (exit 1); exit 1; }; }
20021 case $ol_with_threads in auto | yes | posix)
20024 for ac_header in pthread.h
20026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20028 echo "$as_me:$LINENO: checking for $ac_header" >&5
20029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20036 # Is the header compilable?
20037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 $ac_includes_default
20046 #include <$ac_header>
20048 rm -f conftest.$ac_objext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20050 (eval $ac_compile) 2>conftest.er1
20052 grep -v '^ *+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
20057 { ac_try='test -z "$ac_c_werror_flag"
20058 || test ! -s conftest.err'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest.$ac_objext'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 ac_header_compiler=yes
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_header_compiler=no
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20079 echo "${ECHO_T}$ac_header_compiler" >&6
20081 # Is the header present?
20082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 #include <$ac_header>
20092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20095 grep -v '^ *+' conftest.er1 >conftest.err
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } >/dev/null; then
20100 if test -s conftest.err; then
20101 ac_cpp_err=$ac_c_preproc_warn_flag
20102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20109 if test -z "$ac_cpp_err"; then
20110 ac_header_preproc=yes
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 ac_header_preproc=no
20117 rm -f conftest.err conftest.$ac_ext
20118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20119 echo "${ECHO_T}$ac_header_preproc" >&6
20121 # So? What about this header?
20122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20128 ac_header_preproc=yes
20131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20145 ## --------------------------------------------- ##
20146 ## Report this to <http://www.openldap.org/its/> ##
20147 ## --------------------------------------------- ##
20150 sed "s/^/$as_me: WARNING: /" >&2
20153 echo "$as_me:$LINENO: checking for $ac_header" >&5
20154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 eval "$as_ac_Header=\$ac_header_preproc"
20160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20165 cat >>confdefs.h <<_ACEOF
20166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20174 if test $ac_cv_header_pthread_h = yes ; then
20175 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20176 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20177 if test "${ol_cv_pthread_version+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20188 # include <pthread.h>
20194 int i = PTHREAD_CREATE_JOINABLE;
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>conftest.er1
20204 grep -v '^ *+' conftest.er1 >conftest.err
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest.$ac_objext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20223 cat >conftest.$ac_ext <<_ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20229 #include <pthread.h>
20232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20233 $EGREP "pthread_detach" >/dev/null 2>&1; then
20234 ol_cv_pthread_version=10
20236 ol_cv_pthread_version=8
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20245 cat >conftest.$ac_ext <<_ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20252 # include <pthread.h>
20253 # ifdef PTHREAD_CREATE_UNDETACHED
20258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20259 $EGREP "draft7" >/dev/null 2>&1; then
20260 ol_cv_pthread_version=7
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include <pthread.h>
20272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20273 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20274 ol_cv_pthread_version=6
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20284 # include <pthread.h>
20285 #ifdef PTHREAD_MUTEX_INITIALIZER
20290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20291 $EGREP "draft5" >/dev/null 2>&1; then
20292 ol_cv_pthread_version=5
20294 ol_cv_pthread_version=4
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20308 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20309 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20312 if test $ol_cv_pthread_version != 0 ; then
20314 cat >>confdefs.h <<_ACEOF
20315 #define HAVE_PTHREADS $ol_cv_pthread_version
20319 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20320 echo "$as_me: error: unknown pthread version" >&2;}
20321 { (exit 1); exit 1; }; }
20324 # consider threads found
20325 ol_with_threads=found
20328 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20329 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20330 if test "${ol_cv_header_linux_threads+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 #include <pthread.h>
20341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20342 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20343 ol_cv_header_linux_threads=yes
20345 ol_cv_header_linux_threads=no
20351 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20352 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20353 if test $ol_cv_header_linux_threads = yes; then
20355 cat >>confdefs.h <<\_ACEOF
20356 #define HAVE_LINUX_THREADS 1
20362 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20363 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20364 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 cat >conftest.$ac_ext <<_ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 #include <pthread.h>
20374 #ifdef _POSIX_THREAD_IS_GNU_PTH
20379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20380 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20381 ol_cv_header_gnu_pth_pthread_h=yes
20383 ol_cv_header_gnu_pth_pthread_h=no
20389 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20390 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20393 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20395 for ac_header in sched.h
20397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20399 echo "$as_me:$LINENO: checking for $ac_header" >&5
20400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20407 # Is the header compilable?
20408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20417 #include <$ac_header>
20419 rm -f conftest.$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_header_compiler=yes
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_header_compiler=no
20448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20450 echo "${ECHO_T}$ac_header_compiler" >&6
20452 # Is the header present?
20453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <$ac_header>
20463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } >/dev/null; then
20471 if test -s conftest.err; then
20472 ac_cpp_err=$ac_c_preproc_warn_flag
20473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20480 if test -z "$ac_cpp_err"; then
20481 ac_header_preproc=yes
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 ac_header_preproc=no
20488 rm -f conftest.err conftest.$ac_ext
20489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6
20492 # So? What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20499 ac_header_preproc=yes
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20516 ## --------------------------------------------- ##
20517 ## Report this to <http://www.openldap.org/its/> ##
20518 ## --------------------------------------------- ##
20521 sed "s/^/$as_me: WARNING: /" >&2
20524 echo "$as_me:$LINENO: checking for $ac_header" >&5
20525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 eval "$as_ac_Header=\$ac_header_preproc"
20531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20536 cat >>confdefs.h <<_ACEOF
20537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20547 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20548 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20549 if test "${ol_cv_pthread_create+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 if test "$cross_compiling" = yes; then
20554 cat >conftest.$ac_ext <<_ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 /* pthread test headers */
20562 #include <pthread.h>
20563 #if HAVE_PTHREADS < 7
20567 #define NULL (void*)0
20570 static void *task(p)
20573 return (void *) (p == NULL);
20580 /* pthread test function */
20581 #ifndef PTHREAD_CREATE_DETACHED
20582 #define PTHREAD_CREATE_DETACHED 1
20586 int detach = PTHREAD_CREATE_DETACHED;
20588 #if HAVE_PTHREADS > 4
20589 /* Final pthreads */
20590 pthread_attr_t attr;
20592 status = pthread_attr_init(&attr);
20593 if( status ) return status;
20595 #if HAVE_PTHREADS < 7
20596 status = pthread_attr_setdetachstate(&attr, &detach);
20597 if( status < 0 ) status = errno;
20599 status = pthread_attr_setdetachstate(&attr, detach);
20601 if( status ) return status;
20602 status = pthread_create( &t, &attr, task, NULL );
20603 #if HAVE_PTHREADS < 7
20604 if( status < 0 ) status = errno;
20606 if( status ) return status;
20608 /* Draft 4 pthreads */
20609 status = pthread_create( &t, pthread_attr_default, task, NULL );
20610 if( status ) return errno;
20612 /* give thread a chance to complete */
20613 /* it should remain joinable and hence detachable */
20616 status = pthread_detach( &t );
20617 if( status ) return errno;
20620 #ifdef HAVE_LINUX_THREADS
20621 pthread_kill_other_threads_np();
20630 rm -f conftest.$ac_objext conftest$ac_exeext
20631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20632 (eval $ac_link) 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try='test -z "$ac_c_werror_flag"
20640 || test ! -s conftest.err'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest$ac_exeext'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 ol_cv_pthread_create=yes
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ol_cv_pthread_create=no
20659 rm -f conftest.err conftest.$ac_objext \
20660 conftest$ac_exeext conftest.$ac_ext
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* pthread test headers */
20670 #include <pthread.h>
20671 #if HAVE_PTHREADS < 7
20675 #define NULL (void*)0
20678 static void *task(p)
20681 return (void *) (p == NULL);
20685 int main(argc, argv)
20690 /* pthread test function */
20691 #ifndef PTHREAD_CREATE_DETACHED
20692 #define PTHREAD_CREATE_DETACHED 1
20696 int detach = PTHREAD_CREATE_DETACHED;
20698 #if HAVE_PTHREADS > 4
20699 /* Final pthreads */
20700 pthread_attr_t attr;
20702 status = pthread_attr_init(&attr);
20703 if( status ) return status;
20705 #if HAVE_PTHREADS < 7
20706 status = pthread_attr_setdetachstate(&attr, &detach);
20707 if( status < 0 ) status = errno;
20709 status = pthread_attr_setdetachstate(&attr, detach);
20711 if( status ) return status;
20712 status = pthread_create( &t, &attr, task, NULL );
20713 #if HAVE_PTHREADS < 7
20714 if( status < 0 ) status = errno;
20716 if( status ) return status;
20718 /* Draft 4 pthreads */
20719 status = pthread_create( &t, pthread_attr_default, task, NULL );
20720 if( status ) return errno;
20722 /* give thread a chance to complete */
20723 /* it should remain joinable and hence detachable */
20726 status = pthread_detach( &t );
20727 if( status ) return errno;
20730 #ifdef HAVE_LINUX_THREADS
20731 pthread_kill_other_threads_np();
20739 rm -f conftest$ac_exeext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20741 (eval $ac_link) 2>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ol_cv_pthread_create=yes
20752 echo "$as_me: program exited with status $ac_status" >&5
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 ( exit $ac_status )
20757 ol_cv_pthread_create=no
20759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20763 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20765 if test $ol_cv_pthread_create != no ; then
20766 ol_link_threads=posix
20767 ol_link_pthreads=""
20770 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20771 if test "$ol_link_threads" = no ; then
20773 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20774 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20775 if test "${ol_cv_pthread_kthread+set}" = set; then
20776 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 LIBS="-kthread $LIBS"
20783 if test "$cross_compiling" = yes; then
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20791 /* pthread test headers */
20792 #include <pthread.h>
20793 #if HAVE_PTHREADS < 7
20797 #define NULL (void*)0
20800 static void *task(p)
20803 return (void *) (p == NULL);
20810 /* pthread test function */
20811 #ifndef PTHREAD_CREATE_DETACHED
20812 #define PTHREAD_CREATE_DETACHED 1
20816 int detach = PTHREAD_CREATE_DETACHED;
20818 #if HAVE_PTHREADS > 4
20819 /* Final pthreads */
20820 pthread_attr_t attr;
20822 status = pthread_attr_init(&attr);
20823 if( status ) return status;
20825 #if HAVE_PTHREADS < 7
20826 status = pthread_attr_setdetachstate(&attr, &detach);
20827 if( status < 0 ) status = errno;
20829 status = pthread_attr_setdetachstate(&attr, detach);
20831 if( status ) return status;
20832 status = pthread_create( &t, &attr, task, NULL );
20833 #if HAVE_PTHREADS < 7
20834 if( status < 0 ) status = errno;
20836 if( status ) return status;
20838 /* Draft 4 pthreads */
20839 status = pthread_create( &t, pthread_attr_default, task, NULL );
20840 if( status ) return errno;
20842 /* give thread a chance to complete */
20843 /* it should remain joinable and hence detachable */
20846 status = pthread_detach( &t );
20847 if( status ) return errno;
20850 #ifdef HAVE_LINUX_THREADS
20851 pthread_kill_other_threads_np();
20860 rm -f conftest.$ac_objext conftest$ac_exeext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20862 (eval $ac_link) 2>conftest.er1
20864 grep -v '^ *+' conftest.er1 >conftest.err
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_c_werror_flag"
20870 || test ! -s conftest.err'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; } &&
20876 { ac_try='test -s conftest$ac_exeext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ol_cv_pthread_kthread=yes
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20887 ol_cv_pthread_kthread=no
20889 rm -f conftest.err conftest.$ac_objext \
20890 conftest$ac_exeext conftest.$ac_ext
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20899 /* pthread test headers */
20900 #include <pthread.h>
20901 #if HAVE_PTHREADS < 7
20905 #define NULL (void*)0
20908 static void *task(p)
20911 return (void *) (p == NULL);
20915 int main(argc, argv)
20920 /* pthread test function */
20921 #ifndef PTHREAD_CREATE_DETACHED
20922 #define PTHREAD_CREATE_DETACHED 1
20926 int detach = PTHREAD_CREATE_DETACHED;
20928 #if HAVE_PTHREADS > 4
20929 /* Final pthreads */
20930 pthread_attr_t attr;
20932 status = pthread_attr_init(&attr);
20933 if( status ) return status;
20935 #if HAVE_PTHREADS < 7
20936 status = pthread_attr_setdetachstate(&attr, &detach);
20937 if( status < 0 ) status = errno;
20939 status = pthread_attr_setdetachstate(&attr, detach);
20941 if( status ) return status;
20942 status = pthread_create( &t, &attr, task, NULL );
20943 #if HAVE_PTHREADS < 7
20944 if( status < 0 ) status = errno;
20946 if( status ) return status;
20948 /* Draft 4 pthreads */
20949 status = pthread_create( &t, pthread_attr_default, task, NULL );
20950 if( status ) return errno;
20952 /* give thread a chance to complete */
20953 /* it should remain joinable and hence detachable */
20956 status = pthread_detach( &t );
20957 if( status ) return errno;
20960 #ifdef HAVE_LINUX_THREADS
20961 pthread_kill_other_threads_np();
20969 rm -f conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971 (eval $ac_link) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ol_cv_pthread_kthread=yes
20982 echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ( exit $ac_status )
20987 ol_cv_pthread_kthread=no
20989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20996 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20997 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20999 if test $ol_cv_pthread_kthread = yes ; then
21000 ol_link_pthreads="-kthread"
21001 ol_link_threads=posix
21005 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21006 if test "$ol_link_threads" = no ; then
21008 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21009 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21010 if test "${ol_cv_pthread_pthread+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 LIBS="-pthread $LIBS"
21018 if test "$cross_compiling" = yes; then
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21026 /* pthread test headers */
21027 #include <pthread.h>
21028 #if HAVE_PTHREADS < 7
21032 #define NULL (void*)0
21035 static void *task(p)
21038 return (void *) (p == NULL);
21045 /* pthread test function */
21046 #ifndef PTHREAD_CREATE_DETACHED
21047 #define PTHREAD_CREATE_DETACHED 1
21051 int detach = PTHREAD_CREATE_DETACHED;
21053 #if HAVE_PTHREADS > 4
21054 /* Final pthreads */
21055 pthread_attr_t attr;
21057 status = pthread_attr_init(&attr);
21058 if( status ) return status;
21060 #if HAVE_PTHREADS < 7
21061 status = pthread_attr_setdetachstate(&attr, &detach);
21062 if( status < 0 ) status = errno;
21064 status = pthread_attr_setdetachstate(&attr, detach);
21066 if( status ) return status;
21067 status = pthread_create( &t, &attr, task, NULL );
21068 #if HAVE_PTHREADS < 7
21069 if( status < 0 ) status = errno;
21071 if( status ) return status;
21073 /* Draft 4 pthreads */
21074 status = pthread_create( &t, pthread_attr_default, task, NULL );
21075 if( status ) return errno;
21077 /* give thread a chance to complete */
21078 /* it should remain joinable and hence detachable */
21081 status = pthread_detach( &t );
21082 if( status ) return errno;
21085 #ifdef HAVE_LINUX_THREADS
21086 pthread_kill_other_threads_np();
21095 rm -f conftest.$ac_objext conftest$ac_exeext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21097 (eval $ac_link) 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try='test -z "$ac_c_werror_flag"
21105 || test ! -s conftest.err'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; } &&
21111 { ac_try='test -s conftest$ac_exeext'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 ol_cv_pthread_pthread=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ol_cv_pthread_pthread=no
21124 rm -f conftest.err conftest.$ac_objext \
21125 conftest$ac_exeext conftest.$ac_ext
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21134 /* pthread test headers */
21135 #include <pthread.h>
21136 #if HAVE_PTHREADS < 7
21140 #define NULL (void*)0
21143 static void *task(p)
21146 return (void *) (p == NULL);
21150 int main(argc, argv)
21155 /* pthread test function */
21156 #ifndef PTHREAD_CREATE_DETACHED
21157 #define PTHREAD_CREATE_DETACHED 1
21161 int detach = PTHREAD_CREATE_DETACHED;
21163 #if HAVE_PTHREADS > 4
21164 /* Final pthreads */
21165 pthread_attr_t attr;
21167 status = pthread_attr_init(&attr);
21168 if( status ) return status;
21170 #if HAVE_PTHREADS < 7
21171 status = pthread_attr_setdetachstate(&attr, &detach);
21172 if( status < 0 ) status = errno;
21174 status = pthread_attr_setdetachstate(&attr, detach);
21176 if( status ) return status;
21177 status = pthread_create( &t, &attr, task, NULL );
21178 #if HAVE_PTHREADS < 7
21179 if( status < 0 ) status = errno;
21181 if( status ) return status;
21183 /* Draft 4 pthreads */
21184 status = pthread_create( &t, pthread_attr_default, task, NULL );
21185 if( status ) return errno;
21187 /* give thread a chance to complete */
21188 /* it should remain joinable and hence detachable */
21191 status = pthread_detach( &t );
21192 if( status ) return errno;
21195 #ifdef HAVE_LINUX_THREADS
21196 pthread_kill_other_threads_np();
21204 rm -f conftest$ac_exeext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21206 (eval $ac_link) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ol_cv_pthread_pthread=yes
21217 echo "$as_me: program exited with status $ac_status" >&5
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ( exit $ac_status )
21222 ol_cv_pthread_pthread=no
21224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21231 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21232 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21234 if test $ol_cv_pthread_pthread = yes ; then
21235 ol_link_pthreads="-pthread"
21236 ol_link_threads=posix
21240 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21241 if test "$ol_link_threads" = no ; then
21243 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21244 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21245 if test "${ol_cv_pthread_pthreads+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 LIBS="-pthreads $LIBS"
21253 if test "$cross_compiling" = yes; then
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21261 /* pthread test headers */
21262 #include <pthread.h>
21263 #if HAVE_PTHREADS < 7
21267 #define NULL (void*)0
21270 static void *task(p)
21273 return (void *) (p == NULL);
21280 /* pthread test function */
21281 #ifndef PTHREAD_CREATE_DETACHED
21282 #define PTHREAD_CREATE_DETACHED 1
21286 int detach = PTHREAD_CREATE_DETACHED;
21288 #if HAVE_PTHREADS > 4
21289 /* Final pthreads */
21290 pthread_attr_t attr;
21292 status = pthread_attr_init(&attr);
21293 if( status ) return status;
21295 #if HAVE_PTHREADS < 7
21296 status = pthread_attr_setdetachstate(&attr, &detach);
21297 if( status < 0 ) status = errno;
21299 status = pthread_attr_setdetachstate(&attr, detach);
21301 if( status ) return status;
21302 status = pthread_create( &t, &attr, task, NULL );
21303 #if HAVE_PTHREADS < 7
21304 if( status < 0 ) status = errno;
21306 if( status ) return status;
21308 /* Draft 4 pthreads */
21309 status = pthread_create( &t, pthread_attr_default, task, NULL );
21310 if( status ) return errno;
21312 /* give thread a chance to complete */
21313 /* it should remain joinable and hence detachable */
21316 status = pthread_detach( &t );
21317 if( status ) return errno;
21320 #ifdef HAVE_LINUX_THREADS
21321 pthread_kill_other_threads_np();
21330 rm -f conftest.$ac_objext conftest$ac_exeext
21331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21332 (eval $ac_link) 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
21339 { ac_try='test -z "$ac_c_werror_flag"
21340 || test ! -s conftest.err'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest$ac_exeext'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ol_cv_pthread_pthreads=yes
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ol_cv_pthread_pthreads=no
21359 rm -f conftest.err conftest.$ac_objext \
21360 conftest$ac_exeext conftest.$ac_ext
21362 cat >conftest.$ac_ext <<_ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21369 /* pthread test headers */
21370 #include <pthread.h>
21371 #if HAVE_PTHREADS < 7
21375 #define NULL (void*)0
21378 static void *task(p)
21381 return (void *) (p == NULL);
21385 int main(argc, argv)
21390 /* pthread test function */
21391 #ifndef PTHREAD_CREATE_DETACHED
21392 #define PTHREAD_CREATE_DETACHED 1
21396 int detach = PTHREAD_CREATE_DETACHED;
21398 #if HAVE_PTHREADS > 4
21399 /* Final pthreads */
21400 pthread_attr_t attr;
21402 status = pthread_attr_init(&attr);
21403 if( status ) return status;
21405 #if HAVE_PTHREADS < 7
21406 status = pthread_attr_setdetachstate(&attr, &detach);
21407 if( status < 0 ) status = errno;
21409 status = pthread_attr_setdetachstate(&attr, detach);
21411 if( status ) return status;
21412 status = pthread_create( &t, &attr, task, NULL );
21413 #if HAVE_PTHREADS < 7
21414 if( status < 0 ) status = errno;
21416 if( status ) return status;
21418 /* Draft 4 pthreads */
21419 status = pthread_create( &t, pthread_attr_default, task, NULL );
21420 if( status ) return errno;
21422 /* give thread a chance to complete */
21423 /* it should remain joinable and hence detachable */
21426 status = pthread_detach( &t );
21427 if( status ) return errno;
21430 #ifdef HAVE_LINUX_THREADS
21431 pthread_kill_other_threads_np();
21439 rm -f conftest$ac_exeext
21440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21441 (eval $ac_link) 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ol_cv_pthread_pthreads=yes
21452 echo "$as_me: program exited with status $ac_status" >&5
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ( exit $ac_status )
21457 ol_cv_pthread_pthreads=no
21459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21466 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21467 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21469 if test $ol_cv_pthread_pthreads = yes ; then
21470 ol_link_pthreads="-pthreads"
21471 ol_link_threads=posix
21475 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21476 if test "$ol_link_threads" = no ; then
21478 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21479 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21480 if test "${ol_cv_pthread_mthreads+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 LIBS="-mthreads $LIBS"
21488 if test "$cross_compiling" = yes; then
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21496 /* pthread test headers */
21497 #include <pthread.h>
21498 #if HAVE_PTHREADS < 7
21502 #define NULL (void*)0
21505 static void *task(p)
21508 return (void *) (p == NULL);
21515 /* pthread test function */
21516 #ifndef PTHREAD_CREATE_DETACHED
21517 #define PTHREAD_CREATE_DETACHED 1
21521 int detach = PTHREAD_CREATE_DETACHED;
21523 #if HAVE_PTHREADS > 4
21524 /* Final pthreads */
21525 pthread_attr_t attr;
21527 status = pthread_attr_init(&attr);
21528 if( status ) return status;
21530 #if HAVE_PTHREADS < 7
21531 status = pthread_attr_setdetachstate(&attr, &detach);
21532 if( status < 0 ) status = errno;
21534 status = pthread_attr_setdetachstate(&attr, detach);
21536 if( status ) return status;
21537 status = pthread_create( &t, &attr, task, NULL );
21538 #if HAVE_PTHREADS < 7
21539 if( status < 0 ) status = errno;
21541 if( status ) return status;
21543 /* Draft 4 pthreads */
21544 status = pthread_create( &t, pthread_attr_default, task, NULL );
21545 if( status ) return errno;
21547 /* give thread a chance to complete */
21548 /* it should remain joinable and hence detachable */
21551 status = pthread_detach( &t );
21552 if( status ) return errno;
21555 #ifdef HAVE_LINUX_THREADS
21556 pthread_kill_other_threads_np();
21565 rm -f conftest.$ac_objext conftest$ac_exeext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21567 (eval $ac_link) 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
21574 { ac_try='test -z "$ac_c_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest$ac_exeext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 ol_cv_pthread_mthreads=yes
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ol_cv_pthread_mthreads=no
21594 rm -f conftest.err conftest.$ac_objext \
21595 conftest$ac_exeext conftest.$ac_ext
21597 cat >conftest.$ac_ext <<_ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21604 /* pthread test headers */
21605 #include <pthread.h>
21606 #if HAVE_PTHREADS < 7
21610 #define NULL (void*)0
21613 static void *task(p)
21616 return (void *) (p == NULL);
21620 int main(argc, argv)
21625 /* pthread test function */
21626 #ifndef PTHREAD_CREATE_DETACHED
21627 #define PTHREAD_CREATE_DETACHED 1
21631 int detach = PTHREAD_CREATE_DETACHED;
21633 #if HAVE_PTHREADS > 4
21634 /* Final pthreads */
21635 pthread_attr_t attr;
21637 status = pthread_attr_init(&attr);
21638 if( status ) return status;
21640 #if HAVE_PTHREADS < 7
21641 status = pthread_attr_setdetachstate(&attr, &detach);
21642 if( status < 0 ) status = errno;
21644 status = pthread_attr_setdetachstate(&attr, detach);
21646 if( status ) return status;
21647 status = pthread_create( &t, &attr, task, NULL );
21648 #if HAVE_PTHREADS < 7
21649 if( status < 0 ) status = errno;
21651 if( status ) return status;
21653 /* Draft 4 pthreads */
21654 status = pthread_create( &t, pthread_attr_default, task, NULL );
21655 if( status ) return errno;
21657 /* give thread a chance to complete */
21658 /* it should remain joinable and hence detachable */
21661 status = pthread_detach( &t );
21662 if( status ) return errno;
21665 #ifdef HAVE_LINUX_THREADS
21666 pthread_kill_other_threads_np();
21674 rm -f conftest$ac_exeext
21675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21676 (eval $ac_link) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }; then
21685 ol_cv_pthread_mthreads=yes
21687 echo "$as_me: program exited with status $ac_status" >&5
21688 echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21691 ( exit $ac_status )
21692 ol_cv_pthread_mthreads=no
21694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21701 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21702 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21704 if test $ol_cv_pthread_mthreads = yes ; then
21705 ol_link_pthreads="-mthreads"
21706 ol_link_threads=posix
21710 # Pthread try link: -thread (ol_cv_pthread_thread)
21711 if test "$ol_link_threads" = no ; then
21713 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21714 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21715 if test "${ol_cv_pthread_thread+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 LIBS="-thread $LIBS"
21723 if test "$cross_compiling" = yes; then
21724 cat >conftest.$ac_ext <<_ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21731 /* pthread test headers */
21732 #include <pthread.h>
21733 #if HAVE_PTHREADS < 7
21737 #define NULL (void*)0
21740 static void *task(p)
21743 return (void *) (p == NULL);
21750 /* pthread test function */
21751 #ifndef PTHREAD_CREATE_DETACHED
21752 #define PTHREAD_CREATE_DETACHED 1
21756 int detach = PTHREAD_CREATE_DETACHED;
21758 #if HAVE_PTHREADS > 4
21759 /* Final pthreads */
21760 pthread_attr_t attr;
21762 status = pthread_attr_init(&attr);
21763 if( status ) return status;
21765 #if HAVE_PTHREADS < 7
21766 status = pthread_attr_setdetachstate(&attr, &detach);
21767 if( status < 0 ) status = errno;
21769 status = pthread_attr_setdetachstate(&attr, detach);
21771 if( status ) return status;
21772 status = pthread_create( &t, &attr, task, NULL );
21773 #if HAVE_PTHREADS < 7
21774 if( status < 0 ) status = errno;
21776 if( status ) return status;
21778 /* Draft 4 pthreads */
21779 status = pthread_create( &t, pthread_attr_default, task, NULL );
21780 if( status ) return errno;
21782 /* give thread a chance to complete */
21783 /* it should remain joinable and hence detachable */
21786 status = pthread_detach( &t );
21787 if( status ) return errno;
21790 #ifdef HAVE_LINUX_THREADS
21791 pthread_kill_other_threads_np();
21800 rm -f conftest.$ac_objext conftest$ac_exeext
21801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21802 (eval $ac_link) 2>conftest.er1
21804 grep -v '^ *+' conftest.er1 >conftest.err
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } &&
21809 { ac_try='test -z "$ac_c_werror_flag"
21810 || test ! -s conftest.err'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; } &&
21816 { ac_try='test -s conftest$ac_exeext'
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822 ol_cv_pthread_thread=yes
21824 echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21827 ol_cv_pthread_thread=no
21829 rm -f conftest.err conftest.$ac_objext \
21830 conftest$ac_exeext conftest.$ac_ext
21832 cat >conftest.$ac_ext <<_ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21839 /* pthread test headers */
21840 #include <pthread.h>
21841 #if HAVE_PTHREADS < 7
21845 #define NULL (void*)0
21848 static void *task(p)
21851 return (void *) (p == NULL);
21855 int main(argc, argv)
21860 /* pthread test function */
21861 #ifndef PTHREAD_CREATE_DETACHED
21862 #define PTHREAD_CREATE_DETACHED 1
21866 int detach = PTHREAD_CREATE_DETACHED;
21868 #if HAVE_PTHREADS > 4
21869 /* Final pthreads */
21870 pthread_attr_t attr;
21872 status = pthread_attr_init(&attr);
21873 if( status ) return status;
21875 #if HAVE_PTHREADS < 7
21876 status = pthread_attr_setdetachstate(&attr, &detach);
21877 if( status < 0 ) status = errno;
21879 status = pthread_attr_setdetachstate(&attr, detach);
21881 if( status ) return status;
21882 status = pthread_create( &t, &attr, task, NULL );
21883 #if HAVE_PTHREADS < 7
21884 if( status < 0 ) status = errno;
21886 if( status ) return status;
21888 /* Draft 4 pthreads */
21889 status = pthread_create( &t, pthread_attr_default, task, NULL );
21890 if( status ) return errno;
21892 /* give thread a chance to complete */
21893 /* it should remain joinable and hence detachable */
21896 status = pthread_detach( &t );
21897 if( status ) return errno;
21900 #ifdef HAVE_LINUX_THREADS
21901 pthread_kill_other_threads_np();
21909 rm -f conftest$ac_exeext
21910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21911 (eval $ac_link) 2>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; }; then
21920 ol_cv_pthread_thread=yes
21922 echo "$as_me: program exited with status $ac_status" >&5
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ( exit $ac_status )
21927 ol_cv_pthread_thread=no
21929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21936 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21937 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21939 if test $ol_cv_pthread_thread = yes ; then
21940 ol_link_pthreads="-thread"
21941 ol_link_threads=posix
21946 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21947 if test "$ol_link_threads" = no ; then
21948 # try -lpthread -lmach -lexc -lc_r
21949 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21950 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21951 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21957 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21959 if test "$cross_compiling" = yes; then
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21967 /* pthread test headers */
21968 #include <pthread.h>
21969 #if HAVE_PTHREADS < 7
21973 #define NULL (void*)0
21976 static void *task(p)
21979 return (void *) (p == NULL);
21986 /* pthread test function */
21987 #ifndef PTHREAD_CREATE_DETACHED
21988 #define PTHREAD_CREATE_DETACHED 1
21992 int detach = PTHREAD_CREATE_DETACHED;
21994 #if HAVE_PTHREADS > 4
21995 /* Final pthreads */
21996 pthread_attr_t attr;
21998 status = pthread_attr_init(&attr);
21999 if( status ) return status;
22001 #if HAVE_PTHREADS < 7
22002 status = pthread_attr_setdetachstate(&attr, &detach);
22003 if( status < 0 ) status = errno;
22005 status = pthread_attr_setdetachstate(&attr, detach);
22007 if( status ) return status;
22008 status = pthread_create( &t, &attr, task, NULL );
22009 #if HAVE_PTHREADS < 7
22010 if( status < 0 ) status = errno;
22012 if( status ) return status;
22014 /* Draft 4 pthreads */
22015 status = pthread_create( &t, pthread_attr_default, task, NULL );
22016 if( status ) return errno;
22018 /* give thread a chance to complete */
22019 /* it should remain joinable and hence detachable */
22022 status = pthread_detach( &t );
22023 if( status ) return errno;
22026 #ifdef HAVE_LINUX_THREADS
22027 pthread_kill_other_threads_np();
22036 rm -f conftest.$ac_objext conftest$ac_exeext
22037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22038 (eval $ac_link) 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_c_werror_flag"
22046 || test ! -s conftest.err'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest$ac_exeext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22065 rm -f conftest.err conftest.$ac_objext \
22066 conftest$ac_exeext conftest.$ac_ext
22068 cat >conftest.$ac_ext <<_ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22075 /* pthread test headers */
22076 #include <pthread.h>
22077 #if HAVE_PTHREADS < 7
22081 #define NULL (void*)0
22084 static void *task(p)
22087 return (void *) (p == NULL);
22091 int main(argc, argv)
22096 /* pthread test function */
22097 #ifndef PTHREAD_CREATE_DETACHED
22098 #define PTHREAD_CREATE_DETACHED 1
22102 int detach = PTHREAD_CREATE_DETACHED;
22104 #if HAVE_PTHREADS > 4
22105 /* Final pthreads */
22106 pthread_attr_t attr;
22108 status = pthread_attr_init(&attr);
22109 if( status ) return status;
22111 #if HAVE_PTHREADS < 7
22112 status = pthread_attr_setdetachstate(&attr, &detach);
22113 if( status < 0 ) status = errno;
22115 status = pthread_attr_setdetachstate(&attr, detach);
22117 if( status ) return status;
22118 status = pthread_create( &t, &attr, task, NULL );
22119 #if HAVE_PTHREADS < 7
22120 if( status < 0 ) status = errno;
22122 if( status ) return status;
22124 /* Draft 4 pthreads */
22125 status = pthread_create( &t, pthread_attr_default, task, NULL );
22126 if( status ) return errno;
22128 /* give thread a chance to complete */
22129 /* it should remain joinable and hence detachable */
22132 status = pthread_detach( &t );
22133 if( status ) return errno;
22136 #ifdef HAVE_LINUX_THREADS
22137 pthread_kill_other_threads_np();
22145 rm -f conftest$ac_exeext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22147 (eval $ac_link) 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; }; then
22156 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22158 echo "$as_me: program exited with status $ac_status" >&5
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 ( exit $ac_status )
22163 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22172 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22173 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22175 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22176 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22177 ol_link_threads=posix
22181 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22182 if test "$ol_link_threads" = no ; then
22183 # try -lpthread -lmach -lexc
22184 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22185 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22186 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 LIBS="-lpthread -lmach -lexc $LIBS"
22194 if test "$cross_compiling" = yes; then
22195 cat >conftest.$ac_ext <<_ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22202 /* pthread test headers */
22203 #include <pthread.h>
22204 #if HAVE_PTHREADS < 7
22208 #define NULL (void*)0
22211 static void *task(p)
22214 return (void *) (p == NULL);
22221 /* pthread test function */
22222 #ifndef PTHREAD_CREATE_DETACHED
22223 #define PTHREAD_CREATE_DETACHED 1
22227 int detach = PTHREAD_CREATE_DETACHED;
22229 #if HAVE_PTHREADS > 4
22230 /* Final pthreads */
22231 pthread_attr_t attr;
22233 status = pthread_attr_init(&attr);
22234 if( status ) return status;
22236 #if HAVE_PTHREADS < 7
22237 status = pthread_attr_setdetachstate(&attr, &detach);
22238 if( status < 0 ) status = errno;
22240 status = pthread_attr_setdetachstate(&attr, detach);
22242 if( status ) return status;
22243 status = pthread_create( &t, &attr, task, NULL );
22244 #if HAVE_PTHREADS < 7
22245 if( status < 0 ) status = errno;
22247 if( status ) return status;
22249 /* Draft 4 pthreads */
22250 status = pthread_create( &t, pthread_attr_default, task, NULL );
22251 if( status ) return errno;
22253 /* give thread a chance to complete */
22254 /* it should remain joinable and hence detachable */
22257 status = pthread_detach( &t );
22258 if( status ) return errno;
22261 #ifdef HAVE_LINUX_THREADS
22262 pthread_kill_other_threads_np();
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273 (eval $ac_link) 2>conftest.er1
22275 grep -v '^ *+' conftest.er1 >conftest.err
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
22280 { ac_try='test -z "$ac_c_werror_flag"
22281 || test ! -s conftest.err'
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; } &&
22287 { ac_try='test -s conftest$ac_exeext'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }; then
22293 ol_cv_pthread_lpthread_lmach_lexc=yes
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ol_cv_pthread_lpthread_lmach_lexc=no
22300 rm -f conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22310 /* pthread test headers */
22311 #include <pthread.h>
22312 #if HAVE_PTHREADS < 7
22316 #define NULL (void*)0
22319 static void *task(p)
22322 return (void *) (p == NULL);
22326 int main(argc, argv)
22331 /* pthread test function */
22332 #ifndef PTHREAD_CREATE_DETACHED
22333 #define PTHREAD_CREATE_DETACHED 1
22337 int detach = PTHREAD_CREATE_DETACHED;
22339 #if HAVE_PTHREADS > 4
22340 /* Final pthreads */
22341 pthread_attr_t attr;
22343 status = pthread_attr_init(&attr);
22344 if( status ) return status;
22346 #if HAVE_PTHREADS < 7
22347 status = pthread_attr_setdetachstate(&attr, &detach);
22348 if( status < 0 ) status = errno;
22350 status = pthread_attr_setdetachstate(&attr, detach);
22352 if( status ) return status;
22353 status = pthread_create( &t, &attr, task, NULL );
22354 #if HAVE_PTHREADS < 7
22355 if( status < 0 ) status = errno;
22357 if( status ) return status;
22359 /* Draft 4 pthreads */
22360 status = pthread_create( &t, pthread_attr_default, task, NULL );
22361 if( status ) return errno;
22363 /* give thread a chance to complete */
22364 /* it should remain joinable and hence detachable */
22367 status = pthread_detach( &t );
22368 if( status ) return errno;
22371 #ifdef HAVE_LINUX_THREADS
22372 pthread_kill_other_threads_np();
22380 rm -f conftest$ac_exeext
22381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22382 (eval $ac_link) 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; }; then
22391 ol_cv_pthread_lpthread_lmach_lexc=yes
22393 echo "$as_me: program exited with status $ac_status" >&5
22394 echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ( exit $ac_status )
22398 ol_cv_pthread_lpthread_lmach_lexc=no
22400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22407 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22408 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22410 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22411 ol_link_pthreads="-lpthread -lmach -lexc"
22412 ol_link_threads=posix
22417 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22418 if test "$ol_link_threads" = no ; then
22419 # try -lpthread -Wl,-woff,85
22420 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22421 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22422 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22430 if test "$cross_compiling" = yes; then
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22438 /* pthread test headers */
22439 #include <pthread.h>
22440 #if HAVE_PTHREADS < 7
22444 #define NULL (void*)0
22447 static void *task(p)
22450 return (void *) (p == NULL);
22457 /* pthread test function */
22458 #ifndef PTHREAD_CREATE_DETACHED
22459 #define PTHREAD_CREATE_DETACHED 1
22463 int detach = PTHREAD_CREATE_DETACHED;
22465 #if HAVE_PTHREADS > 4
22466 /* Final pthreads */
22467 pthread_attr_t attr;
22469 status = pthread_attr_init(&attr);
22470 if( status ) return status;
22472 #if HAVE_PTHREADS < 7
22473 status = pthread_attr_setdetachstate(&attr, &detach);
22474 if( status < 0 ) status = errno;
22476 status = pthread_attr_setdetachstate(&attr, detach);
22478 if( status ) return status;
22479 status = pthread_create( &t, &attr, task, NULL );
22480 #if HAVE_PTHREADS < 7
22481 if( status < 0 ) status = errno;
22483 if( status ) return status;
22485 /* Draft 4 pthreads */
22486 status = pthread_create( &t, pthread_attr_default, task, NULL );
22487 if( status ) return errno;
22489 /* give thread a chance to complete */
22490 /* it should remain joinable and hence detachable */
22493 status = pthread_detach( &t );
22494 if( status ) return errno;
22497 #ifdef HAVE_LINUX_THREADS
22498 pthread_kill_other_threads_np();
22507 rm -f conftest.$ac_objext conftest$ac_exeext
22508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509 (eval $ac_link) 2>conftest.er1
22511 grep -v '^ *+' conftest.er1 >conftest.err
22513 cat conftest.err >&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
22516 { ac_try='test -z "$ac_c_werror_flag"
22517 || test ! -s conftest.err'
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; } &&
22523 { ac_try='test -s conftest$ac_exeext'
22524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525 (eval $ac_try) 2>&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); }; }; then
22529 ol_cv_pthread_lib_lpthread_woff=yes
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22534 ol_cv_pthread_lib_lpthread_woff=no
22536 rm -f conftest.err conftest.$ac_objext \
22537 conftest$ac_exeext conftest.$ac_ext
22539 cat >conftest.$ac_ext <<_ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22546 /* pthread test headers */
22547 #include <pthread.h>
22548 #if HAVE_PTHREADS < 7
22552 #define NULL (void*)0
22555 static void *task(p)
22558 return (void *) (p == NULL);
22562 int main(argc, argv)
22567 /* pthread test function */
22568 #ifndef PTHREAD_CREATE_DETACHED
22569 #define PTHREAD_CREATE_DETACHED 1
22573 int detach = PTHREAD_CREATE_DETACHED;
22575 #if HAVE_PTHREADS > 4
22576 /* Final pthreads */
22577 pthread_attr_t attr;
22579 status = pthread_attr_init(&attr);
22580 if( status ) return status;
22582 #if HAVE_PTHREADS < 7
22583 status = pthread_attr_setdetachstate(&attr, &detach);
22584 if( status < 0 ) status = errno;
22586 status = pthread_attr_setdetachstate(&attr, detach);
22588 if( status ) return status;
22589 status = pthread_create( &t, &attr, task, NULL );
22590 #if HAVE_PTHREADS < 7
22591 if( status < 0 ) status = errno;
22593 if( status ) return status;
22595 /* Draft 4 pthreads */
22596 status = pthread_create( &t, pthread_attr_default, task, NULL );
22597 if( status ) return errno;
22599 /* give thread a chance to complete */
22600 /* it should remain joinable and hence detachable */
22603 status = pthread_detach( &t );
22604 if( status ) return errno;
22607 #ifdef HAVE_LINUX_THREADS
22608 pthread_kill_other_threads_np();
22616 rm -f conftest$ac_exeext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22618 (eval $ac_link) 2>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ol_cv_pthread_lib_lpthread_woff=yes
22629 echo "$as_me: program exited with status $ac_status" >&5
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22633 ( exit $ac_status )
22634 ol_cv_pthread_lib_lpthread_woff=no
22636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22643 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22644 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22646 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22647 ol_link_pthreads="-lpthread -Wl,-woff,85"
22648 ol_link_threads=posix
22653 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22654 if test "$ol_link_threads" = no ; then
22656 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22657 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22658 if test "${ol_cv_pthread_lpthread+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22664 LIBS="-lpthread $LIBS"
22666 if test "$cross_compiling" = yes; then
22667 cat >conftest.$ac_ext <<_ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22674 /* pthread test headers */
22675 #include <pthread.h>
22676 #if HAVE_PTHREADS < 7
22680 #define NULL (void*)0
22683 static void *task(p)
22686 return (void *) (p == NULL);
22693 /* pthread test function */
22694 #ifndef PTHREAD_CREATE_DETACHED
22695 #define PTHREAD_CREATE_DETACHED 1
22699 int detach = PTHREAD_CREATE_DETACHED;
22701 #if HAVE_PTHREADS > 4
22702 /* Final pthreads */
22703 pthread_attr_t attr;
22705 status = pthread_attr_init(&attr);
22706 if( status ) return status;
22708 #if HAVE_PTHREADS < 7
22709 status = pthread_attr_setdetachstate(&attr, &detach);
22710 if( status < 0 ) status = errno;
22712 status = pthread_attr_setdetachstate(&attr, detach);
22714 if( status ) return status;
22715 status = pthread_create( &t, &attr, task, NULL );
22716 #if HAVE_PTHREADS < 7
22717 if( status < 0 ) status = errno;
22719 if( status ) return status;
22721 /* Draft 4 pthreads */
22722 status = pthread_create( &t, pthread_attr_default, task, NULL );
22723 if( status ) return errno;
22725 /* give thread a chance to complete */
22726 /* it should remain joinable and hence detachable */
22729 status = pthread_detach( &t );
22730 if( status ) return errno;
22733 #ifdef HAVE_LINUX_THREADS
22734 pthread_kill_other_threads_np();
22743 rm -f conftest.$ac_objext conftest$ac_exeext
22744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22745 (eval $ac_link) 2>conftest.er1
22747 grep -v '^ *+' conftest.er1 >conftest.err
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } &&
22752 { ac_try='test -z "$ac_c_werror_flag"
22753 || test ! -s conftest.err'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; } &&
22759 { ac_try='test -s conftest$ac_exeext'
22760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761 (eval $ac_try) 2>&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; }; then
22765 ol_cv_pthread_lpthread=yes
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22770 ol_cv_pthread_lpthread=no
22772 rm -f conftest.err conftest.$ac_objext \
22773 conftest$ac_exeext conftest.$ac_ext
22775 cat >conftest.$ac_ext <<_ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22782 /* pthread test headers */
22783 #include <pthread.h>
22784 #if HAVE_PTHREADS < 7
22788 #define NULL (void*)0
22791 static void *task(p)
22794 return (void *) (p == NULL);
22798 int main(argc, argv)
22803 /* pthread test function */
22804 #ifndef PTHREAD_CREATE_DETACHED
22805 #define PTHREAD_CREATE_DETACHED 1
22809 int detach = PTHREAD_CREATE_DETACHED;
22811 #if HAVE_PTHREADS > 4
22812 /* Final pthreads */
22813 pthread_attr_t attr;
22815 status = pthread_attr_init(&attr);
22816 if( status ) return status;
22818 #if HAVE_PTHREADS < 7
22819 status = pthread_attr_setdetachstate(&attr, &detach);
22820 if( status < 0 ) status = errno;
22822 status = pthread_attr_setdetachstate(&attr, detach);
22824 if( status ) return status;
22825 status = pthread_create( &t, &attr, task, NULL );
22826 #if HAVE_PTHREADS < 7
22827 if( status < 0 ) status = errno;
22829 if( status ) return status;
22831 /* Draft 4 pthreads */
22832 status = pthread_create( &t, pthread_attr_default, task, NULL );
22833 if( status ) return errno;
22835 /* give thread a chance to complete */
22836 /* it should remain joinable and hence detachable */
22839 status = pthread_detach( &t );
22840 if( status ) return errno;
22843 #ifdef HAVE_LINUX_THREADS
22844 pthread_kill_other_threads_np();
22852 rm -f conftest$ac_exeext
22853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22854 (eval $ac_link) 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859 (eval $ac_try) 2>&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }; }; then
22863 ol_cv_pthread_lpthread=yes
22865 echo "$as_me: program exited with status $ac_status" >&5
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 ( exit $ac_status )
22870 ol_cv_pthread_lpthread=no
22872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22879 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22880 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22882 if test $ol_cv_pthread_lpthread = yes ; then
22883 ol_link_pthreads="-lpthread"
22884 ol_link_threads=posix
22888 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22889 if test "$ol_link_threads" = no ; then
22891 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22892 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22893 if test "${ol_cv_pthread_lc_r+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22901 if test "$cross_compiling" = yes; then
22902 cat >conftest.$ac_ext <<_ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22909 /* pthread test headers */
22910 #include <pthread.h>
22911 #if HAVE_PTHREADS < 7
22915 #define NULL (void*)0
22918 static void *task(p)
22921 return (void *) (p == NULL);
22928 /* pthread test function */
22929 #ifndef PTHREAD_CREATE_DETACHED
22930 #define PTHREAD_CREATE_DETACHED 1
22934 int detach = PTHREAD_CREATE_DETACHED;
22936 #if HAVE_PTHREADS > 4
22937 /* Final pthreads */
22938 pthread_attr_t attr;
22940 status = pthread_attr_init(&attr);
22941 if( status ) return status;
22943 #if HAVE_PTHREADS < 7
22944 status = pthread_attr_setdetachstate(&attr, &detach);
22945 if( status < 0 ) status = errno;
22947 status = pthread_attr_setdetachstate(&attr, detach);
22949 if( status ) return status;
22950 status = pthread_create( &t, &attr, task, NULL );
22951 #if HAVE_PTHREADS < 7
22952 if( status < 0 ) status = errno;
22954 if( status ) return status;
22956 /* Draft 4 pthreads */
22957 status = pthread_create( &t, pthread_attr_default, task, NULL );
22958 if( status ) return errno;
22960 /* give thread a chance to complete */
22961 /* it should remain joinable and hence detachable */
22964 status = pthread_detach( &t );
22965 if( status ) return errno;
22968 #ifdef HAVE_LINUX_THREADS
22969 pthread_kill_other_threads_np();
22978 rm -f conftest.$ac_objext conftest$ac_exeext
22979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22980 (eval $ac_link) 2>conftest.er1
22982 grep -v '^ *+' conftest.er1 >conftest.err
22984 cat conftest.err >&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } &&
22987 { ac_try='test -z "$ac_c_werror_flag"
22988 || test ! -s conftest.err'
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; } &&
22994 { ac_try='test -s conftest$ac_exeext'
22995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996 (eval $ac_try) 2>&5
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); }; }; then
23000 ol_cv_pthread_lc_r=yes
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 ol_cv_pthread_lc_r=no
23007 rm -f conftest.err conftest.$ac_objext \
23008 conftest$ac_exeext conftest.$ac_ext
23010 cat >conftest.$ac_ext <<_ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h. */
23017 /* pthread test headers */
23018 #include <pthread.h>
23019 #if HAVE_PTHREADS < 7
23023 #define NULL (void*)0
23026 static void *task(p)
23029 return (void *) (p == NULL);
23033 int main(argc, argv)
23038 /* pthread test function */
23039 #ifndef PTHREAD_CREATE_DETACHED
23040 #define PTHREAD_CREATE_DETACHED 1
23044 int detach = PTHREAD_CREATE_DETACHED;
23046 #if HAVE_PTHREADS > 4
23047 /* Final pthreads */
23048 pthread_attr_t attr;
23050 status = pthread_attr_init(&attr);
23051 if( status ) return status;
23053 #if HAVE_PTHREADS < 7
23054 status = pthread_attr_setdetachstate(&attr, &detach);
23055 if( status < 0 ) status = errno;
23057 status = pthread_attr_setdetachstate(&attr, detach);
23059 if( status ) return status;
23060 status = pthread_create( &t, &attr, task, NULL );
23061 #if HAVE_PTHREADS < 7
23062 if( status < 0 ) status = errno;
23064 if( status ) return status;
23066 /* Draft 4 pthreads */
23067 status = pthread_create( &t, pthread_attr_default, task, NULL );
23068 if( status ) return errno;
23070 /* give thread a chance to complete */
23071 /* it should remain joinable and hence detachable */
23074 status = pthread_detach( &t );
23075 if( status ) return errno;
23078 #ifdef HAVE_LINUX_THREADS
23079 pthread_kill_other_threads_np();
23087 rm -f conftest$ac_exeext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23089 (eval $ac_link) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; }; then
23098 ol_cv_pthread_lc_r=yes
23100 echo "$as_me: program exited with status $ac_status" >&5
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ( exit $ac_status )
23105 ol_cv_pthread_lc_r=no
23107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23114 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23115 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23117 if test $ol_cv_pthread_lc_r = yes ; then
23118 ol_link_pthreads="-lc_r"
23119 ol_link_threads=posix
23124 # Pthread try link: -threads (ol_cv_pthread_threads)
23125 if test "$ol_link_threads" = no ; then
23127 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23128 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23129 if test "${ol_cv_pthread_threads+set}" = set; then
23130 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 LIBS="-threads $LIBS"
23137 if test "$cross_compiling" = yes; then
23138 cat >conftest.$ac_ext <<_ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23145 /* pthread test headers */
23146 #include <pthread.h>
23147 #if HAVE_PTHREADS < 7
23151 #define NULL (void*)0
23154 static void *task(p)
23157 return (void *) (p == NULL);
23164 /* pthread test function */
23165 #ifndef PTHREAD_CREATE_DETACHED
23166 #define PTHREAD_CREATE_DETACHED 1
23170 int detach = PTHREAD_CREATE_DETACHED;
23172 #if HAVE_PTHREADS > 4
23173 /* Final pthreads */
23174 pthread_attr_t attr;
23176 status = pthread_attr_init(&attr);
23177 if( status ) return status;
23179 #if HAVE_PTHREADS < 7
23180 status = pthread_attr_setdetachstate(&attr, &detach);
23181 if( status < 0 ) status = errno;
23183 status = pthread_attr_setdetachstate(&attr, detach);
23185 if( status ) return status;
23186 status = pthread_create( &t, &attr, task, NULL );
23187 #if HAVE_PTHREADS < 7
23188 if( status < 0 ) status = errno;
23190 if( status ) return status;
23192 /* Draft 4 pthreads */
23193 status = pthread_create( &t, pthread_attr_default, task, NULL );
23194 if( status ) return errno;
23196 /* give thread a chance to complete */
23197 /* it should remain joinable and hence detachable */
23200 status = pthread_detach( &t );
23201 if( status ) return errno;
23204 #ifdef HAVE_LINUX_THREADS
23205 pthread_kill_other_threads_np();
23214 rm -f conftest.$ac_objext conftest$ac_exeext
23215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23216 (eval $ac_link) 2>conftest.er1
23218 grep -v '^ *+' conftest.er1 >conftest.err
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } &&
23223 { ac_try='test -z "$ac_c_werror_flag"
23224 || test ! -s conftest.err'
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; } &&
23230 { ac_try='test -s conftest$ac_exeext'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23236 ol_cv_pthread_threads=yes
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 ol_cv_pthread_threads=no
23243 rm -f conftest.err conftest.$ac_objext \
23244 conftest$ac_exeext conftest.$ac_ext
23246 cat >conftest.$ac_ext <<_ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23253 /* pthread test headers */
23254 #include <pthread.h>
23255 #if HAVE_PTHREADS < 7
23259 #define NULL (void*)0
23262 static void *task(p)
23265 return (void *) (p == NULL);
23269 int main(argc, argv)
23274 /* pthread test function */
23275 #ifndef PTHREAD_CREATE_DETACHED
23276 #define PTHREAD_CREATE_DETACHED 1
23280 int detach = PTHREAD_CREATE_DETACHED;
23282 #if HAVE_PTHREADS > 4
23283 /* Final pthreads */
23284 pthread_attr_t attr;
23286 status = pthread_attr_init(&attr);
23287 if( status ) return status;
23289 #if HAVE_PTHREADS < 7
23290 status = pthread_attr_setdetachstate(&attr, &detach);
23291 if( status < 0 ) status = errno;
23293 status = pthread_attr_setdetachstate(&attr, detach);
23295 if( status ) return status;
23296 status = pthread_create( &t, &attr, task, NULL );
23297 #if HAVE_PTHREADS < 7
23298 if( status < 0 ) status = errno;
23300 if( status ) return status;
23302 /* Draft 4 pthreads */
23303 status = pthread_create( &t, pthread_attr_default, task, NULL );
23304 if( status ) return errno;
23306 /* give thread a chance to complete */
23307 /* it should remain joinable and hence detachable */
23310 status = pthread_detach( &t );
23311 if( status ) return errno;
23314 #ifdef HAVE_LINUX_THREADS
23315 pthread_kill_other_threads_np();
23323 rm -f conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325 (eval $ac_link) 2>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 ol_cv_pthread_threads=yes
23336 echo "$as_me: program exited with status $ac_status" >&5
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ( exit $ac_status )
23341 ol_cv_pthread_threads=no
23343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23350 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23351 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23353 if test $ol_cv_pthread_threads = yes ; then
23354 ol_link_pthreads="-threads"
23355 ol_link_threads=posix
23360 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23361 if test "$ol_link_threads" = no ; then
23362 # try -lpthreads -lmach -lexc -lc_r
23363 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23364 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23365 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23373 if test "$cross_compiling" = yes; then
23374 cat >conftest.$ac_ext <<_ACEOF
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23381 /* pthread test headers */
23382 #include <pthread.h>
23383 #if HAVE_PTHREADS < 7
23387 #define NULL (void*)0
23390 static void *task(p)
23393 return (void *) (p == NULL);
23400 /* pthread test function */
23401 #ifndef PTHREAD_CREATE_DETACHED
23402 #define PTHREAD_CREATE_DETACHED 1
23406 int detach = PTHREAD_CREATE_DETACHED;
23408 #if HAVE_PTHREADS > 4
23409 /* Final pthreads */
23410 pthread_attr_t attr;
23412 status = pthread_attr_init(&attr);
23413 if( status ) return status;
23415 #if HAVE_PTHREADS < 7
23416 status = pthread_attr_setdetachstate(&attr, &detach);
23417 if( status < 0 ) status = errno;
23419 status = pthread_attr_setdetachstate(&attr, detach);
23421 if( status ) return status;
23422 status = pthread_create( &t, &attr, task, NULL );
23423 #if HAVE_PTHREADS < 7
23424 if( status < 0 ) status = errno;
23426 if( status ) return status;
23428 /* Draft 4 pthreads */
23429 status = pthread_create( &t, pthread_attr_default, task, NULL );
23430 if( status ) return errno;
23432 /* give thread a chance to complete */
23433 /* it should remain joinable and hence detachable */
23436 status = pthread_detach( &t );
23437 if( status ) return errno;
23440 #ifdef HAVE_LINUX_THREADS
23441 pthread_kill_other_threads_np();
23450 rm -f conftest.$ac_objext conftest$ac_exeext
23451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23452 (eval $ac_link) 2>conftest.er1
23454 grep -v '^ *+' conftest.er1 >conftest.err
23456 cat conftest.err >&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } &&
23459 { ac_try='test -z "$ac_c_werror_flag"
23460 || test ! -s conftest.err'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; } &&
23466 { ac_try='test -s conftest$ac_exeext'
23467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; }; then
23472 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23479 rm -f conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
23482 cat >conftest.$ac_ext <<_ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23489 /* pthread test headers */
23490 #include <pthread.h>
23491 #if HAVE_PTHREADS < 7
23495 #define NULL (void*)0
23498 static void *task(p)
23501 return (void *) (p == NULL);
23505 int main(argc, argv)
23510 /* pthread test function */
23511 #ifndef PTHREAD_CREATE_DETACHED
23512 #define PTHREAD_CREATE_DETACHED 1
23516 int detach = PTHREAD_CREATE_DETACHED;
23518 #if HAVE_PTHREADS > 4
23519 /* Final pthreads */
23520 pthread_attr_t attr;
23522 status = pthread_attr_init(&attr);
23523 if( status ) return status;
23525 #if HAVE_PTHREADS < 7
23526 status = pthread_attr_setdetachstate(&attr, &detach);
23527 if( status < 0 ) status = errno;
23529 status = pthread_attr_setdetachstate(&attr, detach);
23531 if( status ) return status;
23532 status = pthread_create( &t, &attr, task, NULL );
23533 #if HAVE_PTHREADS < 7
23534 if( status < 0 ) status = errno;
23536 if( status ) return status;
23538 /* Draft 4 pthreads */
23539 status = pthread_create( &t, pthread_attr_default, task, NULL );
23540 if( status ) return errno;
23542 /* give thread a chance to complete */
23543 /* it should remain joinable and hence detachable */
23546 status = pthread_detach( &t );
23547 if( status ) return errno;
23550 #ifdef HAVE_LINUX_THREADS
23551 pthread_kill_other_threads_np();
23559 rm -f conftest$ac_exeext
23560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23561 (eval $ac_link) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23572 echo "$as_me: program exited with status $ac_status" >&5
23573 echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23576 ( exit $ac_status )
23577 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23586 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23587 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23589 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23590 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23591 ol_link_threads=posix
23595 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23596 if test "$ol_link_threads" = no ; then
23597 # try -lpthreads -lmach -lexc
23598 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23599 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23600 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 LIBS="-lpthreads -lmach -lexc $LIBS"
23608 if test "$cross_compiling" = yes; then
23609 cat >conftest.$ac_ext <<_ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23616 /* pthread test headers */
23617 #include <pthread.h>
23618 #if HAVE_PTHREADS < 7
23622 #define NULL (void*)0
23625 static void *task(p)
23628 return (void *) (p == NULL);
23635 /* pthread test function */
23636 #ifndef PTHREAD_CREATE_DETACHED
23637 #define PTHREAD_CREATE_DETACHED 1
23641 int detach = PTHREAD_CREATE_DETACHED;
23643 #if HAVE_PTHREADS > 4
23644 /* Final pthreads */
23645 pthread_attr_t attr;
23647 status = pthread_attr_init(&attr);
23648 if( status ) return status;
23650 #if HAVE_PTHREADS < 7
23651 status = pthread_attr_setdetachstate(&attr, &detach);
23652 if( status < 0 ) status = errno;
23654 status = pthread_attr_setdetachstate(&attr, detach);
23656 if( status ) return status;
23657 status = pthread_create( &t, &attr, task, NULL );
23658 #if HAVE_PTHREADS < 7
23659 if( status < 0 ) status = errno;
23661 if( status ) return status;
23663 /* Draft 4 pthreads */
23664 status = pthread_create( &t, pthread_attr_default, task, NULL );
23665 if( status ) return errno;
23667 /* give thread a chance to complete */
23668 /* it should remain joinable and hence detachable */
23671 status = pthread_detach( &t );
23672 if( status ) return errno;
23675 #ifdef HAVE_LINUX_THREADS
23676 pthread_kill_other_threads_np();
23685 rm -f conftest.$ac_objext conftest$ac_exeext
23686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23687 (eval $ac_link) 2>conftest.er1
23689 grep -v '^ *+' conftest.er1 >conftest.err
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } &&
23694 { ac_try='test -z "$ac_c_werror_flag"
23695 || test ! -s conftest.err'
23696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697 (eval $ac_try) 2>&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; } &&
23701 { ac_try='test -s conftest$ac_exeext'
23702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703 (eval $ac_try) 2>&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); }; }; then
23707 ol_cv_pthread_lpthreads_lmach_lexc=yes
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 ol_cv_pthread_lpthreads_lmach_lexc=no
23714 rm -f conftest.err conftest.$ac_objext \
23715 conftest$ac_exeext conftest.$ac_ext
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23724 /* pthread test headers */
23725 #include <pthread.h>
23726 #if HAVE_PTHREADS < 7
23730 #define NULL (void*)0
23733 static void *task(p)
23736 return (void *) (p == NULL);
23740 int main(argc, argv)
23745 /* pthread test function */
23746 #ifndef PTHREAD_CREATE_DETACHED
23747 #define PTHREAD_CREATE_DETACHED 1
23751 int detach = PTHREAD_CREATE_DETACHED;
23753 #if HAVE_PTHREADS > 4
23754 /* Final pthreads */
23755 pthread_attr_t attr;
23757 status = pthread_attr_init(&attr);
23758 if( status ) return status;
23760 #if HAVE_PTHREADS < 7
23761 status = pthread_attr_setdetachstate(&attr, &detach);
23762 if( status < 0 ) status = errno;
23764 status = pthread_attr_setdetachstate(&attr, detach);
23766 if( status ) return status;
23767 status = pthread_create( &t, &attr, task, NULL );
23768 #if HAVE_PTHREADS < 7
23769 if( status < 0 ) status = errno;
23771 if( status ) return status;
23773 /* Draft 4 pthreads */
23774 status = pthread_create( &t, pthread_attr_default, task, NULL );
23775 if( status ) return errno;
23777 /* give thread a chance to complete */
23778 /* it should remain joinable and hence detachable */
23781 status = pthread_detach( &t );
23782 if( status ) return errno;
23785 #ifdef HAVE_LINUX_THREADS
23786 pthread_kill_other_threads_np();
23794 rm -f conftest$ac_exeext
23795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23796 (eval $ac_link) 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23801 (eval $ac_try) 2>&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); }; }; then
23805 ol_cv_pthread_lpthreads_lmach_lexc=yes
23807 echo "$as_me: program exited with status $ac_status" >&5
23808 echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23811 ( exit $ac_status )
23812 ol_cv_pthread_lpthreads_lmach_lexc=no
23814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23821 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23822 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23824 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23825 ol_link_pthreads="-lpthreads -lmach -lexc"
23826 ol_link_threads=posix
23830 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23831 if test "$ol_link_threads" = no ; then
23832 # try -lpthreads -lexc
23833 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23834 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23835 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23841 LIBS="-lpthreads -lexc $LIBS"
23843 if test "$cross_compiling" = yes; then
23844 cat >conftest.$ac_ext <<_ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23851 /* pthread test headers */
23852 #include <pthread.h>
23853 #if HAVE_PTHREADS < 7
23857 #define NULL (void*)0
23860 static void *task(p)
23863 return (void *) (p == NULL);
23870 /* pthread test function */
23871 #ifndef PTHREAD_CREATE_DETACHED
23872 #define PTHREAD_CREATE_DETACHED 1
23876 int detach = PTHREAD_CREATE_DETACHED;
23878 #if HAVE_PTHREADS > 4
23879 /* Final pthreads */
23880 pthread_attr_t attr;
23882 status = pthread_attr_init(&attr);
23883 if( status ) return status;
23885 #if HAVE_PTHREADS < 7
23886 status = pthread_attr_setdetachstate(&attr, &detach);
23887 if( status < 0 ) status = errno;
23889 status = pthread_attr_setdetachstate(&attr, detach);
23891 if( status ) return status;
23892 status = pthread_create( &t, &attr, task, NULL );
23893 #if HAVE_PTHREADS < 7
23894 if( status < 0 ) status = errno;
23896 if( status ) return status;
23898 /* Draft 4 pthreads */
23899 status = pthread_create( &t, pthread_attr_default, task, NULL );
23900 if( status ) return errno;
23902 /* give thread a chance to complete */
23903 /* it should remain joinable and hence detachable */
23906 status = pthread_detach( &t );
23907 if( status ) return errno;
23910 #ifdef HAVE_LINUX_THREADS
23911 pthread_kill_other_threads_np();
23920 rm -f conftest.$ac_objext conftest$ac_exeext
23921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23922 (eval $ac_link) 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -z "$ac_c_werror_flag"
23930 || test ! -s conftest.err'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } &&
23936 { ac_try='test -s conftest$ac_exeext'
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942 ol_cv_pthread_lpthreads_lexc=yes
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23947 ol_cv_pthread_lpthreads_lexc=no
23949 rm -f conftest.err conftest.$ac_objext \
23950 conftest$ac_exeext conftest.$ac_ext
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23959 /* pthread test headers */
23960 #include <pthread.h>
23961 #if HAVE_PTHREADS < 7
23965 #define NULL (void*)0
23968 static void *task(p)
23971 return (void *) (p == NULL);
23975 int main(argc, argv)
23980 /* pthread test function */
23981 #ifndef PTHREAD_CREATE_DETACHED
23982 #define PTHREAD_CREATE_DETACHED 1
23986 int detach = PTHREAD_CREATE_DETACHED;
23988 #if HAVE_PTHREADS > 4
23989 /* Final pthreads */
23990 pthread_attr_t attr;
23992 status = pthread_attr_init(&attr);
23993 if( status ) return status;
23995 #if HAVE_PTHREADS < 7
23996 status = pthread_attr_setdetachstate(&attr, &detach);
23997 if( status < 0 ) status = errno;
23999 status = pthread_attr_setdetachstate(&attr, detach);
24001 if( status ) return status;
24002 status = pthread_create( &t, &attr, task, NULL );
24003 #if HAVE_PTHREADS < 7
24004 if( status < 0 ) status = errno;
24006 if( status ) return status;
24008 /* Draft 4 pthreads */
24009 status = pthread_create( &t, pthread_attr_default, task, NULL );
24010 if( status ) return errno;
24012 /* give thread a chance to complete */
24013 /* it should remain joinable and hence detachable */
24016 status = pthread_detach( &t );
24017 if( status ) return errno;
24020 #ifdef HAVE_LINUX_THREADS
24021 pthread_kill_other_threads_np();
24029 rm -f conftest$ac_exeext
24030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24031 (eval $ac_link) 2>&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036 (eval $ac_try) 2>&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); }; }; then
24040 ol_cv_pthread_lpthreads_lexc=yes
24042 echo "$as_me: program exited with status $ac_status" >&5
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24046 ( exit $ac_status )
24047 ol_cv_pthread_lpthreads_lexc=no
24049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24056 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24057 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24059 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24060 ol_link_pthreads="-lpthreads -lexc"
24061 ol_link_threads=posix
24066 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24067 if test "$ol_link_threads" = no ; then
24069 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24070 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24071 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24077 LIBS="-lpthreads $LIBS"
24079 if test "$cross_compiling" = yes; then
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24087 /* pthread test headers */
24088 #include <pthread.h>
24089 #if HAVE_PTHREADS < 7
24093 #define NULL (void*)0
24096 static void *task(p)
24099 return (void *) (p == NULL);
24106 /* pthread test function */
24107 #ifndef PTHREAD_CREATE_DETACHED
24108 #define PTHREAD_CREATE_DETACHED 1
24112 int detach = PTHREAD_CREATE_DETACHED;
24114 #if HAVE_PTHREADS > 4
24115 /* Final pthreads */
24116 pthread_attr_t attr;
24118 status = pthread_attr_init(&attr);
24119 if( status ) return status;
24121 #if HAVE_PTHREADS < 7
24122 status = pthread_attr_setdetachstate(&attr, &detach);
24123 if( status < 0 ) status = errno;
24125 status = pthread_attr_setdetachstate(&attr, detach);
24127 if( status ) return status;
24128 status = pthread_create( &t, &attr, task, NULL );
24129 #if HAVE_PTHREADS < 7
24130 if( status < 0 ) status = errno;
24132 if( status ) return status;
24134 /* Draft 4 pthreads */
24135 status = pthread_create( &t, pthread_attr_default, task, NULL );
24136 if( status ) return errno;
24138 /* give thread a chance to complete */
24139 /* it should remain joinable and hence detachable */
24142 status = pthread_detach( &t );
24143 if( status ) return errno;
24146 #ifdef HAVE_LINUX_THREADS
24147 pthread_kill_other_threads_np();
24156 rm -f conftest.$ac_objext conftest$ac_exeext
24157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24158 (eval $ac_link) 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } &&
24165 { ac_try='test -z "$ac_c_werror_flag"
24166 || test ! -s conftest.err'
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; } &&
24172 { ac_try='test -s conftest$ac_exeext'
24173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174 (eval $ac_try) 2>&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); }; }; then
24178 ol_cv_pthread_lib_lpthreads=yes
24180 echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24183 ol_cv_pthread_lib_lpthreads=no
24185 rm -f conftest.err conftest.$ac_objext \
24186 conftest$ac_exeext conftest.$ac_ext
24188 cat >conftest.$ac_ext <<_ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24195 /* pthread test headers */
24196 #include <pthread.h>
24197 #if HAVE_PTHREADS < 7
24201 #define NULL (void*)0
24204 static void *task(p)
24207 return (void *) (p == NULL);
24211 int main(argc, argv)
24216 /* pthread test function */
24217 #ifndef PTHREAD_CREATE_DETACHED
24218 #define PTHREAD_CREATE_DETACHED 1
24222 int detach = PTHREAD_CREATE_DETACHED;
24224 #if HAVE_PTHREADS > 4
24225 /* Final pthreads */
24226 pthread_attr_t attr;
24228 status = pthread_attr_init(&attr);
24229 if( status ) return status;
24231 #if HAVE_PTHREADS < 7
24232 status = pthread_attr_setdetachstate(&attr, &detach);
24233 if( status < 0 ) status = errno;
24235 status = pthread_attr_setdetachstate(&attr, detach);
24237 if( status ) return status;
24238 status = pthread_create( &t, &attr, task, NULL );
24239 #if HAVE_PTHREADS < 7
24240 if( status < 0 ) status = errno;
24242 if( status ) return status;
24244 /* Draft 4 pthreads */
24245 status = pthread_create( &t, pthread_attr_default, task, NULL );
24246 if( status ) return errno;
24248 /* give thread a chance to complete */
24249 /* it should remain joinable and hence detachable */
24252 status = pthread_detach( &t );
24253 if( status ) return errno;
24256 #ifdef HAVE_LINUX_THREADS
24257 pthread_kill_other_threads_np();
24265 rm -f conftest$ac_exeext
24266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24267 (eval $ac_link) 2>&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; }; then
24276 ol_cv_pthread_lib_lpthreads=yes
24278 echo "$as_me: program exited with status $ac_status" >&5
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24282 ( exit $ac_status )
24283 ol_cv_pthread_lib_lpthreads=no
24285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24292 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24293 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24295 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24296 ol_link_pthreads="-lpthreads"
24297 ol_link_threads=posix
24302 if test $ol_link_threads != no ; then
24303 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24305 save_CPPFLAGS="$CPPFLAGS"
24307 LIBS="$LTHREAD_LIBS $LIBS"
24312 for ac_func in sched_yield pthread_yield thr_yield
24314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24315 echo "$as_me:$LINENO: checking for $ac_func" >&5
24316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24317 if eval "test \"\${$as_ac_var+set}\" = set"; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24320 cat >conftest.$ac_ext <<_ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24328 #define $ac_func innocuous_$ac_func
24330 /* System header to define __stub macros and hopefully few prototypes,
24331 which can conflict with char $ac_func (); below.
24332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24333 <limits.h> exists even on freestanding compilers. */
24336 # include <limits.h>
24338 # include <assert.h>
24343 /* Override any gcc2 internal prototype to avoid an error. */
24348 /* We use char because int might match the return type of a gcc2
24349 builtin and then its argument prototype would still apply. */
24351 /* The GNU C library defines this for functions which it implements
24352 to always fail with ENOSYS. Some functions are actually named
24353 something starting with __ and the normal name is an alias. */
24354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24357 char (*f) () = $ac_func;
24366 return f != $ac_func;
24371 rm -f conftest.$ac_objext conftest$ac_exeext
24372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24373 (eval $ac_link) 2>conftest.er1
24375 grep -v '^ *+' conftest.er1 >conftest.err
24377 cat conftest.err >&5
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } &&
24380 { ac_try='test -z "$ac_c_werror_flag"
24381 || test ! -s conftest.err'
24382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383 (eval $ac_try) 2>&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; } &&
24387 { ac_try='test -s conftest$ac_exeext'
24388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); }; }; then
24393 eval "$as_ac_var=yes"
24395 echo "$as_me: failed program was:" >&5
24396 sed 's/^/| /' conftest.$ac_ext >&5
24398 eval "$as_ac_var=no"
24400 rm -f conftest.err conftest.$ac_objext \
24401 conftest$ac_exeext conftest.$ac_ext
24403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24405 if test `eval echo '${'$as_ac_var'}'` = yes; then
24406 cat >>confdefs.h <<_ACEOF
24407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24414 if test $ac_cv_func_sched_yield = no &&
24415 test $ac_cv_func_pthread_yield = no &&
24416 test $ac_cv_func_thr_yield = no ; then
24417 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24418 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24419 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24422 ac_check_lib_save_LIBS=$LIBS
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24431 /* Override any gcc2 internal prototype to avoid an error. */
24435 /* We use char because int might match the return type of a gcc2
24436 builtin and then its argument prototype would still apply. */
24437 char sched_yield ();
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448 (eval $ac_link) 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try='test -z "$ac_c_werror_flag"
24456 || test ! -s conftest.err'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; } &&
24462 { ac_try='test -s conftest$ac_exeext'
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; }; then
24468 ac_cv_lib_rt_sched_yield=yes
24470 echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 ac_cv_lib_rt_sched_yield=no
24475 rm -f conftest.err conftest.$ac_objext \
24476 conftest$ac_exeext conftest.$ac_ext
24477 LIBS=$ac_check_lib_save_LIBS
24479 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24480 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24481 if test $ac_cv_lib_rt_sched_yield = yes; then
24482 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24484 cat >>confdefs.h <<\_ACEOF
24485 #define HAVE_SCHED_YIELD 1
24488 ac_cv_func_sched_yield=yes
24490 ac_cv_func_sched_yield=no
24494 if test $ac_cv_func_sched_yield = no &&
24495 test $ac_cv_func_pthread_yield = no &&
24496 test "$ac_cv_func_thr_yield" = no ; then
24497 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24498 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24503 for ac_func in pthread_kill pthread_rwlock_destroy
24505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24506 echo "$as_me:$LINENO: checking for $ac_func" >&5
24507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24508 if eval "test \"\${$as_ac_var+set}\" = set"; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24511 cat >conftest.$ac_ext <<_ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h. */
24517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24519 #define $ac_func innocuous_$ac_func
24521 /* System header to define __stub macros and hopefully few prototypes,
24522 which can conflict with char $ac_func (); below.
24523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24524 <limits.h> exists even on freestanding compilers. */
24527 # include <limits.h>
24529 # include <assert.h>
24534 /* Override any gcc2 internal prototype to avoid an error. */
24539 /* We use char because int might match the return type of a gcc2
24540 builtin and then its argument prototype would still apply. */
24542 /* The GNU C library defines this for functions which it implements
24543 to always fail with ENOSYS. Some functions are actually named
24544 something starting with __ and the normal name is an alias. */
24545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24548 char (*f) () = $ac_func;
24557 return f != $ac_func;
24562 rm -f conftest.$ac_objext conftest$ac_exeext
24563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24564 (eval $ac_link) 2>conftest.er1
24566 grep -v '^ *+' conftest.er1 >conftest.err
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } &&
24571 { ac_try='test -z "$ac_c_werror_flag"
24572 || test ! -s conftest.err'
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest$ac_exeext'
24579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580 (eval $ac_try) 2>&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); }; }; then
24584 eval "$as_ac_var=yes"
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 eval "$as_ac_var=no"
24591 rm -f conftest.err conftest.$ac_objext \
24592 conftest$ac_exeext conftest.$ac_ext
24594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24596 if test `eval echo '${'$as_ac_var'}'` = yes; then
24597 cat >>confdefs.h <<_ACEOF
24598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24605 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24606 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24607 if test "${ol_cv_func_pthread_detach+set}" = set; then
24608 echo $ECHO_N "(cached) $ECHO_C" >&6
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24618 #include <pthread.h>
24620 #define NULL (void*)0
24626 pthread_detach(NULL);
24631 rm -f conftest.$ac_objext conftest$ac_exeext
24632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24633 (eval $ac_link) 2>conftest.er1
24635 grep -v '^ *+' conftest.er1 >conftest.err
24637 cat conftest.err >&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } &&
24640 { ac_try='test -z "$ac_c_werror_flag"
24641 || test ! -s conftest.err'
24642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24643 (eval $ac_try) 2>&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); }; } &&
24647 { ac_try='test -s conftest$ac_exeext'
24648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24649 (eval $ac_try) 2>&5
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; }; then
24653 ol_cv_func_pthread_detach=yes
24655 echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24658 ol_cv_func_pthread_detach=no
24660 rm -f conftest.err conftest.$ac_objext \
24661 conftest$ac_exeext conftest.$ac_ext
24664 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24665 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24667 if test $ol_cv_func_pthread_detach = no ; then
24668 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24669 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24670 { (exit 1); exit 1; }; }
24674 cat >>confdefs.h <<\_ACEOF
24675 #define HAVE_PTHREAD_DETACH 1
24684 pthread_setconcurrency \
24685 pthread_getconcurrency \
24686 thr_setconcurrency \
24687 thr_getconcurrency \
24690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24691 echo "$as_me:$LINENO: checking for $ac_func" >&5
24692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24693 if eval "test \"\${$as_ac_var+set}\" = set"; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24696 cat >conftest.$ac_ext <<_ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h. */
24702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24704 #define $ac_func innocuous_$ac_func
24706 /* System header to define __stub macros and hopefully few prototypes,
24707 which can conflict with char $ac_func (); below.
24708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24709 <limits.h> exists even on freestanding compilers. */
24712 # include <limits.h>
24714 # include <assert.h>
24719 /* Override any gcc2 internal prototype to avoid an error. */
24724 /* We use char because int might match the return type of a gcc2
24725 builtin and then its argument prototype would still apply. */
24727 /* The GNU C library defines this for functions which it implements
24728 to always fail with ENOSYS. Some functions are actually named
24729 something starting with __ and the normal name is an alias. */
24730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24733 char (*f) () = $ac_func;
24742 return f != $ac_func;
24747 rm -f conftest.$ac_objext conftest$ac_exeext
24748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24749 (eval $ac_link) 2>conftest.er1
24751 grep -v '^ *+' conftest.er1 >conftest.err
24753 cat conftest.err >&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } &&
24756 { ac_try='test -z "$ac_c_werror_flag"
24757 || test ! -s conftest.err'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; } &&
24763 { ac_try='test -s conftest$ac_exeext'
24764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765 (eval $ac_try) 2>&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; }; then
24769 eval "$as_ac_var=yes"
24771 echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24774 eval "$as_ac_var=no"
24776 rm -f conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext conftest.$ac_ext
24779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24781 if test `eval echo '${'$as_ac_var'}'` = yes; then
24782 cat >>confdefs.h <<_ACEOF
24783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24792 for ac_func in pthread_kill_other_threads_np
24794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24795 echo "$as_me:$LINENO: checking for $ac_func" >&5
24796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24797 if eval "test \"\${$as_ac_var+set}\" = set"; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24800 cat >conftest.$ac_ext <<_ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h. */
24806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24808 #define $ac_func innocuous_$ac_func
24810 /* System header to define __stub macros and hopefully few prototypes,
24811 which can conflict with char $ac_func (); below.
24812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24813 <limits.h> exists even on freestanding compilers. */
24816 # include <limits.h>
24818 # include <assert.h>
24823 /* Override any gcc2 internal prototype to avoid an error. */
24828 /* We use char because int might match the return type of a gcc2
24829 builtin and then its argument prototype would still apply. */
24831 /* The GNU C library defines this for functions which it implements
24832 to always fail with ENOSYS. Some functions are actually named
24833 something starting with __ and the normal name is an alias. */
24834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24837 char (*f) () = $ac_func;
24846 return f != $ac_func;
24851 rm -f conftest.$ac_objext conftest$ac_exeext
24852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24853 (eval $ac_link) 2>conftest.er1
24855 grep -v '^ *+' conftest.er1 >conftest.err
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } &&
24860 { ac_try='test -z "$ac_c_werror_flag"
24861 || test ! -s conftest.err'
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; } &&
24867 { ac_try='test -s conftest$ac_exeext'
24868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869 (eval $ac_try) 2>&5
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); }; }; then
24873 eval "$as_ac_var=yes"
24875 echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24878 eval "$as_ac_var=no"
24880 rm -f conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
24883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24885 if test `eval echo '${'$as_ac_var'}'` = yes; then
24886 cat >>confdefs.h <<_ACEOF
24887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24893 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24894 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24895 if test "${ol_cv_sys_linux_threads+set}" = set; then
24896 echo $ECHO_N "(cached) $ECHO_C" >&6
24898 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24900 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24901 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24906 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24907 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24908 if test "${ol_cv_linux_threads+set}" = set; then
24909 echo $ECHO_N "(cached) $ECHO_C" >&6
24912 if test $ol_cv_header_linux_threads = yes &&
24913 test $ol_cv_sys_linux_threads = yes; then
24914 ol_cv_linux_threads=yes
24915 elif test $ol_cv_header_linux_threads = no &&
24916 test $ol_cv_sys_linux_threads = no; then
24917 ol_cv_linux_threads=no
24919 ol_cv_linux_threads=error
24923 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24924 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24927 if test $ol_cv_linux_threads = error; then
24928 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24929 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24930 { (exit 1); exit 1; }; };
24933 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24934 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24935 if test "${ol_cv_pthread_create_works+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24939 if test "$cross_compiling" = yes; then
24940 ol_cv_pthread_create_works=yes
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24949 /* pthread test headers */
24950 #include <pthread.h>
24951 #if HAVE_PTHREADS < 7
24955 #define NULL (void*)0
24958 static void *task(p)
24961 return (void *) (p == NULL);
24965 int main(argc, argv)
24970 /* pthread test function */
24971 #ifndef PTHREAD_CREATE_DETACHED
24972 #define PTHREAD_CREATE_DETACHED 1
24976 int detach = PTHREAD_CREATE_DETACHED;
24978 #if HAVE_PTHREADS > 4
24979 /* Final pthreads */
24980 pthread_attr_t attr;
24982 status = pthread_attr_init(&attr);
24983 if( status ) return status;
24985 #if HAVE_PTHREADS < 7
24986 status = pthread_attr_setdetachstate(&attr, &detach);
24987 if( status < 0 ) status = errno;
24989 status = pthread_attr_setdetachstate(&attr, detach);
24991 if( status ) return status;
24992 status = pthread_create( &t, &attr, task, NULL );
24993 #if HAVE_PTHREADS < 7
24994 if( status < 0 ) status = errno;
24996 if( status ) return status;
24998 /* Draft 4 pthreads */
24999 status = pthread_create( &t, pthread_attr_default, task, NULL );
25000 if( status ) return errno;
25002 /* give thread a chance to complete */
25003 /* it should remain joinable and hence detachable */
25006 status = pthread_detach( &t );
25007 if( status ) return errno;
25010 #ifdef HAVE_LINUX_THREADS
25011 pthread_kill_other_threads_np();
25019 rm -f conftest$ac_exeext
25020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25021 (eval $ac_link) 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; }; then
25030 ol_cv_pthread_create_works=yes
25032 echo "$as_me: program exited with status $ac_status" >&5
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25036 ( exit $ac_status )
25037 ol_cv_pthread_create_works=no
25039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25042 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25043 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25045 if test $ol_cv_pthread_create_works = no ; then
25046 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25047 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25048 { (exit 1); exit 1; }; }
25051 ol_replace_broken_yield=no
25053 if test $ol_replace_broken_yield = yes ; then
25055 cat >>confdefs.h <<\_ACEOF
25056 #define REPLACE_BROKEN_YIELD 1
25061 if test $ol_with_yielding_select = auto ; then
25062 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25063 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25064 if test "${ol_cv_pthread_select_yields+set}" = set; then
25065 echo $ECHO_N "(cached) $ECHO_C" >&6
25068 if test "$cross_compiling" = yes; then
25069 ol_cv_pthread_select_yields=cross
25071 cat >conftest.$ac_ext <<_ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h. */
25078 #include <sys/types.h>
25079 #include <sys/time.h>
25080 #include <unistd.h>
25081 #include <pthread.h>
25083 #define NULL (void*) 0
25086 static int fildes[2];
25088 static void *task(p)
25100 FD_SET(fildes[0], &rfds);
25102 /* we're not interested in any fds */
25103 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25110 exit(0); /* if we exit here, the select blocked the whole process */
25113 int main(argc, argv)
25119 /* create a pipe to select */
25120 if(pipe(&fildes[0])) {
25125 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25126 (void) pthread_setconcurrency(2);
25128 #ifdef HAVE_THR_SETCONCURRENCY
25129 /* Set Solaris LWP concurrency to 2 */
25130 thr_setconcurrency(2);
25134 #if HAVE_PTHREADS < 6
25135 pthread_create(&t, pthread_attr_default, task, NULL);
25137 pthread_create(&t, NULL, task, NULL);
25140 /* make sure task runs first */
25143 #elif defined( HAVE_SCHED_YIELD )
25145 #elif defined( HAVE_PTHREAD_YIELD )
25152 rm -f conftest$ac_exeext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25154 (eval $ac_link) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ol_cv_pthread_select_yields=no
25165 echo "$as_me: program exited with status $ac_status" >&5
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25169 ( exit $ac_status )
25170 ol_cv_pthread_select_yields=yes
25172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25175 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25176 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25178 if test $ol_cv_pthread_select_yields = cross ; then
25179 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25180 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25181 { (exit 1); exit 1; }; }
25184 if test $ol_cv_pthread_select_yields = yes ; then
25185 ol_with_yielding_select=yes
25189 CPPFLAGS="$save_CPPFLAGS"
25192 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25193 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25194 { (exit 1); exit 1; }; }
25198 if test $ol_with_threads = posix ; then
25199 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25200 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25201 { (exit 1); exit 1; }; }
25206 case $ol_with_threads in auto | yes | mach)
25210 for ac_header in mach/cthreads.h cthreads.h
25212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25214 echo "$as_me:$LINENO: checking for $ac_header" >&5
25215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25222 # Is the header compilable?
25223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25225 cat >conftest.$ac_ext <<_ACEOF
25228 cat confdefs.h >>conftest.$ac_ext
25229 cat >>conftest.$ac_ext <<_ACEOF
25230 /* end confdefs.h. */
25231 $ac_includes_default
25232 #include <$ac_header>
25234 rm -f conftest.$ac_objext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25236 (eval $ac_compile) 2>conftest.er1
25238 grep -v '^ *+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } &&
25243 { ac_try='test -z "$ac_c_werror_flag"
25244 || test ! -s conftest.err'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; } &&
25250 { ac_try='test -s conftest.$ac_objext'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; }; then
25256 ac_header_compiler=yes
25258 echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25261 ac_header_compiler=no
25263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25265 echo "${ECHO_T}$ac_header_compiler" >&6
25267 # Is the header present?
25268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25270 cat >conftest.$ac_ext <<_ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25276 #include <$ac_header>
25278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25281 grep -v '^ *+' conftest.er1 >conftest.err
25283 cat conftest.err >&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } >/dev/null; then
25286 if test -s conftest.err; then
25287 ac_cpp_err=$ac_c_preproc_warn_flag
25288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25295 if test -z "$ac_cpp_err"; then
25296 ac_header_preproc=yes
25298 echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25301 ac_header_preproc=no
25303 rm -f conftest.err conftest.$ac_ext
25304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25305 echo "${ECHO_T}$ac_header_preproc" >&6
25307 # So? What about this header?
25308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25314 ac_header_preproc=yes
25317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25331 ## --------------------------------------------- ##
25332 ## Report this to <http://www.openldap.org/its/> ##
25333 ## --------------------------------------------- ##
25336 sed "s/^/$as_me: WARNING: /" >&2
25339 echo "$as_me:$LINENO: checking for $ac_header" >&5
25340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25344 eval "$as_ac_Header=\$ac_header_preproc"
25346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25351 cat >>confdefs.h <<_ACEOF
25352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25359 if test $ac_cv_header_mach_cthreads_h = yes ; then
25360 ol_with_threads=found
25362 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25363 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25364 if test "${ac_cv_func_cthread_fork+set}" = set; then
25365 echo $ECHO_N "(cached) $ECHO_C" >&6
25367 cat >conftest.$ac_ext <<_ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h. */
25373 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25375 #define cthread_fork innocuous_cthread_fork
25377 /* System header to define __stub macros and hopefully few prototypes,
25378 which can conflict with char cthread_fork (); below.
25379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25380 <limits.h> exists even on freestanding compilers. */
25383 # include <limits.h>
25385 # include <assert.h>
25388 #undef cthread_fork
25390 /* Override any gcc2 internal prototype to avoid an error. */
25395 /* We use char because int might match the return type of a gcc2
25396 builtin and then its argument prototype would still apply. */
25397 char cthread_fork ();
25398 /* The GNU C library defines this for functions which it implements
25399 to always fail with ENOSYS. Some functions are actually named
25400 something starting with __ and the normal name is an alias. */
25401 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25404 char (*f) () = cthread_fork;
25413 return f != cthread_fork;
25418 rm -f conftest.$ac_objext conftest$ac_exeext
25419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25420 (eval $ac_link) 2>conftest.er1
25422 grep -v '^ *+' conftest.er1 >conftest.err
25424 cat conftest.err >&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } &&
25427 { ac_try='test -z "$ac_c_werror_flag"
25428 || test ! -s conftest.err'
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; } &&
25434 { ac_try='test -s conftest$ac_exeext'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440 ac_cv_func_cthread_fork=yes
25442 echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25445 ac_cv_func_cthread_fork=no
25447 rm -f conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
25450 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25451 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25452 if test $ac_cv_func_cthread_fork = yes; then
25453 ol_link_threads=yes
25457 if test $ol_link_threads = no ; then
25458 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25459 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25460 if test "${ol_cv_cthread_all_load+set}" = set; then
25461 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 LIBS="-all_load $LIBS"
25466 cat >conftest.$ac_ext <<_ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25472 #include <mach/cthreads.h>
25477 cthread_fork((void *)0, (void *)0);
25483 rm -f conftest.$ac_objext conftest$ac_exeext
25484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25485 (eval $ac_link) 2>conftest.er1
25487 grep -v '^ *+' conftest.er1 >conftest.err
25489 cat conftest.err >&5
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); } &&
25492 { ac_try='test -z "$ac_c_werror_flag"
25493 || test ! -s conftest.err'
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; } &&
25499 { ac_try='test -s conftest$ac_exeext'
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ol_cv_cthread_all_load=yes
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ol_cv_cthread_all_load=no
25512 rm -f conftest.err conftest.$ac_objext \
25513 conftest$ac_exeext conftest.$ac_ext
25517 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25518 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25520 if test $ol_cv_cthread_all_load = yes ; then
25521 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25522 ol_link_threads=mach
25523 ol_with_threads=found
25527 elif test $ac_cv_header_cthreads_h = yes ; then
25529 ol_with_threads=found
25532 LIBS="$LIBS -lthreads"
25533 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25534 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25535 if test "${ac_cv_func_cthread_fork+set}" = set; then
25536 echo $ECHO_N "(cached) $ECHO_C" >&6
25538 cat >conftest.$ac_ext <<_ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25546 #define cthread_fork innocuous_cthread_fork
25548 /* System header to define __stub macros and hopefully few prototypes,
25549 which can conflict with char cthread_fork (); below.
25550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25551 <limits.h> exists even on freestanding compilers. */
25554 # include <limits.h>
25556 # include <assert.h>
25559 #undef cthread_fork
25561 /* Override any gcc2 internal prototype to avoid an error. */
25566 /* We use char because int might match the return type of a gcc2
25567 builtin and then its argument prototype would still apply. */
25568 char cthread_fork ();
25569 /* The GNU C library defines this for functions which it implements
25570 to always fail with ENOSYS. Some functions are actually named
25571 something starting with __ and the normal name is an alias. */
25572 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25575 char (*f) () = cthread_fork;
25584 return f != cthread_fork;
25589 rm -f conftest.$ac_objext conftest$ac_exeext
25590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25591 (eval $ac_link) 2>conftest.er1
25593 grep -v '^ *+' conftest.er1 >conftest.err
25595 cat conftest.err >&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } &&
25598 { ac_try='test -z "$ac_c_werror_flag"
25599 || test ! -s conftest.err'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; } &&
25605 { ac_try='test -s conftest$ac_exeext'
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_cv_func_cthread_fork=yes
25613 echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 ac_cv_func_cthread_fork=no
25618 rm -f conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
25621 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25622 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25623 if test $ac_cv_func_cthread_fork = yes; then
25624 ol_link_threads=yes
25629 if test $ol_link_threads = yes ; then
25630 LTHREAD_LIBS="-lthreads"
25631 ol_link_threads=mach
25632 ol_with_threads=found
25634 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25635 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25636 { (exit 1); exit 1; }; }
25639 elif test $ol_with_threads = mach ; then
25640 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25641 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25642 { (exit 1); exit 1; }; }
25645 if test $ol_link_threads = mach ; then
25647 cat >>confdefs.h <<\_ACEOF
25648 #define HAVE_MACH_CTHREADS 1
25651 elif test $ol_with_threads = found ; then
25652 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25653 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25654 { (exit 1); exit 1; }; }
25659 case $ol_with_threads in auto | yes | pth)
25662 for ac_header in pth.h
25664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25666 echo "$as_me:$LINENO: checking for $ac_header" >&5
25667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25674 # Is the header compilable?
25675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25677 cat >conftest.$ac_ext <<_ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25683 $ac_includes_default
25684 #include <$ac_header>
25686 rm -f conftest.$ac_objext
25687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25688 (eval $ac_compile) 2>conftest.er1
25690 grep -v '^ *+' conftest.er1 >conftest.err
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
25695 { ac_try='test -z "$ac_c_werror_flag"
25696 || test ! -s conftest.err'
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; } &&
25702 { ac_try='test -s conftest.$ac_objext'
25703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704 (eval $ac_try) 2>&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); }; }; then
25708 ac_header_compiler=yes
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25713 ac_header_compiler=no
25715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25717 echo "${ECHO_T}$ac_header_compiler" >&6
25719 # Is the header present?
25720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25722 cat >conftest.$ac_ext <<_ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h. */
25728 #include <$ac_header>
25730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25733 grep -v '^ *+' conftest.er1 >conftest.err
25735 cat conftest.err >&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } >/dev/null; then
25738 if test -s conftest.err; then
25739 ac_cpp_err=$ac_c_preproc_warn_flag
25740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25747 if test -z "$ac_cpp_err"; then
25748 ac_header_preproc=yes
25750 echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25753 ac_header_preproc=no
25755 rm -f conftest.err conftest.$ac_ext
25756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25757 echo "${ECHO_T}$ac_header_preproc" >&6
25759 # So? What about this header?
25760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25766 ac_header_preproc=yes
25769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25783 ## --------------------------------------------- ##
25784 ## Report this to <http://www.openldap.org/its/> ##
25785 ## --------------------------------------------- ##
25788 sed "s/^/$as_me: WARNING: /" >&2
25791 echo "$as_me:$LINENO: checking for $ac_header" >&5
25792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 eval "$as_ac_Header=\$ac_header_preproc"
25798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25803 cat >>confdefs.h <<_ACEOF
25804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25812 if test $ac_cv_header_pth_h = yes ; then
25813 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25814 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25815 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25818 ac_check_lib_save_LIBS=$LIBS
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25827 /* Override any gcc2 internal prototype to avoid an error. */
25831 /* We use char because int might match the return type of a gcc2
25832 builtin and then its argument prototype would still apply. */
25833 char pth_version ();
25842 rm -f conftest.$ac_objext conftest$ac_exeext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25844 (eval $ac_link) 2>conftest.er1
25846 grep -v '^ *+' conftest.er1 >conftest.err
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } &&
25851 { ac_try='test -z "$ac_c_werror_flag"
25852 || test ! -s conftest.err'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; } &&
25858 { ac_try='test -s conftest$ac_exeext'
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25864 ac_cv_lib_pth_pth_version=yes
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25869 ac_cv_lib_pth_pth_version=no
25871 rm -f conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
25873 LIBS=$ac_check_lib_save_LIBS
25875 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25876 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25877 if test $ac_cv_lib_pth_pth_version = yes; then
25884 if test $have_pth = yes ; then
25886 cat >>confdefs.h <<\_ACEOF
25887 #define HAVE_GNU_PTH 1
25890 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25891 ol_link_threads=pth
25892 ol_with_threads=found
25894 if test $ol_with_yielding_select = auto ; then
25895 ol_with_yielding_select=yes
25902 case $ol_with_threads in auto | yes | lwp)
25906 for ac_header in thread.h synch.h
25908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25910 echo "$as_me:$LINENO: checking for $ac_header" >&5
25911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25918 # Is the header compilable?
25919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25921 cat >conftest.$ac_ext <<_ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h. */
25927 $ac_includes_default
25928 #include <$ac_header>
25930 rm -f conftest.$ac_objext
25931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25932 (eval $ac_compile) 2>conftest.er1
25934 grep -v '^ *+' conftest.er1 >conftest.err
25936 cat conftest.err >&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } &&
25939 { ac_try='test -z "$ac_c_werror_flag"
25940 || test ! -s conftest.err'
25941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; } &&
25946 { ac_try='test -s conftest.$ac_objext'
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; }; then
25952 ac_header_compiler=yes
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 ac_header_compiler=no
25959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25961 echo "${ECHO_T}$ac_header_compiler" >&6
25963 # Is the header present?
25964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25966 cat >conftest.$ac_ext <<_ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h. */
25972 #include <$ac_header>
25974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25977 grep -v '^ *+' conftest.er1 >conftest.err
25979 cat conftest.err >&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); } >/dev/null; then
25982 if test -s conftest.err; then
25983 ac_cpp_err=$ac_c_preproc_warn_flag
25984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25991 if test -z "$ac_cpp_err"; then
25992 ac_header_preproc=yes
25994 echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25997 ac_header_preproc=no
25999 rm -f conftest.err conftest.$ac_ext
26000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26001 echo "${ECHO_T}$ac_header_preproc" >&6
26003 # So? What about this header?
26004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26010 ac_header_preproc=yes
26013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26027 ## --------------------------------------------- ##
26028 ## Report this to <http://www.openldap.org/its/> ##
26029 ## --------------------------------------------- ##
26032 sed "s/^/$as_me: WARNING: /" >&2
26035 echo "$as_me:$LINENO: checking for $ac_header" >&5
26036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26038 echo $ECHO_N "(cached) $ECHO_C" >&6
26040 eval "$as_ac_Header=\$ac_header_preproc"
26042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26047 cat >>confdefs.h <<_ACEOF
26048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26055 if test $ac_cv_header_thread_h = yes &&
26056 test $ac_cv_header_synch_h = yes ; then
26057 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26058 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26059 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26062 ac_check_lib_save_LIBS=$LIBS
26063 LIBS="-lthread $LIBS"
26064 cat >conftest.$ac_ext <<_ACEOF
26067 cat confdefs.h >>conftest.$ac_ext
26068 cat >>conftest.$ac_ext <<_ACEOF
26069 /* end confdefs.h. */
26071 /* Override any gcc2 internal prototype to avoid an error. */
26075 /* We use char because int might match the return type of a gcc2
26076 builtin and then its argument prototype would still apply. */
26077 char thr_create ();
26086 rm -f conftest.$ac_objext conftest$ac_exeext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26088 (eval $ac_link) 2>conftest.er1
26090 grep -v '^ *+' conftest.er1 >conftest.err
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } &&
26095 { ac_try='test -z "$ac_c_werror_flag"
26096 || test ! -s conftest.err'
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; } &&
26102 { ac_try='test -s conftest$ac_exeext'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 ac_cv_lib_thread_thr_create=yes
26110 echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26113 ac_cv_lib_thread_thr_create=no
26115 rm -f conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
26117 LIBS=$ac_check_lib_save_LIBS
26119 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26120 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26121 if test $ac_cv_lib_thread_thr_create = yes; then
26128 if test $have_thr = yes ; then
26130 cat >>confdefs.h <<\_ACEOF
26134 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26135 ol_link_threads=thr
26137 if test $ol_with_yielding_select = auto ; then
26138 ol_with_yielding_select=yes
26144 thr_setconcurrency \
26145 thr_getconcurrency \
26148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26149 echo "$as_me:$LINENO: checking for $ac_func" >&5
26150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26151 if eval "test \"\${$as_ac_var+set}\" = set"; then
26152 echo $ECHO_N "(cached) $ECHO_C" >&6
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26162 #define $ac_func innocuous_$ac_func
26164 /* System header to define __stub macros and hopefully few prototypes,
26165 which can conflict with char $ac_func (); below.
26166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26167 <limits.h> exists even on freestanding compilers. */
26170 # include <limits.h>
26172 # include <assert.h>
26177 /* Override any gcc2 internal prototype to avoid an error. */
26182 /* We use char because int might match the return type of a gcc2
26183 builtin and then its argument prototype would still apply. */
26185 /* The GNU C library defines this for functions which it implements
26186 to always fail with ENOSYS. Some functions are actually named
26187 something starting with __ and the normal name is an alias. */
26188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26191 char (*f) () = $ac_func;
26200 return f != $ac_func;
26205 rm -f conftest.$ac_objext conftest$ac_exeext
26206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26207 (eval $ac_link) 2>conftest.er1
26209 grep -v '^ *+' conftest.er1 >conftest.err
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } &&
26214 { ac_try='test -z "$ac_c_werror_flag"
26215 || test ! -s conftest.err'
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; } &&
26221 { ac_try='test -s conftest$ac_exeext'
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; }; then
26227 eval "$as_ac_var=yes"
26229 echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26232 eval "$as_ac_var=no"
26234 rm -f conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
26237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26239 if test `eval echo '${'$as_ac_var'}'` = yes; then
26240 cat >>confdefs.h <<_ACEOF
26241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26251 for ac_header in lwp/lwp.h
26253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26255 echo "$as_me:$LINENO: checking for $ac_header" >&5
26256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26258 echo $ECHO_N "(cached) $ECHO_C" >&6
26260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26263 # Is the header compilable?
26264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26266 cat >conftest.$ac_ext <<_ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h. */
26272 $ac_includes_default
26273 #include <$ac_header>
26275 rm -f conftest.$ac_objext
26276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26277 (eval $ac_compile) 2>conftest.er1
26279 grep -v '^ *+' conftest.er1 >conftest.err
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } &&
26284 { ac_try='test -z "$ac_c_werror_flag"
26285 || test ! -s conftest.err'
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; } &&
26291 { ac_try='test -s conftest.$ac_objext'
26292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293 (eval $ac_try) 2>&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); }; }; then
26297 ac_header_compiler=yes
26299 echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26302 ac_header_compiler=no
26304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26306 echo "${ECHO_T}$ac_header_compiler" >&6
26308 # Is the header present?
26309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26311 cat >conftest.$ac_ext <<_ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26317 #include <$ac_header>
26319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26322 grep -v '^ *+' conftest.er1 >conftest.err
26324 cat conftest.err >&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } >/dev/null; then
26327 if test -s conftest.err; then
26328 ac_cpp_err=$ac_c_preproc_warn_flag
26329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26336 if test -z "$ac_cpp_err"; then
26337 ac_header_preproc=yes
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ac_header_preproc=no
26344 rm -f conftest.err conftest.$ac_ext
26345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26346 echo "${ECHO_T}$ac_header_preproc" >&6
26348 # So? What about this header?
26349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26355 ac_header_preproc=yes
26358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26372 ## --------------------------------------------- ##
26373 ## Report this to <http://www.openldap.org/its/> ##
26374 ## --------------------------------------------- ##
26377 sed "s/^/$as_me: WARNING: /" >&2
26380 echo "$as_me:$LINENO: checking for $ac_header" >&5
26381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26383 echo $ECHO_N "(cached) $ECHO_C" >&6
26385 eval "$as_ac_Header=\$ac_header_preproc"
26387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26392 cat >>confdefs.h <<_ACEOF
26393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26400 if test $ac_cv_header_lwp_lwp_h = yes ; then
26401 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26402 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26403 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26404 echo $ECHO_N "(cached) $ECHO_C" >&6
26406 ac_check_lib_save_LIBS=$LIBS
26408 cat >conftest.$ac_ext <<_ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26415 /* Override any gcc2 internal prototype to avoid an error. */
26419 /* We use char because int might match the return type of a gcc2
26420 builtin and then its argument prototype would still apply. */
26421 char lwp_create ();
26430 rm -f conftest.$ac_objext conftest$ac_exeext
26431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26432 (eval $ac_link) 2>conftest.er1
26434 grep -v '^ *+' conftest.er1 >conftest.err
26436 cat conftest.err >&5
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); } &&
26439 { ac_try='test -z "$ac_c_werror_flag"
26440 || test ! -s conftest.err'
26441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442 (eval $ac_try) 2>&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); }; } &&
26446 { ac_try='test -s conftest$ac_exeext'
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; }; then
26452 ac_cv_lib_lwp_lwp_create=yes
26454 echo "$as_me: failed program was:" >&5
26455 sed 's/^/| /' conftest.$ac_ext >&5
26457 ac_cv_lib_lwp_lwp_create=no
26459 rm -f conftest.err conftest.$ac_objext \
26460 conftest$ac_exeext conftest.$ac_ext
26461 LIBS=$ac_check_lib_save_LIBS
26463 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26464 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26465 if test $ac_cv_lib_lwp_lwp_create = yes; then
26472 if test $have_lwp = yes ; then
26474 cat >>confdefs.h <<\_ACEOF
26478 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26479 ol_link_threads=lwp
26481 if test $ol_with_yielding_select = auto ; then
26482 ol_with_yielding_select=no
26489 if test $ol_with_yielding_select = yes ; then
26491 cat >>confdefs.h <<\_ACEOF
26492 #define HAVE_YIELDING_SELECT 1
26497 if test $ol_with_threads = manual ; then
26498 ol_link_threads=yes
26500 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26501 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26505 for ac_header in pthread.h sched.h
26507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509 echo "$as_me:$LINENO: checking for $ac_header" >&5
26510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26517 # Is the header compilable?
26518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26526 $ac_includes_default
26527 #include <$ac_header>
26529 rm -f conftest.$ac_objext
26530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26531 (eval $ac_compile) 2>conftest.er1
26533 grep -v '^ *+' conftest.er1 >conftest.err
26535 cat conftest.err >&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } &&
26538 { ac_try='test -z "$ac_c_werror_flag"
26539 || test ! -s conftest.err'
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; } &&
26545 { ac_try='test -s conftest.$ac_objext'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; }; then
26551 ac_header_compiler=yes
26553 echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.$ac_ext >&5
26556 ac_header_compiler=no
26558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26560 echo "${ECHO_T}$ac_header_compiler" >&6
26562 # Is the header present?
26563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 #include <$ac_header>
26573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26576 grep -v '^ *+' conftest.er1 >conftest.err
26578 cat conftest.err >&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } >/dev/null; then
26581 if test -s conftest.err; then
26582 ac_cpp_err=$ac_c_preproc_warn_flag
26583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26590 if test -z "$ac_cpp_err"; then
26591 ac_header_preproc=yes
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26596 ac_header_preproc=no
26598 rm -f conftest.err conftest.$ac_ext
26599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26600 echo "${ECHO_T}$ac_header_preproc" >&6
26602 # So? What about this header?
26603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26609 ac_header_preproc=yes
26612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26626 ## --------------------------------------------- ##
26627 ## Report this to <http://www.openldap.org/its/> ##
26628 ## --------------------------------------------- ##
26631 sed "s/^/$as_me: WARNING: /" >&2
26634 echo "$as_me:$LINENO: checking for $ac_header" >&5
26635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26637 echo $ECHO_N "(cached) $ECHO_C" >&6
26639 eval "$as_ac_Header=\$ac_header_preproc"
26641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26646 cat >>confdefs.h <<_ACEOF
26647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26656 for ac_func in sched_yield pthread_yield
26658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26659 echo "$as_me:$LINENO: checking for $ac_func" >&5
26660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26661 if eval "test \"\${$as_ac_var+set}\" = set"; then
26662 echo $ECHO_N "(cached) $ECHO_C" >&6
26664 cat >conftest.$ac_ext <<_ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26672 #define $ac_func innocuous_$ac_func
26674 /* System header to define __stub macros and hopefully few prototypes,
26675 which can conflict with char $ac_func (); below.
26676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26677 <limits.h> exists even on freestanding compilers. */
26680 # include <limits.h>
26682 # include <assert.h>
26687 /* Override any gcc2 internal prototype to avoid an error. */
26692 /* We use char because int might match the return type of a gcc2
26693 builtin and then its argument prototype would still apply. */
26695 /* The GNU C library defines this for functions which it implements
26696 to always fail with ENOSYS. Some functions are actually named
26697 something starting with __ and the normal name is an alias. */
26698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26701 char (*f) () = $ac_func;
26710 return f != $ac_func;
26715 rm -f conftest.$ac_objext conftest$ac_exeext
26716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26717 (eval $ac_link) 2>conftest.er1
26719 grep -v '^ *+' conftest.er1 >conftest.err
26721 cat conftest.err >&5
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); } &&
26724 { ac_try='test -z "$ac_c_werror_flag"
26725 || test ! -s conftest.err'
26726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727 (eval $ac_try) 2>&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; } &&
26731 { ac_try='test -s conftest$ac_exeext'
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; }; then
26737 eval "$as_ac_var=yes"
26739 echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26742 eval "$as_ac_var=no"
26744 rm -f conftest.err conftest.$ac_objext \
26745 conftest$ac_exeext conftest.$ac_ext
26747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26749 if test `eval echo '${'$as_ac_var'}'` = yes; then
26750 cat >>confdefs.h <<_ACEOF
26751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26758 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26759 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26760 if test "${ol_cv_header_linux_threads+set}" = set; then
26761 echo $ECHO_N "(cached) $ECHO_C" >&6
26763 cat >conftest.$ac_ext <<_ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h. */
26769 #include <pthread.h>
26771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26772 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26773 ol_cv_header_linux_threads=yes
26775 ol_cv_header_linux_threads=no
26781 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26782 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26783 if test $ol_cv_header_linux_threads = yes; then
26785 cat >>confdefs.h <<\_ACEOF
26786 #define HAVE_LINUX_THREADS 1
26793 for ac_header in mach/cthreads.h
26795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26797 echo "$as_me:$LINENO: checking for $ac_header" >&5
26798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26800 echo $ECHO_N "(cached) $ECHO_C" >&6
26802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26805 # Is the header compilable?
26806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26808 cat >conftest.$ac_ext <<_ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h. */
26814 $ac_includes_default
26815 #include <$ac_header>
26817 rm -f conftest.$ac_objext
26818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26819 (eval $ac_compile) 2>conftest.er1
26821 grep -v '^ *+' conftest.er1 >conftest.err
26823 cat conftest.err >&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); } &&
26826 { ac_try='test -z "$ac_c_werror_flag"
26827 || test ! -s conftest.err'
26828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26829 (eval $ac_try) 2>&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); }; } &&
26833 { ac_try='test -s conftest.$ac_objext'
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 ac_header_compiler=yes
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26844 ac_header_compiler=no
26846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26848 echo "${ECHO_T}$ac_header_compiler" >&6
26850 # Is the header present?
26851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26859 #include <$ac_header>
26861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26864 grep -v '^ *+' conftest.er1 >conftest.err
26866 cat conftest.err >&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); } >/dev/null; then
26869 if test -s conftest.err; then
26870 ac_cpp_err=$ac_c_preproc_warn_flag
26871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26878 if test -z "$ac_cpp_err"; then
26879 ac_header_preproc=yes
26881 echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26884 ac_header_preproc=no
26886 rm -f conftest.err conftest.$ac_ext
26887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26888 echo "${ECHO_T}$ac_header_preproc" >&6
26890 # So? What about this header?
26891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26897 ac_header_preproc=yes
26900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26914 ## --------------------------------------------- ##
26915 ## Report this to <http://www.openldap.org/its/> ##
26916 ## --------------------------------------------- ##
26919 sed "s/^/$as_me: WARNING: /" >&2
26922 echo "$as_me:$LINENO: checking for $ac_header" >&5
26923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26925 echo $ECHO_N "(cached) $ECHO_C" >&6
26927 eval "$as_ac_Header=\$ac_header_preproc"
26929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26934 cat >>confdefs.h <<_ACEOF
26935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26943 for ac_header in lwp/lwp.h
26945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26947 echo "$as_me:$LINENO: checking for $ac_header" >&5
26948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26950 echo $ECHO_N "(cached) $ECHO_C" >&6
26952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26955 # Is the header compilable?
26956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26958 cat >conftest.$ac_ext <<_ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 $ac_includes_default
26965 #include <$ac_header>
26967 rm -f conftest.$ac_objext
26968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26969 (eval $ac_compile) 2>conftest.er1
26971 grep -v '^ *+' conftest.er1 >conftest.err
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } &&
26976 { ac_try='test -z "$ac_c_werror_flag"
26977 || test ! -s conftest.err'
26978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26979 (eval $ac_try) 2>&5
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; } &&
26983 { ac_try='test -s conftest.$ac_objext'
26984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985 (eval $ac_try) 2>&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); }; }; then
26989 ac_header_compiler=yes
26991 echo "$as_me: failed program was:" >&5
26992 sed 's/^/| /' conftest.$ac_ext >&5
26994 ac_header_compiler=no
26996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26998 echo "${ECHO_T}$ac_header_compiler" >&6
27000 # Is the header present?
27001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 #include <$ac_header>
27011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27014 grep -v '^ *+' conftest.er1 >conftest.err
27016 cat conftest.err >&5
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } >/dev/null; then
27019 if test -s conftest.err; then
27020 ac_cpp_err=$ac_c_preproc_warn_flag
27021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27028 if test -z "$ac_cpp_err"; then
27029 ac_header_preproc=yes
27031 echo "$as_me: failed program was:" >&5
27032 sed 's/^/| /' conftest.$ac_ext >&5
27034 ac_header_preproc=no
27036 rm -f conftest.err conftest.$ac_ext
27037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27038 echo "${ECHO_T}$ac_header_preproc" >&6
27040 # So? What about this header?
27041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27047 ac_header_preproc=yes
27050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27064 ## --------------------------------------------- ##
27065 ## Report this to <http://www.openldap.org/its/> ##
27066 ## --------------------------------------------- ##
27069 sed "s/^/$as_me: WARNING: /" >&2
27072 echo "$as_me:$LINENO: checking for $ac_header" >&5
27073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27077 eval "$as_ac_Header=\$ac_header_preproc"
27079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27084 cat >>confdefs.h <<_ACEOF
27085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27094 for ac_header in thread.h synch.h
27096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27098 echo "$as_me:$LINENO: checking for $ac_header" >&5
27099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27106 # Is the header compilable?
27107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27109 cat >conftest.$ac_ext <<_ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27115 $ac_includes_default
27116 #include <$ac_header>
27118 rm -f conftest.$ac_objext
27119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27120 (eval $ac_compile) 2>conftest.er1
27122 grep -v '^ *+' conftest.er1 >conftest.err
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } &&
27127 { ac_try='test -z "$ac_c_werror_flag"
27128 || test ! -s conftest.err'
27129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130 (eval $ac_try) 2>&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; } &&
27134 { ac_try='test -s conftest.$ac_objext'
27135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27136 (eval $ac_try) 2>&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; }; then
27140 ac_header_compiler=yes
27142 echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27145 ac_header_compiler=no
27147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27149 echo "${ECHO_T}$ac_header_compiler" >&6
27151 # Is the header present?
27152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27154 cat >conftest.$ac_ext <<_ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27160 #include <$ac_header>
27162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27165 grep -v '^ *+' conftest.er1 >conftest.err
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } >/dev/null; then
27170 if test -s conftest.err; then
27171 ac_cpp_err=$ac_c_preproc_warn_flag
27172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27179 if test -z "$ac_cpp_err"; then
27180 ac_header_preproc=yes
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 ac_header_preproc=no
27187 rm -f conftest.err conftest.$ac_ext
27188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27189 echo "${ECHO_T}$ac_header_preproc" >&6
27191 # So? What about this header?
27192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27198 ac_header_preproc=yes
27201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27215 ## --------------------------------------------- ##
27216 ## Report this to <http://www.openldap.org/its/> ##
27217 ## --------------------------------------------- ##
27220 sed "s/^/$as_me: WARNING: /" >&2
27223 echo "$as_me:$LINENO: checking for $ac_header" >&5
27224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27228 eval "$as_ac_Header=\$ac_header_preproc"
27230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27235 cat >>confdefs.h <<_ACEOF
27236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27245 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27246 cat >>confdefs.h <<\_ACEOF
27247 #define REENTRANT 1
27250 cat >>confdefs.h <<\_ACEOF
27251 #define _REENTRANT 1
27254 cat >>confdefs.h <<\_ACEOF
27255 #define THREAD_SAFE 1
27258 cat >>confdefs.h <<\_ACEOF
27259 #define _THREAD_SAFE 1
27262 cat >>confdefs.h <<\_ACEOF
27263 #define THREADSAFE 1
27266 cat >>confdefs.h <<\_ACEOF
27267 #define _THREADSAFE 1
27270 cat >>confdefs.h <<\_ACEOF
27271 #define _SGI_MP_SOURCE 1
27275 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27276 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27277 if test "${ol_cv_errno_thread_specific+set}" = set; then
27278 echo $ECHO_N "(cached) $ECHO_C" >&6
27281 cat >conftest.$ac_ext <<_ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h. */
27296 rm -f conftest.$ac_objext conftest$ac_exeext
27297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27298 (eval $ac_link) 2>conftest.er1
27300 grep -v '^ *+' conftest.er1 >conftest.err
27302 cat conftest.err >&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } &&
27305 { ac_try='test -z "$ac_c_werror_flag"
27306 || test ! -s conftest.err'
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; } &&
27312 { ac_try='test -s conftest$ac_exeext'
27313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314 (eval $ac_try) 2>&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; }; then
27318 ol_cv_errno_thread_specific=yes
27320 echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27323 ol_cv_errno_thread_specific=no
27325 rm -f conftest.err conftest.$ac_objext \
27326 conftest$ac_exeext conftest.$ac_ext
27329 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27330 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27332 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27333 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27334 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27338 cat >conftest.$ac_ext <<_ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27353 rm -f conftest.$ac_objext conftest$ac_exeext
27354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27355 (eval $ac_link) 2>conftest.er1
27357 grep -v '^ *+' conftest.er1 >conftest.err
27359 cat conftest.err >&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } &&
27362 { ac_try='test -z "$ac_c_werror_flag"
27363 || test ! -s conftest.err'
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; } &&
27369 { ac_try='test -s conftest$ac_exeext'
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ol_cv_h_errno_thread_specific=yes
27377 echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27380 ol_cv_h_errno_thread_specific=no
27382 rm -f conftest.err conftest.$ac_objext \
27383 conftest$ac_exeext conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27387 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27389 if test $ol_cv_errno_thread_specific != yes ||
27390 test $ol_cv_h_errno_thread_specific != yes ; then
27391 LIBS="$LTHREAD_LIBS $LIBS"
27397 if test $ol_link_threads = no ; then
27398 if test $ol_with_threads = yes ; then
27399 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27400 echo "$as_me: error: no suitable thread support" >&2;}
27401 { (exit 1); exit 1; }; }
27404 if test $ol_with_threads = auto ; then
27405 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27406 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27411 cat >>confdefs.h <<\_ACEOF
27412 #define NO_THREADS 1
27421 if test $ol_link_threads != no ; then
27423 cat >>confdefs.h <<\_ACEOF
27424 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27434 gethostbyname_r gethostbyaddr_r \
27437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27438 echo "$as_me:$LINENO: checking for $ac_func" >&5
27439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27440 if eval "test \"\${$as_ac_var+set}\" = set"; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27451 #define $ac_func innocuous_$ac_func
27453 /* System header to define __stub macros and hopefully few prototypes,
27454 which can conflict with char $ac_func (); below.
27455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27456 <limits.h> exists even on freestanding compilers. */
27459 # include <limits.h>
27461 # include <assert.h>
27466 /* Override any gcc2 internal prototype to avoid an error. */
27471 /* We use char because int might match the return type of a gcc2
27472 builtin and then its argument prototype would still apply. */
27474 /* The GNU C library defines this for functions which it implements
27475 to always fail with ENOSYS. Some functions are actually named
27476 something starting with __ and the normal name is an alias. */
27477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27480 char (*f) () = $ac_func;
27489 return f != $ac_func;
27494 rm -f conftest.$ac_objext conftest$ac_exeext
27495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27496 (eval $ac_link) 2>conftest.er1
27498 grep -v '^ *+' conftest.er1 >conftest.err
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } &&
27503 { ac_try='test -z "$ac_c_werror_flag"
27504 || test ! -s conftest.err'
27505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506 (eval $ac_try) 2>&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; } &&
27510 { ac_try='test -s conftest$ac_exeext'
27511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27512 (eval $ac_try) 2>&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); }; }; then
27516 eval "$as_ac_var=yes"
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27521 eval "$as_ac_var=no"
27523 rm -f conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
27526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27528 if test `eval echo '${'$as_ac_var'}'` = yes; then
27529 cat >>confdefs.h <<_ACEOF
27530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27537 if test "$ac_cv_func_ctime_r" = no ; then
27538 ol_cv_func_ctime_r_nargs=0
27540 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27541 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27542 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27543 echo $ECHO_N "(cached) $ECHO_C" >&6
27545 cat >conftest.$ac_ext <<_ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27555 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27560 rm -f conftest.$ac_objext
27561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27562 (eval $ac_compile) 2>conftest.er1
27564 grep -v '^ *+' conftest.er1 >conftest.err
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } &&
27569 { ac_try='test -z "$ac_c_werror_flag"
27570 || test ! -s conftest.err'
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest.$ac_objext'
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ol_cv_func_ctime_r_nargs3=yes
27584 echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27587 ol_cv_func_ctime_r_nargs3=no
27589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27591 cat >conftest.$ac_ext <<_ACEOF
27594 cat confdefs.h >>conftest.$ac_ext
27595 cat >>conftest.$ac_ext <<_ACEOF
27596 /* end confdefs.h. */
27601 time_t ti; char *buffer; ctime_r(&ti,buffer);
27606 rm -f conftest.$ac_objext
27607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27608 (eval $ac_compile) 2>conftest.er1
27610 grep -v '^ *+' conftest.er1 >conftest.err
27612 cat conftest.err >&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); } &&
27615 { ac_try='test -z "$ac_c_werror_flag"
27616 || test ! -s conftest.err'
27617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618 (eval $ac_try) 2>&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; } &&
27622 { ac_try='test -s conftest.$ac_objext'
27623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624 (eval $ac_try) 2>&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); }; }; then
27628 ol_cv_func_ctime_r_nargs2=yes
27630 echo "$as_me: failed program was:" >&5
27631 sed 's/^/| /' conftest.$ac_ext >&5
27633 ol_cv_func_ctime_r_nargs2=no
27635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27637 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27638 test $ol_cv_func_ctime_r_nargs2 = no ; then
27640 ol_cv_func_ctime_r_nargs=3
27642 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27643 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27645 ol_cv_func_ctime_r_nargs=2
27648 ol_cv_func_ctime_r_nargs=0
27652 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27653 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27655 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27657 cat >>confdefs.h <<_ACEOF
27658 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27665 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27666 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27667 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27668 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27669 echo $ECHO_N "(cached) $ECHO_C" >&6
27671 cat >conftest.$ac_ext <<_ACEOF
27674 cat confdefs.h >>conftest.$ac_ext
27675 cat >>conftest.$ac_ext <<_ACEOF
27676 /* end confdefs.h. */
27677 #include <sys/types.h>
27678 #include <sys/socket.h>
27679 #include <netinet/in.h>
27681 #define BUFSIZE (sizeof(struct hostent)+10)
27685 struct hostent hent; char buffer[BUFSIZE];
27686 int bufsize=BUFSIZE;int h_errno;
27687 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27688 buffer, bufsize, &h_errno);
27693 rm -f conftest.$ac_objext
27694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27695 (eval $ac_compile) 2>conftest.er1
27697 grep -v '^ *+' conftest.er1 >conftest.err
27699 cat conftest.err >&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); } &&
27702 { ac_try='test -z "$ac_c_werror_flag"
27703 || test ! -s conftest.err'
27704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705 (eval $ac_try) 2>&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; } &&
27709 { ac_try='test -s conftest.$ac_objext'
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; }; then
27715 ol_cv_func_gethostbyname_r_nargs5=yes
27717 echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27720 ol_cv_func_gethostbyname_r_nargs5=no
27722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27724 cat >conftest.$ac_ext <<_ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27730 #include <sys/types.h>
27731 #include <sys/socket.h>
27732 #include <netinet/in.h>
27734 #define BUFSIZE (sizeof(struct hostent)+10)
27738 struct hostent hent;struct hostent *rhent;
27739 char buffer[BUFSIZE];
27740 int bufsize=BUFSIZE;int h_errno;
27741 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27747 rm -f conftest.$ac_objext
27748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27749 (eval $ac_compile) 2>conftest.er1
27751 grep -v '^ *+' conftest.er1 >conftest.err
27753 cat conftest.err >&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
27756 { ac_try='test -z "$ac_c_werror_flag"
27757 || test ! -s conftest.err'
27758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27759 (eval $ac_try) 2>&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest.$ac_objext'
27764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765 (eval $ac_try) 2>&5
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); }; }; then
27769 ol_cv_func_gethostbyname_r_nargs6=yes
27771 echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27774 ol_cv_func_gethostbyname_r_nargs6=no
27776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27778 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27779 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27781 ol_cv_func_gethostbyname_r_nargs=5
27783 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27784 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27786 ol_cv_func_gethostbyname_r_nargs=6
27789 ol_cv_func_gethostbyname_r_nargs=0
27793 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27794 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27795 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27797 cat >>confdefs.h <<_ACEOF
27798 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27804 ol_cv_func_gethostbyname_r_nargs=0
27807 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27808 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27809 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27810 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27811 echo $ECHO_N "(cached) $ECHO_C" >&6
27813 cat >conftest.$ac_ext <<_ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h. */
27819 #include <sys/types.h>
27820 #include <sys/socket.h>
27821 #include <netinet/in.h>
27823 #define BUFSIZE (sizeof(struct hostent)+10)
27827 struct hostent hent; char buffer[BUFSIZE];
27828 struct in_addr add;
27829 size_t alen=sizeof(struct in_addr);
27830 int bufsize=BUFSIZE;int h_errno;
27831 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27832 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27837 rm -f conftest.$ac_objext
27838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27839 (eval $ac_compile) 2>conftest.er1
27841 grep -v '^ *+' conftest.er1 >conftest.err
27843 cat conftest.err >&5
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); } &&
27846 { ac_try='test -z "$ac_c_werror_flag"
27847 || test ! -s conftest.err'
27848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27849 (eval $ac_try) 2>&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); }; } &&
27853 { ac_try='test -s conftest.$ac_objext'
27854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27855 (eval $ac_try) 2>&5
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); }; }; then
27859 ol_cv_func_gethostbyaddr_r_nargs7=yes
27861 echo "$as_me: failed program was:" >&5
27862 sed 's/^/| /' conftest.$ac_ext >&5
27864 ol_cv_func_gethostbyaddr_r_nargs7=no
27866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27868 cat >conftest.$ac_ext <<_ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h. */
27874 #include <sys/types.h>
27875 #include <sys/socket.h>
27876 #include <netinet/in.h>
27878 #define BUFSIZE (sizeof(struct hostent)+10)
27882 struct hostent hent;
27883 struct hostent *rhent; char buffer[BUFSIZE];
27884 struct in_addr add;
27885 size_t alen=sizeof(struct in_addr);
27886 int bufsize=BUFSIZE;int h_errno;
27887 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27888 alen, AF_INET, &hent, buffer, bufsize,
27894 rm -f conftest.$ac_objext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27896 (eval $ac_compile) 2>conftest.er1
27898 grep -v '^ *+' conftest.er1 >conftest.err
27900 cat conftest.err >&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } &&
27903 { ac_try='test -z "$ac_c_werror_flag"
27904 || test ! -s conftest.err'
27905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906 (eval $ac_try) 2>&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); }; } &&
27910 { ac_try='test -s conftest.$ac_objext'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
27916 ol_cv_func_gethostbyaddr_r_nargs8=yes
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27921 ol_cv_func_gethostbyaddr_r_nargs8=no
27923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27925 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27926 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27928 ol_cv_func_gethostbyaddr_r_nargs=7
27930 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27931 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27933 ol_cv_func_gethostbyaddr_r_nargs=8
27936 ol_cv_func_gethostbyaddr_r_nargs=0
27940 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27941 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27942 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27944 cat >>confdefs.h <<_ACEOF
27945 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27951 ol_cv_func_gethostbyaddr_r_nargs=0
27956 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27957 ol_cv_berkeley_db=no
27959 for ac_header in db.h
27961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27963 echo "$as_me:$LINENO: checking for $ac_header" >&5
27964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27966 echo $ECHO_N "(cached) $ECHO_C" >&6
27968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27971 # Is the header compilable?
27972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 $ac_includes_default
27981 #include <$ac_header>
27983 rm -f conftest.$ac_objext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27985 (eval $ac_compile) 2>conftest.er1
27987 grep -v '^ *+' conftest.er1 >conftest.err
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } &&
27992 { ac_try='test -z "$ac_c_werror_flag"
27993 || test ! -s conftest.err'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; } &&
27999 { ac_try='test -s conftest.$ac_objext'
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 ac_header_compiler=yes
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 ac_header_compiler=no
28012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28014 echo "${ECHO_T}$ac_header_compiler" >&6
28016 # Is the header present?
28017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28019 cat >conftest.$ac_ext <<_ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28025 #include <$ac_header>
28027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28030 grep -v '^ *+' conftest.er1 >conftest.err
28032 cat conftest.err >&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); } >/dev/null; then
28035 if test -s conftest.err; then
28036 ac_cpp_err=$ac_c_preproc_warn_flag
28037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28044 if test -z "$ac_cpp_err"; then
28045 ac_header_preproc=yes
28047 echo "$as_me: failed program was:" >&5
28048 sed 's/^/| /' conftest.$ac_ext >&5
28050 ac_header_preproc=no
28052 rm -f conftest.err conftest.$ac_ext
28053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28054 echo "${ECHO_T}$ac_header_preproc" >&6
28056 # So? What about this header?
28057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28063 ac_header_preproc=yes
28066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28080 ## --------------------------------------------- ##
28081 ## Report this to <http://www.openldap.org/its/> ##
28082 ## --------------------------------------------- ##
28085 sed "s/^/$as_me: WARNING: /" >&2
28088 echo "$as_me:$LINENO: checking for $ac_header" >&5
28089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28093 eval "$as_ac_Header=\$ac_header_preproc"
28095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28100 cat >>confdefs.h <<_ACEOF
28101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28108 if test $ac_cv_header_db_h = yes; then
28111 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28112 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28113 if test "${ol_cv_bdb_major+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28118 if test $ol_cv_bdb_major = 0 ; then
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28127 #ifndef DB_VERSION_MAJOR
28128 # define DB_VERSION_MAJOR 1
28130 #if DB_VERSION_MAJOR == 4
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136 $EGREP "__db_version" >/dev/null 2>&1; then
28144 if test $ol_cv_bdb_major = 0 ; then
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28156 #if DB_VERSION_MAJOR == 3
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162 $EGREP "__db_version" >/dev/null 2>&1; then
28170 if test $ol_cv_bdb_major = 0 ; then
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28179 #ifndef DB_VERSION_MAJOR
28180 # define DB_VERSION_MAJOR 1
28182 #if DB_VERSION_MAJOR == 2
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188 $EGREP "__db_version" >/dev/null 2>&1; then
28196 if test $ol_cv_bdb_major = 0 ; then
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28205 #ifndef DB_VERSION_MAJOR
28206 # define DB_VERSION_MAJOR 1
28208 #if DB_VERSION_MAJOR == 1
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214 $EGREP "__db_version" >/dev/null 2>&1; then
28223 if test $ol_cv_bdb_major = 0 ; then
28224 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28225 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28226 { (exit 1); exit 1; }; }
28230 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28231 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28233 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28234 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28235 if test "${ol_cv_bdb_minor+set}" = set; then
28236 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 if test $ol_cv_bdb_minor = 0 ; then
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28249 #ifndef DB_VERSION_MINOR
28250 # define DB_VERSION_MINOR 0
28252 #if DB_VERSION_MINOR == 9
28257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28258 $EGREP "__db_version" >/dev/null 2>&1; then
28266 if test $ol_cv_bdb_minor = 0 ; then
28267 cat >conftest.$ac_ext <<_ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28275 #ifndef DB_VERSION_MINOR
28276 # define DB_VERSION_MINOR 0
28278 #if DB_VERSION_MINOR == 8
28283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28284 $EGREP "__db_version" >/dev/null 2>&1; then
28292 if test $ol_cv_bdb_minor = 0 ; then
28293 cat >conftest.$ac_ext <<_ACEOF
28296 cat confdefs.h >>conftest.$ac_ext
28297 cat >>conftest.$ac_ext <<_ACEOF
28298 /* end confdefs.h. */
28301 #ifndef DB_VERSION_MINOR
28302 # define DB_VERSION_MINOR 0
28304 #if DB_VERSION_MINOR == 7
28309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28310 $EGREP "__db_version" >/dev/null 2>&1; then
28318 if test $ol_cv_bdb_minor = 0 ; then
28319 cat >conftest.$ac_ext <<_ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h. */
28327 #ifndef DB_VERSION_MINOR
28328 # define DB_VERSION_MINOR 0
28330 #if DB_VERSION_MINOR == 6
28335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28336 $EGREP "__db_version" >/dev/null 2>&1; then
28344 if test $ol_cv_bdb_minor = 0 ; then
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28353 #ifndef DB_VERSION_MINOR
28354 # define DB_VERSION_MINOR 0
28356 #if DB_VERSION_MINOR == 5
28361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28362 $EGREP "__db_version" >/dev/null 2>&1; then
28370 if test $ol_cv_bdb_minor = 0 ; then
28371 cat >conftest.$ac_ext <<_ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h. */
28379 #ifndef DB_VERSION_MINOR
28380 # define DB_VERSION_MINOR 0
28382 #if DB_VERSION_MINOR == 4
28387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28388 $EGREP "__db_version" >/dev/null 2>&1; then
28396 if test $ol_cv_bdb_minor = 0 ; then
28397 cat >conftest.$ac_ext <<_ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h. */
28405 #ifndef DB_VERSION_MINOR
28406 # define DB_VERSION_MINOR 0
28408 #if DB_VERSION_MINOR == 3
28413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28414 $EGREP "__db_version" >/dev/null 2>&1; then
28422 if test $ol_cv_bdb_minor = 0 ; then
28423 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28431 #ifndef DB_VERSION_MINOR
28432 # define DB_VERSION_MINOR 0
28434 #if DB_VERSION_MINOR == 2
28439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28440 $EGREP "__db_version" >/dev/null 2>&1; then
28448 if test $ol_cv_bdb_minor = 0 ; then
28449 cat >conftest.$ac_ext <<_ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h. */
28457 #ifndef DB_VERSION_MINOR
28458 # define DB_VERSION_MINOR 0
28460 #if DB_VERSION_MINOR == 1
28465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28466 $EGREP "__db_version" >/dev/null 2>&1; then
28476 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28477 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28479 if test $ol_cv_bdb_major = 4 ; then
28480 if test $ol_cv_bdb_minor = 4 ; then
28481 if test $ol_cv_lib_db = no ; then
28482 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28483 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28484 if test "${ol_cv_db_db44+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28492 cat >conftest.$ac_ext <<_ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h. */
28499 #ifdef HAVE_DB_185_H
28500 # include <db_185.h>
28505 #ifndef DB_VERSION_MAJOR
28506 # define DB_VERSION_MAJOR 1
28510 #define NULL ((void*)0)
28517 #if DB_VERSION_MAJOR > 1
28520 int major, minor, patch;
28522 version = db_version( &major, &minor, &patch );
28524 if( major != DB_VERSION_MAJOR ||
28525 minor < DB_VERSION_MINOR )
28527 printf("Berkeley DB version mismatch\n"
28528 "\theader: %s\n\tlibrary: %s\n",
28529 DB_VERSION_STRING, version);
28535 #if DB_VERSION_MAJOR > 2
28536 db_env_create( NULL, 0 );
28537 #elif DB_VERSION_MAJOR > 1
28538 db_appexit( NULL );
28540 (void) dbopen( NULL, 0, 0, 0, NULL);
28547 rm -f conftest.$ac_objext conftest$ac_exeext
28548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28549 (eval $ac_link) 2>conftest.er1
28551 grep -v '^ *+' conftest.er1 >conftest.err
28553 cat conftest.err >&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); } &&
28556 { ac_try='test -z "$ac_c_werror_flag"
28557 || test ! -s conftest.err'
28558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28559 (eval $ac_try) 2>&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; } &&
28563 { ac_try='test -s conftest$ac_exeext'
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; }; then
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28576 rm -f conftest.err conftest.$ac_objext \
28577 conftest$ac_exeext conftest.$ac_ext
28582 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28583 echo "${ECHO_T}$ol_cv_db_db44" >&6
28585 if test $ol_cv_db_db44 = yes ; then
28586 ol_cv_lib_db=-ldb44
28590 if test $ol_cv_lib_db = no ; then
28591 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28592 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28593 if test "${ol_cv_db_db_44+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28599 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28601 cat >conftest.$ac_ext <<_ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28608 #ifdef HAVE_DB_185_H
28609 # include <db_185.h>
28614 #ifndef DB_VERSION_MAJOR
28615 # define DB_VERSION_MAJOR 1
28619 #define NULL ((void*)0)
28626 #if DB_VERSION_MAJOR > 1
28629 int major, minor, patch;
28631 version = db_version( &major, &minor, &patch );
28633 if( major != DB_VERSION_MAJOR ||
28634 minor < DB_VERSION_MINOR )
28636 printf("Berkeley DB version mismatch\n"
28637 "\theader: %s\n\tlibrary: %s\n",
28638 DB_VERSION_STRING, version);
28644 #if DB_VERSION_MAJOR > 2
28645 db_env_create( NULL, 0 );
28646 #elif DB_VERSION_MAJOR > 1
28647 db_appexit( NULL );
28649 (void) dbopen( NULL, 0, 0, 0, NULL);
28656 rm -f conftest.$ac_objext conftest$ac_exeext
28657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28658 (eval $ac_link) 2>conftest.er1
28660 grep -v '^ *+' conftest.er1 >conftest.err
28662 cat conftest.err >&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -z "$ac_c_werror_flag"
28666 || test ! -s conftest.err'
28667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668 (eval $ac_try) 2>&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; } &&
28672 { ac_try='test -s conftest$ac_exeext'
28673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28674 (eval $ac_try) 2>&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); }; }; then
28680 echo "$as_me: failed program was:" >&5
28681 sed 's/^/| /' conftest.$ac_ext >&5
28685 rm -f conftest.err conftest.$ac_objext \
28686 conftest$ac_exeext conftest.$ac_ext
28691 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28692 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28694 if test $ol_cv_db_db_44 = yes ; then
28695 ol_cv_lib_db=-ldb-44
28699 if test $ol_cv_lib_db = no ; then
28700 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28701 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28702 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28708 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28710 cat >conftest.$ac_ext <<_ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28717 #ifdef HAVE_DB_185_H
28718 # include <db_185.h>
28723 #ifndef DB_VERSION_MAJOR
28724 # define DB_VERSION_MAJOR 1
28728 #define NULL ((void*)0)
28735 #if DB_VERSION_MAJOR > 1
28738 int major, minor, patch;
28740 version = db_version( &major, &minor, &patch );
28742 if( major != DB_VERSION_MAJOR ||
28743 minor < DB_VERSION_MINOR )
28745 printf("Berkeley DB version mismatch\n"
28746 "\theader: %s\n\tlibrary: %s\n",
28747 DB_VERSION_STRING, version);
28753 #if DB_VERSION_MAJOR > 2
28754 db_env_create( NULL, 0 );
28755 #elif DB_VERSION_MAJOR > 1
28756 db_appexit( NULL );
28758 (void) dbopen( NULL, 0, 0, 0, NULL);
28765 rm -f conftest.$ac_objext conftest$ac_exeext
28766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28767 (eval $ac_link) 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
28774 { ac_try='test -z "$ac_c_werror_flag"
28775 || test ! -s conftest.err'
28776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28777 (eval $ac_try) 2>&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); }; } &&
28781 { ac_try='test -s conftest$ac_exeext'
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; }; then
28787 ol_cv_db_db_4_dot_4=yes
28789 echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28792 ol_cv_db_db_4_dot_4=no
28794 rm -f conftest.err conftest.$ac_objext \
28795 conftest$ac_exeext conftest.$ac_ext
28800 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28801 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28803 if test $ol_cv_db_db_4_dot_4 = yes ; then
28804 ol_cv_lib_db=-ldb-4.4
28808 if test $ol_cv_lib_db = no ; then
28809 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28810 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28811 if test "${ol_cv_db_db_4_4+set}" = set; then
28812 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28819 cat >conftest.$ac_ext <<_ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28826 #ifdef HAVE_DB_185_H
28827 # include <db_185.h>
28832 #ifndef DB_VERSION_MAJOR
28833 # define DB_VERSION_MAJOR 1
28837 #define NULL ((void*)0)
28844 #if DB_VERSION_MAJOR > 1
28847 int major, minor, patch;
28849 version = db_version( &major, &minor, &patch );
28851 if( major != DB_VERSION_MAJOR ||
28852 minor < DB_VERSION_MINOR )
28854 printf("Berkeley DB version mismatch\n"
28855 "\theader: %s\n\tlibrary: %s\n",
28856 DB_VERSION_STRING, version);
28862 #if DB_VERSION_MAJOR > 2
28863 db_env_create( NULL, 0 );
28864 #elif DB_VERSION_MAJOR > 1
28865 db_appexit( NULL );
28867 (void) dbopen( NULL, 0, 0, 0, NULL);
28874 rm -f conftest.$ac_objext conftest$ac_exeext
28875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28876 (eval $ac_link) 2>conftest.er1
28878 grep -v '^ *+' conftest.er1 >conftest.err
28880 cat conftest.err >&5
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); } &&
28883 { ac_try='test -z "$ac_c_werror_flag"
28884 || test ! -s conftest.err'
28885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886 (eval $ac_try) 2>&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try='test -s conftest$ac_exeext'
28891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28892 (eval $ac_try) 2>&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; }; then
28896 ol_cv_db_db_4_4=yes
28898 echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28903 rm -f conftest.err conftest.$ac_objext \
28904 conftest$ac_exeext conftest.$ac_ext
28909 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28910 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28912 if test $ol_cv_db_db_4_4 = yes ; then
28913 ol_cv_lib_db=-ldb-4-4
28917 elif test $ol_cv_bdb_minor = 3 ; then
28918 if test $ol_cv_lib_db = no ; then
28919 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28920 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28921 if test "${ol_cv_db_db43+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28927 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28929 cat >conftest.$ac_ext <<_ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28936 #ifdef HAVE_DB_185_H
28937 # include <db_185.h>
28942 #ifndef DB_VERSION_MAJOR
28943 # define DB_VERSION_MAJOR 1
28947 #define NULL ((void*)0)
28954 #if DB_VERSION_MAJOR > 1
28957 int major, minor, patch;
28959 version = db_version( &major, &minor, &patch );
28961 if( major != DB_VERSION_MAJOR ||
28962 minor < DB_VERSION_MINOR )
28964 printf("Berkeley DB version mismatch\n"
28965 "\theader: %s\n\tlibrary: %s\n",
28966 DB_VERSION_STRING, version);
28972 #if DB_VERSION_MAJOR > 2
28973 db_env_create( NULL, 0 );
28974 #elif DB_VERSION_MAJOR > 1
28975 db_appexit( NULL );
28977 (void) dbopen( NULL, 0, 0, 0, NULL);
28984 rm -f conftest.$ac_objext conftest$ac_exeext
28985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28986 (eval $ac_link) 2>conftest.er1
28988 grep -v '^ *+' conftest.er1 >conftest.err
28990 cat conftest.err >&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } &&
28993 { ac_try='test -z "$ac_c_werror_flag"
28994 || test ! -s conftest.err'
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; } &&
29000 { ac_try='test -s conftest$ac_exeext'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; }; then
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29013 rm -f conftest.err conftest.$ac_objext \
29014 conftest$ac_exeext conftest.$ac_ext
29019 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29020 echo "${ECHO_T}$ol_cv_db_db43" >&6
29022 if test $ol_cv_db_db43 = yes ; then
29023 ol_cv_lib_db=-ldb43
29027 if test $ol_cv_lib_db = no ; then
29028 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29029 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29030 if test "${ol_cv_db_db_43+set}" = set; then
29031 echo $ECHO_N "(cached) $ECHO_C" >&6
29036 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29045 #ifdef HAVE_DB_185_H
29046 # include <db_185.h>
29051 #ifndef DB_VERSION_MAJOR
29052 # define DB_VERSION_MAJOR 1
29056 #define NULL ((void*)0)
29063 #if DB_VERSION_MAJOR > 1
29066 int major, minor, patch;
29068 version = db_version( &major, &minor, &patch );
29070 if( major != DB_VERSION_MAJOR ||
29071 minor < DB_VERSION_MINOR )
29073 printf("Berkeley DB version mismatch\n"
29074 "\theader: %s\n\tlibrary: %s\n",
29075 DB_VERSION_STRING, version);
29081 #if DB_VERSION_MAJOR > 2
29082 db_env_create( NULL, 0 );
29083 #elif DB_VERSION_MAJOR > 1
29084 db_appexit( NULL );
29086 (void) dbopen( NULL, 0, 0, 0, NULL);
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095 (eval $ac_link) 2>conftest.er1
29097 grep -v '^ *+' conftest.er1 >conftest.err
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } &&
29102 { ac_try='test -z "$ac_c_werror_flag"
29103 || test ! -s conftest.err'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest$ac_exeext'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29122 rm -f conftest.err conftest.$ac_objext \
29123 conftest$ac_exeext conftest.$ac_ext
29128 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29129 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29131 if test $ol_cv_db_db_43 = yes ; then
29132 ol_cv_lib_db=-ldb-43
29136 if test $ol_cv_lib_db = no ; then
29137 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29138 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29139 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29145 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29147 cat >conftest.$ac_ext <<_ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h. */
29154 #ifdef HAVE_DB_185_H
29155 # include <db_185.h>
29160 #ifndef DB_VERSION_MAJOR
29161 # define DB_VERSION_MAJOR 1
29165 #define NULL ((void*)0)
29172 #if DB_VERSION_MAJOR > 1
29175 int major, minor, patch;
29177 version = db_version( &major, &minor, &patch );
29179 if( major != DB_VERSION_MAJOR ||
29180 minor < DB_VERSION_MINOR )
29182 printf("Berkeley DB version mismatch\n"
29183 "\theader: %s\n\tlibrary: %s\n",
29184 DB_VERSION_STRING, version);
29190 #if DB_VERSION_MAJOR > 2
29191 db_env_create( NULL, 0 );
29192 #elif DB_VERSION_MAJOR > 1
29193 db_appexit( NULL );
29195 (void) dbopen( NULL, 0, 0, 0, NULL);
29202 rm -f conftest.$ac_objext conftest$ac_exeext
29203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29204 (eval $ac_link) 2>conftest.er1
29206 grep -v '^ *+' conftest.er1 >conftest.err
29208 cat conftest.err >&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); } &&
29211 { ac_try='test -z "$ac_c_werror_flag"
29212 || test ! -s conftest.err'
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; } &&
29218 { ac_try='test -s conftest$ac_exeext'
29219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220 (eval $ac_try) 2>&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; }; then
29224 ol_cv_db_db_4_dot_3=yes
29226 echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29229 ol_cv_db_db_4_dot_3=no
29231 rm -f conftest.err conftest.$ac_objext \
29232 conftest$ac_exeext conftest.$ac_ext
29237 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29238 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29240 if test $ol_cv_db_db_4_dot_3 = yes ; then
29241 ol_cv_lib_db=-ldb-4.3
29245 if test $ol_cv_lib_db = no ; then
29246 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29247 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29248 if test "${ol_cv_db_db_4_3+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29254 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29256 cat >conftest.$ac_ext <<_ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29263 #ifdef HAVE_DB_185_H
29264 # include <db_185.h>
29269 #ifndef DB_VERSION_MAJOR
29270 # define DB_VERSION_MAJOR 1
29274 #define NULL ((void*)0)
29281 #if DB_VERSION_MAJOR > 1
29284 int major, minor, patch;
29286 version = db_version( &major, &minor, &patch );
29288 if( major != DB_VERSION_MAJOR ||
29289 minor < DB_VERSION_MINOR )
29291 printf("Berkeley DB version mismatch\n"
29292 "\theader: %s\n\tlibrary: %s\n",
29293 DB_VERSION_STRING, version);
29299 #if DB_VERSION_MAJOR > 2
29300 db_env_create( NULL, 0 );
29301 #elif DB_VERSION_MAJOR > 1
29302 db_appexit( NULL );
29304 (void) dbopen( NULL, 0, 0, 0, NULL);
29311 rm -f conftest.$ac_objext conftest$ac_exeext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29313 (eval $ac_link) 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_c_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest$ac_exeext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ol_cv_db_db_4_3=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29340 rm -f conftest.err conftest.$ac_objext \
29341 conftest$ac_exeext conftest.$ac_ext
29346 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29347 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29349 if test $ol_cv_db_db_4_3 = yes ; then
29350 ol_cv_lib_db=-ldb-4-3
29354 elif test $ol_cv_bdb_minor = 2 ; then
29355 if test $ol_cv_lib_db = no ; then
29356 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29357 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29358 if test "${ol_cv_db_db42+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29364 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29366 cat >conftest.$ac_ext <<_ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29373 #ifdef HAVE_DB_185_H
29374 # include <db_185.h>
29379 #ifndef DB_VERSION_MAJOR
29380 # define DB_VERSION_MAJOR 1
29384 #define NULL ((void*)0)
29391 #if DB_VERSION_MAJOR > 1
29394 int major, minor, patch;
29396 version = db_version( &major, &minor, &patch );
29398 if( major != DB_VERSION_MAJOR ||
29399 minor < DB_VERSION_MINOR )
29401 printf("Berkeley DB version mismatch\n"
29402 "\theader: %s\n\tlibrary: %s\n",
29403 DB_VERSION_STRING, version);
29409 #if DB_VERSION_MAJOR > 2
29410 db_env_create( NULL, 0 );
29411 #elif DB_VERSION_MAJOR > 1
29412 db_appexit( NULL );
29414 (void) dbopen( NULL, 0, 0, 0, NULL);
29421 rm -f conftest.$ac_objext conftest$ac_exeext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29423 (eval $ac_link) 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest$ac_exeext'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29445 echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29450 rm -f conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
29456 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29457 echo "${ECHO_T}$ol_cv_db_db42" >&6
29459 if test $ol_cv_db_db42 = yes ; then
29460 ol_cv_lib_db=-ldb42
29464 if test $ol_cv_lib_db = no ; then
29465 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29466 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29467 if test "${ol_cv_db_db_42+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29473 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29475 cat >conftest.$ac_ext <<_ACEOF
29478 cat confdefs.h >>conftest.$ac_ext
29479 cat >>conftest.$ac_ext <<_ACEOF
29480 /* end confdefs.h. */
29482 #ifdef HAVE_DB_185_H
29483 # include <db_185.h>
29488 #ifndef DB_VERSION_MAJOR
29489 # define DB_VERSION_MAJOR 1
29493 #define NULL ((void*)0)
29500 #if DB_VERSION_MAJOR > 1
29503 int major, minor, patch;
29505 version = db_version( &major, &minor, &patch );
29507 if( major != DB_VERSION_MAJOR ||
29508 minor < DB_VERSION_MINOR )
29510 printf("Berkeley DB version mismatch\n"
29511 "\theader: %s\n\tlibrary: %s\n",
29512 DB_VERSION_STRING, version);
29518 #if DB_VERSION_MAJOR > 2
29519 db_env_create( NULL, 0 );
29520 #elif DB_VERSION_MAJOR > 1
29521 db_appexit( NULL );
29523 (void) dbopen( NULL, 0, 0, 0, NULL);
29530 rm -f conftest.$ac_objext conftest$ac_exeext
29531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29532 (eval $ac_link) 2>conftest.er1
29534 grep -v '^ *+' conftest.er1 >conftest.err
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } &&
29539 { ac_try='test -z "$ac_c_werror_flag"
29540 || test ! -s conftest.err'
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; } &&
29546 { ac_try='test -s conftest$ac_exeext'
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; }; then
29554 echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29559 rm -f conftest.err conftest.$ac_objext \
29560 conftest$ac_exeext conftest.$ac_ext
29565 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29566 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29568 if test $ol_cv_db_db_42 = yes ; then
29569 ol_cv_lib_db=-ldb-42
29573 if test $ol_cv_lib_db = no ; then
29574 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29575 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29576 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29582 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29591 #ifdef HAVE_DB_185_H
29592 # include <db_185.h>
29597 #ifndef DB_VERSION_MAJOR
29598 # define DB_VERSION_MAJOR 1
29602 #define NULL ((void*)0)
29609 #if DB_VERSION_MAJOR > 1
29612 int major, minor, patch;
29614 version = db_version( &major, &minor, &patch );
29616 if( major != DB_VERSION_MAJOR ||
29617 minor < DB_VERSION_MINOR )
29619 printf("Berkeley DB version mismatch\n"
29620 "\theader: %s\n\tlibrary: %s\n",
29621 DB_VERSION_STRING, version);
29627 #if DB_VERSION_MAJOR > 2
29628 db_env_create( NULL, 0 );
29629 #elif DB_VERSION_MAJOR > 1
29630 db_appexit( NULL );
29632 (void) dbopen( NULL, 0, 0, 0, NULL);
29639 rm -f conftest.$ac_objext conftest$ac_exeext
29640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29641 (eval $ac_link) 2>conftest.er1
29643 grep -v '^ *+' conftest.er1 >conftest.err
29645 cat conftest.err >&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } &&
29648 { ac_try='test -z "$ac_c_werror_flag"
29649 || test ! -s conftest.err'
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; } &&
29655 { ac_try='test -s conftest$ac_exeext'
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; }; then
29661 ol_cv_db_db_4_dot_2=yes
29663 echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.$ac_ext >&5
29666 ol_cv_db_db_4_dot_2=no
29668 rm -f conftest.err conftest.$ac_objext \
29669 conftest$ac_exeext conftest.$ac_ext
29674 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29675 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29677 if test $ol_cv_db_db_4_dot_2 = yes ; then
29678 ol_cv_lib_db=-ldb-4.2
29682 if test $ol_cv_lib_db = no ; then
29683 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29684 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29685 if test "${ol_cv_db_db_4_2+set}" = set; then
29686 echo $ECHO_N "(cached) $ECHO_C" >&6
29691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29693 cat >conftest.$ac_ext <<_ACEOF
29696 cat confdefs.h >>conftest.$ac_ext
29697 cat >>conftest.$ac_ext <<_ACEOF
29698 /* end confdefs.h. */
29700 #ifdef HAVE_DB_185_H
29701 # include <db_185.h>
29706 #ifndef DB_VERSION_MAJOR
29707 # define DB_VERSION_MAJOR 1
29711 #define NULL ((void*)0)
29718 #if DB_VERSION_MAJOR > 1
29721 int major, minor, patch;
29723 version = db_version( &major, &minor, &patch );
29725 if( major != DB_VERSION_MAJOR ||
29726 minor < DB_VERSION_MINOR )
29728 printf("Berkeley DB version mismatch\n"
29729 "\theader: %s\n\tlibrary: %s\n",
29730 DB_VERSION_STRING, version);
29736 #if DB_VERSION_MAJOR > 2
29737 db_env_create( NULL, 0 );
29738 #elif DB_VERSION_MAJOR > 1
29739 db_appexit( NULL );
29741 (void) dbopen( NULL, 0, 0, 0, NULL);
29748 rm -f conftest.$ac_objext conftest$ac_exeext
29749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29750 (eval $ac_link) 2>conftest.er1
29752 grep -v '^ *+' conftest.er1 >conftest.err
29754 cat conftest.err >&5
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); } &&
29757 { ac_try='test -z "$ac_c_werror_flag"
29758 || test ! -s conftest.err'
29759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29760 (eval $ac_try) 2>&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; } &&
29764 { ac_try='test -s conftest$ac_exeext'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
29770 ol_cv_db_db_4_2=yes
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29777 rm -f conftest.err conftest.$ac_objext \
29778 conftest$ac_exeext conftest.$ac_ext
29783 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29784 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29786 if test $ol_cv_db_db_4_2 = yes ; then
29787 ol_cv_lib_db=-ldb-4-2
29791 elif test $ol_cv_bdb_minor = 1 ; then
29792 if test $ol_cv_lib_db = no ; then
29793 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29794 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29795 if test "${ol_cv_db_db41+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29803 cat >conftest.$ac_ext <<_ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h. */
29810 #ifdef HAVE_DB_185_H
29811 # include <db_185.h>
29816 #ifndef DB_VERSION_MAJOR
29817 # define DB_VERSION_MAJOR 1
29821 #define NULL ((void*)0)
29828 #if DB_VERSION_MAJOR > 1
29831 int major, minor, patch;
29833 version = db_version( &major, &minor, &patch );
29835 if( major != DB_VERSION_MAJOR ||
29836 minor < DB_VERSION_MINOR )
29838 printf("Berkeley DB version mismatch\n"
29839 "\theader: %s\n\tlibrary: %s\n",
29840 DB_VERSION_STRING, version);
29846 #if DB_VERSION_MAJOR > 2
29847 db_env_create( NULL, 0 );
29848 #elif DB_VERSION_MAJOR > 1
29849 db_appexit( NULL );
29851 (void) dbopen( NULL, 0, 0, 0, NULL);
29858 rm -f conftest.$ac_objext conftest$ac_exeext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29860 (eval $ac_link) 2>conftest.er1
29862 grep -v '^ *+' conftest.er1 >conftest.err
29864 cat conftest.err >&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
29867 { ac_try='test -z "$ac_c_werror_flag"
29868 || test ! -s conftest.err'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest$ac_exeext'
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29882 echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29887 rm -f conftest.err conftest.$ac_objext \
29888 conftest$ac_exeext conftest.$ac_ext
29893 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29894 echo "${ECHO_T}$ol_cv_db_db41" >&6
29896 if test $ol_cv_db_db41 = yes ; then
29897 ol_cv_lib_db=-ldb41
29901 if test $ol_cv_lib_db = no ; then
29902 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29903 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29904 if test "${ol_cv_db_db_41+set}" = set; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29910 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29912 cat >conftest.$ac_ext <<_ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29919 #ifdef HAVE_DB_185_H
29920 # include <db_185.h>
29925 #ifndef DB_VERSION_MAJOR
29926 # define DB_VERSION_MAJOR 1
29930 #define NULL ((void*)0)
29937 #if DB_VERSION_MAJOR > 1
29940 int major, minor, patch;
29942 version = db_version( &major, &minor, &patch );
29944 if( major != DB_VERSION_MAJOR ||
29945 minor < DB_VERSION_MINOR )
29947 printf("Berkeley DB version mismatch\n"
29948 "\theader: %s\n\tlibrary: %s\n",
29949 DB_VERSION_STRING, version);
29955 #if DB_VERSION_MAJOR > 2
29956 db_env_create( NULL, 0 );
29957 #elif DB_VERSION_MAJOR > 1
29958 db_appexit( NULL );
29960 (void) dbopen( NULL, 0, 0, 0, NULL);
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29969 (eval $ac_link) 2>conftest.er1
29971 grep -v '^ *+' conftest.er1 >conftest.err
29973 cat conftest.err >&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } &&
29976 { ac_try='test -z "$ac_c_werror_flag"
29977 || test ! -s conftest.err'
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest$ac_exeext'
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29996 rm -f conftest.err conftest.$ac_objext \
29997 conftest$ac_exeext conftest.$ac_ext
30002 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
30003 echo "${ECHO_T}$ol_cv_db_db_41" >&6
30005 if test $ol_cv_db_db_41 = yes ; then
30006 ol_cv_lib_db=-ldb-41
30010 if test $ol_cv_lib_db = no ; then
30011 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
30012 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
30013 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30019 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30021 cat >conftest.$ac_ext <<_ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h. */
30028 #ifdef HAVE_DB_185_H
30029 # include <db_185.h>
30034 #ifndef DB_VERSION_MAJOR
30035 # define DB_VERSION_MAJOR 1
30039 #define NULL ((void*)0)
30046 #if DB_VERSION_MAJOR > 1
30049 int major, minor, patch;
30051 version = db_version( &major, &minor, &patch );
30053 if( major != DB_VERSION_MAJOR ||
30054 minor < DB_VERSION_MINOR )
30056 printf("Berkeley DB version mismatch\n"
30057 "\theader: %s\n\tlibrary: %s\n",
30058 DB_VERSION_STRING, version);
30064 #if DB_VERSION_MAJOR > 2
30065 db_env_create( NULL, 0 );
30066 #elif DB_VERSION_MAJOR > 1
30067 db_appexit( NULL );
30069 (void) dbopen( NULL, 0, 0, 0, NULL);
30076 rm -f conftest.$ac_objext conftest$ac_exeext
30077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30078 (eval $ac_link) 2>conftest.er1
30080 grep -v '^ *+' conftest.er1 >conftest.err
30082 cat conftest.err >&5
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); } &&
30085 { ac_try='test -z "$ac_c_werror_flag"
30086 || test ! -s conftest.err'
30087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30088 (eval $ac_try) 2>&5
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; } &&
30092 { ac_try='test -s conftest$ac_exeext'
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ol_cv_db_db_4_dot_1=yes
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30103 ol_cv_db_db_4_dot_1=no
30105 rm -f conftest.err conftest.$ac_objext \
30106 conftest$ac_exeext conftest.$ac_ext
30111 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30112 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30114 if test $ol_cv_db_db_4_dot_1 = yes ; then
30115 ol_cv_lib_db=-ldb-4.1
30119 if test $ol_cv_lib_db = no ; then
30120 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30121 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30122 if test "${ol_cv_db_db_4_1+set}" = set; then
30123 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30130 cat >conftest.$ac_ext <<_ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h. */
30137 #ifdef HAVE_DB_185_H
30138 # include <db_185.h>
30143 #ifndef DB_VERSION_MAJOR
30144 # define DB_VERSION_MAJOR 1
30148 #define NULL ((void*)0)
30155 #if DB_VERSION_MAJOR > 1
30158 int major, minor, patch;
30160 version = db_version( &major, &minor, &patch );
30162 if( major != DB_VERSION_MAJOR ||
30163 minor < DB_VERSION_MINOR )
30165 printf("Berkeley DB version mismatch\n"
30166 "\theader: %s\n\tlibrary: %s\n",
30167 DB_VERSION_STRING, version);
30173 #if DB_VERSION_MAJOR > 2
30174 db_env_create( NULL, 0 );
30175 #elif DB_VERSION_MAJOR > 1
30176 db_appexit( NULL );
30178 (void) dbopen( NULL, 0, 0, 0, NULL);
30185 rm -f conftest.$ac_objext conftest$ac_exeext
30186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30187 (eval $ac_link) 2>conftest.er1
30189 grep -v '^ *+' conftest.er1 >conftest.err
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } &&
30194 { ac_try='test -z "$ac_c_werror_flag"
30195 || test ! -s conftest.err'
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest$ac_exeext'
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
30207 ol_cv_db_db_4_1=yes
30209 echo "$as_me: failed program was:" >&5
30210 sed 's/^/| /' conftest.$ac_ext >&5
30214 rm -f conftest.err conftest.$ac_objext \
30215 conftest$ac_exeext conftest.$ac_ext
30220 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30221 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30223 if test $ol_cv_db_db_4_1 = yes ; then
30224 ol_cv_lib_db=-ldb-4-1
30229 if test $ol_cv_lib_db = no ; then
30230 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30231 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30232 if test "${ol_cv_db_db_4+set}" = set; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30240 cat >conftest.$ac_ext <<_ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30247 #ifdef HAVE_DB_185_H
30248 # include <db_185.h>
30253 #ifndef DB_VERSION_MAJOR
30254 # define DB_VERSION_MAJOR 1
30258 #define NULL ((void*)0)
30265 #if DB_VERSION_MAJOR > 1
30268 int major, minor, patch;
30270 version = db_version( &major, &minor, &patch );
30272 if( major != DB_VERSION_MAJOR ||
30273 minor < DB_VERSION_MINOR )
30275 printf("Berkeley DB version mismatch\n"
30276 "\theader: %s\n\tlibrary: %s\n",
30277 DB_VERSION_STRING, version);
30283 #if DB_VERSION_MAJOR > 2
30284 db_env_create( NULL, 0 );
30285 #elif DB_VERSION_MAJOR > 1
30286 db_appexit( NULL );
30288 (void) dbopen( NULL, 0, 0, 0, NULL);
30295 rm -f conftest.$ac_objext conftest$ac_exeext
30296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30297 (eval $ac_link) 2>conftest.er1
30299 grep -v '^ *+' conftest.er1 >conftest.err
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
30304 { ac_try='test -z "$ac_c_werror_flag"
30305 || test ! -s conftest.err'
30306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30307 (eval $ac_try) 2>&5
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; } &&
30311 { ac_try='test -s conftest$ac_exeext'
30312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30313 (eval $ac_try) 2>&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30319 echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30324 rm -f conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
30330 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30331 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30333 if test $ol_cv_db_db_4 = yes ; then
30334 ol_cv_lib_db=-ldb-4
30338 if test $ol_cv_lib_db = no ; then
30339 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30340 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30341 if test "${ol_cv_db_db4+set}" = set; then
30342 echo $ECHO_N "(cached) $ECHO_C" >&6
30347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30349 cat >conftest.$ac_ext <<_ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h. */
30356 #ifdef HAVE_DB_185_H
30357 # include <db_185.h>
30362 #ifndef DB_VERSION_MAJOR
30363 # define DB_VERSION_MAJOR 1
30367 #define NULL ((void*)0)
30374 #if DB_VERSION_MAJOR > 1
30377 int major, minor, patch;
30379 version = db_version( &major, &minor, &patch );
30381 if( major != DB_VERSION_MAJOR ||
30382 minor < DB_VERSION_MINOR )
30384 printf("Berkeley DB version mismatch\n"
30385 "\theader: %s\n\tlibrary: %s\n",
30386 DB_VERSION_STRING, version);
30392 #if DB_VERSION_MAJOR > 2
30393 db_env_create( NULL, 0 );
30394 #elif DB_VERSION_MAJOR > 1
30395 db_appexit( NULL );
30397 (void) dbopen( NULL, 0, 0, 0, NULL);
30404 rm -f conftest.$ac_objext conftest$ac_exeext
30405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30406 (eval $ac_link) 2>conftest.er1
30408 grep -v '^ *+' conftest.er1 >conftest.err
30410 cat conftest.err >&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } &&
30413 { ac_try='test -z "$ac_c_werror_flag"
30414 || test ! -s conftest.err'
30415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30416 (eval $ac_try) 2>&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; } &&
30420 { ac_try='test -s conftest$ac_exeext'
30421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30422 (eval $ac_try) 2>&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); }; }; then
30428 echo "$as_me: failed program was:" >&5
30429 sed 's/^/| /' conftest.$ac_ext >&5
30433 rm -f conftest.err conftest.$ac_objext \
30434 conftest$ac_exeext conftest.$ac_ext
30439 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30440 echo "${ECHO_T}$ol_cv_db_db4" >&6
30442 if test $ol_cv_db_db4 = yes ; then
30447 if test $ol_cv_lib_db = no ; then
30448 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30449 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30450 if test "${ol_cv_db_db+set}" = set; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30456 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30458 cat >conftest.$ac_ext <<_ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h. */
30465 #ifdef HAVE_DB_185_H
30466 # include <db_185.h>
30471 #ifndef DB_VERSION_MAJOR
30472 # define DB_VERSION_MAJOR 1
30476 #define NULL ((void*)0)
30483 #if DB_VERSION_MAJOR > 1
30486 int major, minor, patch;
30488 version = db_version( &major, &minor, &patch );
30490 if( major != DB_VERSION_MAJOR ||
30491 minor < DB_VERSION_MINOR )
30493 printf("Berkeley DB version mismatch\n"
30494 "\theader: %s\n\tlibrary: %s\n",
30495 DB_VERSION_STRING, version);
30501 #if DB_VERSION_MAJOR > 2
30502 db_env_create( NULL, 0 );
30503 #elif DB_VERSION_MAJOR > 1
30504 db_appexit( NULL );
30506 (void) dbopen( NULL, 0, 0, 0, NULL);
30513 rm -f conftest.$ac_objext conftest$ac_exeext
30514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30515 (eval $ac_link) 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
30522 { ac_try='test -z "$ac_c_werror_flag"
30523 || test ! -s conftest.err'
30524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525 (eval $ac_try) 2>&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; } &&
30529 { ac_try='test -s conftest$ac_exeext'
30530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 (eval $ac_try) 2>&5
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; }; then
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30542 rm -f conftest.err conftest.$ac_objext \
30543 conftest$ac_exeext conftest.$ac_ext
30548 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30549 echo "${ECHO_T}$ol_cv_db_db" >&6
30551 if test $ol_cv_db_db = yes ; then
30557 elif test $ol_cv_bdb_major = 3 ; then
30558 if test $ol_cv_lib_db = no ; then
30559 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30560 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30561 if test "${ol_cv_db_db3+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30569 cat >conftest.$ac_ext <<_ACEOF
30572 cat confdefs.h >>conftest.$ac_ext
30573 cat >>conftest.$ac_ext <<_ACEOF
30574 /* end confdefs.h. */
30576 #ifdef HAVE_DB_185_H
30577 # include <db_185.h>
30582 #ifndef DB_VERSION_MAJOR
30583 # define DB_VERSION_MAJOR 1
30587 #define NULL ((void*)0)
30594 #if DB_VERSION_MAJOR > 1
30597 int major, minor, patch;
30599 version = db_version( &major, &minor, &patch );
30601 if( major != DB_VERSION_MAJOR ||
30602 minor < DB_VERSION_MINOR )
30604 printf("Berkeley DB version mismatch\n"
30605 "\theader: %s\n\tlibrary: %s\n",
30606 DB_VERSION_STRING, version);
30612 #if DB_VERSION_MAJOR > 2
30613 db_env_create( NULL, 0 );
30614 #elif DB_VERSION_MAJOR > 1
30615 db_appexit( NULL );
30617 (void) dbopen( NULL, 0, 0, 0, NULL);
30624 rm -f conftest.$ac_objext conftest$ac_exeext
30625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30626 (eval $ac_link) 2>conftest.er1
30628 grep -v '^ *+' conftest.er1 >conftest.err
30630 cat conftest.err >&5
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); } &&
30633 { ac_try='test -z "$ac_c_werror_flag"
30634 || test ! -s conftest.err'
30635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30636 (eval $ac_try) 2>&5
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; } &&
30640 { ac_try='test -s conftest$ac_exeext'
30641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30642 (eval $ac_try) 2>&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); }; }; then
30648 echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.$ac_ext >&5
30653 rm -f conftest.err conftest.$ac_objext \
30654 conftest$ac_exeext conftest.$ac_ext
30659 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30660 echo "${ECHO_T}$ol_cv_db_db3" >&6
30662 if test $ol_cv_db_db3 = yes ; then
30667 if test $ol_cv_lib_db = no ; then
30668 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30669 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30670 if test "${ol_cv_db_db_3+set}" = set; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30676 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30678 cat >conftest.$ac_ext <<_ACEOF
30681 cat confdefs.h >>conftest.$ac_ext
30682 cat >>conftest.$ac_ext <<_ACEOF
30683 /* end confdefs.h. */
30685 #ifdef HAVE_DB_185_H
30686 # include <db_185.h>
30691 #ifndef DB_VERSION_MAJOR
30692 # define DB_VERSION_MAJOR 1
30696 #define NULL ((void*)0)
30703 #if DB_VERSION_MAJOR > 1
30706 int major, minor, patch;
30708 version = db_version( &major, &minor, &patch );
30710 if( major != DB_VERSION_MAJOR ||
30711 minor < DB_VERSION_MINOR )
30713 printf("Berkeley DB version mismatch\n"
30714 "\theader: %s\n\tlibrary: %s\n",
30715 DB_VERSION_STRING, version);
30721 #if DB_VERSION_MAJOR > 2
30722 db_env_create( NULL, 0 );
30723 #elif DB_VERSION_MAJOR > 1
30724 db_appexit( NULL );
30726 (void) dbopen( NULL, 0, 0, 0, NULL);
30733 rm -f conftest.$ac_objext conftest$ac_exeext
30734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30735 (eval $ac_link) 2>conftest.er1
30737 grep -v '^ *+' conftest.er1 >conftest.err
30739 cat conftest.err >&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } &&
30742 { ac_try='test -z "$ac_c_werror_flag"
30743 || test ! -s conftest.err'
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; } &&
30749 { ac_try='test -s conftest$ac_exeext'
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30757 echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30762 rm -f conftest.err conftest.$ac_objext \
30763 conftest$ac_exeext conftest.$ac_ext
30768 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30769 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30771 if test $ol_cv_db_db_3 = yes ; then
30772 ol_cv_lib_db=-ldb-3
30777 elif test $ol_cv_bdb_major = 2 ; then
30778 if test $ol_cv_lib_db = no ; then
30779 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30780 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30781 if test "${ol_cv_db_db2+set}" = set; then
30782 echo $ECHO_N "(cached) $ECHO_C" >&6
30787 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30789 cat >conftest.$ac_ext <<_ACEOF
30792 cat confdefs.h >>conftest.$ac_ext
30793 cat >>conftest.$ac_ext <<_ACEOF
30794 /* end confdefs.h. */
30796 #ifdef HAVE_DB_185_H
30797 # include <db_185.h>
30802 #ifndef DB_VERSION_MAJOR
30803 # define DB_VERSION_MAJOR 1
30807 #define NULL ((void*)0)
30814 #if DB_VERSION_MAJOR > 1
30817 int major, minor, patch;
30819 version = db_version( &major, &minor, &patch );
30821 if( major != DB_VERSION_MAJOR ||
30822 minor < DB_VERSION_MINOR )
30824 printf("Berkeley DB version mismatch\n"
30825 "\theader: %s\n\tlibrary: %s\n",
30826 DB_VERSION_STRING, version);
30832 #if DB_VERSION_MAJOR > 2
30833 db_env_create( NULL, 0 );
30834 #elif DB_VERSION_MAJOR > 1
30835 db_appexit( NULL );
30837 (void) dbopen( NULL, 0, 0, 0, NULL);
30844 rm -f conftest.$ac_objext conftest$ac_exeext
30845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30846 (eval $ac_link) 2>conftest.er1
30848 grep -v '^ *+' conftest.er1 >conftest.err
30850 cat conftest.err >&5
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); } &&
30853 { ac_try='test -z "$ac_c_werror_flag"
30854 || test ! -s conftest.err'
30855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30856 (eval $ac_try) 2>&5
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; } &&
30860 { ac_try='test -s conftest$ac_exeext'
30861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30862 (eval $ac_try) 2>&5
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); }; }; then
30868 echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30873 rm -f conftest.err conftest.$ac_objext \
30874 conftest$ac_exeext conftest.$ac_ext
30879 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30880 echo "${ECHO_T}$ol_cv_db_db2" >&6
30882 if test $ol_cv_db_db2 = yes ; then
30887 if test $ol_cv_lib_db = no ; then
30888 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30889 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30890 if test "${ol_cv_db_db_2+set}" = set; then
30891 echo $ECHO_N "(cached) $ECHO_C" >&6
30896 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30898 cat >conftest.$ac_ext <<_ACEOF
30901 cat confdefs.h >>conftest.$ac_ext
30902 cat >>conftest.$ac_ext <<_ACEOF
30903 /* end confdefs.h. */
30905 #ifdef HAVE_DB_185_H
30906 # include <db_185.h>
30911 #ifndef DB_VERSION_MAJOR
30912 # define DB_VERSION_MAJOR 1
30916 #define NULL ((void*)0)
30923 #if DB_VERSION_MAJOR > 1
30926 int major, minor, patch;
30928 version = db_version( &major, &minor, &patch );
30930 if( major != DB_VERSION_MAJOR ||
30931 minor < DB_VERSION_MINOR )
30933 printf("Berkeley DB version mismatch\n"
30934 "\theader: %s\n\tlibrary: %s\n",
30935 DB_VERSION_STRING, version);
30941 #if DB_VERSION_MAJOR > 2
30942 db_env_create( NULL, 0 );
30943 #elif DB_VERSION_MAJOR > 1
30944 db_appexit( NULL );
30946 (void) dbopen( NULL, 0, 0, 0, NULL);
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30955 (eval $ac_link) 2>conftest.er1
30957 grep -v '^ *+' conftest.er1 >conftest.err
30959 cat conftest.err >&5
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); } &&
30962 { ac_try='test -z "$ac_c_werror_flag"
30963 || test ! -s conftest.err'
30964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30965 (eval $ac_try) 2>&5
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; } &&
30969 { ac_try='test -s conftest$ac_exeext'
30970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30971 (eval $ac_try) 2>&5
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; }; then
30977 echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30982 rm -f conftest.err conftest.$ac_objext \
30983 conftest$ac_exeext conftest.$ac_ext
30988 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30989 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30991 if test $ol_cv_db_db_2 = yes ; then
30992 ol_cv_lib_db=-ldb-2
30997 elif test $ol_cv_bdb_major = 1 ; then
30998 if test $ol_cv_lib_db = no ; then
30999 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
31000 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
31001 if test "${ol_cv_db_db1+set}" = set; then
31002 echo $ECHO_N "(cached) $ECHO_C" >&6
31007 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31009 cat >conftest.$ac_ext <<_ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h. */
31016 #ifdef HAVE_DB_185_H
31017 # include <db_185.h>
31022 #ifndef DB_VERSION_MAJOR
31023 # define DB_VERSION_MAJOR 1
31027 #define NULL ((void*)0)
31034 #if DB_VERSION_MAJOR > 1
31037 int major, minor, patch;
31039 version = db_version( &major, &minor, &patch );
31041 if( major != DB_VERSION_MAJOR ||
31042 minor < DB_VERSION_MINOR )
31044 printf("Berkeley DB version mismatch\n"
31045 "\theader: %s\n\tlibrary: %s\n",
31046 DB_VERSION_STRING, version);
31052 #if DB_VERSION_MAJOR > 2
31053 db_env_create( NULL, 0 );
31054 #elif DB_VERSION_MAJOR > 1
31055 db_appexit( NULL );
31057 (void) dbopen( NULL, 0, 0, 0, NULL);
31064 rm -f conftest.$ac_objext conftest$ac_exeext
31065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31066 (eval $ac_link) 2>conftest.er1
31068 grep -v '^ *+' conftest.er1 >conftest.err
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
31073 { ac_try='test -z "$ac_c_werror_flag"
31074 || test ! -s conftest.err'
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest$ac_exeext'
31081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31082 (eval $ac_try) 2>&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); }; }; then
31088 echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31093 rm -f conftest.err conftest.$ac_objext \
31094 conftest$ac_exeext conftest.$ac_ext
31099 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31100 echo "${ECHO_T}$ol_cv_db_db1" >&6
31102 if test $ol_cv_db_db1 = yes ; then
31107 if test $ol_cv_lib_db = no ; then
31108 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31109 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31110 if test "${ol_cv_db_db_1+set}" = set; then
31111 echo $ECHO_N "(cached) $ECHO_C" >&6
31116 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31118 cat >conftest.$ac_ext <<_ACEOF
31121 cat confdefs.h >>conftest.$ac_ext
31122 cat >>conftest.$ac_ext <<_ACEOF
31123 /* end confdefs.h. */
31125 #ifdef HAVE_DB_185_H
31126 # include <db_185.h>
31131 #ifndef DB_VERSION_MAJOR
31132 # define DB_VERSION_MAJOR 1
31136 #define NULL ((void*)0)
31143 #if DB_VERSION_MAJOR > 1
31146 int major, minor, patch;
31148 version = db_version( &major, &minor, &patch );
31150 if( major != DB_VERSION_MAJOR ||
31151 minor < DB_VERSION_MINOR )
31153 printf("Berkeley DB version mismatch\n"
31154 "\theader: %s\n\tlibrary: %s\n",
31155 DB_VERSION_STRING, version);
31161 #if DB_VERSION_MAJOR > 2
31162 db_env_create( NULL, 0 );
31163 #elif DB_VERSION_MAJOR > 1
31164 db_appexit( NULL );
31166 (void) dbopen( NULL, 0, 0, 0, NULL);
31173 rm -f conftest.$ac_objext conftest$ac_exeext
31174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31175 (eval $ac_link) 2>conftest.er1
31177 grep -v '^ *+' conftest.er1 >conftest.err
31179 cat conftest.err >&5
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } &&
31182 { ac_try='test -z "$ac_c_werror_flag"
31183 || test ! -s conftest.err'
31184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31185 (eval $ac_try) 2>&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); }; } &&
31189 { ac_try='test -s conftest$ac_exeext'
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
31197 echo "$as_me: failed program was:" >&5
31198 sed 's/^/| /' conftest.$ac_ext >&5
31202 rm -f conftest.err conftest.$ac_objext \
31203 conftest$ac_exeext conftest.$ac_ext
31208 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31209 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31211 if test $ol_cv_db_db_1 = yes ; then
31212 ol_cv_lib_db=-ldb-1
31217 if test $ol_cv_lib_db = no ; then
31218 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31219 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31220 if test "${ol_cv_db_none+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31228 cat >conftest.$ac_ext <<_ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h. */
31235 #ifdef HAVE_DB_185_H
31236 # include <db_185.h>
31241 #ifndef DB_VERSION_MAJOR
31242 # define DB_VERSION_MAJOR 1
31246 #define NULL ((void*)0)
31253 #if DB_VERSION_MAJOR > 1
31256 int major, minor, patch;
31258 version = db_version( &major, &minor, &patch );
31260 if( major != DB_VERSION_MAJOR ||
31261 minor < DB_VERSION_MINOR )
31263 printf("Berkeley DB version mismatch\n"
31264 "\theader: %s\n\tlibrary: %s\n",
31265 DB_VERSION_STRING, version);
31271 #if DB_VERSION_MAJOR > 2
31272 db_env_create( NULL, 0 );
31273 #elif DB_VERSION_MAJOR > 1
31274 db_appexit( NULL );
31276 (void) dbopen( NULL, 0, 0, 0, NULL);
31283 rm -f conftest.$ac_objext conftest$ac_exeext
31284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31285 (eval $ac_link) 2>conftest.er1
31287 grep -v '^ *+' conftest.er1 >conftest.err
31289 cat conftest.err >&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
31292 { ac_try='test -z "$ac_c_werror_flag"
31293 || test ! -s conftest.err'
31294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31295 (eval $ac_try) 2>&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); }; } &&
31299 { ac_try='test -s conftest$ac_exeext'
31300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301 (eval $ac_try) 2>&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; }; then
31307 echo "$as_me: failed program was:" >&5
31308 sed 's/^/| /' conftest.$ac_ext >&5
31312 rm -f conftest.err conftest.$ac_objext \
31313 conftest$ac_exeext conftest.$ac_ext
31318 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31319 echo "${ECHO_T}$ol_cv_db_none" >&6
31321 if test $ol_cv_db_none = yes ; then
31327 if test "$ol_cv_lib_db" != no ; then
31328 ol_cv_berkeley_db=yes
31329 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31330 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31331 if test "${ol_cv_berkeley_db_version+set}" = set; then
31332 echo $ECHO_N "(cached) $ECHO_C" >&6
31336 LIBS="$LTHREAD_LIBS $LIBS"
31337 if test $ol_cv_lib_db != yes ; then
31338 LIBS="$ol_cv_lib_db $LIBS"
31341 if test "$cross_compiling" = yes; then
31342 ol_cv_berkeley_db_version=cross
31344 cat >conftest.$ac_ext <<_ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h. */
31351 #ifdef HAVE_DB_185_H
31356 #ifndef DB_VERSION_MAJOR
31357 # define DB_VERSION_MAJOR 1
31360 #define NULL ((void *)0)
31364 #if DB_VERSION_MAJOR > 1
31366 int major, minor, patch;
31368 version = db_version( &major, &minor, &patch );
31370 if( major != DB_VERSION_MAJOR ||
31371 minor != DB_VERSION_MINOR ||
31372 patch != DB_VERSION_PATCH )
31374 printf("Berkeley DB version mismatch\n"
31375 "\theader: %s\n\tlibrary: %s\n",
31376 DB_VERSION_STRING, version);
31384 rm -f conftest$ac_exeext
31385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31386 (eval $ac_link) 2>&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391 (eval $ac_try) 2>&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; }; then
31395 ol_cv_berkeley_db_version=yes
31397 echo "$as_me: program exited with status $ac_status" >&5
31398 echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31401 ( exit $ac_status )
31402 ol_cv_berkeley_db_version=no
31404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31410 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31411 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31413 if test $ol_cv_berkeley_db_version = no ; then
31414 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31415 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31416 { (exit 1); exit 1; }; }
31419 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31420 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31421 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31422 echo $ECHO_N "(cached) $ECHO_C" >&6
31426 LIBS="$LTHREAD_LIBS $LIBS"
31427 if test $ol_cv_lib_db != yes ; then
31428 LIBS="$ol_cv_lib_db $LIBS"
31431 if test "$cross_compiling" = yes; then
31432 ol_cv_berkeley_db_thread=cross
31434 cat >conftest.$ac_ext <<_ACEOF
31437 cat confdefs.h >>conftest.$ac_ext
31438 cat >>conftest.$ac_ext <<_ACEOF
31439 /* end confdefs.h. */
31441 #ifdef HAVE_DB_185_H
31447 #define NULL ((void *)0)
31452 u_int32_t flags = DB_CREATE |
31458 #if DB_VERSION_MAJOR > 2
31459 DB_ENV *env = NULL;
31461 rc = db_env_create( &env, 0 );
31463 flags |= DB_INIT_MPOOL;
31464 #ifdef DB_MPOOL_PRIVATE
31465 flags |= DB_MPOOL_PRIVATE;
31469 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31473 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31474 rc = env->open( env, NULL, flags, 0 );
31476 rc = env->open( env, NULL, NULL, flags, 0 );
31480 rc = env->close( env, 0 );
31484 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31490 memset( &env, '\0', sizeof(env) );
31492 rc = db_appinit( NULL, NULL, &env, flags );
31495 db_appexit( &env );
31498 unlink("__db_mpool.share");
31499 unlink("__db_lock.share");
31505 rm -f conftest$ac_exeext
31506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31507 (eval $ac_link) 2>&5
31509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31512 (eval $ac_try) 2>&5
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); }; }; then
31516 ol_cv_berkeley_db_thread=yes
31518 echo "$as_me: program exited with status $ac_status" >&5
31519 echo "$as_me: failed program was:" >&5
31520 sed 's/^/| /' conftest.$ac_ext >&5
31522 ( exit $ac_status )
31523 ol_cv_berkeley_db_thread=no
31525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31531 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31532 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31534 if test $ol_cv_berkeley_db_thread != no ; then
31536 cat >>confdefs.h <<\_ACEOF
31537 #define HAVE_BERKELEY_DB_THREAD 1
31546 if test $ol_cv_berkeley_db = no ; then
31547 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31548 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31549 { (exit 1); exit 1; }; }
31553 cat >>confdefs.h <<\_ACEOF
31554 #define HAVE_BERKELEY_DB 1
31558 if test $ol_cv_lib_db != yes ; then
31559 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31562 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31563 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31564 if test "${ol_cv_bdb_compat+set}" = set; then
31565 echo $ECHO_N "(cached) $ECHO_C" >&6
31568 cat >conftest.$ac_ext <<_ACEOF
31571 cat confdefs.h >>conftest.$ac_ext
31572 cat >>conftest.$ac_ext <<_ACEOF
31573 /* end confdefs.h. */
31577 /* this check could be improved */
31578 #ifndef DB_VERSION_MAJOR
31579 # define DB_VERSION_MAJOR 1
31581 #ifndef DB_VERSION_MINOR
31582 # define DB_VERSION_MINOR 0
31585 /* require 4.2 or later */
31586 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
31587 __db_version_compat
31591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31592 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31593 ol_cv_bdb_compat=yes
31595 ol_cv_bdb_compat=no
31600 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31601 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31604 if test $ol_cv_bdb_compat != yes ; then
31605 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31606 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31607 { (exit 1); exit 1; }; }
31610 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31616 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31617 BUILD_LIBS_DYNAMIC=shared
31619 cat >>confdefs.h <<\_ACEOF
31620 #define LDAP_LIBS_DYNAMIC 1
31625 BUILD_LIBS_DYNAMIC=static
31629 if test $ol_enable_wrappers != no ; then
31631 for ac_header in tcpd.h
31633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31635 echo "$as_me:$LINENO: checking for $ac_header" >&5
31636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31638 echo $ECHO_N "(cached) $ECHO_C" >&6
31640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31643 # Is the header compilable?
31644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31646 cat >conftest.$ac_ext <<_ACEOF
31649 cat confdefs.h >>conftest.$ac_ext
31650 cat >>conftest.$ac_ext <<_ACEOF
31651 /* end confdefs.h. */
31652 $ac_includes_default
31653 #include <$ac_header>
31655 rm -f conftest.$ac_objext
31656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31657 (eval $ac_compile) 2>conftest.er1
31659 grep -v '^ *+' conftest.er1 >conftest.err
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } &&
31664 { ac_try='test -z "$ac_c_werror_flag"
31665 || test ! -s conftest.err'
31666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31667 (eval $ac_try) 2>&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; } &&
31671 { ac_try='test -s conftest.$ac_objext'
31672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31673 (eval $ac_try) 2>&5
31675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676 (exit $ac_status); }; }; then
31677 ac_header_compiler=yes
31679 echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31682 ac_header_compiler=no
31684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31686 echo "${ECHO_T}$ac_header_compiler" >&6
31688 # Is the header present?
31689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31691 cat >conftest.$ac_ext <<_ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h. */
31697 #include <$ac_header>
31699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31702 grep -v '^ *+' conftest.er1 >conftest.err
31704 cat conftest.err >&5
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); } >/dev/null; then
31707 if test -s conftest.err; then
31708 ac_cpp_err=$ac_c_preproc_warn_flag
31709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31716 if test -z "$ac_cpp_err"; then
31717 ac_header_preproc=yes
31719 echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31722 ac_header_preproc=no
31724 rm -f conftest.err conftest.$ac_ext
31725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31726 echo "${ECHO_T}$ac_header_preproc" >&6
31728 # So? What about this header?
31729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31735 ac_header_preproc=yes
31738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31752 ## --------------------------------------------- ##
31753 ## Report this to <http://www.openldap.org/its/> ##
31754 ## --------------------------------------------- ##
31757 sed "s/^/$as_me: WARNING: /" >&2
31760 echo "$as_me:$LINENO: checking for $ac_header" >&5
31761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31763 echo $ECHO_N "(cached) $ECHO_C" >&6
31765 eval "$as_ac_Header=\$ac_header_preproc"
31767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31772 cat >>confdefs.h <<_ACEOF
31773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31776 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31777 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31779 LIBS="$LIBS -lwrap"
31780 cat >conftest.$ac_ext <<_ACEOF
31783 cat confdefs.h >>conftest.$ac_ext
31784 cat >>conftest.$ac_ext <<_ACEOF
31785 /* end confdefs.h. */
31788 int allow_severity = 0;
31789 int deny_severity = 0;
31791 struct request_info *req;
31803 rm -f conftest.$ac_objext conftest$ac_exeext
31804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31805 (eval $ac_link) 2>conftest.er1
31807 grep -v '^ *+' conftest.er1 >conftest.err
31809 cat conftest.err >&5
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); } &&
31812 { ac_try='test -z "$ac_c_werror_flag"
31813 || test ! -s conftest.err'
31814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31815 (eval $ac_try) 2>&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); }; } &&
31819 { ac_try='test -s conftest$ac_exeext'
31820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31821 (eval $ac_try) 2>&5
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); }; }; then
31825 echo "$as_me:$LINENO: result: -lwrap" >&5
31826 echo "${ECHO_T}-lwrap" >&6
31830 echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31835 cat >conftest.$ac_ext <<_ACEOF
31838 cat confdefs.h >>conftest.$ac_ext
31839 cat >>conftest.$ac_ext <<_ACEOF
31840 /* end confdefs.h. */
31843 int allow_severity = 0;
31844 int deny_severity = 0;
31846 struct request_info *req;
31858 rm -f conftest.$ac_objext conftest$ac_exeext
31859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31860 (eval $ac_link) 2>conftest.er1
31862 grep -v '^ *+' conftest.er1 >conftest.err
31864 cat conftest.err >&5
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); } &&
31867 { ac_try='test -z "$ac_c_werror_flag"
31868 || test ! -s conftest.err'
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; } &&
31874 { ac_try='test -s conftest$ac_exeext'
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; }; then
31880 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31881 echo "${ECHO_T}-lwrap -lnsl" >&6
31883 LIBS="$save_LIBS -lnsl"
31885 echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31889 echo "$as_me:$LINENO: result: no" >&5
31890 echo "${ECHO_T}no" >&6
31894 rm -f conftest.err conftest.$ac_objext \
31895 conftest$ac_exeext conftest.$ac_ext
31897 rm -f conftest.err conftest.$ac_objext \
31898 conftest$ac_exeext conftest.$ac_ext
31906 if test $have_wrappers = yes ; then
31908 cat >>confdefs.h <<\_ACEOF
31909 #define HAVE_TCPD 1
31913 elif test $ol_enable_wrappers = yes ; then
31914 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31915 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31916 { (exit 1); exit 1; }; }
31918 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31919 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31924 if test $ol_enable_syslog != no ; then
31925 echo "$as_me:$LINENO: checking for openlog" >&5
31926 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31927 if test "${ac_cv_func_openlog+set}" = set; then
31928 echo $ECHO_N "(cached) $ECHO_C" >&6
31930 cat >conftest.$ac_ext <<_ACEOF
31933 cat confdefs.h >>conftest.$ac_ext
31934 cat >>conftest.$ac_ext <<_ACEOF
31935 /* end confdefs.h. */
31936 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31938 #define openlog innocuous_openlog
31940 /* System header to define __stub macros and hopefully few prototypes,
31941 which can conflict with char openlog (); below.
31942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31943 <limits.h> exists even on freestanding compilers. */
31946 # include <limits.h>
31948 # include <assert.h>
31953 /* Override any gcc2 internal prototype to avoid an error. */
31958 /* We use char because int might match the return type of a gcc2
31959 builtin and then its argument prototype would still apply. */
31961 /* The GNU C library defines this for functions which it implements
31962 to always fail with ENOSYS. Some functions are actually named
31963 something starting with __ and the normal name is an alias. */
31964 #if defined (__stub_openlog) || defined (__stub___openlog)
31967 char (*f) () = openlog;
31976 return f != openlog;
31981 rm -f conftest.$ac_objext conftest$ac_exeext
31982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31983 (eval $ac_link) 2>conftest.er1
31985 grep -v '^ *+' conftest.er1 >conftest.err
31987 cat conftest.err >&5
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); } &&
31990 { ac_try='test -z "$ac_c_werror_flag"
31991 || test ! -s conftest.err'
31992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31993 (eval $ac_try) 2>&5
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); }; } &&
31997 { ac_try='test -s conftest$ac_exeext'
31998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31999 (eval $ac_try) 2>&5
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); }; }; then
32003 ac_cv_func_openlog=yes
32005 echo "$as_me: failed program was:" >&5
32006 sed 's/^/| /' conftest.$ac_ext >&5
32008 ac_cv_func_openlog=no
32010 rm -f conftest.err conftest.$ac_objext \
32011 conftest$ac_exeext conftest.$ac_ext
32013 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
32014 echo "${ECHO_T}$ac_cv_func_openlog" >&6
32016 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
32017 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
32018 echo "$as_me: error: could not find syslog" >&2;}
32019 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
32021 ol_enable_syslog=$ac_cv_func_openlog
32025 if test $ol_enable_sql != no ; then
32028 for ac_header in sql.h sqlext.h
32030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32032 echo "$as_me:$LINENO: checking for $ac_header" >&5
32033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32035 echo $ECHO_N "(cached) $ECHO_C" >&6
32037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32040 # Is the header compilable?
32041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 $ac_includes_default
32050 #include <$ac_header>
32052 rm -f conftest.$ac_objext
32053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32054 (eval $ac_compile) 2>conftest.er1
32056 grep -v '^ *+' conftest.er1 >conftest.err
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } &&
32061 { ac_try='test -z "$ac_c_werror_flag"
32062 || test ! -s conftest.err'
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest.$ac_objext'
32069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070 (eval $ac_try) 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 ac_header_compiler=yes
32076 echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32079 ac_header_compiler=no
32081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32083 echo "${ECHO_T}$ac_header_compiler" >&6
32085 # Is the header present?
32086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32088 cat >conftest.$ac_ext <<_ACEOF
32091 cat confdefs.h >>conftest.$ac_ext
32092 cat >>conftest.$ac_ext <<_ACEOF
32093 /* end confdefs.h. */
32094 #include <$ac_header>
32096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32099 grep -v '^ *+' conftest.er1 >conftest.err
32101 cat conftest.err >&5
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } >/dev/null; then
32104 if test -s conftest.err; then
32105 ac_cpp_err=$ac_c_preproc_warn_flag
32106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32113 if test -z "$ac_cpp_err"; then
32114 ac_header_preproc=yes
32116 echo "$as_me: failed program was:" >&5
32117 sed 's/^/| /' conftest.$ac_ext >&5
32119 ac_header_preproc=no
32121 rm -f conftest.err conftest.$ac_ext
32122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32123 echo "${ECHO_T}$ac_header_preproc" >&6
32125 # So? What about this header?
32126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32132 ac_header_preproc=yes
32135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32149 ## --------------------------------------------- ##
32150 ## Report this to <http://www.openldap.org/its/> ##
32151 ## --------------------------------------------- ##
32154 sed "s/^/$as_me: WARNING: /" >&2
32157 echo "$as_me:$LINENO: checking for $ac_header" >&5
32158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32160 echo $ECHO_N "(cached) $ECHO_C" >&6
32162 eval "$as_ac_Header=\$ac_header_preproc"
32164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32169 cat >>confdefs.h <<_ACEOF
32170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32175 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
32176 echo "$as_me: error: could not locate SQL headers" >&2;}
32177 { (exit 1); exit 1; }; }
32185 LIBS="$LTHREAD_LIBS"
32187 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
32188 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
32189 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
32190 echo $ECHO_N "(cached) $ECHO_C" >&6
32192 ac_check_lib_save_LIBS=$LIBS
32193 LIBS="-liodbc $LIBS"
32194 cat >conftest.$ac_ext <<_ACEOF
32197 cat confdefs.h >>conftest.$ac_ext
32198 cat >>conftest.$ac_ext <<_ACEOF
32199 /* end confdefs.h. */
32201 /* Override any gcc2 internal prototype to avoid an error. */
32205 /* We use char because int might match the return type of a gcc2
32206 builtin and then its argument prototype would still apply. */
32207 char SQLDriverConnect ();
32211 SQLDriverConnect ();
32216 rm -f conftest.$ac_objext conftest$ac_exeext
32217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32218 (eval $ac_link) 2>conftest.er1
32220 grep -v '^ *+' conftest.er1 >conftest.err
32222 cat conftest.err >&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } &&
32225 { ac_try='test -z "$ac_c_werror_flag"
32226 || test ! -s conftest.err'
32227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32228 (eval $ac_try) 2>&5
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; } &&
32232 { ac_try='test -s conftest$ac_exeext'
32233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32234 (eval $ac_try) 2>&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; }; then
32238 ac_cv_lib_iodbc_SQLDriverConnect=yes
32240 echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32243 ac_cv_lib_iodbc_SQLDriverConnect=no
32245 rm -f conftest.err conftest.$ac_objext \
32246 conftest$ac_exeext conftest.$ac_ext
32247 LIBS=$ac_check_lib_save_LIBS
32249 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32250 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32251 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32257 if test $have_iodbc = yes ; then
32258 ol_link_sql="-liodbc"
32260 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32261 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32262 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32263 echo $ECHO_N "(cached) $ECHO_C" >&6
32265 ac_check_lib_save_LIBS=$LIBS
32266 LIBS="-lodbc $LIBS"
32267 cat >conftest.$ac_ext <<_ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h. */
32274 /* Override any gcc2 internal prototype to avoid an error. */
32278 /* We use char because int might match the return type of a gcc2
32279 builtin and then its argument prototype would still apply. */
32280 char SQLDriverConnect ();
32284 SQLDriverConnect ();
32289 rm -f conftest.$ac_objext conftest$ac_exeext
32290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32291 (eval $ac_link) 2>conftest.er1
32293 grep -v '^ *+' conftest.er1 >conftest.err
32295 cat conftest.err >&5
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); } &&
32298 { ac_try='test -z "$ac_c_werror_flag"
32299 || test ! -s conftest.err'
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; } &&
32305 { ac_try='test -s conftest$ac_exeext'
32306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32307 (eval $ac_try) 2>&5
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); }; }; then
32311 ac_cv_lib_odbc_SQLDriverConnect=yes
32313 echo "$as_me: failed program was:" >&5
32314 sed 's/^/| /' conftest.$ac_ext >&5
32316 ac_cv_lib_odbc_SQLDriverConnect=no
32318 rm -f conftest.err conftest.$ac_objext \
32319 conftest$ac_exeext conftest.$ac_ext
32320 LIBS=$ac_check_lib_save_LIBS
32322 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32323 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32324 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32330 if test $have_odbc = yes ; then
32331 ol_link_sql="-lodbc"
32337 if test $ol_link_sql != no ; then
32338 SLAPD_SQL_LIBS="$ol_link_sql"
32340 elif test $ol_enable_sql != auto ; then
32341 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32342 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32343 { (exit 1); exit 1; }; }
32349 for ac_header in unicode/utypes.h
32351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32353 echo "$as_me:$LINENO: checking for $ac_header" >&5
32354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32356 echo $ECHO_N "(cached) $ECHO_C" >&6
32358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32361 # Is the header compilable?
32362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32364 cat >conftest.$ac_ext <<_ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32370 $ac_includes_default
32371 #include <$ac_header>
32373 rm -f conftest.$ac_objext
32374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32375 (eval $ac_compile) 2>conftest.er1
32377 grep -v '^ *+' conftest.er1 >conftest.err
32379 cat conftest.err >&5
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); } &&
32382 { ac_try='test -z "$ac_c_werror_flag"
32383 || test ! -s conftest.err'
32384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32385 (eval $ac_try) 2>&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); }; } &&
32389 { ac_try='test -s conftest.$ac_objext'
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; }; then
32395 ac_header_compiler=yes
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32400 ac_header_compiler=no
32402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32404 echo "${ECHO_T}$ac_header_compiler" >&6
32406 # Is the header present?
32407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32409 cat >conftest.$ac_ext <<_ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h. */
32415 #include <$ac_header>
32417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32420 grep -v '^ *+' conftest.er1 >conftest.err
32422 cat conftest.err >&5
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); } >/dev/null; then
32425 if test -s conftest.err; then
32426 ac_cpp_err=$ac_c_preproc_warn_flag
32427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32434 if test -z "$ac_cpp_err"; then
32435 ac_header_preproc=yes
32437 echo "$as_me: failed program was:" >&5
32438 sed 's/^/| /' conftest.$ac_ext >&5
32440 ac_header_preproc=no
32442 rm -f conftest.err conftest.$ac_ext
32443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32444 echo "${ECHO_T}$ac_header_preproc" >&6
32446 # So? What about this header?
32447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32453 ac_header_preproc=yes
32456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32470 ## --------------------------------------------- ##
32471 ## Report this to <http://www.openldap.org/its/> ##
32472 ## --------------------------------------------- ##
32475 sed "s/^/$as_me: WARNING: /" >&2
32478 echo "$as_me:$LINENO: checking for $ac_header" >&5
32479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32481 echo $ECHO_N "(cached) $ECHO_C" >&6
32483 eval "$as_ac_Header=\$ac_header_preproc"
32485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32490 cat >>confdefs.h <<_ACEOF
32491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32498 if test $ac_cv_header_unicode_utypes_h = yes ; then
32499 OL_ICULIBS="-licuuc -licudata"
32501 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32502 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32503 if test "${ol_cv_lib_icu+set}" = set; then
32504 echo $ECHO_N "(cached) $ECHO_C" >&6
32508 LIBS="$OL_ICULIBS $LIBS"
32509 cat >conftest.$ac_ext <<_ACEOF
32512 cat confdefs.h >>conftest.$ac_ext
32513 cat >>conftest.$ac_ext <<_ACEOF
32514 /* end confdefs.h. */
32516 #include <unicode/utypes.h>
32522 (void) u_errorName(0);
32528 rm -f conftest.$ac_objext conftest$ac_exeext
32529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32530 (eval $ac_link) 2>conftest.er1
32532 grep -v '^ *+' conftest.er1 >conftest.err
32534 cat conftest.err >&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); } &&
32537 { ac_try='test -z "$ac_c_werror_flag"
32538 || test ! -s conftest.err'
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; } &&
32544 { ac_try='test -s conftest$ac_exeext'
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; }; then
32552 echo "$as_me: failed program was:" >&5
32553 sed 's/^/| /' conftest.$ac_ext >&5
32557 rm -f conftest.err conftest.$ac_objext \
32558 conftest$ac_exeext conftest.$ac_ext
32562 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32563 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32565 if test $ol_cv_lib_icu != no ; then
32566 ol_icu="$OL_ICULIBS"
32568 cat >>confdefs.h <<\_ACEOF
32575 if test "$ol_icu" = no ; then
32576 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32577 echo "$as_me: WARNING: ICU not available" >&2;}
32584 if test $ol_with_cyrus_sasl != no ; then
32587 for ac_header in sasl/sasl.h sasl.h
32589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32591 echo "$as_me:$LINENO: checking for $ac_header" >&5
32592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32594 echo $ECHO_N "(cached) $ECHO_C" >&6
32596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32599 # Is the header compilable?
32600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32602 cat >conftest.$ac_ext <<_ACEOF
32605 cat confdefs.h >>conftest.$ac_ext
32606 cat >>conftest.$ac_ext <<_ACEOF
32607 /* end confdefs.h. */
32608 $ac_includes_default
32609 #include <$ac_header>
32611 rm -f conftest.$ac_objext
32612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32613 (eval $ac_compile) 2>conftest.er1
32615 grep -v '^ *+' conftest.er1 >conftest.err
32617 cat conftest.err >&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); } &&
32620 { ac_try='test -z "$ac_c_werror_flag"
32621 || test ! -s conftest.err'
32622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32623 (eval $ac_try) 2>&5
32625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 (exit $ac_status); }; } &&
32627 { ac_try='test -s conftest.$ac_objext'
32628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32629 (eval $ac_try) 2>&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); }; }; then
32633 ac_header_compiler=yes
32635 echo "$as_me: failed program was:" >&5
32636 sed 's/^/| /' conftest.$ac_ext >&5
32638 ac_header_compiler=no
32640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32642 echo "${ECHO_T}$ac_header_compiler" >&6
32644 # Is the header present?
32645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32647 cat >conftest.$ac_ext <<_ACEOF
32650 cat confdefs.h >>conftest.$ac_ext
32651 cat >>conftest.$ac_ext <<_ACEOF
32652 /* end confdefs.h. */
32653 #include <$ac_header>
32655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32658 grep -v '^ *+' conftest.er1 >conftest.err
32660 cat conftest.err >&5
32661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662 (exit $ac_status); } >/dev/null; then
32663 if test -s conftest.err; then
32664 ac_cpp_err=$ac_c_preproc_warn_flag
32665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32672 if test -z "$ac_cpp_err"; then
32673 ac_header_preproc=yes
32675 echo "$as_me: failed program was:" >&5
32676 sed 's/^/| /' conftest.$ac_ext >&5
32678 ac_header_preproc=no
32680 rm -f conftest.err conftest.$ac_ext
32681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32682 echo "${ECHO_T}$ac_header_preproc" >&6
32684 # So? What about this header?
32685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32691 ac_header_preproc=yes
32694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32708 ## --------------------------------------------- ##
32709 ## Report this to <http://www.openldap.org/its/> ##
32710 ## --------------------------------------------- ##
32713 sed "s/^/$as_me: WARNING: /" >&2
32716 echo "$as_me:$LINENO: checking for $ac_header" >&5
32717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32719 echo $ECHO_N "(cached) $ECHO_C" >&6
32721 eval "$as_ac_Header=\$ac_header_preproc"
32723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32728 cat >>confdefs.h <<_ACEOF
32729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32737 if test $ac_cv_header_sasl_sasl_h = yes ||
32738 test $ac_cv_header_sasl_h = yes; then
32739 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32740 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32741 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32742 echo $ECHO_N "(cached) $ECHO_C" >&6
32744 ac_check_lib_save_LIBS=$LIBS
32745 LIBS="-lsasl2 $LIBS"
32746 cat >conftest.$ac_ext <<_ACEOF
32749 cat confdefs.h >>conftest.$ac_ext
32750 cat >>conftest.$ac_ext <<_ACEOF
32751 /* end confdefs.h. */
32753 /* Override any gcc2 internal prototype to avoid an error. */
32757 /* We use char because int might match the return type of a gcc2
32758 builtin and then its argument prototype would still apply. */
32759 char sasl_client_init ();
32763 sasl_client_init ();
32768 rm -f conftest.$ac_objext conftest$ac_exeext
32769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32770 (eval $ac_link) 2>conftest.er1
32772 grep -v '^ *+' conftest.er1 >conftest.err
32774 cat conftest.err >&5
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); } &&
32777 { ac_try='test -z "$ac_c_werror_flag"
32778 || test ! -s conftest.err'
32779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32780 (eval $ac_try) 2>&5
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); }; } &&
32784 { ac_try='test -s conftest$ac_exeext'
32785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32786 (eval $ac_try) 2>&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); }; }; then
32790 ac_cv_lib_sasl2_sasl_client_init=yes
32792 echo "$as_me: failed program was:" >&5
32793 sed 's/^/| /' conftest.$ac_ext >&5
32795 ac_cv_lib_sasl2_sasl_client_init=no
32797 rm -f conftest.err conftest.$ac_objext \
32798 conftest$ac_exeext conftest.$ac_ext
32799 LIBS=$ac_check_lib_save_LIBS
32801 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32802 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32803 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32804 ol_link_sasl="-lsasl2"
32806 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32807 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32808 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32809 echo $ECHO_N "(cached) $ECHO_C" >&6
32811 ac_check_lib_save_LIBS=$LIBS
32812 LIBS="-lsasl $LIBS"
32813 cat >conftest.$ac_ext <<_ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h. */
32820 /* Override any gcc2 internal prototype to avoid an error. */
32824 /* We use char because int might match the return type of a gcc2
32825 builtin and then its argument prototype would still apply. */
32826 char sasl_client_init ();
32830 sasl_client_init ();
32835 rm -f conftest.$ac_objext conftest$ac_exeext
32836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32837 (eval $ac_link) 2>conftest.er1
32839 grep -v '^ *+' conftest.er1 >conftest.err
32841 cat conftest.err >&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } &&
32844 { ac_try='test -z "$ac_c_werror_flag"
32845 || test ! -s conftest.err'
32846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32847 (eval $ac_try) 2>&5
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; } &&
32851 { ac_try='test -s conftest$ac_exeext'
32852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32853 (eval $ac_try) 2>&5
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); }; }; then
32857 ac_cv_lib_sasl_sasl_client_init=yes
32859 echo "$as_me: failed program was:" >&5
32860 sed 's/^/| /' conftest.$ac_ext >&5
32862 ac_cv_lib_sasl_sasl_client_init=no
32864 rm -f conftest.err conftest.$ac_objext \
32865 conftest$ac_exeext conftest.$ac_ext
32866 LIBS=$ac_check_lib_save_LIBS
32868 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32869 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32870 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32871 ol_link_sasl="-lsasl"
32878 if test $ol_link_sasl = no ; then
32879 if test $ol_with_cyrus_sasl != auto ; then
32880 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32881 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32882 { (exit 1); exit 1; }; }
32884 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32885 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32886 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32887 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32888 if test $ol_link_tls = no ; then
32889 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32890 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32894 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32895 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32896 if test "${ol_cv_sasl_compat+set}" = set; then
32897 echo $ECHO_N "(cached) $ECHO_C" >&6
32900 cat >conftest.$ac_ext <<_ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h. */
32907 #ifdef HAVE_SASL_SASL_H
32908 #include <sasl/sasl.h>
32913 /* Require 2.1.15+ */
32914 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32915 char *__sasl_compat = "2.2+ or better okay (we guess)";
32916 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32917 && SASL_VERSION_STEP >=15
32918 char *__sasl_compat = "2.1.15+ or better okay";
32922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32923 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32924 ol_cv_sasl_compat=yes
32926 ol_cv_sasl_compat=no
32931 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32932 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32934 if test $ol_cv_sasl_compat = no ; then
32936 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32937 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32938 { (exit 1); exit 1; }; }
32942 cat >>confdefs.h <<\_ACEOF
32943 #define HAVE_CYRUS_SASL 1
32946 SASL_LIBS="$ol_link_sasl"
32947 if test $ol_enable_spasswd != no ; then
32948 ol_link_spasswd=yes
32951 ac_save_LIBS="$LIBS"
32952 LIBS="$LIBS $ol_link_sasl"
32953 echo "$as_me:$LINENO: checking for sasl_version" >&5
32954 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32955 if test "${ac_cv_func_sasl_version+set}" = set; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32958 cat >conftest.$ac_ext <<_ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h. */
32964 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32966 #define sasl_version innocuous_sasl_version
32968 /* System header to define __stub macros and hopefully few prototypes,
32969 which can conflict with char sasl_version (); below.
32970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32971 <limits.h> exists even on freestanding compilers. */
32974 # include <limits.h>
32976 # include <assert.h>
32979 #undef sasl_version
32981 /* Override any gcc2 internal prototype to avoid an error. */
32986 /* We use char because int might match the return type of a gcc2
32987 builtin and then its argument prototype would still apply. */
32988 char sasl_version ();
32989 /* The GNU C library defines this for functions which it implements
32990 to always fail with ENOSYS. Some functions are actually named
32991 something starting with __ and the normal name is an alias. */
32992 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32995 char (*f) () = sasl_version;
33004 return f != sasl_version;
33009 rm -f conftest.$ac_objext conftest$ac_exeext
33010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33011 (eval $ac_link) 2>conftest.er1
33013 grep -v '^ *+' conftest.er1 >conftest.err
33015 cat conftest.err >&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } &&
33018 { ac_try='test -z "$ac_c_werror_flag"
33019 || test ! -s conftest.err'
33020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021 (eval $ac_try) 2>&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; } &&
33025 { ac_try='test -s conftest$ac_exeext'
33026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33027 (eval $ac_try) 2>&5
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); }; }; then
33031 ac_cv_func_sasl_version=yes
33033 echo "$as_me: failed program was:" >&5
33034 sed 's/^/| /' conftest.$ac_ext >&5
33036 ac_cv_func_sasl_version=no
33038 rm -f conftest.err conftest.$ac_objext \
33039 conftest$ac_exeext conftest.$ac_ext
33041 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
33042 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
33043 if test $ac_cv_func_sasl_version = yes; then
33045 cat >>confdefs.h <<\_ACEOF
33046 #define HAVE_SASL_VERSION 1
33051 LIBS="$ac_save_LIBS"
33057 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
33058 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
33059 if test $ol_link_tls = no ; then
33060 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
33061 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
33065 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
33067 if test -r /dev/urandom ; then
33068 dev="/dev/urandom";
33069 elif test -r /idev/urandom ; then
33070 dev="/idev/urandom";
33071 elif test -r /dev/srandom ; then
33072 dev="/dev/srandom";
33073 elif test -r /dev/random ; then
33075 elif test -r /idev/random ; then
33076 dev="/idev/random";
33079 if test $dev != no ; then
33081 cat >>confdefs.h <<_ACEOF
33082 #define URANDOM_DEVICE "$dev"
33089 if test $ol_with_fetch != no ; then
33091 LIBS="-lfetch -lcom_err $LIBS"
33092 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33093 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33094 if test "${ol_cv_lib_fetch+set}" = set; then
33095 echo $ECHO_N "(cached) $ECHO_C" >&6
33098 cat >conftest.$ac_ext <<_ACEOF
33101 cat confdefs.h >>conftest.$ac_ext
33102 cat >>conftest.$ac_ext <<_ACEOF
33103 /* end confdefs.h. */
33105 #include <sys/param.h>
33111 struct url *u = fetchParseURL("file:///");
33116 rm -f conftest.$ac_objext conftest$ac_exeext
33117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33118 (eval $ac_link) 2>conftest.er1
33120 grep -v '^ *+' conftest.er1 >conftest.err
33122 cat conftest.err >&5
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); } &&
33125 { ac_try='test -z "$ac_c_werror_flag"
33126 || test ! -s conftest.err'
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest$ac_exeext'
33133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134 (eval $ac_try) 2>&5
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 ol_cv_lib_fetch=yes
33140 echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33145 rm -f conftest.err conftest.$ac_objext \
33146 conftest$ac_exeext conftest.$ac_ext
33148 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33149 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33151 if test $ol_cv_lib_fetch != no ; then
33152 ol_link_fetch="-lfetch -lcom_err"
33154 cat >>confdefs.h <<\_ACEOF
33155 #define HAVE_FETCH 1
33161 if test $ol_cv_lib_fetch != no ; then
33162 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33163 ol_link_fetch=freebsd
33165 elif test $ol_with_fetch != auto ; then
33166 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33167 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33168 { (exit 1); exit 1; }; }
33172 if test $ol_enable_crypt != no ; then
33174 LIBS="$TLS_LIBS $LIBS"
33176 echo "$as_me:$LINENO: checking for crypt" >&5
33177 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33178 if test "${ac_cv_func_crypt+set}" = set; then
33179 echo $ECHO_N "(cached) $ECHO_C" >&6
33181 cat >conftest.$ac_ext <<_ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h. */
33187 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33189 #define crypt innocuous_crypt
33191 /* System header to define __stub macros and hopefully few prototypes,
33192 which can conflict with char crypt (); below.
33193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33194 <limits.h> exists even on freestanding compilers. */
33197 # include <limits.h>
33199 # include <assert.h>
33204 /* Override any gcc2 internal prototype to avoid an error. */
33209 /* We use char because int might match the return type of a gcc2
33210 builtin and then its argument prototype would still apply. */
33212 /* The GNU C library defines this for functions which it implements
33213 to always fail with ENOSYS. Some functions are actually named
33214 something starting with __ and the normal name is an alias. */
33215 #if defined (__stub_crypt) || defined (__stub___crypt)
33218 char (*f) () = crypt;
33232 rm -f conftest.$ac_objext conftest$ac_exeext
33233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33234 (eval $ac_link) 2>conftest.er1
33236 grep -v '^ *+' conftest.er1 >conftest.err
33238 cat conftest.err >&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); } &&
33241 { ac_try='test -z "$ac_c_werror_flag"
33242 || test ! -s conftest.err'
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; } &&
33248 { ac_try='test -s conftest$ac_exeext'
33249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33250 (eval $ac_try) 2>&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_func_crypt=yes
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33259 ac_cv_func_crypt=no
33261 rm -f conftest.err conftest.$ac_objext \
33262 conftest$ac_exeext conftest.$ac_ext
33264 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33265 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33266 if test $ac_cv_func_crypt = yes; then
33271 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33272 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33273 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33274 echo $ECHO_N "(cached) $ECHO_C" >&6
33276 ac_check_lib_save_LIBS=$LIBS
33277 LIBS="-lcrypt $LIBS"
33278 cat >conftest.$ac_ext <<_ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h. */
33285 /* Override any gcc2 internal prototype to avoid an error. */
33289 /* We use char because int might match the return type of a gcc2
33290 builtin and then its argument prototype would still apply. */
33300 rm -f conftest.$ac_objext conftest$ac_exeext
33301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33302 (eval $ac_link) 2>conftest.er1
33304 grep -v '^ *+' conftest.er1 >conftest.err
33306 cat conftest.err >&5
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); } &&
33309 { ac_try='test -z "$ac_c_werror_flag"
33310 || test ! -s conftest.err'
33311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312 (eval $ac_try) 2>&5
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; } &&
33316 { ac_try='test -s conftest$ac_exeext'
33317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33318 (eval $ac_try) 2>&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); }; }; then
33322 ac_cv_lib_crypt_crypt=yes
33324 echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33327 ac_cv_lib_crypt_crypt=no
33329 rm -f conftest.err conftest.$ac_objext \
33330 conftest$ac_exeext conftest.$ac_ext
33331 LIBS=$ac_check_lib_save_LIBS
33333 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33334 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33335 if test $ac_cv_lib_crypt_crypt = yes; then
33336 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33347 if test $have_crypt = yes ; then
33349 cat >>confdefs.h <<\_ACEOF
33350 #define HAVE_CRYPT 1
33354 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33355 echo "$as_me: WARNING: could not find crypt" >&2;}
33356 if test $ol_enable_crypt = yes ; then
33357 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33358 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33359 { (exit 1); exit 1; }; }
33362 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33363 echo "$as_me: WARNING: disabling crypt support" >&2;}
33368 if test $ol_enable_proctitle != no ; then
33369 echo "$as_me:$LINENO: checking for setproctitle" >&5
33370 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33371 if test "${ac_cv_func_setproctitle+set}" = set; then
33372 echo $ECHO_N "(cached) $ECHO_C" >&6
33374 cat >conftest.$ac_ext <<_ACEOF
33377 cat confdefs.h >>conftest.$ac_ext
33378 cat >>conftest.$ac_ext <<_ACEOF
33379 /* end confdefs.h. */
33380 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33382 #define setproctitle innocuous_setproctitle
33384 /* System header to define __stub macros and hopefully few prototypes,
33385 which can conflict with char setproctitle (); below.
33386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33387 <limits.h> exists even on freestanding compilers. */
33390 # include <limits.h>
33392 # include <assert.h>
33395 #undef setproctitle
33397 /* Override any gcc2 internal prototype to avoid an error. */
33402 /* We use char because int might match the return type of a gcc2
33403 builtin and then its argument prototype would still apply. */
33404 char setproctitle ();
33405 /* The GNU C library defines this for functions which it implements
33406 to always fail with ENOSYS. Some functions are actually named
33407 something starting with __ and the normal name is an alias. */
33408 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33411 char (*f) () = setproctitle;
33420 return f != setproctitle;
33425 rm -f conftest.$ac_objext conftest$ac_exeext
33426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33427 (eval $ac_link) 2>conftest.er1
33429 grep -v '^ *+' conftest.er1 >conftest.err
33431 cat conftest.err >&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } &&
33434 { ac_try='test -z "$ac_c_werror_flag"
33435 || test ! -s conftest.err'
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest$ac_exeext'
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; }; then
33447 ac_cv_func_setproctitle=yes
33449 echo "$as_me: failed program was:" >&5
33450 sed 's/^/| /' conftest.$ac_ext >&5
33452 ac_cv_func_setproctitle=no
33454 rm -f conftest.err conftest.$ac_objext \
33455 conftest$ac_exeext conftest.$ac_ext
33457 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33458 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33459 if test $ac_cv_func_setproctitle = yes; then
33460 have_setproctitle=yes
33463 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33464 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33465 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33466 echo $ECHO_N "(cached) $ECHO_C" >&6
33468 ac_check_lib_save_LIBS=$LIBS
33469 LIBS="-lutil $LIBS"
33470 cat >conftest.$ac_ext <<_ACEOF
33473 cat confdefs.h >>conftest.$ac_ext
33474 cat >>conftest.$ac_ext <<_ACEOF
33475 /* end confdefs.h. */
33477 /* Override any gcc2 internal prototype to avoid an error. */
33481 /* We use char because int might match the return type of a gcc2
33482 builtin and then its argument prototype would still apply. */
33483 char setproctitle ();
33492 rm -f conftest.$ac_objext conftest$ac_exeext
33493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33494 (eval $ac_link) 2>conftest.er1
33496 grep -v '^ *+' conftest.er1 >conftest.err
33498 cat conftest.err >&5
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } &&
33501 { ac_try='test -z "$ac_c_werror_flag"
33502 || test ! -s conftest.err'
33503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33504 (eval $ac_try) 2>&5
33506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507 (exit $ac_status); }; } &&
33508 { ac_try='test -s conftest$ac_exeext'
33509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33510 (eval $ac_try) 2>&5
33512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513 (exit $ac_status); }; }; then
33514 ac_cv_lib_util_setproctitle=yes
33516 echo "$as_me: failed program was:" >&5
33517 sed 's/^/| /' conftest.$ac_ext >&5
33519 ac_cv_lib_util_setproctitle=no
33521 rm -f conftest.err conftest.$ac_objext \
33522 conftest$ac_exeext conftest.$ac_ext
33523 LIBS=$ac_check_lib_save_LIBS
33525 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33526 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33527 if test $ac_cv_lib_util_setproctitle = yes; then
33528 have_setproctitle=yes
33529 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33531 have_setproctitle=no
33533 "setproctitle.$ac_objext" | \
33534 *" setproctitle.$ac_objext" | \
33535 "setproctitle.$ac_objext "* | \
33536 *" setproctitle.$ac_objext "* ) ;;
33537 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33540 LIBSRCS="$LIBSRCS setproctitle.c"
33546 if test $have_setproctitle = yes ; then
33548 cat >>confdefs.h <<\_ACEOF
33549 #define HAVE_SETPROCTITLE 1
33555 if test $ol_enable_slp != no ; then
33557 for ac_header in slp.h
33559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33561 echo "$as_me:$LINENO: checking for $ac_header" >&5
33562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33564 echo $ECHO_N "(cached) $ECHO_C" >&6
33566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33569 # Is the header compilable?
33570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33572 cat >conftest.$ac_ext <<_ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h. */
33578 $ac_includes_default
33579 #include <$ac_header>
33581 rm -f conftest.$ac_objext
33582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33583 (eval $ac_compile) 2>conftest.er1
33585 grep -v '^ *+' conftest.er1 >conftest.err
33587 cat conftest.err >&5
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); } &&
33590 { ac_try='test -z "$ac_c_werror_flag"
33591 || test ! -s conftest.err'
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; } &&
33597 { ac_try='test -s conftest.$ac_objext'
33598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33599 (eval $ac_try) 2>&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; }; then
33603 ac_header_compiler=yes
33605 echo "$as_me: failed program was:" >&5
33606 sed 's/^/| /' conftest.$ac_ext >&5
33608 ac_header_compiler=no
33610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33612 echo "${ECHO_T}$ac_header_compiler" >&6
33614 # Is the header present?
33615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33617 cat >conftest.$ac_ext <<_ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33623 #include <$ac_header>
33625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33628 grep -v '^ *+' conftest.er1 >conftest.err
33630 cat conftest.err >&5
33631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 (exit $ac_status); } >/dev/null; then
33633 if test -s conftest.err; then
33634 ac_cpp_err=$ac_c_preproc_warn_flag
33635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33642 if test -z "$ac_cpp_err"; then
33643 ac_header_preproc=yes
33645 echo "$as_me: failed program was:" >&5
33646 sed 's/^/| /' conftest.$ac_ext >&5
33648 ac_header_preproc=no
33650 rm -f conftest.err conftest.$ac_ext
33651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33652 echo "${ECHO_T}$ac_header_preproc" >&6
33654 # So? What about this header?
33655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33661 ac_header_preproc=yes
33664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33678 ## --------------------------------------------- ##
33679 ## Report this to <http://www.openldap.org/its/> ##
33680 ## --------------------------------------------- ##
33683 sed "s/^/$as_me: WARNING: /" >&2
33686 echo "$as_me:$LINENO: checking for $ac_header" >&5
33687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33691 eval "$as_ac_Header=\$ac_header_preproc"
33693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33698 cat >>confdefs.h <<_ACEOF
33699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33707 if test $ac_cv_header_slp_h = yes ; then
33708 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33709 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33710 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33713 ac_check_lib_save_LIBS=$LIBS
33715 cat >conftest.$ac_ext <<_ACEOF
33718 cat confdefs.h >>conftest.$ac_ext
33719 cat >>conftest.$ac_ext <<_ACEOF
33720 /* end confdefs.h. */
33722 /* Override any gcc2 internal prototype to avoid an error. */
33726 /* We use char because int might match the return type of a gcc2
33727 builtin and then its argument prototype would still apply. */
33737 rm -f conftest.$ac_objext conftest$ac_exeext
33738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33739 (eval $ac_link) 2>conftest.er1
33741 grep -v '^ *+' conftest.er1 >conftest.err
33743 cat conftest.err >&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } &&
33746 { ac_try='test -z "$ac_c_werror_flag"
33747 || test ! -s conftest.err'
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; } &&
33753 { ac_try='test -s conftest$ac_exeext'
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33759 ac_cv_lib_slp_SLPOpen=yes
33761 echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33764 ac_cv_lib_slp_SLPOpen=no
33766 rm -f conftest.err conftest.$ac_objext \
33767 conftest$ac_exeext conftest.$ac_ext
33768 LIBS=$ac_check_lib_save_LIBS
33770 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33771 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33772 if test $ac_cv_lib_slp_SLPOpen = yes; then
33778 if test $have_slp = yes ; then
33780 cat >>confdefs.h <<\_ACEOF
33784 SLAPD_SLP_LIBS=-lslp
33787 elif test $ol_enable_slp = yes ; then
33788 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33789 echo "$as_me: error: SLP not found" >&2;}
33790 { (exit 1); exit 1; }; }
33795 echo "$as_me:$LINENO: checking for mode_t" >&5
33796 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33797 if test "${ac_cv_type_mode_t+set}" = set; then
33798 echo $ECHO_N "(cached) $ECHO_C" >&6
33800 cat >conftest.$ac_ext <<_ACEOF
33803 cat confdefs.h >>conftest.$ac_ext
33804 cat >>conftest.$ac_ext <<_ACEOF
33805 /* end confdefs.h. */
33806 $ac_includes_default
33812 if (sizeof (mode_t))
33818 rm -f conftest.$ac_objext
33819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33820 (eval $ac_compile) 2>conftest.er1
33822 grep -v '^ *+' conftest.er1 >conftest.err
33824 cat conftest.err >&5
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); } &&
33827 { ac_try='test -z "$ac_c_werror_flag"
33828 || test ! -s conftest.err'
33829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33830 (eval $ac_try) 2>&5
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); }; } &&
33834 { ac_try='test -s conftest.$ac_objext'
33835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33836 (eval $ac_try) 2>&5
33838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839 (exit $ac_status); }; }; then
33840 ac_cv_type_mode_t=yes
33842 echo "$as_me: failed program was:" >&5
33843 sed 's/^/| /' conftest.$ac_ext >&5
33845 ac_cv_type_mode_t=no
33847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33849 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33850 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33851 if test $ac_cv_type_mode_t = yes; then
33855 cat >>confdefs.h <<_ACEOF
33861 echo "$as_me:$LINENO: checking for off_t" >&5
33862 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33863 if test "${ac_cv_type_off_t+set}" = set; then
33864 echo $ECHO_N "(cached) $ECHO_C" >&6
33866 cat >conftest.$ac_ext <<_ACEOF
33869 cat confdefs.h >>conftest.$ac_ext
33870 cat >>conftest.$ac_ext <<_ACEOF
33871 /* end confdefs.h. */
33872 $ac_includes_default
33878 if (sizeof (off_t))
33884 rm -f conftest.$ac_objext
33885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33886 (eval $ac_compile) 2>conftest.er1
33888 grep -v '^ *+' conftest.er1 >conftest.err
33890 cat conftest.err >&5
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); } &&
33893 { ac_try='test -z "$ac_c_werror_flag"
33894 || test ! -s conftest.err'
33895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33896 (eval $ac_try) 2>&5
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); }; } &&
33900 { ac_try='test -s conftest.$ac_objext'
33901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33902 (eval $ac_try) 2>&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; }; then
33906 ac_cv_type_off_t=yes
33908 echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33911 ac_cv_type_off_t=no
33913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33915 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33916 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33917 if test $ac_cv_type_off_t = yes; then
33921 cat >>confdefs.h <<_ACEOF
33927 echo "$as_me:$LINENO: checking for pid_t" >&5
33928 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33929 if test "${ac_cv_type_pid_t+set}" = set; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33932 cat >conftest.$ac_ext <<_ACEOF
33935 cat confdefs.h >>conftest.$ac_ext
33936 cat >>conftest.$ac_ext <<_ACEOF
33937 /* end confdefs.h. */
33938 $ac_includes_default
33944 if (sizeof (pid_t))
33950 rm -f conftest.$ac_objext
33951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33952 (eval $ac_compile) 2>conftest.er1
33954 grep -v '^ *+' conftest.er1 >conftest.err
33956 cat conftest.err >&5
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); } &&
33959 { ac_try='test -z "$ac_c_werror_flag"
33960 || test ! -s conftest.err'
33961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 (eval $ac_try) 2>&5
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; } &&
33966 { ac_try='test -s conftest.$ac_objext'
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; }; then
33972 ac_cv_type_pid_t=yes
33974 echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33977 ac_cv_type_pid_t=no
33979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33981 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33982 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33983 if test $ac_cv_type_pid_t = yes; then
33987 cat >>confdefs.h <<_ACEOF
33993 echo "$as_me:$LINENO: checking for ssize_t" >&5
33994 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33995 if test "${ac_cv_type_ssize_t+set}" = set; then
33996 echo $ECHO_N "(cached) $ECHO_C" >&6
33998 cat >conftest.$ac_ext <<_ACEOF
34001 cat confdefs.h >>conftest.$ac_ext
34002 cat >>conftest.$ac_ext <<_ACEOF
34003 /* end confdefs.h. */
34004 $ac_includes_default
34010 if (sizeof (ssize_t))
34016 rm -f conftest.$ac_objext
34017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34018 (eval $ac_compile) 2>conftest.er1
34020 grep -v '^ *+' conftest.er1 >conftest.err
34022 cat conftest.err >&5
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); } &&
34025 { ac_try='test -z "$ac_c_werror_flag"
34026 || test ! -s conftest.err'
34027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34028 (eval $ac_try) 2>&5
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); }; } &&
34032 { ac_try='test -s conftest.$ac_objext'
34033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34034 (eval $ac_try) 2>&5
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; }; then
34038 ac_cv_type_ssize_t=yes
34040 echo "$as_me: failed program was:" >&5
34041 sed 's/^/| /' conftest.$ac_ext >&5
34043 ac_cv_type_ssize_t=no
34045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34047 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34048 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34049 if test $ac_cv_type_ssize_t = yes; then
34053 cat >>confdefs.h <<_ACEOF
34054 #define ssize_t signed int
34059 echo "$as_me:$LINENO: checking for caddr_t" >&5
34060 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
34061 if test "${ac_cv_type_caddr_t+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34064 cat >conftest.$ac_ext <<_ACEOF
34067 cat confdefs.h >>conftest.$ac_ext
34068 cat >>conftest.$ac_ext <<_ACEOF
34069 /* end confdefs.h. */
34070 $ac_includes_default
34076 if (sizeof (caddr_t))
34082 rm -f conftest.$ac_objext
34083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34084 (eval $ac_compile) 2>conftest.er1
34086 grep -v '^ *+' conftest.er1 >conftest.err
34088 cat conftest.err >&5
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); } &&
34091 { ac_try='test -z "$ac_c_werror_flag"
34092 || test ! -s conftest.err'
34093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34094 (eval $ac_try) 2>&5
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); }; } &&
34098 { ac_try='test -s conftest.$ac_objext'
34099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100 (eval $ac_try) 2>&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; }; then
34104 ac_cv_type_caddr_t=yes
34106 echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34109 ac_cv_type_caddr_t=no
34111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34113 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34114 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34115 if test $ac_cv_type_caddr_t = yes; then
34119 cat >>confdefs.h <<_ACEOF
34120 #define caddr_t char *
34125 echo "$as_me:$LINENO: checking for size_t" >&5
34126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34127 if test "${ac_cv_type_size_t+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34130 cat >conftest.$ac_ext <<_ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h. */
34136 $ac_includes_default
34142 if (sizeof (size_t))
34148 rm -f conftest.$ac_objext
34149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34150 (eval $ac_compile) 2>conftest.er1
34152 grep -v '^ *+' conftest.er1 >conftest.err
34154 cat conftest.err >&5
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); } &&
34157 { ac_try='test -z "$ac_c_werror_flag"
34158 || test ! -s conftest.err'
34159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160 (eval $ac_try) 2>&5
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; } &&
34164 { ac_try='test -s conftest.$ac_objext'
34165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34166 (eval $ac_try) 2>&5
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); }; }; then
34170 ac_cv_type_size_t=yes
34172 echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34175 ac_cv_type_size_t=no
34177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34179 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34180 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34181 if test $ac_cv_type_size_t = yes; then
34185 cat >>confdefs.h <<_ACEOF
34186 #define size_t unsigned
34192 echo "$as_me:$LINENO: checking for long long" >&5
34193 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34194 if test "${ac_cv_type_long_long+set}" = set; then
34195 echo $ECHO_N "(cached) $ECHO_C" >&6
34197 cat >conftest.$ac_ext <<_ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h. */
34203 $ac_includes_default
34207 if ((long long *) 0)
34209 if (sizeof (long long))
34215 rm -f conftest.$ac_objext
34216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34217 (eval $ac_compile) 2>conftest.er1
34219 grep -v '^ *+' conftest.er1 >conftest.err
34221 cat conftest.err >&5
34222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223 (exit $ac_status); } &&
34224 { ac_try='test -z "$ac_c_werror_flag"
34225 || test ! -s conftest.err'
34226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34227 (eval $ac_try) 2>&5
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); }; } &&
34231 { ac_try='test -s conftest.$ac_objext'
34232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233 (eval $ac_try) 2>&5
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; }; then
34237 ac_cv_type_long_long=yes
34239 echo "$as_me: failed program was:" >&5
34240 sed 's/^/| /' conftest.$ac_ext >&5
34242 ac_cv_type_long_long=no
34244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34246 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34247 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34248 if test $ac_cv_type_long_long = yes; then
34250 cat >>confdefs.h <<_ACEOF
34251 #define HAVE_LONG_LONG 1
34257 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34258 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34259 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34260 echo $ECHO_N "(cached) $ECHO_C" >&6
34262 cat >conftest.$ac_ext <<_ACEOF
34265 cat confdefs.h >>conftest.$ac_ext
34266 cat >>conftest.$ac_ext <<_ACEOF
34267 /* end confdefs.h. */
34268 $ac_includes_default
34272 if ((ptrdiff_t *) 0)
34274 if (sizeof (ptrdiff_t))
34280 rm -f conftest.$ac_objext
34281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34282 (eval $ac_compile) 2>conftest.er1
34284 grep -v '^ *+' conftest.er1 >conftest.err
34286 cat conftest.err >&5
34287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 (exit $ac_status); } &&
34289 { ac_try='test -z "$ac_c_werror_flag"
34290 || test ! -s conftest.err'
34291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34292 (eval $ac_try) 2>&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); }; } &&
34296 { ac_try='test -s conftest.$ac_objext'
34297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34298 (eval $ac_try) 2>&5
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); }; }; then
34302 ac_cv_type_ptrdiff_t=yes
34304 echo "$as_me: failed program was:" >&5
34305 sed 's/^/| /' conftest.$ac_ext >&5
34307 ac_cv_type_ptrdiff_t=no
34309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34311 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34312 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34313 if test $ac_cv_type_ptrdiff_t = yes; then
34315 cat >>confdefs.h <<_ACEOF
34316 #define HAVE_PTRDIFF_T 1
34323 echo "$as_me:$LINENO: checking for socklen_t" >&5
34324 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34325 if test "${ac_cv_type_socklen_t+set}" = set; then
34326 echo $ECHO_N "(cached) $ECHO_C" >&6
34328 cat >conftest.$ac_ext <<_ACEOF
34331 cat confdefs.h >>conftest.$ac_ext
34332 cat >>conftest.$ac_ext <<_ACEOF
34333 /* end confdefs.h. */
34334 $ac_includes_default
34335 #ifdef HAVE_SYS_SOCKET_H
34336 #include <sys/socket.h>
34343 if ((socklen_t *) 0)
34345 if (sizeof (socklen_t))
34351 rm -f conftest.$ac_objext
34352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34353 (eval $ac_compile) 2>conftest.er1
34355 grep -v '^ *+' conftest.er1 >conftest.err
34357 cat conftest.err >&5
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); } &&
34360 { ac_try='test -z "$ac_c_werror_flag"
34361 || test ! -s conftest.err'
34362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34363 (eval $ac_try) 2>&5
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); }; } &&
34367 { ac_try='test -s conftest.$ac_objext'
34368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34369 (eval $ac_try) 2>&5
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); }; }; then
34373 ac_cv_type_socklen_t=yes
34375 echo "$as_me: failed program was:" >&5
34376 sed 's/^/| /' conftest.$ac_ext >&5
34378 ac_cv_type_socklen_t=no
34380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34382 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34383 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34384 if test $ac_cv_type_socklen_t = yes; then
34388 cat >>confdefs.h <<_ACEOF
34389 #define socklen_t int
34395 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34396 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34397 if test "${ac_cv_type_signal+set}" = set; then
34398 echo $ECHO_N "(cached) $ECHO_C" >&6
34400 cat >conftest.$ac_ext <<_ACEOF
34403 cat confdefs.h >>conftest.$ac_ext
34404 cat >>conftest.$ac_ext <<_ACEOF
34405 /* end confdefs.h. */
34406 #include <sys/types.h>
34407 #include <signal.h>
34412 extern "C" void (*signal (int, void (*)(int)))(int);
34414 void (*signal ()) ();
34425 rm -f conftest.$ac_objext
34426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34427 (eval $ac_compile) 2>conftest.er1
34429 grep -v '^ *+' conftest.er1 >conftest.err
34431 cat conftest.err >&5
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); } &&
34434 { ac_try='test -z "$ac_c_werror_flag"
34435 || test ! -s conftest.err'
34436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34437 (eval $ac_try) 2>&5
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); }; } &&
34441 { ac_try='test -s conftest.$ac_objext'
34442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34443 (eval $ac_try) 2>&5
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); }; }; then
34447 ac_cv_type_signal=void
34449 echo "$as_me: failed program was:" >&5
34450 sed 's/^/| /' conftest.$ac_ext >&5
34452 ac_cv_type_signal=int
34454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34456 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34457 echo "${ECHO_T}$ac_cv_type_signal" >&6
34459 cat >>confdefs.h <<_ACEOF
34460 #define RETSIGTYPE $ac_cv_type_signal
34465 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34466 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34467 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34468 echo $ECHO_N "(cached) $ECHO_C" >&6
34470 cat >conftest.$ac_ext <<_ACEOF
34473 cat confdefs.h >>conftest.$ac_ext
34474 cat >>conftest.$ac_ext <<_ACEOF
34475 /* end confdefs.h. */
34476 $ac_includes_default
34477 #include <signal.h>
34483 if ((sig_atomic_t *) 0)
34485 if (sizeof (sig_atomic_t))
34491 rm -f conftest.$ac_objext
34492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34493 (eval $ac_compile) 2>conftest.er1
34495 grep -v '^ *+' conftest.er1 >conftest.err
34497 cat conftest.err >&5
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); } &&
34500 { ac_try='test -z "$ac_c_werror_flag"
34501 || test ! -s conftest.err'
34502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34503 (eval $ac_try) 2>&5
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); }; } &&
34507 { ac_try='test -s conftest.$ac_objext'
34508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34509 (eval $ac_try) 2>&5
34511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 (exit $ac_status); }; }; then
34513 ac_cv_type_sig_atomic_t=yes
34515 echo "$as_me: failed program was:" >&5
34516 sed 's/^/| /' conftest.$ac_ext >&5
34518 ac_cv_type_sig_atomic_t=no
34520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34522 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34523 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34524 if test $ac_cv_type_sig_atomic_t = yes; then
34528 cat >>confdefs.h <<_ACEOF
34529 #define sig_atomic_t int
34535 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34536 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34537 if test "${ac_cv_type_uid_t+set}" = set; then
34538 echo $ECHO_N "(cached) $ECHO_C" >&6
34540 cat >conftest.$ac_ext <<_ACEOF
34543 cat confdefs.h >>conftest.$ac_ext
34544 cat >>conftest.$ac_ext <<_ACEOF
34545 /* end confdefs.h. */
34546 #include <sys/types.h>
34549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34550 $EGREP "uid_t" >/dev/null 2>&1; then
34551 ac_cv_type_uid_t=yes
34553 ac_cv_type_uid_t=no
34558 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34559 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34560 if test $ac_cv_type_uid_t = no; then
34562 cat >>confdefs.h <<\_ACEOF
34567 cat >>confdefs.h <<\_ACEOF
34574 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34575 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34576 if test "${ac_cv_header_time+set}" = set; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34579 cat >conftest.$ac_ext <<_ACEOF
34582 cat confdefs.h >>conftest.$ac_ext
34583 cat >>conftest.$ac_ext <<_ACEOF
34584 /* end confdefs.h. */
34585 #include <sys/types.h>
34586 #include <sys/time.h>
34592 if ((struct tm *) 0)
34598 rm -f conftest.$ac_objext
34599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34600 (eval $ac_compile) 2>conftest.er1
34602 grep -v '^ *+' conftest.er1 >conftest.err
34604 cat conftest.err >&5
34605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606 (exit $ac_status); } &&
34607 { ac_try='test -z "$ac_c_werror_flag"
34608 || test ! -s conftest.err'
34609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34610 (eval $ac_try) 2>&5
34612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613 (exit $ac_status); }; } &&
34614 { ac_try='test -s conftest.$ac_objext'
34615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34616 (eval $ac_try) 2>&5
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); }; }; then
34620 ac_cv_header_time=yes
34622 echo "$as_me: failed program was:" >&5
34623 sed 's/^/| /' conftest.$ac_ext >&5
34625 ac_cv_header_time=no
34627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34629 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34630 echo "${ECHO_T}$ac_cv_header_time" >&6
34631 if test $ac_cv_header_time = yes; then
34633 cat >>confdefs.h <<\_ACEOF
34634 #define TIME_WITH_SYS_TIME 1
34639 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34640 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34641 if test "${ac_cv_struct_tm+set}" = set; then
34642 echo $ECHO_N "(cached) $ECHO_C" >&6
34644 cat >conftest.$ac_ext <<_ACEOF
34647 cat confdefs.h >>conftest.$ac_ext
34648 cat >>conftest.$ac_ext <<_ACEOF
34649 /* end confdefs.h. */
34650 #include <sys/types.h>
34656 struct tm *tp; tp->tm_sec;
34661 rm -f conftest.$ac_objext
34662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34663 (eval $ac_compile) 2>conftest.er1
34665 grep -v '^ *+' conftest.er1 >conftest.err
34667 cat conftest.err >&5
34668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669 (exit $ac_status); } &&
34670 { ac_try='test -z "$ac_c_werror_flag"
34671 || test ! -s conftest.err'
34672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34673 (eval $ac_try) 2>&5
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; } &&
34677 { ac_try='test -s conftest.$ac_objext'
34678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34679 (eval $ac_try) 2>&5
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); }; }; then
34683 ac_cv_struct_tm=time.h
34685 echo "$as_me: failed program was:" >&5
34686 sed 's/^/| /' conftest.$ac_ext >&5
34688 ac_cv_struct_tm=sys/time.h
34690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34692 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34693 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34694 if test $ac_cv_struct_tm = sys/time.h; then
34696 cat >>confdefs.h <<\_ACEOF
34697 #define TM_IN_SYS_TIME 1
34702 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34703 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34704 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34705 echo $ECHO_N "(cached) $ECHO_C" >&6
34707 cat >conftest.$ac_ext <<_ACEOF
34710 cat confdefs.h >>conftest.$ac_ext
34711 cat >>conftest.$ac_ext <<_ACEOF
34712 /* end confdefs.h. */
34713 $ac_includes_default
34717 static struct stat ac_aggr;
34718 if (ac_aggr.st_blksize)
34724 rm -f conftest.$ac_objext
34725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34726 (eval $ac_compile) 2>conftest.er1
34728 grep -v '^ *+' conftest.er1 >conftest.err
34730 cat conftest.err >&5
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); } &&
34733 { ac_try='test -z "$ac_c_werror_flag"
34734 || test ! -s conftest.err'
34735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736 (eval $ac_try) 2>&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; } &&
34740 { ac_try='test -s conftest.$ac_objext'
34741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742 (eval $ac_try) 2>&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); }; }; then
34746 ac_cv_member_struct_stat_st_blksize=yes
34748 echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34751 cat >conftest.$ac_ext <<_ACEOF
34754 cat confdefs.h >>conftest.$ac_ext
34755 cat >>conftest.$ac_ext <<_ACEOF
34756 /* end confdefs.h. */
34757 $ac_includes_default
34761 static struct stat ac_aggr;
34762 if (sizeof ac_aggr.st_blksize)
34768 rm -f conftest.$ac_objext
34769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34770 (eval $ac_compile) 2>conftest.er1
34772 grep -v '^ *+' conftest.er1 >conftest.err
34774 cat conftest.err >&5
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); } &&
34777 { ac_try='test -z "$ac_c_werror_flag"
34778 || test ! -s conftest.err'
34779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34780 (eval $ac_try) 2>&5
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); }; } &&
34784 { ac_try='test -s conftest.$ac_objext'
34785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786 (eval $ac_try) 2>&5
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); }; }; then
34790 ac_cv_member_struct_stat_st_blksize=yes
34792 echo "$as_me: failed program was:" >&5
34793 sed 's/^/| /' conftest.$ac_ext >&5
34795 ac_cv_member_struct_stat_st_blksize=no
34797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34802 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34803 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34805 cat >>confdefs.h <<_ACEOF
34806 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34812 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34813 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34814 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34815 echo $ECHO_N "(cached) $ECHO_C" >&6
34817 cat >conftest.$ac_ext <<_ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h. */
34823 $ac_includes_default
34829 static struct passwd ac_aggr;
34830 if (ac_aggr.pw_gecos)
34836 rm -f conftest.$ac_objext
34837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34838 (eval $ac_compile) 2>conftest.er1
34840 grep -v '^ *+' conftest.er1 >conftest.err
34842 cat conftest.err >&5
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); } &&
34845 { ac_try='test -z "$ac_c_werror_flag"
34846 || test ! -s conftest.err'
34847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848 (eval $ac_try) 2>&5
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); }; } &&
34852 { ac_try='test -s conftest.$ac_objext'
34853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854 (eval $ac_try) 2>&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); }; }; then
34858 ac_cv_member_struct_passwd_pw_gecos=yes
34860 echo "$as_me: failed program was:" >&5
34861 sed 's/^/| /' conftest.$ac_ext >&5
34863 cat >conftest.$ac_ext <<_ACEOF
34866 cat confdefs.h >>conftest.$ac_ext
34867 cat >>conftest.$ac_ext <<_ACEOF
34868 /* end confdefs.h. */
34869 $ac_includes_default
34875 static struct passwd ac_aggr;
34876 if (sizeof ac_aggr.pw_gecos)
34882 rm -f conftest.$ac_objext
34883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34884 (eval $ac_compile) 2>conftest.er1
34886 grep -v '^ *+' conftest.er1 >conftest.err
34888 cat conftest.err >&5
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); } &&
34891 { ac_try='test -z "$ac_c_werror_flag"
34892 || test ! -s conftest.err'
34893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894 (eval $ac_try) 2>&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; } &&
34898 { ac_try='test -s conftest.$ac_objext'
34899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900 (eval $ac_try) 2>&5
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); }; }; then
34904 ac_cv_member_struct_passwd_pw_gecos=yes
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34909 ac_cv_member_struct_passwd_pw_gecos=no
34911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34915 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34916 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34917 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34919 cat >>confdefs.h <<_ACEOF
34920 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34926 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34927 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34928 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34929 echo $ECHO_N "(cached) $ECHO_C" >&6
34931 cat >conftest.$ac_ext <<_ACEOF
34934 cat confdefs.h >>conftest.$ac_ext
34935 cat >>conftest.$ac_ext <<_ACEOF
34936 /* end confdefs.h. */
34937 $ac_includes_default
34943 static struct passwd ac_aggr;
34944 if (ac_aggr.pw_passwd)
34950 rm -f conftest.$ac_objext
34951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34952 (eval $ac_compile) 2>conftest.er1
34954 grep -v '^ *+' conftest.er1 >conftest.err
34956 cat conftest.err >&5
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); } &&
34959 { ac_try='test -z "$ac_c_werror_flag"
34960 || test ! -s conftest.err'
34961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962 (eval $ac_try) 2>&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); }; } &&
34966 { ac_try='test -s conftest.$ac_objext'
34967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968 (eval $ac_try) 2>&5
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); }; }; then
34972 ac_cv_member_struct_passwd_pw_passwd=yes
34974 echo "$as_me: failed program was:" >&5
34975 sed 's/^/| /' conftest.$ac_ext >&5
34977 cat >conftest.$ac_ext <<_ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h. */
34983 $ac_includes_default
34989 static struct passwd ac_aggr;
34990 if (sizeof ac_aggr.pw_passwd)
34996 rm -f conftest.$ac_objext
34997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34998 (eval $ac_compile) 2>conftest.er1
35000 grep -v '^ *+' conftest.er1 >conftest.err
35002 cat conftest.err >&5
35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004 (exit $ac_status); } &&
35005 { ac_try='test -z "$ac_c_werror_flag"
35006 || test ! -s conftest.err'
35007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35008 (eval $ac_try) 2>&5
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); }; } &&
35012 { ac_try='test -s conftest.$ac_objext'
35013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014 (eval $ac_try) 2>&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; }; then
35018 ac_cv_member_struct_passwd_pw_passwd=yes
35020 echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35023 ac_cv_member_struct_passwd_pw_passwd=no
35025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35029 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35030 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35031 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35033 cat >>confdefs.h <<_ACEOF
35034 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35041 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35042 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35043 if test "${ol_cv_c_upper_lower+set}" = set; then
35044 echo $ECHO_N "(cached) $ECHO_C" >&6
35047 if test "$cross_compiling" = yes; then
35048 ol_cv_c_upper_lower=safe
35050 cat >conftest.$ac_ext <<_ACEOF
35053 cat confdefs.h >>conftest.$ac_ext
35054 cat >>conftest.$ac_ext <<_ACEOF
35055 /* end confdefs.h. */
35060 if ('C' == toupper('C'))
35066 rm -f conftest$ac_exeext
35067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35068 (eval $ac_link) 2>&5
35070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073 (eval $ac_try) 2>&5
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); }; }; then
35077 ol_cv_c_upper_lower=no
35079 echo "$as_me: program exited with status $ac_status" >&5
35080 echo "$as_me: failed program was:" >&5
35081 sed 's/^/| /' conftest.$ac_ext >&5
35083 ( exit $ac_status )
35084 ol_cv_c_upper_lower=yes
35086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35089 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35090 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35091 if test $ol_cv_c_upper_lower != no ; then
35093 cat >>confdefs.h <<\_ACEOF
35094 #define C_UPPER_LOWER 1
35099 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35100 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35101 if test "${ac_cv_c_const+set}" = set; then
35102 echo $ECHO_N "(cached) $ECHO_C" >&6
35104 cat >conftest.$ac_ext <<_ACEOF
35107 cat confdefs.h >>conftest.$ac_ext
35108 cat >>conftest.$ac_ext <<_ACEOF
35109 /* end confdefs.h. */
35114 /* FIXME: Include the comments suggested by Paul. */
35115 #ifndef __cplusplus
35116 /* Ultrix mips cc rejects this. */
35117 typedef int charset[2];
35119 /* SunOS 4.1.1 cc rejects this. */
35120 char const *const *ccp;
35122 /* NEC SVR4.0.2 mips cc rejects this. */
35123 struct point {int x, y;};
35124 static struct point const zero = {0,0};
35125 /* AIX XL C 1.02.0.0 rejects this.
35126 It does not let you subtract one const X* pointer from another in
35127 an arm of an if-expression whose if-part is not a constant
35129 const char *g = "string";
35130 ccp = &g + (g ? g-g : 0);
35131 /* HPUX 7.0 cc rejects these. */
35134 ccp = (char const *const *) p;
35135 { /* SCO 3.2v4 cc rejects this. */
35137 char const *s = 0 ? (char *) 0 : (char const *) 0;
35141 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
35142 int x[] = {25, 17};
35143 const int *foo = &x[0];
35146 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35147 typedef const int *iptr;
35151 { /* AIX XL C 1.02.0.0 rejects this saying
35152 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35153 struct s { int j; const int *ap[3]; };
35154 struct s *b; b->j = 5;
35156 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35157 const int foo = 10;
35165 rm -f conftest.$ac_objext
35166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35167 (eval $ac_compile) 2>conftest.er1
35169 grep -v '^ *+' conftest.er1 >conftest.err
35171 cat conftest.err >&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); } &&
35174 { ac_try='test -z "$ac_c_werror_flag"
35175 || test ! -s conftest.err'
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; } &&
35181 { ac_try='test -s conftest.$ac_objext'
35182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183 (eval $ac_try) 2>&5
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; }; then
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35196 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35197 echo "${ECHO_T}$ac_cv_c_const" >&6
35198 if test $ac_cv_c_const = no; then
35200 cat >>confdefs.h <<\_ACEOF
35206 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35207 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35208 if test "${ol_cv_c_volatile+set}" = set; then
35209 echo $ECHO_N "(cached) $ECHO_C" >&6
35211 cat >conftest.$ac_ext <<_ACEOF
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h. */
35221 volatile int a; int * volatile b = x ? &y : &z;
35222 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35228 rm -f conftest.$ac_objext
35229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35230 (eval $ac_compile) 2>conftest.er1
35232 grep -v '^ *+' conftest.er1 >conftest.err
35234 cat conftest.err >&5
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); } &&
35237 { ac_try='test -z "$ac_c_werror_flag"
35238 || test ! -s conftest.err'
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; } &&
35244 { ac_try='test -s conftest.$ac_objext'
35245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35246 (eval $ac_try) 2>&5
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); }; }; then
35250 ol_cv_c_volatile=yes
35252 echo "$as_me: failed program was:" >&5
35253 sed 's/^/| /' conftest.$ac_ext >&5
35255 ol_cv_c_volatile=no
35257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35259 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35260 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35261 if test $ol_cv_c_volatile = yes; then
35265 cat >>confdefs.h <<\_ACEOF
35272 if test $cross_compiling = yes ; then
35273 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35274 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35276 cat >>confdefs.h <<\_ACEOF
35277 #define CROSS_COMPILING 1
35281 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35282 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35283 if test "${ac_cv_c_bigendian+set}" = set; then
35284 echo $ECHO_N "(cached) $ECHO_C" >&6
35286 # See if sys/param.h defines the BYTE_ORDER macro.
35287 cat >conftest.$ac_ext <<_ACEOF
35290 cat confdefs.h >>conftest.$ac_ext
35291 cat >>conftest.$ac_ext <<_ACEOF
35292 /* end confdefs.h. */
35293 #include <sys/types.h>
35294 #include <sys/param.h>
35299 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35300 bogus endian macros
35307 rm -f conftest.$ac_objext
35308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35309 (eval $ac_compile) 2>conftest.er1
35311 grep -v '^ *+' conftest.er1 >conftest.err
35313 cat conftest.err >&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } &&
35316 { ac_try='test -z "$ac_c_werror_flag"
35317 || test ! -s conftest.err'
35318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35319 (eval $ac_try) 2>&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); }; } &&
35323 { ac_try='test -s conftest.$ac_objext'
35324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35325 (eval $ac_try) 2>&5
35327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328 (exit $ac_status); }; }; then
35329 # It does; now see whether it defined to BIG_ENDIAN or not.
35330 cat >conftest.$ac_ext <<_ACEOF
35333 cat confdefs.h >>conftest.$ac_ext
35334 cat >>conftest.$ac_ext <<_ACEOF
35335 /* end confdefs.h. */
35336 #include <sys/types.h>
35337 #include <sys/param.h>
35342 #if BYTE_ORDER != BIG_ENDIAN
35350 rm -f conftest.$ac_objext
35351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35352 (eval $ac_compile) 2>conftest.er1
35354 grep -v '^ *+' conftest.er1 >conftest.err
35356 cat conftest.err >&5
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); } &&
35359 { ac_try='test -z "$ac_c_werror_flag"
35360 || test ! -s conftest.err'
35361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35362 (eval $ac_try) 2>&5
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); }; } &&
35366 { ac_try='test -s conftest.$ac_objext'
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; }; then
35372 ac_cv_c_bigendian=yes
35374 echo "$as_me: failed program was:" >&5
35375 sed 's/^/| /' conftest.$ac_ext >&5
35377 ac_cv_c_bigendian=no
35379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35381 echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.$ac_ext >&5
35384 # It does not; compile a test program.
35385 if test "$cross_compiling" = yes; then
35386 # try to guess the endianness by grepping values into an object file
35387 ac_cv_c_bigendian=unknown
35388 cat >conftest.$ac_ext <<_ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h. */
35394 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35395 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35396 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35397 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35398 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35399 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35403 _ascii (); _ebcdic ();
35408 rm -f conftest.$ac_objext
35409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35410 (eval $ac_compile) 2>conftest.er1
35412 grep -v '^ *+' conftest.er1 >conftest.err
35414 cat conftest.err >&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); } &&
35417 { ac_try='test -z "$ac_c_werror_flag"
35418 || test ! -s conftest.err'
35419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420 (eval $ac_try) 2>&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); }; } &&
35424 { ac_try='test -s conftest.$ac_objext'
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; }; then
35430 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35431 ac_cv_c_bigendian=yes
35433 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35434 if test "$ac_cv_c_bigendian" = unknown; then
35435 ac_cv_c_bigendian=no
35437 # finding both strings is unlikely to happen, but who knows?
35438 ac_cv_c_bigendian=unknown
35442 echo "$as_me: failed program was:" >&5
35443 sed 's/^/| /' conftest.$ac_ext >&5
35446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35448 cat >conftest.$ac_ext <<_ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h. */
35457 /* Are we little or big endian? From Harbison&Steele. */
35461 char c[sizeof (long)];
35464 exit (u.c[sizeof (long) - 1] == 1);
35467 rm -f conftest$ac_exeext
35468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35469 (eval $ac_link) 2>&5
35471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35474 (eval $ac_try) 2>&5
35476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477 (exit $ac_status); }; }; then
35478 ac_cv_c_bigendian=no
35480 echo "$as_me: program exited with status $ac_status" >&5
35481 echo "$as_me: failed program was:" >&5
35482 sed 's/^/| /' conftest.$ac_ext >&5
35484 ( exit $ac_status )
35485 ac_cv_c_bigendian=yes
35487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35492 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35493 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35494 case $ac_cv_c_bigendian in
35497 cat >>confdefs.h <<\_ACEOF
35498 #define WORDS_BIGENDIAN 1
35504 { { echo "$as_me:$LINENO: error: unknown endianness
35505 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35506 echo "$as_me: error: unknown endianness
35507 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35508 { (exit 1); exit 1; }; } ;;
35513 echo "$as_me:$LINENO: checking for short" >&5
35514 echo $ECHO_N "checking for short... $ECHO_C" >&6
35515 if test "${ac_cv_type_short+set}" = set; then
35516 echo $ECHO_N "(cached) $ECHO_C" >&6
35518 cat >conftest.$ac_ext <<_ACEOF
35521 cat confdefs.h >>conftest.$ac_ext
35522 cat >>conftest.$ac_ext <<_ACEOF
35523 /* end confdefs.h. */
35524 $ac_includes_default
35530 if (sizeof (short))
35536 rm -f conftest.$ac_objext
35537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35538 (eval $ac_compile) 2>conftest.er1
35540 grep -v '^ *+' conftest.er1 >conftest.err
35542 cat conftest.err >&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } &&
35545 { ac_try='test -z "$ac_c_werror_flag"
35546 || test ! -s conftest.err'
35547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35548 (eval $ac_try) 2>&5
35550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551 (exit $ac_status); }; } &&
35552 { ac_try='test -s conftest.$ac_objext'
35553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35554 (eval $ac_try) 2>&5
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); }; }; then
35558 ac_cv_type_short=yes
35560 echo "$as_me: failed program was:" >&5
35561 sed 's/^/| /' conftest.$ac_ext >&5
35563 ac_cv_type_short=no
35565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35567 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35568 echo "${ECHO_T}$ac_cv_type_short" >&6
35570 echo "$as_me:$LINENO: checking size of short" >&5
35571 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35572 if test "${ac_cv_sizeof_short+set}" = set; then
35573 echo $ECHO_N "(cached) $ECHO_C" >&6
35575 if test "$ac_cv_type_short" = yes; then
35576 # The cast to unsigned long works around a bug in the HP C Compiler
35577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35579 # This bug is HP SR number 8606223364.
35580 if test "$cross_compiling" = yes; then
35581 # Depending upon the size, compute the lo and hi bounds.
35582 cat >conftest.$ac_ext <<_ACEOF
35585 cat confdefs.h >>conftest.$ac_ext
35586 cat >>conftest.$ac_ext <<_ACEOF
35587 /* end confdefs.h. */
35588 $ac_includes_default
35592 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35599 rm -f conftest.$ac_objext
35600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35601 (eval $ac_compile) 2>conftest.er1
35603 grep -v '^ *+' conftest.er1 >conftest.err
35605 cat conftest.err >&5
35606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607 (exit $ac_status); } &&
35608 { ac_try='test -z "$ac_c_werror_flag"
35609 || test ! -s conftest.err'
35610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611 (eval $ac_try) 2>&5
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; } &&
35615 { ac_try='test -s conftest.$ac_objext'
35616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35617 (eval $ac_try) 2>&5
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); }; }; then
35623 cat >conftest.$ac_ext <<_ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h. */
35629 $ac_includes_default
35633 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35640 rm -f conftest.$ac_objext
35641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35642 (eval $ac_compile) 2>conftest.er1
35644 grep -v '^ *+' conftest.er1 >conftest.err
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } &&
35649 { ac_try='test -z "$ac_c_werror_flag"
35650 || test ! -s conftest.err'
35651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35652 (eval $ac_try) 2>&5
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); }; } &&
35656 { ac_try='test -s conftest.$ac_objext'
35657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658 (eval $ac_try) 2>&5
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); }; }; then
35662 ac_hi=$ac_mid; break
35664 echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35667 ac_lo=`expr $ac_mid + 1`
35668 if test $ac_lo -le $ac_mid; then
35672 ac_mid=`expr 2 '*' $ac_mid + 1`
35674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35677 echo "$as_me: failed program was:" >&5
35678 sed 's/^/| /' conftest.$ac_ext >&5
35680 cat >conftest.$ac_ext <<_ACEOF
35683 cat confdefs.h >>conftest.$ac_ext
35684 cat >>conftest.$ac_ext <<_ACEOF
35685 /* end confdefs.h. */
35686 $ac_includes_default
35690 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35697 rm -f conftest.$ac_objext
35698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35699 (eval $ac_compile) 2>conftest.er1
35701 grep -v '^ *+' conftest.er1 >conftest.err
35703 cat conftest.err >&5
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); } &&
35706 { ac_try='test -z "$ac_c_werror_flag"
35707 || test ! -s conftest.err'
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; } &&
35713 { ac_try='test -s conftest.$ac_objext'
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; }; then
35721 cat >conftest.$ac_ext <<_ACEOF
35724 cat confdefs.h >>conftest.$ac_ext
35725 cat >>conftest.$ac_ext <<_ACEOF
35726 /* end confdefs.h. */
35727 $ac_includes_default
35731 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35738 rm -f conftest.$ac_objext
35739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35740 (eval $ac_compile) 2>conftest.er1
35742 grep -v '^ *+' conftest.er1 >conftest.err
35744 cat conftest.err >&5
35745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); } &&
35747 { ac_try='test -z "$ac_c_werror_flag"
35748 || test ! -s conftest.err'
35749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750 (eval $ac_try) 2>&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); }; } &&
35754 { ac_try='test -s conftest.$ac_objext'
35755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756 (eval $ac_try) 2>&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); }; }; then
35760 ac_lo=$ac_mid; break
35762 echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35765 ac_hi=`expr '(' $ac_mid ')' - 1`
35766 if test $ac_mid -le $ac_hi; then
35770 ac_mid=`expr 2 '*' $ac_mid`
35772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35775 echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35783 # Binary search between lo and hi bounds.
35784 while test "x$ac_lo" != "x$ac_hi"; do
35785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35786 cat >conftest.$ac_ext <<_ACEOF
35789 cat confdefs.h >>conftest.$ac_ext
35790 cat >>conftest.$ac_ext <<_ACEOF
35791 /* end confdefs.h. */
35792 $ac_includes_default
35796 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35803 rm -f conftest.$ac_objext
35804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35805 (eval $ac_compile) 2>conftest.er1
35807 grep -v '^ *+' conftest.er1 >conftest.err
35809 cat conftest.err >&5
35810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35811 (exit $ac_status); } &&
35812 { ac_try='test -z "$ac_c_werror_flag"
35813 || test ! -s conftest.err'
35814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35815 (eval $ac_try) 2>&5
35817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818 (exit $ac_status); }; } &&
35819 { ac_try='test -s conftest.$ac_objext'
35820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35821 (eval $ac_try) 2>&5
35823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824 (exit $ac_status); }; }; then
35827 echo "$as_me: failed program was:" >&5
35828 sed 's/^/| /' conftest.$ac_ext >&5
35830 ac_lo=`expr '(' $ac_mid ')' + 1`
35832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35835 ?*) ac_cv_sizeof_short=$ac_lo;;
35836 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35837 See \`config.log' for more details." >&5
35838 echo "$as_me: error: cannot compute sizeof (short), 77
35839 See \`config.log' for more details." >&2;}
35840 { (exit 1); exit 1; }; } ;;
35843 if test "$cross_compiling" = yes; then
35844 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35845 See \`config.log' for more details." >&5
35846 echo "$as_me: error: cannot run test program while cross compiling
35847 See \`config.log' for more details." >&2;}
35848 { (exit 1); exit 1; }; }
35850 cat >conftest.$ac_ext <<_ACEOF
35853 cat confdefs.h >>conftest.$ac_ext
35854 cat >>conftest.$ac_ext <<_ACEOF
35855 /* end confdefs.h. */
35856 $ac_includes_default
35857 long longval () { return (long) (sizeof (short)); }
35858 unsigned long ulongval () { return (long) (sizeof (short)); }
35860 #include <stdlib.h>
35865 FILE *f = fopen ("conftest.val", "w");
35868 if (((long) (sizeof (short))) < 0)
35870 long i = longval ();
35871 if (i != ((long) (sizeof (short))))
35873 fprintf (f, "%ld\n", i);
35877 unsigned long i = ulongval ();
35878 if (i != ((long) (sizeof (short))))
35880 fprintf (f, "%lu\n", i);
35882 exit (ferror (f) || fclose (f) != 0);
35888 rm -f conftest$ac_exeext
35889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35890 (eval $ac_link) 2>&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895 (eval $ac_try) 2>&5
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; }; then
35899 ac_cv_sizeof_short=`cat conftest.val`
35901 echo "$as_me: program exited with status $ac_status" >&5
35902 echo "$as_me: failed program was:" >&5
35903 sed 's/^/| /' conftest.$ac_ext >&5
35905 ( exit $ac_status )
35906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35907 See \`config.log' for more details." >&5
35908 echo "$as_me: error: cannot compute sizeof (short), 77
35909 See \`config.log' for more details." >&2;}
35910 { (exit 1); exit 1; }; }
35912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35917 ac_cv_sizeof_short=0
35920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35921 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35922 cat >>confdefs.h <<_ACEOF
35923 #define SIZEOF_SHORT $ac_cv_sizeof_short
35927 echo "$as_me:$LINENO: checking for int" >&5
35928 echo $ECHO_N "checking for int... $ECHO_C" >&6
35929 if test "${ac_cv_type_int+set}" = set; then
35930 echo $ECHO_N "(cached) $ECHO_C" >&6
35932 cat >conftest.$ac_ext <<_ACEOF
35935 cat confdefs.h >>conftest.$ac_ext
35936 cat >>conftest.$ac_ext <<_ACEOF
35937 /* end confdefs.h. */
35938 $ac_includes_default
35950 rm -f conftest.$ac_objext
35951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35952 (eval $ac_compile) 2>conftest.er1
35954 grep -v '^ *+' conftest.er1 >conftest.err
35956 cat conftest.err >&5
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); } &&
35959 { ac_try='test -z "$ac_c_werror_flag"
35960 || test ! -s conftest.err'
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; } &&
35966 { ac_try='test -s conftest.$ac_objext'
35967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35968 (eval $ac_try) 2>&5
35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971 (exit $ac_status); }; }; then
35974 echo "$as_me: failed program was:" >&5
35975 sed 's/^/| /' conftest.$ac_ext >&5
35979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35981 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35982 echo "${ECHO_T}$ac_cv_type_int" >&6
35984 echo "$as_me:$LINENO: checking size of int" >&5
35985 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35986 if test "${ac_cv_sizeof_int+set}" = set; then
35987 echo $ECHO_N "(cached) $ECHO_C" >&6
35989 if test "$ac_cv_type_int" = yes; then
35990 # The cast to unsigned long works around a bug in the HP C Compiler
35991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35993 # This bug is HP SR number 8606223364.
35994 if test "$cross_compiling" = yes; then
35995 # Depending upon the size, compute the lo and hi bounds.
35996 cat >conftest.$ac_ext <<_ACEOF
35999 cat confdefs.h >>conftest.$ac_ext
36000 cat >>conftest.$ac_ext <<_ACEOF
36001 /* end confdefs.h. */
36002 $ac_includes_default
36006 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
36013 rm -f conftest.$ac_objext
36014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36015 (eval $ac_compile) 2>conftest.er1
36017 grep -v '^ *+' conftest.er1 >conftest.err
36019 cat conftest.err >&5
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); } &&
36022 { ac_try='test -z "$ac_c_werror_flag"
36023 || test ! -s conftest.err'
36024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36025 (eval $ac_try) 2>&5
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); }; } &&
36029 { ac_try='test -s conftest.$ac_objext'
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; }; then
36037 cat >conftest.$ac_ext <<_ACEOF
36040 cat confdefs.h >>conftest.$ac_ext
36041 cat >>conftest.$ac_ext <<_ACEOF
36042 /* end confdefs.h. */
36043 $ac_includes_default
36047 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36054 rm -f conftest.$ac_objext
36055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36056 (eval $ac_compile) 2>conftest.er1
36058 grep -v '^ *+' conftest.er1 >conftest.err
36060 cat conftest.err >&5
36061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); } &&
36063 { ac_try='test -z "$ac_c_werror_flag"
36064 || test ! -s conftest.err'
36065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066 (eval $ac_try) 2>&5
36068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069 (exit $ac_status); }; } &&
36070 { ac_try='test -s conftest.$ac_objext'
36071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36072 (eval $ac_try) 2>&5
36074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075 (exit $ac_status); }; }; then
36076 ac_hi=$ac_mid; break
36078 echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36081 ac_lo=`expr $ac_mid + 1`
36082 if test $ac_lo -le $ac_mid; then
36086 ac_mid=`expr 2 '*' $ac_mid + 1`
36088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36091 echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36094 cat >conftest.$ac_ext <<_ACEOF
36097 cat confdefs.h >>conftest.$ac_ext
36098 cat >>conftest.$ac_ext <<_ACEOF
36099 /* end confdefs.h. */
36100 $ac_includes_default
36104 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36111 rm -f conftest.$ac_objext
36112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36113 (eval $ac_compile) 2>conftest.er1
36115 grep -v '^ *+' conftest.er1 >conftest.err
36117 cat conftest.err >&5
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } &&
36120 { ac_try='test -z "$ac_c_werror_flag"
36121 || test ! -s conftest.err'
36122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36123 (eval $ac_try) 2>&5
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); }; } &&
36127 { ac_try='test -s conftest.$ac_objext'
36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129 (eval $ac_try) 2>&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; }; then
36135 cat >conftest.$ac_ext <<_ACEOF
36138 cat confdefs.h >>conftest.$ac_ext
36139 cat >>conftest.$ac_ext <<_ACEOF
36140 /* end confdefs.h. */
36141 $ac_includes_default
36145 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36152 rm -f conftest.$ac_objext
36153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36154 (eval $ac_compile) 2>conftest.er1
36156 grep -v '^ *+' conftest.er1 >conftest.err
36158 cat conftest.err >&5
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); } &&
36161 { ac_try='test -z "$ac_c_werror_flag"
36162 || test ! -s conftest.err'
36163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164 (eval $ac_try) 2>&5
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); }; } &&
36168 { ac_try='test -s conftest.$ac_objext'
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; }; then
36174 ac_lo=$ac_mid; break
36176 echo "$as_me: failed program was:" >&5
36177 sed 's/^/| /' conftest.$ac_ext >&5
36179 ac_hi=`expr '(' $ac_mid ')' - 1`
36180 if test $ac_mid -le $ac_hi; then
36184 ac_mid=`expr 2 '*' $ac_mid`
36186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36189 echo "$as_me: failed program was:" >&5
36190 sed 's/^/| /' conftest.$ac_ext >&5
36194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36197 # Binary search between lo and hi bounds.
36198 while test "x$ac_lo" != "x$ac_hi"; do
36199 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36200 cat >conftest.$ac_ext <<_ACEOF
36203 cat confdefs.h >>conftest.$ac_ext
36204 cat >>conftest.$ac_ext <<_ACEOF
36205 /* end confdefs.h. */
36206 $ac_includes_default
36210 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36217 rm -f conftest.$ac_objext
36218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36219 (eval $ac_compile) 2>conftest.er1
36221 grep -v '^ *+' conftest.er1 >conftest.err
36223 cat conftest.err >&5
36224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36225 (exit $ac_status); } &&
36226 { ac_try='test -z "$ac_c_werror_flag"
36227 || test ! -s conftest.err'
36228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36229 (eval $ac_try) 2>&5
36231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232 (exit $ac_status); }; } &&
36233 { ac_try='test -s conftest.$ac_objext'
36234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36235 (eval $ac_try) 2>&5
36237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238 (exit $ac_status); }; }; then
36241 echo "$as_me: failed program was:" >&5
36242 sed 's/^/| /' conftest.$ac_ext >&5
36244 ac_lo=`expr '(' $ac_mid ')' + 1`
36246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36249 ?*) ac_cv_sizeof_int=$ac_lo;;
36250 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36251 See \`config.log' for more details." >&5
36252 echo "$as_me: error: cannot compute sizeof (int), 77
36253 See \`config.log' for more details." >&2;}
36254 { (exit 1); exit 1; }; } ;;
36257 if test "$cross_compiling" = yes; then
36258 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36259 See \`config.log' for more details." >&5
36260 echo "$as_me: error: cannot run test program while cross compiling
36261 See \`config.log' for more details." >&2;}
36262 { (exit 1); exit 1; }; }
36264 cat >conftest.$ac_ext <<_ACEOF
36267 cat confdefs.h >>conftest.$ac_ext
36268 cat >>conftest.$ac_ext <<_ACEOF
36269 /* end confdefs.h. */
36270 $ac_includes_default
36271 long longval () { return (long) (sizeof (int)); }
36272 unsigned long ulongval () { return (long) (sizeof (int)); }
36274 #include <stdlib.h>
36279 FILE *f = fopen ("conftest.val", "w");
36282 if (((long) (sizeof (int))) < 0)
36284 long i = longval ();
36285 if (i != ((long) (sizeof (int))))
36287 fprintf (f, "%ld\n", i);
36291 unsigned long i = ulongval ();
36292 if (i != ((long) (sizeof (int))))
36294 fprintf (f, "%lu\n", i);
36296 exit (ferror (f) || fclose (f) != 0);
36302 rm -f conftest$ac_exeext
36303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36304 (eval $ac_link) 2>&5
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309 (eval $ac_try) 2>&5
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); }; }; then
36313 ac_cv_sizeof_int=`cat conftest.val`
36315 echo "$as_me: program exited with status $ac_status" >&5
36316 echo "$as_me: failed program was:" >&5
36317 sed 's/^/| /' conftest.$ac_ext >&5
36319 ( exit $ac_status )
36320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36321 See \`config.log' for more details." >&5
36322 echo "$as_me: error: cannot compute sizeof (int), 77
36323 See \`config.log' for more details." >&2;}
36324 { (exit 1); exit 1; }; }
36326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36334 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36335 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36336 cat >>confdefs.h <<_ACEOF
36337 #define SIZEOF_INT $ac_cv_sizeof_int
36341 echo "$as_me:$LINENO: checking for long" >&5
36342 echo $ECHO_N "checking for long... $ECHO_C" >&6
36343 if test "${ac_cv_type_long+set}" = set; then
36344 echo $ECHO_N "(cached) $ECHO_C" >&6
36346 cat >conftest.$ac_ext <<_ACEOF
36349 cat confdefs.h >>conftest.$ac_ext
36350 cat >>conftest.$ac_ext <<_ACEOF
36351 /* end confdefs.h. */
36352 $ac_includes_default
36364 rm -f conftest.$ac_objext
36365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36366 (eval $ac_compile) 2>conftest.er1
36368 grep -v '^ *+' conftest.er1 >conftest.err
36370 cat conftest.err >&5
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); } &&
36373 { ac_try='test -z "$ac_c_werror_flag"
36374 || test ! -s conftest.err'
36375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36376 (eval $ac_try) 2>&5
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); }; } &&
36380 { ac_try='test -s conftest.$ac_objext'
36381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36382 (eval $ac_try) 2>&5
36384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36385 (exit $ac_status); }; }; then
36386 ac_cv_type_long=yes
36388 echo "$as_me: failed program was:" >&5
36389 sed 's/^/| /' conftest.$ac_ext >&5
36393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36395 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36396 echo "${ECHO_T}$ac_cv_type_long" >&6
36398 echo "$as_me:$LINENO: checking size of long" >&5
36399 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36400 if test "${ac_cv_sizeof_long+set}" = set; then
36401 echo $ECHO_N "(cached) $ECHO_C" >&6
36403 if test "$ac_cv_type_long" = yes; then
36404 # The cast to unsigned long works around a bug in the HP C Compiler
36405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36407 # This bug is HP SR number 8606223364.
36408 if test "$cross_compiling" = yes; then
36409 # Depending upon the size, compute the lo and hi bounds.
36410 cat >conftest.$ac_ext <<_ACEOF
36413 cat confdefs.h >>conftest.$ac_ext
36414 cat >>conftest.$ac_ext <<_ACEOF
36415 /* end confdefs.h. */
36416 $ac_includes_default
36420 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36427 rm -f conftest.$ac_objext
36428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36429 (eval $ac_compile) 2>conftest.er1
36431 grep -v '^ *+' conftest.er1 >conftest.err
36433 cat conftest.err >&5
36434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435 (exit $ac_status); } &&
36436 { ac_try='test -z "$ac_c_werror_flag"
36437 || test ! -s conftest.err'
36438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36439 (eval $ac_try) 2>&5
36441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442 (exit $ac_status); }; } &&
36443 { ac_try='test -s conftest.$ac_objext'
36444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36445 (eval $ac_try) 2>&5
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); }; }; then
36451 cat >conftest.$ac_ext <<_ACEOF
36454 cat confdefs.h >>conftest.$ac_ext
36455 cat >>conftest.$ac_ext <<_ACEOF
36456 /* end confdefs.h. */
36457 $ac_includes_default
36461 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36468 rm -f conftest.$ac_objext
36469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36470 (eval $ac_compile) 2>conftest.er1
36472 grep -v '^ *+' conftest.er1 >conftest.err
36474 cat conftest.err >&5
36475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36476 (exit $ac_status); } &&
36477 { ac_try='test -z "$ac_c_werror_flag"
36478 || test ! -s conftest.err'
36479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36480 (eval $ac_try) 2>&5
36482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483 (exit $ac_status); }; } &&
36484 { ac_try='test -s conftest.$ac_objext'
36485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36486 (eval $ac_try) 2>&5
36488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); }; }; then
36490 ac_hi=$ac_mid; break
36492 echo "$as_me: failed program was:" >&5
36493 sed 's/^/| /' conftest.$ac_ext >&5
36495 ac_lo=`expr $ac_mid + 1`
36496 if test $ac_lo -le $ac_mid; then
36500 ac_mid=`expr 2 '*' $ac_mid + 1`
36502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36505 echo "$as_me: failed program was:" >&5
36506 sed 's/^/| /' conftest.$ac_ext >&5
36508 cat >conftest.$ac_ext <<_ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h. */
36514 $ac_includes_default
36518 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36525 rm -f conftest.$ac_objext
36526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36527 (eval $ac_compile) 2>conftest.er1
36529 grep -v '^ *+' conftest.er1 >conftest.err
36531 cat conftest.err >&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } &&
36534 { ac_try='test -z "$ac_c_werror_flag"
36535 || test ! -s conftest.err'
36536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36537 (eval $ac_try) 2>&5
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; } &&
36541 { ac_try='test -s conftest.$ac_objext'
36542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36543 (eval $ac_try) 2>&5
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); }; }; then
36549 cat >conftest.$ac_ext <<_ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h. */
36555 $ac_includes_default
36559 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36566 rm -f conftest.$ac_objext
36567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36568 (eval $ac_compile) 2>conftest.er1
36570 grep -v '^ *+' conftest.er1 >conftest.err
36572 cat conftest.err >&5
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); } &&
36575 { ac_try='test -z "$ac_c_werror_flag"
36576 || test ! -s conftest.err'
36577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36578 (eval $ac_try) 2>&5
36580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581 (exit $ac_status); }; } &&
36582 { ac_try='test -s conftest.$ac_objext'
36583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36584 (eval $ac_try) 2>&5
36586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587 (exit $ac_status); }; }; then
36588 ac_lo=$ac_mid; break
36590 echo "$as_me: failed program was:" >&5
36591 sed 's/^/| /' conftest.$ac_ext >&5
36593 ac_hi=`expr '(' $ac_mid ')' - 1`
36594 if test $ac_mid -le $ac_hi; then
36598 ac_mid=`expr 2 '*' $ac_mid`
36600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36611 # Binary search between lo and hi bounds.
36612 while test "x$ac_lo" != "x$ac_hi"; do
36613 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36614 cat >conftest.$ac_ext <<_ACEOF
36617 cat confdefs.h >>conftest.$ac_ext
36618 cat >>conftest.$ac_ext <<_ACEOF
36619 /* end confdefs.h. */
36620 $ac_includes_default
36624 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36631 rm -f conftest.$ac_objext
36632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36633 (eval $ac_compile) 2>conftest.er1
36635 grep -v '^ *+' conftest.er1 >conftest.err
36637 cat conftest.err >&5
36638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639 (exit $ac_status); } &&
36640 { ac_try='test -z "$ac_c_werror_flag"
36641 || test ! -s conftest.err'
36642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643 (eval $ac_try) 2>&5
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); }; } &&
36647 { ac_try='test -s conftest.$ac_objext'
36648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36649 (eval $ac_try) 2>&5
36651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); }; }; then
36655 echo "$as_me: failed program was:" >&5
36656 sed 's/^/| /' conftest.$ac_ext >&5
36658 ac_lo=`expr '(' $ac_mid ')' + 1`
36660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36663 ?*) ac_cv_sizeof_long=$ac_lo;;
36664 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36665 See \`config.log' for more details." >&5
36666 echo "$as_me: error: cannot compute sizeof (long), 77
36667 See \`config.log' for more details." >&2;}
36668 { (exit 1); exit 1; }; } ;;
36671 if test "$cross_compiling" = yes; then
36672 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36673 See \`config.log' for more details." >&5
36674 echo "$as_me: error: cannot run test program while cross compiling
36675 See \`config.log' for more details." >&2;}
36676 { (exit 1); exit 1; }; }
36678 cat >conftest.$ac_ext <<_ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h. */
36684 $ac_includes_default
36685 long longval () { return (long) (sizeof (long)); }
36686 unsigned long ulongval () { return (long) (sizeof (long)); }
36688 #include <stdlib.h>
36693 FILE *f = fopen ("conftest.val", "w");
36696 if (((long) (sizeof (long))) < 0)
36698 long i = longval ();
36699 if (i != ((long) (sizeof (long))))
36701 fprintf (f, "%ld\n", i);
36705 unsigned long i = ulongval ();
36706 if (i != ((long) (sizeof (long))))
36708 fprintf (f, "%lu\n", i);
36710 exit (ferror (f) || fclose (f) != 0);
36716 rm -f conftest$ac_exeext
36717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36718 (eval $ac_link) 2>&5
36720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36723 (eval $ac_try) 2>&5
36725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36726 (exit $ac_status); }; }; then
36727 ac_cv_sizeof_long=`cat conftest.val`
36729 echo "$as_me: program exited with status $ac_status" >&5
36730 echo "$as_me: failed program was:" >&5
36731 sed 's/^/| /' conftest.$ac_ext >&5
36733 ( exit $ac_status )
36734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36735 See \`config.log' for more details." >&5
36736 echo "$as_me: error: cannot compute sizeof (long), 77
36737 See \`config.log' for more details." >&2;}
36738 { (exit 1); exit 1; }; }
36740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36745 ac_cv_sizeof_long=0
36748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36749 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36750 cat >>confdefs.h <<_ACEOF
36751 #define SIZEOF_LONG $ac_cv_sizeof_long
36755 echo "$as_me:$LINENO: checking for long long" >&5
36756 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36757 if test "${ac_cv_type_long_long+set}" = set; then
36758 echo $ECHO_N "(cached) $ECHO_C" >&6
36760 cat >conftest.$ac_ext <<_ACEOF
36763 cat confdefs.h >>conftest.$ac_ext
36764 cat >>conftest.$ac_ext <<_ACEOF
36765 /* end confdefs.h. */
36766 $ac_includes_default
36770 if ((long long *) 0)
36772 if (sizeof (long long))
36778 rm -f conftest.$ac_objext
36779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36780 (eval $ac_compile) 2>conftest.er1
36782 grep -v '^ *+' conftest.er1 >conftest.err
36784 cat conftest.err >&5
36785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786 (exit $ac_status); } &&
36787 { ac_try='test -z "$ac_c_werror_flag"
36788 || test ! -s conftest.err'
36789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36790 (eval $ac_try) 2>&5
36792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793 (exit $ac_status); }; } &&
36794 { ac_try='test -s conftest.$ac_objext'
36795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796 (eval $ac_try) 2>&5
36798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799 (exit $ac_status); }; }; then
36800 ac_cv_type_long_long=yes
36802 echo "$as_me: failed program was:" >&5
36803 sed 's/^/| /' conftest.$ac_ext >&5
36805 ac_cv_type_long_long=no
36807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36809 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36810 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36812 echo "$as_me:$LINENO: checking size of long long" >&5
36813 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36814 if test "${ac_cv_sizeof_long_long+set}" = set; then
36815 echo $ECHO_N "(cached) $ECHO_C" >&6
36817 if test "$ac_cv_type_long_long" = yes; then
36818 # The cast to unsigned long works around a bug in the HP C Compiler
36819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36821 # This bug is HP SR number 8606223364.
36822 if test "$cross_compiling" = yes; then
36823 # Depending upon the size, compute the lo and hi bounds.
36824 cat >conftest.$ac_ext <<_ACEOF
36827 cat confdefs.h >>conftest.$ac_ext
36828 cat >>conftest.$ac_ext <<_ACEOF
36829 /* end confdefs.h. */
36830 $ac_includes_default
36834 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36841 rm -f conftest.$ac_objext
36842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36843 (eval $ac_compile) 2>conftest.er1
36845 grep -v '^ *+' conftest.er1 >conftest.err
36847 cat conftest.err >&5
36848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849 (exit $ac_status); } &&
36850 { ac_try='test -z "$ac_c_werror_flag"
36851 || test ! -s conftest.err'
36852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36853 (eval $ac_try) 2>&5
36855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36856 (exit $ac_status); }; } &&
36857 { ac_try='test -s conftest.$ac_objext'
36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36859 (eval $ac_try) 2>&5
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; }; then
36865 cat >conftest.$ac_ext <<_ACEOF
36868 cat confdefs.h >>conftest.$ac_ext
36869 cat >>conftest.$ac_ext <<_ACEOF
36870 /* end confdefs.h. */
36871 $ac_includes_default
36875 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36882 rm -f conftest.$ac_objext
36883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36884 (eval $ac_compile) 2>conftest.er1
36886 grep -v '^ *+' conftest.er1 >conftest.err
36888 cat conftest.err >&5
36889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890 (exit $ac_status); } &&
36891 { ac_try='test -z "$ac_c_werror_flag"
36892 || test ! -s conftest.err'
36893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36894 (eval $ac_try) 2>&5
36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897 (exit $ac_status); }; } &&
36898 { ac_try='test -s conftest.$ac_objext'
36899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36900 (eval $ac_try) 2>&5
36902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903 (exit $ac_status); }; }; then
36904 ac_hi=$ac_mid; break
36906 echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.$ac_ext >&5
36909 ac_lo=`expr $ac_mid + 1`
36910 if test $ac_lo -le $ac_mid; then
36914 ac_mid=`expr 2 '*' $ac_mid + 1`
36916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36919 echo "$as_me: failed program was:" >&5
36920 sed 's/^/| /' conftest.$ac_ext >&5
36922 cat >conftest.$ac_ext <<_ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h. */
36928 $ac_includes_default
36932 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36939 rm -f conftest.$ac_objext
36940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36941 (eval $ac_compile) 2>conftest.er1
36943 grep -v '^ *+' conftest.er1 >conftest.err
36945 cat conftest.err >&5
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 (exit $ac_status); } &&
36948 { ac_try='test -z "$ac_c_werror_flag"
36949 || test ! -s conftest.err'
36950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36951 (eval $ac_try) 2>&5
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); }; } &&
36955 { ac_try='test -s conftest.$ac_objext'
36956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36957 (eval $ac_try) 2>&5
36959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 (exit $ac_status); }; }; then
36963 cat >conftest.$ac_ext <<_ACEOF
36966 cat confdefs.h >>conftest.$ac_ext
36967 cat >>conftest.$ac_ext <<_ACEOF
36968 /* end confdefs.h. */
36969 $ac_includes_default
36973 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36980 rm -f conftest.$ac_objext
36981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36982 (eval $ac_compile) 2>conftest.er1
36984 grep -v '^ *+' conftest.er1 >conftest.err
36986 cat conftest.err >&5
36987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988 (exit $ac_status); } &&
36989 { ac_try='test -z "$ac_c_werror_flag"
36990 || test ! -s conftest.err'
36991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992 (eval $ac_try) 2>&5
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); }; } &&
36996 { ac_try='test -s conftest.$ac_objext'
36997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36998 (eval $ac_try) 2>&5
37000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001 (exit $ac_status); }; }; then
37002 ac_lo=$ac_mid; break
37004 echo "$as_me: failed program was:" >&5
37005 sed 's/^/| /' conftest.$ac_ext >&5
37007 ac_hi=`expr '(' $ac_mid ')' - 1`
37008 if test $ac_mid -le $ac_hi; then
37012 ac_mid=`expr 2 '*' $ac_mid`
37014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37017 echo "$as_me: failed program was:" >&5
37018 sed 's/^/| /' conftest.$ac_ext >&5
37022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37025 # Binary search between lo and hi bounds.
37026 while test "x$ac_lo" != "x$ac_hi"; do
37027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37028 cat >conftest.$ac_ext <<_ACEOF
37031 cat confdefs.h >>conftest.$ac_ext
37032 cat >>conftest.$ac_ext <<_ACEOF
37033 /* end confdefs.h. */
37034 $ac_includes_default
37038 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37045 rm -f conftest.$ac_objext
37046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37047 (eval $ac_compile) 2>conftest.er1
37049 grep -v '^ *+' conftest.er1 >conftest.err
37051 cat conftest.err >&5
37052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37053 (exit $ac_status); } &&
37054 { ac_try='test -z "$ac_c_werror_flag"
37055 || test ! -s conftest.err'
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; } &&
37061 { ac_try='test -s conftest.$ac_objext'
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; }; then
37069 echo "$as_me: failed program was:" >&5
37070 sed 's/^/| /' conftest.$ac_ext >&5
37072 ac_lo=`expr '(' $ac_mid ')' + 1`
37074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37077 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37078 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37079 See \`config.log' for more details." >&5
37080 echo "$as_me: error: cannot compute sizeof (long long), 77
37081 See \`config.log' for more details." >&2;}
37082 { (exit 1); exit 1; }; } ;;
37085 if test "$cross_compiling" = yes; then
37086 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37087 See \`config.log' for more details." >&5
37088 echo "$as_me: error: cannot run test program while cross compiling
37089 See \`config.log' for more details." >&2;}
37090 { (exit 1); exit 1; }; }
37092 cat >conftest.$ac_ext <<_ACEOF
37095 cat confdefs.h >>conftest.$ac_ext
37096 cat >>conftest.$ac_ext <<_ACEOF
37097 /* end confdefs.h. */
37098 $ac_includes_default
37099 long longval () { return (long) (sizeof (long long)); }
37100 unsigned long ulongval () { return (long) (sizeof (long long)); }
37102 #include <stdlib.h>
37107 FILE *f = fopen ("conftest.val", "w");
37110 if (((long) (sizeof (long long))) < 0)
37112 long i = longval ();
37113 if (i != ((long) (sizeof (long long))))
37115 fprintf (f, "%ld\n", i);
37119 unsigned long i = ulongval ();
37120 if (i != ((long) (sizeof (long long))))
37122 fprintf (f, "%lu\n", i);
37124 exit (ferror (f) || fclose (f) != 0);
37130 rm -f conftest$ac_exeext
37131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37132 (eval $ac_link) 2>&5
37134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37137 (eval $ac_try) 2>&5
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); }; }; then
37141 ac_cv_sizeof_long_long=`cat conftest.val`
37143 echo "$as_me: program exited with status $ac_status" >&5
37144 echo "$as_me: failed program was:" >&5
37145 sed 's/^/| /' conftest.$ac_ext >&5
37147 ( exit $ac_status )
37148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37149 See \`config.log' for more details." >&5
37150 echo "$as_me: error: cannot compute sizeof (long long), 77
37151 See \`config.log' for more details." >&2;}
37152 { (exit 1); exit 1; }; }
37154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37159 ac_cv_sizeof_long_long=0
37162 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37163 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37164 cat >>confdefs.h <<_ACEOF
37165 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37169 echo "$as_me:$LINENO: checking for wchar_t" >&5
37170 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37171 if test "${ac_cv_type_wchar_t+set}" = set; then
37172 echo $ECHO_N "(cached) $ECHO_C" >&6
37174 cat >conftest.$ac_ext <<_ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h. */
37180 $ac_includes_default
37186 if (sizeof (wchar_t))
37192 rm -f conftest.$ac_objext
37193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37194 (eval $ac_compile) 2>conftest.er1
37196 grep -v '^ *+' conftest.er1 >conftest.err
37198 cat conftest.err >&5
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } &&
37201 { ac_try='test -z "$ac_c_werror_flag"
37202 || test ! -s conftest.err'
37203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204 (eval $ac_try) 2>&5
37206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207 (exit $ac_status); }; } &&
37208 { ac_try='test -s conftest.$ac_objext'
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; }; then
37214 ac_cv_type_wchar_t=yes
37216 echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37219 ac_cv_type_wchar_t=no
37221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37223 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37224 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37226 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37227 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37228 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37229 echo $ECHO_N "(cached) $ECHO_C" >&6
37231 if test "$ac_cv_type_wchar_t" = yes; then
37232 # The cast to unsigned long works around a bug in the HP C Compiler
37233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37235 # This bug is HP SR number 8606223364.
37236 if test "$cross_compiling" = yes; then
37237 # Depending upon the size, compute the lo and hi bounds.
37238 cat >conftest.$ac_ext <<_ACEOF
37241 cat confdefs.h >>conftest.$ac_ext
37242 cat >>conftest.$ac_ext <<_ACEOF
37243 /* end confdefs.h. */
37244 $ac_includes_default
37248 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37255 rm -f conftest.$ac_objext
37256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37257 (eval $ac_compile) 2>conftest.er1
37259 grep -v '^ *+' conftest.er1 >conftest.err
37261 cat conftest.err >&5
37262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263 (exit $ac_status); } &&
37264 { ac_try='test -z "$ac_c_werror_flag"
37265 || test ! -s conftest.err'
37266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37267 (eval $ac_try) 2>&5
37269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37270 (exit $ac_status); }; } &&
37271 { ac_try='test -s conftest.$ac_objext'
37272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37273 (eval $ac_try) 2>&5
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); }; }; then
37279 cat >conftest.$ac_ext <<_ACEOF
37282 cat confdefs.h >>conftest.$ac_ext
37283 cat >>conftest.$ac_ext <<_ACEOF
37284 /* end confdefs.h. */
37285 $ac_includes_default
37289 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37296 rm -f conftest.$ac_objext
37297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37298 (eval $ac_compile) 2>conftest.er1
37300 grep -v '^ *+' conftest.er1 >conftest.err
37302 cat conftest.err >&5
37303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); } &&
37305 { ac_try='test -z "$ac_c_werror_flag"
37306 || test ! -s conftest.err'
37307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37308 (eval $ac_try) 2>&5
37310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311 (exit $ac_status); }; } &&
37312 { ac_try='test -s conftest.$ac_objext'
37313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37314 (eval $ac_try) 2>&5
37316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317 (exit $ac_status); }; }; then
37318 ac_hi=$ac_mid; break
37320 echo "$as_me: failed program was:" >&5
37321 sed 's/^/| /' conftest.$ac_ext >&5
37323 ac_lo=`expr $ac_mid + 1`
37324 if test $ac_lo -le $ac_mid; then
37328 ac_mid=`expr 2 '*' $ac_mid + 1`
37330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37333 echo "$as_me: failed program was:" >&5
37334 sed 's/^/| /' conftest.$ac_ext >&5
37336 cat >conftest.$ac_ext <<_ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h. */
37342 $ac_includes_default
37346 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37353 rm -f conftest.$ac_objext
37354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37355 (eval $ac_compile) 2>conftest.er1
37357 grep -v '^ *+' conftest.er1 >conftest.err
37359 cat conftest.err >&5
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); } &&
37362 { ac_try='test -z "$ac_c_werror_flag"
37363 || test ! -s conftest.err'
37364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37365 (eval $ac_try) 2>&5
37367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368 (exit $ac_status); }; } &&
37369 { ac_try='test -s conftest.$ac_objext'
37370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37371 (eval $ac_try) 2>&5
37373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37374 (exit $ac_status); }; }; then
37377 cat >conftest.$ac_ext <<_ACEOF
37380 cat confdefs.h >>conftest.$ac_ext
37381 cat >>conftest.$ac_ext <<_ACEOF
37382 /* end confdefs.h. */
37383 $ac_includes_default
37387 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37394 rm -f conftest.$ac_objext
37395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37396 (eval $ac_compile) 2>conftest.er1
37398 grep -v '^ *+' conftest.er1 >conftest.err
37400 cat conftest.err >&5
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); } &&
37403 { ac_try='test -z "$ac_c_werror_flag"
37404 || test ! -s conftest.err'
37405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37406 (eval $ac_try) 2>&5
37408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409 (exit $ac_status); }; } &&
37410 { ac_try='test -s conftest.$ac_objext'
37411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37412 (eval $ac_try) 2>&5
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); }; }; then
37416 ac_lo=$ac_mid; break
37418 echo "$as_me: failed program was:" >&5
37419 sed 's/^/| /' conftest.$ac_ext >&5
37421 ac_hi=`expr '(' $ac_mid ')' - 1`
37422 if test $ac_mid -le $ac_hi; then
37426 ac_mid=`expr 2 '*' $ac_mid`
37428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37431 echo "$as_me: failed program was:" >&5
37432 sed 's/^/| /' conftest.$ac_ext >&5
37436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37439 # Binary search between lo and hi bounds.
37440 while test "x$ac_lo" != "x$ac_hi"; do
37441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37442 cat >conftest.$ac_ext <<_ACEOF
37445 cat confdefs.h >>conftest.$ac_ext
37446 cat >>conftest.$ac_ext <<_ACEOF
37447 /* end confdefs.h. */
37448 $ac_includes_default
37452 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37459 rm -f conftest.$ac_objext
37460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37461 (eval $ac_compile) 2>conftest.er1
37463 grep -v '^ *+' conftest.er1 >conftest.err
37465 cat conftest.err >&5
37466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467 (exit $ac_status); } &&
37468 { ac_try='test -z "$ac_c_werror_flag"
37469 || test ! -s conftest.err'
37470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471 (eval $ac_try) 2>&5
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); }; } &&
37475 { ac_try='test -s conftest.$ac_objext'
37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477 (eval $ac_try) 2>&5
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; }; then
37483 echo "$as_me: failed program was:" >&5
37484 sed 's/^/| /' conftest.$ac_ext >&5
37486 ac_lo=`expr '(' $ac_mid ')' + 1`
37488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37491 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37492 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37493 See \`config.log' for more details." >&5
37494 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37495 See \`config.log' for more details." >&2;}
37496 { (exit 1); exit 1; }; } ;;
37499 if test "$cross_compiling" = yes; then
37500 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37501 See \`config.log' for more details." >&5
37502 echo "$as_me: error: cannot run test program while cross compiling
37503 See \`config.log' for more details." >&2;}
37504 { (exit 1); exit 1; }; }
37506 cat >conftest.$ac_ext <<_ACEOF
37509 cat confdefs.h >>conftest.$ac_ext
37510 cat >>conftest.$ac_ext <<_ACEOF
37511 /* end confdefs.h. */
37512 $ac_includes_default
37513 long longval () { return (long) (sizeof (wchar_t)); }
37514 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37516 #include <stdlib.h>
37521 FILE *f = fopen ("conftest.val", "w");
37524 if (((long) (sizeof (wchar_t))) < 0)
37526 long i = longval ();
37527 if (i != ((long) (sizeof (wchar_t))))
37529 fprintf (f, "%ld\n", i);
37533 unsigned long i = ulongval ();
37534 if (i != ((long) (sizeof (wchar_t))))
37536 fprintf (f, "%lu\n", i);
37538 exit (ferror (f) || fclose (f) != 0);
37544 rm -f conftest$ac_exeext
37545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37546 (eval $ac_link) 2>&5
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; }; then
37555 ac_cv_sizeof_wchar_t=`cat conftest.val`
37557 echo "$as_me: program exited with status $ac_status" >&5
37558 echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37561 ( exit $ac_status )
37562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37563 See \`config.log' for more details." >&5
37564 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37565 See \`config.log' for more details." >&2;}
37566 { (exit 1); exit 1; }; }
37568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37573 ac_cv_sizeof_wchar_t=0
37576 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37577 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37578 cat >>confdefs.h <<_ACEOF
37579 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37584 if test "$ac_cv_sizeof_int" -lt 4 ; then
37585 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37586 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37589 cat >>confdefs.h <<\_ACEOF
37590 #define LBER_INT_T long
37595 cat >>confdefs.h <<\_ACEOF
37596 #define LBER_INT_T int
37602 cat >>confdefs.h <<\_ACEOF
37603 #define LBER_LEN_T long
37607 cat >>confdefs.h <<\_ACEOF
37608 #define LBER_SOCKET_T int
37612 cat >>confdefs.h <<\_ACEOF
37613 #define LBER_TAG_T long
37617 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37618 if test $ac_cv_sizeof_long_long -gt 4 ; then
37619 ol_with_mp=longlong
37621 cat >>confdefs.h <<\_ACEOF
37622 #define USE_MP_LONG_LONG 1
37625 elif test $ol_with_mp = longlong ; then
37626 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37627 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37628 { (exit 1); exit 1; }; }
37631 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37632 if test $ac_cv_sizeof_long -gt 4 ; then
37635 cat >>confdefs.h <<\_ACEOF
37636 #define USE_MP_LONG 1
37639 elif test $ol_with_mp = long ; then
37640 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37641 echo "$as_me: error: long unusable for multiple precision" >&2;}
37642 { (exit 1); exit 1; }; }
37645 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37647 for ac_header in openssl/bn.h
37649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37651 echo "$as_me:$LINENO: checking for $ac_header" >&5
37652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37654 echo $ECHO_N "(cached) $ECHO_C" >&6
37656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37659 # Is the header compilable?
37660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37662 cat >conftest.$ac_ext <<_ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h. */
37668 $ac_includes_default
37669 #include <$ac_header>
37671 rm -f conftest.$ac_objext
37672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37673 (eval $ac_compile) 2>conftest.er1
37675 grep -v '^ *+' conftest.er1 >conftest.err
37677 cat conftest.err >&5
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); } &&
37680 { ac_try='test -z "$ac_c_werror_flag"
37681 || test ! -s conftest.err'
37682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37683 (eval $ac_try) 2>&5
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); }; } &&
37687 { ac_try='test -s conftest.$ac_objext'
37688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37689 (eval $ac_try) 2>&5
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); }; }; then
37693 ac_header_compiler=yes
37695 echo "$as_me: failed program was:" >&5
37696 sed 's/^/| /' conftest.$ac_ext >&5
37698 ac_header_compiler=no
37700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37702 echo "${ECHO_T}$ac_header_compiler" >&6
37704 # Is the header present?
37705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37707 cat >conftest.$ac_ext <<_ACEOF
37710 cat confdefs.h >>conftest.$ac_ext
37711 cat >>conftest.$ac_ext <<_ACEOF
37712 /* end confdefs.h. */
37713 #include <$ac_header>
37715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37718 grep -v '^ *+' conftest.er1 >conftest.err
37720 cat conftest.err >&5
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); } >/dev/null; then
37723 if test -s conftest.err; then
37724 ac_cpp_err=$ac_c_preproc_warn_flag
37725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37732 if test -z "$ac_cpp_err"; then
37733 ac_header_preproc=yes
37735 echo "$as_me: failed program was:" >&5
37736 sed 's/^/| /' conftest.$ac_ext >&5
37738 ac_header_preproc=no
37740 rm -f conftest.err conftest.$ac_ext
37741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37742 echo "${ECHO_T}$ac_header_preproc" >&6
37744 # So? What about this header?
37745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37751 ac_header_preproc=yes
37754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37768 ## --------------------------------------------- ##
37769 ## Report this to <http://www.openldap.org/its/> ##
37770 ## --------------------------------------------- ##
37773 sed "s/^/$as_me: WARNING: /" >&2
37776 echo "$as_me:$LINENO: checking for $ac_header" >&5
37777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37779 echo $ECHO_N "(cached) $ECHO_C" >&6
37781 eval "$as_ac_Header=\$ac_header_preproc"
37783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37788 cat >>confdefs.h <<_ACEOF
37789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37797 for ac_header in openssl/crypto.h
37799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37801 echo "$as_me:$LINENO: checking for $ac_header" >&5
37802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37804 echo $ECHO_N "(cached) $ECHO_C" >&6
37806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37809 # Is the header compilable?
37810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37812 cat >conftest.$ac_ext <<_ACEOF
37815 cat confdefs.h >>conftest.$ac_ext
37816 cat >>conftest.$ac_ext <<_ACEOF
37817 /* end confdefs.h. */
37818 $ac_includes_default
37819 #include <$ac_header>
37821 rm -f conftest.$ac_objext
37822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37823 (eval $ac_compile) 2>conftest.er1
37825 grep -v '^ *+' conftest.er1 >conftest.err
37827 cat conftest.err >&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } &&
37830 { ac_try='test -z "$ac_c_werror_flag"
37831 || test ! -s conftest.err'
37832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37833 (eval $ac_try) 2>&5
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); }; } &&
37837 { ac_try='test -s conftest.$ac_objext'
37838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37839 (eval $ac_try) 2>&5
37841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); }; }; then
37843 ac_header_compiler=yes
37845 echo "$as_me: failed program was:" >&5
37846 sed 's/^/| /' conftest.$ac_ext >&5
37848 ac_header_compiler=no
37850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37852 echo "${ECHO_T}$ac_header_compiler" >&6
37854 # Is the header present?
37855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37857 cat >conftest.$ac_ext <<_ACEOF
37860 cat confdefs.h >>conftest.$ac_ext
37861 cat >>conftest.$ac_ext <<_ACEOF
37862 /* end confdefs.h. */
37863 #include <$ac_header>
37865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37868 grep -v '^ *+' conftest.er1 >conftest.err
37870 cat conftest.err >&5
37871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872 (exit $ac_status); } >/dev/null; then
37873 if test -s conftest.err; then
37874 ac_cpp_err=$ac_c_preproc_warn_flag
37875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37882 if test -z "$ac_cpp_err"; then
37883 ac_header_preproc=yes
37885 echo "$as_me: failed program was:" >&5
37886 sed 's/^/| /' conftest.$ac_ext >&5
37888 ac_header_preproc=no
37890 rm -f conftest.err conftest.$ac_ext
37891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37892 echo "${ECHO_T}$ac_header_preproc" >&6
37894 # So? What about this header?
37895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37901 ac_header_preproc=yes
37904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37918 ## --------------------------------------------- ##
37919 ## Report this to <http://www.openldap.org/its/> ##
37920 ## --------------------------------------------- ##
37923 sed "s/^/$as_me: WARNING: /" >&2
37926 echo "$as_me:$LINENO: checking for $ac_header" >&5
37927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37929 echo $ECHO_N "(cached) $ECHO_C" >&6
37931 eval "$as_ac_Header=\$ac_header_preproc"
37933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37938 cat >>confdefs.h <<_ACEOF
37939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37946 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37947 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37948 test "$ol_with_tls" = "found" ; then
37951 cat >>confdefs.h <<\_ACEOF
37952 #define USE_MP_BIGNUM 1
37955 elif test $ol_with_mp = bignum ; then
37956 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37957 echo "$as_me: error: bignum not available" >&2;}
37958 { (exit 1); exit 1; }; }
37961 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37963 for ac_header in gmp.h
37965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37967 echo "$as_me:$LINENO: checking for $ac_header" >&5
37968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37970 echo $ECHO_N "(cached) $ECHO_C" >&6
37972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37975 # Is the header compilable?
37976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37978 cat >conftest.$ac_ext <<_ACEOF
37981 cat confdefs.h >>conftest.$ac_ext
37982 cat >>conftest.$ac_ext <<_ACEOF
37983 /* end confdefs.h. */
37984 $ac_includes_default
37985 #include <$ac_header>
37987 rm -f conftest.$ac_objext
37988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37989 (eval $ac_compile) 2>conftest.er1
37991 grep -v '^ *+' conftest.er1 >conftest.err
37993 cat conftest.err >&5
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); } &&
37996 { ac_try='test -z "$ac_c_werror_flag"
37997 || test ! -s conftest.err'
37998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37999 (eval $ac_try) 2>&5
38001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002 (exit $ac_status); }; } &&
38003 { ac_try='test -s conftest.$ac_objext'
38004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38005 (eval $ac_try) 2>&5
38007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008 (exit $ac_status); }; }; then
38009 ac_header_compiler=yes
38011 echo "$as_me: failed program was:" >&5
38012 sed 's/^/| /' conftest.$ac_ext >&5
38014 ac_header_compiler=no
38016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38018 echo "${ECHO_T}$ac_header_compiler" >&6
38020 # Is the header present?
38021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38023 cat >conftest.$ac_ext <<_ACEOF
38026 cat confdefs.h >>conftest.$ac_ext
38027 cat >>conftest.$ac_ext <<_ACEOF
38028 /* end confdefs.h. */
38029 #include <$ac_header>
38031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38034 grep -v '^ *+' conftest.er1 >conftest.err
38036 cat conftest.err >&5
38037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038 (exit $ac_status); } >/dev/null; then
38039 if test -s conftest.err; then
38040 ac_cpp_err=$ac_c_preproc_warn_flag
38041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38048 if test -z "$ac_cpp_err"; then
38049 ac_header_preproc=yes
38051 echo "$as_me: failed program was:" >&5
38052 sed 's/^/| /' conftest.$ac_ext >&5
38054 ac_header_preproc=no
38056 rm -f conftest.err conftest.$ac_ext
38057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38058 echo "${ECHO_T}$ac_header_preproc" >&6
38060 # So? What about this header?
38061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38067 ac_header_preproc=yes
38070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38084 ## --------------------------------------------- ##
38085 ## Report this to <http://www.openldap.org/its/> ##
38086 ## --------------------------------------------- ##
38089 sed "s/^/$as_me: WARNING: /" >&2
38092 echo "$as_me:$LINENO: checking for $ac_header" >&5
38093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38095 echo $ECHO_N "(cached) $ECHO_C" >&6
38097 eval "$as_ac_Header=\$ac_header_preproc"
38099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38104 cat >>confdefs.h <<_ACEOF
38105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38113 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38114 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38115 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38116 echo $ECHO_N "(cached) $ECHO_C" >&6
38118 ac_check_lib_save_LIBS=$LIBS
38120 cat >conftest.$ac_ext <<_ACEOF
38123 cat confdefs.h >>conftest.$ac_ext
38124 cat >>conftest.$ac_ext <<_ACEOF
38125 /* end confdefs.h. */
38127 /* Override any gcc2 internal prototype to avoid an error. */
38131 /* We use char because int might match the return type of a gcc2
38132 builtin and then its argument prototype would still apply. */
38133 char __gmpz_add_ui ();
38142 rm -f conftest.$ac_objext conftest$ac_exeext
38143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38144 (eval $ac_link) 2>conftest.er1
38146 grep -v '^ *+' conftest.er1 >conftest.err
38148 cat conftest.err >&5
38149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38150 (exit $ac_status); } &&
38151 { ac_try='test -z "$ac_c_werror_flag"
38152 || test ! -s conftest.err'
38153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38154 (eval $ac_try) 2>&5
38156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38157 (exit $ac_status); }; } &&
38158 { ac_try='test -s conftest$ac_exeext'
38159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38160 (eval $ac_try) 2>&5
38162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38163 (exit $ac_status); }; }; then
38164 ac_cv_lib_gmp___gmpz_add_ui=yes
38166 echo "$as_me: failed program was:" >&5
38167 sed 's/^/| /' conftest.$ac_ext >&5
38169 ac_cv_lib_gmp___gmpz_add_ui=no
38171 rm -f conftest.err conftest.$ac_objext \
38172 conftest$ac_exeext conftest.$ac_ext
38173 LIBS=$ac_check_lib_save_LIBS
38175 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38176 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38177 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38178 cat >>confdefs.h <<_ACEOF
38179 #define HAVE_LIBGMP 1
38186 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38188 cat >>confdefs.h <<\_ACEOF
38189 #define USE_MP_GMP 1
38193 elif test $ol_with_mp = gmp ; then
38194 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38195 echo "$as_me: error: gmp not available" >&2;}
38196 { (exit 1); exit 1; }; }
38199 if test $ol_with_mp = auto ; then
38203 echo "$as_me:$LINENO: checking for working memcmp" >&5
38204 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38205 if test "${ac_cv_func_memcmp_working+set}" = set; then
38206 echo $ECHO_N "(cached) $ECHO_C" >&6
38208 if test "$cross_compiling" = yes; then
38209 ac_cv_func_memcmp_working=no
38211 cat >conftest.$ac_ext <<_ACEOF
38214 cat confdefs.h >>conftest.$ac_ext
38215 cat >>conftest.$ac_ext <<_ACEOF
38216 /* end confdefs.h. */
38217 $ac_includes_default
38222 /* Some versions of memcmp are not 8-bit clean. */
38223 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38224 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38227 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38228 or more and with at least one buffer not starting on a 4-byte boundary.
38229 William Lewis provided this test program. */
38234 for (i = 0; i < 4; i++)
38238 strcpy (a, "--------01111111");
38239 strcpy (b, "--------10000000");
38240 if (memcmp (a, b, 16) >= 0)
38250 rm -f conftest$ac_exeext
38251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38252 (eval $ac_link) 2>&5
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38257 (eval $ac_try) 2>&5
38259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); }; }; then
38261 ac_cv_func_memcmp_working=yes
38263 echo "$as_me: program exited with status $ac_status" >&5
38264 echo "$as_me: failed program was:" >&5
38265 sed 's/^/| /' conftest.$ac_ext >&5
38267 ( exit $ac_status )
38268 ac_cv_func_memcmp_working=no
38270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38273 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38274 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38275 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38276 "memcmp.$ac_objext" | \
38277 *" memcmp.$ac_objext" | \
38278 "memcmp.$ac_objext "* | \
38279 *" memcmp.$ac_objext "* ) ;;
38280 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38285 if test $ac_cv_func_memcmp_working = no ; then
38287 cat >>confdefs.h <<\_ACEOF
38288 #define NEED_MEMCMP_REPLACEMENT 1
38294 for ac_func in strftime
38296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38297 echo "$as_me:$LINENO: checking for $ac_func" >&5
38298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38299 if eval "test \"\${$as_ac_var+set}\" = set"; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38302 cat >conftest.$ac_ext <<_ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h. */
38308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38310 #define $ac_func innocuous_$ac_func
38312 /* System header to define __stub macros and hopefully few prototypes,
38313 which can conflict with char $ac_func (); below.
38314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38315 <limits.h> exists even on freestanding compilers. */
38318 # include <limits.h>
38320 # include <assert.h>
38325 /* Override any gcc2 internal prototype to avoid an error. */
38330 /* We use char because int might match the return type of a gcc2
38331 builtin and then its argument prototype would still apply. */
38333 /* The GNU C library defines this for functions which it implements
38334 to always fail with ENOSYS. Some functions are actually named
38335 something starting with __ and the normal name is an alias. */
38336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38339 char (*f) () = $ac_func;
38348 return f != $ac_func;
38353 rm -f conftest.$ac_objext conftest$ac_exeext
38354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38355 (eval $ac_link) 2>conftest.er1
38357 grep -v '^ *+' conftest.er1 >conftest.err
38359 cat conftest.err >&5
38360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361 (exit $ac_status); } &&
38362 { ac_try='test -z "$ac_c_werror_flag"
38363 || test ! -s conftest.err'
38364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365 (eval $ac_try) 2>&5
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); }; } &&
38369 { ac_try='test -s conftest$ac_exeext'
38370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371 (eval $ac_try) 2>&5
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); }; }; then
38375 eval "$as_ac_var=yes"
38377 echo "$as_me: failed program was:" >&5
38378 sed 's/^/| /' conftest.$ac_ext >&5
38380 eval "$as_ac_var=no"
38382 rm -f conftest.err conftest.$ac_objext \
38383 conftest$ac_exeext conftest.$ac_ext
38385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38387 if test `eval echo '${'$as_ac_var'}'` = yes; then
38388 cat >>confdefs.h <<_ACEOF
38389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38393 # strftime is in -lintl on SCO UNIX.
38394 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38395 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38396 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38397 echo $ECHO_N "(cached) $ECHO_C" >&6
38399 ac_check_lib_save_LIBS=$LIBS
38400 LIBS="-lintl $LIBS"
38401 cat >conftest.$ac_ext <<_ACEOF
38404 cat confdefs.h >>conftest.$ac_ext
38405 cat >>conftest.$ac_ext <<_ACEOF
38406 /* end confdefs.h. */
38408 /* Override any gcc2 internal prototype to avoid an error. */
38412 /* We use char because int might match the return type of a gcc2
38413 builtin and then its argument prototype would still apply. */
38423 rm -f conftest.$ac_objext conftest$ac_exeext
38424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38425 (eval $ac_link) 2>conftest.er1
38427 grep -v '^ *+' conftest.er1 >conftest.err
38429 cat conftest.err >&5
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); } &&
38432 { ac_try='test -z "$ac_c_werror_flag"
38433 || test ! -s conftest.err'
38434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38435 (eval $ac_try) 2>&5
38437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438 (exit $ac_status); }; } &&
38439 { ac_try='test -s conftest$ac_exeext'
38440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38441 (eval $ac_try) 2>&5
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); }; }; then
38445 ac_cv_lib_intl_strftime=yes
38447 echo "$as_me: failed program was:" >&5
38448 sed 's/^/| /' conftest.$ac_ext >&5
38450 ac_cv_lib_intl_strftime=no
38452 rm -f conftest.err conftest.$ac_objext \
38453 conftest$ac_exeext conftest.$ac_ext
38454 LIBS=$ac_check_lib_save_LIBS
38456 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38457 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38458 if test $ac_cv_lib_intl_strftime = yes; then
38459 cat >>confdefs.h <<\_ACEOF
38460 #define HAVE_STRFTIME 1
38463 LIBS="-lintl $LIBS"
38470 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38471 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38472 if test "${ol_cv_func_inet_aton+set}" = set; then
38473 echo $ECHO_N "(cached) $ECHO_C" >&6
38475 cat >conftest.$ac_ext <<_ACEOF
38478 cat confdefs.h >>conftest.$ac_ext
38479 cat >>conftest.$ac_ext <<_ACEOF
38480 /* end confdefs.h. */
38482 #ifdef HAVE_SYS_TYPES_H
38483 # include <sys/types.h>
38485 #ifdef HAVE_SYS_SOCKET_H
38486 # include <sys/socket.h>
38487 # ifdef HAVE_SYS_SELECT_H
38488 # include <sys/select.h>
38490 # include <netinet/in.h>
38491 # ifdef HAVE_ARPA_INET_H
38492 # include <arpa/inet.h>
38500 int rc = inet_aton( "255.255.255.255", &in );
38505 rm -f conftest.$ac_objext conftest$ac_exeext
38506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38507 (eval $ac_link) 2>conftest.er1
38509 grep -v '^ *+' conftest.er1 >conftest.err
38511 cat conftest.err >&5
38512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513 (exit $ac_status); } &&
38514 { ac_try='test -z "$ac_c_werror_flag"
38515 || test ! -s conftest.err'
38516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38517 (eval $ac_try) 2>&5
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); }; } &&
38521 { ac_try='test -s conftest$ac_exeext'
38522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38523 (eval $ac_try) 2>&5
38525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38526 (exit $ac_status); }; }; then
38527 ol_cv_func_inet_aton=yes
38529 echo "$as_me: failed program was:" >&5
38530 sed 's/^/| /' conftest.$ac_ext >&5
38532 ol_cv_func_inet_aton=no
38534 rm -f conftest.err conftest.$ac_objext \
38535 conftest$ac_exeext conftest.$ac_ext
38537 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38538 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38539 if test $ol_cv_func_inet_aton != no; then
38541 cat >>confdefs.h <<\_ACEOF
38542 #define HAVE_INET_ATON 1
38548 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38549 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38550 if test "${ac_cv_func__spawnlp+set}" = set; then
38551 echo $ECHO_N "(cached) $ECHO_C" >&6
38553 cat >conftest.$ac_ext <<_ACEOF
38556 cat confdefs.h >>conftest.$ac_ext
38557 cat >>conftest.$ac_ext <<_ACEOF
38558 /* end confdefs.h. */
38559 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38561 #define _spawnlp innocuous__spawnlp
38563 /* System header to define __stub macros and hopefully few prototypes,
38564 which can conflict with char _spawnlp (); below.
38565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38566 <limits.h> exists even on freestanding compilers. */
38569 # include <limits.h>
38571 # include <assert.h>
38576 /* Override any gcc2 internal prototype to avoid an error. */
38581 /* We use char because int might match the return type of a gcc2
38582 builtin and then its argument prototype would still apply. */
38584 /* The GNU C library defines this for functions which it implements
38585 to always fail with ENOSYS. Some functions are actually named
38586 something starting with __ and the normal name is an alias. */
38587 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38590 char (*f) () = _spawnlp;
38599 return f != _spawnlp;
38604 rm -f conftest.$ac_objext conftest$ac_exeext
38605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38606 (eval $ac_link) 2>conftest.er1
38608 grep -v '^ *+' conftest.er1 >conftest.err
38610 cat conftest.err >&5
38611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612 (exit $ac_status); } &&
38613 { ac_try='test -z "$ac_c_werror_flag"
38614 || test ! -s conftest.err'
38615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38616 (eval $ac_try) 2>&5
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); }; } &&
38620 { ac_try='test -s conftest$ac_exeext'
38621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38622 (eval $ac_try) 2>&5
38624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625 (exit $ac_status); }; }; then
38626 ac_cv_func__spawnlp=yes
38628 echo "$as_me: failed program was:" >&5
38629 sed 's/^/| /' conftest.$ac_ext >&5
38631 ac_cv_func__spawnlp=no
38633 rm -f conftest.err conftest.$ac_objext \
38634 conftest$ac_exeext conftest.$ac_ext
38636 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38637 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38638 if test $ac_cv_func__spawnlp = yes; then
38640 cat >>confdefs.h <<\_ACEOF
38641 #define HAVE_SPAWNLP 1
38647 echo "$as_me:$LINENO: checking for _snprintf" >&5
38648 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38649 if test "${ac_cv_func__snprintf+set}" = set; then
38650 echo $ECHO_N "(cached) $ECHO_C" >&6
38652 cat >conftest.$ac_ext <<_ACEOF
38655 cat confdefs.h >>conftest.$ac_ext
38656 cat >>conftest.$ac_ext <<_ACEOF
38657 /* end confdefs.h. */
38658 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38660 #define _snprintf innocuous__snprintf
38662 /* System header to define __stub macros and hopefully few prototypes,
38663 which can conflict with char _snprintf (); below.
38664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38665 <limits.h> exists even on freestanding compilers. */
38668 # include <limits.h>
38670 # include <assert.h>
38675 /* Override any gcc2 internal prototype to avoid an error. */
38680 /* We use char because int might match the return type of a gcc2
38681 builtin and then its argument prototype would still apply. */
38683 /* The GNU C library defines this for functions which it implements
38684 to always fail with ENOSYS. Some functions are actually named
38685 something starting with __ and the normal name is an alias. */
38686 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38689 char (*f) () = _snprintf;
38698 return f != _snprintf;
38703 rm -f conftest.$ac_objext conftest$ac_exeext
38704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38705 (eval $ac_link) 2>conftest.er1
38707 grep -v '^ *+' conftest.er1 >conftest.err
38709 cat conftest.err >&5
38710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 (exit $ac_status); } &&
38712 { ac_try='test -z "$ac_c_werror_flag"
38713 || test ! -s conftest.err'
38714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38715 (eval $ac_try) 2>&5
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); }; } &&
38719 { ac_try='test -s conftest$ac_exeext'
38720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38721 (eval $ac_try) 2>&5
38723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724 (exit $ac_status); }; }; then
38725 ac_cv_func__snprintf=yes
38727 echo "$as_me: failed program was:" >&5
38728 sed 's/^/| /' conftest.$ac_ext >&5
38730 ac_cv_func__snprintf=no
38732 rm -f conftest.err conftest.$ac_objext \
38733 conftest$ac_exeext conftest.$ac_ext
38735 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38736 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38737 if test $ac_cv_func__snprintf = yes; then
38738 ac_cv_func_snprintf=yes
38740 cat >>confdefs.h <<\_ACEOF
38741 #define snprintf _snprintf
38748 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38749 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38750 if test "${ac_cv_func__vsnprintf+set}" = set; then
38751 echo $ECHO_N "(cached) $ECHO_C" >&6
38753 cat >conftest.$ac_ext <<_ACEOF
38756 cat confdefs.h >>conftest.$ac_ext
38757 cat >>conftest.$ac_ext <<_ACEOF
38758 /* end confdefs.h. */
38759 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38761 #define _vsnprintf innocuous__vsnprintf
38763 /* System header to define __stub macros and hopefully few prototypes,
38764 which can conflict with char _vsnprintf (); below.
38765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38766 <limits.h> exists even on freestanding compilers. */
38769 # include <limits.h>
38771 # include <assert.h>
38776 /* Override any gcc2 internal prototype to avoid an error. */
38781 /* We use char because int might match the return type of a gcc2
38782 builtin and then its argument prototype would still apply. */
38783 char _vsnprintf ();
38784 /* The GNU C library defines this for functions which it implements
38785 to always fail with ENOSYS. Some functions are actually named
38786 something starting with __ and the normal name is an alias. */
38787 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38790 char (*f) () = _vsnprintf;
38799 return f != _vsnprintf;
38804 rm -f conftest.$ac_objext conftest$ac_exeext
38805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38806 (eval $ac_link) 2>conftest.er1
38808 grep -v '^ *+' conftest.er1 >conftest.err
38810 cat conftest.err >&5
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); } &&
38813 { ac_try='test -z "$ac_c_werror_flag"
38814 || test ! -s conftest.err'
38815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38816 (eval $ac_try) 2>&5
38818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819 (exit $ac_status); }; } &&
38820 { ac_try='test -s conftest$ac_exeext'
38821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38822 (eval $ac_try) 2>&5
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); }; }; then
38826 ac_cv_func__vsnprintf=yes
38828 echo "$as_me: failed program was:" >&5
38829 sed 's/^/| /' conftest.$ac_ext >&5
38831 ac_cv_func__vsnprintf=no
38833 rm -f conftest.err conftest.$ac_objext \
38834 conftest$ac_exeext conftest.$ac_ext
38836 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38837 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38838 if test $ac_cv_func__vsnprintf = yes; then
38839 ac_cv_func_vsnprintf=yes
38841 cat >>confdefs.h <<\_ACEOF
38842 #define vsnprintf _vsnprintf
38850 for ac_func in vprintf
38852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38853 echo "$as_me:$LINENO: checking for $ac_func" >&5
38854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38855 if eval "test \"\${$as_ac_var+set}\" = set"; then
38856 echo $ECHO_N "(cached) $ECHO_C" >&6
38858 cat >conftest.$ac_ext <<_ACEOF
38861 cat confdefs.h >>conftest.$ac_ext
38862 cat >>conftest.$ac_ext <<_ACEOF
38863 /* end confdefs.h. */
38864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38866 #define $ac_func innocuous_$ac_func
38868 /* System header to define __stub macros and hopefully few prototypes,
38869 which can conflict with char $ac_func (); below.
38870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38871 <limits.h> exists even on freestanding compilers. */
38874 # include <limits.h>
38876 # include <assert.h>
38881 /* Override any gcc2 internal prototype to avoid an error. */
38886 /* We use char because int might match the return type of a gcc2
38887 builtin and then its argument prototype would still apply. */
38889 /* The GNU C library defines this for functions which it implements
38890 to always fail with ENOSYS. Some functions are actually named
38891 something starting with __ and the normal name is an alias. */
38892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38895 char (*f) () = $ac_func;
38904 return f != $ac_func;
38909 rm -f conftest.$ac_objext conftest$ac_exeext
38910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38911 (eval $ac_link) 2>conftest.er1
38913 grep -v '^ *+' conftest.er1 >conftest.err
38915 cat conftest.err >&5
38916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917 (exit $ac_status); } &&
38918 { ac_try='test -z "$ac_c_werror_flag"
38919 || test ! -s conftest.err'
38920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38921 (eval $ac_try) 2>&5
38923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924 (exit $ac_status); }; } &&
38925 { ac_try='test -s conftest$ac_exeext'
38926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927 (eval $ac_try) 2>&5
38929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930 (exit $ac_status); }; }; then
38931 eval "$as_ac_var=yes"
38933 echo "$as_me: failed program was:" >&5
38934 sed 's/^/| /' conftest.$ac_ext >&5
38936 eval "$as_ac_var=no"
38938 rm -f conftest.err conftest.$ac_objext \
38939 conftest$ac_exeext conftest.$ac_ext
38941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38943 if test `eval echo '${'$as_ac_var'}'` = yes; then
38944 cat >>confdefs.h <<_ACEOF
38945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38948 echo "$as_me:$LINENO: checking for _doprnt" >&5
38949 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38950 if test "${ac_cv_func__doprnt+set}" = set; then
38951 echo $ECHO_N "(cached) $ECHO_C" >&6
38953 cat >conftest.$ac_ext <<_ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h. */
38959 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38961 #define _doprnt innocuous__doprnt
38963 /* System header to define __stub macros and hopefully few prototypes,
38964 which can conflict with char _doprnt (); below.
38965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38966 <limits.h> exists even on freestanding compilers. */
38969 # include <limits.h>
38971 # include <assert.h>
38976 /* Override any gcc2 internal prototype to avoid an error. */
38981 /* We use char because int might match the return type of a gcc2
38982 builtin and then its argument prototype would still apply. */
38984 /* The GNU C library defines this for functions which it implements
38985 to always fail with ENOSYS. Some functions are actually named
38986 something starting with __ and the normal name is an alias. */
38987 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38990 char (*f) () = _doprnt;
38999 return f != _doprnt;
39004 rm -f conftest.$ac_objext conftest$ac_exeext
39005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39006 (eval $ac_link) 2>conftest.er1
39008 grep -v '^ *+' conftest.er1 >conftest.err
39010 cat conftest.err >&5
39011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39012 (exit $ac_status); } &&
39013 { ac_try='test -z "$ac_c_werror_flag"
39014 || test ! -s conftest.err'
39015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39016 (eval $ac_try) 2>&5
39018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019 (exit $ac_status); }; } &&
39020 { ac_try='test -s conftest$ac_exeext'
39021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022 (eval $ac_try) 2>&5
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); }; }; then
39026 ac_cv_func__doprnt=yes
39028 echo "$as_me: failed program was:" >&5
39029 sed 's/^/| /' conftest.$ac_ext >&5
39031 ac_cv_func__doprnt=no
39033 rm -f conftest.err conftest.$ac_objext \
39034 conftest$ac_exeext conftest.$ac_ext
39036 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39037 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39038 if test $ac_cv_func__doprnt = yes; then
39040 cat >>confdefs.h <<\_ACEOF
39041 #define HAVE_DOPRNT 1
39051 if test $ac_cv_func_vprintf = yes ; then
39054 for ac_func in snprintf vsnprintf
39056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39057 echo "$as_me:$LINENO: checking for $ac_func" >&5
39058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39059 if eval "test \"\${$as_ac_var+set}\" = set"; then
39060 echo $ECHO_N "(cached) $ECHO_C" >&6
39062 cat >conftest.$ac_ext <<_ACEOF
39065 cat confdefs.h >>conftest.$ac_ext
39066 cat >>conftest.$ac_ext <<_ACEOF
39067 /* end confdefs.h. */
39068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39070 #define $ac_func innocuous_$ac_func
39072 /* System header to define __stub macros and hopefully few prototypes,
39073 which can conflict with char $ac_func (); below.
39074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39075 <limits.h> exists even on freestanding compilers. */
39078 # include <limits.h>
39080 # include <assert.h>
39085 /* Override any gcc2 internal prototype to avoid an error. */
39090 /* We use char because int might match the return type of a gcc2
39091 builtin and then its argument prototype would still apply. */
39093 /* The GNU C library defines this for functions which it implements
39094 to always fail with ENOSYS. Some functions are actually named
39095 something starting with __ and the normal name is an alias. */
39096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39099 char (*f) () = $ac_func;
39108 return f != $ac_func;
39113 rm -f conftest.$ac_objext conftest$ac_exeext
39114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39115 (eval $ac_link) 2>conftest.er1
39117 grep -v '^ *+' conftest.er1 >conftest.err
39119 cat conftest.err >&5
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); } &&
39122 { ac_try='test -z "$ac_c_werror_flag"
39123 || test ! -s conftest.err'
39124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39125 (eval $ac_try) 2>&5
39127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128 (exit $ac_status); }; } &&
39129 { ac_try='test -s conftest$ac_exeext'
39130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39131 (eval $ac_try) 2>&5
39133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39134 (exit $ac_status); }; }; then
39135 eval "$as_ac_var=yes"
39137 echo "$as_me: failed program was:" >&5
39138 sed 's/^/| /' conftest.$ac_ext >&5
39140 eval "$as_ac_var=no"
39142 rm -f conftest.err conftest.$ac_objext \
39143 conftest$ac_exeext conftest.$ac_ext
39145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39147 if test `eval echo '${'$as_ac_var'}'` = yes; then
39148 cat >>confdefs.h <<_ACEOF
39149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39271 echo "$as_me:$LINENO: checking for $ac_func" >&5
39272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39273 if eval "test \"\${$as_ac_var+set}\" = set"; then
39274 echo $ECHO_N "(cached) $ECHO_C" >&6
39276 cat >conftest.$ac_ext <<_ACEOF
39279 cat confdefs.h >>conftest.$ac_ext
39280 cat >>conftest.$ac_ext <<_ACEOF
39281 /* end confdefs.h. */
39282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39284 #define $ac_func innocuous_$ac_func
39286 /* System header to define __stub macros and hopefully few prototypes,
39287 which can conflict with char $ac_func (); below.
39288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39289 <limits.h> exists even on freestanding compilers. */
39292 # include <limits.h>
39294 # include <assert.h>
39299 /* Override any gcc2 internal prototype to avoid an error. */
39304 /* We use char because int might match the return type of a gcc2
39305 builtin and then its argument prototype would still apply. */
39307 /* The GNU C library defines this for functions which it implements
39308 to always fail with ENOSYS. Some functions are actually named
39309 something starting with __ and the normal name is an alias. */
39310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39313 char (*f) () = $ac_func;
39322 return f != $ac_func;
39327 rm -f conftest.$ac_objext conftest$ac_exeext
39328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39329 (eval $ac_link) 2>conftest.er1
39331 grep -v '^ *+' conftest.er1 >conftest.err
39333 cat conftest.err >&5
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); } &&
39336 { ac_try='test -z "$ac_c_werror_flag"
39337 || test ! -s conftest.err'
39338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39339 (eval $ac_try) 2>&5
39341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342 (exit $ac_status); }; } &&
39343 { ac_try='test -s conftest$ac_exeext'
39344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39345 (eval $ac_try) 2>&5
39347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39348 (exit $ac_status); }; }; then
39349 eval "$as_ac_var=yes"
39351 echo "$as_me: failed program was:" >&5
39352 sed 's/^/| /' conftest.$ac_ext >&5
39354 eval "$as_ac_var=no"
39356 rm -f conftest.err conftest.$ac_objext \
39357 conftest$ac_exeext conftest.$ac_ext
39359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39361 if test `eval echo '${'$as_ac_var'}'` = yes; then
39362 cat >>confdefs.h <<_ACEOF
39363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39372 for ac_func in getopt getpeereid
39374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39375 echo "$as_me:$LINENO: checking for $ac_func" >&5
39376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39377 if eval "test \"\${$as_ac_var+set}\" = set"; then
39378 echo $ECHO_N "(cached) $ECHO_C" >&6
39380 cat >conftest.$ac_ext <<_ACEOF
39383 cat confdefs.h >>conftest.$ac_ext
39384 cat >>conftest.$ac_ext <<_ACEOF
39385 /* end confdefs.h. */
39386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39388 #define $ac_func innocuous_$ac_func
39390 /* System header to define __stub macros and hopefully few prototypes,
39391 which can conflict with char $ac_func (); below.
39392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39393 <limits.h> exists even on freestanding compilers. */
39396 # include <limits.h>
39398 # include <assert.h>
39403 /* Override any gcc2 internal prototype to avoid an error. */
39408 /* We use char because int might match the return type of a gcc2
39409 builtin and then its argument prototype would still apply. */
39411 /* The GNU C library defines this for functions which it implements
39412 to always fail with ENOSYS. Some functions are actually named
39413 something starting with __ and the normal name is an alias. */
39414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39417 char (*f) () = $ac_func;
39426 return f != $ac_func;
39431 rm -f conftest.$ac_objext conftest$ac_exeext
39432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39433 (eval $ac_link) 2>conftest.er1
39435 grep -v '^ *+' conftest.er1 >conftest.err
39437 cat conftest.err >&5
39438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 (exit $ac_status); } &&
39440 { ac_try='test -z "$ac_c_werror_flag"
39441 || test ! -s conftest.err'
39442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39443 (eval $ac_try) 2>&5
39445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446 (exit $ac_status); }; } &&
39447 { ac_try='test -s conftest$ac_exeext'
39448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39449 (eval $ac_try) 2>&5
39451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452 (exit $ac_status); }; }; then
39453 eval "$as_ac_var=yes"
39455 echo "$as_me: failed program was:" >&5
39456 sed 's/^/| /' conftest.$ac_ext >&5
39458 eval "$as_ac_var=no"
39460 rm -f conftest.err conftest.$ac_objext \
39461 conftest$ac_exeext conftest.$ac_ext
39463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39465 if test `eval echo '${'$as_ac_var'}'` = yes; then
39466 cat >>confdefs.h <<_ACEOF
39467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39472 "$ac_func.$ac_objext" | \
39473 *" $ac_func.$ac_objext" | \
39474 "$ac_func.$ac_objext "* | \
39475 *" $ac_func.$ac_objext "* ) ;;
39476 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39484 if test "$ac_cv_func_getopt" != yes; then
39485 LIBSRCS="$LIBSRCS getopt.c"
39488 if test "$ac_cv_func_getpeereid" != yes; then
39490 for ac_func in getpeerucred
39492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39493 echo "$as_me:$LINENO: checking for $ac_func" >&5
39494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39495 if eval "test \"\${$as_ac_var+set}\" = set"; then
39496 echo $ECHO_N "(cached) $ECHO_C" >&6
39498 cat >conftest.$ac_ext <<_ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h. */
39504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39506 #define $ac_func innocuous_$ac_func
39508 /* System header to define __stub macros and hopefully few prototypes,
39509 which can conflict with char $ac_func (); below.
39510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39511 <limits.h> exists even on freestanding compilers. */
39514 # include <limits.h>
39516 # include <assert.h>
39521 /* Override any gcc2 internal prototype to avoid an error. */
39526 /* We use char because int might match the return type of a gcc2
39527 builtin and then its argument prototype would still apply. */
39529 /* The GNU C library defines this for functions which it implements
39530 to always fail with ENOSYS. Some functions are actually named
39531 something starting with __ and the normal name is an alias. */
39532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39535 char (*f) () = $ac_func;
39544 return f != $ac_func;
39549 rm -f conftest.$ac_objext conftest$ac_exeext
39550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39551 (eval $ac_link) 2>conftest.er1
39553 grep -v '^ *+' conftest.er1 >conftest.err
39555 cat conftest.err >&5
39556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557 (exit $ac_status); } &&
39558 { ac_try='test -z "$ac_c_werror_flag"
39559 || test ! -s conftest.err'
39560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39561 (eval $ac_try) 2>&5
39563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39564 (exit $ac_status); }; } &&
39565 { ac_try='test -s conftest$ac_exeext'
39566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39567 (eval $ac_try) 2>&5
39569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39570 (exit $ac_status); }; }; then
39571 eval "$as_ac_var=yes"
39573 echo "$as_me: failed program was:" >&5
39574 sed 's/^/| /' conftest.$ac_ext >&5
39576 eval "$as_ac_var=no"
39578 rm -f conftest.err conftest.$ac_objext \
39579 conftest$ac_exeext conftest.$ac_ext
39581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39583 if test `eval echo '${'$as_ac_var'}'` = yes; then
39584 cat >>confdefs.h <<_ACEOF
39585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39591 if test "$ac_cv_func_getpeerucred" != yes ; then
39592 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39593 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39594 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39595 echo $ECHO_N "(cached) $ECHO_C" >&6
39597 cat >conftest.$ac_ext <<_ACEOF
39600 cat confdefs.h >>conftest.$ac_ext
39601 cat >>conftest.$ac_ext <<_ACEOF
39602 /* end confdefs.h. */
39603 $ac_includes_default
39604 #ifdef HAVE_SYS_SOCKET_H
39605 #include <sys/socket.h>
39611 static struct msghdr ac_aggr;
39612 if (ac_aggr.msg_accrightslen)
39618 rm -f conftest.$ac_objext
39619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39620 (eval $ac_compile) 2>conftest.er1
39622 grep -v '^ *+' conftest.er1 >conftest.err
39624 cat conftest.err >&5
39625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626 (exit $ac_status); } &&
39627 { ac_try='test -z "$ac_c_werror_flag"
39628 || test ! -s conftest.err'
39629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630 (eval $ac_try) 2>&5
39632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633 (exit $ac_status); }; } &&
39634 { ac_try='test -s conftest.$ac_objext'
39635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39636 (eval $ac_try) 2>&5
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); }; }; then
39640 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39642 echo "$as_me: failed program was:" >&5
39643 sed 's/^/| /' conftest.$ac_ext >&5
39645 cat >conftest.$ac_ext <<_ACEOF
39648 cat confdefs.h >>conftest.$ac_ext
39649 cat >>conftest.$ac_ext <<_ACEOF
39650 /* end confdefs.h. */
39651 $ac_includes_default
39652 #ifdef HAVE_SYS_SOCKET_H
39653 #include <sys/socket.h>
39659 static struct msghdr ac_aggr;
39660 if (sizeof ac_aggr.msg_accrightslen)
39666 rm -f conftest.$ac_objext
39667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39668 (eval $ac_compile) 2>conftest.er1
39670 grep -v '^ *+' conftest.er1 >conftest.err
39672 cat conftest.err >&5
39673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674 (exit $ac_status); } &&
39675 { ac_try='test -z "$ac_c_werror_flag"
39676 || test ! -s conftest.err'
39677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678 (eval $ac_try) 2>&5
39680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 (exit $ac_status); }; } &&
39682 { ac_try='test -s conftest.$ac_objext'
39683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39684 (eval $ac_try) 2>&5
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); }; }; then
39688 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39690 echo "$as_me: failed program was:" >&5
39691 sed 's/^/| /' conftest.$ac_ext >&5
39693 ac_cv_member_struct_msghdr_msg_accrightslen=no
39695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39700 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39701 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39703 cat >>confdefs.h <<_ACEOF
39704 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39710 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39711 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39712 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39713 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39714 echo $ECHO_N "(cached) $ECHO_C" >&6
39716 cat >conftest.$ac_ext <<_ACEOF
39719 cat confdefs.h >>conftest.$ac_ext
39720 cat >>conftest.$ac_ext <<_ACEOF
39721 /* end confdefs.h. */
39722 $ac_includes_default
39723 #ifdef HAVE_SYS_SOCKET_H
39724 #include <sys/socket.h>
39730 static struct msghdr ac_aggr;
39731 if (ac_aggr.msg_control)
39737 rm -f conftest.$ac_objext
39738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39739 (eval $ac_compile) 2>conftest.er1
39741 grep -v '^ *+' conftest.er1 >conftest.err
39743 cat conftest.err >&5
39744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39745 (exit $ac_status); } &&
39746 { ac_try='test -z "$ac_c_werror_flag"
39747 || test ! -s conftest.err'
39748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39749 (eval $ac_try) 2>&5
39751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752 (exit $ac_status); }; } &&
39753 { ac_try='test -s conftest.$ac_objext'
39754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39755 (eval $ac_try) 2>&5
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); }; }; then
39759 ac_cv_member_struct_msghdr_msg_control=yes
39761 echo "$as_me: failed program was:" >&5
39762 sed 's/^/| /' conftest.$ac_ext >&5
39764 cat >conftest.$ac_ext <<_ACEOF
39767 cat confdefs.h >>conftest.$ac_ext
39768 cat >>conftest.$ac_ext <<_ACEOF
39769 /* end confdefs.h. */
39770 $ac_includes_default
39771 #ifdef HAVE_SYS_SOCKET_H
39772 #include <sys/socket.h>
39778 static struct msghdr ac_aggr;
39779 if (sizeof ac_aggr.msg_control)
39785 rm -f conftest.$ac_objext
39786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39787 (eval $ac_compile) 2>conftest.er1
39789 grep -v '^ *+' conftest.er1 >conftest.err
39791 cat conftest.err >&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); } &&
39794 { ac_try='test -z "$ac_c_werror_flag"
39795 || test ! -s conftest.err'
39796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39797 (eval $ac_try) 2>&5
39799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800 (exit $ac_status); }; } &&
39801 { ac_try='test -s conftest.$ac_objext'
39802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39803 (eval $ac_try) 2>&5
39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806 (exit $ac_status); }; }; then
39807 ac_cv_member_struct_msghdr_msg_control=yes
39809 echo "$as_me: failed program was:" >&5
39810 sed 's/^/| /' conftest.$ac_ext >&5
39812 ac_cv_member_struct_msghdr_msg_control=no
39814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39818 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39819 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39820 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39822 cat >>confdefs.h <<_ACEOF
39823 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39831 LIBSRCS="$LIBSRCS getpeereid.c"
39834 if test "$ac_cv_func_snprintf" != yes ||
39835 test "$ac_cv_func_vsnprintf" != yes; then
39836 if test "$ac_cv_func_snprintf" != yes; then
39838 cat >>confdefs.h <<\_ACEOF
39839 #define snprintf ber_pvt_snprintf
39843 if test "$ac_cv_func_vsnprintf" != yes; then
39845 cat >>confdefs.h <<\_ACEOF
39846 #define vsnprintf ber_pvt_vsnprintf
39853 if test "$ol_enable_slapi" != no ; then
39855 for ac_header in ltdl.h
39857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39859 echo "$as_me:$LINENO: checking for $ac_header" >&5
39860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39862 echo $ECHO_N "(cached) $ECHO_C" >&6
39864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39867 # Is the header compilable?
39868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39870 cat >conftest.$ac_ext <<_ACEOF
39873 cat confdefs.h >>conftest.$ac_ext
39874 cat >>conftest.$ac_ext <<_ACEOF
39875 /* end confdefs.h. */
39876 $ac_includes_default
39877 #include <$ac_header>
39879 rm -f conftest.$ac_objext
39880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39881 (eval $ac_compile) 2>conftest.er1
39883 grep -v '^ *+' conftest.er1 >conftest.err
39885 cat conftest.err >&5
39886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887 (exit $ac_status); } &&
39888 { ac_try='test -z "$ac_c_werror_flag"
39889 || test ! -s conftest.err'
39890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39891 (eval $ac_try) 2>&5
39893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894 (exit $ac_status); }; } &&
39895 { ac_try='test -s conftest.$ac_objext'
39896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39897 (eval $ac_try) 2>&5
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); }; }; then
39901 ac_header_compiler=yes
39903 echo "$as_me: failed program was:" >&5
39904 sed 's/^/| /' conftest.$ac_ext >&5
39906 ac_header_compiler=no
39908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39910 echo "${ECHO_T}$ac_header_compiler" >&6
39912 # Is the header present?
39913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39915 cat >conftest.$ac_ext <<_ACEOF
39918 cat confdefs.h >>conftest.$ac_ext
39919 cat >>conftest.$ac_ext <<_ACEOF
39920 /* end confdefs.h. */
39921 #include <$ac_header>
39923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39926 grep -v '^ *+' conftest.er1 >conftest.err
39928 cat conftest.err >&5
39929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930 (exit $ac_status); } >/dev/null; then
39931 if test -s conftest.err; then
39932 ac_cpp_err=$ac_c_preproc_warn_flag
39933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39940 if test -z "$ac_cpp_err"; then
39941 ac_header_preproc=yes
39943 echo "$as_me: failed program was:" >&5
39944 sed 's/^/| /' conftest.$ac_ext >&5
39946 ac_header_preproc=no
39948 rm -f conftest.err conftest.$ac_ext
39949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39950 echo "${ECHO_T}$ac_header_preproc" >&6
39952 # So? What about this header?
39953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39959 ac_header_preproc=yes
39962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39976 ## --------------------------------------------- ##
39977 ## Report this to <http://www.openldap.org/its/> ##
39978 ## --------------------------------------------- ##
39981 sed "s/^/$as_me: WARNING: /" >&2
39984 echo "$as_me:$LINENO: checking for $ac_header" >&5
39985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39987 echo $ECHO_N "(cached) $ECHO_C" >&6
39989 eval "$as_ac_Header=\$ac_header_preproc"
39991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39996 cat >>confdefs.h <<_ACEOF
39997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40005 if test $ac_cv_header_ltdl_h != yes ; then
40006 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40007 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40008 { (exit 1); exit 1; }; }
40010 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40011 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40012 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40013 echo $ECHO_N "(cached) $ECHO_C" >&6
40015 ac_check_lib_save_LIBS=$LIBS
40016 LIBS="-lltdl $LIBS"
40017 cat >conftest.$ac_ext <<_ACEOF
40020 cat confdefs.h >>conftest.$ac_ext
40021 cat >>conftest.$ac_ext <<_ACEOF
40022 /* end confdefs.h. */
40024 /* Override any gcc2 internal prototype to avoid an error. */
40028 /* We use char because int might match the return type of a gcc2
40029 builtin and then its argument prototype would still apply. */
40039 rm -f conftest.$ac_objext conftest$ac_exeext
40040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40041 (eval $ac_link) 2>conftest.er1
40043 grep -v '^ *+' conftest.er1 >conftest.err
40045 cat conftest.err >&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } &&
40048 { ac_try='test -z "$ac_c_werror_flag"
40049 || test ! -s conftest.err'
40050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051 (eval $ac_try) 2>&5
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); }; } &&
40055 { ac_try='test -s conftest$ac_exeext'
40056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 (eval $ac_try) 2>&5
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); }; }; then
40061 ac_cv_lib_ltdl_lt_dlinit=yes
40063 echo "$as_me: failed program was:" >&5
40064 sed 's/^/| /' conftest.$ac_ext >&5
40066 ac_cv_lib_ltdl_lt_dlinit=no
40068 rm -f conftest.err conftest.$ac_objext \
40069 conftest$ac_exeext conftest.$ac_ext
40070 LIBS=$ac_check_lib_save_LIBS
40072 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40073 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40074 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40077 LIBSLAPI=libslapi.a
40078 LIBSLAPITOOLS=../libslapi.a
40080 cat >>confdefs.h <<\_ACEOF
40081 #define HAVE_LIBLTDL 1
40086 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40087 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40088 { (exit 1); exit 1; }; }
40093 cat >>confdefs.h <<\_ACEOF
40094 #define LDAP_SLAPI 1
40099 if test "$ol_enable_debug" != no ; then
40100 if test "$ol_enable_debug" = traditional; then
40102 cat >>confdefs.h <<\_ACEOF
40103 #define OLD_DEBUG 1
40108 cat >>confdefs.h <<\_ACEOF
40109 #define LDAP_DEBUG 1
40113 if test "$ol_enable_syslog" = yes ; then
40115 cat >>confdefs.h <<\_ACEOF
40116 #define LDAP_SYSLOG 1
40120 if test "$ol_link_kbind" != no ; then
40122 cat >>confdefs.h <<\_ACEOF
40123 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
40127 if test "$ol_enable_proctitle" != no ; then
40129 cat >>confdefs.h <<\_ACEOF
40130 #define LDAP_PROCTITLE 1
40134 if test "$ol_enable_referrals" != no ; then
40136 cat >>confdefs.h <<\_ACEOF
40137 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40141 if test "$ol_enable_local" != no; then
40143 cat >>confdefs.h <<\_ACEOF
40144 #define LDAP_PF_LOCAL 1
40148 if test "$ol_link_ipv6" != no; then
40150 cat >>confdefs.h <<\_ACEOF
40151 #define LDAP_PF_INET6 1
40155 if test "$ol_enable_cleartext" != no ; then
40157 cat >>confdefs.h <<\_ACEOF
40158 #define SLAPD_CLEARTEXT 1
40162 if test "$ol_enable_crypt" != no ; then
40164 cat >>confdefs.h <<\_ACEOF
40165 #define SLAPD_CRYPT 1
40169 if test "$ol_link_spasswd" != no ; then
40171 cat >>confdefs.h <<\_ACEOF
40172 #define SLAPD_SPASSWD 1
40176 if test "$ol_enable_rlookups" != no ; then
40178 cat >>confdefs.h <<\_ACEOF
40179 #define SLAPD_RLOOKUPS 1
40183 if test "$ol_enable_aci" != no ; then
40184 if test $ol_enable_dynacl = no ; then
40185 ol_enable_dynacl=yes
40186 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40187 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40189 if test "$ol_enable_aci" = mod ; then
40190 MFLAG=SLAPD_MOD_DYNAMIC
40191 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40192 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40193 { (exit 1); exit 1; }; }
40195 MFLAG=SLAPD_MOD_STATIC
40197 WITH_ACI_ENABLED=$ol_enable_aci
40199 cat >>confdefs.h <<_ACEOF
40200 #define SLAPD_ACI_ENABLED $MFLAG
40204 WITH_ACI_ENABLED=no
40206 if test "$ol_enable_dynacl" != no ; then
40208 cat >>confdefs.h <<\_ACEOF
40209 #define SLAP_DYNACL 1
40214 if test "$ol_link_modules" != no ; then
40216 cat >>confdefs.h <<\_ACEOF
40217 #define SLAPD_MODULES 1
40221 SLAPD_MODULES_LDFLAGS="-dlopen self"
40225 cat >>confdefs.h <<\_ACEOF
40226 #define SLAPD_MOD_STATIC 1
40230 cat >>confdefs.h <<\_ACEOF
40231 #define SLAPD_MOD_DYNAMIC 2
40235 if test "$ol_enable_monitor" != no ; then
40237 BUILD_MONITOR=$ol_enable_monitor
40238 if test "$ol_enable_monitor" = mod ; then
40239 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40240 MFLAG=SLAPD_MOD_DYNAMIC
40242 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40243 MFLAG=SLAPD_MOD_STATIC
40246 cat >>confdefs.h <<_ACEOF
40247 #define SLAPD_MONITOR $MFLAG
40252 if test "$ol_enable_bdb" != no ; then
40254 BUILD_BDB=$ol_enable_bdb
40255 if test "$ol_enable_bdb" = mod ; then
40256 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40257 MFLAG=SLAPD_MOD_DYNAMIC
40259 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40260 MFLAG=SLAPD_MOD_STATIC
40263 cat >>confdefs.h <<_ACEOF
40264 #define SLAPD_BDB $MFLAG
40269 if test "$ol_enable_dnssrv" != no ; then
40271 BUILD_DNSSRV=$ol_enable_dnssrv
40272 if test "$ol_enable_dnssrv" = mod ; then
40273 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40274 MFLAG=SLAPD_MOD_DYNAMIC
40276 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40277 MFLAG=SLAPD_MOD_STATIC
40280 cat >>confdefs.h <<_ACEOF
40281 #define SLAPD_DNSSRV $MFLAG
40286 if test "$ol_enable_hdb" != no ; then
40288 BUILD_HDB=$ol_enable_hdb
40289 if test "$ol_enable_hdb" = mod ; then
40290 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40291 MFLAG=SLAPD_MOD_DYNAMIC
40293 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40294 MFLAG=SLAPD_MOD_STATIC
40297 cat >>confdefs.h <<_ACEOF
40298 #define SLAPD_HDB $MFLAG
40303 if test "$ol_enable_ldap" != no ; then
40305 BUILD_LDAP=$ol_enable_ldap
40306 if test "$ol_enable_ldap" = mod ; then
40307 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40308 MFLAG=SLAPD_MOD_DYNAMIC
40310 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40311 MFLAG=SLAPD_MOD_STATIC
40314 cat >>confdefs.h <<_ACEOF
40315 #define SLAPD_LDAP $MFLAG
40320 if test "$ol_enable_meta" != no ; then
40322 BUILD_META=$ol_enable_meta
40324 if test "$ol_enable_meta" = mod ; then
40325 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40326 MFLAG=SLAPD_MOD_DYNAMIC
40328 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40329 MFLAG=SLAPD_MOD_STATIC
40332 cat >>confdefs.h <<_ACEOF
40333 #define SLAPD_META $MFLAG
40338 if test "$ol_enable_null" != no ; then
40340 BUILD_NULL=$ol_enable_null
40341 if test "$ol_enable_null" = mod ; then
40342 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40343 MFLAG=SLAPD_MOD_DYNAMIC
40345 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40346 MFLAG=SLAPD_MOD_STATIC
40349 cat >>confdefs.h <<_ACEOF
40350 #define SLAPD_NULL $MFLAG
40355 if test "$ol_enable_passwd" != no ; then
40357 BUILD_PASSWD=$ol_enable_passwd
40358 if test "$ol_enable_passwd" = mod ; then
40359 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40360 MFLAG=SLAPD_MOD_DYNAMIC
40362 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40363 MFLAG=SLAPD_MOD_STATIC
40366 cat >>confdefs.h <<_ACEOF
40367 #define SLAPD_PASSWD $MFLAG
40372 if test "$ol_link_perl" != no ; then
40374 BUILD_PERL=$ol_enable_perl
40375 if test "$ol_enable_perl" = mod ; then
40376 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40377 MFLAG=SLAPD_MOD_DYNAMIC
40379 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40380 MFLAG=SLAPD_MOD_STATIC
40383 cat >>confdefs.h <<_ACEOF
40384 #define SLAPD_PERL $MFLAG
40389 if test "$ol_enable_relay" != no ; then
40391 BUILD_RELAY=$ol_enable_relay
40392 if test "$ol_enable_relay" = mod ; then
40393 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40394 MFLAG=SLAPD_MOD_DYNAMIC
40396 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40397 MFLAG=SLAPD_MOD_STATIC
40400 cat >>confdefs.h <<_ACEOF
40401 #define SLAPD_RELAY $MFLAG
40406 if test "$ol_enable_shell" != no ; then
40407 if test "$ol_link_threads" != no ; then
40408 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40409 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40412 BUILD_SHELL=$ol_enable_shell
40413 if test "$ol_enable_shell" = mod ; then
40414 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40415 MFLAG=SLAPD_MOD_DYNAMIC
40417 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40418 MFLAG=SLAPD_MOD_STATIC
40421 cat >>confdefs.h <<_ACEOF
40422 #define SLAPD_SHELL $MFLAG
40427 if test "$ol_link_sql" != no ; then
40429 BUILD_SQL=$ol_enable_sql
40430 if test "$ol_enable_sql" = mod; then
40431 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40432 MFLAG=SLAPD_MOD_DYNAMIC
40434 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40435 MFLAG=SLAPD_MOD_STATIC
40438 cat >>confdefs.h <<_ACEOF
40439 #define SLAPD_SQL $MFLAG
40444 if test "$ol_enable_accesslog" != no ; then
40445 BUILD_ACCESSLOG=$ol_enable_accesslog
40446 if test "$ol_enable_accesslog" = mod ; then
40447 MFLAG=SLAPD_MOD_DYNAMIC
40448 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40450 MFLAG=SLAPD_MOD_STATIC
40451 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40454 cat >>confdefs.h <<_ACEOF
40455 #define SLAPD_OVER_ACCESSLOG $MFLAG
40460 if test "$ol_enable_auditlog" != no ; then
40461 BUILD_AUDITLOG=$ol_enable_auditlog
40462 if test "$ol_enable_auditlog" = mod ; then
40463 MFLAG=SLAPD_MOD_DYNAMIC
40464 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40466 MFLAG=SLAPD_MOD_STATIC
40467 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40470 cat >>confdefs.h <<_ACEOF
40471 #define SLAPD_OVER_AUDITLOG $MFLAG
40476 if test "$ol_enable_constraint" != no ; then
40477 BUILD_CONSTRAINT=$ol_enable_constraint
40478 if test "$ol_enable_constraint" = mod ; then
40479 MFLAG=SLAPD_MOD_DYNAMIC
40480 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40482 MFLAG=SLAPD_MOD_STATIC
40483 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40486 cat >>confdefs.h <<_ACEOF
40487 #define SLAPD_OVER_CONSTRAINT $MFLAG
40492 if test "$ol_enable_dds" != no ; then
40493 BUILD_DDS=$ol_enable_dds
40494 if test "$ol_enable_dds" = mod ; then
40495 MFLAG=SLAPD_MOD_DYNAMIC
40496 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40498 MFLAG=SLAPD_MOD_STATIC
40499 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40502 cat >>confdefs.h <<_ACEOF
40503 #define SLAPD_OVER_DDS $MFLAG
40508 if test "$ol_enable_denyop" != no ; then
40509 BUILD_DENYOP=$ol_enable_denyop
40510 if test "$ol_enable_denyop" = mod ; then
40511 MFLAG=SLAPD_MOD_DYNAMIC
40512 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
40514 MFLAG=SLAPD_MOD_STATIC
40515 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
40518 cat >>confdefs.h <<_ACEOF
40519 #define SLAPD_OVER_DENYOP $MFLAG
40524 if test "$ol_enable_dyngroup" != no ; then
40525 BUILD_DYNGROUP=$ol_enable_dyngroup
40526 if test "$ol_enable_dyngroup" = mod ; then
40527 MFLAG=SLAPD_MOD_DYNAMIC
40528 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40530 MFLAG=SLAPD_MOD_STATIC
40531 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40534 cat >>confdefs.h <<_ACEOF
40535 #define SLAPD_OVER_DYNGROUP $MFLAG
40540 if test "$ol_enable_dynlist" != no ; then
40541 BUILD_DYNLIST=$ol_enable_dynlist
40542 if test "$ol_enable_dynlist" = mod ; then
40543 MFLAG=SLAPD_MOD_DYNAMIC
40544 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40546 MFLAG=SLAPD_MOD_STATIC
40547 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40550 cat >>confdefs.h <<_ACEOF
40551 #define SLAPD_OVER_DYNLIST $MFLAG
40556 if test "$ol_enable_lastmod" != no ; then
40557 BUILD_LASTMOD=$ol_enable_lastmod
40558 if test "$ol_enable_lastmod" = mod ; then
40559 MFLAG=SLAPD_MOD_DYNAMIC
40560 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
40562 MFLAG=SLAPD_MOD_STATIC
40563 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
40566 cat >>confdefs.h <<_ACEOF
40567 #define SLAPD_OVER_LASTMOD $MFLAG
40572 if test "$ol_enable_ppolicy" != no ; then
40573 BUILD_PPOLICY=$ol_enable_ppolicy
40574 if test "$ol_enable_ppolicy" = mod ; then
40575 MFLAG=SLAPD_MOD_DYNAMIC
40576 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40578 MFLAG=SLAPD_MOD_STATIC
40579 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40582 cat >>confdefs.h <<_ACEOF
40583 #define SLAPD_OVER_PPOLICY $MFLAG
40588 if test "$ol_enable_proxycache" != no ; then
40589 BUILD_PROXYCACHE=$ol_enable_proxycache
40590 if test "$ol_enable_proxycache" = mod ; then
40591 MFLAG=SLAPD_MOD_DYNAMIC
40592 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40594 MFLAG=SLAPD_MOD_STATIC
40595 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40598 cat >>confdefs.h <<_ACEOF
40599 #define SLAPD_OVER_PROXYCACHE $MFLAG
40604 if test "$ol_enable_refint" != no ; then
40605 BUILD_REFINT=$ol_enable_refint
40606 if test "$ol_enable_refint" = mod ; then
40607 MFLAG=SLAPD_MOD_DYNAMIC
40608 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40610 MFLAG=SLAPD_MOD_STATIC
40611 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40614 cat >>confdefs.h <<_ACEOF
40615 #define SLAPD_OVER_REFINT $MFLAG
40620 if test "$ol_enable_retcode" != no ; then
40621 BUILD_RETCODE=$ol_enable_retcode
40622 if test "$ol_enable_retcode" = mod ; then
40623 MFLAG=SLAPD_MOD_DYNAMIC
40624 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40626 MFLAG=SLAPD_MOD_STATIC
40627 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40630 cat >>confdefs.h <<_ACEOF
40631 #define SLAPD_OVER_RETCODE $MFLAG
40636 if test "$ol_enable_rwm" != no ; then
40638 BUILD_RWM=$ol_enable_rwm
40639 if test "$ol_enable_rwm" = mod ; then
40640 MFLAG=SLAPD_MOD_DYNAMIC
40641 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40643 MFLAG=SLAPD_MOD_STATIC
40644 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40647 cat >>confdefs.h <<_ACEOF
40648 #define SLAPD_OVER_RWM $MFLAG
40653 if test "$ol_enable_seqmod" != no ; then
40654 BUILD_SEQMOD=$ol_enable_seqmod
40655 if test "$ol_enable_seqmod" = mod ; then
40656 MFLAG=SLAPD_MOD_DYNAMIC
40657 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40659 MFLAG=SLAPD_MOD_STATIC
40660 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40663 cat >>confdefs.h <<_ACEOF
40664 #define SLAPD_OVER_SEQMOD $MFLAG
40669 if test "$ol_enable_syncprov" != no ; then
40670 BUILD_SYNCPROV=$ol_enable_syncprov
40671 if test "$ol_enable_syncprov" = mod ; then
40672 MFLAG=SLAPD_MOD_DYNAMIC
40673 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40675 MFLAG=SLAPD_MOD_STATIC
40676 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40679 cat >>confdefs.h <<_ACEOF
40680 #define SLAPD_OVER_SYNCPROV $MFLAG
40685 if test "$ol_enable_translucent" != no ; then
40686 BUILD_TRANSLUCENT=$ol_enable_translucent
40687 if test "$ol_enable_translucent" = mod ; then
40688 MFLAG=SLAPD_MOD_DYNAMIC
40689 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40691 MFLAG=SLAPD_MOD_STATIC
40692 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40695 cat >>confdefs.h <<_ACEOF
40696 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40701 if test "$ol_enable_unique" != no ; then
40702 BUILD_UNIQUE=$ol_enable_unique
40703 if test "$ol_enable_unique" = mod ; then
40704 MFLAG=SLAPD_MOD_DYNAMIC
40705 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40707 MFLAG=SLAPD_MOD_STATIC
40708 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40711 cat >>confdefs.h <<_ACEOF
40712 #define SLAPD_OVER_UNIQUE $MFLAG
40717 if test "$ol_enable_valsort" != no ; then
40718 BUILD_VALSORT=$ol_enable_valsort
40719 if test "$ol_enable_valsort" = mod ; then
40720 MFLAG=SLAPD_MOD_DYNAMIC
40721 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40723 MFLAG=SLAPD_MOD_STATIC
40724 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40727 cat >>confdefs.h <<_ACEOF
40728 #define SLAPD_OVER_VALSORT $MFLAG
40733 if test "$ol_enable_slurpd" != no &&
40734 test "$ol_link_threads" != no &&
40735 test $BUILD_SLAPD = yes ; then
40739 if test "$ol_enable_rewrite" != no ; then
40741 cat >>confdefs.h <<\_ACEOF
40742 #define ENABLE_REWRITE 1
40748 if test "$ol_enable_slapi" != no ; then
40750 cat >>confdefs.h <<\_ACEOF
40751 #define ENABLE_SLAPI 1
40755 SLAPD_SLAPI_DEPEND=libslapi.a
40760 if test "$ac_cv_mingw32" = yes ; then
40762 SLAPD_MODULES_LDFLAGS=
40851 # Check whether --with-xxinstall or --without-xxinstall was given.
40852 if test "${with_xxinstall+set}" = set; then
40853 withval="$with_xxinstall"
40858 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"
40861 ac_config_commands="$ac_config_commands default"
40865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40866 # Let make expand exec_prefix.
40867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40869 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40870 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40871 # trailing colons and then remove the whole line if VPATH becomes empty
40872 # (actually we leave an empty line to preserve line numbers).
40873 if test "x$srcdir" = x.; then
40874 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40875 s/:*\$(srcdir):*/:/;
40876 s/:*\${srcdir}:*/:/;
40878 s/^\([^=]*=[ ]*\):*/\1/;
40884 DEFS=-DHAVE_CONFIG_H
40888 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40889 # 1. Remove the extension, and $U if already installed.
40890 ac_i=`echo "$ac_i" |
40891 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40893 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40894 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40896 LIBOBJS=$ac_libobjs
40898 LTLIBOBJS=$ac_ltlibobjs
40901 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40902 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40903 Usually this means the macro was only invoked conditionally." >&5
40904 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40905 Usually this means the macro was only invoked conditionally." >&2;}
40906 { (exit 1); exit 1; }; }
40908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40909 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40910 Usually this means the macro was only invoked conditionally." >&5
40911 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40912 Usually this means the macro was only invoked conditionally." >&2;}
40913 { (exit 1); exit 1; }; }
40915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40916 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40917 Usually this means the macro was only invoked conditionally." >&5
40918 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40919 Usually this means the macro was only invoked conditionally." >&2;}
40920 { (exit 1); exit 1; }; }
40923 : ${CONFIG_STATUS=./config.status}
40924 ac_clean_files_save=$ac_clean_files
40925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40928 cat >$CONFIG_STATUS <<_ACEOF
40930 # Generated by $as_me.
40931 # Run this file to recreate the current configuration.
40932 # Compiler output produced by configure, useful for debugging
40933 # configure, is in config.log if it exists.
40936 ac_cs_recheck=false
40938 SHELL=\${CONFIG_SHELL-$SHELL}
40941 cat >>$CONFIG_STATUS <<\_ACEOF
40942 ## --------------------- ##
40943 ## M4sh Initialization. ##
40944 ## --------------------- ##
40946 # Be Bourne compatible
40947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40950 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40951 # is contrary to our usage. Disable this feature.
40952 alias -g '${1+"$@"}'='"$@"'
40953 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40956 DUALCASE=1; export DUALCASE # for MKS sh
40958 # Support unset when possible.
40959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40966 # Work around bugs in pre-3.0 UWIN ksh.
40967 $as_unset ENV MAIL MAILPATH
40974 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40975 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40976 LC_TELEPHONE LC_TIME
40978 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40979 eval $as_var=C; export $as_var
40985 # Required to use basename.
40986 if expr a : '\(a\)' >/dev/null 2>&1; then
40992 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40993 as_basename=basename
40999 # Name of the executable.
41000 as_me=`$as_basename "$0" ||
41001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41002 X"$0" : 'X\(//\)$' \| \
41003 X"$0" : 'X\(/\)$' \| \
41004 . : '\(.\)' 2>/dev/null ||
41006 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41007 /^X\/\(\/\/\)$/{ s//\1/; q; }
41008 /^X\/\(\/\).*/{ s//\1/; q; }
41012 # PATH needs CR, and LINENO needs CR and PATH.
41013 # Avoid depending upon Character Ranges.
41014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41017 as_cr_digits='0123456789'
41018 as_cr_alnum=$as_cr_Letters$as_cr_digits
41020 # The user is always right.
41021 if test "${PATH_SEPARATOR+set}" != set; then
41022 echo "#! /bin/sh" >conf$$.sh
41023 echo "exit 0" >>conf$$.sh
41025 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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" || {
41039 # Find who we are. Look in the path if we contain no path at all
41042 *[\\/]* ) as_myself=$0 ;;
41043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41044 for as_dir in $PATH
41047 test -z "$as_dir" && as_dir=.
41048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41053 # We did not find ourselves, most probably we were run as `sh COMMAND'
41054 # in which case we are not to be found in the path.
41055 if test "x$as_myself" = x; then
41058 if test ! -f "$as_myself"; then
41059 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41060 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41061 { (exit 1); exit 1; }; }
41063 case $CONFIG_SHELL in
41065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41066 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41069 test -z "$as_dir" && as_dir=.
41070 for as_base in sh bash ksh sh5; do
41073 if ("$as_dir/$as_base" -c '
41074 as_lineno_1=$LINENO
41075 as_lineno_2=$LINENO
41076 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41077 test "x$as_lineno_1" != "x$as_lineno_2" &&
41078 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41079 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41080 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41081 CONFIG_SHELL=$as_dir/$as_base
41082 export CONFIG_SHELL
41083 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41091 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41092 # uniformly replaced by the line number. The first 'sed' inserts a
41093 # line-number line before each line; the second 'sed' does the real
41094 # work. The second script uses 'N' to pair each line-number line
41095 # with the numbered line, and appends trailing '-' during
41096 # substitution so that $LINENO is not a special case at line end.
41097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41098 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41099 sed '=' <$as_myself |
41104 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41107 s,^['$as_cr_digits']*\n,,
41108 ' >$as_me.lineno &&
41109 chmod +x $as_me.lineno ||
41110 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41111 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41112 { (exit 1); exit 1; }; }
41114 # Don't try to exec as it changes $[0], causing all sort of problems
41115 # (the dirname of $[0] is not the place where we might find the
41116 # original and so on. Autoconf is especially sensible to this).
41118 # Exit status is that of the last command.
41123 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41124 *c*,-n*) ECHO_N= ECHO_C='
41126 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41127 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41130 if expr a : '\(a\)' >/dev/null 2>&1; then
41136 rm -f conf$$ conf$$.exe conf$$.file
41138 if ln -s conf$$.file conf$$ 2>/dev/null; then
41139 # We could just check for DJGPP; but this test a) works b) is more generic
41140 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41141 if test -f conf$$.exe; then
41142 # Don't use ln at all; we don't have any links
41147 elif ln conf$$.file conf$$ 2>/dev/null; then
41152 rm -f conf$$ conf$$.exe conf$$.file
41154 if mkdir -p . 2>/dev/null; then
41157 test -d ./-p && rmdir ./-p
41161 as_executable_p="test -f"
41163 # Sed expression to map a string onto a valid CPP name.
41164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41166 # Sed expression to map a string onto a valid variable name.
41167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41171 # We need space, tab and new line, in precisely that order.
41181 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41182 # report actual input values of CONFIG_FILES etc. instead of their
41183 # values after options handling. Logging --version etc. is OK.
41187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41188 ## Running $as_me. ##
41193 This file was extended by $as_me, which was
41194 generated by GNU Autoconf 2.59. Invocation command line was
41196 CONFIG_FILES = $CONFIG_FILES
41197 CONFIG_HEADERS = $CONFIG_HEADERS
41198 CONFIG_LINKS = $CONFIG_LINKS
41199 CONFIG_COMMANDS = $CONFIG_COMMANDS
41203 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41207 # Files that config.status was made for.
41208 if test -n "$ac_config_files"; then
41209 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41212 if test -n "$ac_config_headers"; then
41213 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41216 if test -n "$ac_config_links"; then
41217 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41220 if test -n "$ac_config_commands"; then
41221 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41224 cat >>$CONFIG_STATUS <<\_ACEOF
41227 \`$as_me' instantiates files from templates according to the
41228 current configuration.
41230 Usage: $0 [OPTIONS] [FILE]...
41232 -h, --help print this help, then exit
41233 -V, --version print version number, then exit
41234 -q, --quiet do not print progress messages
41235 -d, --debug don't remove temporary files
41236 --recheck update $as_me by reconfiguring in the same conditions
41237 --file=FILE[:TEMPLATE]
41238 instantiate the configuration file FILE
41239 --header=FILE[:TEMPLATE]
41240 instantiate the configuration header FILE
41242 Configuration files:
41245 Configuration headers:
41248 Configuration commands:
41251 Report bugs to <bug-autoconf@gnu.org>."
41254 cat >>$CONFIG_STATUS <<_ACEOF
41257 configured by $0, generated by GNU Autoconf 2.59,
41258 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41260 Copyright (C) 2003 Free Software Foundation, Inc.
41261 This config.status script is free software; the Free Software Foundation
41262 gives unlimited permission to copy, distribute and modify it."
41267 cat >>$CONFIG_STATUS <<\_ACEOF
41268 # If no file are specified by the user, then we need to provide default
41269 # value. By we need to know if files were specified by the user.
41275 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41276 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41284 *) # This is not an option, so the user has probably given explicit
41287 ac_need_defaults=false;;
41291 # Handling of the options.
41293 cat >>$CONFIG_STATUS <<\_ACEOF
41294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41296 --version | --vers* | -V )
41297 echo "$ac_cs_version"; exit 0 ;;
41299 # Conflict between --help and --header
41300 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41301 Try \`$0 --help' for more information." >&5
41302 echo "$as_me: error: ambiguous option: $1
41303 Try \`$0 --help' for more information." >&2;}
41304 { (exit 1); exit 1; }; };;
41305 --help | --hel | -h )
41306 echo "$ac_cs_usage"; exit 0 ;;
41307 --debug | --d* | -d )
41309 --file | --fil | --fi | --f )
41311 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41312 ac_need_defaults=false;;
41313 --header | --heade | --head | --hea )
41315 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41316 ac_need_defaults=false;;
41317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41321 # This is an error.
41322 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41323 Try \`$0 --help' for more information." >&5
41324 echo "$as_me: error: unrecognized option: $1
41325 Try \`$0 --help' for more information." >&2;}
41326 { (exit 1); exit 1; }; } ;;
41328 *) ac_config_targets="$ac_config_targets $1" ;;
41334 ac_configure_extra_args=
41336 if $ac_cs_silent; then
41338 ac_configure_extra_args="$ac_configure_extra_args --silent"
41342 cat >>$CONFIG_STATUS <<_ACEOF
41343 if \$ac_cs_recheck; then
41344 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41345 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41350 cat >>$CONFIG_STATUS <<_ACEOF
41352 # INIT-COMMANDS section.
41355 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41357 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41358 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41365 cat >>$CONFIG_STATUS <<\_ACEOF
41366 for ac_config_target in $ac_config_targets
41368 case "$ac_config_target" in
41369 # Handling of arguments.
41370 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41371 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41372 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41373 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41374 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41375 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41376 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41377 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41378 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41379 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41380 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41381 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41382 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41383 "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" ;;
41384 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41385 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41386 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41387 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41388 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41389 "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" ;;
41390 "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" ;;
41391 "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" ;;
41392 "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" ;;
41393 "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" ;;
41394 "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" ;;
41395 "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" ;;
41396 "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" ;;
41397 "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" ;;
41398 "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" ;;
41399 "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" ;;
41400 "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" ;;
41401 "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" ;;
41402 "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" ;;
41403 "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" ;;
41404 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41405 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41406 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41407 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41408 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41409 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41410 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41411 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41412 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41413 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41414 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41415 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41416 { (exit 1); exit 1; }; };;
41420 # If the user did not use the arguments to specify the items to instantiate,
41421 # then the envvar interface is used. Set only those that are not.
41422 # We use the long form for the default assignment because of an extremely
41423 # bizarre bug on SunOS 4.1.3.
41424 if $ac_need_defaults; then
41425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41430 # Have a temporary directory for convenience. Make it in the build tree
41431 # simply because there is no reason to put it here, and in addition,
41432 # creating and moving files from /tmp can sometimes cause problems.
41433 # Create a temporary directory, and hook for its removal unless debugging.
41436 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41437 trap '{ (exit 1); exit 1; }' 1 2 13 15
41440 # Create a (secure) tmp directory for tmp files.
41443 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41444 test -n "$tmp" && test -d "$tmp"
41447 tmp=./confstat$$-$RANDOM
41448 (umask 077 && mkdir $tmp)
41451 echo "$me: cannot create a temporary directory in ." >&2
41452 { (exit 1); exit 1; }
41457 cat >>$CONFIG_STATUS <<_ACEOF
41460 # CONFIG_FILES section.
41463 # No need to generate the scripts if there are no CONFIG_FILES.
41464 # This happens for instance when ./config.status config.h
41465 if test -n "\$CONFIG_FILES"; then
41466 # Protect against being on the right side of a sed subst in config.status.
41467 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41468 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41469 s,@SHELL@,$SHELL,;t t
41470 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41471 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41472 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41473 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41474 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41475 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41476 s,@exec_prefix@,$exec_prefix,;t t
41477 s,@prefix@,$prefix,;t t
41478 s,@program_transform_name@,$program_transform_name,;t t
41479 s,@bindir@,$bindir,;t t
41480 s,@sbindir@,$sbindir,;t t
41481 s,@libexecdir@,$libexecdir,;t t
41482 s,@datadir@,$datadir,;t t
41483 s,@sysconfdir@,$sysconfdir,;t t
41484 s,@sharedstatedir@,$sharedstatedir,;t t
41485 s,@localstatedir@,$localstatedir,;t t
41486 s,@libdir@,$libdir,;t t
41487 s,@includedir@,$includedir,;t t
41488 s,@oldincludedir@,$oldincludedir,;t t
41489 s,@infodir@,$infodir,;t t
41490 s,@mandir@,$mandir,;t t
41491 s,@build_alias@,$build_alias,;t t
41492 s,@host_alias@,$host_alias,;t t
41493 s,@target_alias@,$target_alias,;t t
41494 s,@DEFS@,$DEFS,;t t
41495 s,@ECHO_C@,$ECHO_C,;t t
41496 s,@ECHO_N@,$ECHO_N,;t t
41497 s,@ECHO_T@,$ECHO_T,;t t
41498 s,@LIBS@,$LIBS,;t t
41499 s,@build@,$build,;t t
41500 s,@build_cpu@,$build_cpu,;t t
41501 s,@build_vendor@,$build_vendor,;t t
41502 s,@build_os@,$build_os,;t t
41503 s,@host@,$host,;t t
41504 s,@host_cpu@,$host_cpu,;t t
41505 s,@host_vendor@,$host_vendor,;t t
41506 s,@host_os@,$host_os,;t t
41507 s,@target@,$target,;t t
41508 s,@target_cpu@,$target_cpu,;t t
41509 s,@target_vendor@,$target_vendor,;t t
41510 s,@target_os@,$target_os,;t t
41511 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41512 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41513 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41514 s,@CYGPATH_W@,$CYGPATH_W,;t t
41515 s,@PACKAGE@,$PACKAGE,;t t
41516 s,@VERSION@,$VERSION,;t t
41517 s,@ACLOCAL@,$ACLOCAL,;t t
41518 s,@AUTOCONF@,$AUTOCONF,;t t
41519 s,@AUTOMAKE@,$AUTOMAKE,;t t
41520 s,@AUTOHEADER@,$AUTOHEADER,;t t
41521 s,@MAKEINFO@,$MAKEINFO,;t t
41522 s,@install_sh@,$install_sh,;t t
41523 s,@STRIP@,$STRIP,;t t
41524 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41525 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41526 s,@mkdir_p@,$mkdir_p,;t t
41528 s,@SET_MAKE@,$SET_MAKE,;t t
41529 s,@am__leading_dot@,$am__leading_dot,;t t
41530 s,@AMTAR@,$AMTAR,;t t
41531 s,@am__tar@,$am__tar,;t t
41532 s,@am__untar@,$am__untar,;t t
41533 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41534 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41535 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41536 s,@top_builddir@,$top_builddir,;t t
41537 s,@ldap_subdir@,$ldap_subdir,;t t
41540 s,@CFLAGS@,$CFLAGS,;t t
41541 s,@LDFLAGS@,$LDFLAGS,;t t
41542 s,@CPPFLAGS@,$CPPFLAGS,;t t
41543 s,@ac_ct_CC@,$ac_ct_CC,;t t
41544 s,@EXEEXT@,$EXEEXT,;t t
41545 s,@OBJEXT@,$OBJEXT,;t t
41546 s,@DEPDIR@,$DEPDIR,;t t
41547 s,@am__include@,$am__include,;t t
41548 s,@am__quote@,$am__quote,;t t
41549 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41550 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41551 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41552 s,@CCDEPMODE@,$CCDEPMODE,;t t
41553 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41554 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41555 s,@EGREP@,$EGREP,;t t
41556 s,@LN_S@,$LN_S,;t t
41557 s,@ECHO@,$ECHO,;t t
41558 s,@ac_ct_AR@,$ac_ct_AR,;t t
41559 s,@RANLIB@,$RANLIB,;t t
41560 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41561 s,@DLLTOOL@,$DLLTOOL,;t t
41562 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41564 s,@ac_ct_AS@,$ac_ct_AS,;t t
41565 s,@OBJDUMP@,$OBJDUMP,;t t
41566 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41568 s,@LIBTOOL@,$LIBTOOL,;t t
41569 s,@PERLBIN@,$PERLBIN,;t t
41570 s,@OL_MKDEP@,$OL_MKDEP,;t t
41571 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41572 s,@LTSTATIC@,$LTSTATIC,;t t
41573 s,@LIBOBJS@,$LIBOBJS,;t t
41574 s,@LIBSRCS@,$LIBSRCS,;t t
41575 s,@PLAT@,$PLAT,;t t
41576 s,@WITH_SASL@,$WITH_SASL,;t t
41577 s,@WITH_TLS@,$WITH_TLS,;t t
41578 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41579 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41580 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41581 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41582 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41583 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41584 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41585 s,@BUILD_BDB@,$BUILD_BDB,;t t
41586 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41587 s,@BUILD_HDB@,$BUILD_HDB,;t t
41588 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41589 s,@BUILD_META@,$BUILD_META,;t t
41590 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41591 s,@BUILD_NULL@,$BUILD_NULL,;t t
41592 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41593 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41594 s,@BUILD_PERL@,$BUILD_PERL,;t t
41595 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41596 s,@BUILD_SQL@,$BUILD_SQL,;t t
41597 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41598 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41599 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41600 s,@BUILD_DDS@,$BUILD_DDS,;t t
41601 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41602 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41603 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41604 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41605 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41606 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41607 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41608 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41609 s,@BUILD_RWM@,$BUILD_RWM,;t t
41610 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41611 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41612 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41613 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41614 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41615 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41616 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41617 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41618 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41619 s,@BDB_LIBS@,$BDB_LIBS,;t t
41620 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41621 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41622 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41623 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41624 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41625 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41626 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41627 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41628 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41629 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41630 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41631 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41632 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41633 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41634 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41635 s,@SASL_LIBS@,$SASL_LIBS,;t t
41636 s,@TLS_LIBS@,$TLS_LIBS,;t t
41637 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41638 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41639 s,@LIBSLAPI@,$LIBSLAPI,;t t
41640 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41641 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41642 s,@ICU_LIBS@,$ICU_LIBS,;t t
41643 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41644 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41645 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41646 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41647 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41648 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41653 cat >>$CONFIG_STATUS <<\_ACEOF
41654 # Split the substitutions into bite-sized pieces for seds with
41655 # small command number limits, like on Digital OSF/1 and HP-UX.
41656 ac_max_sed_lines=48
41657 ac_sed_frag=1 # Number of current file.
41658 ac_beg=1 # First line for current file.
41659 ac_end=$ac_max_sed_lines # Line after last line for current file.
41662 while $ac_more_lines; do
41663 if test $ac_beg -gt 1; then
41664 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41666 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41668 if test ! -s $tmp/subs.frag; then
41669 ac_more_lines=false
41671 # The purpose of the label and of the branching condition is to
41672 # speed up the sed processing (if there are no `@' at all, there
41673 # is no need to browse any of the substitutions).
41674 # These are the two extra sed commands mentioned above.
41676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41677 if test -z "$ac_sed_cmds"; then
41678 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41680 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41682 ac_sed_frag=`expr $ac_sed_frag + 1`
41684 ac_end=`expr $ac_end + $ac_max_sed_lines`
41687 if test -z "$ac_sed_cmds"; then
41690 fi # test -n "$CONFIG_FILES"
41693 cat >>$CONFIG_STATUS <<\_ACEOF
41694 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41697 - | *:- | *:-:* ) # input from stdin
41699 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41701 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41703 * ) ac_file_in=$ac_file.in ;;
41706 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41707 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41709 X"$ac_file" : 'X\(//\)[^/]' \| \
41710 X"$ac_file" : 'X\(//\)$' \| \
41711 X"$ac_file" : 'X\(/\)' \| \
41712 . : '\(.\)' 2>/dev/null ||
41714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41716 /^X\(\/\/\)$/{ s//\1/; q; }
41717 /^X\(\/\).*/{ s//\1/; q; }
41719 { if $as_mkdir_p; then
41724 while test ! -d "$as_dir"; do
41725 as_dirs="$as_dir $as_dirs"
41726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41728 X"$as_dir" : 'X\(//\)[^/]' \| \
41729 X"$as_dir" : 'X\(//\)$' \| \
41730 X"$as_dir" : 'X\(/\)' \| \
41731 . : '\(.\)' 2>/dev/null ||
41733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41735 /^X\(\/\/\)$/{ s//\1/; q; }
41736 /^X\(\/\).*/{ s//\1/; q; }
41739 test ! -n "$as_dirs" || mkdir $as_dirs
41740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41742 { (exit 1); exit 1; }; }; }
41746 if test "$ac_dir" != .; then
41747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41748 # A "../" for each directory in $ac_dir_suffix.
41749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41751 ac_dir_suffix= ac_top_builddir=
41755 .) # No --srcdir option. We are building in place.
41757 if test -z "$ac_top_builddir"; then
41760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41762 [\\/]* | ?:[\\/]* ) # Absolute path.
41763 ac_srcdir=$srcdir$ac_dir_suffix;
41764 ac_top_srcdir=$srcdir ;;
41765 *) # Relative path.
41766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41770 # Do not use `cd foo && pwd` to compute absolute paths, because
41771 # the directories may not exist.
41773 .) ac_abs_builddir="$ac_dir";;
41776 .) ac_abs_builddir=`pwd`;;
41777 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41778 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41781 case $ac_abs_builddir in
41782 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41784 case ${ac_top_builddir}. in
41785 .) ac_abs_top_builddir=$ac_abs_builddir;;
41786 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41787 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41790 case $ac_abs_builddir in
41791 .) ac_abs_srcdir=$ac_srcdir;;
41794 .) ac_abs_srcdir=$ac_abs_builddir;;
41795 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41796 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41799 case $ac_abs_builddir in
41800 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41802 case $ac_top_srcdir in
41803 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41804 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41805 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41812 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41815 if test x"$ac_file" != x-; then
41816 { echo "$as_me:$LINENO: creating $ac_file" >&5
41817 echo "$as_me: creating $ac_file" >&6;}
41820 # Let's still pretend it is `configure' which instantiates (i.e., don't
41821 # use $as_me), people would be surprised to read:
41822 # /* config.h. Generated by config.status. */
41823 if test x"$ac_file" = x-; then
41826 configure_input="$ac_file. "
41828 configure_input=$configure_input"Generated from `echo $ac_file_in |
41829 sed 's,.*/,,'` by configure."
41831 # First look for the input files in the build tree, otherwise in the
41833 ac_file_inputs=`IFS=:
41834 for f in $ac_file_in; do
41836 -) echo $tmp/stdin ;;
41838 # Absolute (can't be DOS-style, as IFS=:)
41839 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41840 echo "$as_me: error: cannot find input file: $f" >&2;}
41841 { (exit 1); exit 1; }; }
41844 if test -f "$f"; then
41847 elif test -f "$srcdir/$f"; then
41852 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41853 echo "$as_me: error: cannot find input file: $f" >&2;}
41854 { (exit 1); exit 1; }; }
41857 done` || { (exit 1); exit 1; }
41859 cat >>$CONFIG_STATUS <<_ACEOF
41863 cat >>$CONFIG_STATUS <<\_ACEOF
41865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41866 s,@configure_input@,$configure_input,;t t
41867 s,@srcdir@,$ac_srcdir,;t t
41868 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41869 s,@top_srcdir@,$ac_top_srcdir,;t t
41870 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41871 s,@builddir@,$ac_builddir,;t t
41872 s,@abs_builddir@,$ac_abs_builddir,;t t
41873 s,@top_builddir@,$ac_top_builddir,;t t
41874 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41875 s,@INSTALL@,$ac_INSTALL,;t t
41876 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41878 if test x"$ac_file" != x-; then
41879 mv $tmp/out $ac_file
41887 cat >>$CONFIG_STATUS <<\_ACEOF
41890 # CONFIG_HEADER section.
41893 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41894 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41896 # ac_d sets the value in "#define NAME VALUE" lines.
41897 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41898 ac_dB='[ ].*$,\1#\2'
41901 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41902 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41903 ac_uB='$,\1#\2define\3'
41907 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41910 - | *:- | *:-:* ) # input from stdin
41912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41916 * ) ac_file_in=$ac_file.in ;;
41919 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41920 echo "$as_me: creating $ac_file" >&6;}
41922 # First look for the input files in the build tree, otherwise in the
41924 ac_file_inputs=`IFS=:
41925 for f in $ac_file_in; do
41927 -) echo $tmp/stdin ;;
41929 # Absolute (can't be DOS-style, as IFS=:)
41930 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41931 echo "$as_me: error: cannot find input file: $f" >&2;}
41932 { (exit 1); exit 1; }; }
41933 # Do quote $f, to prevent DOS paths from being IFS'd.
41936 if test -f "$f"; then
41939 elif test -f "$srcdir/$f"; then
41944 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41945 echo "$as_me: error: cannot find input file: $f" >&2;}
41946 { (exit 1); exit 1; }; }
41949 done` || { (exit 1); exit 1; }
41950 # Remove the trailing spaces.
41951 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41955 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41956 # `conftest.undefs', that substitutes the proper values into
41957 # config.h.in to produce config.h. The first handles `#define'
41958 # templates, and the second `#undef' templates.
41959 # And first: Protect against being on the right side of a sed subst in
41960 # config.status. Protect against being in an unquoted here document
41961 # in config.status.
41962 rm -f conftest.defines conftest.undefs
41963 # Using a here document instead of a string reduces the quoting nightmare.
41964 # Putting comments in sed scripts is not portable.
41966 # `end' is used to avoid that the second main sed command (meant for
41967 # 0-ary CPP macros) applies to n-ary macro definitions.
41968 # See the Autoconf documentation for `clear'.
41969 cat >confdef2sed.sed <<\_ACEOF
41974 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41976 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41979 # If some macros were called several times there might be several times
41980 # the same #defines, which is useless. Nevertheless, we may not want to
41981 # sort them, since we want the *last* AC-DEFINE to be honored.
41982 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41983 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41984 rm -f confdef2sed.sed
41986 # This sed command replaces #undef with comments. This is necessary, for
41987 # example, in the case of _POSIX_SOURCE, which is predefined and required
41988 # on some systems where configure will not decide to define it.
41989 cat >>conftest.undefs <<\_ACEOF
41990 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41993 # Break up conftest.defines because some shells have a limit on the size
41994 # of here documents, and old seds have small limits too (100 cmds).
41995 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41996 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41997 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41998 echo ' :' >>$CONFIG_STATUS
41999 rm -f conftest.tail
42000 while grep . conftest.defines >/dev/null
42002 # Write a limited-size here document to $tmp/defines.sed.
42003 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42004 # Speed up: don't consider the non `#define' lines.
42005 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42006 # Work around the forget-to-reset-the-flag bug.
42007 echo 't clr' >>$CONFIG_STATUS
42008 echo ': clr' >>$CONFIG_STATUS
42009 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42011 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42013 mv $tmp/out $tmp/in
42015 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42016 rm -f conftest.defines
42017 mv conftest.tail conftest.defines
42019 rm -f conftest.defines
42020 echo ' fi # grep' >>$CONFIG_STATUS
42021 echo >>$CONFIG_STATUS
42023 # Break up conftest.undefs because some shells have a limit on the size
42024 # of here documents, and old seds have small limits too (100 cmds).
42025 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42026 rm -f conftest.tail
42027 while grep . conftest.undefs >/dev/null
42029 # Write a limited-size here document to $tmp/undefs.sed.
42030 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42031 # Speed up: don't consider the non `#undef'
42032 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42033 # Work around the forget-to-reset-the-flag bug.
42034 echo 't clr' >>$CONFIG_STATUS
42035 echo ': clr' >>$CONFIG_STATUS
42036 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42038 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42040 mv $tmp/out $tmp/in
42042 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42043 rm -f conftest.undefs
42044 mv conftest.tail conftest.undefs
42046 rm -f conftest.undefs
42048 cat >>$CONFIG_STATUS <<\_ACEOF
42049 # Let's still pretend it is `configure' which instantiates (i.e., don't
42050 # use $as_me), people would be surprised to read:
42051 # /* config.h. Generated by config.status. */
42052 if test x"$ac_file" = x-; then
42053 echo "/* Generated by configure. */" >$tmp/config.h
42055 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42057 cat $tmp/in >>$tmp/config.h
42059 if test x"$ac_file" != x-; then
42060 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42062 echo "$as_me: $ac_file is unchanged" >&6;}
42064 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42066 X"$ac_file" : 'X\(//\)[^/]' \| \
42067 X"$ac_file" : 'X\(//\)$' \| \
42068 X"$ac_file" : 'X\(/\)' \| \
42069 . : '\(.\)' 2>/dev/null ||
42071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42073 /^X\(\/\/\)$/{ s//\1/; q; }
42074 /^X\(\/\).*/{ s//\1/; q; }
42076 { if $as_mkdir_p; then
42081 while test ! -d "$as_dir"; do
42082 as_dirs="$as_dir $as_dirs"
42083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42085 X"$as_dir" : 'X\(//\)[^/]' \| \
42086 X"$as_dir" : 'X\(//\)$' \| \
42087 X"$as_dir" : 'X\(/\)' \| \
42088 . : '\(.\)' 2>/dev/null ||
42090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42092 /^X\(\/\/\)$/{ s//\1/; q; }
42093 /^X\(\/\).*/{ s//\1/; q; }
42096 test ! -n "$as_dirs" || mkdir $as_dirs
42097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42098 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42099 { (exit 1); exit 1; }; }; }
42102 mv $tmp/config.h $ac_file
42106 rm -f $tmp/config.h
42108 # Compute $ac_file's index in $config_headers.
42110 for _am_header in $config_headers :; do
42111 case $_am_header in
42112 $ac_file | $ac_file:* )
42115 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42118 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42119 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42120 X$ac_file : 'X\(//\)[^/]' \| \
42121 X$ac_file : 'X\(//\)$' \| \
42122 X$ac_file : 'X\(/\)' \| \
42123 . : '\(.\)' 2>/dev/null ||
42125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42127 /^X\(\/\/\)$/{ s//\1/; q; }
42128 /^X\(\/\).*/{ s//\1/; q; }
42129 s/.*/./; q'`/stamp-h$_am_stamp_count
42132 cat >>$CONFIG_STATUS <<\_ACEOF
42135 # CONFIG_COMMANDS section.
42137 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42138 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42139 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42140 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42141 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42142 X"$ac_dest" : 'X\(//\)[^/]' \| \
42143 X"$ac_dest" : 'X\(//\)$' \| \
42144 X"$ac_dest" : 'X\(/\)' \| \
42145 . : '\(.\)' 2>/dev/null ||
42147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42149 /^X\(\/\/\)$/{ s//\1/; q; }
42150 /^X\(\/\).*/{ s//\1/; q; }
42152 { if $as_mkdir_p; then
42157 while test ! -d "$as_dir"; do
42158 as_dirs="$as_dir $as_dirs"
42159 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42161 X"$as_dir" : 'X\(//\)[^/]' \| \
42162 X"$as_dir" : 'X\(//\)$' \| \
42163 X"$as_dir" : 'X\(/\)' \| \
42164 . : '\(.\)' 2>/dev/null ||
42166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42168 /^X\(\/\/\)$/{ s//\1/; q; }
42169 /^X\(\/\).*/{ s//\1/; q; }
42172 test ! -n "$as_dirs" || mkdir $as_dirs
42173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42175 { (exit 1); exit 1; }; }; }
42179 if test "$ac_dir" != .; then
42180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42181 # A "../" for each directory in $ac_dir_suffix.
42182 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42184 ac_dir_suffix= ac_top_builddir=
42188 .) # No --srcdir option. We are building in place.
42190 if test -z "$ac_top_builddir"; then
42193 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42195 [\\/]* | ?:[\\/]* ) # Absolute path.
42196 ac_srcdir=$srcdir$ac_dir_suffix;
42197 ac_top_srcdir=$srcdir ;;
42198 *) # Relative path.
42199 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42200 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42203 # Do not use `cd foo && pwd` to compute absolute paths, because
42204 # the directories may not exist.
42206 .) ac_abs_builddir="$ac_dir";;
42209 .) ac_abs_builddir=`pwd`;;
42210 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42211 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42214 case $ac_abs_builddir in
42215 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42217 case ${ac_top_builddir}. in
42218 .) ac_abs_top_builddir=$ac_abs_builddir;;
42219 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42220 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42223 case $ac_abs_builddir in
42224 .) ac_abs_srcdir=$ac_srcdir;;
42227 .) ac_abs_srcdir=$ac_abs_builddir;;
42228 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42229 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42232 case $ac_abs_builddir in
42233 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42235 case $ac_top_srcdir in
42236 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42237 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42238 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42243 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42244 echo "$as_me: executing $ac_dest commands" >&6;}
42246 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42247 # Strip MF so we end up with the name of the file.
42248 mf=`echo "$mf" | sed -e 's/:.*$//'`
42249 # Check whether this is an Automake generated Makefile or not.
42250 # We used to match only the files named `Makefile.in', but
42251 # some people rename them; so instead we look at the file content.
42252 # Grep'ing the first line is not enough: some people post-process
42253 # each Makefile.in and add a new line on top of each file to say so.
42254 # So let's grep whole file.
42255 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42256 dirpart=`(dirname "$mf") 2>/dev/null ||
42257 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42258 X"$mf" : 'X\(//\)[^/]' \| \
42259 X"$mf" : 'X\(//\)$' \| \
42260 X"$mf" : 'X\(/\)' \| \
42261 . : '\(.\)' 2>/dev/null ||
42263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42265 /^X\(\/\/\)$/{ s//\1/; q; }
42266 /^X\(\/\).*/{ s//\1/; q; }
42271 # Extract the definition of DEPDIR, am__include, and am__quote
42272 # from the Makefile without running `make'.
42273 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42274 test -z "$DEPDIR" && continue
42275 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42276 test -z "am__include" && continue
42277 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42278 # When using ansi2knr, U may be empty or an underscore; expand it
42279 U=`sed -n 's/^U = //p' < "$mf"`
42280 # Find all dependency output files, they are included files with
42281 # $(DEPDIR) in their names. We invoke sed twice because it is the
42282 # simplest approach to changing $(DEPDIR) to its actual value in the
42284 for file in `sed -n "
42285 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42286 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42287 # Make sure the directory exists.
42288 test -f "$dirpart/$file" && continue
42289 fdir=`(dirname "$file") 2>/dev/null ||
42290 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42291 X"$file" : 'X\(//\)[^/]' \| \
42292 X"$file" : 'X\(//\)$' \| \
42293 X"$file" : 'X\(/\)' \| \
42294 . : '\(.\)' 2>/dev/null ||
42296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42298 /^X\(\/\/\)$/{ s//\1/; q; }
42299 /^X\(\/\).*/{ s//\1/; q; }
42301 { if $as_mkdir_p; then
42302 mkdir -p $dirpart/$fdir
42304 as_dir=$dirpart/$fdir
42306 while test ! -d "$as_dir"; do
42307 as_dirs="$as_dir $as_dirs"
42308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42310 X"$as_dir" : 'X\(//\)[^/]' \| \
42311 X"$as_dir" : 'X\(//\)$' \| \
42312 X"$as_dir" : 'X\(/\)' \| \
42313 . : '\(.\)' 2>/dev/null ||
42315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42317 /^X\(\/\/\)$/{ s//\1/; q; }
42318 /^X\(\/\).*/{ s//\1/; q; }
42321 test ! -n "$as_dirs" || mkdir $as_dirs
42322 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42323 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42324 { (exit 1); exit 1; }; }; }
42326 # echo "creating $dirpart/$file"
42327 echo '# dummy' > "$dirpart/$file"
42334 BACKENDSC="servers/slapd/backends.c"
42335 echo "Making $BACKENDSC"
42337 cat > $BACKENDSC << ENDX
42338 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42340 * Copyright 1998-2006 The OpenLDAP Foundation.
42341 * All rights reserved.
42343 * Redistribution and use in source and binary forms, with or without
42344 * modification, are permitted only as authorized by the OpenLDAP
42347 * A copy of this license is available in the file LICENSE in the
42348 * top-level directory of the distribution or, alternatively, at
42349 * <http://www.OpenLDAP.org/license.html>.
42351 /* This file is automatically generated by configure; please do not edit. */
42353 #include "portable.h"
42357 if test "${STATIC_BACKENDS}"; then
42358 for b in config ${STATIC_BACKENDS}; do
42359 bb=`echo "${b}" | sed -e 's/back-//'`
42360 cat >> $BACKENDSC << ENDX
42361 extern BI_init ${bb}_back_initialize;
42365 cat >> $BACKENDSC << ENDX
42367 BackendInfo slap_binfo[] = {
42370 for b in config ${STATIC_BACKENDS}; do
42371 bb=`echo "${b}" | sed -e 's/back-//'`
42372 echo " Add ${bb} ..."
42373 cat >> $BACKENDSC << ENDX
42374 { "${bb}", ${bb}_back_initialize },
42378 cat >> $BACKENDSC << ENDX
42382 /* end of generated file */
42385 OVERLAYSC="servers/slapd/overlays/statover.c"
42386 echo "Making $OVERLAYSC"
42388 cat > $OVERLAYSC << ENDX
42389 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42391 * Copyright 1998-2006 The OpenLDAP Foundation.
42392 * All rights reserved.
42394 * Redistribution and use in source and binary forms, with or without
42395 * modification, are permitted only as authorized by the OpenLDAP
42398 * A copy of this license is available in the file LICENSE in the
42399 * top-level directory of the distribution or, alternatively, at
42400 * <http://www.OpenLDAP.org/license.html>.
42402 /* This file is automatically generated by configure; please do not edit. */
42404 #include "portable.h"
42408 if test "${STATIC_OVERLAYS}"; then
42409 for o in ${STATIC_OVERLAYS}; do
42410 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42411 cat >> $OVERLAYSC << ENDX
42412 extern OV_init ${oo}_initialize;
42417 cat >> $OVERLAYSC << ENDX
42419 OverlayInit slap_oinfo[] = {
42422 if test "${STATIC_OVERLAYS}"; then
42423 for o in ${STATIC_OVERLAYS}; do
42424 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42425 echo " Add ${oo} ..."
42426 cat >> $OVERLAYSC << ENDX
42427 { "${oo}", ${oo}_initialize },
42432 cat >> $OVERLAYSC << ENDX
42436 /* end of generated file */
42439 echo Please run \"make depend\" to build dependencies
42445 cat >>$CONFIG_STATUS <<\_ACEOF
42447 { (exit 0); exit 0; }
42449 chmod +x $CONFIG_STATUS
42450 ac_clean_files=$ac_clean_files_save
42453 # configure is writing to config.log, and then calls config.status.
42454 # config.status does its own redirection, appending to config.log.
42455 # Unfortunately, on DOS this fails, as config.log is still kept open
42456 # by configure, so config.status won't be able to write to it; its
42457 # output is simply discarded. So we exec the FD to /dev/null,
42458 # effectively closing config.log, so it can be properly (re)opened and
42459 # appended to by config.status. When coming back to configure, we
42460 # need to make the FD available again.
42461 if test "$no_create" != yes; then
42463 ac_config_status_args=
42464 test "$silent" = yes &&
42465 ac_config_status_args="$ac_config_status_args --quiet"
42467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42470 # would make configure fail if this is the last instruction.
42471 $ac_cs_success || { (exit 1); exit 1; }