2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.664 2008/08/26 19:48:17 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2008 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 MYSQL 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_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS 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-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1040 --enable-null enable null backend no|yes|mod [no]
1041 --enable-passwd enable passwd backend no|yes|mod [no]
1042 --enable-perl enable perl backend no|yes|mod [no]
1043 --enable-relay enable relay backend no|yes|mod [yes]
1044 --enable-shell enable shell backend no|yes|mod [no]
1045 --enable-sock enable sock backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1052 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1053 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1054 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1055 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1056 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1057 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1058 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1059 --enable-refint Referential Integrity overlay no|yes|mod [no]
1060 --enable-retcode Return Code testing overlay no|yes|mod [no]
1061 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1062 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1063 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1064 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1065 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1066 --enable-valsort Value Sorting overlay no|yes|mod [no]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1089 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1090 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1091 --with-pic try to use only PIC/non-PIC objects [default=use
1094 include additional configurations [automatic]
1096 See INSTALL file for further details.
1098 Some influential environment variables:
1099 CC C compiler command
1100 CFLAGS C compiler flags
1101 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1102 nonstandard directory <lib dir>
1103 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104 headers in a nonstandard directory <include dir>
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute path.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1210 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59. Invocation command line was
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_must_keep_next=false
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
1298 ac_must_keep_next=false # Got value, back to normal.
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309 -* ) ac_must_keep_next=true ;;
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log. We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1338 # The following way of writing the cache mishandles newlines in values,
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1361 for ac_var in $ac_subst_vars
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1368 if test -n "$ac_subst_files"; then
1375 for ac_var in $ac_subst_files
1377 eval ac_val=$`echo $ac_var`
1378 echo "$ac_var='"'"'$ac_val'"'"'"
1383 if test -s confdefs.h; then
1390 sed "/^$/d" confdefs.h | sort
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1397 rm -f core *.core &&
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401 for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 # Predefined preprocessor variables.
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1457 # Check that the precious variables saved in the cache have kept the same
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481 echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483 echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1605 if test -d $ac_aux_dir/CVS; then
1606 OPENLDAP_CVS="(from CVS sources) "
1609 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1611 # Make sure we can run config.sub.
1612 $ac_config_sub sun4 >/dev/null 2>&1 ||
1613 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1614 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1615 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: checking build system type" >&5
1618 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1619 if test "${ac_cv_build+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 ac_cv_build_alias=$build_alias
1623 test -z "$ac_cv_build_alias" &&
1624 ac_cv_build_alias=`$ac_config_guess`
1625 test -z "$ac_cv_build_alias" &&
1626 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1627 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1628 { (exit 1); exit 1; }; }
1629 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1630 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1631 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1632 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1636 echo "${ECHO_T}$ac_cv_build" >&6
1638 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643 echo "$as_me:$LINENO: checking host system type" >&5
1644 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1645 if test "${ac_cv_host+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 ac_cv_host_alias=$host_alias
1649 test -z "$ac_cv_host_alias" &&
1650 ac_cv_host_alias=$ac_cv_build_alias
1651 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1652 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1653 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1654 { (exit 1); exit 1; }; }
1657 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1658 echo "${ECHO_T}$ac_cv_host" >&6
1660 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665 echo "$as_me:$LINENO: checking target system type" >&5
1666 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1667 if test "${ac_cv_target+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 ac_cv_target_alias=$target_alias
1671 test "x$ac_cv_target_alias" = "x" &&
1672 ac_cv_target_alias=$ac_cv_host_alias
1673 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1674 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1676 { (exit 1); exit 1; }; }
1679 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1680 echo "${ECHO_T}$ac_cv_target" >&6
1681 target=$ac_cv_target
1682 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 # The aliases save the names the user supplied, while $host etc.
1688 # will get canonicalized.
1689 test -n "$target_alias" &&
1690 test "$program_prefix$program_suffix$program_transform_name" = \
1692 program_prefix=${target_alias}-
1694 am__api_version="1.9"
1695 # Find a good install program. We prefer a C program (faster),
1696 # so one script is as good as another. But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732 if test $ac_prog = install &&
1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # AIX install. It has an incompatible calling convention.
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1753 if test "${ac_cv_path_install+set}" = set; then
1754 INSTALL=$ac_cv_path_install
1756 # As a last resort, use the slow shell script. We don't cache a
1757 # path for INSTALL within a source directory, because that will
1758 # break other packages using the cache if that directory is
1759 # removed, or if the path is relative.
1760 INSTALL=$ac_install_sh
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1775 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1778 echo timestamp > conftest.file
1779 # Do `set' in a subshell so we don't clobber the current shell's
1780 # arguments. Must try -L first in case configure is actually a
1781 # symlink; some systems play weird games with the mod time of symlinks
1782 # (eg FreeBSD returns the mod time of the symlink's containing
1785 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1786 if test "$*" = "X"; then
1788 set X `ls -t $srcdir/configure conftest.file`
1791 if test "$*" != "X $srcdir/configure conftest.file" \
1792 && test "$*" != "X conftest.file $srcdir/configure"; then
1794 # If neither matched, then we have a broken ls. This can happen
1795 # if, for instance, CONFIG_SHELL is bash and it inherits a
1796 # broken ls alias from the environment. This has actually
1797 # happened. Such a system could not be considered "sane".
1798 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&5
1800 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1801 alias in your environment" >&2;}
1802 { (exit 1); exit 1; }; }
1805 test "$2" = conftest.file
1811 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1812 Check your system clock" >&5
1813 echo "$as_me: error: newly created file is older than distributed files!
1814 Check your system clock" >&2;}
1815 { (exit 1); exit 1; }; }
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819 test "$program_prefix" != NONE &&
1820 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1821 # Use a double $ so make ignores it.
1822 test "$program_suffix" != NONE &&
1823 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1824 # Double any \ or $. echo might interpret backslashes.
1825 # By default was `s,x,x', remove it if useless.
1826 cat <<\_ACEOF >conftest.sed
1827 s/[\\$]/&&/g;s/;s,x,x,$//
1829 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1832 # expand $ac_aux_dir to an absolute path
1833 am_aux_dir=`cd $ac_aux_dir && pwd`
1835 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1836 # Use eval to expand $SHELL
1837 if eval "$MISSING --run true"; then
1838 am_missing_run="$MISSING --run "
1841 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1842 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1845 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1846 # We used to keeping the `.' as first argument, in order to
1847 # allow $(mkdir_p) to be used without argument. As in
1848 # $(mkdir_p) $(somedir)
1849 # where $(somedir) is conditionally defined. However this is wrong
1851 # 1. if the package is installed by a user who cannot write `.'
1852 # make install will fail,
1853 # 2. the above comment should most certainly read
1854 # $(mkdir_p) $(DESTDIR)$(somedir)
1855 # so it does not work when $(somedir) is undefined and
1856 # $(DESTDIR) is not.
1857 # To support the latter case, we have to write
1858 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1859 # so the `.' trick is pointless.
1860 mkdir_p='mkdir -p --'
1862 # On NextStep and OpenStep, the `mkdir' command does not
1863 # recognize any option. It will interpret all options as
1864 # directories to create, and then abort because `.' already
1866 for d in ./-p ./--version;
1868 test -d $d && rmdir $d
1870 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1871 if test -f "$ac_aux_dir/mkinstalldirs"; then
1872 mkdir_p='$(mkinstalldirs)'
1874 mkdir_p='$(install_sh) -d'
1878 for ac_prog in gawk mawk nawk awk
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_AWK+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$AWK"; then
1888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_AWK="$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 if test -n "$AWK"; then
1908 echo "$as_me:$LINENO: result: $AWK" >&5
1909 echo "${ECHO_T}$AWK" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 test -n "$AWK" && break
1918 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1921 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 cat >conftest.make <<\_ACEOF
1926 @echo 'ac_maketemp="$(MAKE)"'
1928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1929 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1930 if test -n "$ac_maketemp"; then
1931 eval ac_cv_prog_make_${ac_make}_set=yes
1933 eval ac_cv_prog_make_${ac_make}_set=no
1937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1938 echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944 SET_MAKE="MAKE=${MAKE-make}"
1947 rm -rf .tst 2>/dev/null
1948 mkdir .tst 2>/dev/null
1949 if test -d .tst; then
1954 rmdir .tst 2>/dev/null
1956 # test to see if srcdir already configured
1957 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1958 test -f $srcdir/config.status; then
1959 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1960 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # test whether we have cygpath
1965 if test -z "$CYGPATH_W"; then
1966 if (cygpath --version) >/dev/null 2>/dev/null; then
1967 CYGPATH_W='cygpath -w'
1974 # Define the identity of the package.
1979 # Some tools Automake needs.
1981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1995 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1997 # Installed binaries are usually stripped using `strip' when the user
1998 # run `make install-strip'. However `strip' might not be the right
1999 # tool to use in cross-compilation environments, therefore Automake
2000 # will honor the `STRIP' environment variable to overrule this program.
2001 if test "$cross_compiling" != no; then
2002 if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}strip; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_STRIP+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$STRIP"; then
2011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 STRIP=$ac_cv_prog_STRIP
2030 if test -n "$STRIP"; then
2031 echo "$as_me:$LINENO: result: $STRIP" >&5
2032 echo "${ECHO_T}$STRIP" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2039 if test -z "$ac_cv_prog_STRIP"; then
2041 # Extract the first word of "strip", so it can be a program name with args.
2042 set dummy strip; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$ac_ct_STRIP"; then
2049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_STRIP="strip"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2069 if test -n "$ac_ct_STRIP"; then
2070 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2071 echo "${ECHO_T}$ac_ct_STRIP" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2079 STRIP="$ac_cv_prog_STRIP"
2083 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2085 # We need awk for the "check" target. The system "awk" is bad on
2087 # Always define AMTAR for backward compatibility.
2089 AMTAR=${AMTAR-"${am_missing_run}tar"}
2091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097 cat >>confdefs.h <<_ACEOF
2098 #define OPENLDAP_PACKAGE "$PACKAGE"
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_VERSION "$VERSION"
2108 cat >>confdefs.h <<_ACEOF
2109 #define LDAP_VENDOR_VERSION $OL_API_INC
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2128 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2130 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2132 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2140 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2142 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2144 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2147 echo "$as_me:$LINENO: checking configure arguments" >&5
2148 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2153 ldap_subdir="/openldap"
2156 # Check whether --with-subdir or --without-subdir was given.
2157 if test "${with_subdir+set}" = set; then
2158 withval="$with_subdir"
2165 ldap_subdir="$withval"
2168 ldap_subdir="/$withval"
2174 # OpenLDAP --enable-debug
2176 # Check whether --enable-debug or --disable-debug was given.
2177 if test "${enable_debug+set}" = set; then
2178 enableval="$enable_debug"
2181 for ol_val in no yes traditional ; do
2182 if test "$enableval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2188 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2189 { (exit 1); exit 1; }; }
2191 ol_enable_debug="$ol_arg"
2196 # end --enable-debug
2197 # OpenLDAP --enable-dynamic
2199 # Check whether --enable-dynamic or --disable-dynamic was given.
2200 if test "${enable_dynamic+set}" = set; then
2201 enableval="$enable_dynamic"
2204 for ol_val in auto yes no ; do
2205 if test "$enableval" = "$ol_val" ; then
2209 if test "$ol_arg" = "invalid" ; then
2210 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2212 { (exit 1); exit 1; }; }
2214 ol_enable_dynamic="$ol_arg"
2217 ol_enable_dynamic=no
2219 # end --enable-dynamic
2220 # OpenLDAP --enable-syslog
2222 # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224 enableval="$enable_syslog"
2227 for ol_val in auto yes no ; do
2228 if test "$enableval" = "$ol_val" ; then
2232 if test "$ol_arg" = "invalid" ; then
2233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235 { (exit 1); exit 1; }; }
2237 ol_enable_syslog="$ol_arg"
2240 ol_enable_syslog=auto
2242 # end --enable-syslog
2243 # OpenLDAP --enable-proctitle
2245 # Check whether --enable-proctitle or --disable-proctitle was given.
2246 if test "${enable_proctitle+set}" = set; then
2247 enableval="$enable_proctitle"
2250 for ol_val in auto yes no ; do
2251 if test "$enableval" = "$ol_val" ; then
2255 if test "$ol_arg" = "invalid" ; then
2256 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2257 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2258 { (exit 1); exit 1; }; }
2260 ol_enable_proctitle="$ol_arg"
2263 ol_enable_proctitle=yes
2265 # end --enable-proctitle
2266 ol_enable_referrals=${ol_enable_referrals-no}
2267 # OpenLDAP --enable-ipv6
2269 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271 enableval="$enable_ipv6"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282 { (exit 1); exit 1; }; }
2284 ol_enable_ipv6="$ol_arg"
2290 # OpenLDAP --enable-local
2292 # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294 enableval="$enable_local"
2297 for ol_val in auto yes no ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305 { (exit 1); exit 1; }; }
2307 ol_enable_local="$ol_arg"
2310 ol_enable_local=auto
2312 # end --enable-local
2314 # OpenLDAP --with-cyrus_sasl
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318 withval="$with_cyrus_sasl"
2321 for ol_val in auto yes no ; do
2322 if test "$withval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329 { (exit 1); exit 1; }; }
2331 ol_with_cyrus_sasl="$ol_arg"
2334 ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2337 # OpenLDAP --with-fetch
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341 withval="$with_fetch"
2344 for ol_val in auto yes no ; do
2345 if test "$withval" = "$ol_val" ; then
2349 if test "$ol_arg" = "invalid" ; then
2350 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352 { (exit 1); exit 1; }; }
2354 ol_with_fetch="$ol_arg"
2357 ol_with_fetch="auto"
2358 fi; # end --with-fetch
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 gnutls 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"
2452 # OpenLDAP --with-odbc
2454 # Check whether --with-odbc or --without-odbc was given.
2455 if test "${with_odbc+set}" = set; then
2456 withval="$with_odbc"
2459 for ol_val in auto iodbc unixodbc odbc32 ; do
2460 if test "$withval" = "$ol_val" ; then
2464 if test "$ol_arg" = "invalid" ; then
2465 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2466 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2467 { (exit 1); exit 1; }; }
2469 ol_with_odbc="$ol_arg"
2473 fi; # end --with-odbc
2477 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2478 if test "${enable_xxslapdoptions+set}" = set; then
2479 enableval="$enable_xxslapdoptions"
2482 # OpenLDAP --enable-slapd
2484 # Check whether --enable-slapd or --disable-slapd was given.
2485 if test "${enable_slapd+set}" = set; then
2486 enableval="$enable_slapd"
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-slapd" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2497 { (exit 1); exit 1; }; }
2499 ol_enable_slapd="$ol_arg"
2504 # end --enable-slapd
2505 # OpenLDAP --enable-dynacl
2507 # Check whether --enable-dynacl or --disable-dynacl was given.
2508 if test "${enable_dynacl+set}" = set; then
2509 enableval="$enable_dynacl"
2512 for ol_val in auto yes no ; 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-dynacl" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2520 { (exit 1); exit 1; }; }
2522 ol_enable_dynacl="$ol_arg"
2527 # end --enable-dynacl
2528 # OpenLDAP --enable-aci
2530 # Check whether --enable-aci or --disable-aci was given.
2531 if test "${enable_aci+set}" = set; then
2532 enableval="$enable_aci"
2535 for ol_val in no yes mod ; 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-aci" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2543 { (exit 1); exit 1; }; }
2545 ol_enable_aci="$ol_arg"
2551 # OpenLDAP --enable-cleartext
2553 # Check whether --enable-cleartext or --disable-cleartext was given.
2554 if test "${enable_cleartext+set}" = set; then
2555 enableval="$enable_cleartext"
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-cleartext" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2566 { (exit 1); exit 1; }; }
2568 ol_enable_cleartext="$ol_arg"
2571 ol_enable_cleartext=yes
2573 # end --enable-cleartext
2574 # OpenLDAP --enable-crypt
2576 # Check whether --enable-crypt or --disable-crypt was given.
2577 if test "${enable_crypt+set}" = set; then
2578 enableval="$enable_crypt"
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-crypt" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2589 { (exit 1); exit 1; }; }
2591 ol_enable_crypt="$ol_arg"
2596 # end --enable-crypt
2597 # OpenLDAP --enable-lmpasswd
2599 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2600 if test "${enable_lmpasswd+set}" = set; then
2601 enableval="$enable_lmpasswd"
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-lmpasswd" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2612 { (exit 1); exit 1; }; }
2614 ol_enable_lmpasswd="$ol_arg"
2617 ol_enable_lmpasswd=no
2619 # end --enable-lmpasswd
2620 # OpenLDAP --enable-spasswd
2622 # Check whether --enable-spasswd or --disable-spasswd was given.
2623 if test "${enable_spasswd+set}" = set; then
2624 enableval="$enable_spasswd"
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-spasswd" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2635 { (exit 1); exit 1; }; }
2637 ol_enable_spasswd="$ol_arg"
2640 ol_enable_spasswd=no
2642 # end --enable-spasswd
2643 # OpenLDAP --enable-modules
2645 # Check whether --enable-modules or --disable-modules was given.
2646 if test "${enable_modules+set}" = set; then
2647 enableval="$enable_modules"
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-modules" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_modules="$ol_arg"
2663 ol_enable_modules=no
2665 # end --enable-modules
2666 # OpenLDAP --enable-rewrite
2668 # Check whether --enable-rewrite or --disable-rewrite was given.
2669 if test "${enable_rewrite+set}" = set; then
2670 enableval="$enable_rewrite"
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-rewrite" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_rewrite="$ol_arg"
2686 ol_enable_rewrite=auto
2688 # end --enable-rewrite
2689 # OpenLDAP --enable-rlookups
2691 # Check whether --enable-rlookups or --disable-rlookups was given.
2692 if test "${enable_rlookups+set}" = set; then
2693 enableval="$enable_rlookups"
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-rlookups" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2704 { (exit 1); exit 1; }; }
2706 ol_enable_rlookups="$ol_arg"
2709 ol_enable_rlookups=no
2711 # end --enable-rlookups
2712 # OpenLDAP --enable-slapi
2714 # Check whether --enable-slapi or --disable-slapi was given.
2715 if test "${enable_slapi+set}" = set; then
2716 enableval="$enable_slapi"
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-slapi" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2727 { (exit 1); exit 1; }; }
2729 ol_enable_slapi="$ol_arg"
2734 # end --enable-slapi
2735 # OpenLDAP --enable-slp
2737 # Check whether --enable-slp or --disable-slp was given.
2738 if test "${enable_slp+set}" = set; then
2739 enableval="$enable_slp"
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-slp" >&5
2749 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2750 { (exit 1); exit 1; }; }
2752 ol_enable_slp="$ol_arg"
2758 # OpenLDAP --enable-wrappers
2760 # Check whether --enable-wrappers or --disable-wrappers was given.
2761 if test "${enable_wrappers+set}" = set; then
2762 enableval="$enable_wrappers"
2765 for ol_val in auto yes no ; do
2766 if test "$enableval" = "$ol_val" ; then
2770 if test "$ol_arg" = "invalid" ; then
2771 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2772 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2773 { (exit 1); exit 1; }; }
2775 ol_enable_wrappers="$ol_arg"
2778 ol_enable_wrappers=no
2780 # end --enable-wrappers
2797 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2798 if test "${enable_xxslapbackends+set}" = set; then
2799 enableval="$enable_xxslapbackends"
2803 # OpenLDAP --enable-backends
2805 # Check whether --enable-backends or --disable-backends was given.
2806 if test "${enable_backends+set}" = set; then
2807 enableval="$enable_backends"
2810 for ol_val in no yes mod ; do
2811 if test "$enableval" = "$ol_val" ; then
2815 if test "$ol_arg" = "invalid" ; then
2816 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2818 { (exit 1); exit 1; }; }
2820 ol_enable_backends="$ol_arg"
2823 # end --enable-backends
2824 # OpenLDAP --enable-bdb
2826 # Check whether --enable-bdb or --disable-bdb was given.
2827 if test "${enable_bdb+set}" = set; then
2828 enableval="$enable_bdb"
2831 for ol_val in no yes mod ; do
2832 if test "$enableval" = "$ol_val" ; then
2836 if test "$ol_arg" = "invalid" ; then
2837 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2839 { (exit 1); exit 1; }; }
2841 ol_enable_bdb="$ol_arg"
2844 ol_enable_bdb=${ol_enable_backends:-yes}
2847 # OpenLDAP --enable-dnssrv
2849 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2850 if test "${enable_dnssrv+set}" = set; then
2851 enableval="$enable_dnssrv"
2854 for ol_val in no yes mod ; do
2855 if test "$enableval" = "$ol_val" ; then
2859 if test "$ol_arg" = "invalid" ; then
2860 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2862 { (exit 1); exit 1; }; }
2864 ol_enable_dnssrv="$ol_arg"
2867 ol_enable_dnssrv=${ol_enable_backends:-no}
2869 # end --enable-dnssrv
2870 # OpenLDAP --enable-hdb
2872 # Check whether --enable-hdb or --disable-hdb was given.
2873 if test "${enable_hdb+set}" = set; then
2874 enableval="$enable_hdb"
2877 for ol_val in no yes mod ; do
2878 if test "$enableval" = "$ol_val" ; then
2882 if test "$ol_arg" = "invalid" ; then
2883 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2885 { (exit 1); exit 1; }; }
2887 ol_enable_hdb="$ol_arg"
2890 ol_enable_hdb=${ol_enable_backends:-yes}
2893 # OpenLDAP --enable-ldap
2895 # Check whether --enable-ldap or --disable-ldap was given.
2896 if test "${enable_ldap+set}" = set; then
2897 enableval="$enable_ldap"
2900 for ol_val in no yes mod ; do
2901 if test "$enableval" = "$ol_val" ; then
2905 if test "$ol_arg" = "invalid" ; then
2906 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2907 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2908 { (exit 1); exit 1; }; }
2910 ol_enable_ldap="$ol_arg"
2913 ol_enable_ldap=${ol_enable_backends:-no}
2916 # OpenLDAP --enable-meta
2918 # Check whether --enable-meta or --disable-meta was given.
2919 if test "${enable_meta+set}" = set; then
2920 enableval="$enable_meta"
2923 for ol_val in no yes mod ; do
2924 if test "$enableval" = "$ol_val" ; then
2928 if test "$ol_arg" = "invalid" ; then
2929 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2930 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2931 { (exit 1); exit 1; }; }
2933 ol_enable_meta="$ol_arg"
2936 ol_enable_meta=${ol_enable_backends:-no}
2939 # OpenLDAP --enable-monitor
2941 # Check whether --enable-monitor or --disable-monitor was given.
2942 if test "${enable_monitor+set}" = set; then
2943 enableval="$enable_monitor"
2946 for ol_val in no yes mod ; do
2947 if test "$enableval" = "$ol_val" ; then
2951 if test "$ol_arg" = "invalid" ; then
2952 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2953 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2954 { (exit 1); exit 1; }; }
2956 ol_enable_monitor="$ol_arg"
2959 ol_enable_monitor=${ol_enable_backends:-yes}
2961 # end --enable-monitor
2962 # OpenLDAP --enable-ndb
2964 # Check whether --enable-ndb or --disable-ndb was given.
2965 if test "${enable_ndb+set}" = set; then
2966 enableval="$enable_ndb"
2969 for ol_val in no yes mod ; do
2970 if test "$enableval" = "$ol_val" ; then
2974 if test "$ol_arg" = "invalid" ; then
2975 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
2976 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
2977 { (exit 1); exit 1; }; }
2979 ol_enable_ndb="$ol_arg"
2982 ol_enable_ndb=${ol_enable_backends:-no}
2985 # OpenLDAP --enable-null
2987 # Check whether --enable-null or --disable-null was given.
2988 if test "${enable_null+set}" = set; then
2989 enableval="$enable_null"
2992 for ol_val in no yes mod ; do
2993 if test "$enableval" = "$ol_val" ; then
2997 if test "$ol_arg" = "invalid" ; then
2998 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3000 { (exit 1); exit 1; }; }
3002 ol_enable_null="$ol_arg"
3005 ol_enable_null=${ol_enable_backends:-no}
3008 # OpenLDAP --enable-passwd
3010 # Check whether --enable-passwd or --disable-passwd was given.
3011 if test "${enable_passwd+set}" = set; then
3012 enableval="$enable_passwd"
3015 for ol_val in no yes mod ; do
3016 if test "$enableval" = "$ol_val" ; then
3020 if test "$ol_arg" = "invalid" ; then
3021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3022 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3023 { (exit 1); exit 1; }; }
3025 ol_enable_passwd="$ol_arg"
3028 ol_enable_passwd=${ol_enable_backends:-no}
3030 # end --enable-passwd
3031 # OpenLDAP --enable-perl
3033 # Check whether --enable-perl or --disable-perl was given.
3034 if test "${enable_perl+set}" = set; then
3035 enableval="$enable_perl"
3038 for ol_val in no yes mod ; do
3039 if test "$enableval" = "$ol_val" ; then
3043 if test "$ol_arg" = "invalid" ; then
3044 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3045 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3046 { (exit 1); exit 1; }; }
3048 ol_enable_perl="$ol_arg"
3051 ol_enable_perl=${ol_enable_backends:-no}
3054 # OpenLDAP --enable-relay
3056 # Check whether --enable-relay or --disable-relay was given.
3057 if test "${enable_relay+set}" = set; then
3058 enableval="$enable_relay"
3061 for ol_val in no yes mod ; do
3062 if test "$enableval" = "$ol_val" ; then
3066 if test "$ol_arg" = "invalid" ; then
3067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3068 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3069 { (exit 1); exit 1; }; }
3071 ol_enable_relay="$ol_arg"
3074 ol_enable_relay=${ol_enable_backends:-yes}
3076 # end --enable-relay
3077 # OpenLDAP --enable-shell
3079 # Check whether --enable-shell or --disable-shell was given.
3080 if test "${enable_shell+set}" = set; then
3081 enableval="$enable_shell"
3084 for ol_val in no yes mod ; do
3085 if test "$enableval" = "$ol_val" ; then
3089 if test "$ol_arg" = "invalid" ; then
3090 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3092 { (exit 1); exit 1; }; }
3094 ol_enable_shell="$ol_arg"
3097 ol_enable_shell=${ol_enable_backends:-no}
3099 # end --enable-shell
3100 # OpenLDAP --enable-sock
3102 # Check whether --enable-sock or --disable-sock was given.
3103 if test "${enable_sock+set}" = set; then
3104 enableval="$enable_sock"
3107 for ol_val in no yes mod ; do
3108 if test "$enableval" = "$ol_val" ; then
3112 if test "$ol_arg" = "invalid" ; then
3113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_sock="$ol_arg"
3120 ol_enable_sock=${ol_enable_backends:-no}
3123 # OpenLDAP --enable-sql
3125 # Check whether --enable-sql or --disable-sql was given.
3126 if test "${enable_sql+set}" = set; then
3127 enableval="$enable_sql"
3130 for ol_val in no yes mod ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_sql="$ol_arg"
3143 ol_enable_sql=${ol_enable_backends:-no}
3147 Overlays="accesslog \
3165 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3166 if test "${enable_xxslapoverlays+set}" = set; then
3167 enableval="$enable_xxslapoverlays"
3171 # OpenLDAP --enable-overlays
3173 # Check whether --enable-overlays or --disable-overlays was given.
3174 if test "${enable_overlays+set}" = set; then
3175 enableval="$enable_overlays"
3178 for ol_val in no yes mod ; do
3179 if test "$enableval" = "$ol_val" ; then
3183 if test "$ol_arg" = "invalid" ; then
3184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3185 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3186 { (exit 1); exit 1; }; }
3188 ol_enable_overlays="$ol_arg"
3191 # end --enable-overlays
3192 # OpenLDAP --enable-accesslog
3194 # Check whether --enable-accesslog or --disable-accesslog was given.
3195 if test "${enable_accesslog+set}" = set; then
3196 enableval="$enable_accesslog"
3199 for ol_val in no yes mod ; do
3200 if test "$enableval" = "$ol_val" ; then
3204 if test "$ol_arg" = "invalid" ; then
3205 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_accesslog="$ol_arg"
3212 ol_enable_accesslog=${ol_enable_overlays:-no}
3214 # end --enable-accesslog
3216 # OpenLDAP --enable-auditlog
3218 # Check whether --enable-auditlog or --disable-auditlog was given.
3219 if test "${enable_auditlog+set}" = set; then
3220 enableval="$enable_auditlog"
3223 for ol_val in no yes mod ; do
3224 if test "$enableval" = "$ol_val" ; then
3228 if test "$ol_arg" = "invalid" ; then
3229 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3231 { (exit 1); exit 1; }; }
3233 ol_enable_auditlog="$ol_arg"
3236 ol_enable_auditlog=${ol_enable_overlays:-no}
3238 # end --enable-auditlog
3240 # OpenLDAP --enable-constraint
3242 # Check whether --enable-constraint or --disable-constraint was given.
3243 if test "${enable_constraint+set}" = set; then
3244 enableval="$enable_constraint"
3247 for ol_val in no yes mod ; do
3248 if test "$enableval" = "$ol_val" ; then
3252 if test "$ol_arg" = "invalid" ; then
3253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3255 { (exit 1); exit 1; }; }
3257 ol_enable_constraint="$ol_arg"
3260 ol_enable_constraint=${ol_enable_overlays:-no}
3262 # end --enable-constraint
3264 # OpenLDAP --enable-dds
3266 # Check whether --enable-dds or --disable-dds was given.
3267 if test "${enable_dds+set}" = set; then
3268 enableval="$enable_dds"
3271 for ol_val in no yes mod ; do
3272 if test "$enableval" = "$ol_val" ; then
3276 if test "$ol_arg" = "invalid" ; then
3277 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3278 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3279 { (exit 1); exit 1; }; }
3281 ol_enable_dds="$ol_arg"
3284 ol_enable_dds=${ol_enable_overlays:-no}
3288 # OpenLDAP --enable-dyngroup
3290 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3291 if test "${enable_dyngroup+set}" = set; then
3292 enableval="$enable_dyngroup"
3295 for ol_val in no yes mod ; do
3296 if test "$enableval" = "$ol_val" ; then
3300 if test "$ol_arg" = "invalid" ; then
3301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3302 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3303 { (exit 1); exit 1; }; }
3305 ol_enable_dyngroup="$ol_arg"
3308 ol_enable_dyngroup=${ol_enable_overlays:-no}
3310 # end --enable-dyngroup
3312 # OpenLDAP --enable-dynlist
3314 # Check whether --enable-dynlist or --disable-dynlist was given.
3315 if test "${enable_dynlist+set}" = set; then
3316 enableval="$enable_dynlist"
3319 for ol_val in no yes mod ; do
3320 if test "$enableval" = "$ol_val" ; then
3324 if test "$ol_arg" = "invalid" ; then
3325 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3326 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3327 { (exit 1); exit 1; }; }
3329 ol_enable_dynlist="$ol_arg"
3332 ol_enable_dynlist=${ol_enable_overlays:-no}
3334 # end --enable-dynlist
3336 # OpenLDAP --enable-memberof
3338 # Check whether --enable-memberof or --disable-memberof was given.
3339 if test "${enable_memberof+set}" = set; then
3340 enableval="$enable_memberof"
3343 for ol_val in no yes mod ; do
3344 if test "$enableval" = "$ol_val" ; then
3348 if test "$ol_arg" = "invalid" ; then
3349 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3350 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3351 { (exit 1); exit 1; }; }
3353 ol_enable_memberof="$ol_arg"
3356 ol_enable_memberof=${ol_enable_overlays:-no}
3358 # end --enable-memberof
3360 # OpenLDAP --enable-ppolicy
3362 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3363 if test "${enable_ppolicy+set}" = set; then
3364 enableval="$enable_ppolicy"
3367 for ol_val in no yes mod ; do
3368 if test "$enableval" = "$ol_val" ; then
3372 if test "$ol_arg" = "invalid" ; then
3373 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3375 { (exit 1); exit 1; }; }
3377 ol_enable_ppolicy="$ol_arg"
3380 ol_enable_ppolicy=${ol_enable_overlays:-no}
3382 # end --enable-ppolicy
3384 # OpenLDAP --enable-proxycache
3386 # Check whether --enable-proxycache or --disable-proxycache was given.
3387 if test "${enable_proxycache+set}" = set; then
3388 enableval="$enable_proxycache"
3391 for ol_val in no yes mod ; do
3392 if test "$enableval" = "$ol_val" ; then
3396 if test "$ol_arg" = "invalid" ; then
3397 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3398 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3399 { (exit 1); exit 1; }; }
3401 ol_enable_proxycache="$ol_arg"
3404 ol_enable_proxycache=${ol_enable_overlays:-no}
3406 # end --enable-proxycache
3408 # OpenLDAP --enable-refint
3410 # Check whether --enable-refint or --disable-refint was given.
3411 if test "${enable_refint+set}" = set; then
3412 enableval="$enable_refint"
3415 for ol_val in no yes mod ; do
3416 if test "$enableval" = "$ol_val" ; then
3420 if test "$ol_arg" = "invalid" ; then
3421 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3422 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3423 { (exit 1); exit 1; }; }
3425 ol_enable_refint="$ol_arg"
3428 ol_enable_refint=${ol_enable_overlays:-no}
3430 # end --enable-refint
3432 # OpenLDAP --enable-retcode
3434 # Check whether --enable-retcode or --disable-retcode was given.
3435 if test "${enable_retcode+set}" = set; then
3436 enableval="$enable_retcode"
3439 for ol_val in no yes mod ; do
3440 if test "$enableval" = "$ol_val" ; then
3444 if test "$ol_arg" = "invalid" ; then
3445 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3446 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3447 { (exit 1); exit 1; }; }
3449 ol_enable_retcode="$ol_arg"
3452 ol_enable_retcode=${ol_enable_overlays:-no}
3454 # end --enable-retcode
3456 # OpenLDAP --enable-rwm
3458 # Check whether --enable-rwm or --disable-rwm was given.
3459 if test "${enable_rwm+set}" = set; then
3460 enableval="$enable_rwm"
3463 for ol_val in no yes mod ; do
3464 if test "$enableval" = "$ol_val" ; then
3468 if test "$ol_arg" = "invalid" ; then
3469 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3470 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3471 { (exit 1); exit 1; }; }
3473 ol_enable_rwm="$ol_arg"
3476 ol_enable_rwm=${ol_enable_overlays:-no}
3480 # OpenLDAP --enable-seqmod
3482 # Check whether --enable-seqmod or --disable-seqmod was given.
3483 if test "${enable_seqmod+set}" = set; then
3484 enableval="$enable_seqmod"
3487 for ol_val in no yes mod ; do
3488 if test "$enableval" = "$ol_val" ; then
3492 if test "$ol_arg" = "invalid" ; then
3493 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3494 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3495 { (exit 1); exit 1; }; }
3497 ol_enable_seqmod="$ol_arg"
3500 ol_enable_seqmod=${ol_enable_overlays:-yes}
3502 # end --enable-seqmod
3504 # OpenLDAP --enable-syncprov
3506 # Check whether --enable-syncprov or --disable-syncprov was given.
3507 if test "${enable_syncprov+set}" = set; then
3508 enableval="$enable_syncprov"
3511 for ol_val in no yes mod ; do
3512 if test "$enableval" = "$ol_val" ; then
3516 if test "$ol_arg" = "invalid" ; then
3517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3518 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3519 { (exit 1); exit 1; }; }
3521 ol_enable_syncprov="$ol_arg"
3524 ol_enable_syncprov=${ol_enable_overlays:-yes}
3526 # end --enable-syncprov
3528 # OpenLDAP --enable-translucent
3530 # Check whether --enable-translucent or --disable-translucent was given.
3531 if test "${enable_translucent+set}" = set; then
3532 enableval="$enable_translucent"
3535 for ol_val in no yes mod ; do
3536 if test "$enableval" = "$ol_val" ; then
3540 if test "$ol_arg" = "invalid" ; then
3541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3543 { (exit 1); exit 1; }; }
3545 ol_enable_translucent="$ol_arg"
3548 ol_enable_translucent=${ol_enable_overlays:-no}
3550 # end --enable-translucent
3552 # OpenLDAP --enable-unique
3554 # Check whether --enable-unique or --disable-unique was given.
3555 if test "${enable_unique+set}" = set; then
3556 enableval="$enable_unique"
3559 for ol_val in no yes mod ; do
3560 if test "$enableval" = "$ol_val" ; then
3564 if test "$ol_arg" = "invalid" ; then
3565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3567 { (exit 1); exit 1; }; }
3569 ol_enable_unique="$ol_arg"
3572 ol_enable_unique=${ol_enable_overlays:-no}
3574 # end --enable-unique
3576 # OpenLDAP --enable-valsort
3578 # Check whether --enable-valsort or --disable-valsort was given.
3579 if test "${enable_valsort+set}" = set; then
3580 enableval="$enable_valsort"
3583 for ol_val in no yes mod ; do
3584 if test "$enableval" = "$ol_val" ; then
3588 if test "$ol_arg" = "invalid" ; then
3589 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3590 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3591 { (exit 1); exit 1; }; }
3593 ol_enable_valsort="$ol_arg"
3596 ol_enable_valsort=${ol_enable_overlays:-no}
3598 # end --enable-valsort
3601 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3602 if test "${enable_xxliboptions+set}" = set; then
3603 enableval="$enable_xxliboptions"
3606 # Check whether --enable-static or --disable-static was given.
3607 if test "${enable_static+set}" = set; then
3608 enableval="$enable_static"
3609 p=${PACKAGE-default}
3611 yes) enable_static=yes ;;
3612 no) enable_static=no ;;
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3630 # Check whether --enable-shared or --disable-shared was given.
3631 if test "${enable_shared+set}" = set; then
3632 enableval="$enable_shared"
3633 p=${PACKAGE-default}
3635 yes) enable_shared=yes ;;
3636 no) enable_shared=no ;;
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3643 if test "X$pkg" = "X$p"; then
3657 if test $ol_enable_slapd = no ; then
3658 if test $ol_enable_slapi = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3662 case "$ol_enable_backends" in yes | mod)
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3666 for i in $Backends; do
3667 eval "ol_tmp=\$ol_enable_$i"
3668 if test $ol_tmp != no ; then
3669 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671 eval "ol_enable_$i=no"
3674 if test $ol_enable_modules = yes ; then
3675 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3678 if test $ol_enable_wrappers = yes ; then
3679 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3680 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3682 if test $ol_enable_rlookups = yes ; then
3683 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3686 if test $ol_enable_dynacl = yes ; then
3687 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3690 if test $ol_enable_aci != no ; then
3691 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3692 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3694 if test $ol_enable_rewrite = yes ; then
3695 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3696 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3698 case "$ol_enable_overlays" in yes | mod)
3699 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3700 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3702 for i in $Overlays; do
3703 eval "ol_tmp=\$ol_enable_$i"
3704 if test $ol_tmp != no ; then
3705 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3707 eval "ol_enable_$i=no"
3711 # force settings to no
3716 ol_enable_modules=no
3717 ol_enable_rlookups=no
3720 ol_enable_wrappers=no
3722 ol_enable_rewrite=no
3724 elif test $ol_enable_modules != yes &&
3725 test $ol_enable_bdb = no &&
3726 test $ol_enable_dnssrv = no &&
3727 test $ol_enable_hdb = no &&
3728 test $ol_enable_ldap = no &&
3729 test $ol_enable_meta = no &&
3730 test $ol_enable_monitor = no &&
3731 test $ol_enable_ndb = no &&
3732 test $ol_enable_null = no &&
3733 test $ol_enable_passwd = no &&
3734 test $ol_enable_perl = no &&
3735 test $ol_enable_relay = no &&
3736 test $ol_enable_shell = no &&
3737 test $ol_enable_sock = no &&
3738 test $ol_enable_sql = no ; then
3740 if test $ol_enable_slapd = yes ; then
3741 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3742 echo "$as_me: error: slapd requires a backend" >&2;}
3743 { (exit 1); exit 1; }; }
3745 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3746 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3751 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3752 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3753 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3754 { (exit 1); exit 1; }; }
3757 if test $ol_enable_lmpasswd = yes ; then
3758 if test $ol_with_tls = no ; then
3759 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3760 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3761 { (exit 1); exit 1; }; }
3765 if test $ol_enable_spasswd = yes ; then
3766 if test $ol_with_cyrus_sasl = no ; then
3767 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3768 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3769 { (exit 1); exit 1; }; }
3771 ol_with_cyrus_sasl=yes
3774 echo "$as_me:$LINENO: result: done" >&5
3775 echo "${ECHO_T}done" >&6
3823 BUILD_TRANSLUCENT=no
3827 SLAPD_STATIC_OVERLAYS=
3828 SLAPD_DYNAMIC_OVERLAYS=
3830 SLAPD_MODULES_LDFLAGS=
3831 SLAPD_MODULES_CPPFLAGS=
3833 SLAPD_STATIC_BACKENDS=back-ldif
3834 SLAPD_DYNAMIC_BACKENDS=
3860 cat >>confdefs.h <<\_ACEOF
3861 #define HAVE_MKVERSION 1
3869 *-*-aix*) if test -z "$CC" ; then
3870 case "$ol_with_threads" in
3871 auto | yes | posix) ol_aix_threads=yes ;;
3877 if test $ol_aix_threads = yes ; then
3878 if test -z "${CC}" ; then
3879 for ac_prog in cc_r xlc_r cc
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_CC+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_CC="$ac_prog"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 if test -n "$CC"; then
3909 echo "$as_me:$LINENO: result: $CC" >&5
3910 echo "${ECHO_T}$CC" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 test -n "$CC" && break
3920 if test "$CC" = cc ; then
3921 if test $ol_with_threads != auto ; then
3922 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3923 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3924 { (exit 1); exit 1; }; }
3926 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3927 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3933 case ${CC} in cc_r | xlc_r)
3934 ol_with_threads=posix
3935 ol_cv_pthread_create=yes
3940 if test -z "${CC}"; then
3941 for ac_prog in cc gcc
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_prog_CC+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 if test -n "$CC"; then
3951 ac_cv_prog_CC="$CC" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_CC="$ac_prog"
3961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 if test -n "$CC"; then
3971 echo "$as_me:$LINENO: result: $CC" >&5
3972 echo "${ECHO_T}$CC" >&6
3974 echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3978 test -n "$CC" && break
3980 test -n "$CC" || CC="missing"
3983 if test "${CC}" = "missing" ; then
3984 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3985 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3986 { (exit 1); exit 1; }; }
3990 if test -z "${AR}"; then
3991 for ac_prog in ar gar
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994 set dummy $ac_prog; ac_word=$2
3995 echo "$as_me:$LINENO: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_prog_AR+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 if test -n "$AR"; then
4001 ac_cv_prog_AR="$AR" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_AR="$ac_prog"
4011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 if test -n "$AR"; then
4021 echo "$as_me:$LINENO: result: $AR" >&5
4022 echo "${ECHO_T}$AR" >&6
4024 echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4028 test -n "$AR" && break
4030 test -n "$AR" || AR="missing"
4033 if test "${AR}" = "missing" ; then
4034 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4035 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4036 { (exit 1); exit 1; }; }
4044 # Check whether --enable-fast-install or --disable-fast-install was given.
4045 if test "${enable_fast_install+set}" = set; then
4046 enableval="$enable_fast_install"
4047 p=${PACKAGE-default}
4049 yes) enable_fast_install=yes ;;
4050 no) enable_fast_install=no ;;
4052 enable_fast_install=no
4053 # Look at the argument we got. We use all the common list separators.
4054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4055 for pkg in $enableval; do
4057 if test "X$pkg" = "X$p"; then
4058 enable_fast_install=yes
4065 enable_fast_install=yes
4068 DEPDIR="${am__leading_dot}deps"
4070 ac_config_commands="$ac_config_commands depfiles"
4073 am_make=${MAKE-make}
4074 cat > confinc << 'END'
4079 # If we don't find an include directive, just comment out the code.
4080 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4081 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4085 # First try GNU make style include.
4086 echo "include confinc" > confmf
4087 # We grep out `Entering directory' and `Leaving directory'
4088 # messages which can occur if `w' ends up in MAKEFLAGS.
4089 # In particular we don't look at `^make:' because GNU make might
4090 # be invoked under some other name (usually "gmake"), in which
4091 # case it prints its new name instead of `make'.
4092 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4097 # Now try BSD make style include.
4098 if test "$am__include" = "#"; then
4099 echo '.include "confinc"' > confmf
4100 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4101 am__include=.include
4108 echo "$as_me:$LINENO: result: $_am_result" >&5
4109 echo "${ECHO_T}$_am_result" >&6
4110 rm -f confinc confmf
4112 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4113 if test "${enable_dependency_tracking+set}" = set; then
4114 enableval="$enable_dependency_tracking"
4117 if test "x$enable_dependency_tracking" != xno; then
4118 am_depcomp="$ac_aux_dir/depcomp"
4123 if test "x$enable_dependency_tracking" != xno; then
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4141 echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4143 if test "${ac_cv_prog_CC+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 if test -n "$CC"; then
4167 echo "$as_me:$LINENO: result: $CC" >&5
4168 echo "${ECHO_T}$CC" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4175 if test -z "$ac_cv_prog_CC"; then
4177 # Extract the first word of "gcc", so it can be a program name with args.
4178 set dummy gcc; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_ac_ct_CC="gcc"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4204 if test -n "$ac_ct_CC"; then
4205 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4206 echo "${ECHO_T}$ac_ct_CC" >&6
4208 echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4217 if test -z "$CC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}cc; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_CC+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_CC="${ac_tool_prefix}cc"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 if test -n "$CC"; then
4247 echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4255 if test -z "$ac_cv_prog_CC"; then
4257 # Extract the first word of "cc", so it can be a program name with args.
4258 set dummy cc; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$ac_ct_CC"; then
4265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_ac_ct_CC="cc"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4286 echo "${ECHO_T}$ac_ct_CC" >&6
4288 echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4298 if test -z "$CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 if test $ac_prog_rejected = yes; then
4329 # We found a bogon in the path, so make sure we never use it.
4330 set dummy $ac_cv_prog_CC
4332 if test $# != 0; then
4333 # We chose a different compiler from the bogus one.
4334 # However, it has the same basename, so the bogon will be chosen
4335 # first if we set CC to just the basename; use the full file name.
4337 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4343 if test -n "$CC"; then
4344 echo "$as_me:$LINENO: result: $CC" >&5
4345 echo "${ECHO_T}$CC" >&6
4347 echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4352 if test -z "$CC"; then
4353 if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4358 echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4360 if test "${ac_cv_prog_CC+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 if test -n "$CC"; then
4364 ac_cv_prog_CC="$CC" # Let the user override the test.
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 if test -n "$CC"; then
4384 echo "$as_me:$LINENO: result: $CC" >&5
4385 echo "${ECHO_T}$CC" >&6
4387 echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6
4391 test -n "$CC" && break
4394 if test -z "$CC"; then
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 if test -n "$ac_ct_CC"; then
4406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_ac_ct_CC="$ac_prog"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4425 if test -n "$ac_ct_CC"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4427 echo "${ECHO_T}$ac_ct_CC" >&6
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4433 test -n "$ac_ct_CC" && break
4442 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4443 See \`config.log' for more details." >&5
4444 echo "$as_me: error: no acceptable C compiler found in \$PATH
4445 See \`config.log' for more details." >&2;}
4446 { (exit 1); exit 1; }; }
4448 # Provide some information about the compiler.
4449 echo "$as_me:$LINENO:" \
4450 "checking for C compiler version" >&5
4451 ac_compiler=`set X $ac_compile; echo $2`
4452 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4453 (eval $ac_compiler --version </dev/null >&5) 2>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }
4457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4458 (eval $ac_compiler -v </dev/null >&5) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }
4462 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4463 (eval $ac_compiler -V </dev/null >&5) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4483 ac_clean_files_save=$ac_clean_files
4484 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4485 # Try to create an executable without -o first, disregard a.out.
4486 # It will help us diagnose broken compilers, and finding out an intuition
4488 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4489 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4490 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4492 (eval $ac_link_default) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
4496 # Find the output, starting from the most likely. This scheme is
4497 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4500 # Be careful to initialize this variable, since it used to be cached.
4501 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4503 # b.out is created by i960 compilers.
4504 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4506 test -f "$ac_file" || continue
4508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4511 # This is the source file.
4514 # We found the default executable, but exeext='' is most
4518 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4519 # FIXME: I believe we export ac_cv_exeext for Libtool,
4520 # but it would be cool to find out if it's true. Does anybody
4521 # maintain Libtool? --akim.
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: C compiler cannot create executables
4535 See \`config.log' for more details." >&2;}
4536 { (exit 77); exit 77; }; }
4539 ac_exeext=$ac_cv_exeext
4540 echo "$as_me:$LINENO: result: $ac_file" >&5
4541 echo "${ECHO_T}$ac_file" >&6
4543 # Check the compiler produces executables we can run. If not, either
4544 # the compiler is broken, or we cross compile.
4545 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4546 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4547 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4548 # If not cross compiling, check that we can run a simple program.
4549 if test "$cross_compiling" != yes; then
4550 if { ac_try='./$ac_file'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4558 if test "$cross_compiling" = maybe; then
4561 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4562 If you meant to cross compile, use \`--host'.
4563 See \`config.log' for more details." >&5
4564 echo "$as_me: error: cannot run C compiled programs.
4565 If you meant to cross compile, use \`--host'.
4566 See \`config.log' for more details." >&2;}
4567 { (exit 1); exit 1; }; }
4571 echo "$as_me:$LINENO: result: yes" >&5
4572 echo "${ECHO_T}yes" >&6
4574 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4575 ac_clean_files=$ac_clean_files_save
4576 # Check the compiler produces executables we can run. If not, either
4577 # the compiler is broken, or we cross compile.
4578 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4579 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4580 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4581 echo "${ECHO_T}$cross_compiling" >&6
4583 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4584 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4586 (eval $ac_link) 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; then
4590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4592 # work properly (i.e., refer to `conftest.exe'), while it won't with
4594 for ac_file in conftest.exe conftest conftest.*; do
4595 test -f "$ac_file" || continue
4597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4605 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4606 See \`config.log' for more details." >&5
4607 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4608 See \`config.log' for more details." >&2;}
4609 { (exit 1); exit 1; }; }
4612 rm -f conftest$ac_cv_exeext
4613 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4614 echo "${ECHO_T}$ac_cv_exeext" >&6
4616 rm -f conftest.$ac_ext
4617 EXEEXT=$ac_cv_exeext
4619 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4620 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4621 if test "${ac_cv_objext+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4639 rm -f conftest.o conftest.obj
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; then
4645 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4648 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4657 See \`config.log' for more details." >&5
4658 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4659 See \`config.log' for more details." >&2;}
4660 { (exit 1); exit 1; }; }
4663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4665 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4666 echo "${ECHO_T}$ac_cv_objext" >&6
4667 OBJEXT=$ac_cv_objext
4669 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4670 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4671 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 cat >conftest.$ac_ext <<_ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4725 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4726 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4727 GCC=`test $ac_compiler_gnu = yes && echo yes`
4728 ac_test_CFLAGS=${CFLAGS+set}
4729 ac_save_CFLAGS=$CFLAGS
4731 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4732 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4733 if test "${ac_cv_prog_cc_g+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_c_werror_flag"
4761 || test ! -s conftest.err'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4783 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4784 if test "$ac_test_CFLAGS" = set; then
4785 CFLAGS=$ac_save_CFLAGS
4786 elif test $ac_cv_prog_cc_g = yes; then
4787 if test "$GCC" = yes; then
4793 if test "$GCC" = yes; then
4799 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4800 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4801 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 ac_cv_prog_cc_stdc=no
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4814 #include <sys/types.h>
4815 #include <sys/stat.h>
4816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4817 struct buf { int x; };
4818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4819 static char *e (p, i)
4825 static char *f (char * (*g) (char **, int), char **p, ...)
4830 s = g (p, va_arg (v,int));
4835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4836 function prototypes and stuff, but not '\xHH' hex character constants.
4837 These don't provoke an error unfortunately, instead are silently treated
4838 as 'x'. The following induces an error, until -std1 is added to get
4839 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4840 array size at least. It's necessary to write '\x00'==0 to get something
4841 that's true only with -std1. */
4842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4844 int test (int i, double x);
4845 struct s1 {int (*f) (int a);};
4846 struct s2 {int (*f) (double a);};
4847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4858 # Don't try gcc -ansi; that turns off useful extensions and
4859 # breaks some systems' header files.
4860 # AIX -qlanglvl=ansi
4861 # Ultrix and OSF/1 -std1
4862 # HP-UX 10.20 and later -Ae
4863 # HP-UX older versions -Aa -D_HPUX_SOURCE
4864 # SVR4 -Xc -D__EXTENSIONS__
4865 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4867 CC="$ac_save_CC $ac_arg"
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4872 grep -v '^ *+' conftest.er1 >conftest.err
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_cv_prog_cc_stdc=$ac_arg
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4897 rm -f conftest.err conftest.$ac_objext
4899 rm -f conftest.$ac_ext conftest.$ac_objext
4904 case "x$ac_cv_prog_cc_stdc" in
4906 echo "$as_me:$LINENO: result: none needed" >&5
4907 echo "${ECHO_T}none needed" >&6 ;;
4909 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4910 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4911 CC="$CC $ac_cv_prog_cc_stdc" ;;
4914 # Some people use a C++ compiler to compile C. Since we use `exit',
4915 # in C++ we need to declare it. In case someone uses the same compiler
4916 # for both compiling C and C++ we need to have the C++ compiler decide
4917 # the declaration of exit, since it's the most demanding environment.
4918 cat >conftest.$ac_ext <<_ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -z "$ac_c_werror_flag"
4933 || test ! -s conftest.err'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; } &&
4939 { ac_try='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 for ac_declaration in \
4947 'extern "C" void std::exit (int) throw (); using std::exit;' \
4948 'extern "C" void std::exit (int); using std::exit;' \
4949 'extern "C" void exit (int) throw ();' \
4950 'extern "C" void exit (int);' \
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>conftest.er1
5018 grep -v '^ *+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 if test -n "$ac_declaration"; then
5046 echo '#ifdef __cplusplus' >>confdefs.h
5047 echo $ac_declaration >>confdefs.h
5048 echo '#endif' >>confdefs.h
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 depcc="$CC" am_compiler_list=
5065 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5066 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5067 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5071 # We make a subdir and do the tests there. Otherwise we can end up
5072 # making bogus files that we don't know about and never remove. For
5073 # instance it was reported that on HP-UX the gcc test will end up
5074 # making a dummy file named `D' -- because `-MD' means `put the output
5077 # Copy depcomp to subdir because otherwise we won't find it if we're
5078 # using a relative directory.
5079 cp "$am_depcomp" conftest.dir
5081 # We will build objects and dependencies in a subdirectory because
5082 # it helps to detect inapplicable dependency modes. For instance
5083 # both Tru64's cc and ICC support -MD to output dependencies as a
5084 # side effect of compilation, but ICC will put the dependencies in
5085 # the current directory while Tru64 will put them in the object
5089 am_cv_CC_dependencies_compiler_type=none
5090 if test "$am_compiler_list" = ""; then
5091 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5093 for depmode in $am_compiler_list; do
5094 # Setup a source with many dependencies, because some compilers
5095 # like to wrap large dependency lists on column 80 (with \), and
5096 # we should not choose a depcomp mode which is confused by this.
5098 # We need to recreate these files for each test, as the compiler may
5099 # overwrite some of them when testing with obscure command lines.
5100 # This happens at least with the AIX C compiler.
5102 for i in 1 2 3 4 5 6; do
5103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5105 # Solaris 8's {/usr,}/bin/sh.
5106 touch sub/conftst$i.h
5108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5112 # after this tag, mechanisms are not by side-effect, so they'll
5113 # only be used when explicitly requested
5114 if test "x$enable_dependency_tracking" = xyes; then
5122 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5123 # mode. It turns out that the SunPro C++ compiler does not properly
5124 # handle `-M -o', and we need to detect this.
5125 if depmode=$depmode \
5126 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5128 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5129 >/dev/null 2>conftest.err &&
5130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5131 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5133 # icc doesn't choke on unknown options, it will just issue warnings
5134 # or remarks (even with -Werror). So we grep stderr for any message
5135 # that says an option was ignored or not supported.
5136 # When given -MP, icc 7.0 and 7.1 complain thusly:
5137 # icc: Command line warning: ignoring option '-M'; no argument required
5138 # The diagnosis changed in icc 8.0:
5139 # icc: Command line remark: option '-MP' not supported
5140 if (grep 'ignoring option' conftest.err ||
5141 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5142 am_cv_CC_dependencies_compiler_type=$depmode
5151 am_cv_CC_dependencies_compiler_type=none
5155 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5156 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5162 test "x$enable_dependency_tracking" != xno \
5163 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5165 am__fastdepCC_FALSE='#'
5167 am__fastdepCC_TRUE='#'
5168 am__fastdepCC_FALSE=
5172 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5173 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5174 if test "${lt_cv_path_SED+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 # Loop through the user's path and test for sed and gsed.
5178 # Then use that list of sed's as ones to test for truncation.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for lt_ac_prog in sed gsed; do
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5187 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5194 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5195 # along with /bin/sed that truncates output.
5196 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5197 test ! -f $lt_ac_sed && continue
5198 cat /dev/null > conftest.in
5200 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5201 # Check for GNU sed and select it if it is found.
5202 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5203 lt_cv_path_SED=$lt_ac_sed
5207 cat conftest.in conftest.in >conftest.tmp
5208 mv conftest.tmp conftest.in
5209 cp conftest.in conftest.nl
5211 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5212 cmp -s conftest.out conftest.nl || break
5213 # 10000 chars as input seems more than enough
5214 test $lt_ac_count -gt 10 && break
5215 lt_ac_count=`expr $lt_ac_count + 1`
5216 if test $lt_ac_count -gt $lt_ac_max; then
5217 lt_ac_max=$lt_ac_count
5218 lt_cv_path_SED=$lt_ac_sed
5226 echo "$as_me:$LINENO: result: $SED" >&5
5227 echo "${ECHO_T}$SED" >&6
5229 echo "$as_me:$LINENO: checking for egrep" >&5
5230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5231 if test "${ac_cv_prog_egrep+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5235 then ac_cv_prog_egrep='grep -E'
5236 else ac_cv_prog_egrep='egrep'
5239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5241 EGREP=$ac_cv_prog_egrep
5245 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5246 if test "${with_gnu_ld+set}" = set; then
5247 withval="$with_gnu_ld"
5248 test "$withval" = no || with_gnu_ld=yes
5253 if test "$GCC" = yes; then
5254 # Check if gcc -print-prog-name=ld gives a path.
5255 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5256 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5259 # gcc leaves a trailing carriage return which upsets mingw
5260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265 # Accept absolute paths.
5267 re_direlt='/[^/][^/]*/\.\./'
5268 # Canonicalize the pathname of ld
5269 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5270 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5271 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5273 test -z "$LD" && LD="$ac_prog"
5276 # If it fails, then pretend we aren't using GCC.
5280 # If it is relative, then search for the first ld in PATH.
5284 elif test "$with_gnu_ld" = yes; then
5285 echo "$as_me:$LINENO: checking for GNU ld" >&5
5286 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5288 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5289 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5291 if test "${lt_cv_path_LD+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 if test -z "$LD"; then
5295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296 for ac_dir in $PATH; do
5298 test -z "$ac_dir" && ac_dir=.
5299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5300 lt_cv_path_LD="$ac_dir/$ac_prog"
5301 # Check to see if the program is GNU ld. I'd rather use --version,
5302 # but apparently some variants of GNU ld only accept -v.
5303 # Break only if it was the GNU/non-GNU ld that we prefer.
5304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5305 *GNU* | *'with BFD'*)
5306 test "$with_gnu_ld" != no && break
5309 test "$with_gnu_ld" != yes && break
5316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5321 if test -n "$LD"; then
5322 echo "$as_me:$LINENO: result: $LD" >&5
5323 echo "${ECHO_T}$LD" >&6
5325 echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5328 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5329 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5330 { (exit 1); exit 1; }; }
5331 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5332 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5333 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5337 case `$LD -v 2>&1 </dev/null` in
5338 *GNU* | *'with BFD'*)
5339 lt_cv_prog_gnu_ld=yes
5342 lt_cv_prog_gnu_ld=no
5346 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5347 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5348 with_gnu_ld=$lt_cv_prog_gnu_ld
5351 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5352 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5353 if test "${lt_cv_ld_reload_flag+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 lt_cv_ld_reload_flag='-r'
5358 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5359 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5360 reload_flag=$lt_cv_ld_reload_flag
5361 case $reload_flag in
5363 *) reload_flag=" $reload_flag" ;;
5365 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5368 if test "$GCC" = yes; then
5369 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5371 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5376 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5377 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5378 if test "${lt_cv_path_NM+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test -n "$NM"; then
5382 # Let the user override the test.
5385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5388 test -z "$ac_dir" && ac_dir=.
5389 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5390 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5391 # Check to see if the nm accepts a BSD-compat flag.
5392 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5393 # nm: unknown option "B" ignored
5394 # Tru64's nm complains that /dev/null is an invalid object file
5395 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5396 */dev/null* | *'Invalid file or object type'*)
5397 lt_cv_path_NM="$tmp_nm -B"
5401 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5403 lt_cv_path_NM="$tmp_nm -p"
5407 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5408 continue # so that we can try to find one that supports BSD flags
5415 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5418 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5419 echo "${ECHO_T}$lt_cv_path_NM" >&6
5422 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5423 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5425 if test "$LN_S" = "ln -s"; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427 echo "${ECHO_T}yes" >&6
5429 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5430 echo "${ECHO_T}no, using $LN_S" >&6
5433 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5434 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5435 if test "${lt_cv_deplibs_check_method+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 lt_cv_file_magic_cmd='$MAGIC_CMD'
5439 lt_cv_file_magic_test_file=
5440 lt_cv_deplibs_check_method='unknown'
5441 # Need to set the preceding variable on all platforms that support
5442 # interlibrary dependencies.
5443 # 'none' -- dependencies not supported.
5444 # `unknown' -- same as none, but documents that we really don't know.
5445 # 'pass_all' -- all dependencies passed with no checks.
5446 # 'test_compile' -- check by making test program.
5447 # 'file_magic [[regex]]' -- check by looking for files in library path
5448 # which responds to the $file_magic_cmd with a given extended regex.
5449 # If you have `file' or equivalent on your system and you're not sure
5450 # whether `pass_all' will *always* work, you probably want this one.
5454 lt_cv_deplibs_check_method=pass_all
5458 lt_cv_deplibs_check_method=pass_all
5462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5463 lt_cv_file_magic_cmd='/usr/bin/file -L'
5464 lt_cv_file_magic_test_file=/shlib/libc.so
5468 # func_win32_libid is a shell function defined in ltmain.sh
5469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5470 lt_cv_file_magic_cmd='func_win32_libid'
5474 # Base MSYS/MinGW do not provide the 'file' command needed by
5475 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5476 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5477 lt_cv_file_magic_cmd='$OBJDUMP -f'
5480 darwin* | rhapsody*)
5481 lt_cv_deplibs_check_method=pass_all
5484 freebsd* | kfreebsd*-gnu | dragonfly*)
5485 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5488 # Not sure whether the presence of OpenBSD here was a mistake.
5489 # Let's accept both of them until this is cleared up.
5490 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5491 lt_cv_file_magic_cmd=/usr/bin/file
5492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5496 lt_cv_deplibs_check_method=pass_all
5501 lt_cv_deplibs_check_method=pass_all
5504 hpux10.20* | hpux11*)
5505 lt_cv_file_magic_cmd=/usr/bin/file
5508 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5509 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5512 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]'
5513 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5517 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5522 irix5* | irix6* | nonstopux*)
5524 *-32|*"-32 ") libmagic=32-bit;;
5525 *-n32|*"-n32 ") libmagic=N32;;
5526 *-64|*"-64 ") libmagic=64-bit;;
5527 *) libmagic=never-match;;
5529 lt_cv_deplibs_check_method=pass_all
5532 # This must be Linux ELF.
5534 lt_cv_deplibs_check_method=pass_all
5538 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5547 lt_cv_file_magic_cmd=/usr/bin/file
5548 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5552 lt_cv_deplibs_check_method=unknown
5556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5563 osf3* | osf4* | osf5*)
5564 lt_cv_deplibs_check_method=pass_all
5568 lt_cv_deplibs_check_method=pass_all
5572 lt_cv_deplibs_check_method=pass_all
5575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5576 case $host_vendor in
5578 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]'
5579 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5582 lt_cv_deplibs_check_method=pass_all
5585 lt_cv_file_magic_cmd='/bin/file'
5586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5589 lt_cv_file_magic_cmd='/bin/file'
5590 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5591 lt_cv_file_magic_test_file=/lib/libc.so
5594 lt_cv_deplibs_check_method=pass_all
5599 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5600 lt_cv_deplibs_check_method=pass_all
5605 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5606 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5607 file_magic_cmd=$lt_cv_file_magic_cmd
5608 deplibs_check_method=$lt_cv_deplibs_check_method
5609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5614 # If no C compiler was specified, use CC.
5617 # Allow CC to be a program name with arguments.
5621 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5622 if test "${enable_libtool_lock+set}" = set; then
5623 enableval="$enable_libtool_lock"
5626 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5628 # Some flags need to be propagated to the compiler or linker for good
5632 # Find out which ABI we are using.
5633 echo 'int i;' > conftest.$ac_ext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; then
5639 case `/usr/bin/file conftest.$ac_objext` in
5651 # Find out which ABI we are using.
5652 echo '#line 5652 "configure"' > conftest.$ac_ext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; then
5658 if test "$lt_cv_prog_gnu_ld" = yes; then
5659 case `/usr/bin/file conftest.$ac_objext` in
5661 LD="${LD-ld} -melf32bsmip"
5664 LD="${LD-ld} -melf32bmipn32"
5667 LD="${LD-ld} -melf64bmip"
5671 case `/usr/bin/file conftest.$ac_objext` in
5687 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5688 # Find out which ABI we are using.
5689 echo 'int i;' > conftest.$ac_ext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; then
5695 case `/usr/bin/file conftest.o` in
5699 LD="${LD-ld} -m elf_i386"
5701 ppc64-*linux*|powerpc64-*linux*)
5702 LD="${LD-ld} -m elf32ppclinux"
5705 LD="${LD-ld} -m elf_s390"
5708 LD="${LD-ld} -m elf32_sparc"
5715 LD="${LD-ld} -m elf_x86_64"
5717 ppc*-*linux*|powerpc*-*linux*)
5718 LD="${LD-ld} -m elf64ppc"
5721 LD="${LD-ld} -m elf64_s390"
5724 LD="${LD-ld} -m elf64_sparc"
5734 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5735 SAVE_CFLAGS="$CFLAGS"
5736 CFLAGS="$CFLAGS -belf"
5737 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5738 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5739 if test "${lt_cv_cc_needs_belf+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 cat >conftest.$ac_ext <<_ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765 (eval $ac_link) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest$ac_exeext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 lt_cv_cc_needs_belf=yes
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 lt_cv_cc_needs_belf=no
5792 rm -f conftest.err conftest.$ac_objext \
5793 conftest$ac_exeext conftest.$ac_ext
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5802 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5803 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5805 CFLAGS="$SAVE_CFLAGS"
5808 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 if test -n "$DLLTOOL"; then
5818 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 DLLTOOL=$ac_cv_prog_DLLTOOL
5837 if test -n "$DLLTOOL"; then
5838 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5839 echo "${ECHO_T}$DLLTOOL" >&6
5841 echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5846 if test -z "$ac_cv_prog_DLLTOOL"; then
5847 ac_ct_DLLTOOL=$DLLTOOL
5848 # Extract the first word of "dlltool", so it can be a program name with args.
5849 set dummy dlltool; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$ac_ct_DLLTOOL"; then
5856 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5875 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5876 if test -n "$ac_ct_DLLTOOL"; then
5877 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5878 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5880 echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5884 DLLTOOL=$ac_ct_DLLTOOL
5886 DLLTOOL="$ac_cv_prog_DLLTOOL"
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}as; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_AS+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 if test -n "$AS"; then
5898 ac_cv_prog_AS="$AS" # Let the user override the test.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_AS="${ac_tool_prefix}as"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 if test -n "$AS"; then
5918 echo "$as_me:$LINENO: result: $AS" >&5
5919 echo "${ECHO_T}$AS" >&6
5921 echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5926 if test -z "$ac_cv_prog_AS"; then
5928 # Extract the first word of "as", so it can be a program name with args.
5929 set dummy as; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$ac_ct_AS"; then
5936 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_ac_ct_AS="as"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5955 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5956 if test -n "$ac_ct_AS"; then
5957 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5958 echo "${ECHO_T}$ac_ct_AS" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5969 if test -n "$ac_tool_prefix"; then
5970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5972 echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5974 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 if test -n "$OBJDUMP"; then
5978 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 OBJDUMP=$ac_cv_prog_OBJDUMP
5997 if test -n "$OBJDUMP"; then
5998 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5999 echo "${ECHO_T}$OBJDUMP" >&6
6001 echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6006 if test -z "$ac_cv_prog_OBJDUMP"; then
6007 ac_ct_OBJDUMP=$OBJDUMP
6008 # Extract the first word of "objdump", so it can be a program name with args.
6009 set dummy objdump; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 if test -n "$ac_ct_OBJDUMP"; then
6016 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6035 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6036 if test -n "$ac_ct_OBJDUMP"; then
6037 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6038 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6040 echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6044 OBJDUMP=$ac_ct_OBJDUMP
6046 OBJDUMP="$ac_cv_prog_OBJDUMP"
6053 need_locks="$enable_libtool_lock"
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6062 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6063 # On Suns, sometimes $CPP names a directory.
6064 if test -n "$CPP" && test -d "$CPP"; then
6067 if test -z "$CPP"; then
6068 if test "${ac_cv_prog_CPP+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 # Double quotes because CPP needs to be expanded
6072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6075 for ac_c_preproc_warn_flag in '' yes
6077 # Use a header file that comes with gcc, so configuring glibc
6078 # with a fresh cross-compiler works.
6079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 # <limits.h> exists even on freestanding compilers.
6081 # On the NeXT, cc -E runs the code through the compiler's parser,
6082 # not just through cpp. "Syntax error" is here to catch this case.
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6090 # include <limits.h>
6092 # include <assert.h>
6096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } >/dev/null; then
6104 if test -s conftest.err; then
6105 ac_cpp_err=$ac_c_preproc_warn_flag
6106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6113 if test -z "$ac_cpp_err"; then
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 # Broken: fails on valid input.
6122 rm -f conftest.err conftest.$ac_ext
6124 # OK, works on sane cases. Now check whether non-existent headers
6125 # can be detected and how.
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <ac_nonexistent.h>
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev/null; then
6142 if test -s conftest.err; then
6143 ac_cpp_err=$ac_c_preproc_warn_flag
6144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6151 if test -z "$ac_cpp_err"; then
6152 # Broken: success on invalid input.
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 # Passes both tests.
6162 rm -f conftest.err conftest.$ac_ext
6165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6166 rm -f conftest.err conftest.$ac_ext
6167 if $ac_preproc_ok; then
6179 echo "$as_me:$LINENO: result: $CPP" >&5
6180 echo "${ECHO_T}$CPP" >&6
6182 for ac_c_preproc_warn_flag in '' yes
6184 # Use a header file that comes with gcc, so configuring glibc
6185 # with a fresh cross-compiler works.
6186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187 # <limits.h> exists even on freestanding compilers.
6188 # On the NeXT, cc -E runs the code through the compiler's parser,
6189 # not just through cpp. "Syntax error" is here to catch this case.
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6197 # include <limits.h>
6199 # include <assert.h>
6203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } >/dev/null; then
6211 if test -s conftest.err; then
6212 ac_cpp_err=$ac_c_preproc_warn_flag
6213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6220 if test -z "$ac_cpp_err"; then
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 # Broken: fails on valid input.
6229 rm -f conftest.err conftest.$ac_ext
6231 # OK, works on sane cases. Now check whether non-existent headers
6232 # can be detected and how.
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <ac_nonexistent.h>
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } >/dev/null; then
6249 if test -s conftest.err; then
6250 ac_cpp_err=$ac_c_preproc_warn_flag
6251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6258 if test -z "$ac_cpp_err"; then
6259 # Broken: success on invalid input.
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 # Passes both tests.
6269 rm -f conftest.err conftest.$ac_ext
6272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6273 rm -f conftest.err conftest.$ac_ext
6274 if $ac_preproc_ok; then
6277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6278 See \`config.log' for more details." >&5
6279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6280 See \`config.log' for more details." >&2;}
6281 { (exit 1); exit 1; }; }
6285 ac_cpp='$CPP $CPPFLAGS'
6286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6293 if test "${ac_cv_header_stdc+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_cv_header_stdc=yes
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 ac_cv_header_stdc=no
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 if test $ac_cv_header_stdc = yes; then
6347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6348 cat >conftest.$ac_ext <<_ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358 $EGREP "memchr" >/dev/null 2>&1; then
6361 ac_cv_header_stdc=no
6367 if test $ac_cv_header_stdc = yes; then
6368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6379 $EGREP "free" >/dev/null 2>&1; then
6382 ac_cv_header_stdc=no
6388 if test $ac_cv_header_stdc = yes; then
6389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6390 if test "$cross_compiling" = yes; then
6393 cat >conftest.$ac_ext <<_ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6400 #if ((' ' & 0x0FF) == 0x020)
6401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6404 # define ISLOWER(c) \
6405 (('a' <= (c) && (c) <= 'i') \
6406 || ('j' <= (c) && (c) <= 'r') \
6407 || ('s' <= (c) && (c) <= 'z'))
6408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6416 for (i = 0; i < 256; i++)
6417 if (XOR (islower (i), ISLOWER (i))
6418 || toupper (i) != TOUPPER (i))
6423 rm -f conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6436 echo "$as_me: program exited with status $ac_status" >&5
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_cv_header_stdc=no
6443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6448 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6449 if test $ac_cv_header_stdc = yes; then
6451 cat >>confdefs.h <<\_ACEOF
6452 #define STDC_HEADERS 1
6457 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6468 inttypes.h stdint.h unistd.h
6470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471 echo "$as_me:$LINENO: checking for $ac_header" >&5
6472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 cat >conftest.$ac_ext <<_ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 $ac_includes_default
6484 #include <$ac_header>
6486 rm -f conftest.$ac_objext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest.$ac_objext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 eval "$as_ac_Header=yes"
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 eval "$as_ac_Header=no"
6515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520 cat >>confdefs.h <<_ACEOF
6521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530 for ac_header in dlfcn.h
6532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 # Is the header compilable?
6543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6545 cat >conftest.$ac_ext <<_ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6552 #include <$ac_header>
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_c_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_header_compiler=yes
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_header_compiler=no
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6585 echo "${ECHO_T}$ac_header_compiler" >&6
6587 # Is the header present?
6588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 #include <$ac_header>
6598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev/null; then
6606 if test -s conftest.err; then
6607 ac_cpp_err=$ac_c_preproc_warn_flag
6608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6615 if test -z "$ac_cpp_err"; then
6616 ac_header_preproc=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_header_preproc=no
6623 rm -f conftest.err conftest.$ac_ext
6624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6625 echo "${ECHO_T}$ac_header_preproc" >&6
6627 # So? What about this header?
6628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6634 ac_header_preproc=yes
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6651 ## --------------------------------------------- ##
6652 ## Report this to <http://www.openldap.org/its/> ##
6653 ## --------------------------------------------- ##
6656 sed "s/^/$as_me: WARNING: /" >&2
6659 echo "$as_me:$LINENO: checking for $ac_header" >&5
6660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 eval "$as_ac_Header=\$ac_header_preproc"
6666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6671 cat >>confdefs.h <<_ACEOF
6672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6680 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6682 # find the maximum length of command line arguments
6683 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6684 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6685 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 # On DJGPP, this test can blow up pretty badly due to problems in libc
6694 # (any single argument exceeding 2000 bytes causes a buffer overrun
6695 # during glob expansion). Even if it were fixed, the result of this
6696 # check would be larger than it should be.
6697 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6701 # Under GNU Hurd, this test is not required because there is
6702 # no limit to the length of command line arguments.
6703 # Libtool will interpret -1 as no limit whatsoever
6704 lt_cv_sys_max_cmd_len=-1;
6708 # On Win9x/ME, this test blows up -- it succeeds, but takes
6709 # about 5 minutes as the teststring grows exponentially.
6710 # Worse, since 9x/ME are not pre-emptively multitasking,
6711 # you end up with a "frozen" computer, even though with patience
6712 # the test eventually succeeds (with a max line length of 256k).
6713 # Instead, let's just punt: use the minimum linelength reported by
6714 # all of the supported platforms: 8192 (on NT/2K/XP).
6715 lt_cv_sys_max_cmd_len=8192;
6719 # On AmigaOS with pdksh, this test takes hours, literally.
6720 # So we just punt and use a minimum line length of 8192.
6721 lt_cv_sys_max_cmd_len=8192;
6724 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6725 # This has been around since 386BSD, at least. Likely further.
6726 if test -x /sbin/sysctl; then
6727 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6728 elif test -x /usr/sbin/sysctl; then
6729 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6731 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6733 # And add a safety zone
6734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6740 # nice to cause kernel panics so lets avoid the loop below.
6741 # First set a reasonable default.
6742 lt_cv_sys_max_cmd_len=16384
6744 if test -x /sbin/sysconfig; then
6745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6746 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6751 # If test is not a shell built-in, we'll probably end up computing a
6752 # maximum length that is only half of the actual maximum length, but
6754 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6755 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6756 = "XX$teststring") >/dev/null 2>&1 &&
6757 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6758 lt_cv_sys_max_cmd_len=$new_result &&
6759 test $i != 17 # 1/2 MB should be enough
6762 teststring=$teststring$teststring
6765 # Add a significant safety factor because C++ compilers can tack on massive
6766 # amounts of additional arguments before passing them to the linker.
6767 # It appears as though 1/2 is a usable value.
6768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6774 if test -n $lt_cv_sys_max_cmd_len ; then
6775 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6776 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6778 echo "$as_me:$LINENO: result: none" >&5
6779 echo "${ECHO_T}none" >&6
6785 # Check for command to grab the raw symbol name followed by C symbol from nm.
6786 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6787 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6788 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 # These are sane defaults that work on at least a few old systems.
6793 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6795 # Character class describing NM global symbol codes.
6796 symcode='[BCDEGRST]'
6798 # Regexp to match symbols that can be accessed directly from C.
6799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6801 # Transform an extracted symbol line into a proper C declaration
6802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6804 # Transform an extracted symbol line into symbol name and symbol address
6805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6807 # Define system-specific variables.
6812 cygwin* | mingw* | pw32*)
6813 symcode='[ABCDGISTW]'
6815 hpux*) # Its linker distinguishes data from code symbols
6816 if test "$host_cpu" = ia64; then
6817 symcode='[ABCDEGRST]'
6819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6820 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'"
6823 if test "$host_cpu" = ia64; then
6824 symcode='[ABCDGIRSTW]'
6825 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826 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'"
6830 symcode='[BCDEGRST]'
6833 symcode='[BCDEGQRST]'
6843 # Handle CRLF in mingw tool chain
6847 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6851 # If we're using GNU nm, then use its standard symbol codes.
6852 case `$NM -V 2>&1` in
6853 *GNU* | *'with BFD'*)
6854 symcode='[ABCDGIRSTW]' ;;
6857 # Try without a prefix undercore, then with it.
6858 for ac_symprfx in "" "_"; do
6860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6861 symxfrm="\\1 $ac_symprfx\\2 \\2"
6863 # Write the raw and C identifiers.
6864 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6866 # Check to see that the pipe works correctly.
6870 cat > conftest.$ac_ext <<EOF
6875 void nm_test_func(){}
6879 int main(){nm_test_var='a';nm_test_func();return(0);}
6882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6883 (eval $ac_compile) 2>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; then
6887 # Now try to grab the symbols.
6889 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6890 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && test -s "$nlist"; then
6894 # Try sorting and uniquifying the output.
6895 if sort "$nlist" | uniq > "$nlist"T; then
6896 mv -f "$nlist"T "$nlist"
6901 # Make sure that we snagged all the symbols we need.
6902 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6903 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6904 cat <<EOF > conftest.$ac_ext
6910 # Now generate the symbol file.
6911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6913 cat <<EOF >> conftest.$ac_ext
6914 #if defined (__STDC__) && __STDC__
6915 # define lt_ptr_t void *
6917 # define lt_ptr_t char *
6921 /* The mapping between symbol names and symbols. */
6926 lt_preloaded_symbols[] =
6929 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6930 cat <<\EOF >> conftest.$ac_ext
6938 # Now try linking the two files.
6939 mv conftest.$ac_objext conftstm.$ac_objext
6940 lt_save_LIBS="$LIBS"
6941 lt_save_CFLAGS="$CFLAGS"
6942 LIBS="conftstm.$ac_objext"
6943 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6951 LIBS="$lt_save_LIBS"
6952 CFLAGS="$lt_save_CFLAGS"
6954 echo "cannot find nm_test_func in $nlist" >&5
6957 echo "cannot find nm_test_var in $nlist" >&5
6960 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6963 echo "$progname: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6966 rm -f conftest* conftst*
6968 # Do not use the global_symbol_pipe unless it works.
6969 if test "$pipe_works" = yes; then
6972 lt_cv_sys_global_symbol_pipe=
6978 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6979 lt_cv_sys_global_symbol_to_cdecl=
6981 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6982 echo "$as_me:$LINENO: result: failed" >&5
6983 echo "${ECHO_T}failed" >&6
6985 echo "$as_me:$LINENO: result: ok" >&5
6986 echo "${ECHO_T}ok" >&6
6989 echo "$as_me:$LINENO: checking for objdir" >&5
6990 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6991 if test "${lt_cv_objdir+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 rm -f .libs 2>/dev/null
6995 mkdir .libs 2>/dev/null
6996 if test -d .libs; then
6999 # MS-DOS does not allow filenames that begin with a dot.
7002 rmdir .libs 2>/dev/null
7004 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7005 echo "${ECHO_T}$lt_cv_objdir" >&6
7006 objdir=$lt_cv_objdir
7014 # AIX sometimes has problems with the GCC collect2 program. For some
7015 # reason, if we set the COLLECT_NAMES environment variable, the problems
7016 # vanish in a puff of smoke.
7017 if test "X${COLLECT_NAMES+set}" != Xset; then
7019 export COLLECT_NAMES
7024 # Sed substitution that helps us do robust quoting. It backslashifies
7025 # metacharacters that are still active within double-quoted strings.
7026 Xsed='sed -e 1s/^X//'
7027 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7029 # Same as above, but do not quote variable references.
7030 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7032 # Sed substitution to delay expansion of an escaped shell variable in a
7033 # double_quote_subst'ed string.
7034 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7036 # Sed substitution to avoid accidental globbing in evaled expressions
7037 no_glob_subst='s/\*/\\\*/g'
7043 default_ofile=libtool
7044 can_build_shared=yes
7046 # All known linkers require a `.a' archive for static linking (except MSVC,
7047 # which needs '.lib').
7049 ltmain="$ac_aux_dir/ltmain.sh"
7050 ofile="$default_ofile"
7051 with_gnu_ld="$lt_cv_prog_gnu_ld"
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}ar; ac_word=$2
7056 echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7058 if test "${ac_cv_prog_AR+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 if test -n "$AR"; then
7062 ac_cv_prog_AR="$AR" # Let the user override the test.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_AR="${ac_tool_prefix}ar"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 if test -n "$AR"; then
7082 echo "$as_me:$LINENO: result: $AR" >&5
7083 echo "${ECHO_T}$AR" >&6
7085 echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7090 if test -z "$ac_cv_prog_AR"; then
7092 # Extract the first word of "ar", so it can be a program name with args.
7093 set dummy ar; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 if test -n "$ac_ct_AR"; then
7100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_ac_ct_AR="ar"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7120 if test -n "$ac_ct_AR"; then
7121 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7122 echo "${ECHO_T}$ac_ct_AR" >&6
7124 echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -n "$RANLIB"; then
7142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 RANLIB=$ac_cv_prog_RANLIB
7161 if test -n "$RANLIB"; then
7162 echo "$as_me:$LINENO: result: $RANLIB" >&5
7163 echo "${ECHO_T}$RANLIB" >&6
7165 echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7170 if test -z "$ac_cv_prog_RANLIB"; then
7171 ac_ct_RANLIB=$RANLIB
7172 # Extract the first word of "ranlib", so it can be a program name with args.
7173 set dummy ranlib; ac_word=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 if test -n "$ac_ct_RANLIB"; then
7180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_RANLIB="ranlib"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7200 if test -n "$ac_ct_RANLIB"; then
7201 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7204 echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7208 RANLIB=$ac_ct_RANLIB
7210 RANLIB="$ac_cv_prog_RANLIB"
7213 if test -n "$ac_tool_prefix"; then
7214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}strip; ac_word=$2
7216 echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7218 if test "${ac_cv_prog_STRIP+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 if test -n "$STRIP"; then
7222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 STRIP=$ac_cv_prog_STRIP
7241 if test -n "$STRIP"; then
7242 echo "$as_me:$LINENO: result: $STRIP" >&5
7243 echo "${ECHO_T}$STRIP" >&6
7245 echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7250 if test -z "$ac_cv_prog_STRIP"; then
7252 # Extract the first word of "strip", so it can be a program name with args.
7253 set dummy strip; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test -n "$ac_ct_STRIP"; then
7260 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_STRIP="strip"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7279 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7280 if test -n "$ac_ct_STRIP"; then
7281 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7282 echo "${ECHO_T}$ac_ct_STRIP" >&6
7284 echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7290 STRIP="$ac_cv_prog_STRIP"
7295 old_CFLAGS="$CFLAGS"
7297 # Set sane defaults for various variables
7298 test -z "$AR" && AR=ar
7299 test -z "$AR_FLAGS" && AR_FLAGS=cru
7300 test -z "$AS" && AS=as
7301 test -z "$CC" && CC=cc
7302 test -z "$LTCC" && LTCC=$CC
7303 test -z "$DLLTOOL" && DLLTOOL=dlltool
7304 test -z "$LD" && LD=ld
7305 test -z "$LN_S" && LN_S="ln -s"
7306 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7307 test -z "$NM" && NM=nm
7308 test -z "$SED" && SED=sed
7309 test -z "$OBJDUMP" && OBJDUMP=objdump
7310 test -z "$RANLIB" && RANLIB=:
7311 test -z "$STRIP" && STRIP=:
7312 test -z "$ac_objext" && ac_objext=o
7314 # Determine commands to create old-style static archives.
7315 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7316 old_postinstall_cmds='chmod 644 $oldlib'
7317 old_postuninstall_cmds=
7319 if test -n "$RANLIB"; then
7322 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7325 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7328 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7331 for cc_temp in $compiler""; do
7333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7342 # Only perform the check for file, if the check method requires it
7343 case $deplibs_check_method in
7345 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7346 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7347 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7348 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7356 lt_save_MAGIC_CMD="$MAGIC_CMD"
7357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7359 for ac_dir in $ac_dummy; do
7361 test -z "$ac_dir" && ac_dir=.
7362 if test -f $ac_dir/${ac_tool_prefix}file; then
7363 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7364 if test -n "$file_magic_test_file"; then
7365 case $deplibs_check_method in
7367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7370 $EGREP "$file_magic_regex" > /dev/null; then
7375 *** Warning: the command libtool uses to detect shared libraries,
7376 *** $file_magic_cmd, produces output that libtool cannot recognize.
7377 *** The result is that libtool may fail to recognize shared libraries
7378 *** as such. This will affect the creation of libtool libraries that
7379 *** depend on shared libraries, but programs linked with such libtool
7380 *** libraries will work regardless of this problem. Nevertheless, you
7381 *** may want to report the problem to your system manager and/or to
7382 *** bug-libtool@gnu.org
7392 MAGIC_CMD="$lt_save_MAGIC_CMD"
7397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7398 if test -n "$MAGIC_CMD"; then
7399 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7400 echo "${ECHO_T}$MAGIC_CMD" >&6
7402 echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6
7406 if test -z "$lt_cv_path_MAGIC_CMD"; then
7407 if test -n "$ac_tool_prefix"; then
7408 echo "$as_me:$LINENO: checking for file" >&5
7409 echo $ECHO_N "checking for file... $ECHO_C" >&6
7410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7418 lt_save_MAGIC_CMD="$MAGIC_CMD"
7419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7421 for ac_dir in $ac_dummy; do
7423 test -z "$ac_dir" && ac_dir=.
7424 if test -f $ac_dir/file; then
7425 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7426 if test -n "$file_magic_test_file"; then
7427 case $deplibs_check_method in
7429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7432 $EGREP "$file_magic_regex" > /dev/null; then
7437 *** Warning: the command libtool uses to detect shared libraries,
7438 *** $file_magic_cmd, produces output that libtool cannot recognize.
7439 *** The result is that libtool may fail to recognize shared libraries
7440 *** as such. This will affect the creation of libtool libraries that
7441 *** depend on shared libraries, but programs linked with such libtool
7442 *** libraries will work regardless of this problem. Nevertheless, you
7443 *** may want to report the problem to your system manager and/or to
7444 *** bug-libtool@gnu.org
7454 MAGIC_CMD="$lt_save_MAGIC_CMD"
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if test -n "$MAGIC_CMD"; then
7461 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7462 echo "${ECHO_T}$MAGIC_CMD" >&6
7464 echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7478 enable_win32_dll=yes
7480 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7481 if test "${enable_libtool_lock+set}" = set; then
7482 enableval="$enable_libtool_lock"
7485 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7488 # Check whether --with-pic or --without-pic was given.
7489 if test "${with_pic+set}" = set; then
7495 test -z "$pic_mode" && pic_mode=default
7497 # Use C for the default configuration in the libtool script
7501 ac_cpp='$CPP $CPPFLAGS'
7502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507 # Source file extension for C test sources.
7510 # Object file extension for compiled C test sources.
7514 # Code to be used in simple compile tests
7515 lt_simple_compile_test_code="int some_variable = 0;\n"
7517 # Code to be used in simple link tests
7518 lt_simple_link_test_code='int main(){return(0);}\n'
7521 # If no C compiler was specified, use CC.
7524 # Allow CC to be a program name with arguments.
7528 # save warnings/boilerplate of simple test code
7529 ac_outfile=conftest.$ac_objext
7530 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7531 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7532 _lt_compiler_boilerplate=`cat conftest.err`
7535 ac_outfile=conftest.$ac_objext
7536 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7537 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7538 _lt_linker_boilerplate=`cat conftest.err`
7543 # Check for any special shared library compilation flags.
7546 if test "$GCC" = no; then
7549 lt_prog_cc_shlib='-belf'
7553 if test -n "$lt_prog_cc_shlib"; then
7554 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7555 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7556 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7558 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7559 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7560 lt_cv_prog_cc_can_build_shared=no
7566 # Check to make sure the static flag actually works.
7568 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7569 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7570 if test "${lt_prog_compiler_static_works+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 lt_prog_compiler_static_works=no
7574 save_LDFLAGS="$LDFLAGS"
7575 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7576 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7577 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7578 # The linker can only warn and ignore the option if not recognized
7579 # So say no if there are warnings
7580 if test -s conftest.err; then
7581 # Append any errors to the config.log.
7582 cat conftest.err 1>&5
7583 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7584 $SED '/^$/d' conftest.err >conftest.er2
7585 if diff conftest.exp conftest.er2 >/dev/null; then
7586 lt_prog_compiler_static_works=yes
7589 lt_prog_compiler_static_works=yes
7593 LDFLAGS="$save_LDFLAGS"
7596 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7597 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7599 if test x"$lt_prog_compiler_static_works" = xyes; then
7602 lt_prog_compiler_static=
7608 lt_prog_compiler_no_builtin_flag=
7610 if test "$GCC" = yes; then
7611 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7614 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 lt_cv_prog_compiler_rtti_exceptions=no
7620 ac_outfile=conftest.$ac_objext
7621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7622 lt_compiler_flag="-fno-rtti -fno-exceptions"
7623 # Insert the option either (1) after the last *FLAGS variable, or
7624 # (2) before a word containing "conftest.", or (3) at the end.
7625 # Note that $ac_compile itself does not contain backslashes and begins
7626 # with a dollar sign (not a hyphen), so the echo should work correctly.
7627 # The option is referenced via a variable to avoid confusing sed.
7628 lt_compile=`echo "$ac_compile" | $SED \
7629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631 -e 's:$: $lt_compiler_flag:'`
7632 (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633 (eval "$lt_compile" 2>conftest.err)
7635 cat conftest.err >&5
7636 echo "$as_me:7636: \$? = $ac_status" >&5
7637 if (exit $ac_status) && test -s "$ac_outfile"; then
7638 # The compiler can only warn and ignore the option if not recognized
7639 # So say no if there are warnings other than the usual output.
7640 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7641 $SED '/^$/d' conftest.err >conftest.er2
7642 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7643 lt_cv_prog_compiler_rtti_exceptions=yes
7649 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7660 lt_prog_compiler_wl=
7661 lt_prog_compiler_pic=
7662 lt_prog_compiler_static=
7664 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7667 if test "$GCC" = yes; then
7668 lt_prog_compiler_wl='-Wl,'
7669 lt_prog_compiler_static='-static'
7673 # All AIX code is PIC.
7674 if test "$host_cpu" = ia64; then
7675 # AIX 5 now supports IA64 processor
7676 lt_prog_compiler_static='-Bstatic'
7681 # FIXME: we need at least 68020 code to build shared libraries, but
7682 # adding the `-m68020' flag to GCC prevents building anything better,
7684 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7687 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688 # PIC is the default for these OSes.
7691 mingw* | pw32* | os2*)
7692 # This hack is so that the source file can tell whether it is being
7693 # built for inclusion in a dll (and should export symbols for example).
7694 lt_prog_compiler_pic='-DDLL_EXPORT'
7697 darwin* | rhapsody*)
7698 # PIC is the default on this platform
7699 # Common symbols not allowed in MH_DYLIB files
7700 lt_prog_compiler_pic='-fno-common'
7704 # Just because we use GCC doesn't mean we suddenly get shared libraries
7705 # on systems that don't support them.
7706 lt_prog_compiler_can_build_shared=no
7711 if test -d /usr/nec; then
7712 lt_prog_compiler_pic=-Kconform_pic
7717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7724 lt_prog_compiler_pic='-fPIC'
7730 lt_prog_compiler_pic='-fPIC'
7734 # PORTME Check for flag to pass linker flags through the system compiler.
7737 lt_prog_compiler_wl='-Wl,'
7738 if test "$host_cpu" = ia64; then
7739 # AIX 5 now supports IA64 processor
7740 lt_prog_compiler_static='-Bstatic'
7742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7746 # PIC is the default on this platform
7747 # Common symbols not allowed in MH_DYLIB files
7748 case $cc_basename in
7750 lt_prog_compiler_pic='-qnocommon'
7751 lt_prog_compiler_wl='-Wl,'
7756 mingw* | pw32* | os2*)
7757 # This hack is so that the source file can tell whether it is being
7758 # built for inclusion in a dll (and should export symbols for example).
7759 lt_prog_compiler_pic='-DDLL_EXPORT'
7762 hpux9* | hpux10* | hpux11*)
7763 lt_prog_compiler_wl='-Wl,'
7764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7771 lt_prog_compiler_pic='+Z'
7774 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7775 lt_prog_compiler_static='${wl}-a ${wl}archive'
7778 irix5* | irix6* | nonstopux*)
7779 lt_prog_compiler_wl='-Wl,'
7780 # PIC (with -KPIC) is the default.
7781 lt_prog_compiler_static='-non_shared'
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7790 case $cc_basename in
7792 lt_prog_compiler_wl='-Wl,'
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-static'
7796 pgcc* | pgf77* | pgf90* | pgf95*)
7797 # Portland Group compilers (*not* the Pentium gcc compiler,
7798 # which looks to be a dead project)
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-fpic'
7801 lt_prog_compiler_static='-Bstatic'
7804 lt_prog_compiler_wl='-Wl,'
7805 # All Alpha code is PIC.
7806 lt_prog_compiler_static='-non_shared'
7811 osf3* | osf4* | osf5*)
7812 lt_prog_compiler_wl='-Wl,'
7813 # All OSF/1 code is PIC.
7814 lt_prog_compiler_static='-non_shared'
7818 lt_prog_compiler_pic='-Kpic'
7819 lt_prog_compiler_static='-dn'
7823 lt_prog_compiler_pic='-KPIC'
7824 lt_prog_compiler_static='-Bstatic'
7825 case $cc_basename in
7827 lt_prog_compiler_wl='-Qoption ld ';;
7829 lt_prog_compiler_wl='-Wl,';;
7834 lt_prog_compiler_wl='-Qoption ld '
7835 lt_prog_compiler_pic='-PIC'
7836 lt_prog_compiler_static='-Bstatic'
7839 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7840 lt_prog_compiler_wl='-Wl,'
7841 lt_prog_compiler_pic='-KPIC'
7842 lt_prog_compiler_static='-Bstatic'
7846 if test -d /usr/nec ;then
7847 lt_prog_compiler_pic='-Kconform_pic'
7848 lt_prog_compiler_static='-Bstatic'
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_can_build_shared=no
7858 lt_prog_compiler_pic='-pic'
7859 lt_prog_compiler_static='-Bstatic'
7863 lt_prog_compiler_can_build_shared=no
7868 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7869 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7872 # Check to make sure the PIC flag actually works.
7874 if test -n "$lt_prog_compiler_pic"; then
7876 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7877 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7878 if test "${lt_prog_compiler_pic_works+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 lt_prog_compiler_pic_works=no
7882 ac_outfile=conftest.$ac_objext
7883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7884 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7885 # Insert the option either (1) after the last *FLAGS variable, or
7886 # (2) before a word containing "conftest.", or (3) at the end.
7887 # Note that $ac_compile itself does not contain backslashes and begins
7888 # with a dollar sign (not a hyphen), so the echo should work correctly.
7889 # The option is referenced via a variable to avoid confusing sed.
7890 lt_compile=`echo "$ac_compile" | $SED \
7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893 -e 's:$: $lt_compiler_flag:'`
7894 (eval echo "\"\$as_me:7894: $lt_compile\"" >&5)
7895 (eval "$lt_compile" 2>conftest.err)
7897 cat conftest.err >&5
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 if (exit $ac_status) && test -s "$ac_outfile"; then
7900 # The compiler can only warn and ignore the option if not recognized
7901 # So say no if there are warnings other than the usual output.
7902 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7903 $SED '/^$/d' conftest.err >conftest.er2
7904 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7905 lt_prog_compiler_pic_works=yes
7911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7912 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7914 if test x"$lt_prog_compiler_pic_works" = xyes; then
7915 case $lt_prog_compiler_pic in
7917 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7920 lt_prog_compiler_pic=
7921 lt_prog_compiler_can_build_shared=no
7926 # For platforms which do not support PIC, -DPIC is meaningless:
7928 lt_prog_compiler_pic=
7931 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7935 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7937 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 lt_cv_prog_compiler_c_o=no
7941 $rm -r conftest 2>/dev/null
7945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7947 lt_compiler_flag="-o out/conftest2.$ac_objext"
7948 # Insert the option either (1) after the last *FLAGS variable, or
7949 # (2) before a word containing "conftest.", or (3) at the end.
7950 # Note that $ac_compile itself does not contain backslashes and begins
7951 # with a dollar sign (not a hyphen), so the echo should work correctly.
7952 lt_compile=`echo "$ac_compile" | $SED \
7953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7955 -e 's:$: $lt_compiler_flag:'`
7956 (eval echo "\"\$as_me:7956: $lt_compile\"" >&5)
7957 (eval "$lt_compile" 2>out/conftest.err)
7959 cat out/conftest.err >&5
7960 echo "$as_me:7960: \$? = $ac_status" >&5
7961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7963 # The compiler can only warn and ignore the option if not recognized
7964 # So say no if there are warnings
7965 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7966 $SED '/^$/d' out/conftest.err >out/conftest.er2
7967 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7968 lt_cv_prog_compiler_c_o=yes
7973 # SGI C++ compiler will create directory out/ii_files/ for
7974 # template instantiation
7975 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7976 $rm out/* && rmdir out
7982 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7983 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7986 hard_links="nottested"
7987 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7988 # do not overwrite the value of need_locks provided by the user
7989 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7995 ln conftest.a conftest.b 2>&5 || hard_links=no
7996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7997 echo "$as_me:$LINENO: result: $hard_links" >&5
7998 echo "${ECHO_T}$hard_links" >&6
7999 if test "$hard_links" = no; then
8000 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8008 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8009 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8012 allow_undefined_flag=
8013 enable_shared_with_static_runtimes=no
8015 archive_expsym_cmds=
8016 old_archive_From_new_cmds=
8017 old_archive_from_expsyms_cmds=
8018 export_dynamic_flag_spec=
8019 whole_archive_flag_spec=
8020 thread_safe_flag_spec=
8021 hardcode_libdir_flag_spec=
8022 hardcode_libdir_flag_spec_ld=
8023 hardcode_libdir_separator=
8026 hardcode_shlibpath_var=unsupported
8027 link_all_deplibs=unknown
8028 hardcode_automatic=no
8031 always_export_symbols=no
8032 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8033 # include_expsyms should be a list of space-separated symbols to be *always*
8034 # included in the symbol list
8036 # exclude_expsyms can be an extended regexp of symbols to exclude
8037 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8039 # as well as any symbol that contains `d'.
8040 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8042 # platforms (ab)use it in PIC code, but their linkers get confused if
8043 # the symbol is explicitly referenced. Since portable code cannot
8044 # rely on this symbol name, it's probably fine to never include it in
8045 # preloaded symbol tables.
8046 extract_expsyms_cmds=
8047 # Just being paranoid about ensuring that cc_basename is set.
8048 for cc_temp in $compiler""; do
8050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8056 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8059 cygwin* | mingw* | pw32*)
8060 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8061 # When not using gcc, we currently assume that we are using
8062 # Microsoft Visual C++.
8063 if test "$GCC" != yes; then
8073 if test "$with_gnu_ld" = yes; then
8074 # If archive_cmds runs LD, not CC, wlarc should be empty
8077 # Set some defaults for GNU ld with shared library support. These
8078 # are reset later if shared libraries are not supported. Putting them
8079 # here allows them to be overridden if necessary.
8080 runpath_var=LD_RUN_PATH
8081 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8082 export_dynamic_flag_spec='${wl}--export-dynamic'
8083 # ancient GNU ld didn't support --whole-archive et. al.
8084 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8085 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8087 whole_archive_flag_spec=
8089 supports_anon_versioning=no
8090 case `$LD -v 2>/dev/null` in
8091 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8092 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8093 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8094 *\ 2.11.*) ;; # other 2.11 versions
8095 *) supports_anon_versioning=yes ;;
8098 # See if GNU ld supports shared libraries.
8100 aix3* | aix4* | aix5*)
8101 # On AIX/PPC, the GNU linker is very broken
8102 if test "$host_cpu" != ia64; then
8106 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8107 *** to be unable to reliably create shared libraries on AIX.
8108 *** Therefore, libtool is disabling shared libraries support. If you
8109 *** really care for shared libraries, you may want to modify your PATH
8110 *** so that a non-GNU linker is found, and then restart.
8117 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)'
8118 hardcode_libdir_flag_spec='-L$libdir'
8119 hardcode_minus_L=yes
8121 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8122 # that the semantics of dynamic libraries on AmigaOS, at least up
8123 # to version 4, is to share data among multiple programs linked
8124 # with the same dynamic library. Since this doesn't match the
8125 # behavior of shared libraries on other platforms, we can't use
8131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8132 allow_undefined_flag=unsupported
8133 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8134 # support --undefined. This deserves some investigation. FIXME
8135 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141 cygwin* | mingw* | pw32*)
8142 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8143 # as there is no search path for DLLs.
8144 hardcode_libdir_flag_spec='-L$libdir'
8145 allow_undefined_flag=unsupported
8146 always_export_symbols=no
8147 enable_shared_with_static_runtimes=yes
8148 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8150 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8152 # If the export-symbols file already is a .def file (1st line
8153 # is EXPORTS), use it as is; otherwise, prepend...
8154 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8155 cp $export_symbols $output_objdir/$soname.def;
8157 echo EXPORTS > $output_objdir/$soname.def;
8158 cat $export_symbols >> $output_objdir/$soname.def;
8160 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169 case $cc_basename,$host_cpu in
8170 pgcc*) # Portland Group C compiler
8171 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'
8172 tmp_addflag=' $pic_flag'
8174 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8175 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'
8176 tmp_addflag=' $pic_flag -Mnomain' ;;
8177 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8178 tmp_addflag=' -i_dynamic' ;;
8179 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8180 tmp_addflag=' -i_dynamic -nofor_main' ;;
8181 ifc* | ifort*) # Intel Fortran compiler
8182 tmp_addflag=' -nofor_main' ;;
8184 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186 if test $supports_anon_versioning = yes; then
8187 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8189 $echo "local: *; };" >> $output_objdir/$libname.ver~
8190 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8199 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8208 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8213 *** create shared libraries on Solaris systems. Therefore, libtool
8214 *** is disabling shared libraries support. We urge you to upgrade GNU
8215 *** binutils to release 2.9.1 or newer. Another option is to modify
8216 *** your PATH or compiler configuration so that the native linker is
8217 *** used, and then restart.
8220 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8229 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_shlibpath_var=no
8236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8245 if test "$ld_shlibs" = no; then
8247 hardcode_libdir_flag_spec=
8248 export_dynamic_flag_spec=
8249 whole_archive_flag_spec=
8252 # PORTME fill in a description of your system's linker (not GNU ld)
8255 allow_undefined_flag=unsupported
8256 always_export_symbols=yes
8257 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'
8258 # Note: this linker hardcodes the directories in LIBPATH if there
8259 # are no directories specified by -L.
8260 hardcode_minus_L=yes
8261 if test "$GCC" = yes && test -z "$link_static_flag"; then
8262 # Neither direct hardcoding nor static linking is supported with a
8264 hardcode_direct=unsupported
8269 if test "$host_cpu" = ia64; then
8270 # On IA64, the linker does run time linking by default, so we don't
8271 # have to do anything special.
8272 aix_use_runtimelinking=no
8273 exp_sym_flag='-Bexport'
8276 # If we're using GNU nm, then we don't want the "-C" option.
8277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8278 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8279 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'
8281 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'
8283 aix_use_runtimelinking=no
8285 # Test if we are trying to use run time linking or normal
8286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8287 # need to do runtime linking.
8288 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8289 for ld_flag in $LDFLAGS; do
8290 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8291 aix_use_runtimelinking=yes
8297 exp_sym_flag='-bexport'
8298 no_entry_flag='-bnoentry'
8301 # When large executables or shared objects are built, AIX ld can
8302 # have problems creating the table of contents. If linking a library
8303 # or program results in "error TOC overflow" add -mminimal-toc to
8304 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8305 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8309 hardcode_libdir_separator=':'
8310 link_all_deplibs=yes
8312 if test "$GCC" = yes; then
8313 case $host_os in aix4.[012]|aix4.[012].*)
8314 # We only want to do this on AIX 4.2 and lower, the check
8315 # below for broken collect2 doesn't work under 4.3+
8316 collect2name=`${CC} -print-prog-name=collect2`
8317 if test -f "$collect2name" && \
8318 strings "$collect2name" | grep resolve_lib_name >/dev/null
8320 # We have reworked collect2
8323 # We have old collect2
8324 hardcode_direct=unsupported
8325 # It fails to find uninstalled libraries when the uninstalled
8326 # path is not listed in the libpath. Setting hardcode_minus_L
8327 # to unsupported forces relinking
8328 hardcode_minus_L=yes
8329 hardcode_libdir_flag_spec='-L$libdir'
8330 hardcode_libdir_separator=
8333 shared_flag='-shared'
8334 if test "$aix_use_runtimelinking" = yes; then
8335 shared_flag="$shared_flag "'${wl}-G'
8339 if test "$host_cpu" = ia64; then
8340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8341 # chokes on -Wl,-G. The following line is correct:
8344 if test "$aix_use_runtimelinking" = yes; then
8345 shared_flag='${wl}-G'
8347 shared_flag='${wl}-bM:SRE'
8352 # It seems that -bexpall does not export symbols beginning with
8353 # underscore (_), so it is better to generate a list of symbols to export.
8354 always_export_symbols=yes
8355 if test "$aix_use_runtimelinking" = yes; then
8356 # Warning - without using the other runtime loading flags (-brtl),
8357 # -berok will link without error, but may produce a broken library.
8358 allow_undefined_flag='-berok'
8359 # Determine the default libpath from the value encoded in an empty executable.
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377 (eval $ac_link) 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8400 # Check for a 64-bit object if we didn't find anything.
8401 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; }
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8408 rm -f conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413 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"
8415 if test "$host_cpu" = ia64; then
8416 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8417 allow_undefined_flag="-z nodefs"
8418 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"
8420 # Determine the default libpath from the value encoded in an empty executable.
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8438 (eval $ac_link) 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag"
8446 || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest$ac_exeext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8461 # Check for a 64-bit object if we didn't find anything.
8462 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; }
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8469 rm -f conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8474 # Warning - without using the other run time loading flags,
8475 # -berok will link without error, but may produce a broken library.
8476 no_undefined_flag=' ${wl}-bernotok'
8477 allow_undefined_flag=' ${wl}-berok'
8478 # -bexpall does not export symbols beginning with underscore (_)
8479 always_export_symbols=yes
8480 # Exported symbols can be pulled into shared objects from archives
8481 whole_archive_flag_spec=' '
8482 archive_cmds_need_lc=yes
8483 # This is similar to how AIX traditionally builds its shared libraries.
8484 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'
8490 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)'
8491 hardcode_libdir_flag_spec='-L$libdir'
8492 hardcode_minus_L=yes
8493 # see comment about different semantics on the GNU ld section
8498 export_dynamic_flag_spec=-rdynamic
8501 cygwin* | mingw* | pw32*)
8502 # When not using gcc, we currently assume that we are using
8503 # Microsoft Visual C++.
8504 # hardcode_libdir_flag_spec is actually meaningless, as there is
8505 # no search path for DLLs.
8506 hardcode_libdir_flag_spec=' '
8507 allow_undefined_flag=unsupported
8508 # Tell ltmain to make .lib files, not .a files.
8510 # Tell ltmain to make .dll files, not .so files.
8512 # FIXME: Setting linknames here is a bad hack.
8513 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8514 # The linker will automatically build a .lib file if we build a DLL.
8515 old_archive_From_new_cmds='true'
8516 # FIXME: Should let the user specify the lib program.
8517 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8518 fix_srcfile_path='`cygpath -w "$srcfile"`'
8519 enable_shared_with_static_runtimes=yes
8522 darwin* | rhapsody*)
8524 rhapsody* | darwin1.[012])
8525 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8529 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8531 case ${MACOSX_DEPLOYMENT_TARGET} in
8533 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8536 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8542 archive_cmds_need_lc=no
8544 hardcode_automatic=yes
8545 hardcode_shlibpath_var=unsupported
8546 whole_archive_flag_spec=''
8547 link_all_deplibs=yes
8548 if test "$GCC" = yes ; then
8549 output_verbose_link_cmd='echo'
8550 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8551 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8553 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}'
8554 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}'
8556 case $cc_basename in
8558 output_verbose_link_cmd='echo'
8559 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8560 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8562 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}'
8563 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}'
8573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8574 hardcode_libdir_flag_spec='-L$libdir'
8575 hardcode_shlibpath_var=no
8582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8583 # support. Future versions do this automatically, but an explicit c++rt0.o
8584 # does not break anything, and helps significantly (at the cost of a little
8587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8588 hardcode_libdir_flag_spec='-R$libdir'
8590 hardcode_shlibpath_var=no
8593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8597 hardcode_minus_L=yes
8598 hardcode_shlibpath_var=no
8601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8602 freebsd* | kfreebsd*-gnu | dragonfly*)
8603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8604 hardcode_libdir_flag_spec='-R$libdir'
8606 hardcode_shlibpath_var=no
8610 if test "$GCC" = yes; then
8611 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'
8613 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'
8615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8616 hardcode_libdir_separator=:
8619 # hardcode_minus_L: Not really in the search PATH,
8620 # but as the default location of the library.
8621 hardcode_minus_L=yes
8622 export_dynamic_flag_spec='${wl}-E'
8626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8629 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8638 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8645 if test "$with_gnu_ld" = no; then
8648 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8649 hardcode_libdir_flag_spec_ld='+b $libdir'
8650 hardcode_libdir_separator=:
8652 hardcode_shlibpath_var=no
8655 hardcode_libdir_flag_spec='-L$libdir'
8657 hardcode_shlibpath_var=no
8659 # hardcode_minus_L: Not really in the search PATH,
8660 # but as the default location of the library.
8661 hardcode_minus_L=yes
8664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8665 hardcode_libdir_separator=:
8667 export_dynamic_flag_spec='${wl}-E'
8669 # hardcode_minus_L: Not really in the search PATH,
8670 # but as the default location of the library.
8671 hardcode_minus_L=yes
8677 irix5* | irix6* | nonstopux*)
8678 if test "$GCC" = yes; then
8679 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'
8681 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'
8682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685 hardcode_libdir_separator=:
8686 link_all_deplibs=yes
8690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8693 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8695 hardcode_libdir_flag_spec='-R$libdir'
8697 hardcode_shlibpath_var=no
8701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 hardcode_libdir_separator=:
8705 hardcode_shlibpath_var=no
8710 hardcode_shlibpath_var=no
8711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8713 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8715 export_dynamic_flag_spec='${wl}-E'
8718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8720 hardcode_libdir_flag_spec='-R$libdir'
8723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8731 hardcode_libdir_flag_spec='-L$libdir'
8732 hardcode_minus_L=yes
8733 allow_undefined_flag=unsupported
8734 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'
8735 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8739 if test "$GCC" = yes; then
8740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8741 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'
8743 allow_undefined_flag=' -expect_unresolved \*'
8744 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'
8746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747 hardcode_libdir_separator=:
8750 osf4* | osf5*) # as osf3* with the addition of -msym flag
8751 if test "$GCC" = yes; then
8752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8753 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'
8754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 allow_undefined_flag=' -expect_unresolved \*'
8757 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'
8758 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8759 $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'
8761 # Both c and cxx compiler support -rpath directly
8762 hardcode_libdir_flag_spec='-rpath $libdir'
8764 hardcode_libdir_separator=:
8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_shlibpath_var=no
8770 export_dynamic_flag_spec='${wl}-Bexport'
8771 runpath_var=LD_RUN_PATH
8772 hardcode_runpath_var=yes
8776 no_undefined_flag=' -z text'
8777 if test "$GCC" = yes; then
8779 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8781 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8784 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8785 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8786 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8788 hardcode_libdir_flag_spec='-R$libdir'
8789 hardcode_shlibpath_var=no
8791 solaris2.[0-5] | solaris2.[0-5].*) ;;
8793 # The compiler driver will combine linker options so we
8794 # cannot just pass the convience library names through
8795 # without $wl, iff we do not link with $LD.
8796 # Luckily, gcc supports the same syntax we need for Sun Studio.
8797 # Supported since Solaris 2.6 (maybe 2.5.1?)
8800 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8802 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' ;;
8805 link_all_deplibs=yes
8809 if test "x$host_vendor" = xsequent; then
8810 # Use $CC to link under sequent, because it throws in some extra .o
8811 # files that make .init and .fini sections work.
8812 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_minus_L=yes
8819 hardcode_shlibpath_var=no
8823 case $host_vendor in
8825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8826 hardcode_direct=yes # is this really true???
8829 ## LD is ld it makes a PLAMLIB
8830 ## CC just makes a GrossModule.
8831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8832 reload_cmds='$CC -r -o $output$reload_objs'
8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8840 runpath_var='LD_RUN_PATH'
8841 hardcode_shlibpath_var=no
8845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846 hardcode_shlibpath_var=no
8847 export_dynamic_flag_spec='-Bexport'
8851 if test -d /usr/nec; then
8852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_shlibpath_var=no
8854 runpath_var=LD_RUN_PATH
8855 hardcode_runpath_var=yes
8861 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_shlibpath_var=no
8865 hardcode_runpath_var=yes
8866 runpath_var=LD_RUN_PATH
8869 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8870 no_undefined_flag='${wl}-z ${wl}text'
8871 if test "$GCC" = yes; then
8872 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8874 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876 runpath_var='LD_RUN_PATH'
8877 hardcode_shlibpath_var=no
8881 no_undefined_flag=' -z text'
8882 # $CC -shared without GNU ld will not create a library from C++
8883 # object files and a static libstdc++, better avoid it by now
8884 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8886 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8887 hardcode_libdir_flag_spec=
8888 hardcode_shlibpath_var=no
8889 runpath_var='LD_RUN_PATH'
8893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894 hardcode_libdir_flag_spec='-L$libdir'
8895 hardcode_shlibpath_var=no
8904 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8905 echo "${ECHO_T}$ld_shlibs" >&6
8906 test "$ld_shlibs" = no && can_build_shared=no
8908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8909 if test "$GCC" = yes; then
8910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8914 # Do we need to explicitly link libc?
8916 case "x$archive_cmds_need_lc" in
8918 # Assume -lc should be added
8919 archive_cmds_need_lc=yes
8921 if test "$enable_shared" = yes && test "$GCC" = yes; then
8922 case $archive_cmds in
8924 # FIXME: we may have to deal with multi-command sequences.
8927 # Test whether the compiler implicitly links with -lc since on some
8928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8929 # to ld, don't add -lc before -lgcc.
8930 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8936 (eval $ac_compile) 2>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } 2>conftest.err; then
8942 libobjs=conftest.$ac_objext
8944 wl=$lt_prog_compiler_wl
8950 lt_save_allow_undefined_flag=$allow_undefined_flag
8951 allow_undefined_flag=
8952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8953 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }
8958 archive_cmds_need_lc=no
8960 archive_cmds_need_lc=yes
8962 allow_undefined_flag=$lt_save_allow_undefined_flag
8964 cat conftest.err 1>&5
8967 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8968 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8975 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8978 libname_spec='lib$name'
8986 shlibpath_overrides_runpath=unknown
8988 dynamic_linker="$host_os ld.so"
8989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8990 if test "$GCC" = yes; then
8991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8993 # if the path contains ";" then we assume it to be the separator
8994 # otherwise default to the standard path separator (i.e. ":") - it is
8995 # assumed that no part of a normal pathname contains ";" but that should
8996 # okay in the real world where ";" in dirpaths is itself problematic.
8997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9004 need_lib_prefix=unknown
9005 hardcode_into_libs=no
9007 # when you set need_version to no, make sure it does not cause -set_version
9008 # flags to be left without arguments
9009 need_version=unknown
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9015 shlibpath_var=LIBPATH
9017 # AIX 3 has no versioning support, so we append a major version to the name.
9018 soname_spec='${libname}${release}${shared_ext}$major'
9025 hardcode_into_libs=yes
9026 if test "$host_cpu" = ia64; then
9027 # AIX 5 supports IA64
9028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9029 shlibpath_var=LD_LIBRARY_PATH
9031 # With GCC up to 2.95.x, collect2 would create an import file
9032 # for dependence libraries. The import file would start with
9033 # the line `#! .'. This would cause the generated library to
9034 # depend on `.', always an invalid library. This was fixed in
9035 # development snapshots of GCC prior to 3.0.
9037 aix4 | aix4.[01] | aix4.[01].*)
9038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9048 # soname into executable. Probably we can add versioning support to
9049 # collect2, so additional links can be useful in future.
9050 if test "$aix_use_runtimelinking" = yes; then
9051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9052 # instead of lib<name>.a to let people know that these are not
9053 # typical AIX shared libraries.
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 # We preserve .a as extension for shared libraries through AIX4.2
9057 # and later when we are not doing run time linking.
9058 library_names_spec='${libname}${release}.a $libname.a'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LIBPATH
9066 library_names_spec='$libname.ixlibrary $libname.a'
9067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9068 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'
9072 library_names_spec='${libname}${shared_ext}'
9073 dynamic_linker="$host_os ld.so"
9074 shlibpath_var=LIBRARY_PATH
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9086 # the default ld.so.conf also contains /usr/contrib/lib and
9087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9088 # libtool to hard-code these into programs
9091 cygwin* | mingw* | pw32*)
9092 version_type=windows
9097 case $GCC,$host_os in
9098 yes,cygwin* | yes,mingw* | yes,pw32*)
9099 library_names_spec='$libname.dll.a'
9100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9101 postinstall_cmds='base_file=`basename \${file}`~
9102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9103 dldir=$destdir/`dirname \$dlpath`~
9104 test -d \$dldir || mkdir -p \$dldir~
9105 $install_prog $dir/$dlname \$dldir/$dlname~
9106 chmod a+x \$dldir/$dlname'
9107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9108 dlpath=$dir/\$dldll~
9110 shlibpath_overrides_runpath=yes
9114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9119 # MinGW DLLs use traditional 'lib' prefix
9120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9123 # It is most probably a Windows format PATH printed by
9124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9125 # path with ; separators, and with drive letters. We can handle the
9126 # drive letters (cygwin fileutils understands them), so leave them,
9127 # especially as we might pass files found there to a mingw objdump,
9128 # which wouldn't understand a cygwinified path. Ahh.
9129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9135 # pw32 DLLs use 'pw' prefix rather than 'lib'
9136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9145 dynamic_linker='Win32 ld.exe'
9146 # FIXME: first we should search . and the directory the executable is in
9150 darwin* | rhapsody*)
9151 dynamic_linker="$host_os dyld"
9155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9156 soname_spec='${libname}${release}${major}$shared_ext'
9157 shlibpath_overrides_runpath=yes
9158 shlibpath_var=DYLD_LIBRARY_PATH
9159 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9161 if test "$GCC" = yes; then
9162 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"`
9164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
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
9189 shlibpath_overrides_runpath=no
9190 hardcode_into_libs=yes
9191 dynamic_linker='GNU ld.so'
9194 freebsd* | dragonfly*)
9195 # DragonFly does not have aout. When/if they implement a new
9196 # versioning mechanism, adjust this.
9197 if test -x /usr/bin/objformat; then
9198 objformat=`/usr/bin/objformat`
9201 freebsd[123]*) objformat=aout ;;
9205 version_type=freebsd-$objformat
9206 case $version_type in
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9217 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes
9222 freebsd3.[01]* | freebsdelf3.[01]*)
9223 shlibpath_overrides_runpath=yes
9224 hardcode_into_libs=yes
9227 shlibpath_overrides_runpath=no
9228 hardcode_into_libs=yes
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 hardcode_into_libs=yes
9243 hpux9* | hpux10* | hpux11*)
9244 # Give a soname corresponding to the major version so that dld.sl refuses to
9245 # link against other versions.
9252 hardcode_into_libs=yes
9253 dynamic_linker="$host_os dld.so"
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 if test "X$HPUX_IA64_MODE" = X32; then
9259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9267 hardcode_into_libs=yes
9268 dynamic_linker="$host_os dld.sl"
9269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9278 dynamic_linker="$host_os dld.sl"
9279 shlibpath_var=SHLIB_PATH
9280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9286 postinstall_cmds='chmod 555 $lib'
9289 irix5* | irix6* | nonstopux*)
9291 nonstopux*) version_type=nonstopux ;;
9293 if test "$lt_cv_prog_gnu_ld" = yes; then
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 irix5* | nonstopux*)
9308 case $LD in # libtool.m4 will add one of these switches to LD
9309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9310 libsuff= shlibsuff= libmagic=32-bit;;
9311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9312 libsuff=32 shlibsuff=N32 libmagic=N32;;
9313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9314 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9315 *) libsuff= shlibsuff= libmagic=never-match;;
9319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9320 shlibpath_overrides_runpath=no
9321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9323 hardcode_into_libs=yes
9326 # No shared lib support for Linux oldld, aout, or coff.
9327 linux*oldld* | linux*aout* | linux*coff*)
9331 # This must be Linux ELF.
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 shlibpath_overrides_runpath=no
9341 # This implies no fast_install, which is unacceptable.
9342 # Some rework will be needed to allow for fast_install
9343 # before this can be enabled.
9344 hardcode_into_libs=yes
9346 # Append ld.so.conf contents to the search path
9347 if test -f /etc/ld.so.conf; then
9348 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' ' '`
9349 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9352 # We used to test for /lib/ld.so.1 and disable shared libraries on
9353 # powerpc, because MkLinux only supported shared libraries with the
9354 # GNU dynamic linker. Since this was broken with cross compilers,
9355 # most powerpc-linux boxes support dynamic linking these days and
9356 # people can always --disable-shared, the test was removed, and we
9357 # assume the GNU/Linux dynamic linker is in use.
9358 dynamic_linker='GNU/Linux ld.so'
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=no
9369 hardcode_into_libs=yes
9370 dynamic_linker='GNU ld.so'
9377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9380 dynamic_linker='NetBSD (a.out) ld.so'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 dynamic_linker='NetBSD ld.elf_so'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 shlibpath_overrides_runpath=yes
9388 hardcode_into_libs=yes
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 shlibpath_overrides_runpath=yes
9411 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9413 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9414 *) need_version=no ;;
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9421 openbsd2.[89] | openbsd2.[89].*)
9422 shlibpath_overrides_runpath=no
9425 shlibpath_overrides_runpath=yes
9429 shlibpath_overrides_runpath=yes
9434 libname_spec='$name'
9437 library_names_spec='$libname${shared_ext} $libname.a'
9438 dynamic_linker='OS/2 ld.exe'
9439 shlibpath_var=LIBPATH
9442 osf3* | osf4* | osf5*)
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 shlibpath_var=LD_LIBRARY_PATH
9449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457 shlibpath_var=LD_LIBRARY_PATH
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9469 # ldd complains unless libraries are executable
9470 postinstall_cmds='chmod +x $lib'
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9479 if test "$with_gnu_ld" = yes; then
9485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 case $host_vendor in
9492 shlibpath_overrides_runpath=no
9494 export_dynamic_flag_spec='${wl}-Blargedynsym'
9495 runpath_var=LD_RUN_PATH
9503 shlibpath_overrides_runpath=no
9504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9510 if test -d /usr/nec ;then
9512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9513 soname_spec='$libname${shared_ext}.$major'
9514 shlibpath_var=LD_LIBRARY_PATH
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 shlibpath_var=LD_LIBRARY_PATH
9529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9530 echo "${ECHO_T}$dynamic_linker" >&6
9531 test "$dynamic_linker" = no && can_build_shared=no
9533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9536 if test -n "$hardcode_libdir_flag_spec" || \
9537 test -n "$runpath_var" || \
9538 test "X$hardcode_automatic" = "Xyes" ; then
9540 # We can hardcode non-existant directories.
9541 if test "$hardcode_direct" != no &&
9542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9543 # have to relink, otherwise we might link with an installed library
9544 # when we should be linking with a yet-to-be-installed one
9545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9546 test "$hardcode_minus_L" != no; then
9547 # Linking always hardcodes the temporary library directory.
9548 hardcode_action=relink
9550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9551 hardcode_action=immediate
9554 # We cannot hardcode anything, or else we can only hardcode existing
9556 hardcode_action=unsupported
9558 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9559 echo "${ECHO_T}$hardcode_action" >&6
9561 if test "$hardcode_action" = relink; then
9562 # Fast installation is not supported
9563 enable_fast_install=no
9564 elif test "$shlibpath_overrides_runpath" = yes ||
9565 test "$enable_shared" = no; then
9566 # Fast installation is not necessary
9567 enable_fast_install=needless
9572 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9577 echo "$as_me:$LINENO: result: yes" >&5
9578 echo "${ECHO_T}yes" >&6
9580 # FIXME - insert some real tests, host_os isn't really good enough
9583 if test -n "$STRIP" ; then
9584 striplib="$STRIP -x"
9585 echo "$as_me:$LINENO: result: yes" >&5
9586 echo "${ECHO_T}yes" >&6
9588 echo "$as_me:$LINENO: result: no" >&5
9589 echo "${ECHO_T}no" >&6
9593 echo "$as_me:$LINENO: result: no" >&5
9594 echo "${ECHO_T}no" >&6
9599 if test "x$enable_dlopen" != xyes; then
9600 enable_dlopen=unknown
9601 enable_dlopen_self=unknown
9602 enable_dlopen_self_static=unknown
9609 lt_cv_dlopen="load_add_on"
9611 lt_cv_dlopen_self=yes
9615 lt_cv_dlopen="LoadLibrary"
9620 lt_cv_dlopen="dlopen"
9625 # if libdl is installed we need to link against it
9626 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 ac_check_lib_save_LIBS=$LIBS
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any gcc2 internal prototype to avoid an error. */
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_lib_dl_dlopen=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_lib_dl_dlopen=no
9684 rm -f conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9690 if test $ac_cv_lib_dl_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9696 lt_cv_dlopen_self=yes
9703 echo "$as_me:$LINENO: checking for shl_load" >&5
9704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9705 if test "${ac_cv_func_shl_load+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define shl_load innocuous_shl_load
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char shl_load (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9724 # include <limits.h>
9726 # include <assert.h>
9731 /* Override any gcc2 internal prototype to avoid an error. */
9736 /* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9739 /* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9745 char (*f) () = shl_load;
9754 return f != shl_load;
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_func_shl_load=yes
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_func_shl_load=no
9788 rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9793 if test $ac_cv_func_shl_load = yes; then
9794 lt_cv_dlopen="shl_load"
9796 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 ac_check_lib_save_LIBS=$LIBS
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9810 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_lib_dld_shl_load=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_cv_lib_dld_shl_load=no
9854 rm -f conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9860 if test $ac_cv_lib_dld_shl_load = yes; then
9861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9863 echo "$as_me:$LINENO: checking for dlopen" >&5
9864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9865 if test "${ac_cv_func_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9876 #define dlopen innocuous_dlopen
9878 /* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char dlopen (); below.
9880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881 <limits.h> exists even on freestanding compilers. */
9884 # include <limits.h>
9886 # include <assert.h>
9891 /* Override any gcc2 internal prototype to avoid an error. */
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9899 /* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9905 char (*f) () = dlopen;
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest$ac_exeext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_func_dlopen=yes
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ac_cv_func_dlopen=no
9948 rm -f conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9953 if test $ac_cv_func_dlopen = yes; then
9954 lt_cv_dlopen="dlopen"
9956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 ac_check_lib_save_LIBS=$LIBS
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dl_dlopen=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_dl_dlopen=no
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10020 if test $ac_cv_lib_dl_dlopen = yes; then
10021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10023 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-lsvld $LIBS"
10030 cat >conftest.$ac_ext <<_ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10037 /* Override any gcc2 internal prototype to avoid an error. */
10041 /* We use char because int might match the return type of a gcc2
10042 builtin and then its argument prototype would still apply. */
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_lib_svld_dlopen=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_cv_lib_svld_dlopen=no
10081 rm -f conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10087 if test $ac_cv_lib_svld_dlopen = yes; then
10088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10090 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS=$LIBS
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any gcc2 internal prototype to avoid an error. */
10108 /* We use char because int might match the return type of a gcc2
10109 builtin and then its argument prototype would still apply. */
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10121 (eval $ac_link) 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_dld_dld_link=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_dld_dld_link=no
10148 rm -f conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10154 if test $ac_cv_lib_dld_dld_link = yes; then
10155 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10176 if test "x$lt_cv_dlopen" != xno; then
10182 case $lt_cv_dlopen in
10184 save_CPPFLAGS="$CPPFLAGS"
10185 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10187 save_LDFLAGS="$LDFLAGS"
10188 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10191 LIBS="$lt_cv_dlopen_libs $LIBS"
10193 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10195 if test "${lt_cv_dlopen_self+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 if test "$cross_compiling" = yes; then :
10199 lt_cv_dlopen_self=cross
10201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10202 lt_status=$lt_dlunknown
10203 cat > conftest.$ac_ext <<EOF
10204 #line 10204 "configure"
10205 #include "confdefs.h"
10214 # define LT_DLGLOBAL RTLD_GLOBAL
10217 # define LT_DLGLOBAL DL_GLOBAL
10219 # define LT_DLGLOBAL 0
10223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10224 find out it does not work in some platform. */
10225 #ifndef LT_DLLAZY_OR_NOW
10227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10230 # define LT_DLLAZY_OR_NOW DL_LAZY
10233 # define LT_DLLAZY_OR_NOW RTLD_NOW
10236 # define LT_DLLAZY_OR_NOW DL_NOW
10238 # define LT_DLLAZY_OR_NOW 0
10246 extern "C" void exit (int);
10249 void fnord() { int i=42;}
10252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10253 int status = $lt_dlunknown;
10257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10258 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10259 /* dlclose (self); */
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10270 (./conftest; exit; ) >&5 2>/dev/null
10272 case x$lt_status in
10273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10275 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10278 # compilation failed
10279 lt_cv_dlopen_self=no
10286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10289 if test "x$lt_cv_dlopen_self" = xyes; then
10290 LDFLAGS="$LDFLAGS $link_static_flag"
10291 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10293 if test "${lt_cv_dlopen_self_static+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 if test "$cross_compiling" = yes; then :
10297 lt_cv_dlopen_self_static=cross
10299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300 lt_status=$lt_dlunknown
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10302 "configure"
10303 #include "confdefs.h"
10312 # define LT_DLGLOBAL RTLD_GLOBAL
10315 # define LT_DLGLOBAL DL_GLOBAL
10317 # define LT_DLGLOBAL 0
10321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322 find out it does not work in some platform. */
10323 #ifndef LT_DLLAZY_OR_NOW
10325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10328 # define LT_DLLAZY_OR_NOW DL_LAZY
10331 # define LT_DLLAZY_OR_NOW RTLD_NOW
10334 # define LT_DLLAZY_OR_NOW DL_NOW
10336 # define LT_DLLAZY_OR_NOW 0
10344 extern "C" void exit (int);
10347 void fnord() { int i=42;}
10350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351 int status = $lt_dlunknown;
10355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357 /* dlclose (self); */
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10368 (./conftest; exit; ) >&5 2>/dev/null
10370 case x$lt_status in
10371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10373 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10376 # compilation failed
10377 lt_cv_dlopen_self_static=no
10384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10388 CPPFLAGS="$save_CPPFLAGS"
10389 LDFLAGS="$save_LDFLAGS"
10394 case $lt_cv_dlopen_self in
10395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10396 *) enable_dlopen_self=unknown ;;
10399 case $lt_cv_dlopen_self_static in
10400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10401 *) enable_dlopen_self_static=unknown ;;
10406 # Report which librarie types wil actually be built
10407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10410 echo "${ECHO_T}$can_build_shared" >&6
10412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10414 test "$can_build_shared" = "no" && enable_shared=no
10416 # On AIX, shared libraries and static libraries use the same namespace, and
10417 # are all built from PIC.
10420 test "$enable_shared" = yes && enable_static=no
10421 if test -n "$RANLIB"; then
10422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10423 postinstall_cmds='$RANLIB $lib'
10428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10429 test "$enable_shared" = yes && enable_static=no
10433 echo "$as_me:$LINENO: result: $enable_shared" >&5
10434 echo "${ECHO_T}$enable_shared" >&6
10436 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10438 # Make sure either enable_shared or enable_static is yes.
10439 test "$enable_shared" = yes || enable_static=yes
10440 echo "$as_me:$LINENO: result: $enable_static" >&5
10441 echo "${ECHO_T}$enable_static" >&6
10443 # The else clause should only fire when bootstrapping the
10444 # libtool distribution, otherwise you forgot to ship ltmain.sh
10445 # with your package, and you will get complaints that there are
10446 # no rules to generate ltmain.sh.
10447 if test -f "$ltmain"; then
10448 # See if we are running on zsh, and set the options which allow our commands through
10449 # without removal of \ escapes.
10450 if test -n "${ZSH_VERSION+set}" ; then
10451 setopt NO_GLOB_SUBST
10453 # Now quote all the things that may contain metacharacters while being
10454 # careful not to overquote the AC_SUBSTed values. We take copies of the
10455 # variables and quote the copies for generation of the libtool script.
10456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10460 deplibs_check_method reload_flag reload_cmds need_locks \
10461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10462 lt_cv_sys_global_symbol_to_c_name_address \
10463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10464 old_postinstall_cmds old_postuninstall_cmds \
10468 lt_prog_compiler_wl \
10469 lt_prog_compiler_pic \
10470 lt_prog_compiler_static \
10471 lt_prog_compiler_no_builtin_flag \
10472 export_dynamic_flag_spec \
10473 thread_safe_flag_spec \
10474 whole_archive_flag_spec \
10475 enable_shared_with_static_runtimes \
10477 old_archive_from_new_cmds \
10482 compiler_lib_search_path \
10484 archive_expsym_cmds \
10486 postuninstall_cmds \
10487 old_archive_from_expsyms_cmds \
10488 allow_undefined_flag \
10489 no_undefined_flag \
10490 export_symbols_cmds \
10491 hardcode_libdir_flag_spec \
10492 hardcode_libdir_flag_spec_ld \
10493 hardcode_libdir_separator \
10494 hardcode_automatic \
10496 module_expsym_cmds \
10497 lt_cv_prog_compiler_c_o \
10499 include_expsyms; do
10502 old_archive_cmds | \
10503 old_archive_from_new_cmds | \
10505 archive_expsym_cmds | \
10507 module_expsym_cmds | \
10508 old_archive_from_expsyms_cmds | \
10509 export_symbols_cmds | \
10510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10511 postinstall_cmds | postuninstall_cmds | \
10512 old_postinstall_cmds | old_postuninstall_cmds | \
10513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10514 # Double-quote double-evaled strings.
10515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10524 *'\$0 --fallback-echo"')
10525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10529 cfgfile="${ofile}T"
10530 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10532 { echo "$as_me:$LINENO: creating $ofile" >&5
10533 echo "$as_me: creating $ofile" >&6;}
10535 cat <<__EOF__ >> "$cfgfile"
10538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10543 # Free Software Foundation, Inc.
10545 # This file is part of GNU Libtool:
10546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10548 # This program is free software; you can redistribute it and/or modify
10549 # it under the terms of the GNU General Public License as published by
10550 # the Free Software Foundation; either version 2 of the License, or
10551 # (at your option) any later version.
10553 # This program is distributed in the hope that it will be useful, but
10554 # WITHOUT ANY WARRANTY; without even the implied warranty of
10555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10556 # General Public License for more details.
10558 # You should have received a copy of the GNU General Public License
10559 # along with this program; if not, write to the Free Software
10560 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10562 # As a special exception to the GNU General Public License, if you
10563 # distribute this file as part of a program that contains a
10564 # configuration script generated by Autoconf, you may include it under
10565 # the same distribution terms that you use for the rest of that program.
10567 # A sed program that does not truncate output.
10570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10571 Xsed="$SED -e 1s/^X//"
10573 # The HP-UX ksh and POSIX shell print the target directory to stdout
10574 # if CDPATH is set.
10575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10577 # The names of the tagged configurations supported by this script.
10580 # ### BEGIN LIBTOOL CONFIG
10582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10584 # Shell to use when invoking shell scripts.
10587 # Whether or not to build shared libraries.
10588 build_libtool_libs=$enable_shared
10590 # Whether or not to build static libraries.
10591 build_old_libs=$enable_static
10593 # Whether or not to add -lc for building shared libraries.
10594 build_libtool_need_lc=$archive_cmds_need_lc
10596 # Whether or not to disallow shared libs when runtime libs are static
10597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10599 # Whether or not to optimize for fast installation.
10600 fast_install=$enable_fast_install
10603 host_alias=$host_alias
10607 # The build system.
10608 build_alias=$build_alias
10612 # An echo program that does not interpret backslashes.
10617 AR_FLAGS=$lt_AR_FLAGS
10622 # A language-specific compiler.
10625 # Is the compiler the GNU C compiler?
10631 # The linker used to build libraries.
10634 # Whether we need hard or soft links.
10637 # A BSD-compatible nm program.
10640 # A symbol stripping program
10643 # Used to examine libraries when file_magic_cmd begins "file"
10644 MAGIC_CMD=$MAGIC_CMD
10646 # Used on cygwin: DLL creation program.
10649 # Used on cygwin: object dumper.
10652 # Used on cygwin: assembler.
10655 # The name of the directory that contains temporary libtool files.
10658 # How to create reloadable object files.
10659 reload_flag=$lt_reload_flag
10660 reload_cmds=$lt_reload_cmds
10662 # How to pass a linker flag through the compiler.
10663 wl=$lt_lt_prog_compiler_wl
10665 # Object file suffix (normally "o").
10666 objext="$ac_objext"
10668 # Old archive suffix (normally "a").
10671 # Shared library suffix (normally ".so").
10672 shrext_cmds='$shrext_cmds'
10674 # Executable file suffix (normally "").
10677 # Additional compiler flags for building library objects.
10678 pic_flag=$lt_lt_prog_compiler_pic
10681 # What is the maximum length of a command?
10682 max_cmd_len=$lt_cv_sys_max_cmd_len
10684 # Does compiler simultaneously support -c and -o options?
10685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10687 # Must we lock files when doing compilation?
10688 need_locks=$lt_need_locks
10690 # Do we need the lib prefix for modules?
10691 need_lib_prefix=$need_lib_prefix
10693 # Do we need a version for libraries?
10694 need_version=$need_version
10696 # Whether dlopen is supported.
10697 dlopen_support=$enable_dlopen
10699 # Whether dlopen of programs is supported.
10700 dlopen_self=$enable_dlopen_self
10702 # Whether dlopen of statically linked programs is supported.
10703 dlopen_self_static=$enable_dlopen_self_static
10705 # Compiler flag to prevent dynamic linking.
10706 link_static_flag=$lt_lt_prog_compiler_static
10708 # Compiler flag to turn off builtin functions.
10709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10711 # Compiler flag to allow reflexive dlopens.
10712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10714 # Compiler flag to generate shared objects directly from archives.
10715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10717 # Compiler flag to generate thread-safe objects.
10718 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10720 # Library versioning type.
10721 version_type=$version_type
10723 # Format of library name prefix.
10724 libname_spec=$lt_libname_spec
10726 # List of archive names. First name is the real one, the rest are links.
10727 # The last name is the one that the linker finds with -lNAME.
10728 library_names_spec=$lt_library_names_spec
10730 # The coded name of the library, if different from the real name.
10731 soname_spec=$lt_soname_spec
10733 # Commands used to build and install an old-style archive.
10735 old_archive_cmds=$lt_old_archive_cmds
10736 old_postinstall_cmds=$lt_old_postinstall_cmds
10737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10739 # Create an old-style archive from a shared archive.
10740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10742 # Create a temporary old-style archive to link instead of a shared archive.
10743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10745 # Commands used to build and install a shared archive.
10746 archive_cmds=$lt_archive_cmds
10747 archive_expsym_cmds=$lt_archive_expsym_cmds
10748 postinstall_cmds=$lt_postinstall_cmds
10749 postuninstall_cmds=$lt_postuninstall_cmds
10751 # Commands used to build a loadable module (assumed same as above if empty)
10752 module_cmds=$lt_module_cmds
10753 module_expsym_cmds=$lt_module_expsym_cmds
10755 # Commands to strip libraries.
10756 old_striplib=$lt_old_striplib
10757 striplib=$lt_striplib
10759 # Dependencies to place before the objects being linked to create a
10761 predep_objects=$lt_predep_objects
10763 # Dependencies to place after the objects being linked to create a
10765 postdep_objects=$lt_postdep_objects
10767 # Dependencies to place before the objects being linked to create a
10769 predeps=$lt_predeps
10771 # Dependencies to place after the objects being linked to create a
10773 postdeps=$lt_postdeps
10775 # The library search path used internally by the compiler when linking
10776 # a shared library.
10777 compiler_lib_search_path=$lt_compiler_lib_search_path
10779 # Method to check whether dependent libraries are shared objects.
10780 deplibs_check_method=$lt_deplibs_check_method
10782 # Command to use when deplibs_check_method == file_magic.
10783 file_magic_cmd=$lt_file_magic_cmd
10785 # Flag that allows shared libraries with undefined symbols to be built.
10786 allow_undefined_flag=$lt_allow_undefined_flag
10788 # Flag that forces no undefined symbols.
10789 no_undefined_flag=$lt_no_undefined_flag
10791 # Commands used to finish a libtool library installation in a directory.
10792 finish_cmds=$lt_finish_cmds
10794 # Same as above, but a single script fragment to be evaled but not shown.
10795 finish_eval=$lt_finish_eval
10797 # Take the output of nm and produce a listing of raw symbols and C names.
10798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10800 # Transform the output of nm in a proper C declaration
10801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10803 # Transform the output of nm in a C name address pair
10804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10806 # This is the shared library runtime path variable.
10807 runpath_var=$runpath_var
10809 # This is the shared library path variable.
10810 shlibpath_var=$shlibpath_var
10812 # Is shlibpath searched before the hard-coded library search path?
10813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10815 # How to hardcode a shared library path into an executable.
10816 hardcode_action=$hardcode_action
10818 # Whether we should hardcode library paths into libraries.
10819 hardcode_into_libs=$hardcode_into_libs
10821 # Flag to hardcode \$libdir into a binary during linking.
10822 # This must work even if \$libdir does not exist.
10823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10825 # If ld is used when linking, flag to hardcode \$libdir into
10826 # a binary during linking. This must work even if \$libdir does
10828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10830 # Whether we need a single -rpath flag with a separated argument.
10831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10834 # resulting binary.
10835 hardcode_direct=$hardcode_direct
10837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_minus_L=$hardcode_minus_L
10841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10842 # the resulting binary.
10843 hardcode_shlibpath_var=$hardcode_shlibpath_var
10845 # Set to yes if building a shared library automatically hardcodes DIR into the library
10846 # and all subsequent libraries and executables linked against it.
10847 hardcode_automatic=$hardcode_automatic
10849 # Variables whose values should be saved in libtool wrapper scripts and
10850 # restored at relink time.
10851 variables_saved_for_relink="$variables_saved_for_relink"
10853 # Whether libtool must link a program against all its dependency libraries.
10854 link_all_deplibs=$link_all_deplibs
10856 # Compile-time system search path for libraries
10857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10859 # Run-time system search path for libraries
10860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10862 # Fix the shell variable \$srcfile for the compiler.
10863 fix_srcfile_path="$fix_srcfile_path"
10865 # Set to yes if exported symbols are required.
10866 always_export_symbols=$always_export_symbols
10868 # The commands to list exported symbols.
10869 export_symbols_cmds=$lt_export_symbols_cmds
10871 # The commands to extract the exported symbol list from a shared archive.
10872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10874 # Symbols that should not be listed in the preloaded symbols.
10875 exclude_expsyms=$lt_exclude_expsyms
10877 # Symbols that must always be exported.
10878 include_expsyms=$lt_include_expsyms
10880 # ### END LIBTOOL CONFIG
10887 cat <<\EOF >> "$cfgfile"
10889 # AIX sometimes has problems with the GCC collect2 program. For some
10890 # reason, if we set the COLLECT_NAMES environment variable, the problems
10891 # vanish in a puff of smoke.
10892 if test "X${COLLECT_NAMES+set}" != Xset; then
10894 export COLLECT_NAMES
10900 # We use sed instead of cat because bash on DJGPP gets confused if
10901 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10902 # text mode, it properly converts lines to CR/LF. This bash problem
10903 # is reportedly fixed, but why not run on old versions too?
10904 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10906 mv -f "$cfgfile" "$ofile" || \
10907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10911 # If there is no Makefile yet, we rely on a make rule to execute
10912 # `config.status --recheck' to rerun these tests and create the
10913 # libtool script then.
10914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10915 if test -f "$ltmain_in"; then
10916 test -f Makefile && make "$ltmain"
10922 ac_cpp='$CPP $CPPFLAGS'
10923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10930 # Check whether --with-tags or --without-tags was given.
10931 if test "${with_tags+set}" = set; then
10932 withval="$with_tags"
10933 tagnames="$withval"
10936 if test -f "$ltmain" && test -n "$tagnames"; then
10937 if test ! -f "${ofile}"; then
10938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10939 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10942 if test -z "$LTCC"; then
10943 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10944 if test -z "$LTCC"; then
10945 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10946 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10948 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10949 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10953 # Extract list of available tagged configurations in $ofile.
10954 # Note that this assumes the entire list is on one line.
10955 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10958 for tagname in $tagnames; do
10960 # Check whether tagname contains only valid characters
10961 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10963 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10964 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10965 { (exit 1); exit 1; }; }
10969 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10971 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10972 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10973 { (exit 1); exit 1; }; }
10976 # Update the list of available tags.
10977 if test -n "$tagname"; then
10978 echo appending configuration tag \"$tagname\" to $ofile
10982 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10983 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10984 (test "X$CXX" != "Xg++"))) ; then
10992 if test -n "$F77" && test "X$F77" != "Xno"; then
11000 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11011 # Source file extension for RC test sources.
11014 # Object file extension for compiled RC test sources.
11018 # Code to be used in simple compile tests
11019 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11021 # Code to be used in simple link tests
11022 lt_simple_link_test_code="$lt_simple_compile_test_code"
11024 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11026 # If no C compiler was specified, use CC.
11029 # Allow CC to be a program name with arguments.
11033 # save warnings/boilerplate of simple test code
11034 ac_outfile=conftest.$ac_objext
11035 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11037 _lt_compiler_boilerplate=`cat conftest.err`
11040 ac_outfile=conftest.$ac_objext
11041 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11043 _lt_linker_boilerplate=`cat conftest.err`
11047 # Allow CC to be a program name with arguments.
11052 for cc_temp in $compiler""; do
11054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11060 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11062 lt_cv_prog_compiler_c_o_RC=yes
11064 # The else clause should only fire when bootstrapping the
11065 # libtool distribution, otherwise you forgot to ship ltmain.sh
11066 # with your package, and you will get complaints that there are
11067 # no rules to generate ltmain.sh.
11068 if test -f "$ltmain"; then
11069 # See if we are running on zsh, and set the options which allow our commands through
11070 # without removal of \ escapes.
11071 if test -n "${ZSH_VERSION+set}" ; then
11072 setopt NO_GLOB_SUBST
11074 # Now quote all the things that may contain metacharacters while being
11075 # careful not to overquote the AC_SUBSTed values. We take copies of the
11076 # variables and quote the copies for generation of the libtool script.
11077 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11079 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11080 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11081 deplibs_check_method reload_flag reload_cmds need_locks \
11082 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11083 lt_cv_sys_global_symbol_to_c_name_address \
11084 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11085 old_postinstall_cmds old_postuninstall_cmds \
11089 lt_prog_compiler_wl_RC \
11090 lt_prog_compiler_pic_RC \
11091 lt_prog_compiler_static_RC \
11092 lt_prog_compiler_no_builtin_flag_RC \
11093 export_dynamic_flag_spec_RC \
11094 thread_safe_flag_spec_RC \
11095 whole_archive_flag_spec_RC \
11096 enable_shared_with_static_runtimes_RC \
11097 old_archive_cmds_RC \
11098 old_archive_from_new_cmds_RC \
11099 predep_objects_RC \
11100 postdep_objects_RC \
11103 compiler_lib_search_path_RC \
11105 archive_expsym_cmds_RC \
11106 postinstall_cmds_RC \
11107 postuninstall_cmds_RC \
11108 old_archive_from_expsyms_cmds_RC \
11109 allow_undefined_flag_RC \
11110 no_undefined_flag_RC \
11111 export_symbols_cmds_RC \
11112 hardcode_libdir_flag_spec_RC \
11113 hardcode_libdir_flag_spec_ld_RC \
11114 hardcode_libdir_separator_RC \
11115 hardcode_automatic_RC \
11117 module_expsym_cmds_RC \
11118 lt_cv_prog_compiler_c_o_RC \
11119 exclude_expsyms_RC \
11120 include_expsyms_RC; do
11123 old_archive_cmds_RC | \
11124 old_archive_from_new_cmds_RC | \
11125 archive_cmds_RC | \
11126 archive_expsym_cmds_RC | \
11128 module_expsym_cmds_RC | \
11129 old_archive_from_expsyms_cmds_RC | \
11130 export_symbols_cmds_RC | \
11131 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11132 postinstall_cmds | postuninstall_cmds | \
11133 old_postinstall_cmds | old_postuninstall_cmds | \
11134 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11135 # Double-quote double-evaled strings.
11136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11145 *'\$0 --fallback-echo"')
11146 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11152 cat <<__EOF__ >> "$cfgfile"
11153 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11157 # Shell to use when invoking shell scripts.
11160 # Whether or not to build shared libraries.
11161 build_libtool_libs=$enable_shared
11163 # Whether or not to build static libraries.
11164 build_old_libs=$enable_static
11166 # Whether or not to add -lc for building shared libraries.
11167 build_libtool_need_lc=$archive_cmds_need_lc_RC
11169 # Whether or not to disallow shared libs when runtime libs are static
11170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11172 # Whether or not to optimize for fast installation.
11173 fast_install=$enable_fast_install
11176 host_alias=$host_alias
11180 # The build system.
11181 build_alias=$build_alias
11185 # An echo program that does not interpret backslashes.
11190 AR_FLAGS=$lt_AR_FLAGS
11195 # A language-specific compiler.
11198 # Is the compiler the GNU C compiler?
11204 # The linker used to build libraries.
11207 # Whether we need hard or soft links.
11210 # A BSD-compatible nm program.
11213 # A symbol stripping program
11216 # Used to examine libraries when file_magic_cmd begins "file"
11217 MAGIC_CMD=$MAGIC_CMD
11219 # Used on cygwin: DLL creation program.
11222 # Used on cygwin: object dumper.
11225 # Used on cygwin: assembler.
11228 # The name of the directory that contains temporary libtool files.
11231 # How to create reloadable object files.
11232 reload_flag=$lt_reload_flag
11233 reload_cmds=$lt_reload_cmds
11235 # How to pass a linker flag through the compiler.
11236 wl=$lt_lt_prog_compiler_wl_RC
11238 # Object file suffix (normally "o").
11239 objext="$ac_objext"
11241 # Old archive suffix (normally "a").
11244 # Shared library suffix (normally ".so").
11245 shrext_cmds='$shrext_cmds'
11247 # Executable file suffix (normally "").
11250 # Additional compiler flags for building library objects.
11251 pic_flag=$lt_lt_prog_compiler_pic_RC
11254 # What is the maximum length of a command?
11255 max_cmd_len=$lt_cv_sys_max_cmd_len
11257 # Does compiler simultaneously support -c and -o options?
11258 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11260 # Must we lock files when doing compilation?
11261 need_locks=$lt_need_locks
11263 # Do we need the lib prefix for modules?
11264 need_lib_prefix=$need_lib_prefix
11266 # Do we need a version for libraries?
11267 need_version=$need_version
11269 # Whether dlopen is supported.
11270 dlopen_support=$enable_dlopen
11272 # Whether dlopen of programs is supported.
11273 dlopen_self=$enable_dlopen_self
11275 # Whether dlopen of statically linked programs is supported.
11276 dlopen_self_static=$enable_dlopen_self_static
11278 # Compiler flag to prevent dynamic linking.
11279 link_static_flag=$lt_lt_prog_compiler_static_RC
11281 # Compiler flag to turn off builtin functions.
11282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11284 # Compiler flag to allow reflexive dlopens.
11285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11287 # Compiler flag to generate shared objects directly from archives.
11288 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11290 # Compiler flag to generate thread-safe objects.
11291 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11293 # Library versioning type.
11294 version_type=$version_type
11296 # Format of library name prefix.
11297 libname_spec=$lt_libname_spec
11299 # List of archive names. First name is the real one, the rest are links.
11300 # The last name is the one that the linker finds with -lNAME.
11301 library_names_spec=$lt_library_names_spec
11303 # The coded name of the library, if different from the real name.
11304 soname_spec=$lt_soname_spec
11306 # Commands used to build and install an old-style archive.
11308 old_archive_cmds=$lt_old_archive_cmds_RC
11309 old_postinstall_cmds=$lt_old_postinstall_cmds
11310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11312 # Create an old-style archive from a shared archive.
11313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11315 # Create a temporary old-style archive to link instead of a shared archive.
11316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11318 # Commands used to build and install a shared archive.
11319 archive_cmds=$lt_archive_cmds_RC
11320 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11321 postinstall_cmds=$lt_postinstall_cmds
11322 postuninstall_cmds=$lt_postuninstall_cmds
11324 # Commands used to build a loadable module (assumed same as above if empty)
11325 module_cmds=$lt_module_cmds_RC
11326 module_expsym_cmds=$lt_module_expsym_cmds_RC
11328 # Commands to strip libraries.
11329 old_striplib=$lt_old_striplib
11330 striplib=$lt_striplib
11332 # Dependencies to place before the objects being linked to create a
11334 predep_objects=$lt_predep_objects_RC
11336 # Dependencies to place after the objects being linked to create a
11338 postdep_objects=$lt_postdep_objects_RC
11340 # Dependencies to place before the objects being linked to create a
11342 predeps=$lt_predeps_RC
11344 # Dependencies to place after the objects being linked to create a
11346 postdeps=$lt_postdeps_RC
11348 # The library search path used internally by the compiler when linking
11349 # a shared library.
11350 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11352 # Method to check whether dependent libraries are shared objects.
11353 deplibs_check_method=$lt_deplibs_check_method
11355 # Command to use when deplibs_check_method == file_magic.
11356 file_magic_cmd=$lt_file_magic_cmd
11358 # Flag that allows shared libraries with undefined symbols to be built.
11359 allow_undefined_flag=$lt_allow_undefined_flag_RC
11361 # Flag that forces no undefined symbols.
11362 no_undefined_flag=$lt_no_undefined_flag_RC
11364 # Commands used to finish a libtool library installation in a directory.
11365 finish_cmds=$lt_finish_cmds
11367 # Same as above, but a single script fragment to be evaled but not shown.
11368 finish_eval=$lt_finish_eval
11370 # Take the output of nm and produce a listing of raw symbols and C names.
11371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11373 # Transform the output of nm in a proper C declaration
11374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11376 # Transform the output of nm in a C name address pair
11377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11379 # This is the shared library runtime path variable.
11380 runpath_var=$runpath_var
11382 # This is the shared library path variable.
11383 shlibpath_var=$shlibpath_var
11385 # Is shlibpath searched before the hard-coded library search path?
11386 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11388 # How to hardcode a shared library path into an executable.
11389 hardcode_action=$hardcode_action_RC
11391 # Whether we should hardcode library paths into libraries.
11392 hardcode_into_libs=$hardcode_into_libs
11394 # Flag to hardcode \$libdir into a binary during linking.
11395 # This must work even if \$libdir does not exist.
11396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11398 # If ld is used when linking, flag to hardcode \$libdir into
11399 # a binary during linking. This must work even if \$libdir does
11401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11403 # Whether we need a single -rpath flag with a separated argument.
11404 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11406 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11407 # resulting binary.
11408 hardcode_direct=$hardcode_direct_RC
11410 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11411 # resulting binary.
11412 hardcode_minus_L=$hardcode_minus_L_RC
11414 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11415 # the resulting binary.
11416 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11418 # Set to yes if building a shared library automatically hardcodes DIR into the library
11419 # and all subsequent libraries and executables linked against it.
11420 hardcode_automatic=$hardcode_automatic_RC
11422 # Variables whose values should be saved in libtool wrapper scripts and
11423 # restored at relink time.
11424 variables_saved_for_relink="$variables_saved_for_relink"
11426 # Whether libtool must link a program against all its dependency libraries.
11427 link_all_deplibs=$link_all_deplibs_RC
11429 # Compile-time system search path for libraries
11430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11432 # Run-time system search path for libraries
11433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11435 # Fix the shell variable \$srcfile for the compiler.
11436 fix_srcfile_path="$fix_srcfile_path_RC"
11438 # Set to yes if exported symbols are required.
11439 always_export_symbols=$always_export_symbols_RC
11441 # The commands to list exported symbols.
11442 export_symbols_cmds=$lt_export_symbols_cmds_RC
11444 # The commands to extract the exported symbol list from a shared archive.
11445 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11447 # Symbols that should not be listed in the preloaded symbols.
11448 exclude_expsyms=$lt_exclude_expsyms_RC
11450 # Symbols that must always be exported.
11451 include_expsyms=$lt_include_expsyms_RC
11453 # ### END LIBTOOL TAG CONFIG: $tagname
11459 # If there is no Makefile yet, we rely on a make rule to execute
11460 # `config.status --recheck' to rerun these tests and create the
11461 # libtool script then.
11462 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11463 if test -f "$ltmain_in"; then
11464 test -f Makefile && make "$ltmain"
11470 ac_cpp='$CPP $CPPFLAGS'
11471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11480 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11481 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11482 { (exit 1); exit 1; }; }
11486 # Append the new tag name to the list of available tags.
11487 if test -n "$tagname" ; then
11488 available_tags="$available_tags $tagname"
11494 # Now substitute the updated list of available tags.
11495 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11496 mv "${ofile}T" "$ofile"
11500 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11501 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11502 { (exit 1); exit 1; }; }
11508 # This can be used to rebuild libtool when needed
11509 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11511 # Always use our own libtool.
11512 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11514 # Prevent multiple expansion
11526 if test $ol_enable_perl != no ; then
11527 # Extract the first word of "perl", so it can be a program name with args.
11528 set dummy perl; ac_word=$2
11529 echo "$as_me:$LINENO: checking for $ac_word" >&5
11530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11531 if test "${ac_cv_path_PERLBIN+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11546 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11557 PERLBIN=$ac_cv_path_PERLBIN
11559 if test -n "$PERLBIN"; then
11560 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11561 echo "${ECHO_T}$PERLBIN" >&6
11563 echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6
11568 if test "no$PERLBIN" = "no" ; then
11569 if test $ol_enable_perl = yes ; then
11570 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11571 echo "$as_me: error: could not locate perl" >&2;}
11572 { (exit 1); exit 1; }; }
11576 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11577 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11579 if test x"$ol_enable_perl" = "xyes" ; then
11580 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11582 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11589 ac_cpp='$CPP $CPPFLAGS'
11590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11593 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11594 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11595 # On Suns, sometimes $CPP names a directory.
11596 if test -n "$CPP" && test -d "$CPP"; then
11599 if test -z "$CPP"; then
11600 if test "${ac_cv_prog_CPP+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 # Double quotes because CPP needs to be expanded
11604 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11606 ac_preproc_ok=false
11607 for ac_c_preproc_warn_flag in '' yes
11609 # Use a header file that comes with gcc, so configuring glibc
11610 # with a fresh cross-compiler works.
11611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 # <limits.h> exists even on freestanding compilers.
11613 # On the NeXT, cc -E runs the code through the compiler's parser,
11614 # not just through cpp. "Syntax error" is here to catch this case.
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11622 # include <limits.h>
11624 # include <assert.h>
11628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11631 grep -v '^ *+' conftest.er1 >conftest.err
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } >/dev/null; then
11636 if test -s conftest.err; then
11637 ac_cpp_err=$ac_c_preproc_warn_flag
11638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11645 if test -z "$ac_cpp_err"; then
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11651 # Broken: fails on valid input.
11654 rm -f conftest.err conftest.$ac_ext
11656 # OK, works on sane cases. Now check whether non-existent headers
11657 # can be detected and how.
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 #include <ac_nonexistent.h>
11666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } >/dev/null; then
11674 if test -s conftest.err; then
11675 ac_cpp_err=$ac_c_preproc_warn_flag
11676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11683 if test -z "$ac_cpp_err"; then
11684 # Broken: success on invalid input.
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 # Passes both tests.
11694 rm -f conftest.err conftest.$ac_ext
11697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11698 rm -f conftest.err conftest.$ac_ext
11699 if $ac_preproc_ok; then
11704 ac_cv_prog_CPP=$CPP
11707 CPP=$ac_cv_prog_CPP
11709 ac_cv_prog_CPP=$CPP
11711 echo "$as_me:$LINENO: result: $CPP" >&5
11712 echo "${ECHO_T}$CPP" >&6
11713 ac_preproc_ok=false
11714 for ac_c_preproc_warn_flag in '' yes
11716 # Use a header file that comes with gcc, so configuring glibc
11717 # with a fresh cross-compiler works.
11718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11719 # <limits.h> exists even on freestanding compilers.
11720 # On the NeXT, cc -E runs the code through the compiler's parser,
11721 # not just through cpp. "Syntax error" is here to catch this case.
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 # include <limits.h>
11731 # include <assert.h>
11735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11738 grep -v '^ *+' conftest.er1 >conftest.err
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } >/dev/null; then
11743 if test -s conftest.err; then
11744 ac_cpp_err=$ac_c_preproc_warn_flag
11745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11752 if test -z "$ac_cpp_err"; then
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 # Broken: fails on valid input.
11761 rm -f conftest.err conftest.$ac_ext
11763 # OK, works on sane cases. Now check whether non-existent headers
11764 # can be detected and how.
11765 cat >conftest.$ac_ext <<_ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 #include <ac_nonexistent.h>
11773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } >/dev/null; then
11781 if test -s conftest.err; then
11782 ac_cpp_err=$ac_c_preproc_warn_flag
11783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11790 if test -z "$ac_cpp_err"; then
11791 # Broken: success on invalid input.
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 # Passes both tests.
11801 rm -f conftest.err conftest.$ac_ext
11804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11805 rm -f conftest.err conftest.$ac_ext
11806 if $ac_preproc_ok; then
11809 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11810 See \`config.log' for more details." >&5
11811 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11812 See \`config.log' for more details." >&2;}
11813 { (exit 1); exit 1; }; }
11817 ac_cpp='$CPP $CPPFLAGS'
11818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11824 *mingw32* ) ac_cv_mingw32=yes ;;
11825 *cygwin* ) ac_cv_cygwin=yes ;;
11831 cat >>confdefs.h <<_ACEOF
11832 #define EXEEXT "${EXEEXT}"
11836 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11837 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11838 if test "${ac_cv_lib_be_be_app+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-lbe -lroot -lnet $LIBS"
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11850 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867 (eval $ac_link) 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag"
11875 || test ! -s conftest.err'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try='test -s conftest$ac_exeext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_cv_lib_be_be_app=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_cv_lib_be_be_app=no
11894 rm -f conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11898 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11899 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11900 if test $ac_cv_lib_be_be_app = yes; then
11901 LIBS="$LIBS -lbe -lroot -lnet"
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912 if test -n "$ac_tool_prefix"; then
11913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11915 echo "$as_me:$LINENO: checking for $ac_word" >&5
11916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11917 if test "${ac_cv_prog_CC+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 if test -n "$CC"; then
11921 ac_cv_prog_CC="$CC" # Let the user override the test.
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 if test -n "$CC"; then
11941 echo "$as_me:$LINENO: result: $CC" >&5
11942 echo "${ECHO_T}$CC" >&6
11944 echo "$as_me:$LINENO: result: no" >&5
11945 echo "${ECHO_T}no" >&6
11949 if test -z "$ac_cv_prog_CC"; then
11951 # Extract the first word of "gcc", so it can be a program name with args.
11952 set dummy gcc; ac_word=$2
11953 echo "$as_me:$LINENO: checking for $ac_word" >&5
11954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 if test -n "$ac_ct_CC"; then
11959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968 ac_cv_prog_ac_ct_CC="gcc"
11969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11978 if test -n "$ac_ct_CC"; then
11979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11980 echo "${ECHO_T}$ac_ct_CC" >&6
11982 echo "$as_me:$LINENO: result: no" >&5
11983 echo "${ECHO_T}no" >&6
11988 CC="$ac_cv_prog_CC"
11991 if test -z "$CC"; then
11992 if test -n "$ac_tool_prefix"; then
11993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11994 set dummy ${ac_tool_prefix}cc; ac_word=$2
11995 echo "$as_me:$LINENO: checking for $ac_word" >&5
11996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11997 if test "${ac_cv_prog_CC+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 if test -n "$CC"; then
12001 ac_cv_prog_CC="$CC" # Let the user override the test.
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010 ac_cv_prog_CC="${ac_tool_prefix}cc"
12011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 if test -n "$CC"; then
12021 echo "$as_me:$LINENO: result: $CC" >&5
12022 echo "${ECHO_T}$CC" >&6
12024 echo "$as_me:$LINENO: result: no" >&5
12025 echo "${ECHO_T}no" >&6
12029 if test -z "$ac_cv_prog_CC"; then
12031 # Extract the first word of "cc", so it can be a program name with args.
12032 set dummy cc; ac_word=$2
12033 echo "$as_me:$LINENO: checking for $ac_word" >&5
12034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 if test -n "$ac_ct_CC"; then
12039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_ac_ct_CC="cc"
12049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12058 if test -n "$ac_ct_CC"; then
12059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12060 echo "${ECHO_T}$ac_ct_CC" >&6
12062 echo "$as_me:$LINENO: result: no" >&5
12063 echo "${ECHO_T}no" >&6
12068 CC="$ac_cv_prog_CC"
12072 if test -z "$CC"; then
12073 # Extract the first word of "cc", so it can be a program name with args.
12074 set dummy cc; ac_word=$2
12075 echo "$as_me:$LINENO: checking for $ac_word" >&5
12076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12077 if test "${ac_cv_prog_CC+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 if test -n "$CC"; then
12081 ac_cv_prog_CC="$CC" # Let the user override the test.
12083 ac_prog_rejected=no
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12092 ac_prog_rejected=yes
12096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 if test $ac_prog_rejected = yes; then
12103 # We found a bogon in the path, so make sure we never use it.
12104 set dummy $ac_cv_prog_CC
12106 if test $# != 0; then
12107 # We chose a different compiler from the bogus one.
12108 # However, it has the same basename, so the bogon will be chosen
12109 # first if we set CC to just the basename; use the full file name.
12111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12117 if test -n "$CC"; then
12118 echo "$as_me:$LINENO: result: $CC" >&5
12119 echo "${ECHO_T}$CC" >&6
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12126 if test -z "$CC"; then
12127 if test -n "$ac_tool_prefix"; then
12130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12132 echo "$as_me:$LINENO: checking for $ac_word" >&5
12133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12134 if test "${ac_cv_prog_CC+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 if test -n "$CC"; then
12138 ac_cv_prog_CC="$CC" # Let the user override the test.
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 if test -n "$CC"; then
12158 echo "$as_me:$LINENO: result: $CC" >&5
12159 echo "${ECHO_T}$CC" >&6
12161 echo "$as_me:$LINENO: result: no" >&5
12162 echo "${ECHO_T}no" >&6
12165 test -n "$CC" && break
12168 if test -z "$CC"; then
12172 # Extract the first word of "$ac_prog", so it can be a program name with args.
12173 set dummy $ac_prog; ac_word=$2
12174 echo "$as_me:$LINENO: checking for $ac_word" >&5
12175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 if test -n "$ac_ct_CC"; then
12180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189 ac_cv_prog_ac_ct_CC="$ac_prog"
12190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12199 if test -n "$ac_ct_CC"; then
12200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12201 echo "${ECHO_T}$ac_ct_CC" >&6
12203 echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6
12207 test -n "$ac_ct_CC" && break
12216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12217 See \`config.log' for more details." >&5
12218 echo "$as_me: error: no acceptable C compiler found in \$PATH
12219 See \`config.log' for more details." >&2;}
12220 { (exit 1); exit 1; }; }
12222 # Provide some information about the compiler.
12223 echo "$as_me:$LINENO:" \
12224 "checking for C compiler version" >&5
12225 ac_compiler=`set X $ac_compile; echo $2`
12226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12227 (eval $ac_compiler --version </dev/null >&5) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }
12231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12232 (eval $ac_compiler -v </dev/null >&5) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }
12236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12237 (eval $ac_compiler -V </dev/null >&5) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }
12242 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12243 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12244 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 cat >conftest.$ac_ext <<_ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
12269 grep -v '^ *+' conftest.er1 >conftest.err
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -z "$ac_c_werror_flag"
12275 || test ! -s conftest.err'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_compiler_gnu=yes
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12298 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12299 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12300 GCC=`test $ac_compiler_gnu = yes && echo yes`
12301 ac_test_CFLAGS=${CFLAGS+set}
12302 ac_save_CFLAGS=$CFLAGS
12304 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12305 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12306 if test "${ac_cv_prog_cc_g+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 cat >conftest.$ac_ext <<_ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12324 rm -f conftest.$ac_objext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest.$ac_objext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_prog_cc_g=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12355 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12356 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12357 if test "$ac_test_CFLAGS" = set; then
12358 CFLAGS=$ac_save_CFLAGS
12359 elif test $ac_cv_prog_cc_g = yes; then
12360 if test "$GCC" = yes; then
12366 if test "$GCC" = yes; then
12372 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12373 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12374 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_cv_prog_cc_stdc=no
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <stdarg.h>
12387 #include <sys/types.h>
12388 #include <sys/stat.h>
12389 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12390 struct buf { int x; };
12391 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12392 static char *e (p, i)
12398 static char *f (char * (*g) (char **, int), char **p, ...)
12403 s = g (p, va_arg (v,int));
12408 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12409 function prototypes and stuff, but not '\xHH' hex character constants.
12410 These don't provoke an error unfortunately, instead are silently treated
12411 as 'x'. The following induces an error, until -std1 is added to get
12412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12413 array size at least. It's necessary to write '\x00'==0 to get something
12414 that's true only with -std1. */
12415 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12417 int test (int i, double x);
12418 struct s1 {int (*f) (int a);};
12419 struct s2 {int (*f) (double a);};
12420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12431 # Don't try gcc -ansi; that turns off useful extensions and
12432 # breaks some systems' header files.
12433 # AIX -qlanglvl=ansi
12434 # Ultrix and OSF/1 -std1
12435 # HP-UX 10.20 and later -Ae
12436 # HP-UX older versions -Aa -D_HPUX_SOURCE
12437 # SVR4 -Xc -D__EXTENSIONS__
12438 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12440 CC="$ac_save_CC $ac_arg"
12441 rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12443 (eval $ac_compile) 2>conftest.er1
12445 grep -v '^ *+' conftest.er1 >conftest.err
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -z "$ac_c_werror_flag"
12451 || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest.$ac_objext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_cv_prog_cc_stdc=$ac_arg
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12470 rm -f conftest.err conftest.$ac_objext
12472 rm -f conftest.$ac_ext conftest.$ac_objext
12477 case "x$ac_cv_prog_cc_stdc" in
12479 echo "$as_me:$LINENO: result: none needed" >&5
12480 echo "${ECHO_T}none needed" >&6 ;;
12482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12483 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12484 CC="$CC $ac_cv_prog_cc_stdc" ;;
12487 # Some people use a C++ compiler to compile C. Since we use `exit',
12488 # in C++ we need to declare it. In case someone uses the same compiler
12489 # for both compiling C and C++ we need to have the C++ compiler decide
12490 # the declaration of exit, since it's the most demanding environment.
12491 cat >conftest.$ac_ext <<_ACEOF
12492 #ifndef __cplusplus
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag"
12506 || test ! -s conftest.err'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 for ac_declaration in \
12520 'extern "C" void std::exit (int) throw (); using std::exit;' \
12521 'extern "C" void std::exit (int); using std::exit;' \
12522 'extern "C" void exit (int) throw ();' \
12523 'extern "C" void exit (int);' \
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12533 #include <stdlib.h>
12542 rm -f conftest.$ac_objext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544 (eval $ac_compile) 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest.$ac_objext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12618 if test -n "$ac_declaration"; then
12619 echo '#ifdef __cplusplus' >>confdefs.h
12620 echo $ac_declaration >>confdefs.h
12621 echo '#endif' >>confdefs.h
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12636 depcc="$CC" am_compiler_list=
12638 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12639 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12640 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12644 # We make a subdir and do the tests there. Otherwise we can end up
12645 # making bogus files that we don't know about and never remove. For
12646 # instance it was reported that on HP-UX the gcc test will end up
12647 # making a dummy file named `D' -- because `-MD' means `put the output
12650 # Copy depcomp to subdir because otherwise we won't find it if we're
12651 # using a relative directory.
12652 cp "$am_depcomp" conftest.dir
12654 # We will build objects and dependencies in a subdirectory because
12655 # it helps to detect inapplicable dependency modes. For instance
12656 # both Tru64's cc and ICC support -MD to output dependencies as a
12657 # side effect of compilation, but ICC will put the dependencies in
12658 # the current directory while Tru64 will put them in the object
12662 am_cv_CC_dependencies_compiler_type=none
12663 if test "$am_compiler_list" = ""; then
12664 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12666 for depmode in $am_compiler_list; do
12667 # Setup a source with many dependencies, because some compilers
12668 # like to wrap large dependency lists on column 80 (with \), and
12669 # we should not choose a depcomp mode which is confused by this.
12671 # We need to recreate these files for each test, as the compiler may
12672 # overwrite some of them when testing with obscure command lines.
12673 # This happens at least with the AIX C compiler.
12675 for i in 1 2 3 4 5 6; do
12676 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12678 # Solaris 8's {/usr,}/bin/sh.
12679 touch sub/conftst$i.h
12681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12685 # after this tag, mechanisms are not by side-effect, so they'll
12686 # only be used when explicitly requested
12687 if test "x$enable_dependency_tracking" = xyes; then
12695 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12696 # mode. It turns out that the SunPro C++ compiler does not properly
12697 # handle `-M -o', and we need to detect this.
12698 if depmode=$depmode \
12699 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12701 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12702 >/dev/null 2>conftest.err &&
12703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12704 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12706 # icc doesn't choke on unknown options, it will just issue warnings
12707 # or remarks (even with -Werror). So we grep stderr for any message
12708 # that says an option was ignored or not supported.
12709 # When given -MP, icc 7.0 and 7.1 complain thusly:
12710 # icc: Command line warning: ignoring option '-M'; no argument required
12711 # The diagnosis changed in icc 8.0:
12712 # icc: Command line remark: option '-MP' not supported
12713 if (grep 'ignoring option' conftest.err ||
12714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12715 am_cv_CC_dependencies_compiler_type=$depmode
12722 rm -rf conftest.dir
12724 am_cv_CC_dependencies_compiler_type=none
12728 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12729 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12735 test "x$enable_dependency_tracking" != xno \
12736 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12737 am__fastdepCC_TRUE=
12738 am__fastdepCC_FALSE='#'
12740 am__fastdepCC_TRUE='#'
12741 am__fastdepCC_FALSE=
12745 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12746 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12747 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12748 { (exit 1); exit 1; }; }
12751 # test for make depend flag
12754 if test -z "${MKDEP}"; then
12755 OL_MKDEP="${CC-cc}"
12756 if test -z "${MKDEP_FLAGS}"; then
12757 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12758 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12759 if test "${ol_cv_mkdep+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 for flag in "-M" "-xM"; do
12765 cat > conftest.c <<EOF
12768 if { ac_try='$OL_MKDEP $flag conftest.c'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } \
12774 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12776 if test ! -f conftest."${ac_object}" ; then
12778 OL_MKDEP_FLAGS="$flag"
12786 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12787 echo "${ECHO_T}$ol_cv_mkdep" >&6
12788 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12791 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12795 OL_MKDEP="${MKDEP}"
12796 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12801 if test "${ol_cv_mkdep}" = no ; then
12802 # this will soon become an error
12803 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12804 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12807 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12808 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12809 if test "${ac_cv_lib_s_afopen+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 ac_check_lib_save_LIBS=$LIBS
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12821 /* Override any gcc2 internal prototype to avoid an error. */
12825 /* We use char because int might match the return type of a gcc2
12826 builtin and then its argument prototype would still apply. */
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_lib_s_afopen=yes
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_cv_lib_s_afopen=no
12865 rm -f conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12869 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12870 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12871 if test $ac_cv_lib_s_afopen = yes; then
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_AIX_SECURITY 1
12885 ac_cv_func_getopt=no
12887 cat >>confdefs.h <<\_ACEOF
12888 #define BOTH_STRINGS_H 1
12895 WITH_MODULES_ENABLED=no
12896 if test $ol_enable_modules != no ; then
12898 for ac_header in ltdl.h
12900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12902 echo "$as_me:$LINENO: checking for $ac_header" >&5
12903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12910 # Is the header compilable?
12911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12913 cat >conftest.$ac_ext <<_ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919 $ac_includes_default
12920 #include <$ac_header>
12922 rm -f conftest.$ac_objext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924 (eval $ac_compile) 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest.$ac_objext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_header_compiler=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_header_compiler=no
12951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12953 echo "${ECHO_T}$ac_header_compiler" >&6
12955 # Is the header present?
12956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12958 cat >conftest.$ac_ext <<_ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 #include <$ac_header>
12966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12969 grep -v '^ *+' conftest.er1 >conftest.err
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } >/dev/null; then
12974 if test -s conftest.err; then
12975 ac_cpp_err=$ac_c_preproc_warn_flag
12976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12983 if test -z "$ac_cpp_err"; then
12984 ac_header_preproc=yes
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_header_preproc=no
12991 rm -f conftest.err conftest.$ac_ext
12992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12993 echo "${ECHO_T}$ac_header_preproc" >&6
12995 # So? What about this header?
12996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13002 ac_header_preproc=yes
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13019 ## --------------------------------------------- ##
13020 ## Report this to <http://www.openldap.org/its/> ##
13021 ## --------------------------------------------- ##
13024 sed "s/^/$as_me: WARNING: /" >&2
13027 echo "$as_me:$LINENO: checking for $ac_header" >&5
13028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 eval "$as_ac_Header=\$ac_header_preproc"
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13039 cat >>confdefs.h <<_ACEOF
13040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13048 if test $ac_cv_header_ltdl_h = no ; then
13049 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13050 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13051 { (exit 1); exit 1; }; }
13054 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13055 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13056 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 ac_check_lib_save_LIBS=$LIBS
13060 LIBS="-lltdl $LIBS"
13061 cat >conftest.$ac_ext <<_ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13068 /* Override any gcc2 internal prototype to avoid an error. */
13072 /* We use char because int might match the return type of a gcc2
13073 builtin and then its argument prototype would still apply. */
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13085 (eval $ac_link) 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -z "$ac_c_werror_flag"
13093 || test ! -s conftest.err'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest$ac_exeext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_lib_ltdl_lt_dlinit=yes
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_cv_lib_ltdl_lt_dlinit=no
13112 rm -f conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13116 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13117 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13118 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13120 MODULES_LIBS=-lltdl
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_LIBLTDL 1
13130 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13131 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13132 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13133 { (exit 1); exit 1; }; }
13135 ol_link_modules=yes
13136 WITH_MODULES_ENABLED=yes
13139 for i in $Backends; do
13140 eval "ol_tmp=\$ol_enable_$i"
13141 if test $ol_tmp = mod ; then
13142 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13143 echo "$as_me: WARNING: building static $i backend" >&2;}
13144 eval "ol_enable_$i=yes"
13147 for i in $Overlays; do
13148 eval "ol_tmp=\$ol_enable_$i"
13149 if test $ol_tmp = mod ; then
13150 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13151 echo "$as_me: WARNING: building static $i overlay" >&2;}
13152 eval "ol_enable_$i=yes"
13158 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13159 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13160 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13172 #include <__ASCII__/generate_error.h>
13176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13179 grep -v '^ *+' conftest.er1 >conftest.err
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } >/dev/null; then
13184 if test -s conftest.err; then
13185 ac_cpp_err=$ac_c_preproc_warn_flag
13186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13193 if test -z "$ac_cpp_err"; then
13194 ol_cv_cpp_ebcdic=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ol_cv_cpp_ebcdic=no
13201 rm -f conftest.err conftest.$ac_ext
13203 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13204 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13205 if test $ol_cv_cpp_ebcdic = yes ; then
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_EBCDIC 1
13213 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13215 if test "${ol_cv_header_stdc+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 cat >conftest.$ac_ext <<_ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 #include <stdlib.h>
13225 #include <stdarg.h>
13226 #include <string.h>
13229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } >/dev/null; then
13237 if test -s conftest.err; then
13238 ac_cpp_err=$ac_c_preproc_warn_flag
13239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13246 if test -z "$ac_cpp_err"; then
13247 ol_cv_header_stdc=yes
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 ol_cv_header_stdc=no
13254 rm -f conftest.err conftest.$ac_ext
13256 if test $ol_cv_header_stdc = yes; then
13257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13258 cat >conftest.$ac_ext <<_ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13264 #include <string.h>
13267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268 $EGREP "memchr" >/dev/null 2>&1; then
13271 ol_cv_header_stdc=no
13277 if test $ol_cv_header_stdc = yes; then
13278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 #include <stdlib.h>
13288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13289 $EGREP "free" >/dev/null 2>&1; then
13292 ol_cv_header_stdc=no
13298 if test $ol_cv_header_stdc = yes; then
13299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13300 if test "$cross_compiling" = yes; then
13303 cat >conftest.$ac_ext <<_ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13310 #ifndef HAVE_EBCDIC
13311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13314 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13315 || ('j' <= (c) && (c) <= 'r') \
13316 || ('s' <= (c) && (c) <= 'z'))
13317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13320 int main () { int i; for (i = 0; i < 256; i++)
13321 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13325 rm -f conftest$ac_exeext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13327 (eval $ac_link) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13338 echo "$as_me: program exited with status $ac_status" >&5
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ( exit $ac_status )
13343 ol_cv_header_stdc=no
13345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13349 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13350 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13351 if test $ol_cv_header_stdc = yes; then
13352 cat >>confdefs.h <<\_ACEOF
13353 #define STDC_HEADERS 1
13357 ac_cv_header_stdc=disable
13360 if test $ol_cv_header_stdc != yes; then
13361 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13362 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13370 ac_header_dirent=no
13371 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13372 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13373 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13374 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 cat >conftest.$ac_ext <<_ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 #include <sys/types.h>
13396 rm -f conftest.$ac_objext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 eval "$as_ac_Header=yes"
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 eval "$as_ac_Header=no"
13425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13430 cat >>confdefs.h <<_ACEOF
13431 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13434 ac_header_dirent=$ac_hdr; break
13438 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13439 if test $ac_header_dirent = dirent.h; then
13440 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13441 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13442 if test "${ac_cv_search_opendir+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 ac_func_search_save_LIBS=$LIBS
13446 ac_cv_search_opendir=no
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13454 /* Override any gcc2 internal prototype to avoid an error. */
13458 /* We use char because int might match the return type of a gcc2
13459 builtin and then its argument prototype would still apply. */
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471 (eval $ac_link) 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag"
13479 || test ! -s conftest.err'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_search_opendir="none required"
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13497 rm -f conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13499 if test "$ac_cv_search_opendir" = no; then
13500 for ac_lib in dir; do
13501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13502 cat >conftest.$ac_ext <<_ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13509 /* Override any gcc2 internal prototype to avoid an error. */
13513 /* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13524 rm -f conftest.$ac_objext conftest$ac_exeext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13526 (eval $ac_link) 2>conftest.er1
13528 grep -v '^ *+' conftest.er1 >conftest.err
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest$ac_exeext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_search_opendir="-l$ac_lib"
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13553 rm -f conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_func_search_save_LIBS
13559 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13560 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13561 if test "$ac_cv_search_opendir" != no; then
13562 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13567 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13568 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13569 if test "${ac_cv_search_opendir+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 ac_func_search_save_LIBS=$LIBS
13573 ac_cv_search_opendir=no
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13581 /* Override any gcc2 internal prototype to avoid an error. */
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13596 rm -f conftest.$ac_objext conftest$ac_exeext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598 (eval $ac_link) 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag"
13606 || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_search_opendir="none required"
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13624 rm -f conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 if test "$ac_cv_search_opendir" = no; then
13627 for ac_lib in x; do
13628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13636 /* Override any gcc2 internal prototype to avoid an error. */
13640 /* We use char because int might match the return type of a gcc2
13641 builtin and then its argument prototype would still apply. */
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag"
13661 || test ! -s conftest.err'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_search_opendir="-l$ac_lib"
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13680 rm -f conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13684 LIBS=$ac_func_search_save_LIBS
13686 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13687 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13688 if test "$ac_cv_search_opendir" != no; then
13689 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13695 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13696 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13697 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 #include <sys/types.h>
13707 #include <sys/wait.h>
13708 #ifndef WEXITSTATUS
13709 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13712 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13720 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag"
13735 || test ! -s conftest.err'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_header_sys_wait_h=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_cv_header_sys_wait_h=no
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13756 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13757 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13758 if test $ac_cv_header_sys_wait_h = yes; then
13760 cat >>confdefs.h <<\_ACEOF
13761 #define HAVE_SYS_WAIT_H 1
13766 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13767 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13768 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 #include <sys/types.h>
13778 #include <termios.h>
13784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13785 $EGREP "yes" >/dev/null 2>&1; then
13786 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13788 ac_cv_sys_tiocgwinsz_in_termios_h=no
13793 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13794 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13796 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13797 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13798 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13799 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 cat >conftest.$ac_ext <<_ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13808 #include <sys/types.h>
13809 #include <sys/ioctl.h>
13815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13816 $EGREP "yes" >/dev/null 2>&1; then
13817 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13819 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13824 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13825 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13827 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13829 cat >>confdefs.h <<\_ACEOF
13830 #define GWINSZ_IN_SYS_IOCTL 1
13934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936 echo "$as_me:$LINENO: checking for $ac_header" >&5
13937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13944 # Is the header compilable?
13945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 $ac_includes_default
13954 #include <$ac_header>
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13978 ac_header_compiler=yes
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_header_compiler=no
13985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13987 echo "${ECHO_T}$ac_header_compiler" >&6
13989 # Is the header present?
13990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13992 cat >conftest.$ac_ext <<_ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 #include <$ac_header>
14000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } >/dev/null; then
14008 if test -s conftest.err; then
14009 ac_cpp_err=$ac_c_preproc_warn_flag
14010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14017 if test -z "$ac_cpp_err"; then
14018 ac_header_preproc=yes
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_header_preproc=no
14025 rm -f conftest.err conftest.$ac_ext
14026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027 echo "${ECHO_T}$ac_header_preproc" >&6
14029 # So? What about this header?
14030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14036 ac_header_preproc=yes
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14053 ## --------------------------------------------- ##
14054 ## Report this to <http://www.openldap.org/its/> ##
14055 ## --------------------------------------------- ##
14058 sed "s/^/$as_me: WARNING: /" >&2
14061 echo "$as_me:$LINENO: checking for $ac_header" >&5
14062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 eval "$as_ac_Header=\$ac_header_preproc"
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14082 if test "$ac_cv_mingw32" = yes ; then
14085 for ac_header in winsock.h winsock2.h
14087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14089 echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14097 # Is the header compilable?
14098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 $ac_includes_default
14107 #include <$ac_header>
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111 (eval $ac_compile) 2>conftest.er1
14113 grep -v '^ *+' conftest.er1 >conftest.err
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
14118 { ac_try='test -z "$ac_c_werror_flag"
14119 || test ! -s conftest.err'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14131 ac_header_compiler=yes
14133 echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14136 ac_header_compiler=no
14138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14140 echo "${ECHO_T}$ac_header_compiler" >&6
14142 # Is the header present?
14143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <$ac_header>
14153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14156 grep -v '^ *+' conftest.er1 >conftest.err
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } >/dev/null; then
14161 if test -s conftest.err; then
14162 ac_cpp_err=$ac_c_preproc_warn_flag
14163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14170 if test -z "$ac_cpp_err"; then
14171 ac_header_preproc=yes
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14176 ac_header_preproc=no
14178 rm -f conftest.err conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14180 echo "${ECHO_T}$ac_header_preproc" >&6
14182 # So? What about this header?
14183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14189 ac_header_preproc=yes
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14206 ## --------------------------------------------- ##
14207 ## Report this to <http://www.openldap.org/its/> ##
14208 ## --------------------------------------------- ##
14211 sed "s/^/$as_me: WARNING: /" >&2
14214 echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 eval "$as_ac_Header=\$ac_header_preproc"
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14226 cat >>confdefs.h <<_ACEOF
14227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14237 for ac_header in resolv.h
14239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14240 echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14251 $ac_includes_default
14252 #include <netinet/in.h>
14255 #include <$ac_header>
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14279 eval "$as_ac_Header=yes"
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 eval "$as_ac_Header=no"
14286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14301 for ac_header in netinet/tcp.h
14303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14304 echo "$as_me:$LINENO: checking for $ac_header" >&5
14305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >conftest.$ac_ext <<_ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 $ac_includes_default
14316 #include <netinet/in.h>
14319 #include <$ac_header>
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14343 eval "$as_ac_Header=yes"
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 eval "$as_ac_Header=no"
14350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14365 for ac_header in sys/ucred.h
14367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_header" >&5
14369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 $ac_includes_default
14380 #ifdef HAVE_SYS_PARAM_H
14381 #include <sys/param.h>
14385 #include <$ac_header>
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_c_werror_flag"
14397 || test ! -s conftest.err'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14409 eval "$as_ac_Header=yes"
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 eval "$as_ac_Header=no"
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14421 cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14433 for ac_func in sigaction sigset
14435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14436 echo "$as_me:$LINENO: checking for $ac_func" >&5
14437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14438 if eval "test \"\${$as_ac_var+set}\" = set"; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 cat >conftest.$ac_ext <<_ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14449 #define $ac_func innocuous_$ac_func
14451 /* System header to define __stub macros and hopefully few prototypes,
14452 which can conflict with char $ac_func (); below.
14453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14454 <limits.h> exists even on freestanding compilers. */
14457 # include <limits.h>
14459 # include <assert.h>
14464 /* Override any gcc2 internal prototype to avoid an error. */
14469 /* We use char because int might match the return type of a gcc2
14470 builtin and then its argument prototype would still apply. */
14472 /* The GNU C library defines this for functions which it implements
14473 to always fail with ENOSYS. Some functions are actually named
14474 something starting with __ and the normal name is an alias. */
14475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14478 char (*f) () = $ac_func;
14487 return f != $ac_func;
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14494 (eval $ac_link) 2>conftest.er1
14496 grep -v '^ *+' conftest.er1 >conftest.err
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } &&
14501 { ac_try='test -z "$ac_c_werror_flag"
14502 || test ! -s conftest.err'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; } &&
14508 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14514 eval "$as_ac_var=yes"
14516 echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14519 eval "$as_ac_var=no"
14521 rm -f conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14526 if test `eval echo '${'$as_ac_var'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14535 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14537 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14538 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14539 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 ac_check_lib_save_LIBS=$LIBS
14544 cat >conftest.$ac_ext <<_ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14551 /* Override any gcc2 internal prototype to avoid an error. */
14555 /* We use char because int might match the return type of a gcc2
14556 builtin and then its argument prototype would still apply. */
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14568 (eval $ac_link) 2>conftest.er1
14570 grep -v '^ *+' conftest.er1 >conftest.err
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14588 ac_cv_lib_V3_sigset=yes
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 ac_cv_lib_V3_sigset=no
14595 rm -f conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_check_lib_save_LIBS
14599 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14600 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14601 if test $ac_cv_lib_V3_sigset = yes; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_LIBV3 1
14612 if test "$ac_cv_header_winsock_h" = yes; then
14613 echo "$as_me:$LINENO: checking for winsock" >&5
14614 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14615 if test "${ol_cv_winsock+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 for curlib in ws2_32 wsock32; do
14620 LIBS="$LIBS -l$curlib"
14621 cat >conftest.$ac_ext <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 #include <winsock.h>
14634 select(0,NULL,NULL,NULL,NULL);
14636 gethostname(NULL,0);
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>conftest.er1
14646 grep -v '^ *+' conftest.er1 >conftest.err
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -z "$ac_c_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14671 rm -f conftest.err conftest.$ac_objext \
14672 conftest$ac_exeext conftest.$ac_ext
14674 if test $ol_cv_winsock = yes; then
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_WINSOCK 1
14680 ac_cv_func_socket=yes
14681 ac_cv_func_select=yes
14682 ac_cv_func_closesocket=yes
14683 ac_cv_func_gethostname=yes
14684 if test $curlib = ws2_32; then
14685 ol_cv_winsock=winsock2
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_WINSOCK2 1
14697 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14698 echo "${ECHO_T}$ol_cv_winsock" >&6
14702 echo "$as_me:$LINENO: checking for socket" >&5
14703 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14704 if test "${ac_cv_func_socket+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14715 #define socket innocuous_socket
14717 /* System header to define __stub macros and hopefully few prototypes,
14718 which can conflict with char socket (); below.
14719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14720 <limits.h> exists even on freestanding compilers. */
14723 # include <limits.h>
14725 # include <assert.h>
14730 /* Override any gcc2 internal prototype to avoid an error. */
14735 /* We use char because int might match the return type of a gcc2
14736 builtin and then its argument prototype would still apply. */
14738 /* The GNU C library defines this for functions which it implements
14739 to always fail with ENOSYS. Some functions are actually named
14740 something starting with __ and the normal name is an alias. */
14741 #if defined (__stub_socket) || defined (__stub___socket)
14744 char (*f) () = socket;
14753 return f != socket;
14758 rm -f conftest.$ac_objext conftest$ac_exeext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14760 (eval $ac_link) 2>conftest.er1
14762 grep -v '^ *+' conftest.er1 >conftest.err
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } &&
14767 { ac_try='test -z "$ac_c_werror_flag"
14768 || test ! -s conftest.err'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; } &&
14774 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14780 ac_cv_func_socket=yes
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_cv_func_socket=no
14787 rm -f conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14790 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14791 echo "${ECHO_T}$ac_cv_func_socket" >&6
14792 if test $ac_cv_func_socket = yes; then
14797 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14798 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14799 if test "${ac_cv_lib_socket_main+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 ac_check_lib_save_LIBS=$LIBS
14803 LIBS="-lsocket $LIBS"
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14820 rm -f conftest.$ac_objext conftest$ac_exeext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14822 (eval $ac_link) 2>conftest.er1
14824 grep -v '^ *+' conftest.er1 >conftest.err
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -z "$ac_c_werror_flag"
14830 || test ! -s conftest.err'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14842 ac_cv_lib_socket_main=yes
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_cv_lib_socket_main=no
14849 rm -f conftest.err conftest.$ac_objext \
14850 conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS
14853 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14854 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14855 if test $ac_cv_lib_socket_main = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_LIBSOCKET 1
14860 LIBS="-lsocket $LIBS"
14865 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14866 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14867 if test "${ac_cv_lib_net_main+set}" = set; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 ac_check_lib_save_LIBS=$LIBS
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890 (eval $ac_link) 2>conftest.er1
14892 grep -v '^ *+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_c_werror_flag"
14898 || test ! -s conftest.err'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14910 ac_cv_lib_net_main=yes
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 ac_cv_lib_net_main=no
14917 rm -f conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14921 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14922 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14923 if test $ac_cv_lib_net_main = yes; then
14924 cat >>confdefs.h <<_ACEOF
14925 #define HAVE_LIBNET 1
14933 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14934 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14935 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 ac_check_lib_save_LIBS=$LIBS
14939 LIBS="-lnsl_s $LIBS"
14940 cat >conftest.$ac_ext <<_ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958 (eval $ac_link) 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -z "$ac_c_werror_flag"
14966 || test ! -s conftest.err'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14978 ac_cv_lib_nsl_s_main=yes
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_cv_lib_nsl_s_main=no
14985 rm -f conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
14987 LIBS=$ac_check_lib_save_LIBS
14989 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14990 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14991 if test $ac_cv_lib_nsl_s_main = yes; then
14992 cat >>confdefs.h <<_ACEOF
14993 #define HAVE_LIBNSL_S 1
14996 LIBS="-lnsl_s $LIBS"
15001 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15002 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15003 if test "${ac_cv_lib_nsl_main+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 ac_check_lib_save_LIBS=$LIBS
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026 (eval $ac_link) 2>conftest.er1
15028 grep -v '^ *+' conftest.er1 >conftest.err
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -z "$ac_c_werror_flag"
15034 || test ! -s conftest.err'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15046 ac_cv_lib_nsl_main=yes
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 ac_cv_lib_nsl_main=no
15053 rm -f conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055 LIBS=$ac_check_lib_save_LIBS
15057 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15058 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15059 if test $ac_cv_lib_nsl_main = yes; then
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_LIBNSL 1
15069 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15070 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15071 if test "${ac_cv_lib_inet_socket+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 ac_check_lib_save_LIBS=$LIBS
15075 LIBS="-linet $LIBS"
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any gcc2 internal prototype to avoid an error. */
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15098 rm -f conftest.$ac_objext conftest$ac_exeext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag"
15108 || test ! -s conftest.err'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15120 ac_cv_lib_inet_socket=yes
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 ac_cv_lib_inet_socket=no
15127 rm -f conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15131 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15132 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15133 if test $ac_cv_lib_inet_socket = yes; then
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_LIBINET 1
15138 LIBS="-linet $LIBS"
15143 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15144 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15145 if test "${ac_cv_lib_gen_main+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 ac_check_lib_save_LIBS=$LIBS
15150 cat >conftest.$ac_ext <<_ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag"
15176 || test ! -s conftest.err'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15188 ac_cv_lib_gen_main=yes
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_cv_lib_gen_main=no
15195 rm -f conftest.err conftest.$ac_objext \
15196 conftest$ac_exeext conftest.$ac_ext
15197 LIBS=$ac_check_lib_save_LIBS
15199 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15200 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15201 if test $ac_cv_lib_gen_main = yes; then
15202 cat >>confdefs.h <<_ACEOF
15203 #define HAVE_LIBGEN 1
15214 echo "$as_me:$LINENO: checking for select" >&5
15215 echo $ECHO_N "checking for select... $ECHO_C" >&6
15216 if test "${ac_cv_func_select+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 /* Define select to an innocuous variant, in case <limits.h> declares select.
15226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15227 #define select innocuous_select
15229 /* System header to define __stub macros and hopefully few prototypes,
15230 which can conflict with char select (); below.
15231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15232 <limits.h> exists even on freestanding compilers. */
15235 # include <limits.h>
15237 # include <assert.h>
15242 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15250 /* The GNU C library defines this for functions which it implements
15251 to always fail with ENOSYS. Some functions are actually named
15252 something starting with __ and the normal name is an alias. */
15253 #if defined (__stub_select) || defined (__stub___select)
15256 char (*f) () = select;
15265 return f != select;
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15272 (eval $ac_link) 2>conftest.er1
15274 grep -v '^ *+' conftest.er1 >conftest.err
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
15279 { ac_try='test -z "$ac_c_werror_flag"
15280 || test ! -s conftest.err'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; } &&
15286 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15292 ac_cv_func_select=yes
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 ac_cv_func_select=no
15299 rm -f conftest.err conftest.$ac_objext \
15300 conftest$ac_exeext conftest.$ac_ext
15302 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15303 echo "${ECHO_T}$ac_cv_func_select" >&6
15304 if test $ac_cv_func_select = yes; then
15307 { { echo "$as_me:$LINENO: error: select() required." >&5
15308 echo "$as_me: error: select() required." >&2;}
15309 { (exit 1); exit 1; }; }
15313 if test "${ac_cv_header_winsock_h}" != yes; then
15316 for ac_header in sys/select.h sys/socket.h
15318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15328 # Is the header compilable?
15329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <$ac_header>
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag"
15350 || test ! -s conftest.err'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15362 ac_header_compiler=yes
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_header_compiler=no
15369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15371 echo "${ECHO_T}$ac_header_compiler" >&6
15373 # Is the header present?
15374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #include <$ac_header>
15384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } >/dev/null; then
15392 if test -s conftest.err; then
15393 ac_cpp_err=$ac_c_preproc_warn_flag
15394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15401 if test -z "$ac_cpp_err"; then
15402 ac_header_preproc=yes
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_header_preproc=no
15409 rm -f conftest.err conftest.$ac_ext
15410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15411 echo "${ECHO_T}$ac_header_preproc" >&6
15413 # So? What about this header?
15414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15420 ac_header_preproc=yes
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15437 ## --------------------------------------------- ##
15438 ## Report this to <http://www.openldap.org/its/> ##
15439 ## --------------------------------------------- ##
15442 sed "s/^/$as_me: WARNING: /" >&2
15445 echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 eval "$as_ac_Header=\$ac_header_preproc"
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15465 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15466 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15467 if test "${ac_cv_func_select_args+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15471 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15472 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 $ac_includes_default
15480 #if HAVE_SYS_SELECT_H
15481 # include <sys/select.h>
15483 #if HAVE_SYS_SOCKET_H
15484 # include <sys/socket.h>
15490 extern int select ($ac_arg1,
15491 $ac_arg234, $ac_arg234, $ac_arg234,
15497 rm -f conftest.$ac_objext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499 (eval $ac_compile) 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag"
15507 || test ! -s conftest.err'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15519 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15529 # Provide a safe default value.
15530 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15533 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15534 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15535 ac_save_IFS=$IFS; IFS=','
15536 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15540 cat >>confdefs.h <<_ACEOF
15541 #define SELECT_TYPE_ARG1 $1
15545 cat >>confdefs.h <<_ACEOF
15546 #define SELECT_TYPE_ARG234 ($2)
15550 cat >>confdefs.h <<_ACEOF
15551 #define SELECT_TYPE_ARG5 ($3)
15560 for ac_func in poll
15562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15563 echo "$as_me:$LINENO: checking for $ac_func" >&5
15564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15565 if eval "test \"\${$as_ac_var+set}\" = set"; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 cat >conftest.$ac_ext <<_ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15576 #define $ac_func innocuous_$ac_func
15578 /* System header to define __stub macros and hopefully few prototypes,
15579 which can conflict with char $ac_func (); below.
15580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15581 <limits.h> exists even on freestanding compilers. */
15584 # include <limits.h>
15586 # include <assert.h>
15591 /* Override any gcc2 internal prototype to avoid an error. */
15596 /* We use char because int might match the return type of a gcc2
15597 builtin and then its argument prototype would still apply. */
15599 /* The GNU C library defines this for functions which it implements
15600 to always fail with ENOSYS. Some functions are actually named
15601 something starting with __ and the normal name is an alias. */
15602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15605 char (*f) () = $ac_func;
15614 return f != $ac_func;
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15621 (eval $ac_link) 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -z "$ac_c_werror_flag"
15629 || test ! -s conftest.err'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest$ac_exeext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 eval "$as_ac_var=yes"
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 eval "$as_ac_var=no"
15648 rm -f conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15653 if test `eval echo '${'$as_ac_var'}'` = yes; then
15654 cat >>confdefs.h <<_ACEOF
15655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15661 if test $ac_cv_func_poll = yes; then
15664 for ac_header in poll.h sys/poll.h
15666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15668 echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15676 # Is the header compilable?
15677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 $ac_includes_default
15686 #include <$ac_header>
15688 rm -f conftest.$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690 (eval $ac_compile) 2>conftest.er1
15692 grep -v '^ *+' conftest.er1 >conftest.err
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try='test -z "$ac_c_werror_flag"
15698 || test ! -s conftest.err'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15710 ac_header_compiler=yes
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 ac_header_compiler=no
15717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15719 echo "${ECHO_T}$ac_header_compiler" >&6
15721 # Is the header present?
15722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15724 cat >conftest.$ac_ext <<_ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15730 #include <$ac_header>
15732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } >/dev/null; then
15740 if test -s conftest.err; then
15741 ac_cpp_err=$ac_c_preproc_warn_flag
15742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15749 if test -z "$ac_cpp_err"; then
15750 ac_header_preproc=yes
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_preproc=no
15757 rm -f conftest.err conftest.$ac_ext
15758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6
15761 # So? What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768 ac_header_preproc=yes
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15785 ## --------------------------------------------- ##
15786 ## Report this to <http://www.openldap.org/its/> ##
15787 ## --------------------------------------------- ##
15790 sed "s/^/$as_me: WARNING: /" >&2
15793 echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 eval "$as_ac_Header=\$ac_header_preproc"
15800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 for ac_header in sys/epoll.h
15818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15820 echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15828 # Is the header compilable?
15829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15838 #include <$ac_header>
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842 (eval $ac_compile) 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag"
15850 || test ! -s conftest.err'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15862 ac_header_compiler=yes
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 ac_header_compiler=no
15869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871 echo "${ECHO_T}$ac_header_compiler" >&6
15873 # Is the header present?
15874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 #include <$ac_header>
15884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15887 grep -v '^ *+' conftest.er1 >conftest.err
15889 cat conftest.err >&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } >/dev/null; then
15892 if test -s conftest.err; then
15893 ac_cpp_err=$ac_c_preproc_warn_flag
15894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15901 if test -z "$ac_cpp_err"; then
15902 ac_header_preproc=yes
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15907 ac_header_preproc=no
15909 rm -f conftest.err conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15911 echo "${ECHO_T}$ac_header_preproc" >&6
15913 # So? What about this header?
15914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15920 ac_header_preproc=yes
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15937 ## --------------------------------------------- ##
15938 ## Report this to <http://www.openldap.org/its/> ##
15939 ## --------------------------------------------- ##
15942 sed "s/^/$as_me: WARNING: /" >&2
15945 echo "$as_me:$LINENO: checking for $ac_header" >&5
15946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 eval "$as_ac_Header=\$ac_header_preproc"
15952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15957 cat >>confdefs.h <<_ACEOF
15958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15965 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15966 echo "$as_me:$LINENO: checking for epoll system call" >&5
15967 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15968 if test "$cross_compiling" = yes; then
15969 echo "$as_me:$LINENO: result: no" >&5
15970 echo "${ECHO_T}no" >&6
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 int main(int argc, char **argv)
15980 int epfd = epoll_create(256);
15981 exit (epfd == -1 ? 1 : 0);
15984 rm -f conftest$ac_exeext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 echo "$as_me:$LINENO: result: yes" >&5
15996 echo "${ECHO_T}yes" >&6
15998 cat >>confdefs.h <<\_ACEOF
15999 #define HAVE_EPOLL 1
16003 echo "$as_me: program exited with status $ac_status" >&5
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 ( exit $ac_status )
16008 echo "$as_me:$LINENO: result: no" >&5
16009 echo "${ECHO_T}no" >&6
16011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16016 for ac_header in sys/devpoll.h
16018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16020 echo "$as_me:$LINENO: checking for $ac_header" >&5
16021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16028 # Is the header compilable?
16029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 #include <$ac_header>
16040 rm -f conftest.$ac_objext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042 (eval $ac_compile) 2>conftest.er1
16044 grep -v '^ *+' conftest.er1 >conftest.err
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
16049 { ac_try='test -z "$ac_c_werror_flag"
16050 || test ! -s conftest.err'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16062 ac_header_compiler=yes
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ac_header_compiler=no
16069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6
16073 # Is the header present?
16074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <$ac_header>
16084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16087 grep -v '^ *+' conftest.er1 >conftest.err
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } >/dev/null; then
16092 if test -s conftest.err; then
16093 ac_cpp_err=$ac_c_preproc_warn_flag
16094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16101 if test -z "$ac_cpp_err"; then
16102 ac_header_preproc=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_header_preproc=no
16109 rm -f conftest.err conftest.$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc=yes
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16137 ## --------------------------------------------- ##
16138 ## Report this to <http://www.openldap.org/its/> ##
16139 ## --------------------------------------------- ##
16142 sed "s/^/$as_me: WARNING: /" >&2
16145 echo "$as_me:$LINENO: checking for $ac_header" >&5
16146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 eval "$as_ac_Header=\$ac_header_preproc"
16152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157 cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16165 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16166 -a "${ac_cv_header_poll_h}" = yes ; \
16168 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16169 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16170 if test "$cross_compiling" = yes; then
16171 echo "$as_me:$LINENO: result: no" >&5
16172 echo "${ECHO_T}no" >&6
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16180 int main(int argc, char **argv)
16182 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16183 exit (devpollfd == -1 ? 1 : 0);
16186 rm -f conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188 (eval $ac_link) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 echo "$as_me:$LINENO: result: yes" >&5
16198 echo "${ECHO_T}yes" >&6
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_DEVPOLL 1
16205 echo "$as_me: program exited with status $ac_status" >&5
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ( exit $ac_status )
16210 echo "$as_me:$LINENO: result: no" >&5
16211 echo "${ECHO_T}no" >&6
16213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16218 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16219 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16220 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 cat >conftest.$ac_ext <<_ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16232 #include <sys/types.h>
16235 #include <stdlib.h>
16240 char *c = (char *) *sys_errlist
16245 rm -f conftest.$ac_objext
16246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16247 (eval $ac_compile) 2>conftest.er1
16249 grep -v '^ *+' conftest.er1 >conftest.err
16251 cat conftest.err >&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
16254 { ac_try='test -z "$ac_c_werror_flag"
16255 || test ! -s conftest.err'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16267 ol_cv_dcl_sys_errlist=yes
16268 ol_cv_have_sys_errlist=yes
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ol_cv_dcl_sys_errlist=no
16275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16277 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16278 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16280 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16281 if test $ol_cv_dcl_sys_errlist = no ; then
16283 cat >>confdefs.h <<\_ACEOF
16284 #define DECL_SYS_ERRLIST 1
16288 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16289 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16290 if test "${ol_cv_have_sys_errlist+set}" = set; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16304 char *c = (char *) *sys_errlist
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311 (eval $ac_link) 2>conftest.er1
16313 grep -v '^ *+' conftest.er1 >conftest.err
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try='test -z "$ac_c_werror_flag"
16319 || test ! -s conftest.err'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16331 ol_cv_have_sys_errlist=yes
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ol_cv_have_sys_errlist=no
16338 rm -f conftest.err conftest.$ac_objext \
16339 conftest$ac_exeext conftest.$ac_ext
16341 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16342 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16344 if test $ol_cv_have_sys_errlist = yes ; then
16346 cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_SYS_ERRLIST 1
16353 for ac_func in strerror strerror_r
16355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16356 echo "$as_me:$LINENO: checking for $ac_func" >&5
16357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16358 if eval "test \"\${$as_ac_var+set}\" = set"; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16369 #define $ac_func innocuous_$ac_func
16371 /* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char $ac_func (); below.
16373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16374 <limits.h> exists even on freestanding compilers. */
16377 # include <limits.h>
16379 # include <assert.h>
16384 /* Override any gcc2 internal prototype to avoid an error. */
16389 /* We use char because int might match the return type of a gcc2
16390 builtin and then its argument prototype would still apply. */
16392 /* The GNU C library defines this for functions which it implements
16393 to always fail with ENOSYS. Some functions are actually named
16394 something starting with __ and the normal name is an alias. */
16395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16398 char (*f) () = $ac_func;
16407 return f != $ac_func;
16412 rm -f conftest.$ac_objext conftest$ac_exeext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414 (eval $ac_link) 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag"
16422 || test ! -s conftest.err'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16434 eval "$as_ac_var=yes"
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 eval "$as_ac_var=no"
16441 rm -f conftest.err conftest.$ac_objext \
16442 conftest$ac_exeext conftest.$ac_ext
16444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16446 if test `eval echo '${'$as_ac_var'}'` = yes; then
16447 cat >>confdefs.h <<_ACEOF
16448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16454 ol_cv_func_strerror_r=no
16455 if test "${ac_cv_func_strerror_r}" = yes ; then
16456 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16457 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16458 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include <string.h>
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471 $EGREP "strerror_r" >/dev/null 2>&1; then
16472 ol_decl_strerror_r=yes
16474 ol_decl_strerror_r=no
16478 if test $ol_decl_strerror_r = yes ; then
16479 cat >conftest.$ac_ext <<_ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 #include <string.h>
16489 /* from autoconf 2.59 */
16491 char x = *strerror_r (0, buf, sizeof buf);
16492 char *p = strerror_r (0, buf, sizeof buf);
16498 rm -f conftest.$ac_objext
16499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>conftest.er1
16502 grep -v '^ *+' conftest.er1 >conftest.err
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -z "$ac_c_werror_flag"
16508 || test ! -s conftest.err'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16520 ol_cv_nonposix_strerror_r=yes
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16525 ol_cv_nonposix_strerror_r=no
16527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16529 if test "$cross_compiling" = yes; then
16530 ol_cv_nonposix_strerror=no
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16542 strerror_r( 1, buf, sizeof buf );
16543 exit( buf[0] == 0 );
16547 rm -f conftest$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549 (eval $ac_link) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ol_cv_nonposix_strerror_r=yes
16560 echo "$as_me: program exited with status $ac_status" >&5
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ( exit $ac_status )
16565 ol_cv_nonposix_strerror=no
16567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16572 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16573 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16574 if test $ol_cv_nonposix_strerror_r = yes ; then
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_NONPOSIX_STRERROR_R 1
16582 elif test "${ac_cv_func_strerror}" = no ; then
16583 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16584 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16585 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16597 #include <sys/types.h>
16600 #include <stdlib.h>
16605 char *c = (char *) *sys_errlist
16610 rm -f conftest.$ac_objext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16612 (eval $ac_compile) 2>conftest.er1
16614 grep -v '^ *+' conftest.er1 >conftest.err
16616 cat conftest.err >&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -z "$ac_c_werror_flag"
16620 || test ! -s conftest.err'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16632 ol_cv_dcl_sys_errlist=yes
16633 ol_cv_have_sys_errlist=yes
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 ol_cv_dcl_sys_errlist=no
16640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16642 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16643 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16645 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16646 if test $ol_cv_dcl_sys_errlist = no ; then
16648 cat >>confdefs.h <<\_ACEOF
16649 #define DECL_SYS_ERRLIST 1
16653 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16654 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16655 if test "${ol_cv_have_sys_errlist+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 cat >conftest.$ac_ext <<_ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16669 char *c = (char *) *sys_errlist
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16678 grep -v '^ *+' conftest.er1 >conftest.err
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16696 ol_cv_have_sys_errlist=yes
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 ol_cv_have_sys_errlist=no
16703 rm -f conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16707 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16709 if test $ol_cv_have_sys_errlist = yes ; then
16711 cat >>confdefs.h <<\_ACEOF
16712 #define HAVE_SYS_ERRLIST 1
16721 for ac_header in regex.h
16723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16724 echo "$as_me:$LINENO: checking for $ac_header" >&5
16725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16736 #ifdef HAVE_SYS_TYPES_H
16737 #include <sys/types.h>
16741 #include <$ac_header>
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16747 grep -v '^ *+' conftest.er1 >conftest.err
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag"
16753 || test ! -s conftest.err'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16765 eval "$as_ac_Header=yes"
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 eval "$as_ac_Header=no"
16772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16777 cat >>confdefs.h <<_ACEOF
16778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16786 if test "$ac_cv_header_regex_h" != yes ; then
16787 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16788 echo "$as_me: error: POSIX regex.h required." >&2;}
16789 { (exit 1); exit 1; }; }
16791 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16792 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16793 if test "${ac_cv_search_regfree+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 ac_func_search_save_LIBS=$LIBS
16797 ac_cv_search_regfree=no
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16805 /* Override any gcc2 internal prototype to avoid an error. */
16809 /* We use char because int might match the return type of a gcc2
16810 builtin and then its argument prototype would still apply. */
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16822 (eval $ac_link) 2>conftest.er1
16824 grep -v '^ *+' conftest.er1 >conftest.err
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag"
16830 || test ! -s conftest.err'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; } &&
16836 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16842 ac_cv_search_regfree="none required"
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16848 rm -f conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16850 if test "$ac_cv_search_regfree" = no; then
16851 for ac_lib in regex gnuregex; do
16852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16860 /* Override any gcc2 internal prototype to avoid an error. */
16864 /* We use char because int might match the return type of a gcc2
16865 builtin and then its argument prototype would still apply. */
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877 (eval $ac_link) 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -z "$ac_c_werror_flag"
16885 || test ! -s conftest.err'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } &&
16891 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16897 ac_cv_search_regfree="-l$ac_lib"
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16904 rm -f conftest.err conftest.$ac_objext \
16905 conftest$ac_exeext conftest.$ac_ext
16908 LIBS=$ac_func_search_save_LIBS
16910 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16911 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16912 if test "$ac_cv_search_regfree" != no; then
16913 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16916 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16917 echo "$as_me: error: POSIX regex required." >&2;}
16918 { (exit 1); exit 1; }; }
16923 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16924 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16925 if test "${ol_cv_c_posix_regex+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 if test "$cross_compiling" = yes; then
16930 ol_cv_c_posix_regex=cross
16932 cat >conftest.$ac_ext <<_ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16939 #include <sys/types.h>
16941 static char *pattern, *string;
16949 if(regcomp(&re, pattern, 0)) {
16953 string = "ALL MATCH";
16955 rc = regexec(&re, string, 0, (void*)0, 0);
16962 rm -f conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964 (eval $ac_link) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ol_cv_c_posix_regex=yes
16975 echo "$as_me: program exited with status $ac_status" >&5
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ( exit $ac_status )
16980 ol_cv_c_posix_regex=no
16982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16985 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16986 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16988 if test "$ol_cv_c_posix_regex" = no ; then
16989 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16990 echo "$as_me: error: broken POSIX regex!" >&2;}
16991 { (exit 1); exit 1; }; }
16997 for ac_header in sys/uuid.h
16999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17001 echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17009 # Is the header compilable?
17010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17012 cat >conftest.$ac_ext <<_ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018 $ac_includes_default
17019 #include <$ac_header>
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023 (eval $ac_compile) 2>conftest.er1
17025 grep -v '^ *+' conftest.er1 >conftest.err
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try='test -z "$ac_c_werror_flag"
17031 || test ! -s conftest.err'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17043 ac_header_compiler=yes
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_header_compiler=no
17050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17052 echo "${ECHO_T}$ac_header_compiler" >&6
17054 # Is the header present?
17055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <$ac_header>
17065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17068 grep -v '^ *+' conftest.er1 >conftest.err
17070 cat conftest.err >&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } >/dev/null; then
17073 if test -s conftest.err; then
17074 ac_cpp_err=$ac_c_preproc_warn_flag
17075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17082 if test -z "$ac_cpp_err"; then
17083 ac_header_preproc=yes
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_header_preproc=no
17090 rm -f conftest.err conftest.$ac_ext
17091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17092 echo "${ECHO_T}$ac_header_preproc" >&6
17094 # So? What about this header?
17095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17101 ac_header_preproc=yes
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17118 ## --------------------------------------------- ##
17119 ## Report this to <http://www.openldap.org/its/> ##
17120 ## --------------------------------------------- ##
17123 sed "s/^/$as_me: WARNING: /" >&2
17126 echo "$as_me:$LINENO: checking for $ac_header" >&5
17127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 eval "$as_ac_Header=\$ac_header_preproc"
17133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17138 cat >>confdefs.h <<_ACEOF
17139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17146 if test $ac_cv_header_sys_uuid_h = yes ; then
17148 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17149 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17150 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 ac_func_search_save_LIBS=$LIBS
17154 ac_cv_search_uuid_to_str=no
17155 cat >conftest.$ac_ext <<_ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17162 /* Override any gcc2 internal prototype to avoid an error. */
17166 /* We use char because int might match the return type of a gcc2
17167 builtin and then its argument prototype would still apply. */
17168 char uuid_to_str ();
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179 (eval $ac_link) 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17199 ac_cv_search_uuid_to_str="none required"
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17205 rm -f conftest.err conftest.$ac_objext \
17206 conftest$ac_exeext conftest.$ac_ext
17207 if test "$ac_cv_search_uuid_to_str" = no; then
17208 for ac_lib in uuid; do
17209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any gcc2 internal prototype to avoid an error. */
17221 /* We use char because int might match the return type of a gcc2
17222 builtin and then its argument prototype would still apply. */
17223 char uuid_to_str ();
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234 (eval $ac_link) 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag"
17242 || test ! -s conftest.err'
17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17254 ac_cv_search_uuid_to_str="-l$ac_lib"
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17261 rm -f conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17265 LIBS=$ac_func_search_save_LIBS
17267 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17268 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17269 if test "$ac_cv_search_uuid_to_str" != no; then
17270 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17278 if test have_uuid = yes ; then
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_UUID_TO_STR 1
17285 test "$ac_cv_search_uuid_to_str" = "none required" || \
17286 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17290 if test $have_uuid = no ; then
17292 for ac_header in uuid/uuid.h
17294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296 echo "$as_me:$LINENO: checking for $ac_header" >&5
17297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17304 # Is the header compilable?
17305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 $ac_includes_default
17314 #include <$ac_header>
17316 rm -f conftest.$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318 (eval $ac_compile) 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17338 ac_header_compiler=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_header_compiler=no
17345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17347 echo "${ECHO_T}$ac_header_compiler" >&6
17349 # Is the header present?
17350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17352 cat >conftest.$ac_ext <<_ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17358 #include <$ac_header>
17360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } >/dev/null; then
17368 if test -s conftest.err; then
17369 ac_cpp_err=$ac_c_preproc_warn_flag
17370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17377 if test -z "$ac_cpp_err"; then
17378 ac_header_preproc=yes
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ac_header_preproc=no
17385 rm -f conftest.err conftest.$ac_ext
17386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17387 echo "${ECHO_T}$ac_header_preproc" >&6
17389 # So? What about this header?
17390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17396 ac_header_preproc=yes
17399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17413 ## --------------------------------------------- ##
17414 ## Report this to <http://www.openldap.org/its/> ##
17415 ## --------------------------------------------- ##
17418 sed "s/^/$as_me: WARNING: /" >&2
17421 echo "$as_me:$LINENO: checking for $ac_header" >&5
17422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 eval "$as_ac_Header=\$ac_header_preproc"
17428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17433 cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17441 if test $ac_cv_header_uuid_uuid_h = yes ; then
17443 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17444 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17445 if test "${ac_cv_search_uuid_generate+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 ac_func_search_save_LIBS=$LIBS
17449 ac_cv_search_uuid_generate=no
17450 cat >conftest.$ac_ext <<_ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17457 /* Override any gcc2 internal prototype to avoid an error. */
17461 /* We use char because int might match the return type of a gcc2
17462 builtin and then its argument prototype would still apply. */
17463 char uuid_generate ();
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474 (eval $ac_link) 2>conftest.er1
17476 grep -v '^ *+' conftest.er1 >conftest.err
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag"
17482 || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest$ac_exeext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_cv_search_uuid_generate="none required"
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17500 rm -f conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17502 if test "$ac_cv_search_uuid_generate" = no; then
17503 for ac_lib in uuid; do
17504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17505 cat >conftest.$ac_ext <<_ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17512 /* Override any gcc2 internal prototype to avoid an error. */
17516 /* We use char because int might match the return type of a gcc2
17517 builtin and then its argument prototype would still apply. */
17518 char uuid_generate ();
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag"
17537 || test ! -s conftest.err'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_cv_search_uuid_generate="-l$ac_lib"
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17556 rm -f conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17560 LIBS=$ac_func_search_save_LIBS
17562 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17563 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17564 if test "$ac_cv_search_uuid_generate" != no; then
17565 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17573 if test have_uuid = yes ; then
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_UUID_GENERATE 1
17580 test "$ac_cv_search_uuid_generate" = "none required" || \
17581 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17586 if test $have_uuid = no ; then
17587 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17588 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17590 LIBS="$LIBS -lrpcrt4"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17598 int __stdcall UuidCreate(void *);
17599 int __stdcall UuidToStringA(void *,void **);
17606 UuidToStringA(0,0);
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag"
17622 || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17641 rm -f conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 if test $need_rpcrt = yes; then
17644 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17647 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17648 echo "${ECHO_T}$need_rpcrt" >&6
17651 ol_cv_lib_resolver=no
17652 if test $ol_cv_lib_resolver = no ; then
17653 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17654 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17655 if test "${ol_cv_resolver_none+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 LIBS="$ol_RESOLVER_LIB $LIBS"
17663 cat >conftest.$ac_ext <<_ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17670 #ifdef HAVE_SYS_TYPES_H
17671 # include <sys/types.h>
17673 #include <netinet/in.h>
17674 #ifdef HAVE_ARPA_NAMESER_H
17675 # include <arpa/nameser.h>
17677 #ifdef HAVE_RESOLV_H
17678 # include <resolv.h>
17686 char *request = NULL;
17687 unsigned char reply[64*1024];
17688 unsigned char host[64*1024];
17692 /* Bind 8/9 interface */
17693 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17695 /* Bind 4 interface */
17699 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17703 /* Bind 8/9 interface */
17705 #elif defined(HFIXEDSZ)
17706 /* Bind 4 interface w/ HFIXEDSZ */
17709 /* Bind 4 interface w/o HFIXEDSZ */
17710 p += sizeof(HEADER);
17712 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ol_cv_resolver_none=yes
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 ol_cv_resolver_none=no
17747 rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17753 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17754 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17756 if test $ol_cv_resolver_none = yes ; then
17757 ol_cv_lib_resolver=yes
17761 if test $ol_cv_lib_resolver = no ; then
17762 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17763 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17764 if test "${ol_cv_resolver_resolv+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 ol_RESOLVER_LIB=-lresolv
17770 LIBS="$ol_RESOLVER_LIB $LIBS"
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17779 #ifdef HAVE_SYS_TYPES_H
17780 # include <sys/types.h>
17782 #include <netinet/in.h>
17783 #ifdef HAVE_ARPA_NAMESER_H
17784 # include <arpa/nameser.h>
17786 #ifdef HAVE_RESOLV_H
17787 # include <resolv.h>
17795 char *request = NULL;
17796 unsigned char reply[64*1024];
17797 unsigned char host[64*1024];
17801 /* Bind 8/9 interface */
17802 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17804 /* Bind 4 interface */
17808 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17812 /* Bind 8/9 interface */
17814 #elif defined(HFIXEDSZ)
17815 /* Bind 4 interface w/ HFIXEDSZ */
17818 /* Bind 4 interface w/o HFIXEDSZ */
17819 p += sizeof(HEADER);
17821 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829 (eval $ac_link) 2>conftest.er1
17831 grep -v '^ *+' conftest.er1 >conftest.err
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_c_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest$ac_exeext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 ol_cv_resolver_resolv=yes
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 ol_cv_resolver_resolv=no
17856 rm -f conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17862 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17863 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17865 if test $ol_cv_resolver_resolv = yes ; then
17866 ol_cv_lib_resolver=-lresolv
17870 if test $ol_cv_lib_resolver = no ; then
17871 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17872 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17873 if test "${ol_cv_resolver_bind+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 ol_RESOLVER_LIB=-lbind
17879 LIBS="$ol_RESOLVER_LIB $LIBS"
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17888 #ifdef HAVE_SYS_TYPES_H
17889 # include <sys/types.h>
17891 #include <netinet/in.h>
17892 #ifdef HAVE_ARPA_NAMESER_H
17893 # include <arpa/nameser.h>
17895 #ifdef HAVE_RESOLV_H
17896 # include <resolv.h>
17904 char *request = NULL;
17905 unsigned char reply[64*1024];
17906 unsigned char host[64*1024];
17910 /* Bind 8/9 interface */
17911 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17913 /* Bind 4 interface */
17917 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17921 /* Bind 8/9 interface */
17923 #elif defined(HFIXEDSZ)
17924 /* Bind 4 interface w/ HFIXEDSZ */
17927 /* Bind 4 interface w/o HFIXEDSZ */
17928 p += sizeof(HEADER);
17930 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag"
17946 || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest$ac_exeext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ol_cv_resolver_bind=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ol_cv_resolver_bind=no
17965 rm -f conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17971 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17972 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17974 if test $ol_cv_resolver_bind = yes ; then
17975 ol_cv_lib_resolver=-lbind
17982 if test "$ol_cv_lib_resolver" != no ; then
17984 cat >>confdefs.h <<\_ACEOF
17985 #define HAVE_RES_QUERY 1
17989 if test "$ol_enable_dnssrv" != no ; then
17993 if test "$ol_cv_lib_resolver" != yes ; then
17994 LIBS="$ol_cv_lib_resolver $LIBS"
17998 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17999 if test "$ol_link_dnssrv" = no ; then
18000 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18001 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18002 { (exit 1); exit 1; }; }
18005 ol_enable_dnssrv=no
18009 for ac_func in hstrerror
18011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18012 echo "$as_me:$LINENO: checking for $ac_func" >&5
18013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18014 if eval "test \"\${$as_ac_var+set}\" = set"; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 cat >conftest.$ac_ext <<_ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18025 #define $ac_func innocuous_$ac_func
18027 /* System header to define __stub macros and hopefully few prototypes,
18028 which can conflict with char $ac_func (); below.
18029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18030 <limits.h> exists even on freestanding compilers. */
18033 # include <limits.h>
18035 # include <assert.h>
18040 /* Override any gcc2 internal prototype to avoid an error. */
18045 /* We use char because int might match the return type of a gcc2
18046 builtin and then its argument prototype would still apply. */
18048 /* The GNU C library defines this for functions which it implements
18049 to always fail with ENOSYS. Some functions are actually named
18050 something starting with __ and the normal name is an alias. */
18051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18054 char (*f) () = $ac_func;
18063 return f != $ac_func;
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070 (eval $ac_link) 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag"
18078 || test ! -s conftest.err'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 eval "$as_ac_var=yes"
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 eval "$as_ac_var=no"
18097 rm -f conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
18100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18102 if test `eval echo '${'$as_ac_var'}'` = yes; then
18103 cat >>confdefs.h <<_ACEOF
18104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18115 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18118 echo "$as_me:$LINENO: checking for $ac_func" >&5
18119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18120 if eval "test \"\${$as_ac_var+set}\" = set"; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18131 #define $ac_func innocuous_$ac_func
18133 /* System header to define __stub macros and hopefully few prototypes,
18134 which can conflict with char $ac_func (); below.
18135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136 <limits.h> exists even on freestanding compilers. */
18139 # include <limits.h>
18141 # include <assert.h>
18146 /* Override any gcc2 internal prototype to avoid an error. */
18151 /* We use char because int might match the return type of a gcc2
18152 builtin and then its argument prototype would still apply. */
18154 /* The GNU C library defines this for functions which it implements
18155 to always fail with ENOSYS. Some functions are actually named
18156 something starting with __ and the normal name is an alias. */
18157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18160 char (*f) () = $ac_func;
18169 return f != $ac_func;
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176 (eval $ac_link) 2>conftest.er1
18178 grep -v '^ *+' conftest.er1 >conftest.err
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest$ac_exeext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 eval "$as_ac_var=yes"
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 eval "$as_ac_var=no"
18203 rm -f conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18208 if test `eval echo '${'$as_ac_var'}'` = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18218 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18219 if test $ol_enable_ipv6 = yes ; then
18220 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18221 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18222 { (exit 1); exit 1; }; }
18224 elif test $ol_enable_ipv6 != no ; then
18225 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18226 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18227 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 cat >conftest.$ac_ext <<_ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18238 # include <netinet/in.h>
18239 # ifdef INET6_ADDRSTRLEN
18240 __has_inet6_addrstrlen__;
18244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18245 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18246 ol_cv_inet6_addrstrlen=yes
18248 ol_cv_inet6_addrstrlen=no
18253 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18254 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18257 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18258 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18259 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 cat >conftest.$ac_ext <<_ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18270 #include <sys/types.h>
18271 #include <sys/socket.h>
18277 struct sockaddr_storage ss;
18283 rm -f conftest.$ac_objext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285 (eval $ac_compile) 2>conftest.er1
18287 grep -v '^ *+' conftest.er1 >conftest.err
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
18292 { ac_try='test -z "$ac_c_werror_flag"
18293 || test ! -s conftest.err'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest.$ac_objext'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; }; then
18305 ol_cv_struct_sockaddr_storage=yes
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18310 ol_cv_struct_sockaddr_storage=no
18312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18314 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18315 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18317 if test $ol_cv_inet6_addrstrlen = yes &&
18318 test $ol_cv_struct_sockaddr_storage = yes ; then
18320 elif test $ol_enable_ipv6 = yes &&
18321 test $ol_cv_inet6_addrstrlen = no ; then
18322 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18323 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18324 { (exit 1); exit 1; }; }
18325 elif test $ol_enable_ipv6 = yes &&
18326 test $ol_cv_struct_sockaddr_storage = no ; then
18327 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18328 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18329 { (exit 1); exit 1; }; }
18333 if test $ol_enable_local != no ; then
18335 for ac_header in sys/un.h
18337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18339 echo "$as_me:$LINENO: checking for $ac_header" >&5
18340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18347 # Is the header compilable?
18348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 $ac_includes_default
18357 #include <$ac_header>
18359 rm -f conftest.$ac_objext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18361 (eval $ac_compile) 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag"
18369 || test ! -s conftest.err'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest.$ac_objext'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 ac_header_compiler=yes
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 ac_header_compiler=no
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18390 echo "${ECHO_T}$ac_header_compiler" >&6
18392 # Is the header present?
18393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 #include <$ac_header>
18403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18406 grep -v '^ *+' conftest.er1 >conftest.err
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } >/dev/null; then
18411 if test -s conftest.err; then
18412 ac_cpp_err=$ac_c_preproc_warn_flag
18413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18420 if test -z "$ac_cpp_err"; then
18421 ac_header_preproc=yes
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_header_preproc=no
18428 rm -f conftest.err conftest.$ac_ext
18429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18430 echo "${ECHO_T}$ac_header_preproc" >&6
18432 # So? What about this header?
18433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18439 ac_header_preproc=yes
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18456 ## --------------------------------------------- ##
18457 ## Report this to <http://www.openldap.org/its/> ##
18458 ## --------------------------------------------- ##
18461 sed "s/^/$as_me: WARNING: /" >&2
18464 echo "$as_me:$LINENO: checking for $ac_header" >&5
18465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 eval "$as_ac_Header=\$ac_header_preproc"
18471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18476 cat >>confdefs.h <<_ACEOF
18477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18485 if test $ol_enable_local = auto ; then
18486 ol_enable_local=$ac_cv_header_sys_un_h
18487 elif test $ac_cv_header_sys_un_h = no ; then
18488 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18489 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18490 { (exit 1); exit 1; }; }
18495 if test $ol_with_tls = yes ; then
18500 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18502 for ac_header in openssl/ssl.h
18504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18506 echo "$as_me:$LINENO: checking for $ac_header" >&5
18507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18514 # Is the header compilable?
18515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 $ac_includes_default
18524 #include <$ac_header>
18526 rm -f conftest.$ac_objext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528 (eval $ac_compile) 2>conftest.er1
18530 grep -v '^ *+' conftest.er1 >conftest.err
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag"
18536 || test ! -s conftest.err'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest.$ac_objext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 ac_header_compiler=yes
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 ac_header_compiler=no
18555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18557 echo "${ECHO_T}$ac_header_compiler" >&6
18559 # Is the header present?
18560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18562 cat >conftest.$ac_ext <<_ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 #include <$ac_header>
18570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18573 grep -v '^ *+' conftest.er1 >conftest.err
18575 cat conftest.err >&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } >/dev/null; then
18578 if test -s conftest.err; then
18579 ac_cpp_err=$ac_c_preproc_warn_flag
18580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18587 if test -z "$ac_cpp_err"; then
18588 ac_header_preproc=yes
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 ac_header_preproc=no
18595 rm -f conftest.err conftest.$ac_ext
18596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18597 echo "${ECHO_T}$ac_header_preproc" >&6
18599 # So? What about this header?
18600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18606 ac_header_preproc=yes
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18623 ## --------------------------------------------- ##
18624 ## Report this to <http://www.openldap.org/its/> ##
18625 ## --------------------------------------------- ##
18628 sed "s/^/$as_me: WARNING: /" >&2
18631 echo "$as_me:$LINENO: checking for $ac_header" >&5
18632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 eval "$as_ac_Header=\$ac_header_preproc"
18638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18643 cat >>confdefs.h <<_ACEOF
18644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18652 if test $ac_cv_header_openssl_ssl_h = yes ; then
18653 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18654 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18655 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-lssl -lcrypto $LIBS"
18660 cat >conftest.$ac_ext <<_ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18667 /* Override any gcc2 internal prototype to avoid an error. */
18671 /* We use char because int might match the return type of a gcc2
18672 builtin and then its argument prototype would still apply. */
18673 char SSL_library_init ();
18677 SSL_library_init ();
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684 (eval $ac_link) 2>conftest.er1
18686 grep -v '^ *+' conftest.er1 >conftest.err
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try='test -z "$ac_c_werror_flag"
18692 || test ! -s conftest.err'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_lib_ssl_SSL_library_init=yes
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 ac_cv_lib_ssl_SSL_library_init=no
18711 rm -f conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18715 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18716 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18717 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18725 if test $have_openssl = no ; then
18726 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18727 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18728 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18733 cat >conftest.$ac_ext <<_ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18740 /* Override any gcc2 internal prototype to avoid an error. */
18744 /* We use char because int might match the return type of a gcc2
18745 builtin and then its argument prototype would still apply. */
18746 char ssl3_accept ();
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>conftest.er1
18759 grep -v '^ *+' conftest.er1 >conftest.err
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
18764 { ac_try='test -z "$ac_c_werror_flag"
18765 || test ! -s conftest.err'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest$ac_exeext'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_cv_lib_ssl_ssl3_accept=yes
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_cv_lib_ssl_ssl3_accept=no
18784 rm -f conftest.err conftest.$ac_objext \
18785 conftest$ac_exeext conftest.$ac_ext
18786 LIBS=$ac_check_lib_save_LIBS
18788 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18789 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18790 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18799 if test $have_openssl = yes ; then
18800 ol_with_tls=openssl
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_OPENSSL 1
18809 if test $need_rsaref = yes; then
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_RSAREF 1
18816 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18818 TLS_LIBS="-lssl -lcrypto"
18821 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18822 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18823 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 cat >conftest.$ac_ext <<_ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18834 #ifdef HAVE_OPENSSL_SSL_H
18835 #include <openssl/ssl.h>
18838 /* Require 0.9.7d+ */
18839 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18840 char *__ssl_compat = "0.9.7d";
18844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18845 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18846 ol_cv_ssl_crl_compat=yes
18848 ol_cv_ssl_crl_compat=no
18853 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18854 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18856 if test $ol_cv_ssl_crl_compat = yes ; then
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_OPENSSL_CRL 1
18867 if test $ol_link_tls = no ; then
18868 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18870 for ac_header in gnutls/gnutls.h
18872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18874 echo "$as_me:$LINENO: checking for $ac_header" >&5
18875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18882 # Is the header compilable?
18883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 $ac_includes_default
18892 #include <$ac_header>
18894 rm -f conftest.$ac_objext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896 (eval $ac_compile) 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag"
18904 || test ! -s conftest.err'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; } &&
18910 { ac_try='test -s conftest.$ac_objext'
18911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; }; then
18916 ac_header_compiler=yes
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_header_compiler=no
18923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18925 echo "${ECHO_T}$ac_header_compiler" >&6
18927 # Is the header present?
18928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 #include <$ac_header>
18938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18941 grep -v '^ *+' conftest.er1 >conftest.err
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } >/dev/null; then
18946 if test -s conftest.err; then
18947 ac_cpp_err=$ac_c_preproc_warn_flag
18948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18955 if test -z "$ac_cpp_err"; then
18956 ac_header_preproc=yes
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_preproc=no
18963 rm -f conftest.err conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18965 echo "${ECHO_T}$ac_header_preproc" >&6
18967 # So? What about this header?
18968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18974 ac_header_preproc=yes
18977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18991 ## --------------------------------------------- ##
18992 ## Report this to <http://www.openldap.org/its/> ##
18993 ## --------------------------------------------- ##
18996 sed "s/^/$as_me: WARNING: /" >&2
18999 echo "$as_me:$LINENO: checking for $ac_header" >&5
19000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 eval "$as_ac_Header=\$ac_header_preproc"
19006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19011 cat >>confdefs.h <<_ACEOF
19012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19020 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19021 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19022 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19023 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 ac_check_lib_save_LIBS=$LIBS
19027 LIBS="-lgnutls $LIBS"
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19035 /* Override any gcc2 internal prototype to avoid an error. */
19039 /* We use char because int might match the return type of a gcc2
19040 builtin and then its argument prototype would still apply. */
19041 char gnutls_init ();
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19052 (eval $ac_link) 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_c_werror_flag"
19060 || test ! -s conftest.err'
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; } &&
19066 { ac_try='test -s conftest$ac_exeext'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_cv_lib_gnutls_gnutls_init=yes
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 ac_cv_lib_gnutls_gnutls_init=no
19079 rm -f conftest.err conftest.$ac_objext \
19080 conftest$ac_exeext conftest.$ac_ext
19081 LIBS=$ac_check_lib_save_LIBS
19083 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19084 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19085 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19092 if test $have_gnutls = yes ; then
19096 TLS_LIBS="-lgnutls"
19099 cat >>confdefs.h <<\_ACEOF
19100 #define HAVE_GNUTLS 1
19109 if test $ol_link_tls = yes ; then
19111 cat >>confdefs.h <<\_ACEOF
19116 elif test $ol_with_tls = auto ; then
19117 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19118 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19119 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19120 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19121 elif test $ol_with_tls != no ; then
19122 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19123 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19124 { (exit 1); exit 1; }; }
19126 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19127 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19130 if test $ol_enable_lmpasswd != no; then
19131 if test $ol_link_tls != yes ; then
19132 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19133 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19134 { (exit 1); exit 1; }; }
19138 cat >>confdefs.h <<\_ACEOF
19139 #define SLAPD_LMHASH 1
19146 case $ol_with_threads in auto | yes | nt)
19149 echo "$as_me:$LINENO: checking for _beginthread" >&5
19150 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19151 if test "${ac_cv_func__beginthread+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19162 #define _beginthread innocuous__beginthread
19164 /* System header to define __stub macros and hopefully few prototypes,
19165 which can conflict with char _beginthread (); below.
19166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19167 <limits.h> exists even on freestanding compilers. */
19170 # include <limits.h>
19172 # include <assert.h>
19175 #undef _beginthread
19177 /* Override any gcc2 internal prototype to avoid an error. */
19182 /* We use char because int might match the return type of a gcc2
19183 builtin and then its argument prototype would still apply. */
19184 char _beginthread ();
19185 /* The GNU C library defines this for functions which it implements
19186 to always fail with ENOSYS. Some functions are actually named
19187 something starting with __ and the normal name is an alias. */
19188 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19191 char (*f) () = _beginthread;
19200 return f != _beginthread;
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207 (eval $ac_link) 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
19214 { ac_try='test -z "$ac_c_werror_flag"
19215 || test ! -s conftest.err'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest$ac_exeext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_func__beginthread=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_func__beginthread=no
19234 rm -f conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19237 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19238 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19241 if test $ac_cv_func__beginthread = yes ; then
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE_NT_THREADS 1
19247 ol_cv_nt_threads=yes
19251 if test "$ol_cv_nt_threads" = yes ; then
19253 ol_with_threads=found
19254 ol_with_yielding_select=yes
19257 cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_NT_SERVICE_MANAGER 1
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_NT_EVENT_LOG 1
19268 if test $ol_with_threads = nt ; then
19269 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19270 echo "$as_me: error: could not locate NT Threads" >&2;}
19271 { (exit 1); exit 1; }; }
19276 case $ol_with_threads in auto | yes | posix)
19279 for ac_header in pthread.h
19281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19283 echo "$as_me:$LINENO: checking for $ac_header" >&5
19284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19291 # Is the header compilable?
19292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 $ac_includes_default
19301 #include <$ac_header>
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305 (eval $ac_compile) 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_header_compiler=yes
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_header_compiler=no
19332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19334 echo "${ECHO_T}$ac_header_compiler" >&6
19336 # Is the header present?
19337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #include <$ac_header>
19347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } >/dev/null; then
19355 if test -s conftest.err; then
19356 ac_cpp_err=$ac_c_preproc_warn_flag
19357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19364 if test -z "$ac_cpp_err"; then
19365 ac_header_preproc=yes
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 ac_header_preproc=no
19372 rm -f conftest.err conftest.$ac_ext
19373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19374 echo "${ECHO_T}$ac_header_preproc" >&6
19376 # So? What about this header?
19377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19383 ac_header_preproc=yes
19386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19400 ## --------------------------------------------- ##
19401 ## Report this to <http://www.openldap.org/its/> ##
19402 ## --------------------------------------------- ##
19405 sed "s/^/$as_me: WARNING: /" >&2
19408 echo "$as_me:$LINENO: checking for $ac_header" >&5
19409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 eval "$as_ac_Header=\$ac_header_preproc"
19415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19420 cat >>confdefs.h <<_ACEOF
19421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19429 if test $ac_cv_header_pthread_h = yes ; then
19430 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19431 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19432 if test "${ol_cv_pthread_version+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 cat >conftest.$ac_ext <<_ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19443 # include <pthread.h>
19449 int i = PTHREAD_CREATE_JOINABLE;
19455 rm -f conftest.$ac_objext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_c_werror_flag"
19465 || test ! -s conftest.err'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest.$ac_objext'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <pthread.h>
19487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19488 $EGREP "pthread_detach" >/dev/null 2>&1; then
19489 ol_cv_pthread_version=10
19491 ol_cv_pthread_version=8
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19507 # include <pthread.h>
19508 # ifdef PTHREAD_CREATE_UNDETACHED
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514 $EGREP "draft7" >/dev/null 2>&1; then
19515 ol_cv_pthread_version=7
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524 #include <pthread.h>
19527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19528 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19529 ol_cv_pthread_version=6
19532 cat >conftest.$ac_ext <<_ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19539 # include <pthread.h>
19540 #ifdef PTHREAD_MUTEX_INITIALIZER
19545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19546 $EGREP "draft5" >/dev/null 2>&1; then
19547 ol_cv_pthread_version=5
19549 ol_cv_pthread_version=4
19560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19563 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19564 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19567 if test $ol_cv_pthread_version != 0 ; then
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_PTHREADS $ol_cv_pthread_version
19574 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19575 echo "$as_me: error: unknown pthread version" >&2;}
19576 { (exit 1); exit 1; }; }
19579 # consider threads found
19580 ol_with_threads=found
19583 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19584 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19585 if test "${ol_cv_header_linux_threads+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19594 #include <pthread.h>
19596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19597 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19598 ol_cv_header_linux_threads=yes
19600 ol_cv_header_linux_threads=no
19606 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19607 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19608 if test $ol_cv_header_linux_threads = yes; then
19610 cat >>confdefs.h <<\_ACEOF
19611 #define HAVE_LINUX_THREADS 1
19617 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19618 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19619 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 #include <pthread.h>
19629 #ifdef _POSIX_THREAD_IS_GNU_PTH
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19636 ol_cv_header_gnu_pth_pthread_h=yes
19638 ol_cv_header_gnu_pth_pthread_h=no
19644 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19645 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19648 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19650 for ac_header in sched.h
19652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654 echo "$as_me:$LINENO: checking for $ac_header" >&5
19655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19662 # Is the header compilable?
19663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 $ac_includes_default
19672 #include <$ac_header>
19674 rm -f conftest.$ac_objext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19676 (eval $ac_compile) 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_c_werror_flag"
19684 || test ! -s conftest.err'
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); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_header_compiler=yes
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 ac_header_compiler=no
19703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19705 echo "${ECHO_T}$ac_header_compiler" >&6
19707 # Is the header present?
19708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19710 cat >conftest.$ac_ext <<_ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19716 #include <$ac_header>
19718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } >/dev/null; then
19726 if test -s conftest.err; then
19727 ac_cpp_err=$ac_c_preproc_warn_flag
19728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19735 if test -z "$ac_cpp_err"; then
19736 ac_header_preproc=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_header_preproc=no
19743 rm -f conftest.err conftest.$ac_ext
19744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19745 echo "${ECHO_T}$ac_header_preproc" >&6
19747 # So? What about this header?
19748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19754 ac_header_preproc=yes
19757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19771 ## --------------------------------------------- ##
19772 ## Report this to <http://www.openldap.org/its/> ##
19773 ## --------------------------------------------- ##
19776 sed "s/^/$as_me: WARNING: /" >&2
19779 echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 eval "$as_ac_Header=\$ac_header_preproc"
19786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19791 cat >>confdefs.h <<_ACEOF
19792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19802 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19803 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19804 if test "${ol_cv_pthread_create+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 if test "$cross_compiling" = yes; then
19809 cat >conftest.$ac_ext <<_ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19816 /* pthread test headers */
19817 #include <pthread.h>
19818 #if HAVE_PTHREADS < 7
19822 #define NULL (void*)0
19825 static void *task(p)
19828 return (void *) (p == NULL);
19835 /* pthread test function */
19836 #ifndef PTHREAD_CREATE_DETACHED
19837 #define PTHREAD_CREATE_DETACHED 1
19841 int detach = PTHREAD_CREATE_DETACHED;
19843 #if HAVE_PTHREADS > 4
19844 /* Final pthreads */
19845 pthread_attr_t attr;
19847 status = pthread_attr_init(&attr);
19848 if( status ) return status;
19850 #if HAVE_PTHREADS < 7
19851 status = pthread_attr_setdetachstate(&attr, &detach);
19852 if( status < 0 ) status = errno;
19854 status = pthread_attr_setdetachstate(&attr, detach);
19856 if( status ) return status;
19857 status = pthread_create( &t, &attr, task, NULL );
19858 #if HAVE_PTHREADS < 7
19859 if( status < 0 ) status = errno;
19861 if( status ) return status;
19863 /* Draft 4 pthreads */
19864 status = pthread_create( &t, pthread_attr_default, task, NULL );
19865 if( status ) return errno;
19867 /* give thread a chance to complete */
19868 /* it should remain joinable and hence detachable */
19871 status = pthread_detach( &t );
19872 if( status ) return errno;
19875 #ifdef HAVE_LINUX_THREADS
19876 pthread_kill_other_threads_np();
19885 rm -f conftest.$ac_objext conftest$ac_exeext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19887 (eval $ac_link) 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest$ac_exeext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ol_cv_pthread_create=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ol_cv_pthread_create=no
19914 rm -f conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19924 /* pthread test headers */
19925 #include <pthread.h>
19926 #if HAVE_PTHREADS < 7
19930 #define NULL (void*)0
19933 static void *task(p)
19936 return (void *) (p == NULL);
19940 int main(argc, argv)
19945 /* pthread test function */
19946 #ifndef PTHREAD_CREATE_DETACHED
19947 #define PTHREAD_CREATE_DETACHED 1
19951 int detach = PTHREAD_CREATE_DETACHED;
19953 #if HAVE_PTHREADS > 4
19954 /* Final pthreads */
19955 pthread_attr_t attr;
19957 status = pthread_attr_init(&attr);
19958 if( status ) return status;
19960 #if HAVE_PTHREADS < 7
19961 status = pthread_attr_setdetachstate(&attr, &detach);
19962 if( status < 0 ) status = errno;
19964 status = pthread_attr_setdetachstate(&attr, detach);
19966 if( status ) return status;
19967 status = pthread_create( &t, &attr, task, NULL );
19968 #if HAVE_PTHREADS < 7
19969 if( status < 0 ) status = errno;
19971 if( status ) return status;
19973 /* Draft 4 pthreads */
19974 status = pthread_create( &t, pthread_attr_default, task, NULL );
19975 if( status ) return errno;
19977 /* give thread a chance to complete */
19978 /* it should remain joinable and hence detachable */
19981 status = pthread_detach( &t );
19982 if( status ) return errno;
19985 #ifdef HAVE_LINUX_THREADS
19986 pthread_kill_other_threads_np();
19994 rm -f conftest$ac_exeext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996 (eval $ac_link) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ol_cv_pthread_create=yes
20007 echo "$as_me: program exited with status $ac_status" >&5
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20011 ( exit $ac_status )
20012 ol_cv_pthread_create=no
20014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20017 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20018 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20020 if test $ol_cv_pthread_create != no ; then
20021 ol_link_threads=posix
20022 ol_link_pthreads=""
20025 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20026 if test "$ol_link_threads" = no ; then
20028 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20029 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20030 if test "${ol_cv_pthread_kthread+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 LIBS="-kthread $LIBS"
20038 if test "$cross_compiling" = yes; then
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20046 /* pthread test headers */
20047 #include <pthread.h>
20048 #if HAVE_PTHREADS < 7
20052 #define NULL (void*)0
20055 static void *task(p)
20058 return (void *) (p == NULL);
20065 /* pthread test function */
20066 #ifndef PTHREAD_CREATE_DETACHED
20067 #define PTHREAD_CREATE_DETACHED 1
20071 int detach = PTHREAD_CREATE_DETACHED;
20073 #if HAVE_PTHREADS > 4
20074 /* Final pthreads */
20075 pthread_attr_t attr;
20077 status = pthread_attr_init(&attr);
20078 if( status ) return status;
20080 #if HAVE_PTHREADS < 7
20081 status = pthread_attr_setdetachstate(&attr, &detach);
20082 if( status < 0 ) status = errno;
20084 status = pthread_attr_setdetachstate(&attr, detach);
20086 if( status ) return status;
20087 status = pthread_create( &t, &attr, task, NULL );
20088 #if HAVE_PTHREADS < 7
20089 if( status < 0 ) status = errno;
20091 if( status ) return status;
20093 /* Draft 4 pthreads */
20094 status = pthread_create( &t, pthread_attr_default, task, NULL );
20095 if( status ) return errno;
20097 /* give thread a chance to complete */
20098 /* it should remain joinable and hence detachable */
20101 status = pthread_detach( &t );
20102 if( status ) return errno;
20105 #ifdef HAVE_LINUX_THREADS
20106 pthread_kill_other_threads_np();
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20117 (eval $ac_link) 2>conftest.er1
20119 grep -v '^ *+' conftest.er1 >conftest.err
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } &&
20124 { ac_try='test -z "$ac_c_werror_flag"
20125 || test ! -s conftest.err'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; } &&
20131 { ac_try='test -s conftest$ac_exeext'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
20137 ol_cv_pthread_kthread=yes
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20142 ol_cv_pthread_kthread=no
20144 rm -f conftest.err conftest.$ac_objext \
20145 conftest$ac_exeext conftest.$ac_ext
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20154 /* pthread test headers */
20155 #include <pthread.h>
20156 #if HAVE_PTHREADS < 7
20160 #define NULL (void*)0
20163 static void *task(p)
20166 return (void *) (p == NULL);
20170 int main(argc, argv)
20175 /* pthread test function */
20176 #ifndef PTHREAD_CREATE_DETACHED
20177 #define PTHREAD_CREATE_DETACHED 1
20181 int detach = PTHREAD_CREATE_DETACHED;
20183 #if HAVE_PTHREADS > 4
20184 /* Final pthreads */
20185 pthread_attr_t attr;
20187 status = pthread_attr_init(&attr);
20188 if( status ) return status;
20190 #if HAVE_PTHREADS < 7
20191 status = pthread_attr_setdetachstate(&attr, &detach);
20192 if( status < 0 ) status = errno;
20194 status = pthread_attr_setdetachstate(&attr, detach);
20196 if( status ) return status;
20197 status = pthread_create( &t, &attr, task, NULL );
20198 #if HAVE_PTHREADS < 7
20199 if( status < 0 ) status = errno;
20201 if( status ) return status;
20203 /* Draft 4 pthreads */
20204 status = pthread_create( &t, pthread_attr_default, task, NULL );
20205 if( status ) return errno;
20207 /* give thread a chance to complete */
20208 /* it should remain joinable and hence detachable */
20211 status = pthread_detach( &t );
20212 if( status ) return errno;
20215 #ifdef HAVE_LINUX_THREADS
20216 pthread_kill_other_threads_np();
20224 rm -f conftest$ac_exeext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226 (eval $ac_link) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ol_cv_pthread_kthread=yes
20237 echo "$as_me: program exited with status $ac_status" >&5
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ( exit $ac_status )
20242 ol_cv_pthread_kthread=no
20244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20251 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20252 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20254 if test $ol_cv_pthread_kthread = yes ; then
20255 ol_link_pthreads="-kthread"
20256 ol_link_threads=posix
20260 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20261 if test "$ol_link_threads" = no ; then
20263 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20264 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20265 if test "${ol_cv_pthread_pthread+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 LIBS="-pthread $LIBS"
20273 if test "$cross_compiling" = yes; then
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 /* pthread test headers */
20282 #include <pthread.h>
20283 #if HAVE_PTHREADS < 7
20287 #define NULL (void*)0
20290 static void *task(p)
20293 return (void *) (p == NULL);
20300 /* pthread test function */
20301 #ifndef PTHREAD_CREATE_DETACHED
20302 #define PTHREAD_CREATE_DETACHED 1
20306 int detach = PTHREAD_CREATE_DETACHED;
20308 #if HAVE_PTHREADS > 4
20309 /* Final pthreads */
20310 pthread_attr_t attr;
20312 status = pthread_attr_init(&attr);
20313 if( status ) return status;
20315 #if HAVE_PTHREADS < 7
20316 status = pthread_attr_setdetachstate(&attr, &detach);
20317 if( status < 0 ) status = errno;
20319 status = pthread_attr_setdetachstate(&attr, detach);
20321 if( status ) return status;
20322 status = pthread_create( &t, &attr, task, NULL );
20323 #if HAVE_PTHREADS < 7
20324 if( status < 0 ) status = errno;
20326 if( status ) return status;
20328 /* Draft 4 pthreads */
20329 status = pthread_create( &t, pthread_attr_default, task, NULL );
20330 if( status ) return errno;
20332 /* give thread a chance to complete */
20333 /* it should remain joinable and hence detachable */
20336 status = pthread_detach( &t );
20337 if( status ) return errno;
20340 #ifdef HAVE_LINUX_THREADS
20341 pthread_kill_other_threads_np();
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20352 (eval $ac_link) 2>conftest.er1
20354 grep -v '^ *+' conftest.er1 >conftest.err
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
20359 { ac_try='test -z "$ac_c_werror_flag"
20360 || test ! -s conftest.err'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; } &&
20366 { ac_try='test -s conftest$ac_exeext'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 ol_cv_pthread_pthread=yes
20374 echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20377 ol_cv_pthread_pthread=no
20379 rm -f conftest.err conftest.$ac_objext \
20380 conftest$ac_exeext conftest.$ac_ext
20382 cat >conftest.$ac_ext <<_ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20389 /* pthread test headers */
20390 #include <pthread.h>
20391 #if HAVE_PTHREADS < 7
20395 #define NULL (void*)0
20398 static void *task(p)
20401 return (void *) (p == NULL);
20405 int main(argc, argv)
20410 /* pthread test function */
20411 #ifndef PTHREAD_CREATE_DETACHED
20412 #define PTHREAD_CREATE_DETACHED 1
20416 int detach = PTHREAD_CREATE_DETACHED;
20418 #if HAVE_PTHREADS > 4
20419 /* Final pthreads */
20420 pthread_attr_t attr;
20422 status = pthread_attr_init(&attr);
20423 if( status ) return status;
20425 #if HAVE_PTHREADS < 7
20426 status = pthread_attr_setdetachstate(&attr, &detach);
20427 if( status < 0 ) status = errno;
20429 status = pthread_attr_setdetachstate(&attr, detach);
20431 if( status ) return status;
20432 status = pthread_create( &t, &attr, task, NULL );
20433 #if HAVE_PTHREADS < 7
20434 if( status < 0 ) status = errno;
20436 if( status ) return status;
20438 /* Draft 4 pthreads */
20439 status = pthread_create( &t, pthread_attr_default, task, NULL );
20440 if( status ) return errno;
20442 /* give thread a chance to complete */
20443 /* it should remain joinable and hence detachable */
20446 status = pthread_detach( &t );
20447 if( status ) return errno;
20450 #ifdef HAVE_LINUX_THREADS
20451 pthread_kill_other_threads_np();
20459 rm -f conftest$ac_exeext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20461 (eval $ac_link) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ol_cv_pthread_pthread=yes
20472 echo "$as_me: program exited with status $ac_status" >&5
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ( exit $ac_status )
20477 ol_cv_pthread_pthread=no
20479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20486 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20487 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20489 if test $ol_cv_pthread_pthread = yes ; then
20490 ol_link_pthreads="-pthread"
20491 ol_link_threads=posix
20495 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20496 if test "$ol_link_threads" = no ; then
20498 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20499 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20500 if test "${ol_cv_pthread_pthreads+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 LIBS="-pthreads $LIBS"
20508 if test "$cross_compiling" = yes; then
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 /* pthread test headers */
20517 #include <pthread.h>
20518 #if HAVE_PTHREADS < 7
20522 #define NULL (void*)0
20525 static void *task(p)
20528 return (void *) (p == NULL);
20535 /* pthread test function */
20536 #ifndef PTHREAD_CREATE_DETACHED
20537 #define PTHREAD_CREATE_DETACHED 1
20541 int detach = PTHREAD_CREATE_DETACHED;
20543 #if HAVE_PTHREADS > 4
20544 /* Final pthreads */
20545 pthread_attr_t attr;
20547 status = pthread_attr_init(&attr);
20548 if( status ) return status;
20550 #if HAVE_PTHREADS < 7
20551 status = pthread_attr_setdetachstate(&attr, &detach);
20552 if( status < 0 ) status = errno;
20554 status = pthread_attr_setdetachstate(&attr, detach);
20556 if( status ) return status;
20557 status = pthread_create( &t, &attr, task, NULL );
20558 #if HAVE_PTHREADS < 7
20559 if( status < 0 ) status = errno;
20561 if( status ) return status;
20563 /* Draft 4 pthreads */
20564 status = pthread_create( &t, pthread_attr_default, task, NULL );
20565 if( status ) return errno;
20567 /* give thread a chance to complete */
20568 /* it should remain joinable and hence detachable */
20571 status = pthread_detach( &t );
20572 if( status ) return errno;
20575 #ifdef HAVE_LINUX_THREADS
20576 pthread_kill_other_threads_np();
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20587 (eval $ac_link) 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -z "$ac_c_werror_flag"
20595 || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest$ac_exeext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ol_cv_pthread_pthreads=yes
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ol_cv_pthread_pthreads=no
20614 rm -f conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20624 /* pthread test headers */
20625 #include <pthread.h>
20626 #if HAVE_PTHREADS < 7
20630 #define NULL (void*)0
20633 static void *task(p)
20636 return (void *) (p == NULL);
20640 int main(argc, argv)
20645 /* pthread test function */
20646 #ifndef PTHREAD_CREATE_DETACHED
20647 #define PTHREAD_CREATE_DETACHED 1
20651 int detach = PTHREAD_CREATE_DETACHED;
20653 #if HAVE_PTHREADS > 4
20654 /* Final pthreads */
20655 pthread_attr_t attr;
20657 status = pthread_attr_init(&attr);
20658 if( status ) return status;
20660 #if HAVE_PTHREADS < 7
20661 status = pthread_attr_setdetachstate(&attr, &detach);
20662 if( status < 0 ) status = errno;
20664 status = pthread_attr_setdetachstate(&attr, detach);
20666 if( status ) return status;
20667 status = pthread_create( &t, &attr, task, NULL );
20668 #if HAVE_PTHREADS < 7
20669 if( status < 0 ) status = errno;
20671 if( status ) return status;
20673 /* Draft 4 pthreads */
20674 status = pthread_create( &t, pthread_attr_default, task, NULL );
20675 if( status ) return errno;
20677 /* give thread a chance to complete */
20678 /* it should remain joinable and hence detachable */
20681 status = pthread_detach( &t );
20682 if( status ) return errno;
20685 #ifdef HAVE_LINUX_THREADS
20686 pthread_kill_other_threads_np();
20694 rm -f conftest$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ol_cv_pthread_pthreads=yes
20707 echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ( exit $ac_status )
20712 ol_cv_pthread_pthreads=no
20714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20721 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20722 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20724 if test $ol_cv_pthread_pthreads = yes ; then
20725 ol_link_pthreads="-pthreads"
20726 ol_link_threads=posix
20730 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20731 if test "$ol_link_threads" = no ; then
20733 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20734 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20735 if test "${ol_cv_pthread_mthreads+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 LIBS="-mthreads $LIBS"
20743 if test "$cross_compiling" = yes; then
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20751 /* pthread test headers */
20752 #include <pthread.h>
20753 #if HAVE_PTHREADS < 7
20757 #define NULL (void*)0
20760 static void *task(p)
20763 return (void *) (p == NULL);
20770 /* pthread test function */
20771 #ifndef PTHREAD_CREATE_DETACHED
20772 #define PTHREAD_CREATE_DETACHED 1
20776 int detach = PTHREAD_CREATE_DETACHED;
20778 #if HAVE_PTHREADS > 4
20779 /* Final pthreads */
20780 pthread_attr_t attr;
20782 status = pthread_attr_init(&attr);
20783 if( status ) return status;
20785 #if HAVE_PTHREADS < 7
20786 status = pthread_attr_setdetachstate(&attr, &detach);
20787 if( status < 0 ) status = errno;
20789 status = pthread_attr_setdetachstate(&attr, detach);
20791 if( status ) return status;
20792 status = pthread_create( &t, &attr, task, NULL );
20793 #if HAVE_PTHREADS < 7
20794 if( status < 0 ) status = errno;
20796 if( status ) return status;
20798 /* Draft 4 pthreads */
20799 status = pthread_create( &t, pthread_attr_default, task, NULL );
20800 if( status ) return errno;
20802 /* give thread a chance to complete */
20803 /* it should remain joinable and hence detachable */
20806 status = pthread_detach( &t );
20807 if( status ) return errno;
20810 #ifdef HAVE_LINUX_THREADS
20811 pthread_kill_other_threads_np();
20820 rm -f conftest.$ac_objext conftest$ac_exeext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20822 (eval $ac_link) 2>conftest.er1
20824 grep -v '^ *+' conftest.er1 >conftest.err
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } &&
20829 { ac_try='test -z "$ac_c_werror_flag"
20830 || test ! -s conftest.err'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; } &&
20836 { ac_try='test -s conftest$ac_exeext'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ol_cv_pthread_mthreads=yes
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 ol_cv_pthread_mthreads=no
20849 rm -f conftest.err conftest.$ac_objext \
20850 conftest$ac_exeext conftest.$ac_ext
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20859 /* pthread test headers */
20860 #include <pthread.h>
20861 #if HAVE_PTHREADS < 7
20865 #define NULL (void*)0
20868 static void *task(p)
20871 return (void *) (p == NULL);
20875 int main(argc, argv)
20880 /* pthread test function */
20881 #ifndef PTHREAD_CREATE_DETACHED
20882 #define PTHREAD_CREATE_DETACHED 1
20886 int detach = PTHREAD_CREATE_DETACHED;
20888 #if HAVE_PTHREADS > 4
20889 /* Final pthreads */
20890 pthread_attr_t attr;
20892 status = pthread_attr_init(&attr);
20893 if( status ) return status;
20895 #if HAVE_PTHREADS < 7
20896 status = pthread_attr_setdetachstate(&attr, &detach);
20897 if( status < 0 ) status = errno;
20899 status = pthread_attr_setdetachstate(&attr, detach);
20901 if( status ) return status;
20902 status = pthread_create( &t, &attr, task, NULL );
20903 #if HAVE_PTHREADS < 7
20904 if( status < 0 ) status = errno;
20906 if( status ) return status;
20908 /* Draft 4 pthreads */
20909 status = pthread_create( &t, pthread_attr_default, task, NULL );
20910 if( status ) return errno;
20912 /* give thread a chance to complete */
20913 /* it should remain joinable and hence detachable */
20916 status = pthread_detach( &t );
20917 if( status ) return errno;
20920 #ifdef HAVE_LINUX_THREADS
20921 pthread_kill_other_threads_np();
20929 rm -f conftest$ac_exeext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20931 (eval $ac_link) 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ol_cv_pthread_mthreads=yes
20942 echo "$as_me: program exited with status $ac_status" >&5
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20946 ( exit $ac_status )
20947 ol_cv_pthread_mthreads=no
20949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20956 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20957 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20959 if test $ol_cv_pthread_mthreads = yes ; then
20960 ol_link_pthreads="-mthreads"
20961 ol_link_threads=posix
20965 # Pthread try link: -thread (ol_cv_pthread_thread)
20966 if test "$ol_link_threads" = no ; then
20968 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20969 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20970 if test "${ol_cv_pthread_thread+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 LIBS="-thread $LIBS"
20978 if test "$cross_compiling" = yes; then
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20986 /* pthread test headers */
20987 #include <pthread.h>
20988 #if HAVE_PTHREADS < 7
20992 #define NULL (void*)0
20995 static void *task(p)
20998 return (void *) (p == NULL);
21005 /* pthread test function */
21006 #ifndef PTHREAD_CREATE_DETACHED
21007 #define PTHREAD_CREATE_DETACHED 1
21011 int detach = PTHREAD_CREATE_DETACHED;
21013 #if HAVE_PTHREADS > 4
21014 /* Final pthreads */
21015 pthread_attr_t attr;
21017 status = pthread_attr_init(&attr);
21018 if( status ) return status;
21020 #if HAVE_PTHREADS < 7
21021 status = pthread_attr_setdetachstate(&attr, &detach);
21022 if( status < 0 ) status = errno;
21024 status = pthread_attr_setdetachstate(&attr, detach);
21026 if( status ) return status;
21027 status = pthread_create( &t, &attr, task, NULL );
21028 #if HAVE_PTHREADS < 7
21029 if( status < 0 ) status = errno;
21031 if( status ) return status;
21033 /* Draft 4 pthreads */
21034 status = pthread_create( &t, pthread_attr_default, task, NULL );
21035 if( status ) return errno;
21037 /* give thread a chance to complete */
21038 /* it should remain joinable and hence detachable */
21041 status = pthread_detach( &t );
21042 if( status ) return errno;
21045 #ifdef HAVE_LINUX_THREADS
21046 pthread_kill_other_threads_np();
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21057 (eval $ac_link) 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -z "$ac_c_werror_flag"
21065 || test ! -s conftest.err'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest$ac_exeext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 ol_cv_pthread_thread=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ol_cv_pthread_thread=no
21084 rm -f conftest.err conftest.$ac_objext \
21085 conftest$ac_exeext conftest.$ac_ext
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21094 /* pthread test headers */
21095 #include <pthread.h>
21096 #if HAVE_PTHREADS < 7
21100 #define NULL (void*)0
21103 static void *task(p)
21106 return (void *) (p == NULL);
21110 int main(argc, argv)
21115 /* pthread test function */
21116 #ifndef PTHREAD_CREATE_DETACHED
21117 #define PTHREAD_CREATE_DETACHED 1
21121 int detach = PTHREAD_CREATE_DETACHED;
21123 #if HAVE_PTHREADS > 4
21124 /* Final pthreads */
21125 pthread_attr_t attr;
21127 status = pthread_attr_init(&attr);
21128 if( status ) return status;
21130 #if HAVE_PTHREADS < 7
21131 status = pthread_attr_setdetachstate(&attr, &detach);
21132 if( status < 0 ) status = errno;
21134 status = pthread_attr_setdetachstate(&attr, detach);
21136 if( status ) return status;
21137 status = pthread_create( &t, &attr, task, NULL );
21138 #if HAVE_PTHREADS < 7
21139 if( status < 0 ) status = errno;
21141 if( status ) return status;
21143 /* Draft 4 pthreads */
21144 status = pthread_create( &t, pthread_attr_default, task, NULL );
21145 if( status ) return errno;
21147 /* give thread a chance to complete */
21148 /* it should remain joinable and hence detachable */
21151 status = pthread_detach( &t );
21152 if( status ) return errno;
21155 #ifdef HAVE_LINUX_THREADS
21156 pthread_kill_other_threads_np();
21164 rm -f conftest$ac_exeext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166 (eval $ac_link) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; }; then
21175 ol_cv_pthread_thread=yes
21177 echo "$as_me: program exited with status $ac_status" >&5
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ( exit $ac_status )
21182 ol_cv_pthread_thread=no
21184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21191 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21192 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21194 if test $ol_cv_pthread_thread = yes ; then
21195 ol_link_pthreads="-thread"
21196 ol_link_threads=posix
21201 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21202 if test "$ol_link_threads" = no ; then
21203 # try -lpthread -lmach -lexc -lc_r
21204 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21205 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21206 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21214 if test "$cross_compiling" = yes; then
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21222 /* pthread test headers */
21223 #include <pthread.h>
21224 #if HAVE_PTHREADS < 7
21228 #define NULL (void*)0
21231 static void *task(p)
21234 return (void *) (p == NULL);
21241 /* pthread test function */
21242 #ifndef PTHREAD_CREATE_DETACHED
21243 #define PTHREAD_CREATE_DETACHED 1
21247 int detach = PTHREAD_CREATE_DETACHED;
21249 #if HAVE_PTHREADS > 4
21250 /* Final pthreads */
21251 pthread_attr_t attr;
21253 status = pthread_attr_init(&attr);
21254 if( status ) return status;
21256 #if HAVE_PTHREADS < 7
21257 status = pthread_attr_setdetachstate(&attr, &detach);
21258 if( status < 0 ) status = errno;
21260 status = pthread_attr_setdetachstate(&attr, detach);
21262 if( status ) return status;
21263 status = pthread_create( &t, &attr, task, NULL );
21264 #if HAVE_PTHREADS < 7
21265 if( status < 0 ) status = errno;
21267 if( status ) return status;
21269 /* Draft 4 pthreads */
21270 status = pthread_create( &t, pthread_attr_default, task, NULL );
21271 if( status ) return errno;
21273 /* give thread a chance to complete */
21274 /* it should remain joinable and hence detachable */
21277 status = pthread_detach( &t );
21278 if( status ) return errno;
21281 #ifdef HAVE_LINUX_THREADS
21282 pthread_kill_other_threads_np();
21291 rm -f conftest.$ac_objext conftest$ac_exeext
21292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21293 (eval $ac_link) 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } &&
21300 { ac_try='test -z "$ac_c_werror_flag"
21301 || test ! -s conftest.err'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; } &&
21307 { ac_try='test -s conftest$ac_exeext'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; }; then
21313 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21320 rm -f conftest.err conftest.$ac_objext \
21321 conftest$ac_exeext conftest.$ac_ext
21323 cat >conftest.$ac_ext <<_ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21330 /* pthread test headers */
21331 #include <pthread.h>
21332 #if HAVE_PTHREADS < 7
21336 #define NULL (void*)0
21339 static void *task(p)
21342 return (void *) (p == NULL);
21346 int main(argc, argv)
21351 /* pthread test function */
21352 #ifndef PTHREAD_CREATE_DETACHED
21353 #define PTHREAD_CREATE_DETACHED 1
21357 int detach = PTHREAD_CREATE_DETACHED;
21359 #if HAVE_PTHREADS > 4
21360 /* Final pthreads */
21361 pthread_attr_t attr;
21363 status = pthread_attr_init(&attr);
21364 if( status ) return status;
21366 #if HAVE_PTHREADS < 7
21367 status = pthread_attr_setdetachstate(&attr, &detach);
21368 if( status < 0 ) status = errno;
21370 status = pthread_attr_setdetachstate(&attr, detach);
21372 if( status ) return status;
21373 status = pthread_create( &t, &attr, task, NULL );
21374 #if HAVE_PTHREADS < 7
21375 if( status < 0 ) status = errno;
21377 if( status ) return status;
21379 /* Draft 4 pthreads */
21380 status = pthread_create( &t, pthread_attr_default, task, NULL );
21381 if( status ) return errno;
21383 /* give thread a chance to complete */
21384 /* it should remain joinable and hence detachable */
21387 status = pthread_detach( &t );
21388 if( status ) return errno;
21391 #ifdef HAVE_LINUX_THREADS
21392 pthread_kill_other_threads_np();
21400 rm -f conftest$ac_exeext
21401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21402 (eval $ac_link) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21413 echo "$as_me: program exited with status $ac_status" >&5
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21417 ( exit $ac_status )
21418 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21427 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21428 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21430 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21431 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21432 ol_link_threads=posix
21436 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21437 if test "$ol_link_threads" = no ; then
21438 # try -lpthread -lmach -lexc
21439 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21440 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21441 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 LIBS="-lpthread -lmach -lexc $LIBS"
21449 if test "$cross_compiling" = yes; then
21450 cat >conftest.$ac_ext <<_ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21457 /* pthread test headers */
21458 #include <pthread.h>
21459 #if HAVE_PTHREADS < 7
21463 #define NULL (void*)0
21466 static void *task(p)
21469 return (void *) (p == NULL);
21476 /* pthread test function */
21477 #ifndef PTHREAD_CREATE_DETACHED
21478 #define PTHREAD_CREATE_DETACHED 1
21482 int detach = PTHREAD_CREATE_DETACHED;
21484 #if HAVE_PTHREADS > 4
21485 /* Final pthreads */
21486 pthread_attr_t attr;
21488 status = pthread_attr_init(&attr);
21489 if( status ) return status;
21491 #if HAVE_PTHREADS < 7
21492 status = pthread_attr_setdetachstate(&attr, &detach);
21493 if( status < 0 ) status = errno;
21495 status = pthread_attr_setdetachstate(&attr, detach);
21497 if( status ) return status;
21498 status = pthread_create( &t, &attr, task, NULL );
21499 #if HAVE_PTHREADS < 7
21500 if( status < 0 ) status = errno;
21502 if( status ) return status;
21504 /* Draft 4 pthreads */
21505 status = pthread_create( &t, pthread_attr_default, task, NULL );
21506 if( status ) return errno;
21508 /* give thread a chance to complete */
21509 /* it should remain joinable and hence detachable */
21512 status = pthread_detach( &t );
21513 if( status ) return errno;
21516 #ifdef HAVE_LINUX_THREADS
21517 pthread_kill_other_threads_np();
21526 rm -f conftest.$ac_objext conftest$ac_exeext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21528 (eval $ac_link) 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_c_werror_flag"
21536 || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest$ac_exeext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ol_cv_pthread_lpthread_lmach_lexc=yes
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ol_cv_pthread_lpthread_lmach_lexc=no
21555 rm -f conftest.err conftest.$ac_objext \
21556 conftest$ac_exeext conftest.$ac_ext
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21565 /* pthread test headers */
21566 #include <pthread.h>
21567 #if HAVE_PTHREADS < 7
21571 #define NULL (void*)0
21574 static void *task(p)
21577 return (void *) (p == NULL);
21581 int main(argc, argv)
21586 /* pthread test function */
21587 #ifndef PTHREAD_CREATE_DETACHED
21588 #define PTHREAD_CREATE_DETACHED 1
21592 int detach = PTHREAD_CREATE_DETACHED;
21594 #if HAVE_PTHREADS > 4
21595 /* Final pthreads */
21596 pthread_attr_t attr;
21598 status = pthread_attr_init(&attr);
21599 if( status ) return status;
21601 #if HAVE_PTHREADS < 7
21602 status = pthread_attr_setdetachstate(&attr, &detach);
21603 if( status < 0 ) status = errno;
21605 status = pthread_attr_setdetachstate(&attr, detach);
21607 if( status ) return status;
21608 status = pthread_create( &t, &attr, task, NULL );
21609 #if HAVE_PTHREADS < 7
21610 if( status < 0 ) status = errno;
21612 if( status ) return status;
21614 /* Draft 4 pthreads */
21615 status = pthread_create( &t, pthread_attr_default, task, NULL );
21616 if( status ) return errno;
21618 /* give thread a chance to complete */
21619 /* it should remain joinable and hence detachable */
21622 status = pthread_detach( &t );
21623 if( status ) return errno;
21626 #ifdef HAVE_LINUX_THREADS
21627 pthread_kill_other_threads_np();
21635 rm -f conftest$ac_exeext
21636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637 (eval $ac_link) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ol_cv_pthread_lpthread_lmach_lexc=yes
21648 echo "$as_me: program exited with status $ac_status" >&5
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ( exit $ac_status )
21653 ol_cv_pthread_lpthread_lmach_lexc=no
21655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21662 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21663 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21665 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21666 ol_link_pthreads="-lpthread -lmach -lexc"
21667 ol_link_threads=posix
21672 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21673 if test "$ol_link_threads" = no ; then
21674 # try -lpthread -Wl,-woff,85
21675 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21676 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21677 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21685 if test "$cross_compiling" = yes; then
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21693 /* pthread test headers */
21694 #include <pthread.h>
21695 #if HAVE_PTHREADS < 7
21699 #define NULL (void*)0
21702 static void *task(p)
21705 return (void *) (p == NULL);
21712 /* pthread test function */
21713 #ifndef PTHREAD_CREATE_DETACHED
21714 #define PTHREAD_CREATE_DETACHED 1
21718 int detach = PTHREAD_CREATE_DETACHED;
21720 #if HAVE_PTHREADS > 4
21721 /* Final pthreads */
21722 pthread_attr_t attr;
21724 status = pthread_attr_init(&attr);
21725 if( status ) return status;
21727 #if HAVE_PTHREADS < 7
21728 status = pthread_attr_setdetachstate(&attr, &detach);
21729 if( status < 0 ) status = errno;
21731 status = pthread_attr_setdetachstate(&attr, detach);
21733 if( status ) return status;
21734 status = pthread_create( &t, &attr, task, NULL );
21735 #if HAVE_PTHREADS < 7
21736 if( status < 0 ) status = errno;
21738 if( status ) return status;
21740 /* Draft 4 pthreads */
21741 status = pthread_create( &t, pthread_attr_default, task, NULL );
21742 if( status ) return errno;
21744 /* give thread a chance to complete */
21745 /* it should remain joinable and hence detachable */
21748 status = pthread_detach( &t );
21749 if( status ) return errno;
21752 #ifdef HAVE_LINUX_THREADS
21753 pthread_kill_other_threads_np();
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21764 (eval $ac_link) 2>conftest.er1
21766 grep -v '^ *+' conftest.er1 >conftest.err
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try='test -z "$ac_c_werror_flag"
21772 || test ! -s conftest.err'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; } &&
21778 { ac_try='test -s conftest$ac_exeext'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; }; then
21784 ol_cv_pthread_lib_lpthread_woff=yes
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21789 ol_cv_pthread_lib_lpthread_woff=no
21791 rm -f conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21794 cat >conftest.$ac_ext <<_ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21801 /* pthread test headers */
21802 #include <pthread.h>
21803 #if HAVE_PTHREADS < 7
21807 #define NULL (void*)0
21810 static void *task(p)
21813 return (void *) (p == NULL);
21817 int main(argc, argv)
21822 /* pthread test function */
21823 #ifndef PTHREAD_CREATE_DETACHED
21824 #define PTHREAD_CREATE_DETACHED 1
21828 int detach = PTHREAD_CREATE_DETACHED;
21830 #if HAVE_PTHREADS > 4
21831 /* Final pthreads */
21832 pthread_attr_t attr;
21834 status = pthread_attr_init(&attr);
21835 if( status ) return status;
21837 #if HAVE_PTHREADS < 7
21838 status = pthread_attr_setdetachstate(&attr, &detach);
21839 if( status < 0 ) status = errno;
21841 status = pthread_attr_setdetachstate(&attr, detach);
21843 if( status ) return status;
21844 status = pthread_create( &t, &attr, task, NULL );
21845 #if HAVE_PTHREADS < 7
21846 if( status < 0 ) status = errno;
21848 if( status ) return status;
21850 /* Draft 4 pthreads */
21851 status = pthread_create( &t, pthread_attr_default, task, NULL );
21852 if( status ) return errno;
21854 /* give thread a chance to complete */
21855 /* it should remain joinable and hence detachable */
21858 status = pthread_detach( &t );
21859 if( status ) return errno;
21862 #ifdef HAVE_LINUX_THREADS
21863 pthread_kill_other_threads_np();
21871 rm -f conftest$ac_exeext
21872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21873 (eval $ac_link) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 ol_cv_pthread_lib_lpthread_woff=yes
21884 echo "$as_me: program exited with status $ac_status" >&5
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ( exit $ac_status )
21889 ol_cv_pthread_lib_lpthread_woff=no
21891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21898 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21899 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21901 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21902 ol_link_pthreads="-lpthread -Wl,-woff,85"
21903 ol_link_threads=posix
21908 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21909 if test "$ol_link_threads" = no ; then
21911 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21912 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21913 if test "${ol_cv_pthread_lpthread+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 LIBS="-lpthread $LIBS"
21921 if test "$cross_compiling" = yes; then
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 /* pthread test headers */
21930 #include <pthread.h>
21931 #if HAVE_PTHREADS < 7
21935 #define NULL (void*)0
21938 static void *task(p)
21941 return (void *) (p == NULL);
21948 /* pthread test function */
21949 #ifndef PTHREAD_CREATE_DETACHED
21950 #define PTHREAD_CREATE_DETACHED 1
21954 int detach = PTHREAD_CREATE_DETACHED;
21956 #if HAVE_PTHREADS > 4
21957 /* Final pthreads */
21958 pthread_attr_t attr;
21960 status = pthread_attr_init(&attr);
21961 if( status ) return status;
21963 #if HAVE_PTHREADS < 7
21964 status = pthread_attr_setdetachstate(&attr, &detach);
21965 if( status < 0 ) status = errno;
21967 status = pthread_attr_setdetachstate(&attr, detach);
21969 if( status ) return status;
21970 status = pthread_create( &t, &attr, task, NULL );
21971 #if HAVE_PTHREADS < 7
21972 if( status < 0 ) status = errno;
21974 if( status ) return status;
21976 /* Draft 4 pthreads */
21977 status = pthread_create( &t, pthread_attr_default, task, NULL );
21978 if( status ) return errno;
21980 /* give thread a chance to complete */
21981 /* it should remain joinable and hence detachable */
21984 status = pthread_detach( &t );
21985 if( status ) return errno;
21988 #ifdef HAVE_LINUX_THREADS
21989 pthread_kill_other_threads_np();
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22000 (eval $ac_link) 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -z "$ac_c_werror_flag"
22008 || test ! -s conftest.err'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest$ac_exeext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 ol_cv_pthread_lpthread=yes
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 ol_cv_pthread_lpthread=no
22027 rm -f conftest.err conftest.$ac_objext \
22028 conftest$ac_exeext conftest.$ac_ext
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22037 /* pthread test headers */
22038 #include <pthread.h>
22039 #if HAVE_PTHREADS < 7
22043 #define NULL (void*)0
22046 static void *task(p)
22049 return (void *) (p == NULL);
22053 int main(argc, argv)
22058 /* pthread test function */
22059 #ifndef PTHREAD_CREATE_DETACHED
22060 #define PTHREAD_CREATE_DETACHED 1
22064 int detach = PTHREAD_CREATE_DETACHED;
22066 #if HAVE_PTHREADS > 4
22067 /* Final pthreads */
22068 pthread_attr_t attr;
22070 status = pthread_attr_init(&attr);
22071 if( status ) return status;
22073 #if HAVE_PTHREADS < 7
22074 status = pthread_attr_setdetachstate(&attr, &detach);
22075 if( status < 0 ) status = errno;
22077 status = pthread_attr_setdetachstate(&attr, detach);
22079 if( status ) return status;
22080 status = pthread_create( &t, &attr, task, NULL );
22081 #if HAVE_PTHREADS < 7
22082 if( status < 0 ) status = errno;
22084 if( status ) return status;
22086 /* Draft 4 pthreads */
22087 status = pthread_create( &t, pthread_attr_default, task, NULL );
22088 if( status ) return errno;
22090 /* give thread a chance to complete */
22091 /* it should remain joinable and hence detachable */
22094 status = pthread_detach( &t );
22095 if( status ) return errno;
22098 #ifdef HAVE_LINUX_THREADS
22099 pthread_kill_other_threads_np();
22107 rm -f conftest$ac_exeext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ol_cv_pthread_lpthread=yes
22120 echo "$as_me: program exited with status $ac_status" >&5
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ( exit $ac_status )
22125 ol_cv_pthread_lpthread=no
22127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22134 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22135 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22137 if test $ol_cv_pthread_lpthread = yes ; then
22138 ol_link_pthreads="-lpthread"
22139 ol_link_threads=posix
22143 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22144 if test "$ol_link_threads" = no ; then
22146 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22147 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22148 if test "${ol_cv_pthread_lc_r+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22156 if test "$cross_compiling" = yes; then
22157 cat >conftest.$ac_ext <<_ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22164 /* pthread test headers */
22165 #include <pthread.h>
22166 #if HAVE_PTHREADS < 7
22170 #define NULL (void*)0
22173 static void *task(p)
22176 return (void *) (p == NULL);
22183 /* pthread test function */
22184 #ifndef PTHREAD_CREATE_DETACHED
22185 #define PTHREAD_CREATE_DETACHED 1
22189 int detach = PTHREAD_CREATE_DETACHED;
22191 #if HAVE_PTHREADS > 4
22192 /* Final pthreads */
22193 pthread_attr_t attr;
22195 status = pthread_attr_init(&attr);
22196 if( status ) return status;
22198 #if HAVE_PTHREADS < 7
22199 status = pthread_attr_setdetachstate(&attr, &detach);
22200 if( status < 0 ) status = errno;
22202 status = pthread_attr_setdetachstate(&attr, detach);
22204 if( status ) return status;
22205 status = pthread_create( &t, &attr, task, NULL );
22206 #if HAVE_PTHREADS < 7
22207 if( status < 0 ) status = errno;
22209 if( status ) return status;
22211 /* Draft 4 pthreads */
22212 status = pthread_create( &t, pthread_attr_default, task, NULL );
22213 if( status ) return errno;
22215 /* give thread a chance to complete */
22216 /* it should remain joinable and hence detachable */
22219 status = pthread_detach( &t );
22220 if( status ) return errno;
22223 #ifdef HAVE_LINUX_THREADS
22224 pthread_kill_other_threads_np();
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22235 (eval $ac_link) 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } &&
22242 { ac_try='test -z "$ac_c_werror_flag"
22243 || test ! -s conftest.err'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; } &&
22249 { ac_try='test -s conftest$ac_exeext'
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 ol_cv_pthread_lc_r=yes
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ol_cv_pthread_lc_r=no
22262 rm -f conftest.err conftest.$ac_objext \
22263 conftest$ac_exeext conftest.$ac_ext
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22272 /* pthread test headers */
22273 #include <pthread.h>
22274 #if HAVE_PTHREADS < 7
22278 #define NULL (void*)0
22281 static void *task(p)
22284 return (void *) (p == NULL);
22288 int main(argc, argv)
22293 /* pthread test function */
22294 #ifndef PTHREAD_CREATE_DETACHED
22295 #define PTHREAD_CREATE_DETACHED 1
22299 int detach = PTHREAD_CREATE_DETACHED;
22301 #if HAVE_PTHREADS > 4
22302 /* Final pthreads */
22303 pthread_attr_t attr;
22305 status = pthread_attr_init(&attr);
22306 if( status ) return status;
22308 #if HAVE_PTHREADS < 7
22309 status = pthread_attr_setdetachstate(&attr, &detach);
22310 if( status < 0 ) status = errno;
22312 status = pthread_attr_setdetachstate(&attr, detach);
22314 if( status ) return status;
22315 status = pthread_create( &t, &attr, task, NULL );
22316 #if HAVE_PTHREADS < 7
22317 if( status < 0 ) status = errno;
22319 if( status ) return status;
22321 /* Draft 4 pthreads */
22322 status = pthread_create( &t, pthread_attr_default, task, NULL );
22323 if( status ) return errno;
22325 /* give thread a chance to complete */
22326 /* it should remain joinable and hence detachable */
22329 status = pthread_detach( &t );
22330 if( status ) return errno;
22333 #ifdef HAVE_LINUX_THREADS
22334 pthread_kill_other_threads_np();
22342 rm -f conftest$ac_exeext
22343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22344 (eval $ac_link) 2>&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 ol_cv_pthread_lc_r=yes
22355 echo "$as_me: program exited with status $ac_status" >&5
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ( exit $ac_status )
22360 ol_cv_pthread_lc_r=no
22362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22369 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22370 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22372 if test $ol_cv_pthread_lc_r = yes ; then
22373 ol_link_pthreads="-lc_r"
22374 ol_link_threads=posix
22379 # Pthread try link: -threads (ol_cv_pthread_threads)
22380 if test "$ol_link_threads" = no ; then
22382 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22383 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22384 if test "${ol_cv_pthread_threads+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 LIBS="-threads $LIBS"
22392 if test "$cross_compiling" = yes; then
22393 cat >conftest.$ac_ext <<_ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h. */
22400 /* pthread test headers */
22401 #include <pthread.h>
22402 #if HAVE_PTHREADS < 7
22406 #define NULL (void*)0
22409 static void *task(p)
22412 return (void *) (p == NULL);
22419 /* pthread test function */
22420 #ifndef PTHREAD_CREATE_DETACHED
22421 #define PTHREAD_CREATE_DETACHED 1
22425 int detach = PTHREAD_CREATE_DETACHED;
22427 #if HAVE_PTHREADS > 4
22428 /* Final pthreads */
22429 pthread_attr_t attr;
22431 status = pthread_attr_init(&attr);
22432 if( status ) return status;
22434 #if HAVE_PTHREADS < 7
22435 status = pthread_attr_setdetachstate(&attr, &detach);
22436 if( status < 0 ) status = errno;
22438 status = pthread_attr_setdetachstate(&attr, detach);
22440 if( status ) return status;
22441 status = pthread_create( &t, &attr, task, NULL );
22442 #if HAVE_PTHREADS < 7
22443 if( status < 0 ) status = errno;
22445 if( status ) return status;
22447 /* Draft 4 pthreads */
22448 status = pthread_create( &t, pthread_attr_default, task, NULL );
22449 if( status ) return errno;
22451 /* give thread a chance to complete */
22452 /* it should remain joinable and hence detachable */
22455 status = pthread_detach( &t );
22456 if( status ) return errno;
22459 #ifdef HAVE_LINUX_THREADS
22460 pthread_kill_other_threads_np();
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22471 (eval $ac_link) 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } &&
22478 { ac_try='test -z "$ac_c_werror_flag"
22479 || test ! -s conftest.err'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; } &&
22485 { ac_try='test -s conftest$ac_exeext'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; }; then
22491 ol_cv_pthread_threads=yes
22493 echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 ol_cv_pthread_threads=no
22498 rm -f conftest.err conftest.$ac_objext \
22499 conftest$ac_exeext conftest.$ac_ext
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22508 /* pthread test headers */
22509 #include <pthread.h>
22510 #if HAVE_PTHREADS < 7
22514 #define NULL (void*)0
22517 static void *task(p)
22520 return (void *) (p == NULL);
22524 int main(argc, argv)
22529 /* pthread test function */
22530 #ifndef PTHREAD_CREATE_DETACHED
22531 #define PTHREAD_CREATE_DETACHED 1
22535 int detach = PTHREAD_CREATE_DETACHED;
22537 #if HAVE_PTHREADS > 4
22538 /* Final pthreads */
22539 pthread_attr_t attr;
22541 status = pthread_attr_init(&attr);
22542 if( status ) return status;
22544 #if HAVE_PTHREADS < 7
22545 status = pthread_attr_setdetachstate(&attr, &detach);
22546 if( status < 0 ) status = errno;
22548 status = pthread_attr_setdetachstate(&attr, detach);
22550 if( status ) return status;
22551 status = pthread_create( &t, &attr, task, NULL );
22552 #if HAVE_PTHREADS < 7
22553 if( status < 0 ) status = errno;
22555 if( status ) return status;
22557 /* Draft 4 pthreads */
22558 status = pthread_create( &t, pthread_attr_default, task, NULL );
22559 if( status ) return errno;
22561 /* give thread a chance to complete */
22562 /* it should remain joinable and hence detachable */
22565 status = pthread_detach( &t );
22566 if( status ) return errno;
22569 #ifdef HAVE_LINUX_THREADS
22570 pthread_kill_other_threads_np();
22578 rm -f conftest$ac_exeext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22580 (eval $ac_link) 2>&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585 (eval $ac_try) 2>&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; }; then
22589 ol_cv_pthread_threads=yes
22591 echo "$as_me: program exited with status $ac_status" >&5
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22595 ( exit $ac_status )
22596 ol_cv_pthread_threads=no
22598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22605 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22606 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22608 if test $ol_cv_pthread_threads = yes ; then
22609 ol_link_pthreads="-threads"
22610 ol_link_threads=posix
22615 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22616 if test "$ol_link_threads" = no ; then
22617 # try -lpthreads -lmach -lexc -lc_r
22618 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22619 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22620 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22628 if test "$cross_compiling" = yes; then
22629 cat >conftest.$ac_ext <<_ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22636 /* pthread test headers */
22637 #include <pthread.h>
22638 #if HAVE_PTHREADS < 7
22642 #define NULL (void*)0
22645 static void *task(p)
22648 return (void *) (p == NULL);
22655 /* pthread test function */
22656 #ifndef PTHREAD_CREATE_DETACHED
22657 #define PTHREAD_CREATE_DETACHED 1
22661 int detach = PTHREAD_CREATE_DETACHED;
22663 #if HAVE_PTHREADS > 4
22664 /* Final pthreads */
22665 pthread_attr_t attr;
22667 status = pthread_attr_init(&attr);
22668 if( status ) return status;
22670 #if HAVE_PTHREADS < 7
22671 status = pthread_attr_setdetachstate(&attr, &detach);
22672 if( status < 0 ) status = errno;
22674 status = pthread_attr_setdetachstate(&attr, detach);
22676 if( status ) return status;
22677 status = pthread_create( &t, &attr, task, NULL );
22678 #if HAVE_PTHREADS < 7
22679 if( status < 0 ) status = errno;
22681 if( status ) return status;
22683 /* Draft 4 pthreads */
22684 status = pthread_create( &t, pthread_attr_default, task, NULL );
22685 if( status ) return errno;
22687 /* give thread a chance to complete */
22688 /* it should remain joinable and hence detachable */
22691 status = pthread_detach( &t );
22692 if( status ) return errno;
22695 #ifdef HAVE_LINUX_THREADS
22696 pthread_kill_other_threads_np();
22705 rm -f conftest.$ac_objext conftest$ac_exeext
22706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22707 (eval $ac_link) 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } &&
22714 { ac_try='test -z "$ac_c_werror_flag"
22715 || test ! -s conftest.err'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; } &&
22721 { ac_try='test -s conftest$ac_exeext'
22722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22723 (eval $ac_try) 2>&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; }; then
22727 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22734 rm -f conftest.err conftest.$ac_objext \
22735 conftest$ac_exeext conftest.$ac_ext
22737 cat >conftest.$ac_ext <<_ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22744 /* pthread test headers */
22745 #include <pthread.h>
22746 #if HAVE_PTHREADS < 7
22750 #define NULL (void*)0
22753 static void *task(p)
22756 return (void *) (p == NULL);
22760 int main(argc, argv)
22765 /* pthread test function */
22766 #ifndef PTHREAD_CREATE_DETACHED
22767 #define PTHREAD_CREATE_DETACHED 1
22771 int detach = PTHREAD_CREATE_DETACHED;
22773 #if HAVE_PTHREADS > 4
22774 /* Final pthreads */
22775 pthread_attr_t attr;
22777 status = pthread_attr_init(&attr);
22778 if( status ) return status;
22780 #if HAVE_PTHREADS < 7
22781 status = pthread_attr_setdetachstate(&attr, &detach);
22782 if( status < 0 ) status = errno;
22784 status = pthread_attr_setdetachstate(&attr, detach);
22786 if( status ) return status;
22787 status = pthread_create( &t, &attr, task, NULL );
22788 #if HAVE_PTHREADS < 7
22789 if( status < 0 ) status = errno;
22791 if( status ) return status;
22793 /* Draft 4 pthreads */
22794 status = pthread_create( &t, pthread_attr_default, task, NULL );
22795 if( status ) return errno;
22797 /* give thread a chance to complete */
22798 /* it should remain joinable and hence detachable */
22801 status = pthread_detach( &t );
22802 if( status ) return errno;
22805 #ifdef HAVE_LINUX_THREADS
22806 pthread_kill_other_threads_np();
22814 rm -f conftest$ac_exeext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22816 (eval $ac_link) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; }; then
22825 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22827 echo "$as_me: program exited with status $ac_status" >&5
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ( exit $ac_status )
22832 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22841 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22842 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22844 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22845 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22846 ol_link_threads=posix
22850 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22851 if test "$ol_link_threads" = no ; then
22852 # try -lpthreads -lmach -lexc
22853 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22854 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22855 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22861 LIBS="-lpthreads -lmach -lexc $LIBS"
22863 if test "$cross_compiling" = yes; then
22864 cat >conftest.$ac_ext <<_ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22871 /* pthread test headers */
22872 #include <pthread.h>
22873 #if HAVE_PTHREADS < 7
22877 #define NULL (void*)0
22880 static void *task(p)
22883 return (void *) (p == NULL);
22890 /* pthread test function */
22891 #ifndef PTHREAD_CREATE_DETACHED
22892 #define PTHREAD_CREATE_DETACHED 1
22896 int detach = PTHREAD_CREATE_DETACHED;
22898 #if HAVE_PTHREADS > 4
22899 /* Final pthreads */
22900 pthread_attr_t attr;
22902 status = pthread_attr_init(&attr);
22903 if( status ) return status;
22905 #if HAVE_PTHREADS < 7
22906 status = pthread_attr_setdetachstate(&attr, &detach);
22907 if( status < 0 ) status = errno;
22909 status = pthread_attr_setdetachstate(&attr, detach);
22911 if( status ) return status;
22912 status = pthread_create( &t, &attr, task, NULL );
22913 #if HAVE_PTHREADS < 7
22914 if( status < 0 ) status = errno;
22916 if( status ) return status;
22918 /* Draft 4 pthreads */
22919 status = pthread_create( &t, pthread_attr_default, task, NULL );
22920 if( status ) return errno;
22922 /* give thread a chance to complete */
22923 /* it should remain joinable and hence detachable */
22926 status = pthread_detach( &t );
22927 if( status ) return errno;
22930 #ifdef HAVE_LINUX_THREADS
22931 pthread_kill_other_threads_np();
22940 rm -f conftest.$ac_objext conftest$ac_exeext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942 (eval $ac_link) 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
22949 { ac_try='test -z "$ac_c_werror_flag"
22950 || test ! -s conftest.err'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; } &&
22956 { ac_try='test -s conftest$ac_exeext'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962 ol_cv_pthread_lpthreads_lmach_lexc=yes
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ol_cv_pthread_lpthreads_lmach_lexc=no
22969 rm -f conftest.err conftest.$ac_objext \
22970 conftest$ac_exeext conftest.$ac_ext
22972 cat >conftest.$ac_ext <<_ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22979 /* pthread test headers */
22980 #include <pthread.h>
22981 #if HAVE_PTHREADS < 7
22985 #define NULL (void*)0
22988 static void *task(p)
22991 return (void *) (p == NULL);
22995 int main(argc, argv)
23000 /* pthread test function */
23001 #ifndef PTHREAD_CREATE_DETACHED
23002 #define PTHREAD_CREATE_DETACHED 1
23006 int detach = PTHREAD_CREATE_DETACHED;
23008 #if HAVE_PTHREADS > 4
23009 /* Final pthreads */
23010 pthread_attr_t attr;
23012 status = pthread_attr_init(&attr);
23013 if( status ) return status;
23015 #if HAVE_PTHREADS < 7
23016 status = pthread_attr_setdetachstate(&attr, &detach);
23017 if( status < 0 ) status = errno;
23019 status = pthread_attr_setdetachstate(&attr, detach);
23021 if( status ) return status;
23022 status = pthread_create( &t, &attr, task, NULL );
23023 #if HAVE_PTHREADS < 7
23024 if( status < 0 ) status = errno;
23026 if( status ) return status;
23028 /* Draft 4 pthreads */
23029 status = pthread_create( &t, pthread_attr_default, task, NULL );
23030 if( status ) return errno;
23032 /* give thread a chance to complete */
23033 /* it should remain joinable and hence detachable */
23036 status = pthread_detach( &t );
23037 if( status ) return errno;
23040 #ifdef HAVE_LINUX_THREADS
23041 pthread_kill_other_threads_np();
23049 rm -f conftest$ac_exeext
23050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23051 (eval $ac_link) 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060 ol_cv_pthread_lpthreads_lmach_lexc=yes
23062 echo "$as_me: program exited with status $ac_status" >&5
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 ( exit $ac_status )
23067 ol_cv_pthread_lpthreads_lmach_lexc=no
23069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23076 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23077 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23079 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23080 ol_link_pthreads="-lpthreads -lmach -lexc"
23081 ol_link_threads=posix
23085 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23086 if test "$ol_link_threads" = no ; then
23087 # try -lpthreads -lexc
23088 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23089 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23090 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 LIBS="-lpthreads -lexc $LIBS"
23098 if test "$cross_compiling" = yes; then
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23106 /* pthread test headers */
23107 #include <pthread.h>
23108 #if HAVE_PTHREADS < 7
23112 #define NULL (void*)0
23115 static void *task(p)
23118 return (void *) (p == NULL);
23125 /* pthread test function */
23126 #ifndef PTHREAD_CREATE_DETACHED
23127 #define PTHREAD_CREATE_DETACHED 1
23131 int detach = PTHREAD_CREATE_DETACHED;
23133 #if HAVE_PTHREADS > 4
23134 /* Final pthreads */
23135 pthread_attr_t attr;
23137 status = pthread_attr_init(&attr);
23138 if( status ) return status;
23140 #if HAVE_PTHREADS < 7
23141 status = pthread_attr_setdetachstate(&attr, &detach);
23142 if( status < 0 ) status = errno;
23144 status = pthread_attr_setdetachstate(&attr, detach);
23146 if( status ) return status;
23147 status = pthread_create( &t, &attr, task, NULL );
23148 #if HAVE_PTHREADS < 7
23149 if( status < 0 ) status = errno;
23151 if( status ) return status;
23153 /* Draft 4 pthreads */
23154 status = pthread_create( &t, pthread_attr_default, task, NULL );
23155 if( status ) return errno;
23157 /* give thread a chance to complete */
23158 /* it should remain joinable and hence detachable */
23161 status = pthread_detach( &t );
23162 if( status ) return errno;
23165 #ifdef HAVE_LINUX_THREADS
23166 pthread_kill_other_threads_np();
23175 rm -f conftest.$ac_objext conftest$ac_exeext
23176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23177 (eval $ac_link) 2>conftest.er1
23179 grep -v '^ *+' conftest.er1 >conftest.err
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
23184 { ac_try='test -z "$ac_c_werror_flag"
23185 || test ! -s conftest.err'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; } &&
23191 { ac_try='test -s conftest$ac_exeext'
23192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193 (eval $ac_try) 2>&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); }; }; then
23197 ol_cv_pthread_lpthreads_lexc=yes
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23202 ol_cv_pthread_lpthreads_lexc=no
23204 rm -f conftest.err conftest.$ac_objext \
23205 conftest$ac_exeext conftest.$ac_ext
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23214 /* pthread test headers */
23215 #include <pthread.h>
23216 #if HAVE_PTHREADS < 7
23220 #define NULL (void*)0
23223 static void *task(p)
23226 return (void *) (p == NULL);
23230 int main(argc, argv)
23235 /* pthread test function */
23236 #ifndef PTHREAD_CREATE_DETACHED
23237 #define PTHREAD_CREATE_DETACHED 1
23241 int detach = PTHREAD_CREATE_DETACHED;
23243 #if HAVE_PTHREADS > 4
23244 /* Final pthreads */
23245 pthread_attr_t attr;
23247 status = pthread_attr_init(&attr);
23248 if( status ) return status;
23250 #if HAVE_PTHREADS < 7
23251 status = pthread_attr_setdetachstate(&attr, &detach);
23252 if( status < 0 ) status = errno;
23254 status = pthread_attr_setdetachstate(&attr, detach);
23256 if( status ) return status;
23257 status = pthread_create( &t, &attr, task, NULL );
23258 #if HAVE_PTHREADS < 7
23259 if( status < 0 ) status = errno;
23261 if( status ) return status;
23263 /* Draft 4 pthreads */
23264 status = pthread_create( &t, pthread_attr_default, task, NULL );
23265 if( status ) return errno;
23267 /* give thread a chance to complete */
23268 /* it should remain joinable and hence detachable */
23271 status = pthread_detach( &t );
23272 if( status ) return errno;
23275 #ifdef HAVE_LINUX_THREADS
23276 pthread_kill_other_threads_np();
23284 rm -f conftest$ac_exeext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23286 (eval $ac_link) 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ol_cv_pthread_lpthreads_lexc=yes
23297 echo "$as_me: program exited with status $ac_status" >&5
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 ( exit $ac_status )
23302 ol_cv_pthread_lpthreads_lexc=no
23304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23311 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23312 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23314 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23315 ol_link_pthreads="-lpthreads -lexc"
23316 ol_link_threads=posix
23321 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23322 if test "$ol_link_threads" = no ; then
23324 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23325 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23326 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23327 echo $ECHO_N "(cached) $ECHO_C" >&6
23332 LIBS="-lpthreads $LIBS"
23334 if test "$cross_compiling" = yes; then
23335 cat >conftest.$ac_ext <<_ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23342 /* pthread test headers */
23343 #include <pthread.h>
23344 #if HAVE_PTHREADS < 7
23348 #define NULL (void*)0
23351 static void *task(p)
23354 return (void *) (p == NULL);
23361 /* pthread test function */
23362 #ifndef PTHREAD_CREATE_DETACHED
23363 #define PTHREAD_CREATE_DETACHED 1
23367 int detach = PTHREAD_CREATE_DETACHED;
23369 #if HAVE_PTHREADS > 4
23370 /* Final pthreads */
23371 pthread_attr_t attr;
23373 status = pthread_attr_init(&attr);
23374 if( status ) return status;
23376 #if HAVE_PTHREADS < 7
23377 status = pthread_attr_setdetachstate(&attr, &detach);
23378 if( status < 0 ) status = errno;
23380 status = pthread_attr_setdetachstate(&attr, detach);
23382 if( status ) return status;
23383 status = pthread_create( &t, &attr, task, NULL );
23384 #if HAVE_PTHREADS < 7
23385 if( status < 0 ) status = errno;
23387 if( status ) return status;
23389 /* Draft 4 pthreads */
23390 status = pthread_create( &t, pthread_attr_default, task, NULL );
23391 if( status ) return errno;
23393 /* give thread a chance to complete */
23394 /* it should remain joinable and hence detachable */
23397 status = pthread_detach( &t );
23398 if( status ) return errno;
23401 #ifdef HAVE_LINUX_THREADS
23402 pthread_kill_other_threads_np();
23411 rm -f conftest.$ac_objext conftest$ac_exeext
23412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23413 (eval $ac_link) 2>conftest.er1
23415 grep -v '^ *+' conftest.er1 >conftest.err
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } &&
23420 { ac_try='test -z "$ac_c_werror_flag"
23421 || test ! -s conftest.err'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; } &&
23427 { ac_try='test -s conftest$ac_exeext'
23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; }; then
23433 ol_cv_pthread_lib_lpthreads=yes
23435 echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23438 ol_cv_pthread_lib_lpthreads=no
23440 rm -f conftest.err conftest.$ac_objext \
23441 conftest$ac_exeext conftest.$ac_ext
23443 cat >conftest.$ac_ext <<_ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23450 /* pthread test headers */
23451 #include <pthread.h>
23452 #if HAVE_PTHREADS < 7
23456 #define NULL (void*)0
23459 static void *task(p)
23462 return (void *) (p == NULL);
23466 int main(argc, argv)
23471 /* pthread test function */
23472 #ifndef PTHREAD_CREATE_DETACHED
23473 #define PTHREAD_CREATE_DETACHED 1
23477 int detach = PTHREAD_CREATE_DETACHED;
23479 #if HAVE_PTHREADS > 4
23480 /* Final pthreads */
23481 pthread_attr_t attr;
23483 status = pthread_attr_init(&attr);
23484 if( status ) return status;
23486 #if HAVE_PTHREADS < 7
23487 status = pthread_attr_setdetachstate(&attr, &detach);
23488 if( status < 0 ) status = errno;
23490 status = pthread_attr_setdetachstate(&attr, detach);
23492 if( status ) return status;
23493 status = pthread_create( &t, &attr, task, NULL );
23494 #if HAVE_PTHREADS < 7
23495 if( status < 0 ) status = errno;
23497 if( status ) return status;
23499 /* Draft 4 pthreads */
23500 status = pthread_create( &t, pthread_attr_default, task, NULL );
23501 if( status ) return errno;
23503 /* give thread a chance to complete */
23504 /* it should remain joinable and hence detachable */
23507 status = pthread_detach( &t );
23508 if( status ) return errno;
23511 #ifdef HAVE_LINUX_THREADS
23512 pthread_kill_other_threads_np();
23520 rm -f conftest$ac_exeext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23522 (eval $ac_link) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; }; then
23531 ol_cv_pthread_lib_lpthreads=yes
23533 echo "$as_me: program exited with status $ac_status" >&5
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ( exit $ac_status )
23538 ol_cv_pthread_lib_lpthreads=no
23540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23547 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23548 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23550 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23551 ol_link_pthreads="-lpthreads"
23552 ol_link_threads=posix
23557 if test $ol_link_threads != no ; then
23558 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23560 save_CPPFLAGS="$CPPFLAGS"
23562 LIBS="$LTHREAD_LIBS $LIBS"
23567 for ac_func in sched_yield pthread_yield thr_yield
23569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23570 echo "$as_me:$LINENO: checking for $ac_func" >&5
23571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23572 if eval "test \"\${$as_ac_var+set}\" = set"; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23583 #define $ac_func innocuous_$ac_func
23585 /* System header to define __stub macros and hopefully few prototypes,
23586 which can conflict with char $ac_func (); below.
23587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23588 <limits.h> exists even on freestanding compilers. */
23591 # include <limits.h>
23593 # include <assert.h>
23598 /* Override any gcc2 internal prototype to avoid an error. */
23603 /* We use char because int might match the return type of a gcc2
23604 builtin and then its argument prototype would still apply. */
23606 /* The GNU C library defines this for functions which it implements
23607 to always fail with ENOSYS. Some functions are actually named
23608 something starting with __ and the normal name is an alias. */
23609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23612 char (*f) () = $ac_func;
23621 return f != $ac_func;
23626 rm -f conftest.$ac_objext conftest$ac_exeext
23627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23628 (eval $ac_link) 2>conftest.er1
23630 grep -v '^ *+' conftest.er1 >conftest.err
23632 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } &&
23635 { ac_try='test -z "$ac_c_werror_flag"
23636 || test ! -s conftest.err'
23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; } &&
23642 { ac_try='test -s conftest$ac_exeext'
23643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644 (eval $ac_try) 2>&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); }; }; then
23648 eval "$as_ac_var=yes"
23650 echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23653 eval "$as_ac_var=no"
23655 rm -f conftest.err conftest.$ac_objext \
23656 conftest$ac_exeext conftest.$ac_ext
23658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23660 if test `eval echo '${'$as_ac_var'}'` = yes; then
23661 cat >>confdefs.h <<_ACEOF
23662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23669 if test $ac_cv_func_sched_yield = no &&
23670 test $ac_cv_func_pthread_yield = no &&
23671 test $ac_cv_func_thr_yield = no ; then
23672 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23673 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23674 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 ac_check_lib_save_LIBS=$LIBS
23679 cat >conftest.$ac_ext <<_ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h. */
23686 /* Override any gcc2 internal prototype to avoid an error. */
23690 /* We use char because int might match the return type of a gcc2
23691 builtin and then its argument prototype would still apply. */
23692 char sched_yield ();
23701 rm -f conftest.$ac_objext conftest$ac_exeext
23702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23703 (eval $ac_link) 2>conftest.er1
23705 grep -v '^ *+' conftest.er1 >conftest.err
23707 cat conftest.err >&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } &&
23710 { ac_try='test -z "$ac_c_werror_flag"
23711 || test ! -s conftest.err'
23712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); }; } &&
23717 { ac_try='test -s conftest$ac_exeext'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; }; then
23723 ac_cv_lib_rt_sched_yield=yes
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23728 ac_cv_lib_rt_sched_yield=no
23730 rm -f conftest.err conftest.$ac_objext \
23731 conftest$ac_exeext conftest.$ac_ext
23732 LIBS=$ac_check_lib_save_LIBS
23734 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23735 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23736 if test $ac_cv_lib_rt_sched_yield = yes; then
23737 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23739 cat >>confdefs.h <<\_ACEOF
23740 #define HAVE_SCHED_YIELD 1
23743 ac_cv_func_sched_yield=yes
23745 ac_cv_func_sched_yield=no
23749 if test $ac_cv_func_sched_yield = no &&
23750 test $ac_cv_func_pthread_yield = no &&
23751 test "$ac_cv_func_thr_yield" = no ; then
23752 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23753 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23757 for ac_func in pthread_kill
23759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23760 echo "$as_me:$LINENO: checking for $ac_func" >&5
23761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23762 if eval "test \"\${$as_ac_var+set}\" = set"; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23773 #define $ac_func innocuous_$ac_func
23775 /* System header to define __stub macros and hopefully few prototypes,
23776 which can conflict with char $ac_func (); below.
23777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23778 <limits.h> exists even on freestanding compilers. */
23781 # include <limits.h>
23783 # include <assert.h>
23788 /* Override any gcc2 internal prototype to avoid an error. */
23793 /* We use char because int might match the return type of a gcc2
23794 builtin and then its argument prototype would still apply. */
23796 /* The GNU C library defines this for functions which it implements
23797 to always fail with ENOSYS. Some functions are actually named
23798 something starting with __ and the normal name is an alias. */
23799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23802 char (*f) () = $ac_func;
23811 return f != $ac_func;
23816 rm -f conftest.$ac_objext conftest$ac_exeext
23817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23818 (eval $ac_link) 2>conftest.er1
23820 grep -v '^ *+' conftest.er1 >conftest.err
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } &&
23825 { ac_try='test -z "$ac_c_werror_flag"
23826 || test ! -s conftest.err'
23827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23828 (eval $ac_try) 2>&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); }; } &&
23832 { ac_try='test -s conftest$ac_exeext'
23833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834 (eval $ac_try) 2>&5
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); }; }; then
23838 eval "$as_ac_var=yes"
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23843 eval "$as_ac_var=no"
23845 rm -f conftest.err conftest.$ac_objext \
23846 conftest$ac_exeext conftest.$ac_ext
23848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23850 if test `eval echo '${'$as_ac_var'}'` = yes; then
23851 cat >>confdefs.h <<_ACEOF
23852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23859 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23860 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23861 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23862 echo $ECHO_N "(cached) $ECHO_C" >&6
23865 cat >conftest.$ac_ext <<_ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
23872 #include <pthread.h>
23873 pthread_rwlock_t rwlock;
23878 pthread_rwlock_destroy(&rwlock);
23883 rm -f conftest.$ac_objext conftest$ac_exeext
23884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23885 (eval $ac_link) 2>conftest.er1
23887 grep -v '^ *+' conftest.er1 >conftest.err
23889 cat conftest.err >&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } &&
23892 { ac_try='test -z "$ac_c_werror_flag"
23893 || test ! -s conftest.err'
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; } &&
23899 { ac_try='test -s conftest$ac_exeext'
23900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901 (eval $ac_try) 2>&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); }; }; then
23905 ol_cv_func_pthread_rwlock_destroy=yes
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23910 ol_cv_func_pthread_rwlock_destroy=no
23912 rm -f conftest.err conftest.$ac_objext \
23913 conftest$ac_exeext conftest.$ac_ext
23916 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23917 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23918 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23920 cat >>confdefs.h <<\_ACEOF
23921 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23926 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23927 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23928 if test "${ol_cv_func_pthread_detach+set}" = set; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 cat >conftest.$ac_ext <<_ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23939 #include <pthread.h>
23941 #define NULL (void*)0
23947 pthread_detach(NULL);
23952 rm -f conftest.$ac_objext conftest$ac_exeext
23953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23954 (eval $ac_link) 2>conftest.er1
23956 grep -v '^ *+' conftest.er1 >conftest.err
23958 cat conftest.err >&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } &&
23961 { ac_try='test -z "$ac_c_werror_flag"
23962 || test ! -s conftest.err'
23963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964 (eval $ac_try) 2>&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); }; } &&
23968 { ac_try='test -s conftest$ac_exeext'
23969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970 (eval $ac_try) 2>&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }; }; then
23974 ol_cv_func_pthread_detach=yes
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23979 ol_cv_func_pthread_detach=no
23981 rm -f conftest.err conftest.$ac_objext \
23982 conftest$ac_exeext conftest.$ac_ext
23985 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23986 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23988 if test $ol_cv_func_pthread_detach = no ; then
23989 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23990 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23991 { (exit 1); exit 1; }; }
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_PTHREAD_DETACH 1
24005 pthread_setconcurrency \
24006 pthread_getconcurrency \
24007 thr_setconcurrency \
24008 thr_getconcurrency \
24011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24012 echo "$as_me:$LINENO: checking for $ac_func" >&5
24013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24014 if eval "test \"\${$as_ac_var+set}\" = set"; then
24015 echo $ECHO_N "(cached) $ECHO_C" >&6
24017 cat >conftest.$ac_ext <<_ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24025 #define $ac_func innocuous_$ac_func
24027 /* System header to define __stub macros and hopefully few prototypes,
24028 which can conflict with char $ac_func (); below.
24029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24030 <limits.h> exists even on freestanding compilers. */
24033 # include <limits.h>
24035 # include <assert.h>
24040 /* Override any gcc2 internal prototype to avoid an error. */
24045 /* We use char because int might match the return type of a gcc2
24046 builtin and then its argument prototype would still apply. */
24048 /* The GNU C library defines this for functions which it implements
24049 to always fail with ENOSYS. Some functions are actually named
24050 something starting with __ and the normal name is an alias. */
24051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24054 char (*f) () = $ac_func;
24063 return f != $ac_func;
24068 rm -f conftest.$ac_objext conftest$ac_exeext
24069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24070 (eval $ac_link) 2>conftest.er1
24072 grep -v '^ *+' conftest.er1 >conftest.err
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } &&
24077 { ac_try='test -z "$ac_c_werror_flag"
24078 || test ! -s conftest.err'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; } &&
24084 { ac_try='test -s conftest$ac_exeext'
24085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086 (eval $ac_try) 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); }; }; then
24090 eval "$as_ac_var=yes"
24092 echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24095 eval "$as_ac_var=no"
24097 rm -f conftest.err conftest.$ac_objext \
24098 conftest$ac_exeext conftest.$ac_ext
24100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24102 if test `eval echo '${'$as_ac_var'}'` = yes; then
24103 cat >>confdefs.h <<_ACEOF
24104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24113 for ac_func in pthread_kill_other_threads_np
24115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24116 echo "$as_me:$LINENO: checking for $ac_func" >&5
24117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_var+set}\" = set"; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 cat >conftest.$ac_ext <<_ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24129 #define $ac_func innocuous_$ac_func
24131 /* System header to define __stub macros and hopefully few prototypes,
24132 which can conflict with char $ac_func (); below.
24133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24134 <limits.h> exists even on freestanding compilers. */
24137 # include <limits.h>
24139 # include <assert.h>
24144 /* Override any gcc2 internal prototype to avoid an error. */
24149 /* We use char because int might match the return type of a gcc2
24150 builtin and then its argument prototype would still apply. */
24152 /* The GNU C library defines this for functions which it implements
24153 to always fail with ENOSYS. Some functions are actually named
24154 something starting with __ and the normal name is an alias. */
24155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24158 char (*f) () = $ac_func;
24167 return f != $ac_func;
24172 rm -f conftest.$ac_objext conftest$ac_exeext
24173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24174 (eval $ac_link) 2>conftest.er1
24176 grep -v '^ *+' conftest.er1 >conftest.err
24178 cat conftest.err >&5
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); } &&
24181 { ac_try='test -z "$ac_c_werror_flag"
24182 || test ! -s conftest.err'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; } &&
24188 { ac_try='test -s conftest$ac_exeext'
24189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190 (eval $ac_try) 2>&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); }; }; then
24194 eval "$as_ac_var=yes"
24196 echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24199 eval "$as_ac_var=no"
24201 rm -f conftest.err conftest.$ac_objext \
24202 conftest$ac_exeext conftest.$ac_ext
24204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24206 if test `eval echo '${'$as_ac_var'}'` = yes; then
24207 cat >>confdefs.h <<_ACEOF
24208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24214 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24215 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24216 if test "${ol_cv_sys_linux_threads+set}" = set; then
24217 echo $ECHO_N "(cached) $ECHO_C" >&6
24219 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24221 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24222 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24227 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24228 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24229 if test "${ol_cv_linux_threads+set}" = set; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24233 if test $ol_cv_header_linux_threads = yes &&
24234 test $ol_cv_sys_linux_threads = yes; then
24235 ol_cv_linux_threads=yes
24236 elif test $ol_cv_header_linux_threads = no &&
24237 test $ol_cv_sys_linux_threads = no; then
24238 ol_cv_linux_threads=no
24240 ol_cv_linux_threads=error
24244 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24245 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24248 if test $ol_cv_linux_threads = error; then
24249 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24250 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24251 { (exit 1); exit 1; }; };
24254 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24255 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24256 if test "${ol_cv_pthread_create_works+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24260 if test "$cross_compiling" = yes; then
24261 ol_cv_pthread_create_works=yes
24263 cat >conftest.$ac_ext <<_ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24270 /* pthread test headers */
24271 #include <pthread.h>
24272 #if HAVE_PTHREADS < 7
24276 #define NULL (void*)0
24279 static void *task(p)
24282 return (void *) (p == NULL);
24286 int main(argc, argv)
24291 /* pthread test function */
24292 #ifndef PTHREAD_CREATE_DETACHED
24293 #define PTHREAD_CREATE_DETACHED 1
24297 int detach = PTHREAD_CREATE_DETACHED;
24299 #if HAVE_PTHREADS > 4
24300 /* Final pthreads */
24301 pthread_attr_t attr;
24303 status = pthread_attr_init(&attr);
24304 if( status ) return status;
24306 #if HAVE_PTHREADS < 7
24307 status = pthread_attr_setdetachstate(&attr, &detach);
24308 if( status < 0 ) status = errno;
24310 status = pthread_attr_setdetachstate(&attr, detach);
24312 if( status ) return status;
24313 status = pthread_create( &t, &attr, task, NULL );
24314 #if HAVE_PTHREADS < 7
24315 if( status < 0 ) status = errno;
24317 if( status ) return status;
24319 /* Draft 4 pthreads */
24320 status = pthread_create( &t, pthread_attr_default, task, NULL );
24321 if( status ) return errno;
24323 /* give thread a chance to complete */
24324 /* it should remain joinable and hence detachable */
24327 status = pthread_detach( &t );
24328 if( status ) return errno;
24331 #ifdef HAVE_LINUX_THREADS
24332 pthread_kill_other_threads_np();
24340 rm -f conftest$ac_exeext
24341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24342 (eval $ac_link) 2>&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 ol_cv_pthread_create_works=yes
24353 echo "$as_me: program exited with status $ac_status" >&5
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 ( exit $ac_status )
24358 ol_cv_pthread_create_works=no
24360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24363 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24364 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24366 if test $ol_cv_pthread_create_works = no ; then
24367 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24368 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24369 { (exit 1); exit 1; }; }
24372 ol_replace_broken_yield=no
24374 if test $ol_replace_broken_yield = yes ; then
24376 cat >>confdefs.h <<\_ACEOF
24377 #define REPLACE_BROKEN_YIELD 1
24382 if test $ol_with_yielding_select = auto ; then
24383 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24384 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24385 if test "${ol_cv_pthread_select_yields+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 if test "$cross_compiling" = yes; then
24390 ol_cv_pthread_select_yields=cross
24392 cat >conftest.$ac_ext <<_ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24399 #include <sys/types.h>
24400 #include <sys/time.h>
24401 #include <unistd.h>
24402 #include <pthread.h>
24404 #define NULL (void*) 0
24407 static int fildes[2];
24409 static void *task(p)
24421 FD_SET(fildes[0], &rfds);
24423 /* we're not interested in any fds */
24424 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24431 exit(0); /* if we exit here, the select blocked the whole process */
24434 int main(argc, argv)
24440 /* create a pipe to select */
24441 if(pipe(&fildes[0])) {
24446 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24447 (void) pthread_setconcurrency(2);
24449 #ifdef HAVE_THR_SETCONCURRENCY
24450 /* Set Solaris LWP concurrency to 2 */
24451 thr_setconcurrency(2);
24455 #if HAVE_PTHREADS < 6
24456 pthread_create(&t, pthread_attr_default, task, NULL);
24458 pthread_create(&t, NULL, task, NULL);
24461 /* make sure task runs first */
24462 #ifdef HAVE_THR_YIELD
24464 #elif defined( HAVE_SCHED_YIELD )
24466 #elif defined( HAVE_PTHREAD_YIELD )
24473 rm -f conftest$ac_exeext
24474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24475 (eval $ac_link) 2>&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; }; then
24484 ol_cv_pthread_select_yields=no
24486 echo "$as_me: program exited with status $ac_status" >&5
24487 echo "$as_me: failed program was:" >&5
24488 sed 's/^/| /' conftest.$ac_ext >&5
24490 ( exit $ac_status )
24491 ol_cv_pthread_select_yields=yes
24493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24496 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24497 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24499 if test $ol_cv_pthread_select_yields = cross ; then
24500 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24501 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24502 { (exit 1); exit 1; }; }
24505 if test $ol_cv_pthread_select_yields = yes ; then
24506 ol_with_yielding_select=yes
24510 CPPFLAGS="$save_CPPFLAGS"
24513 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24514 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24515 { (exit 1); exit 1; }; }
24519 if test $ol_with_threads = posix ; then
24520 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24521 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24522 { (exit 1); exit 1; }; }
24527 case $ol_with_threads in auto | yes | mach)
24531 for ac_header in mach/cthreads.h cthreads.h
24533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24535 echo "$as_me:$LINENO: checking for $ac_header" >&5
24536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24538 echo $ECHO_N "(cached) $ECHO_C" >&6
24540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24543 # Is the header compilable?
24544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24546 cat >conftest.$ac_ext <<_ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h. */
24552 $ac_includes_default
24553 #include <$ac_header>
24555 rm -f conftest.$ac_objext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24557 (eval $ac_compile) 2>conftest.er1
24559 grep -v '^ *+' conftest.er1 >conftest.err
24561 cat conftest.err >&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } &&
24564 { ac_try='test -z "$ac_c_werror_flag"
24565 || test ! -s conftest.err'
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; } &&
24571 { ac_try='test -s conftest.$ac_objext'
24572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573 (eval $ac_try) 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 ac_header_compiler=yes
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 ac_header_compiler=no
24584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24586 echo "${ECHO_T}$ac_header_compiler" >&6
24588 # Is the header present?
24589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24591 cat >conftest.$ac_ext <<_ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 #include <$ac_header>
24599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } >/dev/null; then
24607 if test -s conftest.err; then
24608 ac_cpp_err=$ac_c_preproc_warn_flag
24609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24616 if test -z "$ac_cpp_err"; then
24617 ac_header_preproc=yes
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24622 ac_header_preproc=no
24624 rm -f conftest.err conftest.$ac_ext
24625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24626 echo "${ECHO_T}$ac_header_preproc" >&6
24628 # So? What about this header?
24629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24635 ac_header_preproc=yes
24638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24652 ## --------------------------------------------- ##
24653 ## Report this to <http://www.openldap.org/its/> ##
24654 ## --------------------------------------------- ##
24657 sed "s/^/$as_me: WARNING: /" >&2
24660 echo "$as_me:$LINENO: checking for $ac_header" >&5
24661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24663 echo $ECHO_N "(cached) $ECHO_C" >&6
24665 eval "$as_ac_Header=\$ac_header_preproc"
24667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24672 cat >>confdefs.h <<_ACEOF
24673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24680 if test $ac_cv_header_mach_cthreads_h = yes ; then
24681 ol_with_threads=found
24683 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24684 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24685 if test "${ac_cv_func_cthread_fork+set}" = set; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24688 cat >conftest.$ac_ext <<_ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24696 #define cthread_fork innocuous_cthread_fork
24698 /* System header to define __stub macros and hopefully few prototypes,
24699 which can conflict with char cthread_fork (); below.
24700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24701 <limits.h> exists even on freestanding compilers. */
24704 # include <limits.h>
24706 # include <assert.h>
24709 #undef cthread_fork
24711 /* Override any gcc2 internal prototype to avoid an error. */
24716 /* We use char because int might match the return type of a gcc2
24717 builtin and then its argument prototype would still apply. */
24718 char cthread_fork ();
24719 /* The GNU C library defines this for functions which it implements
24720 to always fail with ENOSYS. Some functions are actually named
24721 something starting with __ and the normal name is an alias. */
24722 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24725 char (*f) () = cthread_fork;
24734 return f != cthread_fork;
24739 rm -f conftest.$ac_objext conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741 (eval $ac_link) 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } &&
24748 { ac_try='test -z "$ac_c_werror_flag"
24749 || test ! -s conftest.err'
24750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751 (eval $ac_try) 2>&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; } &&
24755 { ac_try='test -s conftest$ac_exeext'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
24761 ac_cv_func_cthread_fork=yes
24763 echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 ac_cv_func_cthread_fork=no
24768 rm -f conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
24771 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24772 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24773 if test $ac_cv_func_cthread_fork = yes; then
24774 ol_link_threads=yes
24778 if test $ol_link_threads = no ; then
24779 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24780 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24781 if test "${ol_cv_cthread_all_load+set}" = set; then
24782 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 LIBS="-all_load $LIBS"
24787 cat >conftest.$ac_ext <<_ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h. */
24793 #include <mach/cthreads.h>
24798 cthread_fork((void *)0, (void *)0);
24804 rm -f conftest.$ac_objext conftest$ac_exeext
24805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24806 (eval $ac_link) 2>conftest.er1
24808 grep -v '^ *+' conftest.er1 >conftest.err
24810 cat conftest.err >&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } &&
24813 { ac_try='test -z "$ac_c_werror_flag"
24814 || test ! -s conftest.err'
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; } &&
24820 { ac_try='test -s conftest$ac_exeext'
24821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822 (eval $ac_try) 2>&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); }; }; then
24826 ol_cv_cthread_all_load=yes
24828 echo "$as_me: failed program was:" >&5
24829 sed 's/^/| /' conftest.$ac_ext >&5
24831 ol_cv_cthread_all_load=no
24833 rm -f conftest.err conftest.$ac_objext \
24834 conftest$ac_exeext conftest.$ac_ext
24838 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24839 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24841 if test $ol_cv_cthread_all_load = yes ; then
24842 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24843 ol_link_threads=mach
24844 ol_with_threads=found
24848 elif test $ac_cv_header_cthreads_h = yes ; then
24850 ol_with_threads=found
24853 LIBS="$LIBS -lthreads"
24854 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24855 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24856 if test "${ac_cv_func_cthread_fork+set}" = set; then
24857 echo $ECHO_N "(cached) $ECHO_C" >&6
24859 cat >conftest.$ac_ext <<_ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24865 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24867 #define cthread_fork innocuous_cthread_fork
24869 /* System header to define __stub macros and hopefully few prototypes,
24870 which can conflict with char cthread_fork (); below.
24871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24872 <limits.h> exists even on freestanding compilers. */
24875 # include <limits.h>
24877 # include <assert.h>
24880 #undef cthread_fork
24882 /* Override any gcc2 internal prototype to avoid an error. */
24887 /* We use char because int might match the return type of a gcc2
24888 builtin and then its argument prototype would still apply. */
24889 char cthread_fork ();
24890 /* The GNU C library defines this for functions which it implements
24891 to always fail with ENOSYS. Some functions are actually named
24892 something starting with __ and the normal name is an alias. */
24893 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24896 char (*f) () = cthread_fork;
24905 return f != cthread_fork;
24910 rm -f conftest.$ac_objext conftest$ac_exeext
24911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24912 (eval $ac_link) 2>conftest.er1
24914 grep -v '^ *+' conftest.er1 >conftest.err
24916 cat conftest.err >&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } &&
24919 { ac_try='test -z "$ac_c_werror_flag"
24920 || test ! -s conftest.err'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; } &&
24926 { ac_try='test -s conftest$ac_exeext'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; }; then
24932 ac_cv_func_cthread_fork=yes
24934 echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24937 ac_cv_func_cthread_fork=no
24939 rm -f conftest.err conftest.$ac_objext \
24940 conftest$ac_exeext conftest.$ac_ext
24942 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24943 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24944 if test $ac_cv_func_cthread_fork = yes; then
24945 ol_link_threads=yes
24950 if test $ol_link_threads = yes ; then
24951 LTHREAD_LIBS="-lthreads"
24952 ol_link_threads=mach
24953 ol_with_threads=found
24955 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24956 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24957 { (exit 1); exit 1; }; }
24960 elif test $ol_with_threads = mach ; then
24961 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24962 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24963 { (exit 1); exit 1; }; }
24966 if test $ol_link_threads = mach ; then
24968 cat >>confdefs.h <<\_ACEOF
24969 #define HAVE_MACH_CTHREADS 1
24972 elif test $ol_with_threads = found ; then
24973 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24974 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24975 { (exit 1); exit 1; }; }
24980 case $ol_with_threads in auto | yes | pth)
24983 for ac_header in pth.h
24985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24987 echo "$as_me:$LINENO: checking for $ac_header" >&5
24988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24995 # Is the header compilable?
24996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24998 cat >conftest.$ac_ext <<_ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h. */
25004 $ac_includes_default
25005 #include <$ac_header>
25007 rm -f conftest.$ac_objext
25008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25009 (eval $ac_compile) 2>conftest.er1
25011 grep -v '^ *+' conftest.er1 >conftest.err
25013 cat conftest.err >&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } &&
25016 { ac_try='test -z "$ac_c_werror_flag"
25017 || test ! -s conftest.err'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; } &&
25023 { ac_try='test -s conftest.$ac_objext'
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; }; then
25029 ac_header_compiler=yes
25031 echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25034 ac_header_compiler=no
25036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25038 echo "${ECHO_T}$ac_header_compiler" >&6
25040 # Is the header present?
25041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25043 cat >conftest.$ac_ext <<_ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h. */
25049 #include <$ac_header>
25051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25054 grep -v '^ *+' conftest.er1 >conftest.err
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } >/dev/null; then
25059 if test -s conftest.err; then
25060 ac_cpp_err=$ac_c_preproc_warn_flag
25061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25068 if test -z "$ac_cpp_err"; then
25069 ac_header_preproc=yes
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25074 ac_header_preproc=no
25076 rm -f conftest.err conftest.$ac_ext
25077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25078 echo "${ECHO_T}$ac_header_preproc" >&6
25080 # So? What about this header?
25081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25087 ac_header_preproc=yes
25090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25104 ## --------------------------------------------- ##
25105 ## Report this to <http://www.openldap.org/its/> ##
25106 ## --------------------------------------------- ##
25109 sed "s/^/$as_me: WARNING: /" >&2
25112 echo "$as_me:$LINENO: checking for $ac_header" >&5
25113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 eval "$as_ac_Header=\$ac_header_preproc"
25119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25124 cat >>confdefs.h <<_ACEOF
25125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25133 if test $ac_cv_header_pth_h = yes ; then
25134 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25135 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25136 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25137 echo $ECHO_N "(cached) $ECHO_C" >&6
25139 ac_check_lib_save_LIBS=$LIBS
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25148 /* Override any gcc2 internal prototype to avoid an error. */
25152 /* We use char because int might match the return type of a gcc2
25153 builtin and then its argument prototype would still apply. */
25154 char pth_version ();
25163 rm -f conftest.$ac_objext conftest$ac_exeext
25164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25165 (eval $ac_link) 2>conftest.er1
25167 grep -v '^ *+' conftest.er1 >conftest.err
25169 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } &&
25172 { ac_try='test -z "$ac_c_werror_flag"
25173 || test ! -s conftest.err'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; } &&
25179 { ac_try='test -s conftest$ac_exeext'
25180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25181 (eval $ac_try) 2>&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); }; }; then
25185 ac_cv_lib_pth_pth_version=yes
25187 echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25190 ac_cv_lib_pth_pth_version=no
25192 rm -f conftest.err conftest.$ac_objext \
25193 conftest$ac_exeext conftest.$ac_ext
25194 LIBS=$ac_check_lib_save_LIBS
25196 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25197 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25198 if test $ac_cv_lib_pth_pth_version = yes; then
25205 if test $have_pth = yes ; then
25207 cat >>confdefs.h <<\_ACEOF
25208 #define HAVE_GNU_PTH 1
25211 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25212 ol_link_threads=pth
25213 ol_with_threads=found
25215 if test $ol_with_yielding_select = auto ; then
25216 ol_with_yielding_select=yes
25223 case $ol_with_threads in auto | yes | lwp)
25227 for ac_header in thread.h synch.h
25229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25231 echo "$as_me:$LINENO: checking for $ac_header" >&5
25232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25239 # Is the header compilable?
25240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25242 cat >conftest.$ac_ext <<_ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h. */
25248 $ac_includes_default
25249 #include <$ac_header>
25251 rm -f conftest.$ac_objext
25252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25253 (eval $ac_compile) 2>conftest.er1
25255 grep -v '^ *+' conftest.er1 >conftest.err
25257 cat conftest.err >&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); } &&
25260 { ac_try='test -z "$ac_c_werror_flag"
25261 || test ! -s conftest.err'
25262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25263 (eval $ac_try) 2>&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); }; } &&
25267 { ac_try='test -s conftest.$ac_objext'
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; }; then
25273 ac_header_compiler=yes
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25278 ac_header_compiler=no
25280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25282 echo "${ECHO_T}$ac_header_compiler" >&6
25284 # Is the header present?
25285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25287 cat >conftest.$ac_ext <<_ACEOF
25290 cat confdefs.h >>conftest.$ac_ext
25291 cat >>conftest.$ac_ext <<_ACEOF
25292 /* end confdefs.h. */
25293 #include <$ac_header>
25295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25298 grep -v '^ *+' conftest.er1 >conftest.err
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } >/dev/null; then
25303 if test -s conftest.err; then
25304 ac_cpp_err=$ac_c_preproc_warn_flag
25305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25312 if test -z "$ac_cpp_err"; then
25313 ac_header_preproc=yes
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25318 ac_header_preproc=no
25320 rm -f conftest.err conftest.$ac_ext
25321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25322 echo "${ECHO_T}$ac_header_preproc" >&6
25324 # So? What about this header?
25325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25331 ac_header_preproc=yes
25334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25348 ## --------------------------------------------- ##
25349 ## Report this to <http://www.openldap.org/its/> ##
25350 ## --------------------------------------------- ##
25353 sed "s/^/$as_me: WARNING: /" >&2
25356 echo "$as_me:$LINENO: checking for $ac_header" >&5
25357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25361 eval "$as_ac_Header=\$ac_header_preproc"
25363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25368 cat >>confdefs.h <<_ACEOF
25369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25376 if test $ac_cv_header_thread_h = yes &&
25377 test $ac_cv_header_synch_h = yes ; then
25378 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25379 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25380 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 ac_check_lib_save_LIBS=$LIBS
25384 LIBS="-lthread $LIBS"
25385 cat >conftest.$ac_ext <<_ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h. */
25392 /* Override any gcc2 internal prototype to avoid an error. */
25396 /* We use char because int might match the return type of a gcc2
25397 builtin and then its argument prototype would still apply. */
25398 char thr_create ();
25407 rm -f conftest.$ac_objext conftest$ac_exeext
25408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25409 (eval $ac_link) 2>conftest.er1
25411 grep -v '^ *+' conftest.er1 >conftest.err
25413 cat conftest.err >&5
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); } &&
25416 { ac_try='test -z "$ac_c_werror_flag"
25417 || test ! -s conftest.err'
25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419 (eval $ac_try) 2>&5
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; } &&
25423 { ac_try='test -s conftest$ac_exeext'
25424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25425 (eval $ac_try) 2>&5
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); }; }; then
25429 ac_cv_lib_thread_thr_create=yes
25431 echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25434 ac_cv_lib_thread_thr_create=no
25436 rm -f conftest.err conftest.$ac_objext \
25437 conftest$ac_exeext conftest.$ac_ext
25438 LIBS=$ac_check_lib_save_LIBS
25440 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25441 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25442 if test $ac_cv_lib_thread_thr_create = yes; then
25449 if test $have_thr = yes ; then
25451 cat >>confdefs.h <<\_ACEOF
25455 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25456 ol_link_threads=thr
25458 if test $ol_with_yielding_select = auto ; then
25459 ol_with_yielding_select=yes
25465 thr_setconcurrency \
25466 thr_getconcurrency \
25469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25470 echo "$as_me:$LINENO: checking for $ac_func" >&5
25471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25472 if eval "test \"\${$as_ac_var+set}\" = set"; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 cat >conftest.$ac_ext <<_ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h. */
25481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25483 #define $ac_func innocuous_$ac_func
25485 /* System header to define __stub macros and hopefully few prototypes,
25486 which can conflict with char $ac_func (); below.
25487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25488 <limits.h> exists even on freestanding compilers. */
25491 # include <limits.h>
25493 # include <assert.h>
25498 /* Override any gcc2 internal prototype to avoid an error. */
25503 /* We use char because int might match the return type of a gcc2
25504 builtin and then its argument prototype would still apply. */
25506 /* The GNU C library defines this for functions which it implements
25507 to always fail with ENOSYS. Some functions are actually named
25508 something starting with __ and the normal name is an alias. */
25509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25512 char (*f) () = $ac_func;
25521 return f != $ac_func;
25526 rm -f conftest.$ac_objext conftest$ac_exeext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25528 (eval $ac_link) 2>conftest.er1
25530 grep -v '^ *+' conftest.er1 >conftest.err
25532 cat conftest.err >&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } &&
25535 { ac_try='test -z "$ac_c_werror_flag"
25536 || test ! -s conftest.err'
25537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538 (eval $ac_try) 2>&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; } &&
25542 { ac_try='test -s conftest$ac_exeext'
25543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544 (eval $ac_try) 2>&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); }; }; then
25548 eval "$as_ac_var=yes"
25550 echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25553 eval "$as_ac_var=no"
25555 rm -f conftest.err conftest.$ac_objext \
25556 conftest$ac_exeext conftest.$ac_ext
25558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25560 if test `eval echo '${'$as_ac_var'}'` = yes; then
25561 cat >>confdefs.h <<_ACEOF
25562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25572 for ac_header in lwp/lwp.h
25574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25576 echo "$as_me:$LINENO: checking for $ac_header" >&5
25577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25579 echo $ECHO_N "(cached) $ECHO_C" >&6
25581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25584 # Is the header compilable?
25585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25587 cat >conftest.$ac_ext <<_ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 $ac_includes_default
25594 #include <$ac_header>
25596 rm -f conftest.$ac_objext
25597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25598 (eval $ac_compile) 2>conftest.er1
25600 grep -v '^ *+' conftest.er1 >conftest.err
25602 cat conftest.err >&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } &&
25605 { ac_try='test -z "$ac_c_werror_flag"
25606 || test ! -s conftest.err'
25607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608 (eval $ac_try) 2>&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); }; } &&
25612 { ac_try='test -s conftest.$ac_objext'
25613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614 (eval $ac_try) 2>&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; }; then
25618 ac_header_compiler=yes
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25623 ac_header_compiler=no
25625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25627 echo "${ECHO_T}$ac_header_compiler" >&6
25629 # Is the header present?
25630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25638 #include <$ac_header>
25640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25643 grep -v '^ *+' conftest.er1 >conftest.err
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } >/dev/null; then
25648 if test -s conftest.err; then
25649 ac_cpp_err=$ac_c_preproc_warn_flag
25650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25657 if test -z "$ac_cpp_err"; then
25658 ac_header_preproc=yes
25660 echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25663 ac_header_preproc=no
25665 rm -f conftest.err conftest.$ac_ext
25666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25667 echo "${ECHO_T}$ac_header_preproc" >&6
25669 # So? What about this header?
25670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25676 ac_header_preproc=yes
25679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25693 ## --------------------------------------------- ##
25694 ## Report this to <http://www.openldap.org/its/> ##
25695 ## --------------------------------------------- ##
25698 sed "s/^/$as_me: WARNING: /" >&2
25701 echo "$as_me:$LINENO: checking for $ac_header" >&5
25702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25704 echo $ECHO_N "(cached) $ECHO_C" >&6
25706 eval "$as_ac_Header=\$ac_header_preproc"
25708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25713 cat >>confdefs.h <<_ACEOF
25714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25721 if test $ac_cv_header_lwp_lwp_h = yes ; then
25722 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25723 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25724 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25725 echo $ECHO_N "(cached) $ECHO_C" >&6
25727 ac_check_lib_save_LIBS=$LIBS
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25736 /* Override any gcc2 internal prototype to avoid an error. */
25740 /* We use char because int might match the return type of a gcc2
25741 builtin and then its argument prototype would still apply. */
25742 char lwp_create ();
25751 rm -f conftest.$ac_objext conftest$ac_exeext
25752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25753 (eval $ac_link) 2>conftest.er1
25755 grep -v '^ *+' conftest.er1 >conftest.err
25757 cat conftest.err >&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } &&
25760 { ac_try='test -z "$ac_c_werror_flag"
25761 || test ! -s conftest.err'
25762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763 (eval $ac_try) 2>&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; } &&
25767 { ac_try='test -s conftest$ac_exeext'
25768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769 (eval $ac_try) 2>&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; }; then
25773 ac_cv_lib_lwp_lwp_create=yes
25775 echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25778 ac_cv_lib_lwp_lwp_create=no
25780 rm -f conftest.err conftest.$ac_objext \
25781 conftest$ac_exeext conftest.$ac_ext
25782 LIBS=$ac_check_lib_save_LIBS
25784 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25785 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25786 if test $ac_cv_lib_lwp_lwp_create = yes; then
25793 if test $have_lwp = yes ; then
25795 cat >>confdefs.h <<\_ACEOF
25799 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25800 ol_link_threads=lwp
25802 if test $ol_with_yielding_select = auto ; then
25803 ol_with_yielding_select=no
25810 if test $ol_with_yielding_select = yes ; then
25812 cat >>confdefs.h <<\_ACEOF
25813 #define HAVE_YIELDING_SELECT 1
25818 if test $ol_with_threads = manual ; then
25819 ol_link_threads=yes
25821 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25822 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25826 for ac_header in pthread.h sched.h
25828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25830 echo "$as_me:$LINENO: checking for $ac_header" >&5
25831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25838 # Is the header compilable?
25839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25841 cat >conftest.$ac_ext <<_ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 $ac_includes_default
25848 #include <$ac_header>
25850 rm -f conftest.$ac_objext
25851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25852 (eval $ac_compile) 2>conftest.er1
25854 grep -v '^ *+' conftest.er1 >conftest.err
25856 cat conftest.err >&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); } &&
25859 { ac_try='test -z "$ac_c_werror_flag"
25860 || test ! -s conftest.err'
25861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25862 (eval $ac_try) 2>&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); }; } &&
25866 { ac_try='test -s conftest.$ac_objext'
25867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868 (eval $ac_try) 2>&5
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); }; }; then
25872 ac_header_compiler=yes
25874 echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25877 ac_header_compiler=no
25879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25881 echo "${ECHO_T}$ac_header_compiler" >&6
25883 # Is the header present?
25884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25886 cat >conftest.$ac_ext <<_ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 #include <$ac_header>
25894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25897 grep -v '^ *+' conftest.er1 >conftest.err
25899 cat conftest.err >&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } >/dev/null; then
25902 if test -s conftest.err; then
25903 ac_cpp_err=$ac_c_preproc_warn_flag
25904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25911 if test -z "$ac_cpp_err"; then
25912 ac_header_preproc=yes
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_header_preproc=no
25919 rm -f conftest.err conftest.$ac_ext
25920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25921 echo "${ECHO_T}$ac_header_preproc" >&6
25923 # So? What about this header?
25924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25930 ac_header_preproc=yes
25933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25947 ## --------------------------------------------- ##
25948 ## Report this to <http://www.openldap.org/its/> ##
25949 ## --------------------------------------------- ##
25952 sed "s/^/$as_me: WARNING: /" >&2
25955 echo "$as_me:$LINENO: checking for $ac_header" >&5
25956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25960 eval "$as_ac_Header=\$ac_header_preproc"
25962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25967 cat >>confdefs.h <<_ACEOF
25968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25977 for ac_func in sched_yield pthread_yield
25979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25980 echo "$as_me:$LINENO: checking for $ac_func" >&5
25981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25982 if eval "test \"\${$as_ac_var+set}\" = set"; then
25983 echo $ECHO_N "(cached) $ECHO_C" >&6
25985 cat >conftest.$ac_ext <<_ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h. */
25991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25993 #define $ac_func innocuous_$ac_func
25995 /* System header to define __stub macros and hopefully few prototypes,
25996 which can conflict with char $ac_func (); below.
25997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25998 <limits.h> exists even on freestanding compilers. */
26001 # include <limits.h>
26003 # include <assert.h>
26008 /* Override any gcc2 internal prototype to avoid an error. */
26013 /* We use char because int might match the return type of a gcc2
26014 builtin and then its argument prototype would still apply. */
26016 /* The GNU C library defines this for functions which it implements
26017 to always fail with ENOSYS. Some functions are actually named
26018 something starting with __ and the normal name is an alias. */
26019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26022 char (*f) () = $ac_func;
26031 return f != $ac_func;
26036 rm -f conftest.$ac_objext conftest$ac_exeext
26037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26038 (eval $ac_link) 2>conftest.er1
26040 grep -v '^ *+' conftest.er1 >conftest.err
26042 cat conftest.err >&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); } &&
26045 { ac_try='test -z "$ac_c_werror_flag"
26046 || test ! -s conftest.err'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; } &&
26052 { ac_try='test -s conftest$ac_exeext'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; }; then
26058 eval "$as_ac_var=yes"
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26063 eval "$as_ac_var=no"
26065 rm -f conftest.err conftest.$ac_objext \
26066 conftest$ac_exeext conftest.$ac_ext
26068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26070 if test `eval echo '${'$as_ac_var'}'` = yes; then
26071 cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26079 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26080 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26081 if test "${ol_cv_header_linux_threads+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 cat >conftest.$ac_ext <<_ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h. */
26090 #include <pthread.h>
26092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26093 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26094 ol_cv_header_linux_threads=yes
26096 ol_cv_header_linux_threads=no
26102 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26103 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26104 if test $ol_cv_header_linux_threads = yes; then
26106 cat >>confdefs.h <<\_ACEOF
26107 #define HAVE_LINUX_THREADS 1
26114 for ac_header in mach/cthreads.h
26116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26118 echo "$as_me:$LINENO: checking for $ac_header" >&5
26119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26126 # Is the header compilable?
26127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26129 cat >conftest.$ac_ext <<_ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h. */
26135 $ac_includes_default
26136 #include <$ac_header>
26138 rm -f conftest.$ac_objext
26139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26140 (eval $ac_compile) 2>conftest.er1
26142 grep -v '^ *+' conftest.er1 >conftest.err
26144 cat conftest.err >&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } &&
26147 { ac_try='test -z "$ac_c_werror_flag"
26148 || test ! -s conftest.err'
26149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150 (eval $ac_try) 2>&5
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); }; } &&
26154 { ac_try='test -s conftest.$ac_objext'
26155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26156 (eval $ac_try) 2>&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); }; }; then
26160 ac_header_compiler=yes
26162 echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26165 ac_header_compiler=no
26167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26169 echo "${ECHO_T}$ac_header_compiler" >&6
26171 # Is the header present?
26172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26174 cat >conftest.$ac_ext <<_ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h. */
26180 #include <$ac_header>
26182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26185 grep -v '^ *+' conftest.er1 >conftest.err
26187 cat conftest.err >&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); } >/dev/null; then
26190 if test -s conftest.err; then
26191 ac_cpp_err=$ac_c_preproc_warn_flag
26192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26199 if test -z "$ac_cpp_err"; then
26200 ac_header_preproc=yes
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 ac_header_preproc=no
26207 rm -f conftest.err conftest.$ac_ext
26208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26209 echo "${ECHO_T}$ac_header_preproc" >&6
26211 # So? What about this header?
26212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26218 ac_header_preproc=yes
26221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26235 ## --------------------------------------------- ##
26236 ## Report this to <http://www.openldap.org/its/> ##
26237 ## --------------------------------------------- ##
26240 sed "s/^/$as_me: WARNING: /" >&2
26243 echo "$as_me:$LINENO: checking for $ac_header" >&5
26244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26246 echo $ECHO_N "(cached) $ECHO_C" >&6
26248 eval "$as_ac_Header=\$ac_header_preproc"
26250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26255 cat >>confdefs.h <<_ACEOF
26256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26264 for ac_header in lwp/lwp.h
26266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26268 echo "$as_me:$LINENO: checking for $ac_header" >&5
26269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26276 # Is the header compilable?
26277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26285 $ac_includes_default
26286 #include <$ac_header>
26288 rm -f conftest.$ac_objext
26289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26290 (eval $ac_compile) 2>conftest.er1
26292 grep -v '^ *+' conftest.er1 >conftest.err
26294 cat conftest.err >&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); } &&
26297 { ac_try='test -z "$ac_c_werror_flag"
26298 || test ! -s conftest.err'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; } &&
26304 { ac_try='test -s conftest.$ac_objext'
26305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306 (eval $ac_try) 2>&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; }; then
26310 ac_header_compiler=yes
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ac_header_compiler=no
26317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26319 echo "${ECHO_T}$ac_header_compiler" >&6
26321 # Is the header present?
26322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26324 cat >conftest.$ac_ext <<_ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h. */
26330 #include <$ac_header>
26332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26335 grep -v '^ *+' conftest.er1 >conftest.err
26337 cat conftest.err >&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } >/dev/null; then
26340 if test -s conftest.err; then
26341 ac_cpp_err=$ac_c_preproc_warn_flag
26342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26349 if test -z "$ac_cpp_err"; then
26350 ac_header_preproc=yes
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ac_header_preproc=no
26357 rm -f conftest.err conftest.$ac_ext
26358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359 echo "${ECHO_T}$ac_header_preproc" >&6
26361 # So? What about this header?
26362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26368 ac_header_preproc=yes
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26385 ## --------------------------------------------- ##
26386 ## Report this to <http://www.openldap.org/its/> ##
26387 ## --------------------------------------------- ##
26390 sed "s/^/$as_me: WARNING: /" >&2
26393 echo "$as_me:$LINENO: checking for $ac_header" >&5
26394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26396 echo $ECHO_N "(cached) $ECHO_C" >&6
26398 eval "$as_ac_Header=\$ac_header_preproc"
26400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26405 cat >>confdefs.h <<_ACEOF
26406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26415 for ac_header in thread.h synch.h
26417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26419 echo "$as_me:$LINENO: checking for $ac_header" >&5
26420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26427 # Is the header compilable?
26428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26430 cat >conftest.$ac_ext <<_ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26436 $ac_includes_default
26437 #include <$ac_header>
26439 rm -f conftest.$ac_objext
26440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441 (eval $ac_compile) 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
26448 { ac_try='test -z "$ac_c_werror_flag"
26449 || test ! -s conftest.err'
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; } &&
26455 { ac_try='test -s conftest.$ac_objext'
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 ac_header_compiler=yes
26463 echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26466 ac_header_compiler=no
26468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26470 echo "${ECHO_T}$ac_header_compiler" >&6
26472 # Is the header present?
26473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26475 cat >conftest.$ac_ext <<_ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26481 #include <$ac_header>
26483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26486 grep -v '^ *+' conftest.er1 >conftest.err
26488 cat conftest.err >&5
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); } >/dev/null; then
26491 if test -s conftest.err; then
26492 ac_cpp_err=$ac_c_preproc_warn_flag
26493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26500 if test -z "$ac_cpp_err"; then
26501 ac_header_preproc=yes
26503 echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26506 ac_header_preproc=no
26508 rm -f conftest.err conftest.$ac_ext
26509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26510 echo "${ECHO_T}$ac_header_preproc" >&6
26512 # So? What about this header?
26513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26519 ac_header_preproc=yes
26522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26536 ## --------------------------------------------- ##
26537 ## Report this to <http://www.openldap.org/its/> ##
26538 ## --------------------------------------------- ##
26541 sed "s/^/$as_me: WARNING: /" >&2
26544 echo "$as_me:$LINENO: checking for $ac_header" >&5
26545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26547 echo $ECHO_N "(cached) $ECHO_C" >&6
26549 eval "$as_ac_Header=\$ac_header_preproc"
26551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26556 cat >>confdefs.h <<_ACEOF
26557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26566 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26567 cat >>confdefs.h <<\_ACEOF
26568 #define REENTRANT 1
26571 cat >>confdefs.h <<\_ACEOF
26572 #define _REENTRANT 1
26575 cat >>confdefs.h <<\_ACEOF
26576 #define THREAD_SAFE 1
26579 cat >>confdefs.h <<\_ACEOF
26580 #define _THREAD_SAFE 1
26583 cat >>confdefs.h <<\_ACEOF
26584 #define THREADSAFE 1
26587 cat >>confdefs.h <<\_ACEOF
26588 #define _THREADSAFE 1
26591 cat >>confdefs.h <<\_ACEOF
26592 #define _SGI_MP_SOURCE 1
26596 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26597 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26598 if test "${ol_cv_errno_thread_specific+set}" = set; then
26599 echo $ECHO_N "(cached) $ECHO_C" >&6
26602 cat >conftest.$ac_ext <<_ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26617 rm -f conftest.$ac_objext conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619 (eval $ac_link) 2>conftest.er1
26621 grep -v '^ *+' conftest.er1 >conftest.err
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } &&
26626 { ac_try='test -z "$ac_c_werror_flag"
26627 || test ! -s conftest.err'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; } &&
26633 { ac_try='test -s conftest$ac_exeext'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; }; then
26639 ol_cv_errno_thread_specific=yes
26641 echo "$as_me: failed program was:" >&5
26642 sed 's/^/| /' conftest.$ac_ext >&5
26644 ol_cv_errno_thread_specific=no
26646 rm -f conftest.err conftest.$ac_objext \
26647 conftest$ac_exeext conftest.$ac_ext
26650 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26651 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26653 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26654 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26655 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26656 echo $ECHO_N "(cached) $ECHO_C" >&6
26659 cat >conftest.$ac_ext <<_ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h. */
26674 rm -f conftest.$ac_objext conftest$ac_exeext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26676 (eval $ac_link) 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
26683 { ac_try='test -z "$ac_c_werror_flag"
26684 || test ! -s conftest.err'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest$ac_exeext'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ol_cv_h_errno_thread_specific=yes
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ol_cv_h_errno_thread_specific=no
26703 rm -f conftest.err conftest.$ac_objext \
26704 conftest$ac_exeext conftest.$ac_ext
26707 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26708 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26710 if test $ol_cv_errno_thread_specific != yes ||
26711 test $ol_cv_h_errno_thread_specific != yes ; then
26712 LIBS="$LTHREAD_LIBS $LIBS"
26718 if test $ol_link_threads = no ; then
26719 if test $ol_with_threads = yes ; then
26720 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26721 echo "$as_me: error: no suitable thread support" >&2;}
26722 { (exit 1); exit 1; }; }
26725 if test $ol_with_threads = auto ; then
26726 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26727 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26732 cat >>confdefs.h <<\_ACEOF
26733 #define NO_THREADS 1
26742 if test $ol_link_threads != no ; then
26744 cat >>confdefs.h <<\_ACEOF
26745 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26755 gethostbyname_r gethostbyaddr_r \
26758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26759 echo "$as_me:$LINENO: checking for $ac_func" >&5
26760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26761 if eval "test \"\${$as_ac_var+set}\" = set"; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26772 #define $ac_func innocuous_$ac_func
26774 /* System header to define __stub macros and hopefully few prototypes,
26775 which can conflict with char $ac_func (); below.
26776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26777 <limits.h> exists even on freestanding compilers. */
26780 # include <limits.h>
26782 # include <assert.h>
26787 /* Override any gcc2 internal prototype to avoid an error. */
26792 /* We use char because int might match the return type of a gcc2
26793 builtin and then its argument prototype would still apply. */
26795 /* The GNU C library defines this for functions which it implements
26796 to always fail with ENOSYS. Some functions are actually named
26797 something starting with __ and the normal name is an alias. */
26798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26801 char (*f) () = $ac_func;
26810 return f != $ac_func;
26815 rm -f conftest.$ac_objext conftest$ac_exeext
26816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26817 (eval $ac_link) 2>conftest.er1
26819 grep -v '^ *+' conftest.er1 >conftest.err
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } &&
26824 { ac_try='test -z "$ac_c_werror_flag"
26825 || test ! -s conftest.err'
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; } &&
26831 { ac_try='test -s conftest$ac_exeext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 eval "$as_ac_var=yes"
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26842 eval "$as_ac_var=no"
26844 rm -f conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
26847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26849 if test `eval echo '${'$as_ac_var'}'` = yes; then
26850 cat >>confdefs.h <<_ACEOF
26851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26858 if test "$ac_cv_func_ctime_r" = no ; then
26859 ol_cv_func_ctime_r_nargs=0
26861 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26862 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26863 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
26866 cat >conftest.$ac_ext <<_ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26876 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26881 rm -f conftest.$ac_objext
26882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26883 (eval $ac_compile) 2>conftest.er1
26885 grep -v '^ *+' conftest.er1 >conftest.err
26887 cat conftest.err >&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); } &&
26890 { ac_try='test -z "$ac_c_werror_flag"
26891 || test ! -s conftest.err'
26892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26893 (eval $ac_try) 2>&5
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); }; } &&
26897 { ac_try='test -s conftest.$ac_objext'
26898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899 (eval $ac_try) 2>&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; }; then
26903 ol_cv_func_ctime_r_nargs3=yes
26905 echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26908 ol_cv_func_ctime_r_nargs3=no
26910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26912 cat >conftest.$ac_ext <<_ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h. */
26922 time_t ti; char *buffer; ctime_r(&ti,buffer);
26927 rm -f conftest.$ac_objext
26928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26929 (eval $ac_compile) 2>conftest.er1
26931 grep -v '^ *+' conftest.er1 >conftest.err
26933 cat conftest.err >&5
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); } &&
26936 { ac_try='test -z "$ac_c_werror_flag"
26937 || test ! -s conftest.err'
26938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26939 (eval $ac_try) 2>&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); }; } &&
26943 { ac_try='test -s conftest.$ac_objext'
26944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26945 (eval $ac_try) 2>&5
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; }; then
26949 ol_cv_func_ctime_r_nargs2=yes
26951 echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26954 ol_cv_func_ctime_r_nargs2=no
26956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26958 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26959 test $ol_cv_func_ctime_r_nargs2 = no ; then
26961 ol_cv_func_ctime_r_nargs=3
26963 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26964 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26966 ol_cv_func_ctime_r_nargs=2
26969 ol_cv_func_ctime_r_nargs=0
26973 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26974 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26976 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26978 cat >>confdefs.h <<_ACEOF
26979 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26986 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26987 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26988 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26989 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26990 echo $ECHO_N "(cached) $ECHO_C" >&6
26992 cat >conftest.$ac_ext <<_ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26998 #include <sys/types.h>
26999 #include <sys/socket.h>
27000 #include <netinet/in.h>
27002 #define BUFSIZE (sizeof(struct hostent)+10)
27006 struct hostent hent; char buffer[BUFSIZE];
27007 int bufsize=BUFSIZE;int h_errno;
27008 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27009 buffer, bufsize, &h_errno);
27014 rm -f conftest.$ac_objext
27015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27016 (eval $ac_compile) 2>conftest.er1
27018 grep -v '^ *+' conftest.er1 >conftest.err
27020 cat conftest.err >&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } &&
27023 { ac_try='test -z "$ac_c_werror_flag"
27024 || test ! -s conftest.err'
27025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026 (eval $ac_try) 2>&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; } &&
27030 { ac_try='test -s conftest.$ac_objext'
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; }; then
27036 ol_cv_func_gethostbyname_r_nargs5=yes
27038 echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27041 ol_cv_func_gethostbyname_r_nargs5=no
27043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27045 cat >conftest.$ac_ext <<_ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h. */
27051 #include <sys/types.h>
27052 #include <sys/socket.h>
27053 #include <netinet/in.h>
27055 #define BUFSIZE (sizeof(struct hostent)+10)
27059 struct hostent hent;struct hostent *rhent;
27060 char buffer[BUFSIZE];
27061 int bufsize=BUFSIZE;int h_errno;
27062 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27068 rm -f conftest.$ac_objext
27069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27070 (eval $ac_compile) 2>conftest.er1
27072 grep -v '^ *+' conftest.er1 >conftest.err
27074 cat conftest.err >&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); } &&
27077 { ac_try='test -z "$ac_c_werror_flag"
27078 || test ! -s conftest.err'
27079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080 (eval $ac_try) 2>&5
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; } &&
27084 { ac_try='test -s conftest.$ac_objext'
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; }; then
27090 ol_cv_func_gethostbyname_r_nargs6=yes
27092 echo "$as_me: failed program was:" >&5
27093 sed 's/^/| /' conftest.$ac_ext >&5
27095 ol_cv_func_gethostbyname_r_nargs6=no
27097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27099 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27100 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27102 ol_cv_func_gethostbyname_r_nargs=5
27104 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27105 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27107 ol_cv_func_gethostbyname_r_nargs=6
27110 ol_cv_func_gethostbyname_r_nargs=0
27114 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27115 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27116 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27118 cat >>confdefs.h <<_ACEOF
27119 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27125 ol_cv_func_gethostbyname_r_nargs=0
27128 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27129 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27130 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27131 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27132 echo $ECHO_N "(cached) $ECHO_C" >&6
27134 cat >conftest.$ac_ext <<_ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27140 #include <sys/types.h>
27141 #include <sys/socket.h>
27142 #include <netinet/in.h>
27144 #define BUFSIZE (sizeof(struct hostent)+10)
27148 struct hostent hent; char buffer[BUFSIZE];
27149 struct in_addr add;
27150 size_t alen=sizeof(struct in_addr);
27151 int bufsize=BUFSIZE;int h_errno;
27152 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27153 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27158 rm -f conftest.$ac_objext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27160 (eval $ac_compile) 2>conftest.er1
27162 grep -v '^ *+' conftest.er1 >conftest.err
27164 cat conftest.err >&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } &&
27167 { ac_try='test -z "$ac_c_werror_flag"
27168 || test ! -s conftest.err'
27169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170 (eval $ac_try) 2>&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); }; } &&
27174 { ac_try='test -s conftest.$ac_objext'
27175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176 (eval $ac_try) 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; }; then
27180 ol_cv_func_gethostbyaddr_r_nargs7=yes
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 ol_cv_func_gethostbyaddr_r_nargs7=no
27187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27189 cat >conftest.$ac_ext <<_ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h. */
27195 #include <sys/types.h>
27196 #include <sys/socket.h>
27197 #include <netinet/in.h>
27199 #define BUFSIZE (sizeof(struct hostent)+10)
27203 struct hostent hent;
27204 struct hostent *rhent; char buffer[BUFSIZE];
27205 struct in_addr add;
27206 size_t alen=sizeof(struct in_addr);
27207 int bufsize=BUFSIZE;int h_errno;
27208 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27209 alen, AF_INET, &hent, buffer, bufsize,
27215 rm -f conftest.$ac_objext
27216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27217 (eval $ac_compile) 2>conftest.er1
27219 grep -v '^ *+' conftest.er1 >conftest.err
27221 cat conftest.err >&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } &&
27224 { ac_try='test -z "$ac_c_werror_flag"
27225 || test ! -s conftest.err'
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; } &&
27231 { ac_try='test -s conftest.$ac_objext'
27232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233 (eval $ac_try) 2>&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; }; then
27237 ol_cv_func_gethostbyaddr_r_nargs8=yes
27239 echo "$as_me: failed program was:" >&5
27240 sed 's/^/| /' conftest.$ac_ext >&5
27242 ol_cv_func_gethostbyaddr_r_nargs8=no
27244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27246 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27247 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27249 ol_cv_func_gethostbyaddr_r_nargs=7
27251 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27252 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27254 ol_cv_func_gethostbyaddr_r_nargs=8
27257 ol_cv_func_gethostbyaddr_r_nargs=0
27261 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27262 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27263 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27265 cat >>confdefs.h <<_ACEOF
27266 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27272 ol_cv_func_gethostbyaddr_r_nargs=0
27277 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27278 ol_cv_berkeley_db=no
27280 for ac_header in db.h
27282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27284 echo "$as_me:$LINENO: checking for $ac_header" >&5
27285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27287 echo $ECHO_N "(cached) $ECHO_C" >&6
27289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27292 # Is the header compilable?
27293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27295 cat >conftest.$ac_ext <<_ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h. */
27301 $ac_includes_default
27302 #include <$ac_header>
27304 rm -f conftest.$ac_objext
27305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27306 (eval $ac_compile) 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } &&
27313 { ac_try='test -z "$ac_c_werror_flag"
27314 || test ! -s conftest.err'
27315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27316 (eval $ac_try) 2>&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try='test -s conftest.$ac_objext'
27321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322 (eval $ac_try) 2>&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
27326 ac_header_compiler=yes
27328 echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27331 ac_header_compiler=no
27333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27335 echo "${ECHO_T}$ac_header_compiler" >&6
27337 # Is the header present?
27338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27340 cat >conftest.$ac_ext <<_ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27346 #include <$ac_header>
27348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27351 grep -v '^ *+' conftest.er1 >conftest.err
27353 cat conftest.err >&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); } >/dev/null; then
27356 if test -s conftest.err; then
27357 ac_cpp_err=$ac_c_preproc_warn_flag
27358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27365 if test -z "$ac_cpp_err"; then
27366 ac_header_preproc=yes
27368 echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27371 ac_header_preproc=no
27373 rm -f conftest.err conftest.$ac_ext
27374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27375 echo "${ECHO_T}$ac_header_preproc" >&6
27377 # So? What about this header?
27378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27384 ac_header_preproc=yes
27387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27401 ## --------------------------------------------- ##
27402 ## Report this to <http://www.openldap.org/its/> ##
27403 ## --------------------------------------------- ##
27406 sed "s/^/$as_me: WARNING: /" >&2
27409 echo "$as_me:$LINENO: checking for $ac_header" >&5
27410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27414 eval "$as_ac_Header=\$ac_header_preproc"
27416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27421 cat >>confdefs.h <<_ACEOF
27422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27429 if test $ac_cv_header_db_h = yes; then
27432 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27433 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27434 if test "${ol_cv_bdb_major+set}" = set; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27439 if test $ol_cv_bdb_major = 0 ; then
27440 cat >conftest.$ac_ext <<_ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27448 #ifndef DB_VERSION_MAJOR
27449 # define DB_VERSION_MAJOR 1
27451 #if DB_VERSION_MAJOR == 4
27456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27457 $EGREP "__db_version" >/dev/null 2>&1; then
27465 if test $ol_cv_bdb_major = 0 ; then
27466 cat >conftest.$ac_ext <<_ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h. */
27474 #ifndef DB_VERSION_MAJOR
27475 # define DB_VERSION_MAJOR 1
27477 #if DB_VERSION_MAJOR == 3
27482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27483 $EGREP "__db_version" >/dev/null 2>&1; then
27491 if test $ol_cv_bdb_major = 0 ; then
27492 cat >conftest.$ac_ext <<_ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h. */
27500 #ifndef DB_VERSION_MAJOR
27501 # define DB_VERSION_MAJOR 1
27503 #if DB_VERSION_MAJOR == 2
27508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27509 $EGREP "__db_version" >/dev/null 2>&1; then
27517 if test $ol_cv_bdb_major = 0 ; then
27518 cat >conftest.$ac_ext <<_ACEOF
27521 cat confdefs.h >>conftest.$ac_ext
27522 cat >>conftest.$ac_ext <<_ACEOF
27523 /* end confdefs.h. */
27526 #ifndef DB_VERSION_MAJOR
27527 # define DB_VERSION_MAJOR 1
27529 #if DB_VERSION_MAJOR == 1
27534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27535 $EGREP "__db_version" >/dev/null 2>&1; then
27544 if test $ol_cv_bdb_major = 0 ; then
27545 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27546 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27547 { (exit 1); exit 1; }; }
27551 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27552 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27554 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27555 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27556 if test "${ol_cv_bdb_minor+set}" = set; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27561 if test $ol_cv_bdb_minor = 0 ; then
27562 cat >conftest.$ac_ext <<_ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27570 #ifndef DB_VERSION_MINOR
27571 # define DB_VERSION_MINOR 0
27573 #if DB_VERSION_MINOR == 9
27578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27579 $EGREP "__db_version" >/dev/null 2>&1; then
27587 if test $ol_cv_bdb_minor = 0 ; then
27588 cat >conftest.$ac_ext <<_ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27596 #ifndef DB_VERSION_MINOR
27597 # define DB_VERSION_MINOR 0
27599 #if DB_VERSION_MINOR == 8
27604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27605 $EGREP "__db_version" >/dev/null 2>&1; then
27613 if test $ol_cv_bdb_minor = 0 ; then
27614 cat >conftest.$ac_ext <<_ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h. */
27622 #ifndef DB_VERSION_MINOR
27623 # define DB_VERSION_MINOR 0
27625 #if DB_VERSION_MINOR == 7
27630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27631 $EGREP "__db_version" >/dev/null 2>&1; then
27639 if test $ol_cv_bdb_minor = 0 ; then
27640 cat >conftest.$ac_ext <<_ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h. */
27648 #ifndef DB_VERSION_MINOR
27649 # define DB_VERSION_MINOR 0
27651 #if DB_VERSION_MINOR == 6
27656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27657 $EGREP "__db_version" >/dev/null 2>&1; then
27665 if test $ol_cv_bdb_minor = 0 ; then
27666 cat >conftest.$ac_ext <<_ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27674 #ifndef DB_VERSION_MINOR
27675 # define DB_VERSION_MINOR 0
27677 #if DB_VERSION_MINOR == 5
27682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27683 $EGREP "__db_version" >/dev/null 2>&1; then
27691 if test $ol_cv_bdb_minor = 0 ; then
27692 cat >conftest.$ac_ext <<_ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h. */
27700 #ifndef DB_VERSION_MINOR
27701 # define DB_VERSION_MINOR 0
27703 #if DB_VERSION_MINOR == 4
27708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27709 $EGREP "__db_version" >/dev/null 2>&1; then
27717 if test $ol_cv_bdb_minor = 0 ; then
27718 cat >conftest.$ac_ext <<_ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h. */
27726 #ifndef DB_VERSION_MINOR
27727 # define DB_VERSION_MINOR 0
27729 #if DB_VERSION_MINOR == 3
27734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27735 $EGREP "__db_version" >/dev/null 2>&1; then
27743 if test $ol_cv_bdb_minor = 0 ; then
27744 cat >conftest.$ac_ext <<_ACEOF
27747 cat confdefs.h >>conftest.$ac_ext
27748 cat >>conftest.$ac_ext <<_ACEOF
27749 /* end confdefs.h. */
27752 #ifndef DB_VERSION_MINOR
27753 # define DB_VERSION_MINOR 0
27755 #if DB_VERSION_MINOR == 2
27760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27761 $EGREP "__db_version" >/dev/null 2>&1; then
27769 if test $ol_cv_bdb_minor = 0 ; then
27770 cat >conftest.$ac_ext <<_ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h. */
27778 #ifndef DB_VERSION_MINOR
27779 # define DB_VERSION_MINOR 0
27781 #if DB_VERSION_MINOR == 1
27786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27787 $EGREP "__db_version" >/dev/null 2>&1; then
27797 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27798 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27800 if test $ol_cv_bdb_major = 4 ; then
27801 if test $ol_cv_bdb_minor = 6 ; then
27802 if test $ol_cv_lib_db = no ; then
27803 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.6)" >&5
27804 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.6)... $ECHO_C" >&6
27805 if test "${ol_cv_db_db_4_dot_6+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27813 cat >conftest.$ac_ext <<_ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h. */
27820 #ifdef HAVE_DB_185_H
27821 # include <db_185.h>
27826 #ifndef DB_VERSION_MAJOR
27827 # define DB_VERSION_MAJOR 1
27831 #define NULL ((void*)0)
27838 #if DB_VERSION_MAJOR > 1
27841 int major, minor, patch;
27843 version = db_version( &major, &minor, &patch );
27845 if( major != DB_VERSION_MAJOR ||
27846 minor < DB_VERSION_MINOR )
27848 printf("Berkeley DB version mismatch\n"
27849 "\theader: %s\n\tlibrary: %s\n",
27850 DB_VERSION_STRING, version);
27856 #if DB_VERSION_MAJOR > 2
27857 db_env_create( NULL, 0 );
27858 #elif DB_VERSION_MAJOR > 1
27859 db_appexit( NULL );
27861 (void) dbopen( NULL, 0, 0, 0, NULL);
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27870 (eval $ac_link) 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
27877 { ac_try='test -z "$ac_c_werror_flag"
27878 || test ! -s conftest.err'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; } &&
27884 { ac_try='test -s conftest$ac_exeext'
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890 ol_cv_db_db_4_dot_6=yes
27892 echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27895 ol_cv_db_db_4_dot_6=no
27897 rm -f conftest.err conftest.$ac_objext \
27898 conftest$ac_exeext conftest.$ac_ext
27903 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_6" >&5
27904 echo "${ECHO_T}$ol_cv_db_db_4_dot_6" >&6
27906 if test $ol_cv_db_db_4_dot_6 = yes ; then
27907 ol_cv_lib_db=-ldb-4.6
27911 if test $ol_cv_lib_db = no ; then
27912 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb46)" >&5
27913 echo $ECHO_N "checking for Berkeley DB link (-ldb46)... $ECHO_C" >&6
27914 if test "${ol_cv_db_db46+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27920 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27922 cat >conftest.$ac_ext <<_ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27929 #ifdef HAVE_DB_185_H
27930 # include <db_185.h>
27935 #ifndef DB_VERSION_MAJOR
27936 # define DB_VERSION_MAJOR 1
27940 #define NULL ((void*)0)
27947 #if DB_VERSION_MAJOR > 1
27950 int major, minor, patch;
27952 version = db_version( &major, &minor, &patch );
27954 if( major != DB_VERSION_MAJOR ||
27955 minor < DB_VERSION_MINOR )
27957 printf("Berkeley DB version mismatch\n"
27958 "\theader: %s\n\tlibrary: %s\n",
27959 DB_VERSION_STRING, version);
27965 #if DB_VERSION_MAJOR > 2
27966 db_env_create( NULL, 0 );
27967 #elif DB_VERSION_MAJOR > 1
27968 db_appexit( NULL );
27970 (void) dbopen( NULL, 0, 0, 0, NULL);
27977 rm -f conftest.$ac_objext conftest$ac_exeext
27978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27979 (eval $ac_link) 2>conftest.er1
27981 grep -v '^ *+' conftest.er1 >conftest.err
27983 cat conftest.err >&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } &&
27986 { ac_try='test -z "$ac_c_werror_flag"
27987 || test ! -s conftest.err'
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28001 echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28006 rm -f conftest.err conftest.$ac_objext \
28007 conftest$ac_exeext conftest.$ac_ext
28012 echo "$as_me:$LINENO: result: $ol_cv_db_db46" >&5
28013 echo "${ECHO_T}$ol_cv_db_db46" >&6
28015 if test $ol_cv_db_db46 = yes ; then
28016 ol_cv_lib_db=-ldb46
28020 if test $ol_cv_lib_db = no ; then
28021 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-46)" >&5
28022 echo $ECHO_N "checking for Berkeley DB link (-ldb-46)... $ECHO_C" >&6
28023 if test "${ol_cv_db_db_46+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28029 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28031 cat >conftest.$ac_ext <<_ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28038 #ifdef HAVE_DB_185_H
28039 # include <db_185.h>
28044 #ifndef DB_VERSION_MAJOR
28045 # define DB_VERSION_MAJOR 1
28049 #define NULL ((void*)0)
28056 #if DB_VERSION_MAJOR > 1
28059 int major, minor, patch;
28061 version = db_version( &major, &minor, &patch );
28063 if( major != DB_VERSION_MAJOR ||
28064 minor < DB_VERSION_MINOR )
28066 printf("Berkeley DB version mismatch\n"
28067 "\theader: %s\n\tlibrary: %s\n",
28068 DB_VERSION_STRING, version);
28074 #if DB_VERSION_MAJOR > 2
28075 db_env_create( NULL, 0 );
28076 #elif DB_VERSION_MAJOR > 1
28077 db_appexit( NULL );
28079 (void) dbopen( NULL, 0, 0, 0, NULL);
28086 rm -f conftest.$ac_objext conftest$ac_exeext
28087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28088 (eval $ac_link) 2>conftest.er1
28090 grep -v '^ *+' conftest.er1 >conftest.err
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag"
28096 || test ! -s conftest.err'
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest$ac_exeext'
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; }; then
28110 echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28115 rm -f conftest.err conftest.$ac_objext \
28116 conftest$ac_exeext conftest.$ac_ext
28121 echo "$as_me:$LINENO: result: $ol_cv_db_db_46" >&5
28122 echo "${ECHO_T}$ol_cv_db_db_46" >&6
28124 if test $ol_cv_db_db_46 = yes ; then
28125 ol_cv_lib_db=-ldb-46
28129 if test $ol_cv_lib_db = no ; then
28130 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-6)" >&5
28131 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-6)... $ECHO_C" >&6
28132 if test "${ol_cv_db_db_4_6+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28138 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28140 cat >conftest.$ac_ext <<_ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28147 #ifdef HAVE_DB_185_H
28148 # include <db_185.h>
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28158 #define NULL ((void*)0)
28165 #if DB_VERSION_MAJOR > 1
28168 int major, minor, patch;
28170 version = db_version( &major, &minor, &patch );
28172 if( major != DB_VERSION_MAJOR ||
28173 minor < DB_VERSION_MINOR )
28175 printf("Berkeley DB version mismatch\n"
28176 "\theader: %s\n\tlibrary: %s\n",
28177 DB_VERSION_STRING, version);
28183 #if DB_VERSION_MAJOR > 2
28184 db_env_create( NULL, 0 );
28185 #elif DB_VERSION_MAJOR > 1
28186 db_appexit( NULL );
28188 (void) dbopen( NULL, 0, 0, 0, NULL);
28195 rm -f conftest.$ac_objext conftest$ac_exeext
28196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28197 (eval $ac_link) 2>conftest.er1
28199 grep -v '^ *+' conftest.er1 >conftest.err
28201 cat conftest.err >&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
28204 { ac_try='test -z "$ac_c_werror_flag"
28205 || test ! -s conftest.err'
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; } &&
28211 { ac_try='test -s conftest$ac_exeext'
28212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; }; then
28217 ol_cv_db_db_4_6=yes
28219 echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28224 rm -f conftest.err conftest.$ac_objext \
28225 conftest$ac_exeext conftest.$ac_ext
28230 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_6" >&5
28231 echo "${ECHO_T}$ol_cv_db_db_4_6" >&6
28233 if test $ol_cv_db_db_4_6 = yes ; then
28234 ol_cv_lib_db=-ldb-4-6
28238 elif test $ol_cv_bdb_minor = 5 ; then
28239 if test $ol_cv_lib_db = no ; then
28240 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
28241 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
28242 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
28243 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28250 cat >conftest.$ac_ext <<_ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28257 #ifdef HAVE_DB_185_H
28258 # include <db_185.h>
28263 #ifndef DB_VERSION_MAJOR
28264 # define DB_VERSION_MAJOR 1
28268 #define NULL ((void*)0)
28275 #if DB_VERSION_MAJOR > 1
28278 int major, minor, patch;
28280 version = db_version( &major, &minor, &patch );
28282 if( major != DB_VERSION_MAJOR ||
28283 minor < DB_VERSION_MINOR )
28285 printf("Berkeley DB version mismatch\n"
28286 "\theader: %s\n\tlibrary: %s\n",
28287 DB_VERSION_STRING, version);
28293 #if DB_VERSION_MAJOR > 2
28294 db_env_create( NULL, 0 );
28295 #elif DB_VERSION_MAJOR > 1
28296 db_appexit( NULL );
28298 (void) dbopen( NULL, 0, 0, 0, NULL);
28305 rm -f conftest.$ac_objext conftest$ac_exeext
28306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28307 (eval $ac_link) 2>conftest.er1
28309 grep -v '^ *+' conftest.er1 >conftest.err
28311 cat conftest.err >&5
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); } &&
28314 { ac_try='test -z "$ac_c_werror_flag"
28315 || test ! -s conftest.err'
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; } &&
28321 { ac_try='test -s conftest$ac_exeext'
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; }; then
28327 ol_cv_db_db_4_dot_5=yes
28329 echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28332 ol_cv_db_db_4_dot_5=no
28334 rm -f conftest.err conftest.$ac_objext \
28335 conftest$ac_exeext conftest.$ac_ext
28340 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28341 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28343 if test $ol_cv_db_db_4_dot_5 = yes ; then
28344 ol_cv_lib_db=-ldb-4.5
28348 if test $ol_cv_lib_db = no ; then
28349 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
28350 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
28351 if test "${ol_cv_db_db45+set}" = set; then
28352 echo $ECHO_N "(cached) $ECHO_C" >&6
28357 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28359 cat >conftest.$ac_ext <<_ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h. */
28366 #ifdef HAVE_DB_185_H
28367 # include <db_185.h>
28372 #ifndef DB_VERSION_MAJOR
28373 # define DB_VERSION_MAJOR 1
28377 #define NULL ((void*)0)
28384 #if DB_VERSION_MAJOR > 1
28387 int major, minor, patch;
28389 version = db_version( &major, &minor, &patch );
28391 if( major != DB_VERSION_MAJOR ||
28392 minor < DB_VERSION_MINOR )
28394 printf("Berkeley DB version mismatch\n"
28395 "\theader: %s\n\tlibrary: %s\n",
28396 DB_VERSION_STRING, version);
28402 #if DB_VERSION_MAJOR > 2
28403 db_env_create( NULL, 0 );
28404 #elif DB_VERSION_MAJOR > 1
28405 db_appexit( NULL );
28407 (void) dbopen( NULL, 0, 0, 0, NULL);
28414 rm -f conftest.$ac_objext conftest$ac_exeext
28415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28416 (eval $ac_link) 2>conftest.er1
28418 grep -v '^ *+' conftest.er1 >conftest.err
28420 cat conftest.err >&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); } &&
28423 { ac_try='test -z "$ac_c_werror_flag"
28424 || test ! -s conftest.err'
28425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28426 (eval $ac_try) 2>&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); }; } &&
28430 { ac_try='test -s conftest$ac_exeext'
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28443 rm -f conftest.err conftest.$ac_objext \
28444 conftest$ac_exeext conftest.$ac_ext
28449 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
28450 echo "${ECHO_T}$ol_cv_db_db45" >&6
28452 if test $ol_cv_db_db45 = yes ; then
28453 ol_cv_lib_db=-ldb45
28457 if test $ol_cv_lib_db = no ; then
28458 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
28459 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
28460 if test "${ol_cv_db_db_45+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28466 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28468 cat >conftest.$ac_ext <<_ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h. */
28475 #ifdef HAVE_DB_185_H
28476 # include <db_185.h>
28481 #ifndef DB_VERSION_MAJOR
28482 # define DB_VERSION_MAJOR 1
28486 #define NULL ((void*)0)
28493 #if DB_VERSION_MAJOR > 1
28496 int major, minor, patch;
28498 version = db_version( &major, &minor, &patch );
28500 if( major != DB_VERSION_MAJOR ||
28501 minor < DB_VERSION_MINOR )
28503 printf("Berkeley DB version mismatch\n"
28504 "\theader: %s\n\tlibrary: %s\n",
28505 DB_VERSION_STRING, version);
28511 #if DB_VERSION_MAJOR > 2
28512 db_env_create( NULL, 0 );
28513 #elif DB_VERSION_MAJOR > 1
28514 db_appexit( NULL );
28516 (void) dbopen( NULL, 0, 0, 0, NULL);
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28525 (eval $ac_link) 2>conftest.er1
28527 grep -v '^ *+' conftest.er1 >conftest.err
28529 cat conftest.err >&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); } &&
28532 { ac_try='test -z "$ac_c_werror_flag"
28533 || test ! -s conftest.err'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; } &&
28539 { ac_try='test -s conftest$ac_exeext'
28540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28541 (eval $ac_try) 2>&5
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); }; }; then
28547 echo "$as_me: failed program was:" >&5
28548 sed 's/^/| /' conftest.$ac_ext >&5
28552 rm -f conftest.err conftest.$ac_objext \
28553 conftest$ac_exeext conftest.$ac_ext
28558 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
28559 echo "${ECHO_T}$ol_cv_db_db_45" >&6
28561 if test $ol_cv_db_db_45 = yes ; then
28562 ol_cv_lib_db=-ldb-45
28566 if test $ol_cv_lib_db = no ; then
28567 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28568 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28569 if test "${ol_cv_db_db_4_5+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28575 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28577 cat >conftest.$ac_ext <<_ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h. */
28584 #ifdef HAVE_DB_185_H
28585 # include <db_185.h>
28590 #ifndef DB_VERSION_MAJOR
28591 # define DB_VERSION_MAJOR 1
28595 #define NULL ((void*)0)
28602 #if DB_VERSION_MAJOR > 1
28605 int major, minor, patch;
28607 version = db_version( &major, &minor, &patch );
28609 if( major != DB_VERSION_MAJOR ||
28610 minor < DB_VERSION_MINOR )
28612 printf("Berkeley DB version mismatch\n"
28613 "\theader: %s\n\tlibrary: %s\n",
28614 DB_VERSION_STRING, version);
28620 #if DB_VERSION_MAJOR > 2
28621 db_env_create( NULL, 0 );
28622 #elif DB_VERSION_MAJOR > 1
28623 db_appexit( NULL );
28625 (void) dbopen( NULL, 0, 0, 0, NULL);
28632 rm -f conftest.$ac_objext conftest$ac_exeext
28633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28634 (eval $ac_link) 2>conftest.er1
28636 grep -v '^ *+' conftest.er1 >conftest.err
28638 cat conftest.err >&5
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); } &&
28641 { ac_try='test -z "$ac_c_werror_flag"
28642 || test ! -s conftest.err'
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; } &&
28648 { ac_try='test -s conftest$ac_exeext'
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; }; then
28654 ol_cv_db_db_4_5=yes
28656 echo "$as_me: failed program was:" >&5
28657 sed 's/^/| /' conftest.$ac_ext >&5
28661 rm -f conftest.err conftest.$ac_objext \
28662 conftest$ac_exeext conftest.$ac_ext
28667 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28668 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28670 if test $ol_cv_db_db_4_5 = yes ; then
28671 ol_cv_lib_db=-ldb-4-5
28675 elif test $ol_cv_bdb_minor = 4 ; then
28676 if test $ol_cv_lib_db = no ; then
28677 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28678 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28679 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28685 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28687 cat >conftest.$ac_ext <<_ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28694 #ifdef HAVE_DB_185_H
28695 # include <db_185.h>
28700 #ifndef DB_VERSION_MAJOR
28701 # define DB_VERSION_MAJOR 1
28705 #define NULL ((void*)0)
28712 #if DB_VERSION_MAJOR > 1
28715 int major, minor, patch;
28717 version = db_version( &major, &minor, &patch );
28719 if( major != DB_VERSION_MAJOR ||
28720 minor < DB_VERSION_MINOR )
28722 printf("Berkeley DB version mismatch\n"
28723 "\theader: %s\n\tlibrary: %s\n",
28724 DB_VERSION_STRING, version);
28730 #if DB_VERSION_MAJOR > 2
28731 db_env_create( NULL, 0 );
28732 #elif DB_VERSION_MAJOR > 1
28733 db_appexit( NULL );
28735 (void) dbopen( NULL, 0, 0, 0, NULL);
28742 rm -f conftest.$ac_objext conftest$ac_exeext
28743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28744 (eval $ac_link) 2>conftest.er1
28746 grep -v '^ *+' conftest.er1 >conftest.err
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } &&
28751 { ac_try='test -z "$ac_c_werror_flag"
28752 || test ! -s conftest.err'
28753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754 (eval $ac_try) 2>&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; } &&
28758 { ac_try='test -s conftest$ac_exeext'
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 ol_cv_db_db_4_dot_4=yes
28766 echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28769 ol_cv_db_db_4_dot_4=no
28771 rm -f conftest.err conftest.$ac_objext \
28772 conftest$ac_exeext conftest.$ac_ext
28777 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28778 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28780 if test $ol_cv_db_db_4_dot_4 = yes ; then
28781 ol_cv_lib_db=-ldb-4.4
28785 if test $ol_cv_lib_db = no ; then
28786 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28787 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28788 if test "${ol_cv_db_db44+set}" = set; then
28789 echo $ECHO_N "(cached) $ECHO_C" >&6
28794 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28796 cat >conftest.$ac_ext <<_ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h. */
28803 #ifdef HAVE_DB_185_H
28804 # include <db_185.h>
28809 #ifndef DB_VERSION_MAJOR
28810 # define DB_VERSION_MAJOR 1
28814 #define NULL ((void*)0)
28821 #if DB_VERSION_MAJOR > 1
28824 int major, minor, patch;
28826 version = db_version( &major, &minor, &patch );
28828 if( major != DB_VERSION_MAJOR ||
28829 minor < DB_VERSION_MINOR )
28831 printf("Berkeley DB version mismatch\n"
28832 "\theader: %s\n\tlibrary: %s\n",
28833 DB_VERSION_STRING, version);
28839 #if DB_VERSION_MAJOR > 2
28840 db_env_create( NULL, 0 );
28841 #elif DB_VERSION_MAJOR > 1
28842 db_appexit( NULL );
28844 (void) dbopen( NULL, 0, 0, 0, NULL);
28851 rm -f conftest.$ac_objext conftest$ac_exeext
28852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28853 (eval $ac_link) 2>conftest.er1
28855 grep -v '^ *+' conftest.er1 >conftest.err
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } &&
28860 { ac_try='test -z "$ac_c_werror_flag"
28861 || test ! -s conftest.err'
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; } &&
28867 { ac_try='test -s conftest$ac_exeext'
28868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869 (eval $ac_try) 2>&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; }; then
28875 echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28880 rm -f conftest.err conftest.$ac_objext \
28881 conftest$ac_exeext conftest.$ac_ext
28886 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28887 echo "${ECHO_T}$ol_cv_db_db44" >&6
28889 if test $ol_cv_db_db44 = yes ; then
28890 ol_cv_lib_db=-ldb44
28894 if test $ol_cv_lib_db = no ; then
28895 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28896 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28897 if test "${ol_cv_db_db_44+set}" = set; then
28898 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28912 #ifdef HAVE_DB_185_H
28913 # include <db_185.h>
28918 #ifndef DB_VERSION_MAJOR
28919 # define DB_VERSION_MAJOR 1
28923 #define NULL ((void*)0)
28930 #if DB_VERSION_MAJOR > 1
28933 int major, minor, patch;
28935 version = db_version( &major, &minor, &patch );
28937 if( major != DB_VERSION_MAJOR ||
28938 minor < DB_VERSION_MINOR )
28940 printf("Berkeley DB version mismatch\n"
28941 "\theader: %s\n\tlibrary: %s\n",
28942 DB_VERSION_STRING, version);
28948 #if DB_VERSION_MAJOR > 2
28949 db_env_create( NULL, 0 );
28950 #elif DB_VERSION_MAJOR > 1
28951 db_appexit( NULL );
28953 (void) dbopen( NULL, 0, 0, 0, NULL);
28960 rm -f conftest.$ac_objext conftest$ac_exeext
28961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28962 (eval $ac_link) 2>conftest.er1
28964 grep -v '^ *+' conftest.er1 >conftest.err
28966 cat conftest.err >&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); } &&
28969 { ac_try='test -z "$ac_c_werror_flag"
28970 || test ! -s conftest.err'
28971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28972 (eval $ac_try) 2>&5
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); }; } &&
28976 { ac_try='test -s conftest$ac_exeext'
28977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28978 (eval $ac_try) 2>&5
28980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981 (exit $ac_status); }; }; then
28984 echo "$as_me: failed program was:" >&5
28985 sed 's/^/| /' conftest.$ac_ext >&5
28989 rm -f conftest.err conftest.$ac_objext \
28990 conftest$ac_exeext conftest.$ac_ext
28995 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28996 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28998 if test $ol_cv_db_db_44 = yes ; then
28999 ol_cv_lib_db=-ldb-44
29003 if test $ol_cv_lib_db = no ; then
29004 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
29005 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
29006 if test "${ol_cv_db_db_4_4+set}" = set; then
29007 echo $ECHO_N "(cached) $ECHO_C" >&6
29012 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29014 cat >conftest.$ac_ext <<_ACEOF
29017 cat confdefs.h >>conftest.$ac_ext
29018 cat >>conftest.$ac_ext <<_ACEOF
29019 /* end confdefs.h. */
29021 #ifdef HAVE_DB_185_H
29022 # include <db_185.h>
29027 #ifndef DB_VERSION_MAJOR
29028 # define DB_VERSION_MAJOR 1
29032 #define NULL ((void*)0)
29039 #if DB_VERSION_MAJOR > 1
29042 int major, minor, patch;
29044 version = db_version( &major, &minor, &patch );
29046 if( major != DB_VERSION_MAJOR ||
29047 minor < DB_VERSION_MINOR )
29049 printf("Berkeley DB version mismatch\n"
29050 "\theader: %s\n\tlibrary: %s\n",
29051 DB_VERSION_STRING, version);
29057 #if DB_VERSION_MAJOR > 2
29058 db_env_create( NULL, 0 );
29059 #elif DB_VERSION_MAJOR > 1
29060 db_appexit( NULL );
29062 (void) dbopen( NULL, 0, 0, 0, NULL);
29069 rm -f conftest.$ac_objext conftest$ac_exeext
29070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29071 (eval $ac_link) 2>conftest.er1
29073 grep -v '^ *+' conftest.er1 >conftest.err
29075 cat conftest.err >&5
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077 (exit $ac_status); } &&
29078 { ac_try='test -z "$ac_c_werror_flag"
29079 || test ! -s conftest.err'
29080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081 (eval $ac_try) 2>&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; } &&
29085 { ac_try='test -s conftest$ac_exeext'
29086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087 (eval $ac_try) 2>&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; }; then
29091 ol_cv_db_db_4_4=yes
29093 echo "$as_me: failed program was:" >&5
29094 sed 's/^/| /' conftest.$ac_ext >&5
29098 rm -f conftest.err conftest.$ac_objext \
29099 conftest$ac_exeext conftest.$ac_ext
29104 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
29105 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
29107 if test $ol_cv_db_db_4_4 = yes ; then
29108 ol_cv_lib_db=-ldb-4-4
29112 elif test $ol_cv_bdb_minor = 3 ; then
29113 if test $ol_cv_lib_db = no ; then
29114 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29115 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29116 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29117 echo $ECHO_N "(cached) $ECHO_C" >&6
29122 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29124 cat >conftest.$ac_ext <<_ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h. */
29131 #ifdef HAVE_DB_185_H
29132 # include <db_185.h>
29137 #ifndef DB_VERSION_MAJOR
29138 # define DB_VERSION_MAJOR 1
29142 #define NULL ((void*)0)
29149 #if DB_VERSION_MAJOR > 1
29152 int major, minor, patch;
29154 version = db_version( &major, &minor, &patch );
29156 if( major != DB_VERSION_MAJOR ||
29157 minor < DB_VERSION_MINOR )
29159 printf("Berkeley DB version mismatch\n"
29160 "\theader: %s\n\tlibrary: %s\n",
29161 DB_VERSION_STRING, version);
29167 #if DB_VERSION_MAJOR > 2
29168 db_env_create( NULL, 0 );
29169 #elif DB_VERSION_MAJOR > 1
29170 db_appexit( NULL );
29172 (void) dbopen( NULL, 0, 0, 0, NULL);
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29181 (eval $ac_link) 2>conftest.er1
29183 grep -v '^ *+' conftest.er1 >conftest.err
29185 cat conftest.err >&5
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } &&
29188 { ac_try='test -z "$ac_c_werror_flag"
29189 || test ! -s conftest.err'
29190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191 (eval $ac_try) 2>&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest$ac_exeext'
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; }; then
29201 ol_cv_db_db_4_dot_3=yes
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ol_cv_db_db_4_dot_3=no
29208 rm -f conftest.err conftest.$ac_objext \
29209 conftest$ac_exeext conftest.$ac_ext
29214 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29215 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29217 if test $ol_cv_db_db_4_dot_3 = yes ; then
29218 ol_cv_lib_db=-ldb-4.3
29222 if test $ol_cv_lib_db = no ; then
29223 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
29224 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
29225 if test "${ol_cv_db_db43+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29231 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29233 cat >conftest.$ac_ext <<_ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h. */
29240 #ifdef HAVE_DB_185_H
29241 # include <db_185.h>
29246 #ifndef DB_VERSION_MAJOR
29247 # define DB_VERSION_MAJOR 1
29251 #define NULL ((void*)0)
29258 #if DB_VERSION_MAJOR > 1
29261 int major, minor, patch;
29263 version = db_version( &major, &minor, &patch );
29265 if( major != DB_VERSION_MAJOR ||
29266 minor < DB_VERSION_MINOR )
29268 printf("Berkeley DB version mismatch\n"
29269 "\theader: %s\n\tlibrary: %s\n",
29270 DB_VERSION_STRING, version);
29276 #if DB_VERSION_MAJOR > 2
29277 db_env_create( NULL, 0 );
29278 #elif DB_VERSION_MAJOR > 1
29279 db_appexit( NULL );
29281 (void) dbopen( NULL, 0, 0, 0, NULL);
29288 rm -f conftest.$ac_objext conftest$ac_exeext
29289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29290 (eval $ac_link) 2>conftest.er1
29292 grep -v '^ *+' conftest.er1 >conftest.err
29294 cat conftest.err >&5
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); } &&
29297 { ac_try='test -z "$ac_c_werror_flag"
29298 || test ! -s conftest.err'
29299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300 (eval $ac_try) 2>&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); }; } &&
29304 { ac_try='test -s conftest$ac_exeext'
29305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306 (eval $ac_try) 2>&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; }; then
29312 echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29317 rm -f conftest.err conftest.$ac_objext \
29318 conftest$ac_exeext conftest.$ac_ext
29323 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29324 echo "${ECHO_T}$ol_cv_db_db43" >&6
29326 if test $ol_cv_db_db43 = yes ; then
29327 ol_cv_lib_db=-ldb43
29331 if test $ol_cv_lib_db = no ; then
29332 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29333 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29334 if test "${ol_cv_db_db_43+set}" = set; then
29335 echo $ECHO_N "(cached) $ECHO_C" >&6
29340 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29342 cat >conftest.$ac_ext <<_ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h. */
29349 #ifdef HAVE_DB_185_H
29350 # include <db_185.h>
29355 #ifndef DB_VERSION_MAJOR
29356 # define DB_VERSION_MAJOR 1
29360 #define NULL ((void*)0)
29367 #if DB_VERSION_MAJOR > 1
29370 int major, minor, patch;
29372 version = db_version( &major, &minor, &patch );
29374 if( major != DB_VERSION_MAJOR ||
29375 minor < DB_VERSION_MINOR )
29377 printf("Berkeley DB version mismatch\n"
29378 "\theader: %s\n\tlibrary: %s\n",
29379 DB_VERSION_STRING, version);
29385 #if DB_VERSION_MAJOR > 2
29386 db_env_create( NULL, 0 );
29387 #elif DB_VERSION_MAJOR > 1
29388 db_appexit( NULL );
29390 (void) dbopen( NULL, 0, 0, 0, NULL);
29397 rm -f conftest.$ac_objext conftest$ac_exeext
29398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29399 (eval $ac_link) 2>conftest.er1
29401 grep -v '^ *+' conftest.er1 >conftest.err
29403 cat conftest.err >&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } &&
29406 { ac_try='test -z "$ac_c_werror_flag"
29407 || test ! -s conftest.err'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; } &&
29413 { ac_try='test -s conftest$ac_exeext'
29414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; }; then
29421 echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29426 rm -f conftest.err conftest.$ac_objext \
29427 conftest$ac_exeext conftest.$ac_ext
29432 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29433 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29435 if test $ol_cv_db_db_43 = yes ; then
29436 ol_cv_lib_db=-ldb-43
29440 if test $ol_cv_lib_db = no ; then
29441 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29442 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29443 if test "${ol_cv_db_db_4_3+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29451 cat >conftest.$ac_ext <<_ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29458 #ifdef HAVE_DB_185_H
29459 # include <db_185.h>
29464 #ifndef DB_VERSION_MAJOR
29465 # define DB_VERSION_MAJOR 1
29469 #define NULL ((void*)0)
29476 #if DB_VERSION_MAJOR > 1
29479 int major, minor, patch;
29481 version = db_version( &major, &minor, &patch );
29483 if( major != DB_VERSION_MAJOR ||
29484 minor < DB_VERSION_MINOR )
29486 printf("Berkeley DB version mismatch\n"
29487 "\theader: %s\n\tlibrary: %s\n",
29488 DB_VERSION_STRING, version);
29494 #if DB_VERSION_MAJOR > 2
29495 db_env_create( NULL, 0 );
29496 #elif DB_VERSION_MAJOR > 1
29497 db_appexit( NULL );
29499 (void) dbopen( NULL, 0, 0, 0, NULL);
29506 rm -f conftest.$ac_objext conftest$ac_exeext
29507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29508 (eval $ac_link) 2>conftest.er1
29510 grep -v '^ *+' conftest.er1 >conftest.err
29512 cat conftest.err >&5
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); } &&
29515 { ac_try='test -z "$ac_c_werror_flag"
29516 || test ! -s conftest.err'
29517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518 (eval $ac_try) 2>&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; } &&
29522 { ac_try='test -s conftest$ac_exeext'
29523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524 (eval $ac_try) 2>&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
29528 ol_cv_db_db_4_3=yes
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29535 rm -f conftest.err conftest.$ac_objext \
29536 conftest$ac_exeext conftest.$ac_ext
29541 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29542 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29544 if test $ol_cv_db_db_4_3 = yes ; then
29545 ol_cv_lib_db=-ldb-4-3
29549 elif test $ol_cv_bdb_minor = 2 ; then
29550 if test $ol_cv_lib_db = no ; then
29551 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29552 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29553 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29554 echo $ECHO_N "(cached) $ECHO_C" >&6
29559 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29568 #ifdef HAVE_DB_185_H
29569 # include <db_185.h>
29574 #ifndef DB_VERSION_MAJOR
29575 # define DB_VERSION_MAJOR 1
29579 #define NULL ((void*)0)
29586 #if DB_VERSION_MAJOR > 1
29589 int major, minor, patch;
29591 version = db_version( &major, &minor, &patch );
29593 if( major != DB_VERSION_MAJOR ||
29594 minor < DB_VERSION_MINOR )
29596 printf("Berkeley DB version mismatch\n"
29597 "\theader: %s\n\tlibrary: %s\n",
29598 DB_VERSION_STRING, version);
29604 #if DB_VERSION_MAJOR > 2
29605 db_env_create( NULL, 0 );
29606 #elif DB_VERSION_MAJOR > 1
29607 db_appexit( NULL );
29609 (void) dbopen( NULL, 0, 0, 0, NULL);
29616 rm -f conftest.$ac_objext conftest$ac_exeext
29617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29618 (eval $ac_link) 2>conftest.er1
29620 grep -v '^ *+' conftest.er1 >conftest.err
29622 cat conftest.err >&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } &&
29625 { ac_try='test -z "$ac_c_werror_flag"
29626 || test ! -s conftest.err'
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; } &&
29632 { ac_try='test -s conftest$ac_exeext'
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 ol_cv_db_db_4_dot_2=yes
29640 echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29643 ol_cv_db_db_4_dot_2=no
29645 rm -f conftest.err conftest.$ac_objext \
29646 conftest$ac_exeext conftest.$ac_ext
29651 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29652 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29654 if test $ol_cv_db_db_4_dot_2 = yes ; then
29655 ol_cv_lib_db=-ldb-4.2
29659 if test $ol_cv_lib_db = no ; then
29660 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29661 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29662 if test "${ol_cv_db_db42+set}" = set; then
29663 echo $ECHO_N "(cached) $ECHO_C" >&6
29668 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29670 cat >conftest.$ac_ext <<_ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h. */
29677 #ifdef HAVE_DB_185_H
29678 # include <db_185.h>
29683 #ifndef DB_VERSION_MAJOR
29684 # define DB_VERSION_MAJOR 1
29688 #define NULL ((void*)0)
29695 #if DB_VERSION_MAJOR > 1
29698 int major, minor, patch;
29700 version = db_version( &major, &minor, &patch );
29702 if( major != DB_VERSION_MAJOR ||
29703 minor < DB_VERSION_MINOR )
29705 printf("Berkeley DB version mismatch\n"
29706 "\theader: %s\n\tlibrary: %s\n",
29707 DB_VERSION_STRING, version);
29713 #if DB_VERSION_MAJOR > 2
29714 db_env_create( NULL, 0 );
29715 #elif DB_VERSION_MAJOR > 1
29716 db_appexit( NULL );
29718 (void) dbopen( NULL, 0, 0, 0, NULL);
29725 rm -f conftest.$ac_objext conftest$ac_exeext
29726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29727 (eval $ac_link) 2>conftest.er1
29729 grep -v '^ *+' conftest.er1 >conftest.err
29731 cat conftest.err >&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
29734 { ac_try='test -z "$ac_c_werror_flag"
29735 || test ! -s conftest.err'
29736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737 (eval $ac_try) 2>&5
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; } &&
29741 { ac_try='test -s conftest$ac_exeext'
29742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743 (eval $ac_try) 2>&5
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; }; then
29749 echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29754 rm -f conftest.err conftest.$ac_objext \
29755 conftest$ac_exeext conftest.$ac_ext
29760 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29761 echo "${ECHO_T}$ol_cv_db_db42" >&6
29763 if test $ol_cv_db_db42 = yes ; then
29764 ol_cv_lib_db=-ldb42
29768 if test $ol_cv_lib_db = no ; then
29769 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29770 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29771 if test "${ol_cv_db_db_42+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29777 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29779 cat >conftest.$ac_ext <<_ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h. */
29786 #ifdef HAVE_DB_185_H
29787 # include <db_185.h>
29792 #ifndef DB_VERSION_MAJOR
29793 # define DB_VERSION_MAJOR 1
29797 #define NULL ((void*)0)
29804 #if DB_VERSION_MAJOR > 1
29807 int major, minor, patch;
29809 version = db_version( &major, &minor, &patch );
29811 if( major != DB_VERSION_MAJOR ||
29812 minor < DB_VERSION_MINOR )
29814 printf("Berkeley DB version mismatch\n"
29815 "\theader: %s\n\tlibrary: %s\n",
29816 DB_VERSION_STRING, version);
29822 #if DB_VERSION_MAJOR > 2
29823 db_env_create( NULL, 0 );
29824 #elif DB_VERSION_MAJOR > 1
29825 db_appexit( NULL );
29827 (void) dbopen( NULL, 0, 0, 0, NULL);
29834 rm -f conftest.$ac_objext conftest$ac_exeext
29835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29836 (eval $ac_link) 2>conftest.er1
29838 grep -v '^ *+' conftest.er1 >conftest.err
29840 cat conftest.err >&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); } &&
29843 { ac_try='test -z "$ac_c_werror_flag"
29844 || test ! -s conftest.err'
29845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846 (eval $ac_try) 2>&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest$ac_exeext'
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
29858 echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29863 rm -f conftest.err conftest.$ac_objext \
29864 conftest$ac_exeext conftest.$ac_ext
29869 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29870 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29872 if test $ol_cv_db_db_42 = yes ; then
29873 ol_cv_lib_db=-ldb-42
29877 if test $ol_cv_lib_db = no ; then
29878 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29879 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29880 if test "${ol_cv_db_db_4_2+set}" = set; then
29881 echo $ECHO_N "(cached) $ECHO_C" >&6
29886 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29888 cat >conftest.$ac_ext <<_ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29895 #ifdef HAVE_DB_185_H
29896 # include <db_185.h>
29901 #ifndef DB_VERSION_MAJOR
29902 # define DB_VERSION_MAJOR 1
29906 #define NULL ((void*)0)
29913 #if DB_VERSION_MAJOR > 1
29916 int major, minor, patch;
29918 version = db_version( &major, &minor, &patch );
29920 if( major != DB_VERSION_MAJOR ||
29921 minor < DB_VERSION_MINOR )
29923 printf("Berkeley DB version mismatch\n"
29924 "\theader: %s\n\tlibrary: %s\n",
29925 DB_VERSION_STRING, version);
29931 #if DB_VERSION_MAJOR > 2
29932 db_env_create( NULL, 0 );
29933 #elif DB_VERSION_MAJOR > 1
29934 db_appexit( NULL );
29936 (void) dbopen( NULL, 0, 0, 0, NULL);
29943 rm -f conftest.$ac_objext conftest$ac_exeext
29944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29945 (eval $ac_link) 2>conftest.er1
29947 grep -v '^ *+' conftest.er1 >conftest.err
29949 cat conftest.err >&5
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); } &&
29952 { ac_try='test -z "$ac_c_werror_flag"
29953 || test ! -s conftest.err'
29954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955 (eval $ac_try) 2>&5
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); }; } &&
29959 { ac_try='test -s conftest$ac_exeext'
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; }; then
29965 ol_cv_db_db_4_2=yes
29967 echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29972 rm -f conftest.err conftest.$ac_objext \
29973 conftest$ac_exeext conftest.$ac_ext
29978 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29979 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29981 if test $ol_cv_db_db_4_2 = yes ; then
29982 ol_cv_lib_db=-ldb-4-2
29987 if test $ol_cv_lib_db = no ; then
29988 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29990 if test "${ol_cv_db_db_4+set}" = set; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29996 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29998 cat >conftest.$ac_ext <<_ACEOF
30001 cat confdefs.h >>conftest.$ac_ext
30002 cat >>conftest.$ac_ext <<_ACEOF
30003 /* end confdefs.h. */
30005 #ifdef HAVE_DB_185_H
30006 # include <db_185.h>
30011 #ifndef DB_VERSION_MAJOR
30012 # define DB_VERSION_MAJOR 1
30016 #define NULL ((void*)0)
30023 #if DB_VERSION_MAJOR > 1
30026 int major, minor, patch;
30028 version = db_version( &major, &minor, &patch );
30030 if( major != DB_VERSION_MAJOR ||
30031 minor < DB_VERSION_MINOR )
30033 printf("Berkeley DB version mismatch\n"
30034 "\theader: %s\n\tlibrary: %s\n",
30035 DB_VERSION_STRING, version);
30041 #if DB_VERSION_MAJOR > 2
30042 db_env_create( NULL, 0 );
30043 #elif DB_VERSION_MAJOR > 1
30044 db_appexit( NULL );
30046 (void) dbopen( NULL, 0, 0, 0, NULL);
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055 (eval $ac_link) 2>conftest.er1
30057 grep -v '^ *+' conftest.er1 >conftest.err
30059 cat conftest.err >&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
30062 { ac_try='test -z "$ac_c_werror_flag"
30063 || test ! -s conftest.err'
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest$ac_exeext'
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30077 echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30082 rm -f conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
30088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30089 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30091 if test $ol_cv_db_db_4 = yes ; then
30092 ol_cv_lib_db=-ldb-4
30096 if test $ol_cv_lib_db = no ; then
30097 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30098 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30099 if test "${ol_cv_db_db4+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30105 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30107 cat >conftest.$ac_ext <<_ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h. */
30114 #ifdef HAVE_DB_185_H
30115 # include <db_185.h>
30120 #ifndef DB_VERSION_MAJOR
30121 # define DB_VERSION_MAJOR 1
30125 #define NULL ((void*)0)
30132 #if DB_VERSION_MAJOR > 1
30135 int major, minor, patch;
30137 version = db_version( &major, &minor, &patch );
30139 if( major != DB_VERSION_MAJOR ||
30140 minor < DB_VERSION_MINOR )
30142 printf("Berkeley DB version mismatch\n"
30143 "\theader: %s\n\tlibrary: %s\n",
30144 DB_VERSION_STRING, version);
30150 #if DB_VERSION_MAJOR > 2
30151 db_env_create( NULL, 0 );
30152 #elif DB_VERSION_MAJOR > 1
30153 db_appexit( NULL );
30155 (void) dbopen( NULL, 0, 0, 0, NULL);
30162 rm -f conftest.$ac_objext conftest$ac_exeext
30163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30164 (eval $ac_link) 2>conftest.er1
30166 grep -v '^ *+' conftest.er1 >conftest.err
30168 cat conftest.err >&5
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); } &&
30171 { ac_try='test -z "$ac_c_werror_flag"
30172 || test ! -s conftest.err'
30173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174 (eval $ac_try) 2>&5
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); }; } &&
30178 { ac_try='test -s conftest$ac_exeext'
30179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180 (eval $ac_try) 2>&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; }; then
30186 echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30191 rm -f conftest.err conftest.$ac_objext \
30192 conftest$ac_exeext conftest.$ac_ext
30197 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30198 echo "${ECHO_T}$ol_cv_db_db4" >&6
30200 if test $ol_cv_db_db4 = yes ; then
30205 if test $ol_cv_lib_db = no ; then
30206 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30207 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30208 if test "${ol_cv_db_db+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30214 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30216 cat >conftest.$ac_ext <<_ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h. */
30223 #ifdef HAVE_DB_185_H
30224 # include <db_185.h>
30229 #ifndef DB_VERSION_MAJOR
30230 # define DB_VERSION_MAJOR 1
30234 #define NULL ((void*)0)
30241 #if DB_VERSION_MAJOR > 1
30244 int major, minor, patch;
30246 version = db_version( &major, &minor, &patch );
30248 if( major != DB_VERSION_MAJOR ||
30249 minor < DB_VERSION_MINOR )
30251 printf("Berkeley DB version mismatch\n"
30252 "\theader: %s\n\tlibrary: %s\n",
30253 DB_VERSION_STRING, version);
30259 #if DB_VERSION_MAJOR > 2
30260 db_env_create( NULL, 0 );
30261 #elif DB_VERSION_MAJOR > 1
30262 db_appexit( NULL );
30264 (void) dbopen( NULL, 0, 0, 0, NULL);
30271 rm -f conftest.$ac_objext conftest$ac_exeext
30272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30273 (eval $ac_link) 2>conftest.er1
30275 grep -v '^ *+' conftest.er1 >conftest.err
30277 cat conftest.err >&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); } &&
30280 { ac_try='test -z "$ac_c_werror_flag"
30281 || test ! -s conftest.err'
30282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30283 (eval $ac_try) 2>&5
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); }; } &&
30287 { ac_try='test -s conftest$ac_exeext'
30288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30289 (eval $ac_try) 2>&5
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; }; then
30295 echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30300 rm -f conftest.err conftest.$ac_objext \
30301 conftest$ac_exeext conftest.$ac_ext
30306 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30307 echo "${ECHO_T}$ol_cv_db_db" >&6
30309 if test $ol_cv_db_db = yes ; then
30315 elif test $ol_cv_bdb_major = 3 ; then
30316 if test $ol_cv_lib_db = no ; then
30317 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30318 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30319 if test "${ol_cv_db_db3+set}" = set; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30325 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30327 cat >conftest.$ac_ext <<_ACEOF
30330 cat confdefs.h >>conftest.$ac_ext
30331 cat >>conftest.$ac_ext <<_ACEOF
30332 /* end confdefs.h. */
30334 #ifdef HAVE_DB_185_H
30335 # include <db_185.h>
30340 #ifndef DB_VERSION_MAJOR
30341 # define DB_VERSION_MAJOR 1
30345 #define NULL ((void*)0)
30352 #if DB_VERSION_MAJOR > 1
30355 int major, minor, patch;
30357 version = db_version( &major, &minor, &patch );
30359 if( major != DB_VERSION_MAJOR ||
30360 minor < DB_VERSION_MINOR )
30362 printf("Berkeley DB version mismatch\n"
30363 "\theader: %s\n\tlibrary: %s\n",
30364 DB_VERSION_STRING, version);
30370 #if DB_VERSION_MAJOR > 2
30371 db_env_create( NULL, 0 );
30372 #elif DB_VERSION_MAJOR > 1
30373 db_appexit( NULL );
30375 (void) dbopen( NULL, 0, 0, 0, NULL);
30382 rm -f conftest.$ac_objext conftest$ac_exeext
30383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30384 (eval $ac_link) 2>conftest.er1
30386 grep -v '^ *+' conftest.er1 >conftest.err
30388 cat conftest.err >&5
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } &&
30391 { ac_try='test -z "$ac_c_werror_flag"
30392 || test ! -s conftest.err'
30393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; } &&
30398 { ac_try='test -s conftest$ac_exeext'
30399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30400 (eval $ac_try) 2>&5
30402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); }; }; then
30406 echo "$as_me: failed program was:" >&5
30407 sed 's/^/| /' conftest.$ac_ext >&5
30411 rm -f conftest.err conftest.$ac_objext \
30412 conftest$ac_exeext conftest.$ac_ext
30417 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30418 echo "${ECHO_T}$ol_cv_db_db3" >&6
30420 if test $ol_cv_db_db3 = yes ; then
30425 if test $ol_cv_lib_db = no ; then
30426 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30427 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30428 if test "${ol_cv_db_db_3+set}" = set; then
30429 echo $ECHO_N "(cached) $ECHO_C" >&6
30434 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30436 cat >conftest.$ac_ext <<_ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h. */
30443 #ifdef HAVE_DB_185_H
30444 # include <db_185.h>
30449 #ifndef DB_VERSION_MAJOR
30450 # define DB_VERSION_MAJOR 1
30454 #define NULL ((void*)0)
30461 #if DB_VERSION_MAJOR > 1
30464 int major, minor, patch;
30466 version = db_version( &major, &minor, &patch );
30468 if( major != DB_VERSION_MAJOR ||
30469 minor < DB_VERSION_MINOR )
30471 printf("Berkeley DB version mismatch\n"
30472 "\theader: %s\n\tlibrary: %s\n",
30473 DB_VERSION_STRING, version);
30479 #if DB_VERSION_MAJOR > 2
30480 db_env_create( NULL, 0 );
30481 #elif DB_VERSION_MAJOR > 1
30482 db_appexit( NULL );
30484 (void) dbopen( NULL, 0, 0, 0, NULL);
30491 rm -f conftest.$ac_objext conftest$ac_exeext
30492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30493 (eval $ac_link) 2>conftest.er1
30495 grep -v '^ *+' conftest.er1 >conftest.err
30497 cat conftest.err >&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); } &&
30500 { ac_try='test -z "$ac_c_werror_flag"
30501 || test ! -s conftest.err'
30502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503 (eval $ac_try) 2>&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; } &&
30507 { ac_try='test -s conftest$ac_exeext'
30508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30509 (eval $ac_try) 2>&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; }; then
30515 echo "$as_me: failed program was:" >&5
30516 sed 's/^/| /' conftest.$ac_ext >&5
30520 rm -f conftest.err conftest.$ac_objext \
30521 conftest$ac_exeext conftest.$ac_ext
30526 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30527 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30529 if test $ol_cv_db_db_3 = yes ; then
30530 ol_cv_lib_db=-ldb-3
30535 elif test $ol_cv_bdb_major = 2 ; then
30536 if test $ol_cv_lib_db = no ; then
30537 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30538 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30539 if test "${ol_cv_db_db2+set}" = set; then
30540 echo $ECHO_N "(cached) $ECHO_C" >&6
30545 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30547 cat >conftest.$ac_ext <<_ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h. */
30554 #ifdef HAVE_DB_185_H
30555 # include <db_185.h>
30560 #ifndef DB_VERSION_MAJOR
30561 # define DB_VERSION_MAJOR 1
30565 #define NULL ((void*)0)
30572 #if DB_VERSION_MAJOR > 1
30575 int major, minor, patch;
30577 version = db_version( &major, &minor, &patch );
30579 if( major != DB_VERSION_MAJOR ||
30580 minor < DB_VERSION_MINOR )
30582 printf("Berkeley DB version mismatch\n"
30583 "\theader: %s\n\tlibrary: %s\n",
30584 DB_VERSION_STRING, version);
30590 #if DB_VERSION_MAJOR > 2
30591 db_env_create( NULL, 0 );
30592 #elif DB_VERSION_MAJOR > 1
30593 db_appexit( NULL );
30595 (void) dbopen( NULL, 0, 0, 0, NULL);
30602 rm -f conftest.$ac_objext conftest$ac_exeext
30603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30604 (eval $ac_link) 2>conftest.er1
30606 grep -v '^ *+' conftest.er1 >conftest.err
30608 cat conftest.err >&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); } &&
30611 { ac_try='test -z "$ac_c_werror_flag"
30612 || test ! -s conftest.err'
30613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 (eval $ac_try) 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; } &&
30618 { ac_try='test -s conftest$ac_exeext'
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; }; then
30626 echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30631 rm -f conftest.err conftest.$ac_objext \
30632 conftest$ac_exeext conftest.$ac_ext
30637 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30638 echo "${ECHO_T}$ol_cv_db_db2" >&6
30640 if test $ol_cv_db_db2 = yes ; then
30645 if test $ol_cv_lib_db = no ; then
30646 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30647 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30648 if test "${ol_cv_db_db_2+set}" = set; then
30649 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30656 cat >conftest.$ac_ext <<_ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30663 #ifdef HAVE_DB_185_H
30664 # include <db_185.h>
30669 #ifndef DB_VERSION_MAJOR
30670 # define DB_VERSION_MAJOR 1
30674 #define NULL ((void*)0)
30681 #if DB_VERSION_MAJOR > 1
30684 int major, minor, patch;
30686 version = db_version( &major, &minor, &patch );
30688 if( major != DB_VERSION_MAJOR ||
30689 minor < DB_VERSION_MINOR )
30691 printf("Berkeley DB version mismatch\n"
30692 "\theader: %s\n\tlibrary: %s\n",
30693 DB_VERSION_STRING, version);
30699 #if DB_VERSION_MAJOR > 2
30700 db_env_create( NULL, 0 );
30701 #elif DB_VERSION_MAJOR > 1
30702 db_appexit( NULL );
30704 (void) dbopen( NULL, 0, 0, 0, NULL);
30711 rm -f conftest.$ac_objext conftest$ac_exeext
30712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30713 (eval $ac_link) 2>conftest.er1
30715 grep -v '^ *+' conftest.er1 >conftest.err
30717 cat conftest.err >&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); } &&
30720 { ac_try='test -z "$ac_c_werror_flag"
30721 || test ! -s conftest.err'
30722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723 (eval $ac_try) 2>&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); }; } &&
30727 { ac_try='test -s conftest$ac_exeext'
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; }; then
30735 echo "$as_me: failed program was:" >&5
30736 sed 's/^/| /' conftest.$ac_ext >&5
30740 rm -f conftest.err conftest.$ac_objext \
30741 conftest$ac_exeext conftest.$ac_ext
30746 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30747 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30749 if test $ol_cv_db_db_2 = yes ; then
30750 ol_cv_lib_db=-ldb-2
30755 elif test $ol_cv_bdb_major = 1 ; then
30756 if test $ol_cv_lib_db = no ; then
30757 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30758 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30759 if test "${ol_cv_db_db1+set}" = set; then
30760 echo $ECHO_N "(cached) $ECHO_C" >&6
30765 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30767 cat >conftest.$ac_ext <<_ACEOF
30770 cat confdefs.h >>conftest.$ac_ext
30771 cat >>conftest.$ac_ext <<_ACEOF
30772 /* end confdefs.h. */
30774 #ifdef HAVE_DB_185_H
30775 # include <db_185.h>
30780 #ifndef DB_VERSION_MAJOR
30781 # define DB_VERSION_MAJOR 1
30785 #define NULL ((void*)0)
30792 #if DB_VERSION_MAJOR > 1
30795 int major, minor, patch;
30797 version = db_version( &major, &minor, &patch );
30799 if( major != DB_VERSION_MAJOR ||
30800 minor < DB_VERSION_MINOR )
30802 printf("Berkeley DB version mismatch\n"
30803 "\theader: %s\n\tlibrary: %s\n",
30804 DB_VERSION_STRING, version);
30810 #if DB_VERSION_MAJOR > 2
30811 db_env_create( NULL, 0 );
30812 #elif DB_VERSION_MAJOR > 1
30813 db_appexit( NULL );
30815 (void) dbopen( NULL, 0, 0, 0, NULL);
30822 rm -f conftest.$ac_objext conftest$ac_exeext
30823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30824 (eval $ac_link) 2>conftest.er1
30826 grep -v '^ *+' conftest.er1 >conftest.err
30828 cat conftest.err >&5
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); } &&
30831 { ac_try='test -z "$ac_c_werror_flag"
30832 || test ! -s conftest.err'
30833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834 (eval $ac_try) 2>&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; } &&
30838 { ac_try='test -s conftest$ac_exeext'
30839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30840 (eval $ac_try) 2>&5
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); }; }; then
30846 echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30851 rm -f conftest.err conftest.$ac_objext \
30852 conftest$ac_exeext conftest.$ac_ext
30857 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30858 echo "${ECHO_T}$ol_cv_db_db1" >&6
30860 if test $ol_cv_db_db1 = yes ; then
30865 if test $ol_cv_lib_db = no ; then
30866 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30867 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30868 if test "${ol_cv_db_db_1+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30874 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30876 cat >conftest.$ac_ext <<_ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h. */
30883 #ifdef HAVE_DB_185_H
30884 # include <db_185.h>
30889 #ifndef DB_VERSION_MAJOR
30890 # define DB_VERSION_MAJOR 1
30894 #define NULL ((void*)0)
30901 #if DB_VERSION_MAJOR > 1
30904 int major, minor, patch;
30906 version = db_version( &major, &minor, &patch );
30908 if( major != DB_VERSION_MAJOR ||
30909 minor < DB_VERSION_MINOR )
30911 printf("Berkeley DB version mismatch\n"
30912 "\theader: %s\n\tlibrary: %s\n",
30913 DB_VERSION_STRING, version);
30919 #if DB_VERSION_MAJOR > 2
30920 db_env_create( NULL, 0 );
30921 #elif DB_VERSION_MAJOR > 1
30922 db_appexit( NULL );
30924 (void) dbopen( NULL, 0, 0, 0, NULL);
30931 rm -f conftest.$ac_objext conftest$ac_exeext
30932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30933 (eval $ac_link) 2>conftest.er1
30935 grep -v '^ *+' conftest.er1 >conftest.err
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } &&
30940 { ac_try='test -z "$ac_c_werror_flag"
30941 || test ! -s conftest.err'
30942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943 (eval $ac_try) 2>&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; } &&
30947 { ac_try='test -s conftest$ac_exeext'
30948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949 (eval $ac_try) 2>&5
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; }; then
30955 echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30960 rm -f conftest.err conftest.$ac_objext \
30961 conftest$ac_exeext conftest.$ac_ext
30966 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30967 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30969 if test $ol_cv_db_db_1 = yes ; then
30970 ol_cv_lib_db=-ldb-1
30975 if test $ol_cv_lib_db = no ; then
30976 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30977 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30978 if test "${ol_cv_db_none+set}" = set; then
30979 echo $ECHO_N "(cached) $ECHO_C" >&6
30984 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30986 cat >conftest.$ac_ext <<_ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h. */
30993 #ifdef HAVE_DB_185_H
30994 # include <db_185.h>
30999 #ifndef DB_VERSION_MAJOR
31000 # define DB_VERSION_MAJOR 1
31004 #define NULL ((void*)0)
31011 #if DB_VERSION_MAJOR > 1
31014 int major, minor, patch;
31016 version = db_version( &major, &minor, &patch );
31018 if( major != DB_VERSION_MAJOR ||
31019 minor < DB_VERSION_MINOR )
31021 printf("Berkeley DB version mismatch\n"
31022 "\theader: %s\n\tlibrary: %s\n",
31023 DB_VERSION_STRING, version);
31029 #if DB_VERSION_MAJOR > 2
31030 db_env_create( NULL, 0 );
31031 #elif DB_VERSION_MAJOR > 1
31032 db_appexit( NULL );
31034 (void) dbopen( NULL, 0, 0, 0, NULL);
31041 rm -f conftest.$ac_objext conftest$ac_exeext
31042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31043 (eval $ac_link) 2>conftest.er1
31045 grep -v '^ *+' conftest.er1 >conftest.err
31047 cat conftest.err >&5
31048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049 (exit $ac_status); } &&
31050 { ac_try='test -z "$ac_c_werror_flag"
31051 || test ! -s conftest.err'
31052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31053 (eval $ac_try) 2>&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; } &&
31057 { ac_try='test -s conftest$ac_exeext'
31058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059 (eval $ac_try) 2>&5
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31070 rm -f conftest.err conftest.$ac_objext \
31071 conftest$ac_exeext conftest.$ac_ext
31076 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31077 echo "${ECHO_T}$ol_cv_db_none" >&6
31079 if test $ol_cv_db_none = yes ; then
31085 if test "$ol_cv_lib_db" != no ; then
31086 ol_cv_berkeley_db=yes
31087 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31088 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31089 if test "${ol_cv_berkeley_db_version+set}" = set; then
31090 echo $ECHO_N "(cached) $ECHO_C" >&6
31094 LIBS="$LTHREAD_LIBS $LIBS"
31095 if test $ol_cv_lib_db != yes ; then
31096 LIBS="$ol_cv_lib_db $LIBS"
31099 if test "$cross_compiling" = yes; then
31100 ol_cv_berkeley_db_version=cross
31102 cat >conftest.$ac_ext <<_ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h. */
31109 #ifdef HAVE_DB_185_H
31114 #ifndef DB_VERSION_MAJOR
31115 # define DB_VERSION_MAJOR 1
31118 #define NULL ((void *)0)
31122 #if DB_VERSION_MAJOR > 1
31124 int major, minor, patch;
31126 version = db_version( &major, &minor, &patch );
31128 if( major != DB_VERSION_MAJOR ||
31129 minor != DB_VERSION_MINOR ||
31130 patch != DB_VERSION_PATCH )
31132 printf("Berkeley DB version mismatch\n"
31133 "\theader: %s\n\tlibrary: %s\n",
31134 DB_VERSION_STRING, version);
31142 rm -f conftest$ac_exeext
31143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31144 (eval $ac_link) 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31149 (eval $ac_try) 2>&5
31151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152 (exit $ac_status); }; }; then
31153 ol_cv_berkeley_db_version=yes
31155 echo "$as_me: program exited with status $ac_status" >&5
31156 echo "$as_me: failed program was:" >&5
31157 sed 's/^/| /' conftest.$ac_ext >&5
31159 ( exit $ac_status )
31160 ol_cv_berkeley_db_version=no
31162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31168 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31169 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31171 if test $ol_cv_berkeley_db_version = no ; then
31172 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31173 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31174 { (exit 1); exit 1; }; }
31177 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31178 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31179 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31184 LIBS="$LTHREAD_LIBS $LIBS"
31185 if test $ol_cv_lib_db != yes ; then
31186 LIBS="$ol_cv_lib_db $LIBS"
31189 if test "$cross_compiling" = yes; then
31190 ol_cv_berkeley_db_thread=cross
31192 cat >conftest.$ac_ext <<_ACEOF
31195 cat confdefs.h >>conftest.$ac_ext
31196 cat >>conftest.$ac_ext <<_ACEOF
31197 /* end confdefs.h. */
31199 #ifdef HAVE_DB_185_H
31205 #define NULL ((void *)0)
31210 u_int32_t flags = DB_CREATE |
31216 #if DB_VERSION_MAJOR > 2
31217 DB_ENV *env = NULL;
31219 rc = db_env_create( &env, 0 );
31221 flags |= DB_INIT_MPOOL;
31222 #ifdef DB_MPOOL_PRIVATE
31223 flags |= DB_MPOOL_PRIVATE;
31227 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31231 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31232 rc = (env->open)( env, NULL, flags, 0 );
31234 rc = (env->open)( env, NULL, NULL, flags, 0 );
31238 rc = env->close( env, 0 );
31242 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31248 memset( &env, '\0', sizeof(env) );
31250 rc = db_appinit( NULL, NULL, &env, flags );
31253 db_appexit( &env );
31256 unlink("__db_mpool.share");
31257 unlink("__db_lock.share");
31263 rm -f conftest$ac_exeext
31264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31265 (eval $ac_link) 2>&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270 (eval $ac_try) 2>&5
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; }; then
31274 ol_cv_berkeley_db_thread=yes
31276 echo "$as_me: program exited with status $ac_status" >&5
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31280 ( exit $ac_status )
31281 ol_cv_berkeley_db_thread=no
31283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31289 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31290 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31292 if test $ol_cv_berkeley_db_thread != no ; then
31294 cat >>confdefs.h <<\_ACEOF
31295 #define HAVE_BERKELEY_DB_THREAD 1
31304 if test $ol_cv_berkeley_db = no ; then
31305 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31306 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31307 { (exit 1); exit 1; }; }
31311 cat >>confdefs.h <<\_ACEOF
31312 #define HAVE_BERKELEY_DB 1
31316 if test $ol_cv_lib_db != yes ; then
31317 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31320 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31321 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31322 if test "${ol_cv_bdb_compat+set}" = set; then
31323 echo $ECHO_N "(cached) $ECHO_C" >&6
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31335 /* this check could be improved */
31336 #ifndef DB_VERSION_MAJOR
31337 # define DB_VERSION_MAJOR 1
31339 #ifndef DB_VERSION_MINOR
31340 # define DB_VERSION_MINOR 0
31343 /* require 4.2 or later, but exclude 4.3 */
31344 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31345 __db_version_compat
31349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31350 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31351 ol_cv_bdb_compat=yes
31353 ol_cv_bdb_compat=no
31358 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31359 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31362 if test $ol_cv_bdb_compat != yes ; then
31363 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31364 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31365 { (exit 1); exit 1; }; }
31368 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31374 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31375 BUILD_LIBS_DYNAMIC=shared
31377 cat >>confdefs.h <<\_ACEOF
31378 #define LDAP_LIBS_DYNAMIC 1
31383 BUILD_LIBS_DYNAMIC=static
31387 if test $ol_enable_wrappers != no ; then
31389 for ac_header in tcpd.h
31391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31393 echo "$as_me:$LINENO: checking for $ac_header" >&5
31394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31396 echo $ECHO_N "(cached) $ECHO_C" >&6
31398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31401 # Is the header compilable?
31402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31404 cat >conftest.$ac_ext <<_ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h. */
31410 $ac_includes_default
31411 #include <$ac_header>
31413 rm -f conftest.$ac_objext
31414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31415 (eval $ac_compile) 2>conftest.er1
31417 grep -v '^ *+' conftest.er1 >conftest.err
31419 cat conftest.err >&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); } &&
31422 { ac_try='test -z "$ac_c_werror_flag"
31423 || test ! -s conftest.err'
31424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31425 (eval $ac_try) 2>&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); }; } &&
31429 { ac_try='test -s conftest.$ac_objext'
31430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31431 (eval $ac_try) 2>&5
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; }; then
31435 ac_header_compiler=yes
31437 echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31440 ac_header_compiler=no
31442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31444 echo "${ECHO_T}$ac_header_compiler" >&6
31446 # Is the header present?
31447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31449 cat >conftest.$ac_ext <<_ACEOF
31452 cat confdefs.h >>conftest.$ac_ext
31453 cat >>conftest.$ac_ext <<_ACEOF
31454 /* end confdefs.h. */
31455 #include <$ac_header>
31457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31460 grep -v '^ *+' conftest.er1 >conftest.err
31462 cat conftest.err >&5
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } >/dev/null; then
31465 if test -s conftest.err; then
31466 ac_cpp_err=$ac_c_preproc_warn_flag
31467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31474 if test -z "$ac_cpp_err"; then
31475 ac_header_preproc=yes
31477 echo "$as_me: failed program was:" >&5
31478 sed 's/^/| /' conftest.$ac_ext >&5
31480 ac_header_preproc=no
31482 rm -f conftest.err conftest.$ac_ext
31483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31484 echo "${ECHO_T}$ac_header_preproc" >&6
31486 # So? What about this header?
31487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31493 ac_header_preproc=yes
31496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31510 ## --------------------------------------------- ##
31511 ## Report this to <http://www.openldap.org/its/> ##
31512 ## --------------------------------------------- ##
31515 sed "s/^/$as_me: WARNING: /" >&2
31518 echo "$as_me:$LINENO: checking for $ac_header" >&5
31519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31523 eval "$as_ac_Header=\$ac_header_preproc"
31525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31530 cat >>confdefs.h <<_ACEOF
31531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31534 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31535 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31537 LIBS="$LIBS -lwrap"
31538 cat >conftest.$ac_ext <<_ACEOF
31541 cat confdefs.h >>conftest.$ac_ext
31542 cat >>conftest.$ac_ext <<_ACEOF
31543 /* end confdefs.h. */
31546 int allow_severity = 0;
31547 int deny_severity = 0;
31549 struct request_info *req;
31561 rm -f conftest.$ac_objext conftest$ac_exeext
31562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31563 (eval $ac_link) 2>conftest.er1
31565 grep -v '^ *+' conftest.er1 >conftest.err
31567 cat conftest.err >&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } &&
31570 { ac_try='test -z "$ac_c_werror_flag"
31571 || test ! -s conftest.err'
31572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31573 (eval $ac_try) 2>&5
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576 (exit $ac_status); }; } &&
31577 { ac_try='test -s conftest$ac_exeext'
31578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31579 (eval $ac_try) 2>&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); }; }; then
31583 echo "$as_me:$LINENO: result: -lwrap" >&5
31584 echo "${ECHO_T}-lwrap" >&6
31588 echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31593 cat >conftest.$ac_ext <<_ACEOF
31596 cat confdefs.h >>conftest.$ac_ext
31597 cat >>conftest.$ac_ext <<_ACEOF
31598 /* end confdefs.h. */
31601 int allow_severity = 0;
31602 int deny_severity = 0;
31604 struct request_info *req;
31616 rm -f conftest.$ac_objext conftest$ac_exeext
31617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31618 (eval $ac_link) 2>conftest.er1
31620 grep -v '^ *+' conftest.er1 >conftest.err
31622 cat conftest.err >&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } &&
31625 { ac_try='test -z "$ac_c_werror_flag"
31626 || test ! -s conftest.err'
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; } &&
31632 { ac_try='test -s conftest$ac_exeext'
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; }; then
31638 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31639 echo "${ECHO_T}-lwrap -lnsl" >&6
31641 LIBS="$save_LIBS -lnsl"
31643 echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31647 echo "$as_me:$LINENO: result: no" >&5
31648 echo "${ECHO_T}no" >&6
31652 rm -f conftest.err conftest.$ac_objext \
31653 conftest$ac_exeext conftest.$ac_ext
31655 rm -f conftest.err conftest.$ac_objext \
31656 conftest$ac_exeext conftest.$ac_ext
31664 if test $have_wrappers = yes ; then
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_TCPD 1
31671 elif test $ol_enable_wrappers = yes ; then
31672 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31673 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31674 { (exit 1); exit 1; }; }
31676 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31677 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31682 if test $ol_enable_syslog != no ; then
31683 echo "$as_me:$LINENO: checking for openlog" >&5
31684 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31685 if test "${ac_cv_func_openlog+set}" = set; then
31686 echo $ECHO_N "(cached) $ECHO_C" >&6
31688 cat >conftest.$ac_ext <<_ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h. */
31694 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31696 #define openlog innocuous_openlog
31698 /* System header to define __stub macros and hopefully few prototypes,
31699 which can conflict with char openlog (); below.
31700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31701 <limits.h> exists even on freestanding compilers. */
31704 # include <limits.h>
31706 # include <assert.h>
31711 /* Override any gcc2 internal prototype to avoid an error. */
31716 /* We use char because int might match the return type of a gcc2
31717 builtin and then its argument prototype would still apply. */
31719 /* The GNU C library defines this for functions which it implements
31720 to always fail with ENOSYS. Some functions are actually named
31721 something starting with __ and the normal name is an alias. */
31722 #if defined (__stub_openlog) || defined (__stub___openlog)
31725 char (*f) () = openlog;
31734 return f != openlog;
31739 rm -f conftest.$ac_objext conftest$ac_exeext
31740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31741 (eval $ac_link) 2>conftest.er1
31743 grep -v '^ *+' conftest.er1 >conftest.err
31745 cat conftest.err >&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } &&
31748 { ac_try='test -z "$ac_c_werror_flag"
31749 || test ! -s conftest.err'
31750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31751 (eval $ac_try) 2>&5
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; } &&
31755 { ac_try='test -s conftest$ac_exeext'
31756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31757 (eval $ac_try) 2>&5
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); }; }; then
31761 ac_cv_func_openlog=yes
31763 echo "$as_me: failed program was:" >&5
31764 sed 's/^/| /' conftest.$ac_ext >&5
31766 ac_cv_func_openlog=no
31768 rm -f conftest.err conftest.$ac_objext \
31769 conftest$ac_exeext conftest.$ac_ext
31771 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31772 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31774 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31775 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31776 echo "$as_me: error: could not find syslog" >&2;}
31777 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31779 ol_enable_syslog=$ac_cv_func_openlog
31783 if test $ol_enable_sql != no ; then
31786 for ac_header in sql.h sqlext.h
31788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31790 echo "$as_me:$LINENO: checking for $ac_header" >&5
31791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31793 echo $ECHO_N "(cached) $ECHO_C" >&6
31795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31798 # Is the header compilable?
31799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31801 cat >conftest.$ac_ext <<_ACEOF
31804 cat confdefs.h >>conftest.$ac_ext
31805 cat >>conftest.$ac_ext <<_ACEOF
31806 /* end confdefs.h. */
31807 $ac_includes_default
31808 #include <$ac_header>
31810 rm -f conftest.$ac_objext
31811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31812 (eval $ac_compile) 2>conftest.er1
31814 grep -v '^ *+' conftest.er1 >conftest.err
31816 cat conftest.err >&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); } &&
31819 { ac_try='test -z "$ac_c_werror_flag"
31820 || test ! -s conftest.err'
31821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31822 (eval $ac_try) 2>&5
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); }; } &&
31826 { ac_try='test -s conftest.$ac_objext'
31827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31828 (eval $ac_try) 2>&5
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); }; }; then
31832 ac_header_compiler=yes
31834 echo "$as_me: failed program was:" >&5
31835 sed 's/^/| /' conftest.$ac_ext >&5
31837 ac_header_compiler=no
31839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31841 echo "${ECHO_T}$ac_header_compiler" >&6
31843 # Is the header present?
31844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31846 cat >conftest.$ac_ext <<_ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h. */
31852 #include <$ac_header>
31854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31857 grep -v '^ *+' conftest.er1 >conftest.err
31859 cat conftest.err >&5
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } >/dev/null; then
31862 if test -s conftest.err; then
31863 ac_cpp_err=$ac_c_preproc_warn_flag
31864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31871 if test -z "$ac_cpp_err"; then
31872 ac_header_preproc=yes
31874 echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31877 ac_header_preproc=no
31879 rm -f conftest.err conftest.$ac_ext
31880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31881 echo "${ECHO_T}$ac_header_preproc" >&6
31883 # So? What about this header?
31884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31890 ac_header_preproc=yes
31893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31907 ## --------------------------------------------- ##
31908 ## Report this to <http://www.openldap.org/its/> ##
31909 ## --------------------------------------------- ##
31912 sed "s/^/$as_me: WARNING: /" >&2
31915 echo "$as_me:$LINENO: checking for $ac_header" >&5
31916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31918 echo $ECHO_N "(cached) $ECHO_C" >&6
31920 eval "$as_ac_Header=\$ac_header_preproc"
31922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31927 cat >>confdefs.h <<_ACEOF
31928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31933 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31934 echo "$as_me: error: could not locate SQL headers" >&2;}
31935 { (exit 1); exit 1; }; }
31943 LIBS="$LTHREAD_LIBS"
31945 if test $ol_with_odbc = auto ; then
31946 ol_with_odbc="iodbc unixodbc odbc32"
31949 for odbc in $ol_with_odbc ; do
31950 if test $ol_link_sql = no ; then
31953 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31954 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31955 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31956 echo $ECHO_N "(cached) $ECHO_C" >&6
31958 ac_check_lib_save_LIBS=$LIBS
31959 LIBS="-liodbc $LIBS"
31960 cat >conftest.$ac_ext <<_ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h. */
31967 /* Override any gcc2 internal prototype to avoid an error. */
31971 /* We use char because int might match the return type of a gcc2
31972 builtin and then its argument prototype would still apply. */
31973 char SQLDriverConnect ();
31977 SQLDriverConnect ();
31982 rm -f conftest.$ac_objext conftest$ac_exeext
31983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31984 (eval $ac_link) 2>conftest.er1
31986 grep -v '^ *+' conftest.er1 >conftest.err
31988 cat conftest.err >&5
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); } &&
31991 { ac_try='test -z "$ac_c_werror_flag"
31992 || test ! -s conftest.err'
31993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994 (eval $ac_try) 2>&5
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; } &&
31998 { ac_try='test -s conftest$ac_exeext'
31999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32000 (eval $ac_try) 2>&5
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); }; }; then
32004 ac_cv_lib_iodbc_SQLDriverConnect=yes
32006 echo "$as_me: failed program was:" >&5
32007 sed 's/^/| /' conftest.$ac_ext >&5
32009 ac_cv_lib_iodbc_SQLDriverConnect=no
32011 rm -f conftest.err conftest.$ac_objext \
32012 conftest$ac_exeext conftest.$ac_ext
32013 LIBS=$ac_check_lib_save_LIBS
32015 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32016 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32017 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32023 if test $have_iodbc = yes ; then
32024 ol_link_sql="-liodbc"
32029 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32030 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32031 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32032 echo $ECHO_N "(cached) $ECHO_C" >&6
32034 ac_check_lib_save_LIBS=$LIBS
32035 LIBS="-lodbc $LIBS"
32036 cat >conftest.$ac_ext <<_ACEOF
32039 cat confdefs.h >>conftest.$ac_ext
32040 cat >>conftest.$ac_ext <<_ACEOF
32041 /* end confdefs.h. */
32043 /* Override any gcc2 internal prototype to avoid an error. */
32047 /* We use char because int might match the return type of a gcc2
32048 builtin and then its argument prototype would still apply. */
32049 char SQLDriverConnect ();
32053 SQLDriverConnect ();
32058 rm -f conftest.$ac_objext conftest$ac_exeext
32059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32060 (eval $ac_link) 2>conftest.er1
32062 grep -v '^ *+' conftest.er1 >conftest.err
32064 cat conftest.err >&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); } &&
32067 { ac_try='test -z "$ac_c_werror_flag"
32068 || test ! -s conftest.err'
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); }; } &&
32074 { ac_try='test -s conftest$ac_exeext'
32075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076 (eval $ac_try) 2>&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); }; }; then
32080 ac_cv_lib_odbc_SQLDriverConnect=yes
32082 echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32085 ac_cv_lib_odbc_SQLDriverConnect=no
32087 rm -f conftest.err conftest.$ac_objext \
32088 conftest$ac_exeext conftest.$ac_ext
32089 LIBS=$ac_check_lib_save_LIBS
32091 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32092 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32093 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32099 if test $have_odbc = yes ; then
32100 ol_link_sql="-lodbc"
32105 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
32106 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
32107 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
32108 echo $ECHO_N "(cached) $ECHO_C" >&6
32110 ac_check_lib_save_LIBS=$LIBS
32111 LIBS="-lodbc32 $LIBS"
32112 cat >conftest.$ac_ext <<_ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h. */
32119 /* Override any gcc2 internal prototype to avoid an error. */
32123 /* We use char because int might match the return type of a gcc2
32124 builtin and then its argument prototype would still apply. */
32125 char SQLDriverConnect ();
32129 SQLDriverConnect ();
32134 rm -f conftest.$ac_objext conftest$ac_exeext
32135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32136 (eval $ac_link) 2>conftest.er1
32138 grep -v '^ *+' conftest.er1 >conftest.err
32140 cat conftest.err >&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } &&
32143 { ac_try='test -z "$ac_c_werror_flag"
32144 || test ! -s conftest.err'
32145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146 (eval $ac_try) 2>&5
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; } &&
32150 { ac_try='test -s conftest$ac_exeext'
32151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152 (eval $ac_try) 2>&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); }; }; then
32156 ac_cv_lib_odbc32_SQLDriverConnect=yes
32158 echo "$as_me: failed program was:" >&5
32159 sed 's/^/| /' conftest.$ac_ext >&5
32161 ac_cv_lib_odbc32_SQLDriverConnect=no
32163 rm -f conftest.err conftest.$ac_objext \
32164 conftest$ac_exeext conftest.$ac_ext
32165 LIBS=$ac_check_lib_save_LIBS
32167 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
32168 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
32169 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
32175 if test $have_odbc32 = yes ; then
32176 ol_link_sql="-lodbc32"
32181 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32182 echo "$as_me: error: unknown ODBC library" >&2;}
32183 { (exit 1); exit 1; }; }
32191 if test $ol_link_sql != no ; then
32192 SLAPD_SQL_LIBS="$ol_link_sql"
32194 elif test $ol_enable_sql != auto ; then
32195 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32196 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32197 { (exit 1); exit 1; }; }
32202 if test $ol_enable_ndb != no ; then
32203 # Extract the first word of "mysql_config", so it can be a program name with args.
32204 set dummy mysql_config; ac_word=$2
32205 echo "$as_me:$LINENO: checking for $ac_word" >&5
32206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32207 if test "${ac_cv_prog_MYSQL+set}" = set; then
32208 echo $ECHO_N "(cached) $ECHO_C" >&6
32210 if test -n "$MYSQL"; then
32211 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
32213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32214 for as_dir in $PATH
32217 test -z "$as_dir" && as_dir=.
32218 for ac_exec_ext in '' $ac_executable_extensions; do
32219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32220 ac_cv_prog_MYSQL="yes"
32221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32229 MYSQL=$ac_cv_prog_MYSQL
32230 if test -n "$MYSQL"; then
32231 echo "$as_me:$LINENO: result: $MYSQL" >&5
32232 echo "${ECHO_T}$MYSQL" >&6
32234 echo "$as_me:$LINENO: result: no" >&5
32235 echo "${ECHO_T}no" >&6
32238 if test "$MYSQL" != yes ; then
32239 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
32240 echo "$as_me: error: could not locate mysql_config" >&2;}
32241 { (exit 1); exit 1; }; }
32244 SQL_INC=`mysql_config --include`
32245 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
32247 SQL_LIB=`mysql_config --libs_r`
32248 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lmysys -lmystrings -lstdc++"
32250 if test "$ol_enable_ndb" = yes ; then
32251 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
32257 for ac_header in unicode/utypes.h
32259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32261 echo "$as_me:$LINENO: checking for $ac_header" >&5
32262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32264 echo $ECHO_N "(cached) $ECHO_C" >&6
32266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32269 # Is the header compilable?
32270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32272 cat >conftest.$ac_ext <<_ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h. */
32278 $ac_includes_default
32279 #include <$ac_header>
32281 rm -f conftest.$ac_objext
32282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32283 (eval $ac_compile) 2>conftest.er1
32285 grep -v '^ *+' conftest.er1 >conftest.err
32287 cat conftest.err >&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } &&
32290 { ac_try='test -z "$ac_c_werror_flag"
32291 || test ! -s conftest.err'
32292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32293 (eval $ac_try) 2>&5
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; } &&
32297 { ac_try='test -s conftest.$ac_objext'
32298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32299 (eval $ac_try) 2>&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; }; then
32303 ac_header_compiler=yes
32305 echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32308 ac_header_compiler=no
32310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32312 echo "${ECHO_T}$ac_header_compiler" >&6
32314 # Is the header present?
32315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32323 #include <$ac_header>
32325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32328 grep -v '^ *+' conftest.er1 >conftest.err
32330 cat conftest.err >&5
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); } >/dev/null; then
32333 if test -s conftest.err; then
32334 ac_cpp_err=$ac_c_preproc_warn_flag
32335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32342 if test -z "$ac_cpp_err"; then
32343 ac_header_preproc=yes
32345 echo "$as_me: failed program was:" >&5
32346 sed 's/^/| /' conftest.$ac_ext >&5
32348 ac_header_preproc=no
32350 rm -f conftest.err conftest.$ac_ext
32351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32352 echo "${ECHO_T}$ac_header_preproc" >&6
32354 # So? What about this header?
32355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32361 ac_header_preproc=yes
32364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32378 ## --------------------------------------------- ##
32379 ## Report this to <http://www.openldap.org/its/> ##
32380 ## --------------------------------------------- ##
32383 sed "s/^/$as_me: WARNING: /" >&2
32386 echo "$as_me:$LINENO: checking for $ac_header" >&5
32387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32389 echo $ECHO_N "(cached) $ECHO_C" >&6
32391 eval "$as_ac_Header=\$ac_header_preproc"
32393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32398 cat >>confdefs.h <<_ACEOF
32399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32406 if test $ac_cv_header_unicode_utypes_h = yes ; then
32407 OL_ICULIBS="-licuuc -licudata"
32409 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32410 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32411 if test "${ol_cv_lib_icu+set}" = set; then
32412 echo $ECHO_N "(cached) $ECHO_C" >&6
32416 LIBS="$OL_ICULIBS $LIBS"
32417 cat >conftest.$ac_ext <<_ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h. */
32424 #include <unicode/utypes.h>
32430 (void) u_errorName(0);
32436 rm -f conftest.$ac_objext conftest$ac_exeext
32437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32438 (eval $ac_link) 2>conftest.er1
32440 grep -v '^ *+' conftest.er1 >conftest.err
32442 cat conftest.err >&5
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); } &&
32445 { ac_try='test -z "$ac_c_werror_flag"
32446 || test ! -s conftest.err'
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; } &&
32452 { ac_try='test -s conftest$ac_exeext'
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; }; then
32460 echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32465 rm -f conftest.err conftest.$ac_objext \
32466 conftest$ac_exeext conftest.$ac_ext
32470 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32471 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32473 if test $ol_cv_lib_icu != no ; then
32474 ol_icu="$OL_ICULIBS"
32476 cat >>confdefs.h <<\_ACEOF
32483 if test "$ol_icu" = no ; then
32484 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32485 echo "$as_me: WARNING: ICU not available" >&2;}
32492 if test $ol_with_cyrus_sasl != no ; then
32495 for ac_header in sasl/sasl.h sasl.h
32497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32499 echo "$as_me:$LINENO: checking for $ac_header" >&5
32500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32502 echo $ECHO_N "(cached) $ECHO_C" >&6
32504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32507 # Is the header compilable?
32508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32510 cat >conftest.$ac_ext <<_ACEOF
32513 cat confdefs.h >>conftest.$ac_ext
32514 cat >>conftest.$ac_ext <<_ACEOF
32515 /* end confdefs.h. */
32516 $ac_includes_default
32517 #include <$ac_header>
32519 rm -f conftest.$ac_objext
32520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32521 (eval $ac_compile) 2>conftest.er1
32523 grep -v '^ *+' conftest.er1 >conftest.err
32525 cat conftest.err >&5
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); } &&
32528 { ac_try='test -z "$ac_c_werror_flag"
32529 || test ! -s conftest.err'
32530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32531 (eval $ac_try) 2>&5
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); }; } &&
32535 { ac_try='test -s conftest.$ac_objext'
32536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537 (eval $ac_try) 2>&5
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; }; then
32541 ac_header_compiler=yes
32543 echo "$as_me: failed program was:" >&5
32544 sed 's/^/| /' conftest.$ac_ext >&5
32546 ac_header_compiler=no
32548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32550 echo "${ECHO_T}$ac_header_compiler" >&6
32552 # Is the header present?
32553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32555 cat >conftest.$ac_ext <<_ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h. */
32561 #include <$ac_header>
32563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32566 grep -v '^ *+' conftest.er1 >conftest.err
32568 cat conftest.err >&5
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); } >/dev/null; then
32571 if test -s conftest.err; then
32572 ac_cpp_err=$ac_c_preproc_warn_flag
32573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32580 if test -z "$ac_cpp_err"; then
32581 ac_header_preproc=yes
32583 echo "$as_me: failed program was:" >&5
32584 sed 's/^/| /' conftest.$ac_ext >&5
32586 ac_header_preproc=no
32588 rm -f conftest.err conftest.$ac_ext
32589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32590 echo "${ECHO_T}$ac_header_preproc" >&6
32592 # So? What about this header?
32593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32599 ac_header_preproc=yes
32602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32616 ## --------------------------------------------- ##
32617 ## Report this to <http://www.openldap.org/its/> ##
32618 ## --------------------------------------------- ##
32621 sed "s/^/$as_me: WARNING: /" >&2
32624 echo "$as_me:$LINENO: checking for $ac_header" >&5
32625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32627 echo $ECHO_N "(cached) $ECHO_C" >&6
32629 eval "$as_ac_Header=\$ac_header_preproc"
32631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32636 cat >>confdefs.h <<_ACEOF
32637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32645 if test $ac_cv_header_sasl_sasl_h = yes ||
32646 test $ac_cv_header_sasl_h = yes; then
32647 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32648 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32649 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32650 echo $ECHO_N "(cached) $ECHO_C" >&6
32652 ac_check_lib_save_LIBS=$LIBS
32653 LIBS="-lsasl2 $LIBS"
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32661 /* Override any gcc2 internal prototype to avoid an error. */
32665 /* We use char because int might match the return type of a gcc2
32666 builtin and then its argument prototype would still apply. */
32667 char sasl_client_init ();
32671 sasl_client_init ();
32676 rm -f conftest.$ac_objext conftest$ac_exeext
32677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32678 (eval $ac_link) 2>conftest.er1
32680 grep -v '^ *+' conftest.er1 >conftest.err
32682 cat conftest.err >&5
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); } &&
32685 { ac_try='test -z "$ac_c_werror_flag"
32686 || test ! -s conftest.err'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; } &&
32692 { ac_try='test -s conftest$ac_exeext'
32693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694 (eval $ac_try) 2>&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); }; }; then
32698 ac_cv_lib_sasl2_sasl_client_init=yes
32700 echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32703 ac_cv_lib_sasl2_sasl_client_init=no
32705 rm -f conftest.err conftest.$ac_objext \
32706 conftest$ac_exeext conftest.$ac_ext
32707 LIBS=$ac_check_lib_save_LIBS
32709 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32710 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32711 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32712 ol_link_sasl="-lsasl2"
32714 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32715 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32716 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32719 ac_check_lib_save_LIBS=$LIBS
32720 LIBS="-lsasl $LIBS"
32721 cat >conftest.$ac_ext <<_ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h. */
32728 /* Override any gcc2 internal prototype to avoid an error. */
32732 /* We use char because int might match the return type of a gcc2
32733 builtin and then its argument prototype would still apply. */
32734 char sasl_client_init ();
32738 sasl_client_init ();
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745 (eval $ac_link) 2>conftest.er1
32747 grep -v '^ *+' conftest.er1 >conftest.err
32749 cat conftest.err >&5
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); } &&
32752 { ac_try='test -z "$ac_c_werror_flag"
32753 || test ! -s conftest.err'
32754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32755 (eval $ac_try) 2>&5
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); }; } &&
32759 { ac_try='test -s conftest$ac_exeext'
32760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32761 (eval $ac_try) 2>&5
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
32765 ac_cv_lib_sasl_sasl_client_init=yes
32767 echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32770 ac_cv_lib_sasl_sasl_client_init=no
32772 rm -f conftest.err conftest.$ac_objext \
32773 conftest$ac_exeext conftest.$ac_ext
32774 LIBS=$ac_check_lib_save_LIBS
32776 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32777 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32778 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32779 ol_link_sasl="-lsasl"
32786 if test $ol_link_sasl = no ; then
32787 if test $ol_with_cyrus_sasl != auto ; then
32788 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32789 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32790 { (exit 1); exit 1; }; }
32792 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32793 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32794 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32795 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32796 if test $ol_link_tls = no ; then
32797 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32798 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32802 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32803 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32804 if test "${ol_cv_sasl_compat+set}" = set; then
32805 echo $ECHO_N "(cached) $ECHO_C" >&6
32808 cat >conftest.$ac_ext <<_ACEOF
32811 cat confdefs.h >>conftest.$ac_ext
32812 cat >>conftest.$ac_ext <<_ACEOF
32813 /* end confdefs.h. */
32815 #ifdef HAVE_SASL_SASL_H
32816 #include <sasl/sasl.h>
32821 /* Require 2.1.15+ */
32822 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32823 char *__sasl_compat = "2.2+ or better okay (we guess)";
32824 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32825 && SASL_VERSION_STEP >=15
32826 char *__sasl_compat = "2.1.15+ or better okay";
32830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32831 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32832 ol_cv_sasl_compat=yes
32834 ol_cv_sasl_compat=no
32839 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32840 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32842 if test $ol_cv_sasl_compat = no ; then
32844 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32845 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32846 { (exit 1); exit 1; }; }
32850 cat >>confdefs.h <<\_ACEOF
32851 #define HAVE_CYRUS_SASL 1
32854 SASL_LIBS="$ol_link_sasl"
32855 if test $ol_enable_spasswd != no ; then
32856 ol_link_spasswd=yes
32859 ac_save_LIBS="$LIBS"
32860 LIBS="$LIBS $ol_link_sasl"
32861 echo "$as_me:$LINENO: checking for sasl_version" >&5
32862 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32863 if test "${ac_cv_func_sasl_version+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32866 cat >conftest.$ac_ext <<_ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h. */
32872 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32874 #define sasl_version innocuous_sasl_version
32876 /* System header to define __stub macros and hopefully few prototypes,
32877 which can conflict with char sasl_version (); below.
32878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32879 <limits.h> exists even on freestanding compilers. */
32882 # include <limits.h>
32884 # include <assert.h>
32887 #undef sasl_version
32889 /* Override any gcc2 internal prototype to avoid an error. */
32894 /* We use char because int might match the return type of a gcc2
32895 builtin and then its argument prototype would still apply. */
32896 char sasl_version ();
32897 /* The GNU C library defines this for functions which it implements
32898 to always fail with ENOSYS. Some functions are actually named
32899 something starting with __ and the normal name is an alias. */
32900 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32903 char (*f) () = sasl_version;
32912 return f != sasl_version;
32917 rm -f conftest.$ac_objext conftest$ac_exeext
32918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32919 (eval $ac_link) 2>conftest.er1
32921 grep -v '^ *+' conftest.er1 >conftest.err
32923 cat conftest.err >&5
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); } &&
32926 { ac_try='test -z "$ac_c_werror_flag"
32927 || test ! -s conftest.err'
32928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32929 (eval $ac_try) 2>&5
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); }; } &&
32933 { ac_try='test -s conftest$ac_exeext'
32934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32935 (eval $ac_try) 2>&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); }; }; then
32939 ac_cv_func_sasl_version=yes
32941 echo "$as_me: failed program was:" >&5
32942 sed 's/^/| /' conftest.$ac_ext >&5
32944 ac_cv_func_sasl_version=no
32946 rm -f conftest.err conftest.$ac_objext \
32947 conftest$ac_exeext conftest.$ac_ext
32949 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32950 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32951 if test $ac_cv_func_sasl_version = yes; then
32953 cat >>confdefs.h <<\_ACEOF
32954 #define HAVE_SASL_VERSION 1
32959 LIBS="$ac_save_LIBS"
32965 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32966 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32967 if test $ol_link_tls = no ; then
32968 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32969 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32973 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32975 if test -r /dev/urandom ; then
32976 dev="/dev/urandom";
32977 elif test -r /idev/urandom ; then
32978 dev="/idev/urandom";
32979 elif test -r /dev/srandom ; then
32980 dev="/dev/srandom";
32981 elif test -r /dev/random ; then
32983 elif test -r /idev/random ; then
32984 dev="/idev/random";
32987 if test $dev != no ; then
32989 cat >>confdefs.h <<_ACEOF
32990 #define URANDOM_DEVICE "$dev"
32997 if test $ol_with_fetch != no ; then
32999 LIBS="-lfetch -lcom_err $LIBS"
33000 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33001 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33002 if test "${ol_cv_lib_fetch+set}" = set; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
33006 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33013 #include <sys/param.h>
33019 struct url *u = fetchParseURL("file:///");
33024 rm -f conftest.$ac_objext conftest$ac_exeext
33025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33026 (eval $ac_link) 2>conftest.er1
33028 grep -v '^ *+' conftest.er1 >conftest.err
33030 cat conftest.err >&5
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); } &&
33033 { ac_try='test -z "$ac_c_werror_flag"
33034 || test ! -s conftest.err'
33035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33036 (eval $ac_try) 2>&5
33038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039 (exit $ac_status); }; } &&
33040 { ac_try='test -s conftest$ac_exeext'
33041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33042 (eval $ac_try) 2>&5
33044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045 (exit $ac_status); }; }; then
33046 ol_cv_lib_fetch=yes
33048 echo "$as_me: failed program was:" >&5
33049 sed 's/^/| /' conftest.$ac_ext >&5
33053 rm -f conftest.err conftest.$ac_objext \
33054 conftest$ac_exeext conftest.$ac_ext
33056 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33057 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33059 if test $ol_cv_lib_fetch != no ; then
33060 ol_link_fetch="-lfetch -lcom_err"
33062 cat >>confdefs.h <<\_ACEOF
33063 #define HAVE_FETCH 1
33069 if test $ol_cv_lib_fetch != no ; then
33070 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33071 ol_link_fetch=freebsd
33073 elif test $ol_with_fetch != auto ; then
33074 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33075 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33076 { (exit 1); exit 1; }; }
33080 if test $ol_enable_crypt != no ; then
33082 LIBS="$TLS_LIBS $LIBS"
33084 echo "$as_me:$LINENO: checking for crypt" >&5
33085 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33086 if test "${ac_cv_func_crypt+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33089 cat >conftest.$ac_ext <<_ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33095 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33097 #define crypt innocuous_crypt
33099 /* System header to define __stub macros and hopefully few prototypes,
33100 which can conflict with char crypt (); below.
33101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33102 <limits.h> exists even on freestanding compilers. */
33105 # include <limits.h>
33107 # include <assert.h>
33112 /* Override any gcc2 internal prototype to avoid an error. */
33117 /* We use char because int might match the return type of a gcc2
33118 builtin and then its argument prototype would still apply. */
33120 /* The GNU C library defines this for functions which it implements
33121 to always fail with ENOSYS. Some functions are actually named
33122 something starting with __ and the normal name is an alias. */
33123 #if defined (__stub_crypt) || defined (__stub___crypt)
33126 char (*f) () = crypt;
33140 rm -f conftest.$ac_objext conftest$ac_exeext
33141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33142 (eval $ac_link) 2>conftest.er1
33144 grep -v '^ *+' conftest.er1 >conftest.err
33146 cat conftest.err >&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } &&
33149 { ac_try='test -z "$ac_c_werror_flag"
33150 || test ! -s conftest.err'
33151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152 (eval $ac_try) 2>&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; } &&
33156 { ac_try='test -s conftest$ac_exeext'
33157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158 (eval $ac_try) 2>&5
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; }; then
33162 ac_cv_func_crypt=yes
33164 echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33167 ac_cv_func_crypt=no
33169 rm -f conftest.err conftest.$ac_objext \
33170 conftest$ac_exeext conftest.$ac_ext
33172 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33173 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33174 if test $ac_cv_func_crypt = yes; then
33179 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33180 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33181 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33182 echo $ECHO_N "(cached) $ECHO_C" >&6
33184 ac_check_lib_save_LIBS=$LIBS
33185 LIBS="-lcrypt $LIBS"
33186 cat >conftest.$ac_ext <<_ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h. */
33193 /* Override any gcc2 internal prototype to avoid an error. */
33197 /* We use char because int might match the return type of a gcc2
33198 builtin and then its argument prototype would still apply. */
33208 rm -f conftest.$ac_objext conftest$ac_exeext
33209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33210 (eval $ac_link) 2>conftest.er1
33212 grep -v '^ *+' conftest.er1 >conftest.err
33214 cat conftest.err >&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } &&
33217 { ac_try='test -z "$ac_c_werror_flag"
33218 || test ! -s conftest.err'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; } &&
33224 { ac_try='test -s conftest$ac_exeext'
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
33230 ac_cv_lib_crypt_crypt=yes
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33235 ac_cv_lib_crypt_crypt=no
33237 rm -f conftest.err conftest.$ac_objext \
33238 conftest$ac_exeext conftest.$ac_ext
33239 LIBS=$ac_check_lib_save_LIBS
33241 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33242 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33243 if test $ac_cv_lib_crypt_crypt = yes; then
33244 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33255 if test $have_crypt = yes ; then
33257 cat >>confdefs.h <<\_ACEOF
33258 #define HAVE_CRYPT 1
33262 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33263 echo "$as_me: WARNING: could not find crypt" >&2;}
33264 if test $ol_enable_crypt = yes ; then
33265 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33266 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33267 { (exit 1); exit 1; }; }
33270 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33271 echo "$as_me: WARNING: disabling crypt support" >&2;}
33276 if test $ol_enable_proctitle != no ; then
33277 echo "$as_me:$LINENO: checking for setproctitle" >&5
33278 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33279 if test "${ac_cv_func_setproctitle+set}" = set; then
33280 echo $ECHO_N "(cached) $ECHO_C" >&6
33282 cat >conftest.$ac_ext <<_ACEOF
33285 cat confdefs.h >>conftest.$ac_ext
33286 cat >>conftest.$ac_ext <<_ACEOF
33287 /* end confdefs.h. */
33288 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33290 #define setproctitle innocuous_setproctitle
33292 /* System header to define __stub macros and hopefully few prototypes,
33293 which can conflict with char setproctitle (); below.
33294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33295 <limits.h> exists even on freestanding compilers. */
33298 # include <limits.h>
33300 # include <assert.h>
33303 #undef setproctitle
33305 /* Override any gcc2 internal prototype to avoid an error. */
33310 /* We use char because int might match the return type of a gcc2
33311 builtin and then its argument prototype would still apply. */
33312 char setproctitle ();
33313 /* The GNU C library defines this for functions which it implements
33314 to always fail with ENOSYS. Some functions are actually named
33315 something starting with __ and the normal name is an alias. */
33316 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33319 char (*f) () = setproctitle;
33328 return f != setproctitle;
33333 rm -f conftest.$ac_objext conftest$ac_exeext
33334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33335 (eval $ac_link) 2>conftest.er1
33337 grep -v '^ *+' conftest.er1 >conftest.err
33339 cat conftest.err >&5
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } &&
33342 { ac_try='test -z "$ac_c_werror_flag"
33343 || test ! -s conftest.err'
33344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33345 (eval $ac_try) 2>&5
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); }; } &&
33349 { ac_try='test -s conftest$ac_exeext'
33350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33351 (eval $ac_try) 2>&5
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); }; }; then
33355 ac_cv_func_setproctitle=yes
33357 echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33360 ac_cv_func_setproctitle=no
33362 rm -f conftest.err conftest.$ac_objext \
33363 conftest$ac_exeext conftest.$ac_ext
33365 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33366 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33367 if test $ac_cv_func_setproctitle = yes; then
33368 have_setproctitle=yes
33371 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33372 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33373 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33374 echo $ECHO_N "(cached) $ECHO_C" >&6
33376 ac_check_lib_save_LIBS=$LIBS
33377 LIBS="-lutil $LIBS"
33378 cat >conftest.$ac_ext <<_ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h. */
33385 /* Override any gcc2 internal prototype to avoid an error. */
33389 /* We use char because int might match the return type of a gcc2
33390 builtin and then its argument prototype would still apply. */
33391 char setproctitle ();
33400 rm -f conftest.$ac_objext conftest$ac_exeext
33401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33402 (eval $ac_link) 2>conftest.er1
33404 grep -v '^ *+' conftest.er1 >conftest.err
33406 cat conftest.err >&5
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); } &&
33409 { ac_try='test -z "$ac_c_werror_flag"
33410 || test ! -s conftest.err'
33411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412 (eval $ac_try) 2>&5
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest$ac_exeext'
33417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418 (eval $ac_try) 2>&5
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; }; then
33422 ac_cv_lib_util_setproctitle=yes
33424 echo "$as_me: failed program was:" >&5
33425 sed 's/^/| /' conftest.$ac_ext >&5
33427 ac_cv_lib_util_setproctitle=no
33429 rm -f conftest.err conftest.$ac_objext \
33430 conftest$ac_exeext conftest.$ac_ext
33431 LIBS=$ac_check_lib_save_LIBS
33433 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33434 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33435 if test $ac_cv_lib_util_setproctitle = yes; then
33436 have_setproctitle=yes
33437 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33439 have_setproctitle=no
33441 "setproctitle.$ac_objext" | \
33442 *" setproctitle.$ac_objext" | \
33443 "setproctitle.$ac_objext "* | \
33444 *" setproctitle.$ac_objext "* ) ;;
33445 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33448 LIBSRCS="$LIBSRCS setproctitle.c"
33454 if test $have_setproctitle = yes ; then
33456 cat >>confdefs.h <<\_ACEOF
33457 #define HAVE_SETPROCTITLE 1
33463 if test $ol_enable_slp != no ; then
33465 for ac_header in slp.h
33467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33469 echo "$as_me:$LINENO: checking for $ac_header" >&5
33470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33477 # Is the header compilable?
33478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33480 cat >conftest.$ac_ext <<_ACEOF
33483 cat confdefs.h >>conftest.$ac_ext
33484 cat >>conftest.$ac_ext <<_ACEOF
33485 /* end confdefs.h. */
33486 $ac_includes_default
33487 #include <$ac_header>
33489 rm -f conftest.$ac_objext
33490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33491 (eval $ac_compile) 2>conftest.er1
33493 grep -v '^ *+' conftest.er1 >conftest.err
33495 cat conftest.err >&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); } &&
33498 { ac_try='test -z "$ac_c_werror_flag"
33499 || test ! -s conftest.err'
33500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33501 (eval $ac_try) 2>&5
33503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); }; } &&
33505 { ac_try='test -s conftest.$ac_objext'
33506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33507 (eval $ac_try) 2>&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); }; }; then
33511 ac_header_compiler=yes
33513 echo "$as_me: failed program was:" >&5
33514 sed 's/^/| /' conftest.$ac_ext >&5
33516 ac_header_compiler=no
33518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33520 echo "${ECHO_T}$ac_header_compiler" >&6
33522 # Is the header present?
33523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33525 cat >conftest.$ac_ext <<_ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h. */
33531 #include <$ac_header>
33533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33536 grep -v '^ *+' conftest.er1 >conftest.err
33538 cat conftest.err >&5
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); } >/dev/null; then
33541 if test -s conftest.err; then
33542 ac_cpp_err=$ac_c_preproc_warn_flag
33543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33550 if test -z "$ac_cpp_err"; then
33551 ac_header_preproc=yes
33553 echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33556 ac_header_preproc=no
33558 rm -f conftest.err conftest.$ac_ext
33559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33560 echo "${ECHO_T}$ac_header_preproc" >&6
33562 # So? What about this header?
33563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33569 ac_header_preproc=yes
33572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33586 ## --------------------------------------------- ##
33587 ## Report this to <http://www.openldap.org/its/> ##
33588 ## --------------------------------------------- ##
33591 sed "s/^/$as_me: WARNING: /" >&2
33594 echo "$as_me:$LINENO: checking for $ac_header" >&5
33595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33597 echo $ECHO_N "(cached) $ECHO_C" >&6
33599 eval "$as_ac_Header=\$ac_header_preproc"
33601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33606 cat >>confdefs.h <<_ACEOF
33607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33615 if test $ac_cv_header_slp_h = yes ; then
33616 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33617 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33618 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33619 echo $ECHO_N "(cached) $ECHO_C" >&6
33621 ac_check_lib_save_LIBS=$LIBS
33623 cat >conftest.$ac_ext <<_ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h. */
33630 /* Override any gcc2 internal prototype to avoid an error. */
33634 /* We use char because int might match the return type of a gcc2
33635 builtin and then its argument prototype would still apply. */
33645 rm -f conftest.$ac_objext conftest$ac_exeext
33646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33647 (eval $ac_link) 2>conftest.er1
33649 grep -v '^ *+' conftest.er1 >conftest.err
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } &&
33654 { ac_try='test -z "$ac_c_werror_flag"
33655 || test ! -s conftest.err'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; } &&
33661 { ac_try='test -s conftest$ac_exeext'
33662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663 (eval $ac_try) 2>&5
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; }; then
33667 ac_cv_lib_slp_SLPOpen=yes
33669 echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33672 ac_cv_lib_slp_SLPOpen=no
33674 rm -f conftest.err conftest.$ac_objext \
33675 conftest$ac_exeext conftest.$ac_ext
33676 LIBS=$ac_check_lib_save_LIBS
33678 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33679 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33680 if test $ac_cv_lib_slp_SLPOpen = yes; then
33686 if test $have_slp = yes ; then
33688 cat >>confdefs.h <<\_ACEOF
33692 SLAPD_SLP_LIBS=-lslp
33695 elif test $ol_enable_slp = yes ; then
33696 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33697 echo "$as_me: error: SLP not found" >&2;}
33698 { (exit 1); exit 1; }; }
33703 echo "$as_me:$LINENO: checking for mode_t" >&5
33704 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33705 if test "${ac_cv_type_mode_t+set}" = set; then
33706 echo $ECHO_N "(cached) $ECHO_C" >&6
33708 cat >conftest.$ac_ext <<_ACEOF
33711 cat confdefs.h >>conftest.$ac_ext
33712 cat >>conftest.$ac_ext <<_ACEOF
33713 /* end confdefs.h. */
33714 $ac_includes_default
33720 if (sizeof (mode_t))
33726 rm -f conftest.$ac_objext
33727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33728 (eval $ac_compile) 2>conftest.er1
33730 grep -v '^ *+' conftest.er1 >conftest.err
33732 cat conftest.err >&5
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); } &&
33735 { ac_try='test -z "$ac_c_werror_flag"
33736 || test ! -s conftest.err'
33737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33738 (eval $ac_try) 2>&5
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); }; } &&
33742 { ac_try='test -s conftest.$ac_objext'
33743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744 (eval $ac_try) 2>&5
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); }; }; then
33748 ac_cv_type_mode_t=yes
33750 echo "$as_me: failed program was:" >&5
33751 sed 's/^/| /' conftest.$ac_ext >&5
33753 ac_cv_type_mode_t=no
33755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33757 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33758 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33759 if test $ac_cv_type_mode_t = yes; then
33763 cat >>confdefs.h <<_ACEOF
33769 echo "$as_me:$LINENO: checking for off_t" >&5
33770 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33771 if test "${ac_cv_type_off_t+set}" = set; then
33772 echo $ECHO_N "(cached) $ECHO_C" >&6
33774 cat >conftest.$ac_ext <<_ACEOF
33777 cat confdefs.h >>conftest.$ac_ext
33778 cat >>conftest.$ac_ext <<_ACEOF
33779 /* end confdefs.h. */
33780 $ac_includes_default
33786 if (sizeof (off_t))
33792 rm -f conftest.$ac_objext
33793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33794 (eval $ac_compile) 2>conftest.er1
33796 grep -v '^ *+' conftest.er1 >conftest.err
33798 cat conftest.err >&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); } &&
33801 { ac_try='test -z "$ac_c_werror_flag"
33802 || test ! -s conftest.err'
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; } &&
33808 { ac_try='test -s conftest.$ac_objext'
33809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810 (eval $ac_try) 2>&5
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
33814 ac_cv_type_off_t=yes
33816 echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33819 ac_cv_type_off_t=no
33821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33823 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33824 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33825 if test $ac_cv_type_off_t = yes; then
33829 cat >>confdefs.h <<_ACEOF
33835 echo "$as_me:$LINENO: checking for pid_t" >&5
33836 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33837 if test "${ac_cv_type_pid_t+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33840 cat >conftest.$ac_ext <<_ACEOF
33843 cat confdefs.h >>conftest.$ac_ext
33844 cat >>conftest.$ac_ext <<_ACEOF
33845 /* end confdefs.h. */
33846 $ac_includes_default
33852 if (sizeof (pid_t))
33858 rm -f conftest.$ac_objext
33859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33860 (eval $ac_compile) 2>conftest.er1
33862 grep -v '^ *+' conftest.er1 >conftest.err
33864 cat conftest.err >&5
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); } &&
33867 { ac_try='test -z "$ac_c_werror_flag"
33868 || test ! -s conftest.err'
33869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33870 (eval $ac_try) 2>&5
33872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873 (exit $ac_status); }; } &&
33874 { ac_try='test -s conftest.$ac_objext'
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; }; then
33880 ac_cv_type_pid_t=yes
33882 echo "$as_me: failed program was:" >&5
33883 sed 's/^/| /' conftest.$ac_ext >&5
33885 ac_cv_type_pid_t=no
33887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33889 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33890 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33891 if test $ac_cv_type_pid_t = yes; then
33895 cat >>confdefs.h <<_ACEOF
33901 echo "$as_me:$LINENO: checking for ssize_t" >&5
33902 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33903 if test "${ac_cv_type_ssize_t+set}" = set; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
33906 cat >conftest.$ac_ext <<_ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h. */
33912 $ac_includes_default
33918 if (sizeof (ssize_t))
33924 rm -f conftest.$ac_objext
33925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33926 (eval $ac_compile) 2>conftest.er1
33928 grep -v '^ *+' conftest.er1 >conftest.err
33930 cat conftest.err >&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); } &&
33933 { ac_try='test -z "$ac_c_werror_flag"
33934 || test ! -s conftest.err'
33935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33936 (eval $ac_try) 2>&5
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); }; } &&
33940 { ac_try='test -s conftest.$ac_objext'
33941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942 (eval $ac_try) 2>&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; }; then
33946 ac_cv_type_ssize_t=yes
33948 echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33951 ac_cv_type_ssize_t=no
33953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33955 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33956 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33957 if test $ac_cv_type_ssize_t = yes; then
33961 cat >>confdefs.h <<_ACEOF
33962 #define ssize_t signed int
33967 echo "$as_me:$LINENO: checking for caddr_t" >&5
33968 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33969 if test "${ac_cv_type_caddr_t+set}" = set; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33972 cat >conftest.$ac_ext <<_ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h. */
33978 $ac_includes_default
33984 if (sizeof (caddr_t))
33990 rm -f conftest.$ac_objext
33991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33992 (eval $ac_compile) 2>conftest.er1
33994 grep -v '^ *+' conftest.er1 >conftest.err
33996 cat conftest.err >&5
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); } &&
33999 { ac_try='test -z "$ac_c_werror_flag"
34000 || test ! -s conftest.err'
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; } &&
34006 { ac_try='test -s conftest.$ac_objext'
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34012 ac_cv_type_caddr_t=yes
34014 echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34017 ac_cv_type_caddr_t=no
34019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34021 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34022 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34023 if test $ac_cv_type_caddr_t = yes; then
34027 cat >>confdefs.h <<_ACEOF
34028 #define caddr_t char *
34033 echo "$as_me:$LINENO: checking for size_t" >&5
34034 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34035 if test "${ac_cv_type_size_t+set}" = set; then
34036 echo $ECHO_N "(cached) $ECHO_C" >&6
34038 cat >conftest.$ac_ext <<_ACEOF
34041 cat confdefs.h >>conftest.$ac_ext
34042 cat >>conftest.$ac_ext <<_ACEOF
34043 /* end confdefs.h. */
34044 $ac_includes_default
34050 if (sizeof (size_t))
34056 rm -f conftest.$ac_objext
34057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34058 (eval $ac_compile) 2>conftest.er1
34060 grep -v '^ *+' conftest.er1 >conftest.err
34062 cat conftest.err >&5
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); } &&
34065 { ac_try='test -z "$ac_c_werror_flag"
34066 || test ! -s conftest.err'
34067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34068 (eval $ac_try) 2>&5
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); }; } &&
34072 { ac_try='test -s conftest.$ac_objext'
34073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34074 (eval $ac_try) 2>&5
34076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077 (exit $ac_status); }; }; then
34078 ac_cv_type_size_t=yes
34080 echo "$as_me: failed program was:" >&5
34081 sed 's/^/| /' conftest.$ac_ext >&5
34083 ac_cv_type_size_t=no
34085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34087 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34088 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34089 if test $ac_cv_type_size_t = yes; then
34093 cat >>confdefs.h <<_ACEOF
34094 #define size_t unsigned
34100 echo "$as_me:$LINENO: checking for long long" >&5
34101 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34102 if test "${ac_cv_type_long_long+set}" = set; then
34103 echo $ECHO_N "(cached) $ECHO_C" >&6
34105 cat >conftest.$ac_ext <<_ACEOF
34108 cat confdefs.h >>conftest.$ac_ext
34109 cat >>conftest.$ac_ext <<_ACEOF
34110 /* end confdefs.h. */
34111 $ac_includes_default
34115 if ((long long *) 0)
34117 if (sizeof (long long))
34123 rm -f conftest.$ac_objext
34124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34125 (eval $ac_compile) 2>conftest.er1
34127 grep -v '^ *+' conftest.er1 >conftest.err
34129 cat conftest.err >&5
34130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131 (exit $ac_status); } &&
34132 { ac_try='test -z "$ac_c_werror_flag"
34133 || test ! -s conftest.err'
34134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34135 (eval $ac_try) 2>&5
34137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138 (exit $ac_status); }; } &&
34139 { ac_try='test -s conftest.$ac_objext'
34140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34141 (eval $ac_try) 2>&5
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); }; }; then
34145 ac_cv_type_long_long=yes
34147 echo "$as_me: failed program was:" >&5
34148 sed 's/^/| /' conftest.$ac_ext >&5
34150 ac_cv_type_long_long=no
34152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34154 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34155 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34156 if test $ac_cv_type_long_long = yes; then
34158 cat >>confdefs.h <<_ACEOF
34159 #define HAVE_LONG_LONG 1
34165 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34166 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34168 echo $ECHO_N "(cached) $ECHO_C" >&6
34170 cat >conftest.$ac_ext <<_ACEOF
34173 cat confdefs.h >>conftest.$ac_ext
34174 cat >>conftest.$ac_ext <<_ACEOF
34175 /* end confdefs.h. */
34176 $ac_includes_default
34180 if ((ptrdiff_t *) 0)
34182 if (sizeof (ptrdiff_t))
34188 rm -f conftest.$ac_objext
34189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34190 (eval $ac_compile) 2>conftest.er1
34192 grep -v '^ *+' conftest.er1 >conftest.err
34194 cat conftest.err >&5
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); } &&
34197 { ac_try='test -z "$ac_c_werror_flag"
34198 || test ! -s conftest.err'
34199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200 (eval $ac_try) 2>&5
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; } &&
34204 { ac_try='test -s conftest.$ac_objext'
34205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34206 (eval $ac_try) 2>&5
34208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); }; }; then
34210 ac_cv_type_ptrdiff_t=yes
34212 echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34215 ac_cv_type_ptrdiff_t=no
34217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34219 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34220 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34221 if test $ac_cv_type_ptrdiff_t = yes; then
34223 cat >>confdefs.h <<_ACEOF
34224 #define HAVE_PTRDIFF_T 1
34232 echo "$as_me:$LINENO: checking for socklen_t" >&5
34233 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34234 if test "${ac_cv_type_socklen_t+set}" = set; then
34235 echo $ECHO_N "(cached) $ECHO_C" >&6
34237 cat >conftest.$ac_ext <<_ACEOF
34240 cat confdefs.h >>conftest.$ac_ext
34241 cat >>conftest.$ac_ext <<_ACEOF
34242 /* end confdefs.h. */
34243 $ac_includes_default
34244 #ifdef HAVE_SYS_SOCKET_H
34245 #include <sys/socket.h>
34251 if ((socklen_t *) 0)
34253 if (sizeof (socklen_t))
34259 rm -f conftest.$ac_objext
34260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34261 (eval $ac_compile) 2>conftest.er1
34263 grep -v '^ *+' conftest.er1 >conftest.err
34265 cat conftest.err >&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } &&
34268 { ac_try='test -z "$ac_c_werror_flag"
34269 || test ! -s conftest.err'
34270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271 (eval $ac_try) 2>&5
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); }; } &&
34275 { ac_try='test -s conftest.$ac_objext'
34276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277 (eval $ac_try) 2>&5
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); }; }; then
34281 ac_cv_type_socklen_t=yes
34283 echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34286 ac_cv_type_socklen_t=no
34288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34290 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34291 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34294 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
34295 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
34296 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34300 set socklen_t int unsigned "unsigned long" long size_t
34301 test "$ac_cv_type_socklen_t" = yes || shift
34302 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
34303 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
34304 cat >conftest.$ac_ext <<_ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 $ac_includes_default
34311 #ifdef HAVE_SYS_SOCKET_H
34312 #include <sys/socket.h>
34314 extern int accept(int s, $addrtype *ap, $lentype *lp);
34320 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
34326 rm -f conftest.$ac_objext
34327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34328 (eval $ac_compile) 2>conftest.er1
34330 grep -v '^ *+' conftest.er1 >conftest.err
34332 cat conftest.err >&5
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); } &&
34335 { ac_try='test -z "$ac_c_werror_flag"
34336 || test ! -s conftest.err'
34337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34338 (eval $ac_try) 2>&5
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); }; } &&
34342 { ac_try='test -s conftest.$ac_objext'
34343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34344 (eval $ac_try) 2>&5
34346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347 (exit $ac_status); }; }; then
34348 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
34350 echo "$as_me: failed program was:" >&5
34351 sed 's/^/| /' conftest.$ac_ext >&5
34354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34358 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
34359 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
34361 cat >>confdefs.h <<_ACEOF
34362 #define ber_socklen_t $ol_cv_type_ber_socklen_t
34366 if test "$ac_cv_type_socklen_t" != yes; then
34368 cat >>confdefs.h <<_ACEOF
34369 #define socklen_t $ol_cv_type_ber_socklen_t
34375 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34376 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34377 if test "${ac_cv_type_signal+set}" = set; then
34378 echo $ECHO_N "(cached) $ECHO_C" >&6
34380 cat >conftest.$ac_ext <<_ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h. */
34386 #include <sys/types.h>
34387 #include <signal.h>
34392 extern "C" void (*signal (int, void (*)(int)))(int);
34394 void (*signal ()) ();
34405 rm -f conftest.$ac_objext
34406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34407 (eval $ac_compile) 2>conftest.er1
34409 grep -v '^ *+' conftest.er1 >conftest.err
34411 cat conftest.err >&5
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); } &&
34414 { ac_try='test -z "$ac_c_werror_flag"
34415 || test ! -s conftest.err'
34416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34417 (eval $ac_try) 2>&5
34419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420 (exit $ac_status); }; } &&
34421 { ac_try='test -s conftest.$ac_objext'
34422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34423 (eval $ac_try) 2>&5
34425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426 (exit $ac_status); }; }; then
34427 ac_cv_type_signal=void
34429 echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34432 ac_cv_type_signal=int
34434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34436 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34437 echo "${ECHO_T}$ac_cv_type_signal" >&6
34439 cat >>confdefs.h <<_ACEOF
34440 #define RETSIGTYPE $ac_cv_type_signal
34445 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34446 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34447 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34448 echo $ECHO_N "(cached) $ECHO_C" >&6
34450 cat >conftest.$ac_ext <<_ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34456 $ac_includes_default
34457 #include <signal.h>
34463 if ((sig_atomic_t *) 0)
34465 if (sizeof (sig_atomic_t))
34471 rm -f conftest.$ac_objext
34472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34473 (eval $ac_compile) 2>conftest.er1
34475 grep -v '^ *+' conftest.er1 >conftest.err
34477 cat conftest.err >&5
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); } &&
34480 { ac_try='test -z "$ac_c_werror_flag"
34481 || test ! -s conftest.err'
34482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483 (eval $ac_try) 2>&5
34485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486 (exit $ac_status); }; } &&
34487 { ac_try='test -s conftest.$ac_objext'
34488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34489 (eval $ac_try) 2>&5
34491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492 (exit $ac_status); }; }; then
34493 ac_cv_type_sig_atomic_t=yes
34495 echo "$as_me: failed program was:" >&5
34496 sed 's/^/| /' conftest.$ac_ext >&5
34498 ac_cv_type_sig_atomic_t=no
34500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34502 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34503 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34504 if test $ac_cv_type_sig_atomic_t = yes; then
34508 cat >>confdefs.h <<_ACEOF
34509 #define sig_atomic_t int
34515 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34516 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34517 if test "${ac_cv_type_uid_t+set}" = set; then
34518 echo $ECHO_N "(cached) $ECHO_C" >&6
34520 cat >conftest.$ac_ext <<_ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h. */
34526 #include <sys/types.h>
34529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34530 $EGREP "uid_t" >/dev/null 2>&1; then
34531 ac_cv_type_uid_t=yes
34533 ac_cv_type_uid_t=no
34538 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34539 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34540 if test $ac_cv_type_uid_t = no; then
34542 cat >>confdefs.h <<\_ACEOF
34547 cat >>confdefs.h <<\_ACEOF
34554 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34555 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34556 if test "${ac_cv_header_time+set}" = set; then
34557 echo $ECHO_N "(cached) $ECHO_C" >&6
34559 cat >conftest.$ac_ext <<_ACEOF
34562 cat confdefs.h >>conftest.$ac_ext
34563 cat >>conftest.$ac_ext <<_ACEOF
34564 /* end confdefs.h. */
34565 #include <sys/types.h>
34566 #include <sys/time.h>
34572 if ((struct tm *) 0)
34578 rm -f conftest.$ac_objext
34579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34580 (eval $ac_compile) 2>conftest.er1
34582 grep -v '^ *+' conftest.er1 >conftest.err
34584 cat conftest.err >&5
34585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586 (exit $ac_status); } &&
34587 { ac_try='test -z "$ac_c_werror_flag"
34588 || test ! -s conftest.err'
34589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590 (eval $ac_try) 2>&5
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); }; } &&
34594 { ac_try='test -s conftest.$ac_objext'
34595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596 (eval $ac_try) 2>&5
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); }; }; then
34600 ac_cv_header_time=yes
34602 echo "$as_me: failed program was:" >&5
34603 sed 's/^/| /' conftest.$ac_ext >&5
34605 ac_cv_header_time=no
34607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34609 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34610 echo "${ECHO_T}$ac_cv_header_time" >&6
34611 if test $ac_cv_header_time = yes; then
34613 cat >>confdefs.h <<\_ACEOF
34614 #define TIME_WITH_SYS_TIME 1
34619 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34620 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34621 if test "${ac_cv_struct_tm+set}" = set; then
34622 echo $ECHO_N "(cached) $ECHO_C" >&6
34624 cat >conftest.$ac_ext <<_ACEOF
34627 cat confdefs.h >>conftest.$ac_ext
34628 cat >>conftest.$ac_ext <<_ACEOF
34629 /* end confdefs.h. */
34630 #include <sys/types.h>
34636 struct tm *tp; tp->tm_sec;
34641 rm -f conftest.$ac_objext
34642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34643 (eval $ac_compile) 2>conftest.er1
34645 grep -v '^ *+' conftest.er1 >conftest.err
34647 cat conftest.err >&5
34648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649 (exit $ac_status); } &&
34650 { ac_try='test -z "$ac_c_werror_flag"
34651 || test ! -s conftest.err'
34652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34653 (eval $ac_try) 2>&5
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); }; } &&
34657 { ac_try='test -s conftest.$ac_objext'
34658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659 (eval $ac_try) 2>&5
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); }; }; then
34663 ac_cv_struct_tm=time.h
34665 echo "$as_me: failed program was:" >&5
34666 sed 's/^/| /' conftest.$ac_ext >&5
34668 ac_cv_struct_tm=sys/time.h
34670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34672 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34673 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34674 if test $ac_cv_struct_tm = sys/time.h; then
34676 cat >>confdefs.h <<\_ACEOF
34677 #define TM_IN_SYS_TIME 1
34682 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34683 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34684 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34685 echo $ECHO_N "(cached) $ECHO_C" >&6
34687 cat >conftest.$ac_ext <<_ACEOF
34690 cat confdefs.h >>conftest.$ac_ext
34691 cat >>conftest.$ac_ext <<_ACEOF
34692 /* end confdefs.h. */
34693 $ac_includes_default
34697 static struct stat ac_aggr;
34698 if (ac_aggr.st_blksize)
34704 rm -f conftest.$ac_objext
34705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34706 (eval $ac_compile) 2>conftest.er1
34708 grep -v '^ *+' conftest.er1 >conftest.err
34710 cat conftest.err >&5
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); } &&
34713 { ac_try='test -z "$ac_c_werror_flag"
34714 || test ! -s conftest.err'
34715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716 (eval $ac_try) 2>&5
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); }; } &&
34720 { ac_try='test -s conftest.$ac_objext'
34721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34722 (eval $ac_try) 2>&5
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); }; }; then
34726 ac_cv_member_struct_stat_st_blksize=yes
34728 echo "$as_me: failed program was:" >&5
34729 sed 's/^/| /' conftest.$ac_ext >&5
34731 cat >conftest.$ac_ext <<_ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h. */
34737 $ac_includes_default
34741 static struct stat ac_aggr;
34742 if (sizeof ac_aggr.st_blksize)
34748 rm -f conftest.$ac_objext
34749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34750 (eval $ac_compile) 2>conftest.er1
34752 grep -v '^ *+' conftest.er1 >conftest.err
34754 cat conftest.err >&5
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); } &&
34757 { ac_try='test -z "$ac_c_werror_flag"
34758 || test ! -s conftest.err'
34759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760 (eval $ac_try) 2>&5
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; } &&
34764 { ac_try='test -s conftest.$ac_objext'
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766 (eval $ac_try) 2>&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; }; then
34770 ac_cv_member_struct_stat_st_blksize=yes
34772 echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34775 ac_cv_member_struct_stat_st_blksize=no
34777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34782 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34783 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34785 cat >>confdefs.h <<_ACEOF
34786 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34792 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34793 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34794 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34797 cat >conftest.$ac_ext <<_ACEOF
34800 cat confdefs.h >>conftest.$ac_ext
34801 cat >>conftest.$ac_ext <<_ACEOF
34802 /* end confdefs.h. */
34803 $ac_includes_default
34809 static struct passwd ac_aggr;
34810 if (ac_aggr.pw_gecos)
34816 rm -f conftest.$ac_objext
34817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34818 (eval $ac_compile) 2>conftest.er1
34820 grep -v '^ *+' conftest.er1 >conftest.err
34822 cat conftest.err >&5
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); } &&
34825 { ac_try='test -z "$ac_c_werror_flag"
34826 || test ! -s conftest.err'
34827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34828 (eval $ac_try) 2>&5
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); }; } &&
34832 { ac_try='test -s conftest.$ac_objext'
34833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34834 (eval $ac_try) 2>&5
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; }; then
34838 ac_cv_member_struct_passwd_pw_gecos=yes
34840 echo "$as_me: failed program was:" >&5
34841 sed 's/^/| /' conftest.$ac_ext >&5
34843 cat >conftest.$ac_ext <<_ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h. */
34849 $ac_includes_default
34855 static struct passwd ac_aggr;
34856 if (sizeof ac_aggr.pw_gecos)
34862 rm -f conftest.$ac_objext
34863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34864 (eval $ac_compile) 2>conftest.er1
34866 grep -v '^ *+' conftest.er1 >conftest.err
34868 cat conftest.err >&5
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); } &&
34871 { ac_try='test -z "$ac_c_werror_flag"
34872 || test ! -s conftest.err'
34873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874 (eval $ac_try) 2>&5
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; } &&
34878 { ac_try='test -s conftest.$ac_objext'
34879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880 (eval $ac_try) 2>&5
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); }; }; then
34884 ac_cv_member_struct_passwd_pw_gecos=yes
34886 echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34889 ac_cv_member_struct_passwd_pw_gecos=no
34891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34896 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34897 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34899 cat >>confdefs.h <<_ACEOF
34900 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34906 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34907 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34908 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34909 echo $ECHO_N "(cached) $ECHO_C" >&6
34911 cat >conftest.$ac_ext <<_ACEOF
34914 cat confdefs.h >>conftest.$ac_ext
34915 cat >>conftest.$ac_ext <<_ACEOF
34916 /* end confdefs.h. */
34917 $ac_includes_default
34923 static struct passwd ac_aggr;
34924 if (ac_aggr.pw_passwd)
34930 rm -f conftest.$ac_objext
34931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34932 (eval $ac_compile) 2>conftest.er1
34934 grep -v '^ *+' conftest.er1 >conftest.err
34936 cat conftest.err >&5
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); } &&
34939 { ac_try='test -z "$ac_c_werror_flag"
34940 || test ! -s conftest.err'
34941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34942 (eval $ac_try) 2>&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); }; } &&
34946 { ac_try='test -s conftest.$ac_objext'
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; }; then
34952 ac_cv_member_struct_passwd_pw_passwd=yes
34954 echo "$as_me: failed program was:" >&5
34955 sed 's/^/| /' conftest.$ac_ext >&5
34957 cat >conftest.$ac_ext <<_ACEOF
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h. */
34963 $ac_includes_default
34969 static struct passwd ac_aggr;
34970 if (sizeof ac_aggr.pw_passwd)
34976 rm -f conftest.$ac_objext
34977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34978 (eval $ac_compile) 2>conftest.er1
34980 grep -v '^ *+' conftest.er1 >conftest.err
34982 cat conftest.err >&5
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); } &&
34985 { ac_try='test -z "$ac_c_werror_flag"
34986 || test ! -s conftest.err'
34987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34988 (eval $ac_try) 2>&5
34990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991 (exit $ac_status); }; } &&
34992 { ac_try='test -s conftest.$ac_objext'
34993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994 (eval $ac_try) 2>&5
34996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997 (exit $ac_status); }; }; then
34998 ac_cv_member_struct_passwd_pw_passwd=yes
35000 echo "$as_me: failed program was:" >&5
35001 sed 's/^/| /' conftest.$ac_ext >&5
35003 ac_cv_member_struct_passwd_pw_passwd=no
35005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35009 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35010 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35011 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35013 cat >>confdefs.h <<_ACEOF
35014 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35021 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35022 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35023 if test "${ol_cv_c_upper_lower+set}" = set; then
35024 echo $ECHO_N "(cached) $ECHO_C" >&6
35027 if test "$cross_compiling" = yes; then
35028 ol_cv_c_upper_lower=safe
35030 cat >conftest.$ac_ext <<_ACEOF
35033 cat confdefs.h >>conftest.$ac_ext
35034 cat >>conftest.$ac_ext <<_ACEOF
35035 /* end confdefs.h. */
35040 if ('C' == toupper('C'))
35046 rm -f conftest$ac_exeext
35047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35048 (eval $ac_link) 2>&5
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35053 (eval $ac_try) 2>&5
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); }; }; then
35057 ol_cv_c_upper_lower=no
35059 echo "$as_me: program exited with status $ac_status" >&5
35060 echo "$as_me: failed program was:" >&5
35061 sed 's/^/| /' conftest.$ac_ext >&5
35063 ( exit $ac_status )
35064 ol_cv_c_upper_lower=yes
35066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35069 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35070 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35071 if test $ol_cv_c_upper_lower != no ; then
35073 cat >>confdefs.h <<\_ACEOF
35074 #define C_UPPER_LOWER 1
35079 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35080 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35081 if test "${ac_cv_c_const+set}" = set; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35084 cat >conftest.$ac_ext <<_ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h. */
35094 /* FIXME: Include the comments suggested by Paul. */
35095 #ifndef __cplusplus
35096 /* Ultrix mips cc rejects this. */
35097 typedef int charset[2];
35099 /* SunOS 4.1.1 cc rejects this. */
35100 char const *const *ccp;
35102 /* NEC SVR4.0.2 mips cc rejects this. */
35103 struct point {int x, y;};
35104 static struct point const zero = {0,0};
35105 /* AIX XL C 1.02.0.0 rejects this.
35106 It does not let you subtract one const X* pointer from another in
35107 an arm of an if-expression whose if-part is not a constant
35109 const char *g = "string";
35110 ccp = &g + (g ? g-g : 0);
35111 /* HPUX 7.0 cc rejects these. */
35114 ccp = (char const *const *) p;
35115 { /* SCO 3.2v4 cc rejects this. */
35117 char const *s = 0 ? (char *) 0 : (char const *) 0;
35121 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
35122 int x[] = {25, 17};
35123 const int *foo = &x[0];
35126 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35127 typedef const int *iptr;
35131 { /* AIX XL C 1.02.0.0 rejects this saying
35132 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35133 struct s { int j; const int *ap[3]; };
35134 struct s *b; b->j = 5;
35136 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35137 const int foo = 10;
35145 rm -f conftest.$ac_objext
35146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35147 (eval $ac_compile) 2>conftest.er1
35149 grep -v '^ *+' conftest.er1 >conftest.err
35151 cat conftest.err >&5
35152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153 (exit $ac_status); } &&
35154 { ac_try='test -z "$ac_c_werror_flag"
35155 || test ! -s conftest.err'
35156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35157 (eval $ac_try) 2>&5
35159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 (exit $ac_status); }; } &&
35161 { ac_try='test -s conftest.$ac_objext'
35162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35163 (eval $ac_try) 2>&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); }; }; then
35169 echo "$as_me: failed program was:" >&5
35170 sed 's/^/| /' conftest.$ac_ext >&5
35174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35176 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35177 echo "${ECHO_T}$ac_cv_c_const" >&6
35178 if test $ac_cv_c_const = no; then
35180 cat >>confdefs.h <<\_ACEOF
35186 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35187 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35188 if test "${ol_cv_c_volatile+set}" = set; then
35189 echo $ECHO_N "(cached) $ECHO_C" >&6
35191 cat >conftest.$ac_ext <<_ACEOF
35194 cat confdefs.h >>conftest.$ac_ext
35195 cat >>conftest.$ac_ext <<_ACEOF
35196 /* end confdefs.h. */
35201 volatile int a; int * volatile b = x ? &y : &z;
35202 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35208 rm -f conftest.$ac_objext
35209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35210 (eval $ac_compile) 2>conftest.er1
35212 grep -v '^ *+' conftest.er1 >conftest.err
35214 cat conftest.err >&5
35215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); } &&
35217 { ac_try='test -z "$ac_c_werror_flag"
35218 || test ! -s conftest.err'
35219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35220 (eval $ac_try) 2>&5
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); }; } &&
35224 { ac_try='test -s conftest.$ac_objext'
35225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35226 (eval $ac_try) 2>&5
35228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229 (exit $ac_status); }; }; then
35230 ol_cv_c_volatile=yes
35232 echo "$as_me: failed program was:" >&5
35233 sed 's/^/| /' conftest.$ac_ext >&5
35235 ol_cv_c_volatile=no
35237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35239 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35240 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35241 if test $ol_cv_c_volatile = yes; then
35245 cat >>confdefs.h <<\_ACEOF
35252 if test $cross_compiling = yes ; then
35253 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35254 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35256 cat >>confdefs.h <<\_ACEOF
35257 #define CROSS_COMPILING 1
35261 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35262 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35263 if test "${ac_cv_c_bigendian+set}" = set; then
35264 echo $ECHO_N "(cached) $ECHO_C" >&6
35266 # See if sys/param.h defines the BYTE_ORDER macro.
35267 cat >conftest.$ac_ext <<_ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h. */
35273 #include <sys/types.h>
35274 #include <sys/param.h>
35279 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35280 bogus endian macros
35287 rm -f conftest.$ac_objext
35288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35289 (eval $ac_compile) 2>conftest.er1
35291 grep -v '^ *+' conftest.er1 >conftest.err
35293 cat conftest.err >&5
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); } &&
35296 { ac_try='test -z "$ac_c_werror_flag"
35297 || test ! -s conftest.err'
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; } &&
35303 { ac_try='test -s conftest.$ac_objext'
35304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305 (eval $ac_try) 2>&5
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); }; }; then
35309 # It does; now see whether it defined to BIG_ENDIAN or not.
35310 cat >conftest.$ac_ext <<_ACEOF
35313 cat confdefs.h >>conftest.$ac_ext
35314 cat >>conftest.$ac_ext <<_ACEOF
35315 /* end confdefs.h. */
35316 #include <sys/types.h>
35317 #include <sys/param.h>
35322 #if BYTE_ORDER != BIG_ENDIAN
35330 rm -f conftest.$ac_objext
35331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35332 (eval $ac_compile) 2>conftest.er1
35334 grep -v '^ *+' conftest.er1 >conftest.err
35336 cat conftest.err >&5
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); } &&
35339 { ac_try='test -z "$ac_c_werror_flag"
35340 || test ! -s conftest.err'
35341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35342 (eval $ac_try) 2>&5
35344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345 (exit $ac_status); }; } &&
35346 { ac_try='test -s conftest.$ac_objext'
35347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35348 (eval $ac_try) 2>&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); }; }; then
35352 ac_cv_c_bigendian=yes
35354 echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35357 ac_cv_c_bigendian=no
35359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35361 echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35364 # It does not; compile a test program.
35365 if test "$cross_compiling" = yes; then
35366 # try to guess the endianness by grepping values into an object file
35367 ac_cv_c_bigendian=unknown
35368 cat >conftest.$ac_ext <<_ACEOF
35371 cat confdefs.h >>conftest.$ac_ext
35372 cat >>conftest.$ac_ext <<_ACEOF
35373 /* end confdefs.h. */
35374 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35375 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35376 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35377 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35378 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35379 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35383 _ascii (); _ebcdic ();
35388 rm -f conftest.$ac_objext
35389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35390 (eval $ac_compile) 2>conftest.er1
35392 grep -v '^ *+' conftest.er1 >conftest.err
35394 cat conftest.err >&5
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); } &&
35397 { ac_try='test -z "$ac_c_werror_flag"
35398 || test ! -s conftest.err'
35399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35400 (eval $ac_try) 2>&5
35402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); }; } &&
35404 { ac_try='test -s conftest.$ac_objext'
35405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35406 (eval $ac_try) 2>&5
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); }; }; then
35410 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35411 ac_cv_c_bigendian=yes
35413 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35414 if test "$ac_cv_c_bigendian" = unknown; then
35415 ac_cv_c_bigendian=no
35417 # finding both strings is unlikely to happen, but who knows?
35418 ac_cv_c_bigendian=unknown
35422 echo "$as_me: failed program was:" >&5
35423 sed 's/^/| /' conftest.$ac_ext >&5
35426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35428 cat >conftest.$ac_ext <<_ACEOF
35431 cat confdefs.h >>conftest.$ac_ext
35432 cat >>conftest.$ac_ext <<_ACEOF
35433 /* end confdefs.h. */
35437 /* Are we little or big endian? From Harbison&Steele. */
35441 char c[sizeof (long)];
35444 exit (u.c[sizeof (long) - 1] == 1);
35447 rm -f conftest$ac_exeext
35448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35449 (eval $ac_link) 2>&5
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454 (eval $ac_try) 2>&5
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); }; }; then
35458 ac_cv_c_bigendian=no
35460 echo "$as_me: program exited with status $ac_status" >&5
35461 echo "$as_me: failed program was:" >&5
35462 sed 's/^/| /' conftest.$ac_ext >&5
35464 ( exit $ac_status )
35465 ac_cv_c_bigendian=yes
35467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35472 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35473 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35474 case $ac_cv_c_bigendian in
35477 cat >>confdefs.h <<\_ACEOF
35478 #define WORDS_BIGENDIAN 1
35484 { { echo "$as_me:$LINENO: error: unknown endianness
35485 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35486 echo "$as_me: error: unknown endianness
35487 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35488 { (exit 1); exit 1; }; } ;;
35493 echo "$as_me:$LINENO: checking for short" >&5
35494 echo $ECHO_N "checking for short... $ECHO_C" >&6
35495 if test "${ac_cv_type_short+set}" = set; then
35496 echo $ECHO_N "(cached) $ECHO_C" >&6
35498 cat >conftest.$ac_ext <<_ACEOF
35501 cat confdefs.h >>conftest.$ac_ext
35502 cat >>conftest.$ac_ext <<_ACEOF
35503 /* end confdefs.h. */
35504 $ac_includes_default
35510 if (sizeof (short))
35516 rm -f conftest.$ac_objext
35517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35518 (eval $ac_compile) 2>conftest.er1
35520 grep -v '^ *+' conftest.er1 >conftest.err
35522 cat conftest.err >&5
35523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35524 (exit $ac_status); } &&
35525 { ac_try='test -z "$ac_c_werror_flag"
35526 || test ! -s conftest.err'
35527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35528 (eval $ac_try) 2>&5
35530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531 (exit $ac_status); }; } &&
35532 { ac_try='test -s conftest.$ac_objext'
35533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35534 (eval $ac_try) 2>&5
35536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537 (exit $ac_status); }; }; then
35538 ac_cv_type_short=yes
35540 echo "$as_me: failed program was:" >&5
35541 sed 's/^/| /' conftest.$ac_ext >&5
35543 ac_cv_type_short=no
35545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35547 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35548 echo "${ECHO_T}$ac_cv_type_short" >&6
35550 echo "$as_me:$LINENO: checking size of short" >&5
35551 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35552 if test "${ac_cv_sizeof_short+set}" = set; then
35553 echo $ECHO_N "(cached) $ECHO_C" >&6
35555 if test "$ac_cv_type_short" = yes; then
35556 # The cast to unsigned long works around a bug in the HP C Compiler
35557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35559 # This bug is HP SR number 8606223364.
35560 if test "$cross_compiling" = yes; then
35561 # Depending upon the size, compute the lo and hi bounds.
35562 cat >conftest.$ac_ext <<_ACEOF
35565 cat confdefs.h >>conftest.$ac_ext
35566 cat >>conftest.$ac_ext <<_ACEOF
35567 /* end confdefs.h. */
35568 $ac_includes_default
35572 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35579 rm -f conftest.$ac_objext
35580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35581 (eval $ac_compile) 2>conftest.er1
35583 grep -v '^ *+' conftest.er1 >conftest.err
35585 cat conftest.err >&5
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); } &&
35588 { ac_try='test -z "$ac_c_werror_flag"
35589 || test ! -s conftest.err'
35590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35591 (eval $ac_try) 2>&5
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); }; } &&
35595 { ac_try='test -s conftest.$ac_objext'
35596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35597 (eval $ac_try) 2>&5
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); }; }; then
35603 cat >conftest.$ac_ext <<_ACEOF
35606 cat confdefs.h >>conftest.$ac_ext
35607 cat >>conftest.$ac_ext <<_ACEOF
35608 /* end confdefs.h. */
35609 $ac_includes_default
35613 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35620 rm -f conftest.$ac_objext
35621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35622 (eval $ac_compile) 2>conftest.er1
35624 grep -v '^ *+' conftest.er1 >conftest.err
35626 cat conftest.err >&5
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); } &&
35629 { ac_try='test -z "$ac_c_werror_flag"
35630 || test ! -s conftest.err'
35631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632 (eval $ac_try) 2>&5
35634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635 (exit $ac_status); }; } &&
35636 { ac_try='test -s conftest.$ac_objext'
35637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35638 (eval $ac_try) 2>&5
35640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641 (exit $ac_status); }; }; then
35642 ac_hi=$ac_mid; break
35644 echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35647 ac_lo=`expr $ac_mid + 1`
35648 if test $ac_lo -le $ac_mid; then
35652 ac_mid=`expr 2 '*' $ac_mid + 1`
35654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35657 echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35660 cat >conftest.$ac_ext <<_ACEOF
35663 cat confdefs.h >>conftest.$ac_ext
35664 cat >>conftest.$ac_ext <<_ACEOF
35665 /* end confdefs.h. */
35666 $ac_includes_default
35670 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35677 rm -f conftest.$ac_objext
35678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35679 (eval $ac_compile) 2>conftest.er1
35681 grep -v '^ *+' conftest.er1 >conftest.err
35683 cat conftest.err >&5
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); } &&
35686 { ac_try='test -z "$ac_c_werror_flag"
35687 || test ! -s conftest.err'
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; } &&
35693 { ac_try='test -s conftest.$ac_objext'
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; }; then
35701 cat >conftest.$ac_ext <<_ACEOF
35704 cat confdefs.h >>conftest.$ac_ext
35705 cat >>conftest.$ac_ext <<_ACEOF
35706 /* end confdefs.h. */
35707 $ac_includes_default
35711 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35718 rm -f conftest.$ac_objext
35719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35720 (eval $ac_compile) 2>conftest.er1
35722 grep -v '^ *+' conftest.er1 >conftest.err
35724 cat conftest.err >&5
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); } &&
35727 { ac_try='test -z "$ac_c_werror_flag"
35728 || test ! -s conftest.err'
35729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35730 (eval $ac_try) 2>&5
35732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733 (exit $ac_status); }; } &&
35734 { ac_try='test -s conftest.$ac_objext'
35735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35736 (eval $ac_try) 2>&5
35738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739 (exit $ac_status); }; }; then
35740 ac_lo=$ac_mid; break
35742 echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.$ac_ext >&5
35745 ac_hi=`expr '(' $ac_mid ')' - 1`
35746 if test $ac_mid -le $ac_hi; then
35750 ac_mid=`expr 2 '*' $ac_mid`
35752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35755 echo "$as_me: failed program was:" >&5
35756 sed 's/^/| /' conftest.$ac_ext >&5
35760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35763 # Binary search between lo and hi bounds.
35764 while test "x$ac_lo" != "x$ac_hi"; do
35765 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35766 cat >conftest.$ac_ext <<_ACEOF
35769 cat confdefs.h >>conftest.$ac_ext
35770 cat >>conftest.$ac_ext <<_ACEOF
35771 /* end confdefs.h. */
35772 $ac_includes_default
35776 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35783 rm -f conftest.$ac_objext
35784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35785 (eval $ac_compile) 2>conftest.er1
35787 grep -v '^ *+' conftest.er1 >conftest.err
35789 cat conftest.err >&5
35790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791 (exit $ac_status); } &&
35792 { ac_try='test -z "$ac_c_werror_flag"
35793 || test ! -s conftest.err'
35794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35795 (eval $ac_try) 2>&5
35797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35798 (exit $ac_status); }; } &&
35799 { ac_try='test -s conftest.$ac_objext'
35800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35801 (eval $ac_try) 2>&5
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); }; }; then
35807 echo "$as_me: failed program was:" >&5
35808 sed 's/^/| /' conftest.$ac_ext >&5
35810 ac_lo=`expr '(' $ac_mid ')' + 1`
35812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35815 ?*) ac_cv_sizeof_short=$ac_lo;;
35816 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35817 See \`config.log' for more details." >&5
35818 echo "$as_me: error: cannot compute sizeof (short), 77
35819 See \`config.log' for more details." >&2;}
35820 { (exit 1); exit 1; }; } ;;
35823 if test "$cross_compiling" = yes; then
35824 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35825 See \`config.log' for more details." >&5
35826 echo "$as_me: error: cannot run test program while cross compiling
35827 See \`config.log' for more details." >&2;}
35828 { (exit 1); exit 1; }; }
35830 cat >conftest.$ac_ext <<_ACEOF
35833 cat confdefs.h >>conftest.$ac_ext
35834 cat >>conftest.$ac_ext <<_ACEOF
35835 /* end confdefs.h. */
35836 $ac_includes_default
35837 long longval () { return (long) (sizeof (short)); }
35838 unsigned long ulongval () { return (long) (sizeof (short)); }
35840 #include <stdlib.h>
35845 FILE *f = fopen ("conftest.val", "w");
35848 if (((long) (sizeof (short))) < 0)
35850 long i = longval ();
35851 if (i != ((long) (sizeof (short))))
35853 fprintf (f, "%ld\n", i);
35857 unsigned long i = ulongval ();
35858 if (i != ((long) (sizeof (short))))
35860 fprintf (f, "%lu\n", i);
35862 exit (ferror (f) || fclose (f) != 0);
35868 rm -f conftest$ac_exeext
35869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35870 (eval $ac_link) 2>&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875 (eval $ac_try) 2>&5
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); }; }; then
35879 ac_cv_sizeof_short=`cat conftest.val`
35881 echo "$as_me: program exited with status $ac_status" >&5
35882 echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35885 ( exit $ac_status )
35886 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35887 See \`config.log' for more details." >&5
35888 echo "$as_me: error: cannot compute sizeof (short), 77
35889 See \`config.log' for more details." >&2;}
35890 { (exit 1); exit 1; }; }
35892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35897 ac_cv_sizeof_short=0
35900 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35901 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35902 cat >>confdefs.h <<_ACEOF
35903 #define SIZEOF_SHORT $ac_cv_sizeof_short
35907 echo "$as_me:$LINENO: checking for int" >&5
35908 echo $ECHO_N "checking for int... $ECHO_C" >&6
35909 if test "${ac_cv_type_int+set}" = set; then
35910 echo $ECHO_N "(cached) $ECHO_C" >&6
35912 cat >conftest.$ac_ext <<_ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h. */
35918 $ac_includes_default
35930 rm -f conftest.$ac_objext
35931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35932 (eval $ac_compile) 2>conftest.er1
35934 grep -v '^ *+' conftest.er1 >conftest.err
35936 cat conftest.err >&5
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); } &&
35939 { ac_try='test -z "$ac_c_werror_flag"
35940 || test ! -s conftest.err'
35941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942 (eval $ac_try) 2>&5
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); }; } &&
35946 { ac_try='test -s conftest.$ac_objext'
35947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948 (eval $ac_try) 2>&5
35950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951 (exit $ac_status); }; }; then
35954 echo "$as_me: failed program was:" >&5
35955 sed 's/^/| /' conftest.$ac_ext >&5
35959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35961 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35962 echo "${ECHO_T}$ac_cv_type_int" >&6
35964 echo "$as_me:$LINENO: checking size of int" >&5
35965 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35966 if test "${ac_cv_sizeof_int+set}" = set; then
35967 echo $ECHO_N "(cached) $ECHO_C" >&6
35969 if test "$ac_cv_type_int" = yes; then
35970 # The cast to unsigned long works around a bug in the HP C Compiler
35971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35973 # This bug is HP SR number 8606223364.
35974 if test "$cross_compiling" = yes; then
35975 # Depending upon the size, compute the lo and hi bounds.
35976 cat >conftest.$ac_ext <<_ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h. */
35982 $ac_includes_default
35986 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35993 rm -f conftest.$ac_objext
35994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35995 (eval $ac_compile) 2>conftest.er1
35997 grep -v '^ *+' conftest.er1 >conftest.err
35999 cat conftest.err >&5
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); } &&
36002 { ac_try='test -z "$ac_c_werror_flag"
36003 || test ! -s conftest.err'
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; } &&
36009 { ac_try='test -s conftest.$ac_objext'
36010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011 (eval $ac_try) 2>&5
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); }; }; then
36017 cat >conftest.$ac_ext <<_ACEOF
36020 cat confdefs.h >>conftest.$ac_ext
36021 cat >>conftest.$ac_ext <<_ACEOF
36022 /* end confdefs.h. */
36023 $ac_includes_default
36027 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36034 rm -f conftest.$ac_objext
36035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36036 (eval $ac_compile) 2>conftest.er1
36038 grep -v '^ *+' conftest.er1 >conftest.err
36040 cat conftest.err >&5
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); } &&
36043 { ac_try='test -z "$ac_c_werror_flag"
36044 || test ! -s conftest.err'
36045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36046 (eval $ac_try) 2>&5
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); }; } &&
36050 { ac_try='test -s conftest.$ac_objext'
36051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052 (eval $ac_try) 2>&5
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); }; }; then
36056 ac_hi=$ac_mid; break
36058 echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36061 ac_lo=`expr $ac_mid + 1`
36062 if test $ac_lo -le $ac_mid; then
36066 ac_mid=`expr 2 '*' $ac_mid + 1`
36068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36071 echo "$as_me: failed program was:" >&5
36072 sed 's/^/| /' conftest.$ac_ext >&5
36074 cat >conftest.$ac_ext <<_ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h. */
36080 $ac_includes_default
36084 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36091 rm -f conftest.$ac_objext
36092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36093 (eval $ac_compile) 2>conftest.er1
36095 grep -v '^ *+' conftest.er1 >conftest.err
36097 cat conftest.err >&5
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); } &&
36100 { ac_try='test -z "$ac_c_werror_flag"
36101 || test ! -s conftest.err'
36102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36103 (eval $ac_try) 2>&5
36105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106 (exit $ac_status); }; } &&
36107 { ac_try='test -s conftest.$ac_objext'
36108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36109 (eval $ac_try) 2>&5
36111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112 (exit $ac_status); }; }; then
36115 cat >conftest.$ac_ext <<_ACEOF
36118 cat confdefs.h >>conftest.$ac_ext
36119 cat >>conftest.$ac_ext <<_ACEOF
36120 /* end confdefs.h. */
36121 $ac_includes_default
36125 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36132 rm -f conftest.$ac_objext
36133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36134 (eval $ac_compile) 2>conftest.er1
36136 grep -v '^ *+' conftest.er1 >conftest.err
36138 cat conftest.err >&5
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); } &&
36141 { ac_try='test -z "$ac_c_werror_flag"
36142 || test ! -s conftest.err'
36143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144 (eval $ac_try) 2>&5
36146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147 (exit $ac_status); }; } &&
36148 { ac_try='test -s conftest.$ac_objext'
36149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150 (eval $ac_try) 2>&5
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); }; }; then
36154 ac_lo=$ac_mid; break
36156 echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36159 ac_hi=`expr '(' $ac_mid ')' - 1`
36160 if test $ac_mid -le $ac_hi; then
36164 ac_mid=`expr 2 '*' $ac_mid`
36166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36169 echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36177 # Binary search between lo and hi bounds.
36178 while test "x$ac_lo" != "x$ac_hi"; do
36179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36180 cat >conftest.$ac_ext <<_ACEOF
36183 cat confdefs.h >>conftest.$ac_ext
36184 cat >>conftest.$ac_ext <<_ACEOF
36185 /* end confdefs.h. */
36186 $ac_includes_default
36190 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36197 rm -f conftest.$ac_objext
36198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36199 (eval $ac_compile) 2>conftest.er1
36201 grep -v '^ *+' conftest.er1 >conftest.err
36203 cat conftest.err >&5
36204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); } &&
36206 { ac_try='test -z "$ac_c_werror_flag"
36207 || test ! -s conftest.err'
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; } &&
36213 { ac_try='test -s conftest.$ac_objext'
36214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215 (eval $ac_try) 2>&5
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; }; then
36221 echo "$as_me: failed program was:" >&5
36222 sed 's/^/| /' conftest.$ac_ext >&5
36224 ac_lo=`expr '(' $ac_mid ')' + 1`
36226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36229 ?*) ac_cv_sizeof_int=$ac_lo;;
36230 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36231 See \`config.log' for more details." >&5
36232 echo "$as_me: error: cannot compute sizeof (int), 77
36233 See \`config.log' for more details." >&2;}
36234 { (exit 1); exit 1; }; } ;;
36237 if test "$cross_compiling" = yes; then
36238 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36239 See \`config.log' for more details." >&5
36240 echo "$as_me: error: cannot run test program while cross compiling
36241 See \`config.log' for more details." >&2;}
36242 { (exit 1); exit 1; }; }
36244 cat >conftest.$ac_ext <<_ACEOF
36247 cat confdefs.h >>conftest.$ac_ext
36248 cat >>conftest.$ac_ext <<_ACEOF
36249 /* end confdefs.h. */
36250 $ac_includes_default
36251 long longval () { return (long) (sizeof (int)); }
36252 unsigned long ulongval () { return (long) (sizeof (int)); }
36254 #include <stdlib.h>
36259 FILE *f = fopen ("conftest.val", "w");
36262 if (((long) (sizeof (int))) < 0)
36264 long i = longval ();
36265 if (i != ((long) (sizeof (int))))
36267 fprintf (f, "%ld\n", i);
36271 unsigned long i = ulongval ();
36272 if (i != ((long) (sizeof (int))))
36274 fprintf (f, "%lu\n", i);
36276 exit (ferror (f) || fclose (f) != 0);
36282 rm -f conftest$ac_exeext
36283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36284 (eval $ac_link) 2>&5
36286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36289 (eval $ac_try) 2>&5
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); }; }; then
36293 ac_cv_sizeof_int=`cat conftest.val`
36295 echo "$as_me: program exited with status $ac_status" >&5
36296 echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36299 ( exit $ac_status )
36300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36301 See \`config.log' for more details." >&5
36302 echo "$as_me: error: cannot compute sizeof (int), 77
36303 See \`config.log' for more details." >&2;}
36304 { (exit 1); exit 1; }; }
36306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36314 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36315 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36316 cat >>confdefs.h <<_ACEOF
36317 #define SIZEOF_INT $ac_cv_sizeof_int
36321 echo "$as_me:$LINENO: checking for long" >&5
36322 echo $ECHO_N "checking for long... $ECHO_C" >&6
36323 if test "${ac_cv_type_long+set}" = set; then
36324 echo $ECHO_N "(cached) $ECHO_C" >&6
36326 cat >conftest.$ac_ext <<_ACEOF
36329 cat confdefs.h >>conftest.$ac_ext
36330 cat >>conftest.$ac_ext <<_ACEOF
36331 /* end confdefs.h. */
36332 $ac_includes_default
36344 rm -f conftest.$ac_objext
36345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36346 (eval $ac_compile) 2>conftest.er1
36348 grep -v '^ *+' conftest.er1 >conftest.err
36350 cat conftest.err >&5
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); } &&
36353 { ac_try='test -z "$ac_c_werror_flag"
36354 || test ! -s conftest.err'
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; } &&
36360 { ac_try='test -s conftest.$ac_objext'
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; }; then
36366 ac_cv_type_long=yes
36368 echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36375 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36376 echo "${ECHO_T}$ac_cv_type_long" >&6
36378 echo "$as_me:$LINENO: checking size of long" >&5
36379 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36380 if test "${ac_cv_sizeof_long+set}" = set; then
36381 echo $ECHO_N "(cached) $ECHO_C" >&6
36383 if test "$ac_cv_type_long" = yes; then
36384 # The cast to unsigned long works around a bug in the HP C Compiler
36385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36387 # This bug is HP SR number 8606223364.
36388 if test "$cross_compiling" = yes; then
36389 # Depending upon the size, compute the lo and hi bounds.
36390 cat >conftest.$ac_ext <<_ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h. */
36396 $ac_includes_default
36400 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36407 rm -f conftest.$ac_objext
36408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36409 (eval $ac_compile) 2>conftest.er1
36411 grep -v '^ *+' conftest.er1 >conftest.err
36413 cat conftest.err >&5
36414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); } &&
36416 { ac_try='test -z "$ac_c_werror_flag"
36417 || test ! -s conftest.err'
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; } &&
36423 { ac_try='test -s conftest.$ac_objext'
36424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425 (eval $ac_try) 2>&5
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); }; }; then
36431 cat >conftest.$ac_ext <<_ACEOF
36434 cat confdefs.h >>conftest.$ac_ext
36435 cat >>conftest.$ac_ext <<_ACEOF
36436 /* end confdefs.h. */
36437 $ac_includes_default
36441 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36448 rm -f conftest.$ac_objext
36449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36450 (eval $ac_compile) 2>conftest.er1
36452 grep -v '^ *+' conftest.er1 >conftest.err
36454 cat conftest.err >&5
36455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); } &&
36457 { ac_try='test -z "$ac_c_werror_flag"
36458 || test ! -s conftest.err'
36459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460 (eval $ac_try) 2>&5
36462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463 (exit $ac_status); }; } &&
36464 { ac_try='test -s conftest.$ac_objext'
36465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36466 (eval $ac_try) 2>&5
36468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469 (exit $ac_status); }; }; then
36470 ac_hi=$ac_mid; break
36472 echo "$as_me: failed program was:" >&5
36473 sed 's/^/| /' conftest.$ac_ext >&5
36475 ac_lo=`expr $ac_mid + 1`
36476 if test $ac_lo -le $ac_mid; then
36480 ac_mid=`expr 2 '*' $ac_mid + 1`
36482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36485 echo "$as_me: failed program was:" >&5
36486 sed 's/^/| /' conftest.$ac_ext >&5
36488 cat >conftest.$ac_ext <<_ACEOF
36491 cat confdefs.h >>conftest.$ac_ext
36492 cat >>conftest.$ac_ext <<_ACEOF
36493 /* end confdefs.h. */
36494 $ac_includes_default
36498 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36505 rm -f conftest.$ac_objext
36506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36507 (eval $ac_compile) 2>conftest.er1
36509 grep -v '^ *+' conftest.er1 >conftest.err
36511 cat conftest.err >&5
36512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513 (exit $ac_status); } &&
36514 { ac_try='test -z "$ac_c_werror_flag"
36515 || test ! -s conftest.err'
36516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517 (eval $ac_try) 2>&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); }; } &&
36521 { ac_try='test -s conftest.$ac_objext'
36522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36523 (eval $ac_try) 2>&5
36525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526 (exit $ac_status); }; }; then
36529 cat >conftest.$ac_ext <<_ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h. */
36535 $ac_includes_default
36539 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36546 rm -f conftest.$ac_objext
36547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36548 (eval $ac_compile) 2>conftest.er1
36550 grep -v '^ *+' conftest.er1 >conftest.err
36552 cat conftest.err >&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); } &&
36555 { ac_try='test -z "$ac_c_werror_flag"
36556 || test ! -s conftest.err'
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; } &&
36562 { ac_try='test -s conftest.$ac_objext'
36563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36564 (eval $ac_try) 2>&5
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); }; }; then
36568 ac_lo=$ac_mid; break
36570 echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36573 ac_hi=`expr '(' $ac_mid ')' - 1`
36574 if test $ac_mid -le $ac_hi; then
36578 ac_mid=`expr 2 '*' $ac_mid`
36580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36583 echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36591 # Binary search between lo and hi bounds.
36592 while test "x$ac_lo" != "x$ac_hi"; do
36593 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36594 cat >conftest.$ac_ext <<_ACEOF
36597 cat confdefs.h >>conftest.$ac_ext
36598 cat >>conftest.$ac_ext <<_ACEOF
36599 /* end confdefs.h. */
36600 $ac_includes_default
36604 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36611 rm -f conftest.$ac_objext
36612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36613 (eval $ac_compile) 2>conftest.er1
36615 grep -v '^ *+' conftest.er1 >conftest.err
36617 cat conftest.err >&5
36618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 (exit $ac_status); } &&
36620 { ac_try='test -z "$ac_c_werror_flag"
36621 || test ! -s conftest.err'
36622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623 (eval $ac_try) 2>&5
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); }; } &&
36627 { ac_try='test -s conftest.$ac_objext'
36628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36629 (eval $ac_try) 2>&5
36631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632 (exit $ac_status); }; }; then
36635 echo "$as_me: failed program was:" >&5
36636 sed 's/^/| /' conftest.$ac_ext >&5
36638 ac_lo=`expr '(' $ac_mid ')' + 1`
36640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36643 ?*) ac_cv_sizeof_long=$ac_lo;;
36644 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36645 See \`config.log' for more details." >&5
36646 echo "$as_me: error: cannot compute sizeof (long), 77
36647 See \`config.log' for more details." >&2;}
36648 { (exit 1); exit 1; }; } ;;
36651 if test "$cross_compiling" = yes; then
36652 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36653 See \`config.log' for more details." >&5
36654 echo "$as_me: error: cannot run test program while cross compiling
36655 See \`config.log' for more details." >&2;}
36656 { (exit 1); exit 1; }; }
36658 cat >conftest.$ac_ext <<_ACEOF
36661 cat confdefs.h >>conftest.$ac_ext
36662 cat >>conftest.$ac_ext <<_ACEOF
36663 /* end confdefs.h. */
36664 $ac_includes_default
36665 long longval () { return (long) (sizeof (long)); }
36666 unsigned long ulongval () { return (long) (sizeof (long)); }
36668 #include <stdlib.h>
36673 FILE *f = fopen ("conftest.val", "w");
36676 if (((long) (sizeof (long))) < 0)
36678 long i = longval ();
36679 if (i != ((long) (sizeof (long))))
36681 fprintf (f, "%ld\n", i);
36685 unsigned long i = ulongval ();
36686 if (i != ((long) (sizeof (long))))
36688 fprintf (f, "%lu\n", i);
36690 exit (ferror (f) || fclose (f) != 0);
36696 rm -f conftest$ac_exeext
36697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36698 (eval $ac_link) 2>&5
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703 (eval $ac_try) 2>&5
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); }; }; then
36707 ac_cv_sizeof_long=`cat conftest.val`
36709 echo "$as_me: program exited with status $ac_status" >&5
36710 echo "$as_me: failed program was:" >&5
36711 sed 's/^/| /' conftest.$ac_ext >&5
36713 ( exit $ac_status )
36714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36715 See \`config.log' for more details." >&5
36716 echo "$as_me: error: cannot compute sizeof (long), 77
36717 See \`config.log' for more details." >&2;}
36718 { (exit 1); exit 1; }; }
36720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36725 ac_cv_sizeof_long=0
36728 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36729 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36730 cat >>confdefs.h <<_ACEOF
36731 #define SIZEOF_LONG $ac_cv_sizeof_long
36735 echo "$as_me:$LINENO: checking for long long" >&5
36736 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36737 if test "${ac_cv_type_long_long+set}" = set; then
36738 echo $ECHO_N "(cached) $ECHO_C" >&6
36740 cat >conftest.$ac_ext <<_ACEOF
36743 cat confdefs.h >>conftest.$ac_ext
36744 cat >>conftest.$ac_ext <<_ACEOF
36745 /* end confdefs.h. */
36746 $ac_includes_default
36750 if ((long long *) 0)
36752 if (sizeof (long long))
36758 rm -f conftest.$ac_objext
36759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36760 (eval $ac_compile) 2>conftest.er1
36762 grep -v '^ *+' conftest.er1 >conftest.err
36764 cat conftest.err >&5
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); } &&
36767 { ac_try='test -z "$ac_c_werror_flag"
36768 || test ! -s conftest.err'
36769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770 (eval $ac_try) 2>&5
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); }; } &&
36774 { ac_try='test -s conftest.$ac_objext'
36775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36776 (eval $ac_try) 2>&5
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); }; }; then
36780 ac_cv_type_long_long=yes
36782 echo "$as_me: failed program was:" >&5
36783 sed 's/^/| /' conftest.$ac_ext >&5
36785 ac_cv_type_long_long=no
36787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36789 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36790 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36792 echo "$as_me:$LINENO: checking size of long long" >&5
36793 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36794 if test "${ac_cv_sizeof_long_long+set}" = set; then
36795 echo $ECHO_N "(cached) $ECHO_C" >&6
36797 if test "$ac_cv_type_long_long" = yes; then
36798 # The cast to unsigned long works around a bug in the HP C Compiler
36799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36801 # This bug is HP SR number 8606223364.
36802 if test "$cross_compiling" = yes; then
36803 # Depending upon the size, compute the lo and hi bounds.
36804 cat >conftest.$ac_ext <<_ACEOF
36807 cat confdefs.h >>conftest.$ac_ext
36808 cat >>conftest.$ac_ext <<_ACEOF
36809 /* end confdefs.h. */
36810 $ac_includes_default
36814 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36821 rm -f conftest.$ac_objext
36822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36823 (eval $ac_compile) 2>conftest.er1
36825 grep -v '^ *+' conftest.er1 >conftest.err
36827 cat conftest.err >&5
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); } &&
36830 { ac_try='test -z "$ac_c_werror_flag"
36831 || test ! -s conftest.err'
36832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36833 (eval $ac_try) 2>&5
36835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36836 (exit $ac_status); }; } &&
36837 { ac_try='test -s conftest.$ac_objext'
36838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36839 (eval $ac_try) 2>&5
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); }; }; then
36845 cat >conftest.$ac_ext <<_ACEOF
36848 cat confdefs.h >>conftest.$ac_ext
36849 cat >>conftest.$ac_ext <<_ACEOF
36850 /* end confdefs.h. */
36851 $ac_includes_default
36855 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36862 rm -f conftest.$ac_objext
36863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36864 (eval $ac_compile) 2>conftest.er1
36866 grep -v '^ *+' conftest.er1 >conftest.err
36868 cat conftest.err >&5
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } &&
36871 { ac_try='test -z "$ac_c_werror_flag"
36872 || test ! -s conftest.err'
36873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874 (eval $ac_try) 2>&5
36876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877 (exit $ac_status); }; } &&
36878 { ac_try='test -s conftest.$ac_objext'
36879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880 (eval $ac_try) 2>&5
36882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883 (exit $ac_status); }; }; then
36884 ac_hi=$ac_mid; break
36886 echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36889 ac_lo=`expr $ac_mid + 1`
36890 if test $ac_lo -le $ac_mid; then
36894 ac_mid=`expr 2 '*' $ac_mid + 1`
36896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36899 echo "$as_me: failed program was:" >&5
36900 sed 's/^/| /' conftest.$ac_ext >&5
36902 cat >conftest.$ac_ext <<_ACEOF
36905 cat confdefs.h >>conftest.$ac_ext
36906 cat >>conftest.$ac_ext <<_ACEOF
36907 /* end confdefs.h. */
36908 $ac_includes_default
36912 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36919 rm -f conftest.$ac_objext
36920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36921 (eval $ac_compile) 2>conftest.er1
36923 grep -v '^ *+' conftest.er1 >conftest.err
36925 cat conftest.err >&5
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 (exit $ac_status); } &&
36928 { ac_try='test -z "$ac_c_werror_flag"
36929 || test ! -s conftest.err'
36930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931 (eval $ac_try) 2>&5
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); }; } &&
36935 { ac_try='test -s conftest.$ac_objext'
36936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36937 (eval $ac_try) 2>&5
36939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940 (exit $ac_status); }; }; then
36943 cat >conftest.$ac_ext <<_ACEOF
36946 cat confdefs.h >>conftest.$ac_ext
36947 cat >>conftest.$ac_ext <<_ACEOF
36948 /* end confdefs.h. */
36949 $ac_includes_default
36953 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36960 rm -f conftest.$ac_objext
36961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36962 (eval $ac_compile) 2>conftest.er1
36964 grep -v '^ *+' conftest.er1 >conftest.err
36966 cat conftest.err >&5
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } &&
36969 { ac_try='test -z "$ac_c_werror_flag"
36970 || test ! -s conftest.err'
36971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972 (eval $ac_try) 2>&5
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); }; } &&
36976 { ac_try='test -s conftest.$ac_objext'
36977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978 (eval $ac_try) 2>&5
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); }; }; then
36982 ac_lo=$ac_mid; break
36984 echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36987 ac_hi=`expr '(' $ac_mid ')' - 1`
36988 if test $ac_mid -le $ac_hi; then
36992 ac_mid=`expr 2 '*' $ac_mid`
36994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36997 echo "$as_me: failed program was:" >&5
36998 sed 's/^/| /' conftest.$ac_ext >&5
37002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37005 # Binary search between lo and hi bounds.
37006 while test "x$ac_lo" != "x$ac_hi"; do
37007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37008 cat >conftest.$ac_ext <<_ACEOF
37011 cat confdefs.h >>conftest.$ac_ext
37012 cat >>conftest.$ac_ext <<_ACEOF
37013 /* end confdefs.h. */
37014 $ac_includes_default
37018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37025 rm -f conftest.$ac_objext
37026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37027 (eval $ac_compile) 2>conftest.er1
37029 grep -v '^ *+' conftest.er1 >conftest.err
37031 cat conftest.err >&5
37032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033 (exit $ac_status); } &&
37034 { ac_try='test -z "$ac_c_werror_flag"
37035 || test ! -s conftest.err'
37036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37037 (eval $ac_try) 2>&5
37039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040 (exit $ac_status); }; } &&
37041 { ac_try='test -s conftest.$ac_objext'
37042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37043 (eval $ac_try) 2>&5
37045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046 (exit $ac_status); }; }; then
37049 echo "$as_me: failed program was:" >&5
37050 sed 's/^/| /' conftest.$ac_ext >&5
37052 ac_lo=`expr '(' $ac_mid ')' + 1`
37054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37057 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37059 See \`config.log' for more details." >&5
37060 echo "$as_me: error: cannot compute sizeof (long long), 77
37061 See \`config.log' for more details." >&2;}
37062 { (exit 1); exit 1; }; } ;;
37065 if test "$cross_compiling" = yes; then
37066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37067 See \`config.log' for more details." >&5
37068 echo "$as_me: error: cannot run test program while cross compiling
37069 See \`config.log' for more details." >&2;}
37070 { (exit 1); exit 1; }; }
37072 cat >conftest.$ac_ext <<_ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h. */
37078 $ac_includes_default
37079 long longval () { return (long) (sizeof (long long)); }
37080 unsigned long ulongval () { return (long) (sizeof (long long)); }
37082 #include <stdlib.h>
37087 FILE *f = fopen ("conftest.val", "w");
37090 if (((long) (sizeof (long long))) < 0)
37092 long i = longval ();
37093 if (i != ((long) (sizeof (long long))))
37095 fprintf (f, "%ld\n", i);
37099 unsigned long i = ulongval ();
37100 if (i != ((long) (sizeof (long long))))
37102 fprintf (f, "%lu\n", i);
37104 exit (ferror (f) || fclose (f) != 0);
37110 rm -f conftest$ac_exeext
37111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37112 (eval $ac_link) 2>&5
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37117 (eval $ac_try) 2>&5
37119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120 (exit $ac_status); }; }; then
37121 ac_cv_sizeof_long_long=`cat conftest.val`
37123 echo "$as_me: program exited with status $ac_status" >&5
37124 echo "$as_me: failed program was:" >&5
37125 sed 's/^/| /' conftest.$ac_ext >&5
37127 ( exit $ac_status )
37128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37129 See \`config.log' for more details." >&5
37130 echo "$as_me: error: cannot compute sizeof (long long), 77
37131 See \`config.log' for more details." >&2;}
37132 { (exit 1); exit 1; }; }
37134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37139 ac_cv_sizeof_long_long=0
37142 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37143 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37144 cat >>confdefs.h <<_ACEOF
37145 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37149 echo "$as_me:$LINENO: checking for wchar_t" >&5
37150 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37151 if test "${ac_cv_type_wchar_t+set}" = set; then
37152 echo $ECHO_N "(cached) $ECHO_C" >&6
37154 cat >conftest.$ac_ext <<_ACEOF
37157 cat confdefs.h >>conftest.$ac_ext
37158 cat >>conftest.$ac_ext <<_ACEOF
37159 /* end confdefs.h. */
37160 $ac_includes_default
37166 if (sizeof (wchar_t))
37172 rm -f conftest.$ac_objext
37173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37174 (eval $ac_compile) 2>conftest.er1
37176 grep -v '^ *+' conftest.er1 >conftest.err
37178 cat conftest.err >&5
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); } &&
37181 { ac_try='test -z "$ac_c_werror_flag"
37182 || test ! -s conftest.err'
37183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184 (eval $ac_try) 2>&5
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); }; } &&
37188 { ac_try='test -s conftest.$ac_objext'
37189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37190 (eval $ac_try) 2>&5
37192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); }; }; then
37194 ac_cv_type_wchar_t=yes
37196 echo "$as_me: failed program was:" >&5
37197 sed 's/^/| /' conftest.$ac_ext >&5
37199 ac_cv_type_wchar_t=no
37201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37203 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37204 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37206 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37207 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37208 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37209 echo $ECHO_N "(cached) $ECHO_C" >&6
37211 if test "$ac_cv_type_wchar_t" = yes; then
37212 # The cast to unsigned long works around a bug in the HP C Compiler
37213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37215 # This bug is HP SR number 8606223364.
37216 if test "$cross_compiling" = yes; then
37217 # Depending upon the size, compute the lo and hi bounds.
37218 cat >conftest.$ac_ext <<_ACEOF
37221 cat confdefs.h >>conftest.$ac_ext
37222 cat >>conftest.$ac_ext <<_ACEOF
37223 /* end confdefs.h. */
37224 $ac_includes_default
37228 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37235 rm -f conftest.$ac_objext
37236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37237 (eval $ac_compile) 2>conftest.er1
37239 grep -v '^ *+' conftest.er1 >conftest.err
37241 cat conftest.err >&5
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); } &&
37244 { ac_try='test -z "$ac_c_werror_flag"
37245 || test ! -s conftest.err'
37246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37247 (eval $ac_try) 2>&5
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); }; } &&
37251 { ac_try='test -s conftest.$ac_objext'
37252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253 (eval $ac_try) 2>&5
37255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256 (exit $ac_status); }; }; then
37259 cat >conftest.$ac_ext <<_ACEOF
37262 cat confdefs.h >>conftest.$ac_ext
37263 cat >>conftest.$ac_ext <<_ACEOF
37264 /* end confdefs.h. */
37265 $ac_includes_default
37269 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37276 rm -f conftest.$ac_objext
37277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37278 (eval $ac_compile) 2>conftest.er1
37280 grep -v '^ *+' conftest.er1 >conftest.err
37282 cat conftest.err >&5
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); } &&
37285 { ac_try='test -z "$ac_c_werror_flag"
37286 || test ! -s conftest.err'
37287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37288 (eval $ac_try) 2>&5
37290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); }; } &&
37292 { ac_try='test -s conftest.$ac_objext'
37293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37294 (eval $ac_try) 2>&5
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); }; }; then
37298 ac_hi=$ac_mid; break
37300 echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37303 ac_lo=`expr $ac_mid + 1`
37304 if test $ac_lo -le $ac_mid; then
37308 ac_mid=`expr 2 '*' $ac_mid + 1`
37310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37313 echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37316 cat >conftest.$ac_ext <<_ACEOF
37319 cat confdefs.h >>conftest.$ac_ext
37320 cat >>conftest.$ac_ext <<_ACEOF
37321 /* end confdefs.h. */
37322 $ac_includes_default
37326 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37333 rm -f conftest.$ac_objext
37334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37335 (eval $ac_compile) 2>conftest.er1
37337 grep -v '^ *+' conftest.er1 >conftest.err
37339 cat conftest.err >&5
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); } &&
37342 { ac_try='test -z "$ac_c_werror_flag"
37343 || test ! -s conftest.err'
37344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37345 (eval $ac_try) 2>&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); }; } &&
37349 { ac_try='test -s conftest.$ac_objext'
37350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37351 (eval $ac_try) 2>&5
37353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354 (exit $ac_status); }; }; then
37357 cat >conftest.$ac_ext <<_ACEOF
37360 cat confdefs.h >>conftest.$ac_ext
37361 cat >>conftest.$ac_ext <<_ACEOF
37362 /* end confdefs.h. */
37363 $ac_includes_default
37367 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37374 rm -f conftest.$ac_objext
37375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37376 (eval $ac_compile) 2>conftest.er1
37378 grep -v '^ *+' conftest.er1 >conftest.err
37380 cat conftest.err >&5
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); } &&
37383 { ac_try='test -z "$ac_c_werror_flag"
37384 || test ! -s conftest.err'
37385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37386 (eval $ac_try) 2>&5
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); }; } &&
37390 { ac_try='test -s conftest.$ac_objext'
37391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37392 (eval $ac_try) 2>&5
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); }; }; then
37396 ac_lo=$ac_mid; break
37398 echo "$as_me: failed program was:" >&5
37399 sed 's/^/| /' conftest.$ac_ext >&5
37401 ac_hi=`expr '(' $ac_mid ')' - 1`
37402 if test $ac_mid -le $ac_hi; then
37406 ac_mid=`expr 2 '*' $ac_mid`
37408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37411 echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37419 # Binary search between lo and hi bounds.
37420 while test "x$ac_lo" != "x$ac_hi"; do
37421 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37422 cat >conftest.$ac_ext <<_ACEOF
37425 cat confdefs.h >>conftest.$ac_ext
37426 cat >>conftest.$ac_ext <<_ACEOF
37427 /* end confdefs.h. */
37428 $ac_includes_default
37432 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37439 rm -f conftest.$ac_objext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37441 (eval $ac_compile) 2>conftest.er1
37443 grep -v '^ *+' conftest.er1 >conftest.err
37445 cat conftest.err >&5
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); } &&
37448 { ac_try='test -z "$ac_c_werror_flag"
37449 || test ! -s conftest.err'
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; } &&
37455 { ac_try='test -s conftest.$ac_objext'
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; }; then
37463 echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37466 ac_lo=`expr '(' $ac_mid ')' + 1`
37468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37471 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37472 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37473 See \`config.log' for more details." >&5
37474 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37475 See \`config.log' for more details." >&2;}
37476 { (exit 1); exit 1; }; } ;;
37479 if test "$cross_compiling" = yes; then
37480 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37481 See \`config.log' for more details." >&5
37482 echo "$as_me: error: cannot run test program while cross compiling
37483 See \`config.log' for more details." >&2;}
37484 { (exit 1); exit 1; }; }
37486 cat >conftest.$ac_ext <<_ACEOF
37489 cat confdefs.h >>conftest.$ac_ext
37490 cat >>conftest.$ac_ext <<_ACEOF
37491 /* end confdefs.h. */
37492 $ac_includes_default
37493 long longval () { return (long) (sizeof (wchar_t)); }
37494 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37496 #include <stdlib.h>
37501 FILE *f = fopen ("conftest.val", "w");
37504 if (((long) (sizeof (wchar_t))) < 0)
37506 long i = longval ();
37507 if (i != ((long) (sizeof (wchar_t))))
37509 fprintf (f, "%ld\n", i);
37513 unsigned long i = ulongval ();
37514 if (i != ((long) (sizeof (wchar_t))))
37516 fprintf (f, "%lu\n", i);
37518 exit (ferror (f) || fclose (f) != 0);
37524 rm -f conftest$ac_exeext
37525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37526 (eval $ac_link) 2>&5
37528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37531 (eval $ac_try) 2>&5
37533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37534 (exit $ac_status); }; }; then
37535 ac_cv_sizeof_wchar_t=`cat conftest.val`
37537 echo "$as_me: program exited with status $ac_status" >&5
37538 echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37541 ( exit $ac_status )
37542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37543 See \`config.log' for more details." >&5
37544 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37545 See \`config.log' for more details." >&2;}
37546 { (exit 1); exit 1; }; }
37548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37553 ac_cv_sizeof_wchar_t=0
37556 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37557 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37558 cat >>confdefs.h <<_ACEOF
37559 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37564 if test "$ac_cv_sizeof_int" -lt 4 ; then
37565 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37566 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37569 cat >>confdefs.h <<\_ACEOF
37570 #define LBER_INT_T long
37575 cat >>confdefs.h <<\_ACEOF
37576 #define LBER_INT_T int
37582 cat >>confdefs.h <<\_ACEOF
37583 #define LBER_LEN_T long
37587 cat >>confdefs.h <<\_ACEOF
37588 #define LBER_SOCKET_T int
37592 cat >>confdefs.h <<\_ACEOF
37593 #define LBER_TAG_T long
37597 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37598 if test $ac_cv_sizeof_long_long -gt 4 ; then
37599 ol_with_mp=longlong
37601 cat >>confdefs.h <<\_ACEOF
37602 #define USE_MP_LONG_LONG 1
37605 elif test $ol_with_mp = longlong ; then
37606 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37607 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37608 { (exit 1); exit 1; }; }
37611 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37612 if test $ac_cv_sizeof_long -gt 4 ; then
37615 cat >>confdefs.h <<\_ACEOF
37616 #define USE_MP_LONG 1
37619 elif test $ol_with_mp = long ; then
37620 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37621 echo "$as_me: error: long unusable for multiple precision" >&2;}
37622 { (exit 1); exit 1; }; }
37625 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37627 for ac_header in openssl/bn.h
37629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37631 echo "$as_me:$LINENO: checking for $ac_header" >&5
37632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37634 echo $ECHO_N "(cached) $ECHO_C" >&6
37636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37639 # Is the header compilable?
37640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37642 cat >conftest.$ac_ext <<_ACEOF
37645 cat confdefs.h >>conftest.$ac_ext
37646 cat >>conftest.$ac_ext <<_ACEOF
37647 /* end confdefs.h. */
37648 $ac_includes_default
37649 #include <$ac_header>
37651 rm -f conftest.$ac_objext
37652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37653 (eval $ac_compile) 2>conftest.er1
37655 grep -v '^ *+' conftest.er1 >conftest.err
37657 cat conftest.err >&5
37658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659 (exit $ac_status); } &&
37660 { ac_try='test -z "$ac_c_werror_flag"
37661 || test ! -s conftest.err'
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; } &&
37667 { ac_try='test -s conftest.$ac_objext'
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; }; then
37673 ac_header_compiler=yes
37675 echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37678 ac_header_compiler=no
37680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37682 echo "${ECHO_T}$ac_header_compiler" >&6
37684 # Is the header present?
37685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37687 cat >conftest.$ac_ext <<_ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h. */
37693 #include <$ac_header>
37695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37698 grep -v '^ *+' conftest.er1 >conftest.err
37700 cat conftest.err >&5
37701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702 (exit $ac_status); } >/dev/null; then
37703 if test -s conftest.err; then
37704 ac_cpp_err=$ac_c_preproc_warn_flag
37705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37712 if test -z "$ac_cpp_err"; then
37713 ac_header_preproc=yes
37715 echo "$as_me: failed program was:" >&5
37716 sed 's/^/| /' conftest.$ac_ext >&5
37718 ac_header_preproc=no
37720 rm -f conftest.err conftest.$ac_ext
37721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37722 echo "${ECHO_T}$ac_header_preproc" >&6
37724 # So? What about this header?
37725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37731 ac_header_preproc=yes
37734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37748 ## --------------------------------------------- ##
37749 ## Report this to <http://www.openldap.org/its/> ##
37750 ## --------------------------------------------- ##
37753 sed "s/^/$as_me: WARNING: /" >&2
37756 echo "$as_me:$LINENO: checking for $ac_header" >&5
37757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37759 echo $ECHO_N "(cached) $ECHO_C" >&6
37761 eval "$as_ac_Header=\$ac_header_preproc"
37763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37768 cat >>confdefs.h <<_ACEOF
37769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37777 for ac_header in openssl/crypto.h
37779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37781 echo "$as_me:$LINENO: checking for $ac_header" >&5
37782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37784 echo $ECHO_N "(cached) $ECHO_C" >&6
37786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37789 # Is the header compilable?
37790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37792 cat >conftest.$ac_ext <<_ACEOF
37795 cat confdefs.h >>conftest.$ac_ext
37796 cat >>conftest.$ac_ext <<_ACEOF
37797 /* end confdefs.h. */
37798 $ac_includes_default
37799 #include <$ac_header>
37801 rm -f conftest.$ac_objext
37802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37803 (eval $ac_compile) 2>conftest.er1
37805 grep -v '^ *+' conftest.er1 >conftest.err
37807 cat conftest.err >&5
37808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809 (exit $ac_status); } &&
37810 { ac_try='test -z "$ac_c_werror_flag"
37811 || test ! -s conftest.err'
37812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37813 (eval $ac_try) 2>&5
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); }; } &&
37817 { ac_try='test -s conftest.$ac_objext'
37818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37819 (eval $ac_try) 2>&5
37821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822 (exit $ac_status); }; }; then
37823 ac_header_compiler=yes
37825 echo "$as_me: failed program was:" >&5
37826 sed 's/^/| /' conftest.$ac_ext >&5
37828 ac_header_compiler=no
37830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37832 echo "${ECHO_T}$ac_header_compiler" >&6
37834 # Is the header present?
37835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37837 cat >conftest.$ac_ext <<_ACEOF
37840 cat confdefs.h >>conftest.$ac_ext
37841 cat >>conftest.$ac_ext <<_ACEOF
37842 /* end confdefs.h. */
37843 #include <$ac_header>
37845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37848 grep -v '^ *+' conftest.er1 >conftest.err
37850 cat conftest.err >&5
37851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852 (exit $ac_status); } >/dev/null; then
37853 if test -s conftest.err; then
37854 ac_cpp_err=$ac_c_preproc_warn_flag
37855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37862 if test -z "$ac_cpp_err"; then
37863 ac_header_preproc=yes
37865 echo "$as_me: failed program was:" >&5
37866 sed 's/^/| /' conftest.$ac_ext >&5
37868 ac_header_preproc=no
37870 rm -f conftest.err conftest.$ac_ext
37871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37872 echo "${ECHO_T}$ac_header_preproc" >&6
37874 # So? What about this header?
37875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37881 ac_header_preproc=yes
37884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37898 ## --------------------------------------------- ##
37899 ## Report this to <http://www.openldap.org/its/> ##
37900 ## --------------------------------------------- ##
37903 sed "s/^/$as_me: WARNING: /" >&2
37906 echo "$as_me:$LINENO: checking for $ac_header" >&5
37907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37909 echo $ECHO_N "(cached) $ECHO_C" >&6
37911 eval "$as_ac_Header=\$ac_header_preproc"
37913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37918 cat >>confdefs.h <<_ACEOF
37919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37926 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37927 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37928 test "$ol_with_tls" = "found" ; then
37931 cat >>confdefs.h <<\_ACEOF
37932 #define USE_MP_BIGNUM 1
37935 elif test $ol_with_mp = bignum ; then
37936 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37937 echo "$as_me: error: bignum not available" >&2;}
37938 { (exit 1); exit 1; }; }
37941 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37943 for ac_header in gmp.h
37945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37947 echo "$as_me:$LINENO: checking for $ac_header" >&5
37948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37950 echo $ECHO_N "(cached) $ECHO_C" >&6
37952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37955 # Is the header compilable?
37956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37958 cat >conftest.$ac_ext <<_ACEOF
37961 cat confdefs.h >>conftest.$ac_ext
37962 cat >>conftest.$ac_ext <<_ACEOF
37963 /* end confdefs.h. */
37964 $ac_includes_default
37965 #include <$ac_header>
37967 rm -f conftest.$ac_objext
37968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37969 (eval $ac_compile) 2>conftest.er1
37971 grep -v '^ *+' conftest.er1 >conftest.err
37973 cat conftest.err >&5
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); } &&
37976 { ac_try='test -z "$ac_c_werror_flag"
37977 || test ! -s conftest.err'
37978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979 (eval $ac_try) 2>&5
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); }; } &&
37983 { ac_try='test -s conftest.$ac_objext'
37984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37985 (eval $ac_try) 2>&5
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); }; }; then
37989 ac_header_compiler=yes
37991 echo "$as_me: failed program was:" >&5
37992 sed 's/^/| /' conftest.$ac_ext >&5
37994 ac_header_compiler=no
37996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37998 echo "${ECHO_T}$ac_header_compiler" >&6
38000 # Is the header present?
38001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38003 cat >conftest.$ac_ext <<_ACEOF
38006 cat confdefs.h >>conftest.$ac_ext
38007 cat >>conftest.$ac_ext <<_ACEOF
38008 /* end confdefs.h. */
38009 #include <$ac_header>
38011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38014 grep -v '^ *+' conftest.er1 >conftest.err
38016 cat conftest.err >&5
38017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018 (exit $ac_status); } >/dev/null; then
38019 if test -s conftest.err; then
38020 ac_cpp_err=$ac_c_preproc_warn_flag
38021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38028 if test -z "$ac_cpp_err"; then
38029 ac_header_preproc=yes
38031 echo "$as_me: failed program was:" >&5
38032 sed 's/^/| /' conftest.$ac_ext >&5
38034 ac_header_preproc=no
38036 rm -f conftest.err conftest.$ac_ext
38037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38038 echo "${ECHO_T}$ac_header_preproc" >&6
38040 # So? What about this header?
38041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38047 ac_header_preproc=yes
38050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38064 ## --------------------------------------------- ##
38065 ## Report this to <http://www.openldap.org/its/> ##
38066 ## --------------------------------------------- ##
38069 sed "s/^/$as_me: WARNING: /" >&2
38072 echo "$as_me:$LINENO: checking for $ac_header" >&5
38073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38077 eval "$as_ac_Header=\$ac_header_preproc"
38079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38084 cat >>confdefs.h <<_ACEOF
38085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38093 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38094 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38095 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38096 echo $ECHO_N "(cached) $ECHO_C" >&6
38098 ac_check_lib_save_LIBS=$LIBS
38100 cat >conftest.$ac_ext <<_ACEOF
38103 cat confdefs.h >>conftest.$ac_ext
38104 cat >>conftest.$ac_ext <<_ACEOF
38105 /* end confdefs.h. */
38107 /* Override any gcc2 internal prototype to avoid an error. */
38111 /* We use char because int might match the return type of a gcc2
38112 builtin and then its argument prototype would still apply. */
38113 char __gmpz_add_ui ();
38122 rm -f conftest.$ac_objext conftest$ac_exeext
38123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38124 (eval $ac_link) 2>conftest.er1
38126 grep -v '^ *+' conftest.er1 >conftest.err
38128 cat conftest.err >&5
38129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130 (exit $ac_status); } &&
38131 { ac_try='test -z "$ac_c_werror_flag"
38132 || test ! -s conftest.err'
38133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38134 (eval $ac_try) 2>&5
38136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); }; } &&
38138 { ac_try='test -s conftest$ac_exeext'
38139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38140 (eval $ac_try) 2>&5
38142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38143 (exit $ac_status); }; }; then
38144 ac_cv_lib_gmp___gmpz_add_ui=yes
38146 echo "$as_me: failed program was:" >&5
38147 sed 's/^/| /' conftest.$ac_ext >&5
38149 ac_cv_lib_gmp___gmpz_add_ui=no
38151 rm -f conftest.err conftest.$ac_objext \
38152 conftest$ac_exeext conftest.$ac_ext
38153 LIBS=$ac_check_lib_save_LIBS
38155 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38156 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38157 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38158 cat >>confdefs.h <<_ACEOF
38159 #define HAVE_LIBGMP 1
38166 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38168 cat >>confdefs.h <<\_ACEOF
38169 #define USE_MP_GMP 1
38173 elif test $ol_with_mp = gmp ; then
38174 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38175 echo "$as_me: error: gmp not available" >&2;}
38176 { (exit 1); exit 1; }; }
38179 if test $ol_with_mp = auto ; then
38183 echo "$as_me:$LINENO: checking for working memcmp" >&5
38184 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38185 if test "${ac_cv_func_memcmp_working+set}" = set; then
38186 echo $ECHO_N "(cached) $ECHO_C" >&6
38188 if test "$cross_compiling" = yes; then
38189 ac_cv_func_memcmp_working=no
38191 cat >conftest.$ac_ext <<_ACEOF
38194 cat confdefs.h >>conftest.$ac_ext
38195 cat >>conftest.$ac_ext <<_ACEOF
38196 /* end confdefs.h. */
38197 $ac_includes_default
38202 /* Some versions of memcmp are not 8-bit clean. */
38203 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38204 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38207 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38208 or more and with at least one buffer not starting on a 4-byte boundary.
38209 William Lewis provided this test program. */
38214 for (i = 0; i < 4; i++)
38218 strcpy (a, "--------01111111");
38219 strcpy (b, "--------10000000");
38220 if (memcmp (a, b, 16) >= 0)
38230 rm -f conftest$ac_exeext
38231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38232 (eval $ac_link) 2>&5
38234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237 (eval $ac_try) 2>&5
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); }; }; then
38241 ac_cv_func_memcmp_working=yes
38243 echo "$as_me: program exited with status $ac_status" >&5
38244 echo "$as_me: failed program was:" >&5
38245 sed 's/^/| /' conftest.$ac_ext >&5
38247 ( exit $ac_status )
38248 ac_cv_func_memcmp_working=no
38250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38253 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38254 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38255 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38256 "memcmp.$ac_objext" | \
38257 *" memcmp.$ac_objext" | \
38258 "memcmp.$ac_objext "* | \
38259 *" memcmp.$ac_objext "* ) ;;
38260 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38265 if test $ac_cv_func_memcmp_working = no ; then
38267 cat >>confdefs.h <<\_ACEOF
38268 #define NEED_MEMCMP_REPLACEMENT 1
38274 for ac_func in strftime
38276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38277 echo "$as_me:$LINENO: checking for $ac_func" >&5
38278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38279 if eval "test \"\${$as_ac_var+set}\" = set"; then
38280 echo $ECHO_N "(cached) $ECHO_C" >&6
38282 cat >conftest.$ac_ext <<_ACEOF
38285 cat confdefs.h >>conftest.$ac_ext
38286 cat >>conftest.$ac_ext <<_ACEOF
38287 /* end confdefs.h. */
38288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38290 #define $ac_func innocuous_$ac_func
38292 /* System header to define __stub macros and hopefully few prototypes,
38293 which can conflict with char $ac_func (); below.
38294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38295 <limits.h> exists even on freestanding compilers. */
38298 # include <limits.h>
38300 # include <assert.h>
38305 /* Override any gcc2 internal prototype to avoid an error. */
38310 /* We use char because int might match the return type of a gcc2
38311 builtin and then its argument prototype would still apply. */
38313 /* The GNU C library defines this for functions which it implements
38314 to always fail with ENOSYS. Some functions are actually named
38315 something starting with __ and the normal name is an alias. */
38316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38319 char (*f) () = $ac_func;
38328 return f != $ac_func;
38333 rm -f conftest.$ac_objext conftest$ac_exeext
38334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38335 (eval $ac_link) 2>conftest.er1
38337 grep -v '^ *+' conftest.er1 >conftest.err
38339 cat conftest.err >&5
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); } &&
38342 { ac_try='test -z "$ac_c_werror_flag"
38343 || test ! -s conftest.err'
38344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38345 (eval $ac_try) 2>&5
38347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 (exit $ac_status); }; } &&
38349 { ac_try='test -s conftest$ac_exeext'
38350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351 (eval $ac_try) 2>&5
38353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 (exit $ac_status); }; }; then
38355 eval "$as_ac_var=yes"
38357 echo "$as_me: failed program was:" >&5
38358 sed 's/^/| /' conftest.$ac_ext >&5
38360 eval "$as_ac_var=no"
38362 rm -f conftest.err conftest.$ac_objext \
38363 conftest$ac_exeext conftest.$ac_ext
38365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38367 if test `eval echo '${'$as_ac_var'}'` = yes; then
38368 cat >>confdefs.h <<_ACEOF
38369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38373 # strftime is in -lintl on SCO UNIX.
38374 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38375 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38376 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38377 echo $ECHO_N "(cached) $ECHO_C" >&6
38379 ac_check_lib_save_LIBS=$LIBS
38380 LIBS="-lintl $LIBS"
38381 cat >conftest.$ac_ext <<_ACEOF
38384 cat confdefs.h >>conftest.$ac_ext
38385 cat >>conftest.$ac_ext <<_ACEOF
38386 /* end confdefs.h. */
38388 /* Override any gcc2 internal prototype to avoid an error. */
38392 /* We use char because int might match the return type of a gcc2
38393 builtin and then its argument prototype would still apply. */
38403 rm -f conftest.$ac_objext conftest$ac_exeext
38404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38405 (eval $ac_link) 2>conftest.er1
38407 grep -v '^ *+' conftest.er1 >conftest.err
38409 cat conftest.err >&5
38410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411 (exit $ac_status); } &&
38412 { ac_try='test -z "$ac_c_werror_flag"
38413 || test ! -s conftest.err'
38414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415 (eval $ac_try) 2>&5
38417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418 (exit $ac_status); }; } &&
38419 { ac_try='test -s conftest$ac_exeext'
38420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38421 (eval $ac_try) 2>&5
38423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); }; }; then
38425 ac_cv_lib_intl_strftime=yes
38427 echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38430 ac_cv_lib_intl_strftime=no
38432 rm -f conftest.err conftest.$ac_objext \
38433 conftest$ac_exeext conftest.$ac_ext
38434 LIBS=$ac_check_lib_save_LIBS
38436 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38437 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38438 if test $ac_cv_lib_intl_strftime = yes; then
38439 cat >>confdefs.h <<\_ACEOF
38440 #define HAVE_STRFTIME 1
38443 LIBS="-lintl $LIBS"
38450 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38451 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38452 if test "${ol_cv_func_inet_aton+set}" = set; then
38453 echo $ECHO_N "(cached) $ECHO_C" >&6
38455 cat >conftest.$ac_ext <<_ACEOF
38458 cat confdefs.h >>conftest.$ac_ext
38459 cat >>conftest.$ac_ext <<_ACEOF
38460 /* end confdefs.h. */
38462 #ifdef HAVE_SYS_TYPES_H
38463 # include <sys/types.h>
38465 #ifdef HAVE_SYS_SOCKET_H
38466 # include <sys/socket.h>
38467 # ifdef HAVE_SYS_SELECT_H
38468 # include <sys/select.h>
38470 # include <netinet/in.h>
38471 # ifdef HAVE_ARPA_INET_H
38472 # include <arpa/inet.h>
38480 int rc = inet_aton( "255.255.255.255", &in );
38485 rm -f conftest.$ac_objext conftest$ac_exeext
38486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38487 (eval $ac_link) 2>conftest.er1
38489 grep -v '^ *+' conftest.er1 >conftest.err
38491 cat conftest.err >&5
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); } &&
38494 { ac_try='test -z "$ac_c_werror_flag"
38495 || test ! -s conftest.err'
38496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497 (eval $ac_try) 2>&5
38499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); }; } &&
38501 { ac_try='test -s conftest$ac_exeext'
38502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38503 (eval $ac_try) 2>&5
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); }; }; then
38507 ol_cv_func_inet_aton=yes
38509 echo "$as_me: failed program was:" >&5
38510 sed 's/^/| /' conftest.$ac_ext >&5
38512 ol_cv_func_inet_aton=no
38514 rm -f conftest.err conftest.$ac_objext \
38515 conftest$ac_exeext conftest.$ac_ext
38517 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38518 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38519 if test $ol_cv_func_inet_aton != no; then
38521 cat >>confdefs.h <<\_ACEOF
38522 #define HAVE_INET_ATON 1
38528 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38529 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38530 if test "${ac_cv_func__spawnlp+set}" = set; then
38531 echo $ECHO_N "(cached) $ECHO_C" >&6
38533 cat >conftest.$ac_ext <<_ACEOF
38536 cat confdefs.h >>conftest.$ac_ext
38537 cat >>conftest.$ac_ext <<_ACEOF
38538 /* end confdefs.h. */
38539 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38541 #define _spawnlp innocuous__spawnlp
38543 /* System header to define __stub macros and hopefully few prototypes,
38544 which can conflict with char _spawnlp (); below.
38545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38546 <limits.h> exists even on freestanding compilers. */
38549 # include <limits.h>
38551 # include <assert.h>
38556 /* Override any gcc2 internal prototype to avoid an error. */
38561 /* We use char because int might match the return type of a gcc2
38562 builtin and then its argument prototype would still apply. */
38564 /* The GNU C library defines this for functions which it implements
38565 to always fail with ENOSYS. Some functions are actually named
38566 something starting with __ and the normal name is an alias. */
38567 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38570 char (*f) () = _spawnlp;
38579 return f != _spawnlp;
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38586 (eval $ac_link) 2>conftest.er1
38588 grep -v '^ *+' conftest.er1 >conftest.err
38590 cat conftest.err >&5
38591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592 (exit $ac_status); } &&
38593 { ac_try='test -z "$ac_c_werror_flag"
38594 || test ! -s conftest.err'
38595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38596 (eval $ac_try) 2>&5
38598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599 (exit $ac_status); }; } &&
38600 { ac_try='test -s conftest$ac_exeext'
38601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602 (eval $ac_try) 2>&5
38604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605 (exit $ac_status); }; }; then
38606 ac_cv_func__spawnlp=yes
38608 echo "$as_me: failed program was:" >&5
38609 sed 's/^/| /' conftest.$ac_ext >&5
38611 ac_cv_func__spawnlp=no
38613 rm -f conftest.err conftest.$ac_objext \
38614 conftest$ac_exeext conftest.$ac_ext
38616 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38617 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38618 if test $ac_cv_func__spawnlp = yes; then
38620 cat >>confdefs.h <<\_ACEOF
38621 #define HAVE_SPAWNLP 1
38627 echo "$as_me:$LINENO: checking for _snprintf" >&5
38628 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38629 if test "${ac_cv_func__snprintf+set}" = set; then
38630 echo $ECHO_N "(cached) $ECHO_C" >&6
38632 cat >conftest.$ac_ext <<_ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h. */
38638 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38640 #define _snprintf innocuous__snprintf
38642 /* System header to define __stub macros and hopefully few prototypes,
38643 which can conflict with char _snprintf (); below.
38644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38645 <limits.h> exists even on freestanding compilers. */
38648 # include <limits.h>
38650 # include <assert.h>
38655 /* Override any gcc2 internal prototype to avoid an error. */
38660 /* We use char because int might match the return type of a gcc2
38661 builtin and then its argument prototype would still apply. */
38663 /* The GNU C library defines this for functions which it implements
38664 to always fail with ENOSYS. Some functions are actually named
38665 something starting with __ and the normal name is an alias. */
38666 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38669 char (*f) () = _snprintf;
38678 return f != _snprintf;
38683 rm -f conftest.$ac_objext conftest$ac_exeext
38684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38685 (eval $ac_link) 2>conftest.er1
38687 grep -v '^ *+' conftest.er1 >conftest.err
38689 cat conftest.err >&5
38690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691 (exit $ac_status); } &&
38692 { ac_try='test -z "$ac_c_werror_flag"
38693 || test ! -s conftest.err'
38694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38695 (eval $ac_try) 2>&5
38697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698 (exit $ac_status); }; } &&
38699 { ac_try='test -s conftest$ac_exeext'
38700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38701 (eval $ac_try) 2>&5
38703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704 (exit $ac_status); }; }; then
38705 ac_cv_func__snprintf=yes
38707 echo "$as_me: failed program was:" >&5
38708 sed 's/^/| /' conftest.$ac_ext >&5
38710 ac_cv_func__snprintf=no
38712 rm -f conftest.err conftest.$ac_objext \
38713 conftest$ac_exeext conftest.$ac_ext
38715 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38716 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38717 if test $ac_cv_func__snprintf = yes; then
38718 ac_cv_func_snprintf=yes
38720 cat >>confdefs.h <<\_ACEOF
38721 #define snprintf _snprintf
38728 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38729 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38730 if test "${ac_cv_func__vsnprintf+set}" = set; then
38731 echo $ECHO_N "(cached) $ECHO_C" >&6
38733 cat >conftest.$ac_ext <<_ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h. */
38739 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38741 #define _vsnprintf innocuous__vsnprintf
38743 /* System header to define __stub macros and hopefully few prototypes,
38744 which can conflict with char _vsnprintf (); below.
38745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38746 <limits.h> exists even on freestanding compilers. */
38749 # include <limits.h>
38751 # include <assert.h>
38756 /* Override any gcc2 internal prototype to avoid an error. */
38761 /* We use char because int might match the return type of a gcc2
38762 builtin and then its argument prototype would still apply. */
38763 char _vsnprintf ();
38764 /* The GNU C library defines this for functions which it implements
38765 to always fail with ENOSYS. Some functions are actually named
38766 something starting with __ and the normal name is an alias. */
38767 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38770 char (*f) () = _vsnprintf;
38779 return f != _vsnprintf;
38784 rm -f conftest.$ac_objext conftest$ac_exeext
38785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38786 (eval $ac_link) 2>conftest.er1
38788 grep -v '^ *+' conftest.er1 >conftest.err
38790 cat conftest.err >&5
38791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); } &&
38793 { ac_try='test -z "$ac_c_werror_flag"
38794 || test ! -s conftest.err'
38795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38796 (eval $ac_try) 2>&5
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); }; } &&
38800 { ac_try='test -s conftest$ac_exeext'
38801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802 (eval $ac_try) 2>&5
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); }; }; then
38806 ac_cv_func__vsnprintf=yes
38808 echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38811 ac_cv_func__vsnprintf=no
38813 rm -f conftest.err conftest.$ac_objext \
38814 conftest$ac_exeext conftest.$ac_ext
38816 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38817 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38818 if test $ac_cv_func__vsnprintf = yes; then
38819 ac_cv_func_vsnprintf=yes
38821 cat >>confdefs.h <<\_ACEOF
38822 #define vsnprintf _vsnprintf
38830 for ac_func in vprintf
38832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38833 echo "$as_me:$LINENO: checking for $ac_func" >&5
38834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38835 if eval "test \"\${$as_ac_var+set}\" = set"; then
38836 echo $ECHO_N "(cached) $ECHO_C" >&6
38838 cat >conftest.$ac_ext <<_ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h. */
38844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38846 #define $ac_func innocuous_$ac_func
38848 /* System header to define __stub macros and hopefully few prototypes,
38849 which can conflict with char $ac_func (); below.
38850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38851 <limits.h> exists even on freestanding compilers. */
38854 # include <limits.h>
38856 # include <assert.h>
38861 /* Override any gcc2 internal prototype to avoid an error. */
38866 /* We use char because int might match the return type of a gcc2
38867 builtin and then its argument prototype would still apply. */
38869 /* The GNU C library defines this for functions which it implements
38870 to always fail with ENOSYS. Some functions are actually named
38871 something starting with __ and the normal name is an alias. */
38872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38875 char (*f) () = $ac_func;
38884 return f != $ac_func;
38889 rm -f conftest.$ac_objext conftest$ac_exeext
38890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38891 (eval $ac_link) 2>conftest.er1
38893 grep -v '^ *+' conftest.er1 >conftest.err
38895 cat conftest.err >&5
38896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897 (exit $ac_status); } &&
38898 { ac_try='test -z "$ac_c_werror_flag"
38899 || test ! -s conftest.err'
38900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38901 (eval $ac_try) 2>&5
38903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904 (exit $ac_status); }; } &&
38905 { ac_try='test -s conftest$ac_exeext'
38906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38907 (eval $ac_try) 2>&5
38909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910 (exit $ac_status); }; }; then
38911 eval "$as_ac_var=yes"
38913 echo "$as_me: failed program was:" >&5
38914 sed 's/^/| /' conftest.$ac_ext >&5
38916 eval "$as_ac_var=no"
38918 rm -f conftest.err conftest.$ac_objext \
38919 conftest$ac_exeext conftest.$ac_ext
38921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38923 if test `eval echo '${'$as_ac_var'}'` = yes; then
38924 cat >>confdefs.h <<_ACEOF
38925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38928 echo "$as_me:$LINENO: checking for _doprnt" >&5
38929 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38930 if test "${ac_cv_func__doprnt+set}" = set; then
38931 echo $ECHO_N "(cached) $ECHO_C" >&6
38933 cat >conftest.$ac_ext <<_ACEOF
38936 cat confdefs.h >>conftest.$ac_ext
38937 cat >>conftest.$ac_ext <<_ACEOF
38938 /* end confdefs.h. */
38939 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38941 #define _doprnt innocuous__doprnt
38943 /* System header to define __stub macros and hopefully few prototypes,
38944 which can conflict with char _doprnt (); below.
38945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38946 <limits.h> exists even on freestanding compilers. */
38949 # include <limits.h>
38951 # include <assert.h>
38956 /* Override any gcc2 internal prototype to avoid an error. */
38961 /* We use char because int might match the return type of a gcc2
38962 builtin and then its argument prototype would still apply. */
38964 /* The GNU C library defines this for functions which it implements
38965 to always fail with ENOSYS. Some functions are actually named
38966 something starting with __ and the normal name is an alias. */
38967 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38970 char (*f) () = _doprnt;
38979 return f != _doprnt;
38984 rm -f conftest.$ac_objext conftest$ac_exeext
38985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38986 (eval $ac_link) 2>conftest.er1
38988 grep -v '^ *+' conftest.er1 >conftest.err
38990 cat conftest.err >&5
38991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992 (exit $ac_status); } &&
38993 { ac_try='test -z "$ac_c_werror_flag"
38994 || test ! -s conftest.err'
38995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38996 (eval $ac_try) 2>&5
38998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38999 (exit $ac_status); }; } &&
39000 { ac_try='test -s conftest$ac_exeext'
39001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39002 (eval $ac_try) 2>&5
39004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39005 (exit $ac_status); }; }; then
39006 ac_cv_func__doprnt=yes
39008 echo "$as_me: failed program was:" >&5
39009 sed 's/^/| /' conftest.$ac_ext >&5
39011 ac_cv_func__doprnt=no
39013 rm -f conftest.err conftest.$ac_objext \
39014 conftest$ac_exeext conftest.$ac_ext
39016 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39017 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39018 if test $ac_cv_func__doprnt = yes; then
39020 cat >>confdefs.h <<\_ACEOF
39021 #define HAVE_DOPRNT 1
39031 if test $ac_cv_func_vprintf = yes ; then
39034 for ac_func in snprintf vsnprintf
39036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39037 echo "$as_me:$LINENO: checking for $ac_func" >&5
39038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39039 if eval "test \"\${$as_ac_var+set}\" = set"; then
39040 echo $ECHO_N "(cached) $ECHO_C" >&6
39042 cat >conftest.$ac_ext <<_ACEOF
39045 cat confdefs.h >>conftest.$ac_ext
39046 cat >>conftest.$ac_ext <<_ACEOF
39047 /* end confdefs.h. */
39048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39050 #define $ac_func innocuous_$ac_func
39052 /* System header to define __stub macros and hopefully few prototypes,
39053 which can conflict with char $ac_func (); below.
39054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39055 <limits.h> exists even on freestanding compilers. */
39058 # include <limits.h>
39060 # include <assert.h>
39065 /* Override any gcc2 internal prototype to avoid an error. */
39070 /* We use char because int might match the return type of a gcc2
39071 builtin and then its argument prototype would still apply. */
39073 /* The GNU C library defines this for functions which it implements
39074 to always fail with ENOSYS. Some functions are actually named
39075 something starting with __ and the normal name is an alias. */
39076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39079 char (*f) () = $ac_func;
39088 return f != $ac_func;
39093 rm -f conftest.$ac_objext conftest$ac_exeext
39094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39095 (eval $ac_link) 2>conftest.er1
39097 grep -v '^ *+' conftest.er1 >conftest.err
39099 cat conftest.err >&5
39100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101 (exit $ac_status); } &&
39102 { ac_try='test -z "$ac_c_werror_flag"
39103 || test ! -s conftest.err'
39104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39105 (eval $ac_try) 2>&5
39107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108 (exit $ac_status); }; } &&
39109 { ac_try='test -s conftest$ac_exeext'
39110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39111 (eval $ac_try) 2>&5
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); }; }; then
39115 eval "$as_ac_var=yes"
39117 echo "$as_me: failed program was:" >&5
39118 sed 's/^/| /' conftest.$ac_ext >&5
39120 eval "$as_ac_var=no"
39122 rm -f conftest.err conftest.$ac_objext \
39123 conftest$ac_exeext conftest.$ac_ext
39125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39127 if test `eval echo '${'$as_ac_var'}'` = yes; then
39128 cat >>confdefs.h <<_ACEOF
39129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39251 echo "$as_me:$LINENO: checking for $ac_func" >&5
39252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39253 if eval "test \"\${$as_ac_var+set}\" = set"; then
39254 echo $ECHO_N "(cached) $ECHO_C" >&6
39256 cat >conftest.$ac_ext <<_ACEOF
39259 cat confdefs.h >>conftest.$ac_ext
39260 cat >>conftest.$ac_ext <<_ACEOF
39261 /* end confdefs.h. */
39262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39264 #define $ac_func innocuous_$ac_func
39266 /* System header to define __stub macros and hopefully few prototypes,
39267 which can conflict with char $ac_func (); below.
39268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39269 <limits.h> exists even on freestanding compilers. */
39272 # include <limits.h>
39274 # include <assert.h>
39279 /* Override any gcc2 internal prototype to avoid an error. */
39284 /* We use char because int might match the return type of a gcc2
39285 builtin and then its argument prototype would still apply. */
39287 /* The GNU C library defines this for functions which it implements
39288 to always fail with ENOSYS. Some functions are actually named
39289 something starting with __ and the normal name is an alias. */
39290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39293 char (*f) () = $ac_func;
39302 return f != $ac_func;
39307 rm -f conftest.$ac_objext conftest$ac_exeext
39308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39309 (eval $ac_link) 2>conftest.er1
39311 grep -v '^ *+' conftest.er1 >conftest.err
39313 cat conftest.err >&5
39314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315 (exit $ac_status); } &&
39316 { ac_try='test -z "$ac_c_werror_flag"
39317 || test ! -s conftest.err'
39318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39319 (eval $ac_try) 2>&5
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); }; } &&
39323 { ac_try='test -s conftest$ac_exeext'
39324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325 (eval $ac_try) 2>&5
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); }; }; then
39329 eval "$as_ac_var=yes"
39331 echo "$as_me: failed program was:" >&5
39332 sed 's/^/| /' conftest.$ac_ext >&5
39334 eval "$as_ac_var=no"
39336 rm -f conftest.err conftest.$ac_objext \
39337 conftest$ac_exeext conftest.$ac_ext
39339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39341 if test `eval echo '${'$as_ac_var'}'` = yes; then
39342 cat >>confdefs.h <<_ACEOF
39343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39352 for ac_func in getopt getpeereid
39354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39355 echo "$as_me:$LINENO: checking for $ac_func" >&5
39356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39357 if eval "test \"\${$as_ac_var+set}\" = set"; then
39358 echo $ECHO_N "(cached) $ECHO_C" >&6
39360 cat >conftest.$ac_ext <<_ACEOF
39363 cat confdefs.h >>conftest.$ac_ext
39364 cat >>conftest.$ac_ext <<_ACEOF
39365 /* end confdefs.h. */
39366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39368 #define $ac_func innocuous_$ac_func
39370 /* System header to define __stub macros and hopefully few prototypes,
39371 which can conflict with char $ac_func (); below.
39372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39373 <limits.h> exists even on freestanding compilers. */
39376 # include <limits.h>
39378 # include <assert.h>
39383 /* Override any gcc2 internal prototype to avoid an error. */
39388 /* We use char because int might match the return type of a gcc2
39389 builtin and then its argument prototype would still apply. */
39391 /* The GNU C library defines this for functions which it implements
39392 to always fail with ENOSYS. Some functions are actually named
39393 something starting with __ and the normal name is an alias. */
39394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39397 char (*f) () = $ac_func;
39406 return f != $ac_func;
39411 rm -f conftest.$ac_objext conftest$ac_exeext
39412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39413 (eval $ac_link) 2>conftest.er1
39415 grep -v '^ *+' conftest.er1 >conftest.err
39417 cat conftest.err >&5
39418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419 (exit $ac_status); } &&
39420 { ac_try='test -z "$ac_c_werror_flag"
39421 || test ! -s conftest.err'
39422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423 (eval $ac_try) 2>&5
39425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426 (exit $ac_status); }; } &&
39427 { ac_try='test -s conftest$ac_exeext'
39428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429 (eval $ac_try) 2>&5
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); }; }; then
39433 eval "$as_ac_var=yes"
39435 echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39438 eval "$as_ac_var=no"
39440 rm -f conftest.err conftest.$ac_objext \
39441 conftest$ac_exeext conftest.$ac_ext
39443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39445 if test `eval echo '${'$as_ac_var'}'` = yes; then
39446 cat >>confdefs.h <<_ACEOF
39447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39452 "$ac_func.$ac_objext" | \
39453 *" $ac_func.$ac_objext" | \
39454 "$ac_func.$ac_objext "* | \
39455 *" $ac_func.$ac_objext "* ) ;;
39456 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39464 if test "$ac_cv_func_getopt" != yes; then
39465 LIBSRCS="$LIBSRCS getopt.c"
39468 if test "$ac_cv_func_getpeereid" != yes; then
39470 for ac_func in getpeerucred
39472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39473 echo "$as_me:$LINENO: checking for $ac_func" >&5
39474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39475 if eval "test \"\${$as_ac_var+set}\" = set"; then
39476 echo $ECHO_N "(cached) $ECHO_C" >&6
39478 cat >conftest.$ac_ext <<_ACEOF
39481 cat confdefs.h >>conftest.$ac_ext
39482 cat >>conftest.$ac_ext <<_ACEOF
39483 /* end confdefs.h. */
39484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39486 #define $ac_func innocuous_$ac_func
39488 /* System header to define __stub macros and hopefully few prototypes,
39489 which can conflict with char $ac_func (); below.
39490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39491 <limits.h> exists even on freestanding compilers. */
39494 # include <limits.h>
39496 # include <assert.h>
39501 /* Override any gcc2 internal prototype to avoid an error. */
39506 /* We use char because int might match the return type of a gcc2
39507 builtin and then its argument prototype would still apply. */
39509 /* The GNU C library defines this for functions which it implements
39510 to always fail with ENOSYS. Some functions are actually named
39511 something starting with __ and the normal name is an alias. */
39512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39515 char (*f) () = $ac_func;
39524 return f != $ac_func;
39529 rm -f conftest.$ac_objext conftest$ac_exeext
39530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39531 (eval $ac_link) 2>conftest.er1
39533 grep -v '^ *+' conftest.er1 >conftest.err
39535 cat conftest.err >&5
39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); } &&
39538 { ac_try='test -z "$ac_c_werror_flag"
39539 || test ! -s conftest.err'
39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541 (eval $ac_try) 2>&5
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; } &&
39545 { ac_try='test -s conftest$ac_exeext'
39546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547 (eval $ac_try) 2>&5
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); }; }; then
39551 eval "$as_ac_var=yes"
39553 echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39556 eval "$as_ac_var=no"
39558 rm -f conftest.err conftest.$ac_objext \
39559 conftest$ac_exeext conftest.$ac_ext
39561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39563 if test `eval echo '${'$as_ac_var'}'` = yes; then
39564 cat >>confdefs.h <<_ACEOF
39565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39571 if test "$ac_cv_func_getpeerucred" != yes ; then
39572 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39573 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39574 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39575 echo $ECHO_N "(cached) $ECHO_C" >&6
39577 cat >conftest.$ac_ext <<_ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h. */
39583 $ac_includes_default
39584 #ifdef HAVE_SYS_SOCKET_H
39585 #include <sys/socket.h>
39591 static struct msghdr ac_aggr;
39592 if (ac_aggr.msg_accrightslen)
39598 rm -f conftest.$ac_objext
39599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39600 (eval $ac_compile) 2>conftest.er1
39602 grep -v '^ *+' conftest.er1 >conftest.err
39604 cat conftest.err >&5
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); } &&
39607 { ac_try='test -z "$ac_c_werror_flag"
39608 || test ! -s conftest.err'
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; } &&
39614 { ac_try='test -s conftest.$ac_objext'
39615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39616 (eval $ac_try) 2>&5
39618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 (exit $ac_status); }; }; then
39620 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39622 echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39625 cat >conftest.$ac_ext <<_ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h. */
39631 $ac_includes_default
39632 #ifdef HAVE_SYS_SOCKET_H
39633 #include <sys/socket.h>
39639 static struct msghdr ac_aggr;
39640 if (sizeof ac_aggr.msg_accrightslen)
39646 rm -f conftest.$ac_objext
39647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39648 (eval $ac_compile) 2>conftest.er1
39650 grep -v '^ *+' conftest.er1 >conftest.err
39652 cat conftest.err >&5
39653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654 (exit $ac_status); } &&
39655 { ac_try='test -z "$ac_c_werror_flag"
39656 || test ! -s conftest.err'
39657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39658 (eval $ac_try) 2>&5
39660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661 (exit $ac_status); }; } &&
39662 { ac_try='test -s conftest.$ac_objext'
39663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39664 (eval $ac_try) 2>&5
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); }; }; then
39668 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39670 echo "$as_me: failed program was:" >&5
39671 sed 's/^/| /' conftest.$ac_ext >&5
39673 ac_cv_member_struct_msghdr_msg_accrightslen=no
39675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39679 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39680 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39681 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39683 cat >>confdefs.h <<_ACEOF
39684 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39690 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39691 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39692 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39693 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39694 echo $ECHO_N "(cached) $ECHO_C" >&6
39696 cat >conftest.$ac_ext <<_ACEOF
39699 cat confdefs.h >>conftest.$ac_ext
39700 cat >>conftest.$ac_ext <<_ACEOF
39701 /* end confdefs.h. */
39702 $ac_includes_default
39703 #ifdef HAVE_SYS_SOCKET_H
39704 #include <sys/socket.h>
39710 static struct msghdr ac_aggr;
39711 if (ac_aggr.msg_control)
39717 rm -f conftest.$ac_objext
39718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39719 (eval $ac_compile) 2>conftest.er1
39721 grep -v '^ *+' conftest.er1 >conftest.err
39723 cat conftest.err >&5
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); } &&
39726 { ac_try='test -z "$ac_c_werror_flag"
39727 || test ! -s conftest.err'
39728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729 (eval $ac_try) 2>&5
39731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732 (exit $ac_status); }; } &&
39733 { ac_try='test -s conftest.$ac_objext'
39734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39735 (eval $ac_try) 2>&5
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); }; }; then
39739 ac_cv_member_struct_msghdr_msg_control=yes
39741 echo "$as_me: failed program was:" >&5
39742 sed 's/^/| /' conftest.$ac_ext >&5
39744 cat >conftest.$ac_ext <<_ACEOF
39747 cat confdefs.h >>conftest.$ac_ext
39748 cat >>conftest.$ac_ext <<_ACEOF
39749 /* end confdefs.h. */
39750 $ac_includes_default
39751 #ifdef HAVE_SYS_SOCKET_H
39752 #include <sys/socket.h>
39758 static struct msghdr ac_aggr;
39759 if (sizeof ac_aggr.msg_control)
39765 rm -f conftest.$ac_objext
39766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39767 (eval $ac_compile) 2>conftest.er1
39769 grep -v '^ *+' conftest.er1 >conftest.err
39771 cat conftest.err >&5
39772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773 (exit $ac_status); } &&
39774 { ac_try='test -z "$ac_c_werror_flag"
39775 || test ! -s conftest.err'
39776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39777 (eval $ac_try) 2>&5
39779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39780 (exit $ac_status); }; } &&
39781 { ac_try='test -s conftest.$ac_objext'
39782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39783 (eval $ac_try) 2>&5
39785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786 (exit $ac_status); }; }; then
39787 ac_cv_member_struct_msghdr_msg_control=yes
39789 echo "$as_me: failed program was:" >&5
39790 sed 's/^/| /' conftest.$ac_ext >&5
39792 ac_cv_member_struct_msghdr_msg_control=no
39794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39798 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39799 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39800 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39802 cat >>confdefs.h <<_ACEOF
39803 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39810 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39811 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39812 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39813 echo $ECHO_N "(cached) $ECHO_C" >&6
39815 cat >conftest.$ac_ext <<_ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h. */
39821 $ac_includes_default
39825 static struct stat ac_aggr;
39826 if (ac_aggr.st_fstype)
39832 rm -f conftest.$ac_objext
39833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39834 (eval $ac_compile) 2>conftest.er1
39836 grep -v '^ *+' conftest.er1 >conftest.err
39838 cat conftest.err >&5
39839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840 (exit $ac_status); } &&
39841 { ac_try='test -z "$ac_c_werror_flag"
39842 || test ! -s conftest.err'
39843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39844 (eval $ac_try) 2>&5
39846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39847 (exit $ac_status); }; } &&
39848 { ac_try='test -s conftest.$ac_objext'
39849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39850 (eval $ac_try) 2>&5
39852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39853 (exit $ac_status); }; }; then
39854 ac_cv_member_struct_stat_st_fstype=yes
39856 echo "$as_me: failed program was:" >&5
39857 sed 's/^/| /' conftest.$ac_ext >&5
39859 cat >conftest.$ac_ext <<_ACEOF
39862 cat confdefs.h >>conftest.$ac_ext
39863 cat >>conftest.$ac_ext <<_ACEOF
39864 /* end confdefs.h. */
39865 $ac_includes_default
39869 static struct stat ac_aggr;
39870 if (sizeof ac_aggr.st_fstype)
39876 rm -f conftest.$ac_objext
39877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39878 (eval $ac_compile) 2>conftest.er1
39880 grep -v '^ *+' conftest.er1 >conftest.err
39882 cat conftest.err >&5
39883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884 (exit $ac_status); } &&
39885 { ac_try='test -z "$ac_c_werror_flag"
39886 || test ! -s conftest.err'
39887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888 (eval $ac_try) 2>&5
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); }; } &&
39892 { ac_try='test -s conftest.$ac_objext'
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; }; then
39898 ac_cv_member_struct_stat_st_fstype=yes
39900 echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39903 ac_cv_member_struct_stat_st_fstype=no
39905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39910 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39911 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39913 cat >>confdefs.h <<_ACEOF
39914 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39919 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39920 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39921 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39922 echo $ECHO_N "(cached) $ECHO_C" >&6
39924 cat >conftest.$ac_ext <<_ACEOF
39927 cat confdefs.h >>conftest.$ac_ext
39928 cat >>conftest.$ac_ext <<_ACEOF
39929 /* end confdefs.h. */
39930 $ac_includes_default
39934 static struct stat ac_aggr;
39935 if (ac_aggr.st_vfstype)
39941 rm -f conftest.$ac_objext
39942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39943 (eval $ac_compile) 2>conftest.er1
39945 grep -v '^ *+' conftest.er1 >conftest.err
39947 cat conftest.err >&5
39948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); } &&
39950 { ac_try='test -z "$ac_c_werror_flag"
39951 || test ! -s conftest.err'
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; } &&
39957 { ac_try='test -s conftest.$ac_objext'
39958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39959 (eval $ac_try) 2>&5
39961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39962 (exit $ac_status); }; }; then
39963 ac_cv_member_struct_stat_st_vfstype=yes
39965 echo "$as_me: failed program was:" >&5
39966 sed 's/^/| /' conftest.$ac_ext >&5
39968 cat >conftest.$ac_ext <<_ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h. */
39974 $ac_includes_default
39978 static struct stat ac_aggr;
39979 if (sizeof ac_aggr.st_vfstype)
39985 rm -f conftest.$ac_objext
39986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39987 (eval $ac_compile) 2>conftest.er1
39989 grep -v '^ *+' conftest.er1 >conftest.err
39991 cat conftest.err >&5
39992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993 (exit $ac_status); } &&
39994 { ac_try='test -z "$ac_c_werror_flag"
39995 || test ! -s conftest.err'
39996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39997 (eval $ac_try) 2>&5
39999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40000 (exit $ac_status); }; } &&
40001 { ac_try='test -s conftest.$ac_objext'
40002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40003 (eval $ac_try) 2>&5
40005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006 (exit $ac_status); }; }; then
40007 ac_cv_member_struct_stat_st_vfstype=yes
40009 echo "$as_me: failed program was:" >&5
40010 sed 's/^/| /' conftest.$ac_ext >&5
40012 ac_cv_member_struct_stat_st_vfstype=no
40014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40018 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
40019 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
40020 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
40022 cat >>confdefs.h <<_ACEOF
40023 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
40029 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
40030 cat >conftest.$ac_ext <<_ACEOF
40031 struct stat st; char *ptr=st.st_fstype;
40033 rm -f conftest.$ac_objext
40034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40035 (eval $ac_compile) 2>conftest.er1
40037 grep -v '^ *+' conftest.er1 >conftest.err
40039 cat conftest.err >&5
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); } &&
40042 { ac_try='test -z "$ac_c_werror_flag"
40043 || test ! -s conftest.err'
40044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045 (eval $ac_try) 2>&5
40047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048 (exit $ac_status); }; } &&
40049 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
40056 cat >>confdefs.h <<\_ACEOF
40057 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
40061 echo "$as_me: failed program was:" >&5
40062 sed 's/^/| /' conftest.$ac_ext >&5
40065 cat >>confdefs.h <<\_ACEOF
40066 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
40070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40073 LIBSRCS="$LIBSRCS getpeereid.c"
40076 if test "$ac_cv_func_snprintf" != yes ||
40077 test "$ac_cv_func_vsnprintf" != yes; then
40078 if test "$ac_cv_func_snprintf" != yes; then
40080 cat >>confdefs.h <<\_ACEOF
40081 #define snprintf ber_pvt_snprintf
40085 if test "$ac_cv_func_vsnprintf" != yes; then
40087 cat >>confdefs.h <<\_ACEOF
40088 #define vsnprintf ber_pvt_vsnprintf
40095 if test "$ol_enable_slapi" != no ; then
40097 for ac_header in ltdl.h
40099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40101 echo "$as_me:$LINENO: checking for $ac_header" >&5
40102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40104 echo $ECHO_N "(cached) $ECHO_C" >&6
40106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40109 # Is the header compilable?
40110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40112 cat >conftest.$ac_ext <<_ACEOF
40115 cat confdefs.h >>conftest.$ac_ext
40116 cat >>conftest.$ac_ext <<_ACEOF
40117 /* end confdefs.h. */
40118 $ac_includes_default
40119 #include <$ac_header>
40121 rm -f conftest.$ac_objext
40122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40123 (eval $ac_compile) 2>conftest.er1
40125 grep -v '^ *+' conftest.er1 >conftest.err
40127 cat conftest.err >&5
40128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129 (exit $ac_status); } &&
40130 { ac_try='test -z "$ac_c_werror_flag"
40131 || test ! -s conftest.err'
40132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133 (eval $ac_try) 2>&5
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); }; } &&
40137 { ac_try='test -s conftest.$ac_objext'
40138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40139 (eval $ac_try) 2>&5
40141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142 (exit $ac_status); }; }; then
40143 ac_header_compiler=yes
40145 echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40148 ac_header_compiler=no
40150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40152 echo "${ECHO_T}$ac_header_compiler" >&6
40154 # Is the header present?
40155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40157 cat >conftest.$ac_ext <<_ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h. */
40163 #include <$ac_header>
40165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40168 grep -v '^ *+' conftest.er1 >conftest.err
40170 cat conftest.err >&5
40171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172 (exit $ac_status); } >/dev/null; then
40173 if test -s conftest.err; then
40174 ac_cpp_err=$ac_c_preproc_warn_flag
40175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40182 if test -z "$ac_cpp_err"; then
40183 ac_header_preproc=yes
40185 echo "$as_me: failed program was:" >&5
40186 sed 's/^/| /' conftest.$ac_ext >&5
40188 ac_header_preproc=no
40190 rm -f conftest.err conftest.$ac_ext
40191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40192 echo "${ECHO_T}$ac_header_preproc" >&6
40194 # So? What about this header?
40195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40201 ac_header_preproc=yes
40204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40218 ## --------------------------------------------- ##
40219 ## Report this to <http://www.openldap.org/its/> ##
40220 ## --------------------------------------------- ##
40223 sed "s/^/$as_me: WARNING: /" >&2
40226 echo "$as_me:$LINENO: checking for $ac_header" >&5
40227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40229 echo $ECHO_N "(cached) $ECHO_C" >&6
40231 eval "$as_ac_Header=\$ac_header_preproc"
40233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40238 cat >>confdefs.h <<_ACEOF
40239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40247 if test $ac_cv_header_ltdl_h != yes ; then
40248 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40249 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40250 { (exit 1); exit 1; }; }
40252 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40253 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40254 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40255 echo $ECHO_N "(cached) $ECHO_C" >&6
40257 ac_check_lib_save_LIBS=$LIBS
40258 LIBS="-lltdl $LIBS"
40259 cat >conftest.$ac_ext <<_ACEOF
40262 cat confdefs.h >>conftest.$ac_ext
40263 cat >>conftest.$ac_ext <<_ACEOF
40264 /* end confdefs.h. */
40266 /* Override any gcc2 internal prototype to avoid an error. */
40270 /* We use char because int might match the return type of a gcc2
40271 builtin and then its argument prototype would still apply. */
40281 rm -f conftest.$ac_objext conftest$ac_exeext
40282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40283 (eval $ac_link) 2>conftest.er1
40285 grep -v '^ *+' conftest.er1 >conftest.err
40287 cat conftest.err >&5
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); } &&
40290 { ac_try='test -z "$ac_c_werror_flag"
40291 || test ! -s conftest.err'
40292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293 (eval $ac_try) 2>&5
40295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296 (exit $ac_status); }; } &&
40297 { ac_try='test -s conftest$ac_exeext'
40298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40299 (eval $ac_try) 2>&5
40301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302 (exit $ac_status); }; }; then
40303 ac_cv_lib_ltdl_lt_dlinit=yes
40305 echo "$as_me: failed program was:" >&5
40306 sed 's/^/| /' conftest.$ac_ext >&5
40308 ac_cv_lib_ltdl_lt_dlinit=no
40310 rm -f conftest.err conftest.$ac_objext \
40311 conftest$ac_exeext conftest.$ac_ext
40312 LIBS=$ac_check_lib_save_LIBS
40314 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40315 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40316 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40319 LIBSLAPI=libslapi.a
40320 LIBSLAPITOOLS=../libslapi.a
40322 cat >>confdefs.h <<\_ACEOF
40323 #define HAVE_LIBLTDL 1
40328 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40329 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40330 { (exit 1); exit 1; }; }
40335 cat >>confdefs.h <<\_ACEOF
40336 #define LDAP_SLAPI 1
40341 if test "$ol_enable_debug" != no ; then
40342 if test "$ol_enable_debug" = traditional; then
40344 cat >>confdefs.h <<\_ACEOF
40345 #define OLD_DEBUG 1
40350 cat >>confdefs.h <<\_ACEOF
40351 #define LDAP_DEBUG 1
40355 if test "$ol_enable_syslog" = yes ; then
40357 cat >>confdefs.h <<\_ACEOF
40358 #define LDAP_SYSLOG 1
40362 if test "$ol_enable_proctitle" != no ; then
40364 cat >>confdefs.h <<\_ACEOF
40365 #define LDAP_PROCTITLE 1
40369 if test "$ol_enable_referrals" != no ; then
40371 cat >>confdefs.h <<\_ACEOF
40372 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40376 if test "$ol_enable_local" != no; then
40378 cat >>confdefs.h <<\_ACEOF
40379 #define LDAP_PF_LOCAL 1
40383 if test "$ol_link_ipv6" != no; then
40385 cat >>confdefs.h <<\_ACEOF
40386 #define LDAP_PF_INET6 1
40390 if test "$ol_enable_cleartext" != no ; then
40392 cat >>confdefs.h <<\_ACEOF
40393 #define SLAPD_CLEARTEXT 1
40397 if test "$ol_enable_crypt" != no ; then
40399 cat >>confdefs.h <<\_ACEOF
40400 #define SLAPD_CRYPT 1
40404 if test "$ol_link_spasswd" != no ; then
40406 cat >>confdefs.h <<\_ACEOF
40407 #define SLAPD_SPASSWD 1
40411 if test "$ol_enable_rlookups" != no ; then
40413 cat >>confdefs.h <<\_ACEOF
40414 #define SLAPD_RLOOKUPS 1
40418 if test "$ol_enable_aci" != no ; then
40419 if test $ol_enable_dynacl = no ; then
40420 ol_enable_dynacl=yes
40421 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40422 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40424 if test "$ol_enable_aci" = mod ; then
40425 MFLAG=SLAPD_MOD_DYNAMIC
40426 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40427 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40428 { (exit 1); exit 1; }; }
40430 MFLAG=SLAPD_MOD_STATIC
40432 WITH_ACI_ENABLED=$ol_enable_aci
40434 cat >>confdefs.h <<_ACEOF
40435 #define SLAPD_ACI_ENABLED $MFLAG
40439 WITH_ACI_ENABLED=no
40441 if test "$ol_enable_dynacl" != no ; then
40443 cat >>confdefs.h <<\_ACEOF
40444 #define SLAP_DYNACL 1
40449 if test "$ol_link_modules" != no ; then
40451 cat >>confdefs.h <<\_ACEOF
40452 #define SLAPD_MODULES 1
40456 SLAPD_MODULES_LDFLAGS="-dlopen self"
40460 cat >>confdefs.h <<\_ACEOF
40461 #define SLAPD_MOD_STATIC 1
40465 cat >>confdefs.h <<\_ACEOF
40466 #define SLAPD_MOD_DYNAMIC 2
40470 if test "$ol_enable_monitor" != no ; then
40472 BUILD_MONITOR=$ol_enable_monitor
40473 if test "$ol_enable_monitor" = mod ; then
40474 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40475 MFLAG=SLAPD_MOD_DYNAMIC
40477 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40478 MFLAG=SLAPD_MOD_STATIC
40481 cat >>confdefs.h <<_ACEOF
40482 #define SLAPD_MONITOR $MFLAG
40487 if test "$ol_enable_bdb" != no ; then
40489 BUILD_BDB=$ol_enable_bdb
40490 if test "$ol_enable_bdb" = mod ; then
40491 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40492 MFLAG=SLAPD_MOD_DYNAMIC
40494 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40495 MFLAG=SLAPD_MOD_STATIC
40498 cat >>confdefs.h <<_ACEOF
40499 #define SLAPD_BDB $MFLAG
40504 if test "$ol_enable_dnssrv" != no ; then
40506 BUILD_DNSSRV=$ol_enable_dnssrv
40507 if test "$ol_enable_dnssrv" = mod ; then
40508 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40509 MFLAG=SLAPD_MOD_DYNAMIC
40511 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40512 MFLAG=SLAPD_MOD_STATIC
40515 cat >>confdefs.h <<_ACEOF
40516 #define SLAPD_DNSSRV $MFLAG
40521 if test "$ol_enable_hdb" != no ; then
40523 BUILD_HDB=$ol_enable_hdb
40524 if test "$ol_enable_hdb" = mod ; then
40525 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40526 MFLAG=SLAPD_MOD_DYNAMIC
40528 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40529 MFLAG=SLAPD_MOD_STATIC
40532 cat >>confdefs.h <<_ACEOF
40533 #define SLAPD_HDB $MFLAG
40538 if test "$ol_enable_ldap" != no ; then
40540 BUILD_LDAP=$ol_enable_ldap
40541 if test "$ol_enable_ldap" = mod ; then
40542 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40543 MFLAG=SLAPD_MOD_DYNAMIC
40545 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40546 MFLAG=SLAPD_MOD_STATIC
40549 cat >>confdefs.h <<_ACEOF
40550 #define SLAPD_LDAP $MFLAG
40555 if test "$ol_enable_meta" != no ; then
40557 BUILD_META=$ol_enable_meta
40559 if test "$ol_enable_meta" = mod ; then
40560 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40561 MFLAG=SLAPD_MOD_DYNAMIC
40563 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40564 MFLAG=SLAPD_MOD_STATIC
40567 cat >>confdefs.h <<_ACEOF
40568 #define SLAPD_META $MFLAG
40573 if test "$ol_enable_ndb" != no ; then
40575 BUILD_NDB=$ol_enable_ndb
40576 if test "$ol_enable_ndb" = mod ; then
40577 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
40578 MFLAG=SLAPD_MOD_DYNAMIC
40580 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
40581 MFLAG=SLAPD_MOD_STATIC
40584 cat >>confdefs.h <<_ACEOF
40585 #define SLAPD_NDB $MFLAG
40590 if test "$ol_enable_null" != no ; then
40592 BUILD_NULL=$ol_enable_null
40593 if test "$ol_enable_null" = mod ; then
40594 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40595 MFLAG=SLAPD_MOD_DYNAMIC
40597 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40598 MFLAG=SLAPD_MOD_STATIC
40601 cat >>confdefs.h <<_ACEOF
40602 #define SLAPD_NULL $MFLAG
40607 if test "$ol_enable_passwd" != no ; then
40609 BUILD_PASSWD=$ol_enable_passwd
40610 if test "$ol_enable_passwd" = mod ; then
40611 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40612 MFLAG=SLAPD_MOD_DYNAMIC
40614 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40615 MFLAG=SLAPD_MOD_STATIC
40618 cat >>confdefs.h <<_ACEOF
40619 #define SLAPD_PASSWD $MFLAG
40624 if test "$ol_link_perl" != no ; then
40626 BUILD_PERL=$ol_enable_perl
40627 if test "$ol_enable_perl" = mod ; then
40628 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40629 MFLAG=SLAPD_MOD_DYNAMIC
40631 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40632 MFLAG=SLAPD_MOD_STATIC
40635 cat >>confdefs.h <<_ACEOF
40636 #define SLAPD_PERL $MFLAG
40641 if test "$ol_enable_relay" != no ; then
40643 BUILD_RELAY=$ol_enable_relay
40644 if test "$ol_enable_relay" = mod ; then
40645 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40646 MFLAG=SLAPD_MOD_DYNAMIC
40648 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40649 MFLAG=SLAPD_MOD_STATIC
40652 cat >>confdefs.h <<_ACEOF
40653 #define SLAPD_RELAY $MFLAG
40658 if test "$ol_enable_shell" != no ; then
40659 if test "$ol_link_threads" != no ; then
40660 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40661 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40664 BUILD_SHELL=$ol_enable_shell
40665 if test "$ol_enable_shell" = mod ; then
40666 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40667 MFLAG=SLAPD_MOD_DYNAMIC
40669 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40670 MFLAG=SLAPD_MOD_STATIC
40673 cat >>confdefs.h <<_ACEOF
40674 #define SLAPD_SHELL $MFLAG
40679 if test "$ol_enable_sock" != no ; then
40681 BUILD_SOCK=$ol_enable_sock
40682 if test "$ol_enable_sock" = mod ; then
40683 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
40684 MFLAG=SLAPD_MOD_DYNAMIC
40686 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
40687 MFLAG=SLAPD_MOD_STATIC
40690 cat >>confdefs.h <<_ACEOF
40691 #define SLAPD_SOCK $MFLAG
40696 if test "$ol_link_sql" != no ; then
40698 BUILD_SQL=$ol_enable_sql
40699 if test "$ol_enable_sql" = mod; then
40700 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40701 MFLAG=SLAPD_MOD_DYNAMIC
40703 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40704 MFLAG=SLAPD_MOD_STATIC
40707 cat >>confdefs.h <<_ACEOF
40708 #define SLAPD_SQL $MFLAG
40713 if test "$ol_enable_accesslog" != no ; then
40714 BUILD_ACCESSLOG=$ol_enable_accesslog
40715 if test "$ol_enable_accesslog" = mod ; then
40716 MFLAG=SLAPD_MOD_DYNAMIC
40717 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40719 MFLAG=SLAPD_MOD_STATIC
40720 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40723 cat >>confdefs.h <<_ACEOF
40724 #define SLAPD_OVER_ACCESSLOG $MFLAG
40729 if test "$ol_enable_auditlog" != no ; then
40730 BUILD_AUDITLOG=$ol_enable_auditlog
40731 if test "$ol_enable_auditlog" = mod ; then
40732 MFLAG=SLAPD_MOD_DYNAMIC
40733 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40735 MFLAG=SLAPD_MOD_STATIC
40736 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40739 cat >>confdefs.h <<_ACEOF
40740 #define SLAPD_OVER_AUDITLOG $MFLAG
40745 if test "$ol_enable_constraint" != no ; then
40746 BUILD_CONSTRAINT=$ol_enable_constraint
40747 if test "$ol_enable_constraint" = mod ; then
40748 MFLAG=SLAPD_MOD_DYNAMIC
40749 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40751 MFLAG=SLAPD_MOD_STATIC
40752 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40755 cat >>confdefs.h <<_ACEOF
40756 #define SLAPD_OVER_CONSTRAINT $MFLAG
40761 if test "$ol_enable_dds" != no ; then
40762 BUILD_DDS=$ol_enable_dds
40763 if test "$ol_enable_dds" = mod ; then
40764 MFLAG=SLAPD_MOD_DYNAMIC
40765 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40767 MFLAG=SLAPD_MOD_STATIC
40768 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40771 cat >>confdefs.h <<_ACEOF
40772 #define SLAPD_OVER_DDS $MFLAG
40777 if test "$ol_enable_dyngroup" != no ; then
40778 BUILD_DYNGROUP=$ol_enable_dyngroup
40779 if test "$ol_enable_dyngroup" = mod ; then
40780 MFLAG=SLAPD_MOD_DYNAMIC
40781 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40783 MFLAG=SLAPD_MOD_STATIC
40784 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40787 cat >>confdefs.h <<_ACEOF
40788 #define SLAPD_OVER_DYNGROUP $MFLAG
40793 if test "$ol_enable_dynlist" != no ; then
40794 BUILD_DYNLIST=$ol_enable_dynlist
40795 if test "$ol_enable_dynlist" = mod ; then
40796 MFLAG=SLAPD_MOD_DYNAMIC
40797 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40799 MFLAG=SLAPD_MOD_STATIC
40800 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40803 cat >>confdefs.h <<_ACEOF
40804 #define SLAPD_OVER_DYNLIST $MFLAG
40809 if test "$ol_enable_memberof" != no ; then
40810 BUILD_MEMBEROF=$ol_enable_memberof
40811 if test "$ol_enable_memberof" = mod ; then
40812 MFLAG=SLAPD_MOD_DYNAMIC
40813 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
40815 MFLAG=SLAPD_MOD_STATIC
40816 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
40819 cat >>confdefs.h <<_ACEOF
40820 #define SLAPD_OVER_MEMBEROF $MFLAG
40825 if test "$ol_enable_ppolicy" != no ; then
40826 BUILD_PPOLICY=$ol_enable_ppolicy
40827 if test "$ol_enable_ppolicy" = mod ; then
40828 MFLAG=SLAPD_MOD_DYNAMIC
40829 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40831 MFLAG=SLAPD_MOD_STATIC
40832 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40835 cat >>confdefs.h <<_ACEOF
40836 #define SLAPD_OVER_PPOLICY $MFLAG
40841 if test "$ol_enable_proxycache" != no ; then
40842 BUILD_PROXYCACHE=$ol_enable_proxycache
40843 if test "$ol_enable_proxycache" = mod ; then
40844 MFLAG=SLAPD_MOD_DYNAMIC
40845 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40847 MFLAG=SLAPD_MOD_STATIC
40848 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40851 cat >>confdefs.h <<_ACEOF
40852 #define SLAPD_OVER_PROXYCACHE $MFLAG
40857 if test "$ol_enable_refint" != no ; then
40858 BUILD_REFINT=$ol_enable_refint
40859 if test "$ol_enable_refint" = mod ; then
40860 MFLAG=SLAPD_MOD_DYNAMIC
40861 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40863 MFLAG=SLAPD_MOD_STATIC
40864 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40867 cat >>confdefs.h <<_ACEOF
40868 #define SLAPD_OVER_REFINT $MFLAG
40873 if test "$ol_enable_retcode" != no ; then
40874 BUILD_RETCODE=$ol_enable_retcode
40875 if test "$ol_enable_retcode" = mod ; then
40876 MFLAG=SLAPD_MOD_DYNAMIC
40877 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40879 MFLAG=SLAPD_MOD_STATIC
40880 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40883 cat >>confdefs.h <<_ACEOF
40884 #define SLAPD_OVER_RETCODE $MFLAG
40889 if test "$ol_enable_rwm" != no ; then
40891 BUILD_RWM=$ol_enable_rwm
40892 if test "$ol_enable_rwm" = mod ; then
40893 MFLAG=SLAPD_MOD_DYNAMIC
40894 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40896 MFLAG=SLAPD_MOD_STATIC
40897 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40900 cat >>confdefs.h <<_ACEOF
40901 #define SLAPD_OVER_RWM $MFLAG
40906 if test "$ol_enable_seqmod" != no ; then
40907 BUILD_SEQMOD=$ol_enable_seqmod
40908 if test "$ol_enable_seqmod" = mod ; then
40909 MFLAG=SLAPD_MOD_DYNAMIC
40910 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40912 MFLAG=SLAPD_MOD_STATIC
40913 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40916 cat >>confdefs.h <<_ACEOF
40917 #define SLAPD_OVER_SEQMOD $MFLAG
40922 if test "$ol_enable_syncprov" != no ; then
40923 BUILD_SYNCPROV=$ol_enable_syncprov
40924 if test "$ol_enable_syncprov" = mod ; then
40925 MFLAG=SLAPD_MOD_DYNAMIC
40926 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40928 MFLAG=SLAPD_MOD_STATIC
40929 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40932 cat >>confdefs.h <<_ACEOF
40933 #define SLAPD_OVER_SYNCPROV $MFLAG
40938 if test "$ol_enable_translucent" != no ; then
40939 BUILD_TRANSLUCENT=$ol_enable_translucent
40940 if test "$ol_enable_translucent" = mod ; then
40941 MFLAG=SLAPD_MOD_DYNAMIC
40942 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40944 MFLAG=SLAPD_MOD_STATIC
40945 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40948 cat >>confdefs.h <<_ACEOF
40949 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40954 if test "$ol_enable_unique" != no ; then
40955 BUILD_UNIQUE=$ol_enable_unique
40956 if test "$ol_enable_unique" = mod ; then
40957 MFLAG=SLAPD_MOD_DYNAMIC
40958 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40960 MFLAG=SLAPD_MOD_STATIC
40961 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40964 cat >>confdefs.h <<_ACEOF
40965 #define SLAPD_OVER_UNIQUE $MFLAG
40970 if test "$ol_enable_valsort" != no ; then
40971 BUILD_VALSORT=$ol_enable_valsort
40972 if test "$ol_enable_valsort" = mod ; then
40973 MFLAG=SLAPD_MOD_DYNAMIC
40974 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40976 MFLAG=SLAPD_MOD_STATIC
40977 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40980 cat >>confdefs.h <<_ACEOF
40981 #define SLAPD_OVER_VALSORT $MFLAG
40986 if test "$ol_enable_rewrite" != no ; then
40988 cat >>confdefs.h <<\_ACEOF
40989 #define ENABLE_REWRITE 1
40995 if test "$ol_enable_slapi" != no ; then
40997 cat >>confdefs.h <<\_ACEOF
40998 #define ENABLE_SLAPI 1
41002 SLAPD_SLAPI_DEPEND=libslapi.a
41007 if test "$ac_cv_mingw32" = yes ; then
41009 SLAPD_MODULES_LDFLAGS=
41101 # Check whether --with-xxinstall or --without-xxinstall was given.
41102 if test "${with_xxinstall+set}" = set; then
41103 withval="$with_xxinstall"
41108 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-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/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-sock/Makefile:build/top.mk:servers/slapd/back-sock/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 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"
41111 ac_config_commands="$ac_config_commands default"
41115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41116 # Let make expand exec_prefix.
41117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41119 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41120 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41121 # trailing colons and then remove the whole line if VPATH becomes empty
41122 # (actually we leave an empty line to preserve line numbers).
41123 if test "x$srcdir" = x.; then
41124 ac_vpsub='/^[ ]*VPATH[ ]*=/{
41125 s/:*\$(srcdir):*/:/;
41126 s/:*\${srcdir}:*/:/;
41128 s/^\([^=]*=[ ]*\):*/\1/;
41134 DEFS=-DHAVE_CONFIG_H
41138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41139 # 1. Remove the extension, and $U if already installed.
41140 ac_i=`echo "$ac_i" |
41141 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41143 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41144 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41146 LIBOBJS=$ac_libobjs
41148 LTLIBOBJS=$ac_ltlibobjs
41151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41152 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
41153 Usually this means the macro was only invoked conditionally." >&5
41154 echo "$as_me: error: conditional \"AMDEP\" was never defined.
41155 Usually this means the macro was only invoked conditionally." >&2;}
41156 { (exit 1); exit 1; }; }
41158 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41159 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
41160 Usually this means the macro was only invoked conditionally." >&5
41161 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41162 Usually this means the macro was only invoked conditionally." >&2;}
41163 { (exit 1); exit 1; }; }
41165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41166 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
41167 Usually this means the macro was only invoked conditionally." >&5
41168 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41169 Usually this means the macro was only invoked conditionally." >&2;}
41170 { (exit 1); exit 1; }; }
41173 : ${CONFIG_STATUS=./config.status}
41174 ac_clean_files_save=$ac_clean_files
41175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41178 cat >$CONFIG_STATUS <<_ACEOF
41180 # Generated by $as_me.
41181 # Run this file to recreate the current configuration.
41182 # Compiler output produced by configure, useful for debugging
41183 # configure, is in config.log if it exists.
41186 ac_cs_recheck=false
41188 SHELL=\${CONFIG_SHELL-$SHELL}
41191 cat >>$CONFIG_STATUS <<\_ACEOF
41192 ## --------------------- ##
41193 ## M4sh Initialization. ##
41194 ## --------------------- ##
41196 # Be Bourne compatible
41197 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41200 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41201 # is contrary to our usage. Disable this feature.
41202 alias -g '${1+"$@"}'='"$@"'
41203 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41206 DUALCASE=1; export DUALCASE # for MKS sh
41208 # Support unset when possible.
41209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41216 # Work around bugs in pre-3.0 UWIN ksh.
41217 $as_unset ENV MAIL MAILPATH
41224 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41225 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41226 LC_TELEPHONE LC_TIME
41228 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41229 eval $as_var=C; export $as_var
41235 # Required to use basename.
41236 if expr a : '\(a\)' >/dev/null 2>&1; then
41242 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41243 as_basename=basename
41249 # Name of the executable.
41250 as_me=`$as_basename "$0" ||
41251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41252 X"$0" : 'X\(//\)$' \| \
41253 X"$0" : 'X\(/\)$' \| \
41254 . : '\(.\)' 2>/dev/null ||
41256 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41257 /^X\/\(\/\/\)$/{ s//\1/; q; }
41258 /^X\/\(\/\).*/{ s//\1/; q; }
41262 # PATH needs CR, and LINENO needs CR and PATH.
41263 # Avoid depending upon Character Ranges.
41264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41267 as_cr_digits='0123456789'
41268 as_cr_alnum=$as_cr_Letters$as_cr_digits
41270 # The user is always right.
41271 if test "${PATH_SEPARATOR+set}" != set; then
41272 echo "#! /bin/sh" >conf$$.sh
41273 echo "exit 0" >>conf$$.sh
41275 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41284 as_lineno_1=$LINENO
41285 as_lineno_2=$LINENO
41286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41287 test "x$as_lineno_1" != "x$as_lineno_2" &&
41288 test "x$as_lineno_3" = "x$as_lineno_2" || {
41289 # Find who we are. Look in the path if we contain no path at all
41292 *[\\/]* ) as_myself=$0 ;;
41293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41294 for as_dir in $PATH
41297 test -z "$as_dir" && as_dir=.
41298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41303 # We did not find ourselves, most probably we were run as `sh COMMAND'
41304 # in which case we are not to be found in the path.
41305 if test "x$as_myself" = x; then
41308 if test ! -f "$as_myself"; then
41309 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41311 { (exit 1); exit 1; }; }
41313 case $CONFIG_SHELL in
41315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41319 test -z "$as_dir" && as_dir=.
41320 for as_base in sh bash ksh sh5; do
41323 if ("$as_dir/$as_base" -c '
41324 as_lineno_1=$LINENO
41325 as_lineno_2=$LINENO
41326 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41327 test "x$as_lineno_1" != "x$as_lineno_2" &&
41328 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41329 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41330 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41331 CONFIG_SHELL=$as_dir/$as_base
41332 export CONFIG_SHELL
41333 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41342 # uniformly replaced by the line number. The first 'sed' inserts a
41343 # line-number line before each line; the second 'sed' does the real
41344 # work. The second script uses 'N' to pair each line-number line
41345 # with the numbered line, and appends trailing '-' during
41346 # substitution so that $LINENO is not a special case at line end.
41347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41348 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41349 sed '=' <$as_myself |
41354 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41357 s,^['$as_cr_digits']*\n,,
41358 ' >$as_me.lineno &&
41359 chmod +x $as_me.lineno ||
41360 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41361 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41362 { (exit 1); exit 1; }; }
41364 # Don't try to exec as it changes $[0], causing all sort of problems
41365 # (the dirname of $[0] is not the place where we might find the
41366 # original and so on. Autoconf is especially sensible to this).
41368 # Exit status is that of the last command.
41373 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41374 *c*,-n*) ECHO_N= ECHO_C='
41376 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41377 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41380 if expr a : '\(a\)' >/dev/null 2>&1; then
41386 rm -f conf$$ conf$$.exe conf$$.file
41388 if ln -s conf$$.file conf$$ 2>/dev/null; then
41389 # We could just check for DJGPP; but this test a) works b) is more generic
41390 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41391 if test -f conf$$.exe; then
41392 # Don't use ln at all; we don't have any links
41397 elif ln conf$$.file conf$$ 2>/dev/null; then
41402 rm -f conf$$ conf$$.exe conf$$.file
41404 if mkdir -p . 2>/dev/null; then
41407 test -d ./-p && rmdir ./-p
41411 as_executable_p="test -f"
41413 # Sed expression to map a string onto a valid CPP name.
41414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41416 # Sed expression to map a string onto a valid variable name.
41417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41421 # We need space, tab and new line, in precisely that order.
41431 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41432 # report actual input values of CONFIG_FILES etc. instead of their
41433 # values after options handling. Logging --version etc. is OK.
41437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41438 ## Running $as_me. ##
41443 This file was extended by $as_me, which was
41444 generated by GNU Autoconf 2.59. Invocation command line was
41446 CONFIG_FILES = $CONFIG_FILES
41447 CONFIG_HEADERS = $CONFIG_HEADERS
41448 CONFIG_LINKS = $CONFIG_LINKS
41449 CONFIG_COMMANDS = $CONFIG_COMMANDS
41453 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41457 # Files that config.status was made for.
41458 if test -n "$ac_config_files"; then
41459 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41462 if test -n "$ac_config_headers"; then
41463 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41466 if test -n "$ac_config_links"; then
41467 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41470 if test -n "$ac_config_commands"; then
41471 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41474 cat >>$CONFIG_STATUS <<\_ACEOF
41477 \`$as_me' instantiates files from templates according to the
41478 current configuration.
41480 Usage: $0 [OPTIONS] [FILE]...
41482 -h, --help print this help, then exit
41483 -V, --version print version number, then exit
41484 -q, --quiet do not print progress messages
41485 -d, --debug don't remove temporary files
41486 --recheck update $as_me by reconfiguring in the same conditions
41487 --file=FILE[:TEMPLATE]
41488 instantiate the configuration file FILE
41489 --header=FILE[:TEMPLATE]
41490 instantiate the configuration header FILE
41492 Configuration files:
41495 Configuration headers:
41498 Configuration commands:
41501 Report bugs to <bug-autoconf@gnu.org>."
41504 cat >>$CONFIG_STATUS <<_ACEOF
41507 configured by $0, generated by GNU Autoconf 2.59,
41508 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41510 Copyright (C) 2003 Free Software Foundation, Inc.
41511 This config.status script is free software; the Free Software Foundation
41512 gives unlimited permission to copy, distribute and modify it."
41517 cat >>$CONFIG_STATUS <<\_ACEOF
41518 # If no file are specified by the user, then we need to provide default
41519 # value. By we need to know if files were specified by the user.
41525 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41526 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41534 *) # This is not an option, so the user has probably given explicit
41537 ac_need_defaults=false;;
41541 # Handling of the options.
41543 cat >>$CONFIG_STATUS <<\_ACEOF
41544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41546 --version | --vers* | -V )
41547 echo "$ac_cs_version"; exit 0 ;;
41549 # Conflict between --help and --header
41550 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41551 Try \`$0 --help' for more information." >&5
41552 echo "$as_me: error: ambiguous option: $1
41553 Try \`$0 --help' for more information." >&2;}
41554 { (exit 1); exit 1; }; };;
41555 --help | --hel | -h )
41556 echo "$ac_cs_usage"; exit 0 ;;
41557 --debug | --d* | -d )
41559 --file | --fil | --fi | --f )
41561 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41562 ac_need_defaults=false;;
41563 --header | --heade | --head | --hea )
41565 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41566 ac_need_defaults=false;;
41567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41571 # This is an error.
41572 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41573 Try \`$0 --help' for more information." >&5
41574 echo "$as_me: error: unrecognized option: $1
41575 Try \`$0 --help' for more information." >&2;}
41576 { (exit 1); exit 1; }; } ;;
41578 *) ac_config_targets="$ac_config_targets $1" ;;
41584 ac_configure_extra_args=
41586 if $ac_cs_silent; then
41588 ac_configure_extra_args="$ac_configure_extra_args --silent"
41592 cat >>$CONFIG_STATUS <<_ACEOF
41593 if \$ac_cs_recheck; then
41594 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41595 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41600 cat >>$CONFIG_STATUS <<_ACEOF
41602 # INIT-COMMANDS section.
41605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41607 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41608 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41615 cat >>$CONFIG_STATUS <<\_ACEOF
41616 for ac_config_target in $ac_config_targets
41618 case "$ac_config_target" in
41619 # Handling of arguments.
41620 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41621 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41622 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41623 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41624 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41625 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41626 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41627 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41628 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41629 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41630 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41631 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41632 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41633 "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" ;;
41634 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41635 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41636 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41637 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41638 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41639 "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" ;;
41640 "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" ;;
41641 "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" ;;
41642 "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" ;;
41643 "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" ;;
41644 "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" ;;
41645 "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" ;;
41646 "servers/slapd/back-ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
41647 "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" ;;
41648 "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" ;;
41649 "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" ;;
41650 "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" ;;
41651 "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" ;;
41652 "servers/slapd/back-sock/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
41653 "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" ;;
41654 "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" ;;
41655 "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" ;;
41656 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41657 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41658 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41659 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41660 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41661 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41662 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41663 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41664 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41665 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41666 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41667 { (exit 1); exit 1; }; };;
41671 # If the user did not use the arguments to specify the items to instantiate,
41672 # then the envvar interface is used. Set only those that are not.
41673 # We use the long form for the default assignment because of an extremely
41674 # bizarre bug on SunOS 4.1.3.
41675 if $ac_need_defaults; then
41676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41678 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41681 # Have a temporary directory for convenience. Make it in the build tree
41682 # simply because there is no reason to put it here, and in addition,
41683 # creating and moving files from /tmp can sometimes cause problems.
41684 # Create a temporary directory, and hook for its removal unless debugging.
41687 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41688 trap '{ (exit 1); exit 1; }' 1 2 13 15
41691 # Create a (secure) tmp directory for tmp files.
41694 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41695 test -n "$tmp" && test -d "$tmp"
41698 tmp=./confstat$$-$RANDOM
41699 (umask 077 && mkdir $tmp)
41702 echo "$me: cannot create a temporary directory in ." >&2
41703 { (exit 1); exit 1; }
41708 cat >>$CONFIG_STATUS <<_ACEOF
41711 # CONFIG_FILES section.
41714 # No need to generate the scripts if there are no CONFIG_FILES.
41715 # This happens for instance when ./config.status config.h
41716 if test -n "\$CONFIG_FILES"; then
41717 # Protect against being on the right side of a sed subst in config.status.
41718 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41719 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41720 s,@SHELL@,$SHELL,;t t
41721 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41722 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41723 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41724 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41725 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41726 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41727 s,@exec_prefix@,$exec_prefix,;t t
41728 s,@prefix@,$prefix,;t t
41729 s,@program_transform_name@,$program_transform_name,;t t
41730 s,@bindir@,$bindir,;t t
41731 s,@sbindir@,$sbindir,;t t
41732 s,@libexecdir@,$libexecdir,;t t
41733 s,@datadir@,$datadir,;t t
41734 s,@sysconfdir@,$sysconfdir,;t t
41735 s,@sharedstatedir@,$sharedstatedir,;t t
41736 s,@localstatedir@,$localstatedir,;t t
41737 s,@libdir@,$libdir,;t t
41738 s,@includedir@,$includedir,;t t
41739 s,@oldincludedir@,$oldincludedir,;t t
41740 s,@infodir@,$infodir,;t t
41741 s,@mandir@,$mandir,;t t
41742 s,@build_alias@,$build_alias,;t t
41743 s,@host_alias@,$host_alias,;t t
41744 s,@target_alias@,$target_alias,;t t
41745 s,@DEFS@,$DEFS,;t t
41746 s,@ECHO_C@,$ECHO_C,;t t
41747 s,@ECHO_N@,$ECHO_N,;t t
41748 s,@ECHO_T@,$ECHO_T,;t t
41749 s,@LIBS@,$LIBS,;t t
41750 s,@build@,$build,;t t
41751 s,@build_cpu@,$build_cpu,;t t
41752 s,@build_vendor@,$build_vendor,;t t
41753 s,@build_os@,$build_os,;t t
41754 s,@host@,$host,;t t
41755 s,@host_cpu@,$host_cpu,;t t
41756 s,@host_vendor@,$host_vendor,;t t
41757 s,@host_os@,$host_os,;t t
41758 s,@target@,$target,;t t
41759 s,@target_cpu@,$target_cpu,;t t
41760 s,@target_vendor@,$target_vendor,;t t
41761 s,@target_os@,$target_os,;t t
41762 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41763 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41764 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41765 s,@CYGPATH_W@,$CYGPATH_W,;t t
41766 s,@PACKAGE@,$PACKAGE,;t t
41767 s,@VERSION@,$VERSION,;t t
41768 s,@ACLOCAL@,$ACLOCAL,;t t
41769 s,@AUTOCONF@,$AUTOCONF,;t t
41770 s,@AUTOMAKE@,$AUTOMAKE,;t t
41771 s,@AUTOHEADER@,$AUTOHEADER,;t t
41772 s,@MAKEINFO@,$MAKEINFO,;t t
41773 s,@install_sh@,$install_sh,;t t
41774 s,@STRIP@,$STRIP,;t t
41775 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41776 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41777 s,@mkdir_p@,$mkdir_p,;t t
41779 s,@SET_MAKE@,$SET_MAKE,;t t
41780 s,@am__leading_dot@,$am__leading_dot,;t t
41781 s,@AMTAR@,$AMTAR,;t t
41782 s,@am__tar@,$am__tar,;t t
41783 s,@am__untar@,$am__untar,;t t
41784 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41785 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41786 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41787 s,@top_builddir@,$top_builddir,;t t
41788 s,@ldap_subdir@,$ldap_subdir,;t t
41791 s,@CFLAGS@,$CFLAGS,;t t
41792 s,@LDFLAGS@,$LDFLAGS,;t t
41793 s,@CPPFLAGS@,$CPPFLAGS,;t t
41794 s,@ac_ct_CC@,$ac_ct_CC,;t t
41795 s,@EXEEXT@,$EXEEXT,;t t
41796 s,@OBJEXT@,$OBJEXT,;t t
41797 s,@DEPDIR@,$DEPDIR,;t t
41798 s,@am__include@,$am__include,;t t
41799 s,@am__quote@,$am__quote,;t t
41800 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41801 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41802 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41803 s,@CCDEPMODE@,$CCDEPMODE,;t t
41804 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41805 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41806 s,@EGREP@,$EGREP,;t t
41807 s,@LN_S@,$LN_S,;t t
41808 s,@ECHO@,$ECHO,;t t
41809 s,@ac_ct_AR@,$ac_ct_AR,;t t
41810 s,@RANLIB@,$RANLIB,;t t
41811 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41812 s,@DLLTOOL@,$DLLTOOL,;t t
41813 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41815 s,@ac_ct_AS@,$ac_ct_AS,;t t
41816 s,@OBJDUMP@,$OBJDUMP,;t t
41817 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41819 s,@LIBTOOL@,$LIBTOOL,;t t
41820 s,@PERLBIN@,$PERLBIN,;t t
41821 s,@OL_MKDEP@,$OL_MKDEP,;t t
41822 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41823 s,@LTSTATIC@,$LTSTATIC,;t t
41824 s,@MYSQL@,$MYSQL,;t t
41825 s,@LIBOBJS@,$LIBOBJS,;t t
41826 s,@LIBSRCS@,$LIBSRCS,;t t
41827 s,@PLAT@,$PLAT,;t t
41828 s,@WITH_SASL@,$WITH_SASL,;t t
41829 s,@WITH_TLS@,$WITH_TLS,;t t
41830 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41831 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41832 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41833 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41834 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41835 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41836 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41837 s,@BUILD_BDB@,$BUILD_BDB,;t t
41838 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41839 s,@BUILD_HDB@,$BUILD_HDB,;t t
41840 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41841 s,@BUILD_META@,$BUILD_META,;t t
41842 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41843 s,@BUILD_NDB@,$BUILD_NDB,;t t
41844 s,@BUILD_NULL@,$BUILD_NULL,;t t
41845 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41846 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41847 s,@BUILD_PERL@,$BUILD_PERL,;t t
41848 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41849 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
41850 s,@BUILD_SQL@,$BUILD_SQL,;t t
41851 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41852 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41853 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41854 s,@BUILD_DDS@,$BUILD_DDS,;t t
41855 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41856 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41857 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41858 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41859 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
41860 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41861 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41862 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41863 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41864 s,@BUILD_RWM@,$BUILD_RWM,;t t
41865 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41866 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41867 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41868 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41869 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41870 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41871 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41872 s,@BDB_LIBS@,$BDB_LIBS,;t t
41873 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
41874 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
41875 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41876 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41877 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41878 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41879 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41880 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41881 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41882 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41883 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41884 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41885 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41886 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41887 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41888 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41889 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41890 s,@SASL_LIBS@,$SASL_LIBS,;t t
41891 s,@TLS_LIBS@,$TLS_LIBS,;t t
41892 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41893 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41894 s,@LIBSLAPI@,$LIBSLAPI,;t t
41895 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41896 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41897 s,@ICU_LIBS@,$ICU_LIBS,;t t
41898 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41899 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41900 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41901 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41902 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41903 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41908 cat >>$CONFIG_STATUS <<\_ACEOF
41909 # Split the substitutions into bite-sized pieces for seds with
41910 # small command number limits, like on Digital OSF/1 and HP-UX.
41911 ac_max_sed_lines=48
41912 ac_sed_frag=1 # Number of current file.
41913 ac_beg=1 # First line for current file.
41914 ac_end=$ac_max_sed_lines # Line after last line for current file.
41917 while $ac_more_lines; do
41918 if test $ac_beg -gt 1; then
41919 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41921 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41923 if test ! -s $tmp/subs.frag; then
41924 ac_more_lines=false
41926 # The purpose of the label and of the branching condition is to
41927 # speed up the sed processing (if there are no `@' at all, there
41928 # is no need to browse any of the substitutions).
41929 # These are the two extra sed commands mentioned above.
41931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41932 if test -z "$ac_sed_cmds"; then
41933 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41935 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41937 ac_sed_frag=`expr $ac_sed_frag + 1`
41939 ac_end=`expr $ac_end + $ac_max_sed_lines`
41942 if test -z "$ac_sed_cmds"; then
41945 fi # test -n "$CONFIG_FILES"
41948 cat >>$CONFIG_STATUS <<\_ACEOF
41949 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41952 - | *:- | *:-:* ) # input from stdin
41954 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41956 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41958 * ) ac_file_in=$ac_file.in ;;
41961 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41962 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41964 X"$ac_file" : 'X\(//\)[^/]' \| \
41965 X"$ac_file" : 'X\(//\)$' \| \
41966 X"$ac_file" : 'X\(/\)' \| \
41967 . : '\(.\)' 2>/dev/null ||
41969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41971 /^X\(\/\/\)$/{ s//\1/; q; }
41972 /^X\(\/\).*/{ s//\1/; q; }
41974 { if $as_mkdir_p; then
41979 while test ! -d "$as_dir"; do
41980 as_dirs="$as_dir $as_dirs"
41981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41983 X"$as_dir" : 'X\(//\)[^/]' \| \
41984 X"$as_dir" : 'X\(//\)$' \| \
41985 X"$as_dir" : 'X\(/\)' \| \
41986 . : '\(.\)' 2>/dev/null ||
41988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41990 /^X\(\/\/\)$/{ s//\1/; q; }
41991 /^X\(\/\).*/{ s//\1/; q; }
41994 test ! -n "$as_dirs" || mkdir $as_dirs
41995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41997 { (exit 1); exit 1; }; }; }
42001 if test "$ac_dir" != .; then
42002 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42003 # A "../" for each directory in $ac_dir_suffix.
42004 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42006 ac_dir_suffix= ac_top_builddir=
42010 .) # No --srcdir option. We are building in place.
42012 if test -z "$ac_top_builddir"; then
42015 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42017 [\\/]* | ?:[\\/]* ) # Absolute path.
42018 ac_srcdir=$srcdir$ac_dir_suffix;
42019 ac_top_srcdir=$srcdir ;;
42020 *) # Relative path.
42021 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42022 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42025 # Do not use `cd foo && pwd` to compute absolute paths, because
42026 # the directories may not exist.
42028 .) ac_abs_builddir="$ac_dir";;
42031 .) ac_abs_builddir=`pwd`;;
42032 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42033 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42036 case $ac_abs_builddir in
42037 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42039 case ${ac_top_builddir}. in
42040 .) ac_abs_top_builddir=$ac_abs_builddir;;
42041 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42042 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42045 case $ac_abs_builddir in
42046 .) ac_abs_srcdir=$ac_srcdir;;
42049 .) ac_abs_srcdir=$ac_abs_builddir;;
42050 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42051 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42054 case $ac_abs_builddir in
42055 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42057 case $ac_top_srcdir in
42058 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42059 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42060 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42067 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42070 if test x"$ac_file" != x-; then
42071 { echo "$as_me:$LINENO: creating $ac_file" >&5
42072 echo "$as_me: creating $ac_file" >&6;}
42075 # Let's still pretend it is `configure' which instantiates (i.e., don't
42076 # use $as_me), people would be surprised to read:
42077 # /* config.h. Generated by config.status. */
42078 if test x"$ac_file" = x-; then
42081 configure_input="$ac_file. "
42083 configure_input=$configure_input"Generated from `echo $ac_file_in |
42084 sed 's,.*/,,'` by configure."
42086 # First look for the input files in the build tree, otherwise in the
42088 ac_file_inputs=`IFS=:
42089 for f in $ac_file_in; do
42091 -) echo $tmp/stdin ;;
42093 # Absolute (can't be DOS-style, as IFS=:)
42094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42095 echo "$as_me: error: cannot find input file: $f" >&2;}
42096 { (exit 1); exit 1; }; }
42099 if test -f "$f"; then
42102 elif test -f "$srcdir/$f"; then
42107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42108 echo "$as_me: error: cannot find input file: $f" >&2;}
42109 { (exit 1); exit 1; }; }
42112 done` || { (exit 1); exit 1; }
42114 cat >>$CONFIG_STATUS <<_ACEOF
42118 cat >>$CONFIG_STATUS <<\_ACEOF
42120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42121 s,@configure_input@,$configure_input,;t t
42122 s,@srcdir@,$ac_srcdir,;t t
42123 s,@abs_srcdir@,$ac_abs_srcdir,;t t
42124 s,@top_srcdir@,$ac_top_srcdir,;t t
42125 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42126 s,@builddir@,$ac_builddir,;t t
42127 s,@abs_builddir@,$ac_abs_builddir,;t t
42128 s,@top_builddir@,$ac_top_builddir,;t t
42129 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42130 s,@INSTALL@,$ac_INSTALL,;t t
42131 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42133 if test x"$ac_file" != x-; then
42134 mv $tmp/out $ac_file
42142 cat >>$CONFIG_STATUS <<\_ACEOF
42145 # CONFIG_HEADER section.
42148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
42151 # ac_d sets the value in "#define NAME VALUE" lines.
42152 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42153 ac_dB='[ ].*$,\1#\2'
42156 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42157 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
42158 ac_uB='$,\1#\2define\3'
42162 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42165 - | *:- | *:-:* ) # input from stdin
42167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42171 * ) ac_file_in=$ac_file.in ;;
42174 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42175 echo "$as_me: creating $ac_file" >&6;}
42177 # First look for the input files in the build tree, otherwise in the
42179 ac_file_inputs=`IFS=:
42180 for f in $ac_file_in; do
42182 -) echo $tmp/stdin ;;
42184 # Absolute (can't be DOS-style, as IFS=:)
42185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42186 echo "$as_me: error: cannot find input file: $f" >&2;}
42187 { (exit 1); exit 1; }; }
42188 # Do quote $f, to prevent DOS paths from being IFS'd.
42191 if test -f "$f"; then
42194 elif test -f "$srcdir/$f"; then
42199 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42200 echo "$as_me: error: cannot find input file: $f" >&2;}
42201 { (exit 1); exit 1; }; }
42204 done` || { (exit 1); exit 1; }
42205 # Remove the trailing spaces.
42206 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
42210 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42211 # `conftest.undefs', that substitutes the proper values into
42212 # config.h.in to produce config.h. The first handles `#define'
42213 # templates, and the second `#undef' templates.
42214 # And first: Protect against being on the right side of a sed subst in
42215 # config.status. Protect against being in an unquoted here document
42216 # in config.status.
42217 rm -f conftest.defines conftest.undefs
42218 # Using a here document instead of a string reduces the quoting nightmare.
42219 # Putting comments in sed scripts is not portable.
42221 # `end' is used to avoid that the second main sed command (meant for
42222 # 0-ary CPP macros) applies to n-ary macro definitions.
42223 # See the Autoconf documentation for `clear'.
42224 cat >confdef2sed.sed <<\_ACEOF
42229 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42231 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42234 # If some macros were called several times there might be several times
42235 # the same #defines, which is useless. Nevertheless, we may not want to
42236 # sort them, since we want the *last* AC-DEFINE to be honored.
42237 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42238 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42239 rm -f confdef2sed.sed
42241 # This sed command replaces #undef with comments. This is necessary, for
42242 # example, in the case of _POSIX_SOURCE, which is predefined and required
42243 # on some systems where configure will not decide to define it.
42244 cat >>conftest.undefs <<\_ACEOF
42245 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42248 # Break up conftest.defines because some shells have a limit on the size
42249 # of here documents, and old seds have small limits too (100 cmds).
42250 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42251 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42252 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42253 echo ' :' >>$CONFIG_STATUS
42254 rm -f conftest.tail
42255 while grep . conftest.defines >/dev/null
42257 # Write a limited-size here document to $tmp/defines.sed.
42258 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42259 # Speed up: don't consider the non `#define' lines.
42260 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42261 # Work around the forget-to-reset-the-flag bug.
42262 echo 't clr' >>$CONFIG_STATUS
42263 echo ': clr' >>$CONFIG_STATUS
42264 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42266 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42268 mv $tmp/out $tmp/in
42270 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42271 rm -f conftest.defines
42272 mv conftest.tail conftest.defines
42274 rm -f conftest.defines
42275 echo ' fi # grep' >>$CONFIG_STATUS
42276 echo >>$CONFIG_STATUS
42278 # Break up conftest.undefs because some shells have a limit on the size
42279 # of here documents, and old seds have small limits too (100 cmds).
42280 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42281 rm -f conftest.tail
42282 while grep . conftest.undefs >/dev/null
42284 # Write a limited-size here document to $tmp/undefs.sed.
42285 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42286 # Speed up: don't consider the non `#undef'
42287 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42288 # Work around the forget-to-reset-the-flag bug.
42289 echo 't clr' >>$CONFIG_STATUS
42290 echo ': clr' >>$CONFIG_STATUS
42291 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42293 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42295 mv $tmp/out $tmp/in
42297 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42298 rm -f conftest.undefs
42299 mv conftest.tail conftest.undefs
42301 rm -f conftest.undefs
42303 cat >>$CONFIG_STATUS <<\_ACEOF
42304 # Let's still pretend it is `configure' which instantiates (i.e., don't
42305 # use $as_me), people would be surprised to read:
42306 # /* config.h. Generated by config.status. */
42307 if test x"$ac_file" = x-; then
42308 echo "/* Generated by configure. */" >$tmp/config.h
42310 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42312 cat $tmp/in >>$tmp/config.h
42314 if test x"$ac_file" != x-; then
42315 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42316 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42317 echo "$as_me: $ac_file is unchanged" >&6;}
42319 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42321 X"$ac_file" : 'X\(//\)[^/]' \| \
42322 X"$ac_file" : 'X\(//\)$' \| \
42323 X"$ac_file" : 'X\(/\)' \| \
42324 . : '\(.\)' 2>/dev/null ||
42326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42328 /^X\(\/\/\)$/{ s//\1/; q; }
42329 /^X\(\/\).*/{ s//\1/; q; }
42331 { if $as_mkdir_p; then
42336 while test ! -d "$as_dir"; do
42337 as_dirs="$as_dir $as_dirs"
42338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42340 X"$as_dir" : 'X\(//\)[^/]' \| \
42341 X"$as_dir" : 'X\(//\)$' \| \
42342 X"$as_dir" : 'X\(/\)' \| \
42343 . : '\(.\)' 2>/dev/null ||
42345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42347 /^X\(\/\/\)$/{ s//\1/; q; }
42348 /^X\(\/\).*/{ s//\1/; q; }
42351 test ! -n "$as_dirs" || mkdir $as_dirs
42352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42354 { (exit 1); exit 1; }; }; }
42357 mv $tmp/config.h $ac_file
42361 rm -f $tmp/config.h
42363 # Compute $ac_file's index in $config_headers.
42365 for _am_header in $config_headers :; do
42366 case $_am_header in
42367 $ac_file | $ac_file:* )
42370 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42373 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42374 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42375 X$ac_file : 'X\(//\)[^/]' \| \
42376 X$ac_file : 'X\(//\)$' \| \
42377 X$ac_file : 'X\(/\)' \| \
42378 . : '\(.\)' 2>/dev/null ||
42380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42382 /^X\(\/\/\)$/{ s//\1/; q; }
42383 /^X\(\/\).*/{ s//\1/; q; }
42384 s/.*/./; q'`/stamp-h$_am_stamp_count
42387 cat >>$CONFIG_STATUS <<\_ACEOF
42390 # CONFIG_COMMANDS section.
42392 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42393 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42394 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42395 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42396 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42397 X"$ac_dest" : 'X\(//\)[^/]' \| \
42398 X"$ac_dest" : 'X\(//\)$' \| \
42399 X"$ac_dest" : 'X\(/\)' \| \
42400 . : '\(.\)' 2>/dev/null ||
42402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42404 /^X\(\/\/\)$/{ s//\1/; q; }
42405 /^X\(\/\).*/{ s//\1/; q; }
42407 { if $as_mkdir_p; then
42412 while test ! -d "$as_dir"; do
42413 as_dirs="$as_dir $as_dirs"
42414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42416 X"$as_dir" : 'X\(//\)[^/]' \| \
42417 X"$as_dir" : 'X\(//\)$' \| \
42418 X"$as_dir" : 'X\(/\)' \| \
42419 . : '\(.\)' 2>/dev/null ||
42421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42423 /^X\(\/\/\)$/{ s//\1/; q; }
42424 /^X\(\/\).*/{ s//\1/; q; }
42427 test ! -n "$as_dirs" || mkdir $as_dirs
42428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42430 { (exit 1); exit 1; }; }; }
42434 if test "$ac_dir" != .; then
42435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42436 # A "../" for each directory in $ac_dir_suffix.
42437 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42439 ac_dir_suffix= ac_top_builddir=
42443 .) # No --srcdir option. We are building in place.
42445 if test -z "$ac_top_builddir"; then
42448 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42450 [\\/]* | ?:[\\/]* ) # Absolute path.
42451 ac_srcdir=$srcdir$ac_dir_suffix;
42452 ac_top_srcdir=$srcdir ;;
42453 *) # Relative path.
42454 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42455 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42458 # Do not use `cd foo && pwd` to compute absolute paths, because
42459 # the directories may not exist.
42461 .) ac_abs_builddir="$ac_dir";;
42464 .) ac_abs_builddir=`pwd`;;
42465 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42466 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42469 case $ac_abs_builddir in
42470 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42472 case ${ac_top_builddir}. in
42473 .) ac_abs_top_builddir=$ac_abs_builddir;;
42474 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42475 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42478 case $ac_abs_builddir in
42479 .) ac_abs_srcdir=$ac_srcdir;;
42482 .) ac_abs_srcdir=$ac_abs_builddir;;
42483 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42484 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42487 case $ac_abs_builddir in
42488 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42490 case $ac_top_srcdir in
42491 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42492 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42493 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42498 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42499 echo "$as_me: executing $ac_dest commands" >&6;}
42501 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42502 # Strip MF so we end up with the name of the file.
42503 mf=`echo "$mf" | sed -e 's/:.*$//'`
42504 # Check whether this is an Automake generated Makefile or not.
42505 # We used to match only the files named `Makefile.in', but
42506 # some people rename them; so instead we look at the file content.
42507 # Grep'ing the first line is not enough: some people post-process
42508 # each Makefile.in and add a new line on top of each file to say so.
42509 # So let's grep whole file.
42510 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42511 dirpart=`(dirname "$mf") 2>/dev/null ||
42512 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42513 X"$mf" : 'X\(//\)[^/]' \| \
42514 X"$mf" : 'X\(//\)$' \| \
42515 X"$mf" : 'X\(/\)' \| \
42516 . : '\(.\)' 2>/dev/null ||
42518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42520 /^X\(\/\/\)$/{ s//\1/; q; }
42521 /^X\(\/\).*/{ s//\1/; q; }
42526 # Extract the definition of DEPDIR, am__include, and am__quote
42527 # from the Makefile without running `make'.
42528 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42529 test -z "$DEPDIR" && continue
42530 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42531 test -z "am__include" && continue
42532 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42533 # When using ansi2knr, U may be empty or an underscore; expand it
42534 U=`sed -n 's/^U = //p' < "$mf"`
42535 # Find all dependency output files, they are included files with
42536 # $(DEPDIR) in their names. We invoke sed twice because it is the
42537 # simplest approach to changing $(DEPDIR) to its actual value in the
42539 for file in `sed -n "
42540 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42541 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42542 # Make sure the directory exists.
42543 test -f "$dirpart/$file" && continue
42544 fdir=`(dirname "$file") 2>/dev/null ||
42545 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42546 X"$file" : 'X\(//\)[^/]' \| \
42547 X"$file" : 'X\(//\)$' \| \
42548 X"$file" : 'X\(/\)' \| \
42549 . : '\(.\)' 2>/dev/null ||
42551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42553 /^X\(\/\/\)$/{ s//\1/; q; }
42554 /^X\(\/\).*/{ s//\1/; q; }
42556 { if $as_mkdir_p; then
42557 mkdir -p $dirpart/$fdir
42559 as_dir=$dirpart/$fdir
42561 while test ! -d "$as_dir"; do
42562 as_dirs="$as_dir $as_dirs"
42563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42565 X"$as_dir" : 'X\(//\)[^/]' \| \
42566 X"$as_dir" : 'X\(//\)$' \| \
42567 X"$as_dir" : 'X\(/\)' \| \
42568 . : '\(.\)' 2>/dev/null ||
42570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42572 /^X\(\/\/\)$/{ s//\1/; q; }
42573 /^X\(\/\).*/{ s//\1/; q; }
42576 test ! -n "$as_dirs" || mkdir $as_dirs
42577 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42578 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42579 { (exit 1); exit 1; }; }; }
42581 # echo "creating $dirpart/$file"
42582 echo '# dummy' > "$dirpart/$file"
42589 BACKENDSC="servers/slapd/backends.c"
42590 echo "Making $BACKENDSC"
42592 cat > $BACKENDSC << ENDX
42593 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42595 * Copyright 1998-2008 The OpenLDAP Foundation.
42596 * All rights reserved.
42598 * Redistribution and use in source and binary forms, with or without
42599 * modification, are permitted only as authorized by the OpenLDAP
42602 * A copy of this license is available in the file LICENSE in the
42603 * top-level directory of the distribution or, alternatively, at
42604 * <http://www.OpenLDAP.org/license.html>.
42606 /* This file is automatically generated by configure; please do not edit. */
42608 #include "portable.h"
42612 if test "${STATIC_BACKENDS}"; then
42613 for b in config ${STATIC_BACKENDS}; do
42614 bb=`echo "${b}" | sed -e 's/back-//'`
42615 cat >> $BACKENDSC << ENDX
42616 extern BI_init ${bb}_back_initialize;
42620 cat >> $BACKENDSC << ENDX
42622 BackendInfo slap_binfo[] = {
42625 for b in config ${STATIC_BACKENDS}; do
42626 bb=`echo "${b}" | sed -e 's/back-//'`
42627 echo " Add ${bb} ..."
42628 cat >> $BACKENDSC << ENDX
42629 { "${bb}", ${bb}_back_initialize },
42633 cat >> $BACKENDSC << ENDX
42637 /* end of generated file */
42640 OVERLAYSC="servers/slapd/overlays/statover.c"
42641 echo "Making $OVERLAYSC"
42643 cat > $OVERLAYSC << ENDX
42644 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42646 * Copyright 1998-2008 The OpenLDAP Foundation.
42647 * All rights reserved.
42649 * Redistribution and use in source and binary forms, with or without
42650 * modification, are permitted only as authorized by the OpenLDAP
42653 * A copy of this license is available in the file LICENSE in the
42654 * top-level directory of the distribution or, alternatively, at
42655 * <http://www.OpenLDAP.org/license.html>.
42657 /* This file is automatically generated by configure; please do not edit. */
42659 #include "portable.h"
42663 if test "${STATIC_OVERLAYS}"; then
42664 for o in ${STATIC_OVERLAYS}; do
42665 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42666 cat >> $OVERLAYSC << ENDX
42667 extern OV_init ${oo}_initialize;
42672 cat >> $OVERLAYSC << ENDX
42674 OverlayInit slap_oinfo[] = {
42677 if test "${STATIC_OVERLAYS}"; then
42678 for o in ${STATIC_OVERLAYS}; do
42679 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42680 echo " Add ${oo} ..."
42681 cat >> $OVERLAYSC << ENDX
42682 { "${oo}", ${oo}_initialize },
42687 cat >> $OVERLAYSC << ENDX
42691 /* end of generated file */
42694 if test "${ol_cv_mkdep}" = no; then
42695 echo '(Do not "make depend"; we do not know how to build dependencies)'
42697 echo 'Please run "make depend" to build dependencies'
42704 cat >>$CONFIG_STATUS <<\_ACEOF
42706 { (exit 0); exit 0; }
42708 chmod +x $CONFIG_STATUS
42709 ac_clean_files=$ac_clean_files_save
42712 # configure is writing to config.log, and then calls config.status.
42713 # config.status does its own redirection, appending to config.log.
42714 # Unfortunately, on DOS this fails, as config.log is still kept open
42715 # by configure, so config.status won't be able to write to it; its
42716 # output is simply discarded. So we exec the FD to /dev/null,
42717 # effectively closing config.log, so it can be properly (re)opened and
42718 # appended to by config.status. When coming back to configure, we
42719 # need to make the FD available again.
42720 if test "$no_create" != yes; then
42722 ac_config_status_args=
42723 test "$silent" = yes &&
42724 ac_config_status_args="$ac_config_status_args --quiet"
42726 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42728 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42729 # would make configure fail if this is the last instruction.
42730 $ac_cs_success || { (exit 1); exit 1; }