2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.647 2007/03/02 19:44:31 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS BDB_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1019 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1020 --enable-cleartext enable cleartext passwords [yes]
1021 --enable-crypt enable crypt(3) passwords [no]
1022 --enable-lmpasswd enable LAN Manager passwords [no]
1023 --enable-spasswd enable (Cyrus) SASL password verification [no]
1024 --enable-modules enable dynamic module support [no]
1025 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1026 --enable-rlookups enable reverse lookups of client hostnames [no]
1027 --enable-slapi enable SLAPI support (experimental) [no]
1028 --enable-slp enable SLPv2 support [no]
1029 --enable-wrappers enable tcp wrapper support [no]
1031 SLAPD Backend Options:
1032 --enable-backends enable all available backends no|yes|mod
1033 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1034 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1035 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1036 --enable-ldap enable ldap backend no|yes|mod [no]
1037 --enable-meta enable metadirectory backend no|yes|mod [no]
1038 --enable-monitor enable monitor backend no|yes|mod [yes]
1039 --enable-null enable null backend no|yes|mod [no]
1040 --enable-passwd enable passwd backend no|yes|mod [no]
1041 --enable-perl enable perl backend no|yes|mod [no]
1042 --enable-relay enable relay backend no|yes|mod [yes]
1043 --enable-shell enable shell backend no|yes|mod [no]
1044 --enable-sql enable sql backend no|yes|mod [no]
1046 SLAPD Overlay Options:
1047 --enable-overlays enable all available overlays no|yes|mod
1048 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1049 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1050 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1051 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1055 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1056 --enable-refint Referential Integrity overlay no|yes|mod [no]
1057 --enable-retcode Return Code testing overlay no|yes|mod [no]
1058 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1059 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 SLURPD (Replication Daemon) Options:
1066 --enable-slurpd enable building slurpd [auto]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1089 --with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
1090 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1091 --with-pic try to use only PIC/non-PIC objects [default=use
1094 include additional configurations [automatic]
1096 See INSTALL file for further details.
1098 Some influential environment variables:
1099 CC C compiler command
1100 CFLAGS C compiler flags
1101 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1102 nonstandard directory <lib dir>
1103 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104 headers in a nonstandard directory <include dir>
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute path.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1210 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59. Invocation command line was
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_must_keep_next=false
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
1298 ac_must_keep_next=false # Got value, back to normal.
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309 -* ) ac_must_keep_next=true ;;
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log. We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1338 # The following way of writing the cache mishandles newlines in values,
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1361 for ac_var in $ac_subst_vars
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1368 if test -n "$ac_subst_files"; then
1375 for ac_var in $ac_subst_files
1377 eval ac_val=$`echo $ac_var`
1378 echo "$ac_var='"'"'$ac_val'"'"'"
1383 if test -s confdefs.h; then
1390 sed "/^$/d" confdefs.h | sort
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1397 rm -f core *.core &&
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401 for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 # Predefined preprocessor variables.
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1457 # Check that the precious variables saved in the cache have kept the same
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481 echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483 echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 if test -d $ac_aux_dir/CVS; then
1603 OPENLDAP_CVS="(from CVS sources) "
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1689 program_prefix=${target_alias}-
1691 am__api_version="1.9"
1692 # Find a good install program. We prefer a C program (faster),
1693 # so one script is as good as another. But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 # OSF1 and SCO ODT 3.0 have their own names for install.
1724 # Don't use installbsd from OSF since it installs stuff as root
1726 for ac_prog in ginstall scoinst install; do
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729 if test $ac_prog = install &&
1730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1733 elif test $ac_prog = install &&
1734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # program-specific install script used by HP pwplus--don't use.
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 if test "${ac_cv_path_install+set}" = set; then
1751 INSTALL=$ac_cv_path_install
1753 # As a last resort, use the slow shell script. We don't cache a
1754 # path for INSTALL within a source directory, because that will
1755 # break other packages using the cache if that directory is
1756 # removed, or if the path is relative.
1757 INSTALL=$ac_install_sh
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments. Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783 if test "$*" = "X"; then
1785 set X `ls -t $srcdir/configure conftest.file`
1788 if test "$*" != "X $srcdir/configure conftest.file" \
1789 && test "$*" != "X conftest.file $srcdir/configure"; then
1791 # If neither matched, then we have a broken ls. This can happen
1792 # if, for instance, CONFIG_SHELL is bash and it inherits a
1793 # broken ls alias from the environment. This has actually
1794 # happened. Such a system could not be considered "sane".
1795 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&2;}
1799 { (exit 1); exit 1; }; }
1802 test "$2" = conftest.file
1808 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812 { (exit 1); exit 1; }; }
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $. echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835 am_missing_run="$MISSING --run "
1838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843 # We used to keeping the `.' as first argument, in order to
1844 # allow $(mkdir_p) to be used without argument. As in
1845 # $(mkdir_p) $(somedir)
1846 # where $(somedir) is conditionally defined. However this is wrong
1848 # 1. if the package is installed by a user who cannot write `.'
1849 # make install will fail,
1850 # 2. the above comment should most certainly read
1851 # $(mkdir_p) $(DESTDIR)$(somedir)
1852 # so it does not work when $(somedir) is undefined and
1853 # $(DESTDIR) is not.
1854 # To support the latter case, we have to write
1855 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856 # so the `.' trick is pointless.
1857 mkdir_p='mkdir -p --'
1859 # On NextStep and OpenStep, the `mkdir' command does not
1860 # recognize any option. It will interpret all options as
1861 # directories to create, and then abort because `.' already
1863 for d in ./-p ./--version;
1865 test -d $d && rmdir $d
1867 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868 if test -f "$ac_aux_dir/mkinstalldirs"; then
1869 mkdir_p='$(mkinstalldirs)'
1871 mkdir_p='$(install_sh) -d'
1875 for ac_prog in gawk mawk nawk awk
1877 # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$AWK"; then
1885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_AWK="$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$AWK" && break
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.make <<\_ACEOF
1923 @echo 'ac_maketemp="$(MAKE)"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 SET_MAKE="MAKE=${MAKE-make}"
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1951 rmdir .tst 2>/dev/null
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955 test -f $srcdir/config.status; then
1956 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963 if (cygpath --version) >/dev/null 2>/dev/null; then
1964 CYGPATH_W='cygpath -w'
1971 # Define the identity of the package.
1976 # Some tools Automake needs.
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'. However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$STRIP"; then
2008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028 echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_STRIP"; then
2046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_STRIP="strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2076 STRIP="$ac_cv_prog_STRIP"
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082 # We need awk for the "check" target. The system "awk" is bad on
2084 # Always define AMTAR for backward compatibility.
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150 ldap_subdir="/openldap"
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155 withval="$with_subdir"
2162 ldap_subdir="$withval"
2165 ldap_subdir="/$withval"
2171 # OpenLDAP --enable-debug
2173 # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval="$enable_debug"
2178 for ol_val in no yes traditional ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186 { (exit 1); exit 1; }; }
2188 ol_enable_debug="$ol_arg"
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2196 # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198 enableval="$enable_dynamic"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209 { (exit 1); exit 1; }; }
2211 ol_enable_dynamic="$ol_arg"
2214 ol_enable_dynamic=no
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2219 # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221 enableval="$enable_syslog"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232 { (exit 1); exit 1; }; }
2234 ol_enable_syslog="$ol_arg"
2237 ol_enable_syslog=auto
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2242 # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244 enableval="$enable_proctitle"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_proctitle="$ol_arg"
2260 ol_enable_proctitle=yes
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 # OpenLDAP --enable-ipv6
2266 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268 enableval="$enable_ipv6"
2271 for ol_val in auto yes no ; do
2272 if test "$enableval" = "$ol_val" ; then
2276 if test "$ol_arg" = "invalid" ; then
2277 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279 { (exit 1); exit 1; }; }
2281 ol_enable_ipv6="$ol_arg"
2287 # OpenLDAP --enable-local
2289 # Check whether --enable-local or --disable-local was given.
2290 if test "${enable_local+set}" = set; then
2291 enableval="$enable_local"
2294 for ol_val in auto yes no ; do
2295 if test "$enableval" = "$ol_val" ; then
2299 if test "$ol_arg" = "invalid" ; then
2300 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2301 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2302 { (exit 1); exit 1; }; }
2304 ol_enable_local="$ol_arg"
2307 ol_enable_local=auto
2309 # end --enable-local
2311 # OpenLDAP --with-cyrus_sasl
2313 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2314 if test "${with_cyrus_sasl+set}" = set; then
2315 withval="$with_cyrus_sasl"
2318 for ol_val in auto yes no ; do
2319 if test "$withval" = "$ol_val" ; then
2323 if test "$ol_arg" = "invalid" ; then
2324 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2325 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2326 { (exit 1); exit 1; }; }
2328 ol_with_cyrus_sasl="$ol_arg"
2331 ol_with_cyrus_sasl="auto"
2332 fi; # end --with-cyrus_sasl
2334 # OpenLDAP --with-fetch
2336 # Check whether --with-fetch or --without-fetch was given.
2337 if test "${with_fetch+set}" = set; then
2338 withval="$with_fetch"
2341 for ol_val in auto yes no ; do
2342 if test "$withval" = "$ol_val" ; then
2346 if test "$ol_arg" = "invalid" ; then
2347 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2348 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2349 { (exit 1); exit 1; }; }
2351 ol_with_fetch="$ol_arg"
2354 ol_with_fetch="auto"
2355 fi; # end --with-fetch
2357 # OpenLDAP --with-threads
2359 # Check whether --with-threads or --without-threads was given.
2360 if test "${with_threads+set}" = set; then
2361 withval="$with_threads"
2364 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2365 if test "$withval" = "$ol_val" ; then
2369 if test "$ol_arg" = "invalid" ; then
2370 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2371 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2372 { (exit 1); exit 1; }; }
2374 ol_with_threads="$ol_arg"
2377 ol_with_threads="auto"
2378 fi; # end --with-threads
2380 # OpenLDAP --with-tls
2382 # Check whether --with-tls or --without-tls was given.
2383 if test "${with_tls+set}" = set; then
2387 for ol_val in auto openssl yes no ; do
2388 if test "$withval" = "$ol_val" ; then
2392 if test "$ol_arg" = "invalid" ; then
2393 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2394 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2395 { (exit 1); exit 1; }; }
2397 ol_with_tls="$ol_arg"
2401 fi; # end --with-tls
2403 # OpenLDAP --with-yielding_select
2405 # Check whether --with-yielding_select or --without-yielding_select was given.
2406 if test "${with_yielding_select+set}" = set; then
2407 withval="$with_yielding_select"
2410 for ol_val in auto yes no manual ; do
2411 if test "$withval" = "$ol_val" ; then
2415 if test "$ol_arg" = "invalid" ; then
2416 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2417 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2418 { (exit 1); exit 1; }; }
2420 ol_with_yielding_select="$ol_arg"
2423 ol_with_yielding_select="auto"
2424 fi; # end --with-yielding_select
2426 # OpenLDAP --with-mp
2428 # Check whether --with-mp or --without-mp was given.
2429 if test "${with_mp+set}" = set; then
2433 for ol_val in auto longlong long bignum gmp yes no ; do
2434 if test "$withval" = "$ol_val" ; then
2438 if test "$ol_arg" = "invalid" ; then
2439 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2440 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2441 { (exit 1); exit 1; }; }
2443 ol_with_mp="$ol_arg"
2449 # OpenLDAP --with-odbc
2451 # Check whether --with-odbc or --without-odbc was given.
2452 if test "${with_odbc+set}" = set; then
2453 withval="$with_odbc"
2456 for ol_val in auto iodbc unixodbc ; do
2457 if test "$withval" = "$ol_val" ; then
2461 if test "$ol_arg" = "invalid" ; then
2462 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2463 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2464 { (exit 1); exit 1; }; }
2466 ol_with_odbc="$ol_arg"
2470 fi; # end --with-odbc
2474 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2475 if test "${enable_xxslapdoptions+set}" = set; then
2476 enableval="$enable_xxslapdoptions"
2479 # OpenLDAP --enable-slapd
2481 # Check whether --enable-slapd or --disable-slapd was given.
2482 if test "${enable_slapd+set}" = set; then
2483 enableval="$enable_slapd"
2486 for ol_val in auto yes no ; do
2487 if test "$enableval" = "$ol_val" ; then
2491 if test "$ol_arg" = "invalid" ; then
2492 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2493 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2494 { (exit 1); exit 1; }; }
2496 ol_enable_slapd="$ol_arg"
2501 # end --enable-slapd
2502 # OpenLDAP --enable-dynacl
2504 # Check whether --enable-dynacl or --disable-dynacl was given.
2505 if test "${enable_dynacl+set}" = set; then
2506 enableval="$enable_dynacl"
2509 for ol_val in auto yes no ; do
2510 if test "$enableval" = "$ol_val" ; then
2514 if test "$ol_arg" = "invalid" ; then
2515 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2516 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2517 { (exit 1); exit 1; }; }
2519 ol_enable_dynacl="$ol_arg"
2524 # end --enable-dynacl
2525 # OpenLDAP --enable-aci
2527 # Check whether --enable-aci or --disable-aci was given.
2528 if test "${enable_aci+set}" = set; then
2529 enableval="$enable_aci"
2532 for ol_val in no yes mod ; do
2533 if test "$enableval" = "$ol_val" ; then
2537 if test "$ol_arg" = "invalid" ; then
2538 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2539 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2540 { (exit 1); exit 1; }; }
2542 ol_enable_aci="$ol_arg"
2548 # OpenLDAP --enable-cleartext
2550 # Check whether --enable-cleartext or --disable-cleartext was given.
2551 if test "${enable_cleartext+set}" = set; then
2552 enableval="$enable_cleartext"
2555 for ol_val in auto yes no ; do
2556 if test "$enableval" = "$ol_val" ; then
2560 if test "$ol_arg" = "invalid" ; then
2561 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2562 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2563 { (exit 1); exit 1; }; }
2565 ol_enable_cleartext="$ol_arg"
2568 ol_enable_cleartext=yes
2570 # end --enable-cleartext
2571 # OpenLDAP --enable-crypt
2573 # Check whether --enable-crypt or --disable-crypt was given.
2574 if test "${enable_crypt+set}" = set; then
2575 enableval="$enable_crypt"
2578 for ol_val in auto yes no ; do
2579 if test "$enableval" = "$ol_val" ; then
2583 if test "$ol_arg" = "invalid" ; then
2584 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2586 { (exit 1); exit 1; }; }
2588 ol_enable_crypt="$ol_arg"
2593 # end --enable-crypt
2594 # OpenLDAP --enable-lmpasswd
2596 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2597 if test "${enable_lmpasswd+set}" = set; then
2598 enableval="$enable_lmpasswd"
2601 for ol_val in auto yes no ; do
2602 if test "$enableval" = "$ol_val" ; then
2606 if test "$ol_arg" = "invalid" ; then
2607 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2608 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2609 { (exit 1); exit 1; }; }
2611 ol_enable_lmpasswd="$ol_arg"
2614 ol_enable_lmpasswd=no
2616 # end --enable-lmpasswd
2617 # OpenLDAP --enable-spasswd
2619 # Check whether --enable-spasswd or --disable-spasswd was given.
2620 if test "${enable_spasswd+set}" = set; then
2621 enableval="$enable_spasswd"
2624 for ol_val in auto yes no ; do
2625 if test "$enableval" = "$ol_val" ; then
2629 if test "$ol_arg" = "invalid" ; then
2630 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2631 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2632 { (exit 1); exit 1; }; }
2634 ol_enable_spasswd="$ol_arg"
2637 ol_enable_spasswd=no
2639 # end --enable-spasswd
2640 # OpenLDAP --enable-modules
2642 # Check whether --enable-modules or --disable-modules was given.
2643 if test "${enable_modules+set}" = set; then
2644 enableval="$enable_modules"
2647 for ol_val in auto yes no ; do
2648 if test "$enableval" = "$ol_val" ; then
2652 if test "$ol_arg" = "invalid" ; then
2653 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2654 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2655 { (exit 1); exit 1; }; }
2657 ol_enable_modules="$ol_arg"
2660 ol_enable_modules=no
2662 # end --enable-modules
2663 # OpenLDAP --enable-rewrite
2665 # Check whether --enable-rewrite or --disable-rewrite was given.
2666 if test "${enable_rewrite+set}" = set; then
2667 enableval="$enable_rewrite"
2670 for ol_val in auto yes no ; do
2671 if test "$enableval" = "$ol_val" ; then
2675 if test "$ol_arg" = "invalid" ; then
2676 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2677 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2678 { (exit 1); exit 1; }; }
2680 ol_enable_rewrite="$ol_arg"
2683 ol_enable_rewrite=auto
2685 # end --enable-rewrite
2686 # OpenLDAP --enable-rlookups
2688 # Check whether --enable-rlookups or --disable-rlookups was given.
2689 if test "${enable_rlookups+set}" = set; then
2690 enableval="$enable_rlookups"
2693 for ol_val in auto yes no ; do
2694 if test "$enableval" = "$ol_val" ; then
2698 if test "$ol_arg" = "invalid" ; then
2699 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2700 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2701 { (exit 1); exit 1; }; }
2703 ol_enable_rlookups="$ol_arg"
2706 ol_enable_rlookups=no
2708 # end --enable-rlookups
2709 # OpenLDAP --enable-slapi
2711 # Check whether --enable-slapi or --disable-slapi was given.
2712 if test "${enable_slapi+set}" = set; then
2713 enableval="$enable_slapi"
2716 for ol_val in auto yes no ; do
2717 if test "$enableval" = "$ol_val" ; then
2721 if test "$ol_arg" = "invalid" ; then
2722 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2724 { (exit 1); exit 1; }; }
2726 ol_enable_slapi="$ol_arg"
2731 # end --enable-slapi
2732 # OpenLDAP --enable-slp
2734 # Check whether --enable-slp or --disable-slp was given.
2735 if test "${enable_slp+set}" = set; then
2736 enableval="$enable_slp"
2739 for ol_val in auto yes no ; do
2740 if test "$enableval" = "$ol_val" ; then
2744 if test "$ol_arg" = "invalid" ; then
2745 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2746 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2747 { (exit 1); exit 1; }; }
2749 ol_enable_slp="$ol_arg"
2755 # OpenLDAP --enable-wrappers
2757 # Check whether --enable-wrappers or --disable-wrappers was given.
2758 if test "${enable_wrappers+set}" = set; then
2759 enableval="$enable_wrappers"
2762 for ol_val in auto yes no ; do
2763 if test "$enableval" = "$ol_val" ; then
2767 if test "$ol_arg" = "invalid" ; then
2768 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2769 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2770 { (exit 1); exit 1; }; }
2772 ol_enable_wrappers="$ol_arg"
2775 ol_enable_wrappers=no
2777 # end --enable-wrappers
2792 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2793 if test "${enable_xxslapbackends+set}" = set; then
2794 enableval="$enable_xxslapbackends"
2798 # OpenLDAP --enable-backends
2800 # Check whether --enable-backends or --disable-backends was given.
2801 if test "${enable_backends+set}" = set; then
2802 enableval="$enable_backends"
2805 for ol_val in no yes mod ; do
2806 if test "$enableval" = "$ol_val" ; then
2810 if test "$ol_arg" = "invalid" ; then
2811 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2812 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2813 { (exit 1); exit 1; }; }
2815 ol_enable_backends="$ol_arg"
2818 # end --enable-backends
2819 # OpenLDAP --enable-bdb
2821 # Check whether --enable-bdb or --disable-bdb was given.
2822 if test "${enable_bdb+set}" = set; then
2823 enableval="$enable_bdb"
2826 for ol_val in no yes mod ; do
2827 if test "$enableval" = "$ol_val" ; then
2831 if test "$ol_arg" = "invalid" ; then
2832 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2833 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2834 { (exit 1); exit 1; }; }
2836 ol_enable_bdb="$ol_arg"
2839 ol_enable_bdb=${ol_enable_backends:-yes}
2842 # OpenLDAP --enable-dnssrv
2844 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2845 if test "${enable_dnssrv+set}" = set; then
2846 enableval="$enable_dnssrv"
2849 for ol_val in no yes mod ; do
2850 if test "$enableval" = "$ol_val" ; then
2854 if test "$ol_arg" = "invalid" ; then
2855 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2856 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2857 { (exit 1); exit 1; }; }
2859 ol_enable_dnssrv="$ol_arg"
2862 ol_enable_dnssrv=${ol_enable_backends:-no}
2864 # end --enable-dnssrv
2865 # OpenLDAP --enable-hdb
2867 # Check whether --enable-hdb or --disable-hdb was given.
2868 if test "${enable_hdb+set}" = set; then
2869 enableval="$enable_hdb"
2872 for ol_val in no yes mod ; do
2873 if test "$enableval" = "$ol_val" ; then
2877 if test "$ol_arg" = "invalid" ; then
2878 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2879 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2880 { (exit 1); exit 1; }; }
2882 ol_enable_hdb="$ol_arg"
2885 ol_enable_hdb=${ol_enable_backends:-yes}
2888 # OpenLDAP --enable-ldap
2890 # Check whether --enable-ldap or --disable-ldap was given.
2891 if test "${enable_ldap+set}" = set; then
2892 enableval="$enable_ldap"
2895 for ol_val in no yes mod ; do
2896 if test "$enableval" = "$ol_val" ; then
2900 if test "$ol_arg" = "invalid" ; then
2901 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2902 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2903 { (exit 1); exit 1; }; }
2905 ol_enable_ldap="$ol_arg"
2908 ol_enable_ldap=${ol_enable_backends:-no}
2911 # OpenLDAP --enable-meta
2913 # Check whether --enable-meta or --disable-meta was given.
2914 if test "${enable_meta+set}" = set; then
2915 enableval="$enable_meta"
2918 for ol_val in no yes mod ; do
2919 if test "$enableval" = "$ol_val" ; then
2923 if test "$ol_arg" = "invalid" ; then
2924 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2926 { (exit 1); exit 1; }; }
2928 ol_enable_meta="$ol_arg"
2931 ol_enable_meta=${ol_enable_backends:-no}
2934 # OpenLDAP --enable-monitor
2936 # Check whether --enable-monitor or --disable-monitor was given.
2937 if test "${enable_monitor+set}" = set; then
2938 enableval="$enable_monitor"
2941 for ol_val in no yes mod ; do
2942 if test "$enableval" = "$ol_val" ; then
2946 if test "$ol_arg" = "invalid" ; then
2947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2949 { (exit 1); exit 1; }; }
2951 ol_enable_monitor="$ol_arg"
2954 ol_enable_monitor=${ol_enable_backends:-yes}
2956 # end --enable-monitor
2957 # OpenLDAP --enable-null
2959 # Check whether --enable-null or --disable-null was given.
2960 if test "${enable_null+set}" = set; then
2961 enableval="$enable_null"
2964 for ol_val in no yes mod ; do
2965 if test "$enableval" = "$ol_val" ; then
2969 if test "$ol_arg" = "invalid" ; then
2970 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2971 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2972 { (exit 1); exit 1; }; }
2974 ol_enable_null="$ol_arg"
2977 ol_enable_null=${ol_enable_backends:-no}
2980 # OpenLDAP --enable-passwd
2982 # Check whether --enable-passwd or --disable-passwd was given.
2983 if test "${enable_passwd+set}" = set; then
2984 enableval="$enable_passwd"
2987 for ol_val in no yes mod ; do
2988 if test "$enableval" = "$ol_val" ; then
2992 if test "$ol_arg" = "invalid" ; then
2993 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2995 { (exit 1); exit 1; }; }
2997 ol_enable_passwd="$ol_arg"
3000 ol_enable_passwd=${ol_enable_backends:-no}
3002 # end --enable-passwd
3003 # OpenLDAP --enable-perl
3005 # Check whether --enable-perl or --disable-perl was given.
3006 if test "${enable_perl+set}" = set; then
3007 enableval="$enable_perl"
3010 for ol_val in no yes mod ; do
3011 if test "$enableval" = "$ol_val" ; then
3015 if test "$ol_arg" = "invalid" ; then
3016 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3018 { (exit 1); exit 1; }; }
3020 ol_enable_perl="$ol_arg"
3023 ol_enable_perl=${ol_enable_backends:-no}
3026 # OpenLDAP --enable-relay
3028 # Check whether --enable-relay or --disable-relay was given.
3029 if test "${enable_relay+set}" = set; then
3030 enableval="$enable_relay"
3033 for ol_val in no yes mod ; do
3034 if test "$enableval" = "$ol_val" ; then
3038 if test "$ol_arg" = "invalid" ; then
3039 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3041 { (exit 1); exit 1; }; }
3043 ol_enable_relay="$ol_arg"
3046 ol_enable_relay=${ol_enable_backends:-yes}
3048 # end --enable-relay
3049 # OpenLDAP --enable-shell
3051 # Check whether --enable-shell or --disable-shell was given.
3052 if test "${enable_shell+set}" = set; then
3053 enableval="$enable_shell"
3056 for ol_val in no yes mod ; do
3057 if test "$enableval" = "$ol_val" ; then
3061 if test "$ol_arg" = "invalid" ; then
3062 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3063 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3064 { (exit 1); exit 1; }; }
3066 ol_enable_shell="$ol_arg"
3069 ol_enable_shell=${ol_enable_backends:-no}
3071 # end --enable-shell
3072 # OpenLDAP --enable-sql
3074 # Check whether --enable-sql or --disable-sql was given.
3075 if test "${enable_sql+set}" = set; then
3076 enableval="$enable_sql"
3079 for ol_val in no yes mod ; do
3080 if test "$enableval" = "$ol_val" ; then
3084 if test "$ol_arg" = "invalid" ; then
3085 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3086 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3087 { (exit 1); exit 1; }; }
3089 ol_enable_sql="$ol_arg"
3092 ol_enable_sql=${ol_enable_backends:-no}
3096 Overlays="accesslog \
3113 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3114 if test "${enable_xxslapoverlays+set}" = set; then
3115 enableval="$enable_xxslapoverlays"
3119 # OpenLDAP --enable-overlays
3121 # Check whether --enable-overlays or --disable-overlays was given.
3122 if test "${enable_overlays+set}" = set; then
3123 enableval="$enable_overlays"
3126 for ol_val in no yes mod ; do
3127 if test "$enableval" = "$ol_val" ; then
3131 if test "$ol_arg" = "invalid" ; then
3132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3134 { (exit 1); exit 1; }; }
3136 ol_enable_overlays="$ol_arg"
3139 # end --enable-overlays
3140 # OpenLDAP --enable-accesslog
3142 # Check whether --enable-accesslog or --disable-accesslog was given.
3143 if test "${enable_accesslog+set}" = set; then
3144 enableval="$enable_accesslog"
3147 for ol_val in no yes mod ; do
3148 if test "$enableval" = "$ol_val" ; then
3152 if test "$ol_arg" = "invalid" ; then
3153 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3154 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3155 { (exit 1); exit 1; }; }
3157 ol_enable_accesslog="$ol_arg"
3160 ol_enable_accesslog=${ol_enable_overlays:-no}
3162 # end --enable-accesslog
3164 # OpenLDAP --enable-auditlog
3166 # Check whether --enable-auditlog or --disable-auditlog was given.
3167 if test "${enable_auditlog+set}" = set; then
3168 enableval="$enable_auditlog"
3171 for ol_val in no yes mod ; do
3172 if test "$enableval" = "$ol_val" ; then
3176 if test "$ol_arg" = "invalid" ; then
3177 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3179 { (exit 1); exit 1; }; }
3181 ol_enable_auditlog="$ol_arg"
3184 ol_enable_auditlog=${ol_enable_overlays:-no}
3186 # end --enable-auditlog
3188 # OpenLDAP --enable-constraint
3190 # Check whether --enable-constraint or --disable-constraint was given.
3191 if test "${enable_constraint+set}" = set; then
3192 enableval="$enable_constraint"
3195 for ol_val in no yes mod ; do
3196 if test "$enableval" = "$ol_val" ; then
3200 if test "$ol_arg" = "invalid" ; then
3201 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3203 { (exit 1); exit 1; }; }
3205 ol_enable_constraint="$ol_arg"
3208 ol_enable_constraint=${ol_enable_overlays:-no}
3210 # end --enable-constraint
3212 # OpenLDAP --enable-dds
3214 # Check whether --enable-dds or --disable-dds was given.
3215 if test "${enable_dds+set}" = set; then
3216 enableval="$enable_dds"
3219 for ol_val in no yes mod ; do
3220 if test "$enableval" = "$ol_val" ; then
3224 if test "$ol_arg" = "invalid" ; then
3225 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3227 { (exit 1); exit 1; }; }
3229 ol_enable_dds="$ol_arg"
3232 ol_enable_dds=${ol_enable_overlays:-no}
3236 # OpenLDAP --enable-dyngroup
3238 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3239 if test "${enable_dyngroup+set}" = set; then
3240 enableval="$enable_dyngroup"
3243 for ol_val in no yes mod ; do
3244 if test "$enableval" = "$ol_val" ; then
3248 if test "$ol_arg" = "invalid" ; then
3249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3251 { (exit 1); exit 1; }; }
3253 ol_enable_dyngroup="$ol_arg"
3256 ol_enable_dyngroup=${ol_enable_overlays:-no}
3258 # end --enable-dyngroup
3260 # OpenLDAP --enable-dynlist
3262 # Check whether --enable-dynlist or --disable-dynlist was given.
3263 if test "${enable_dynlist+set}" = set; then
3264 enableval="$enable_dynlist"
3267 for ol_val in no yes mod ; do
3268 if test "$enableval" = "$ol_val" ; then
3272 if test "$ol_arg" = "invalid" ; then
3273 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3275 { (exit 1); exit 1; }; }
3277 ol_enable_dynlist="$ol_arg"
3280 ol_enable_dynlist=${ol_enable_overlays:-no}
3282 # end --enable-dynlist
3284 # OpenLDAP --enable-ppolicy
3286 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3287 if test "${enable_ppolicy+set}" = set; then
3288 enableval="$enable_ppolicy"
3291 for ol_val in no yes mod ; do
3292 if test "$enableval" = "$ol_val" ; then
3296 if test "$ol_arg" = "invalid" ; then
3297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_ppolicy="$ol_arg"
3304 ol_enable_ppolicy=${ol_enable_overlays:-no}
3306 # end --enable-ppolicy
3308 # OpenLDAP --enable-proxycache
3310 # Check whether --enable-proxycache or --disable-proxycache was given.
3311 if test "${enable_proxycache+set}" = set; then
3312 enableval="$enable_proxycache"
3315 for ol_val in no yes mod ; do
3316 if test "$enableval" = "$ol_val" ; then
3320 if test "$ol_arg" = "invalid" ; then
3321 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3323 { (exit 1); exit 1; }; }
3325 ol_enable_proxycache="$ol_arg"
3328 ol_enable_proxycache=${ol_enable_overlays:-no}
3330 # end --enable-proxycache
3332 # OpenLDAP --enable-refint
3334 # Check whether --enable-refint or --disable-refint was given.
3335 if test "${enable_refint+set}" = set; then
3336 enableval="$enable_refint"
3339 for ol_val in no yes mod ; do
3340 if test "$enableval" = "$ol_val" ; then
3344 if test "$ol_arg" = "invalid" ; then
3345 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3347 { (exit 1); exit 1; }; }
3349 ol_enable_refint="$ol_arg"
3352 ol_enable_refint=${ol_enable_overlays:-no}
3354 # end --enable-refint
3356 # OpenLDAP --enable-retcode
3358 # Check whether --enable-retcode or --disable-retcode was given.
3359 if test "${enable_retcode+set}" = set; then
3360 enableval="$enable_retcode"
3363 for ol_val in no yes mod ; do
3364 if test "$enableval" = "$ol_val" ; then
3368 if test "$ol_arg" = "invalid" ; then
3369 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3371 { (exit 1); exit 1; }; }
3373 ol_enable_retcode="$ol_arg"
3376 ol_enable_retcode=${ol_enable_overlays:-no}
3378 # end --enable-retcode
3380 # OpenLDAP --enable-rwm
3382 # Check whether --enable-rwm or --disable-rwm was given.
3383 if test "${enable_rwm+set}" = set; then
3384 enableval="$enable_rwm"
3387 for ol_val in no yes mod ; do
3388 if test "$enableval" = "$ol_val" ; then
3392 if test "$ol_arg" = "invalid" ; then
3393 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3395 { (exit 1); exit 1; }; }
3397 ol_enable_rwm="$ol_arg"
3400 ol_enable_rwm=${ol_enable_overlays:-no}
3404 # OpenLDAP --enable-seqmod
3406 # Check whether --enable-seqmod or --disable-seqmod was given.
3407 if test "${enable_seqmod+set}" = set; then
3408 enableval="$enable_seqmod"
3411 for ol_val in no yes mod ; do
3412 if test "$enableval" = "$ol_val" ; then
3416 if test "$ol_arg" = "invalid" ; then
3417 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3419 { (exit 1); exit 1; }; }
3421 ol_enable_seqmod="$ol_arg"
3424 ol_enable_seqmod=${ol_enable_overlays:-yes}
3426 # end --enable-seqmod
3428 # OpenLDAP --enable-syncprov
3430 # Check whether --enable-syncprov or --disable-syncprov was given.
3431 if test "${enable_syncprov+set}" = set; then
3432 enableval="$enable_syncprov"
3435 for ol_val in no yes mod ; do
3436 if test "$enableval" = "$ol_val" ; then
3440 if test "$ol_arg" = "invalid" ; then
3441 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3443 { (exit 1); exit 1; }; }
3445 ol_enable_syncprov="$ol_arg"
3448 ol_enable_syncprov=${ol_enable_overlays:-yes}
3450 # end --enable-syncprov
3452 # OpenLDAP --enable-translucent
3454 # Check whether --enable-translucent or --disable-translucent was given.
3455 if test "${enable_translucent+set}" = set; then
3456 enableval="$enable_translucent"
3459 for ol_val in no yes mod ; do
3460 if test "$enableval" = "$ol_val" ; then
3464 if test "$ol_arg" = "invalid" ; then
3465 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3467 { (exit 1); exit 1; }; }
3469 ol_enable_translucent="$ol_arg"
3472 ol_enable_translucent=${ol_enable_overlays:-no}
3474 # end --enable-translucent
3476 # OpenLDAP --enable-unique
3478 # Check whether --enable-unique or --disable-unique was given.
3479 if test "${enable_unique+set}" = set; then
3480 enableval="$enable_unique"
3483 for ol_val in no yes mod ; do
3484 if test "$enableval" = "$ol_val" ; then
3488 if test "$ol_arg" = "invalid" ; then
3489 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3491 { (exit 1); exit 1; }; }
3493 ol_enable_unique="$ol_arg"
3496 ol_enable_unique=${ol_enable_overlays:-no}
3498 # end --enable-unique
3500 # OpenLDAP --enable-valsort
3502 # Check whether --enable-valsort or --disable-valsort was given.
3503 if test "${enable_valsort+set}" = set; then
3504 enableval="$enable_valsort"
3507 for ol_val in no yes mod ; do
3508 if test "$enableval" = "$ol_val" ; then
3512 if test "$ol_arg" = "invalid" ; then
3513 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3515 { (exit 1); exit 1; }; }
3517 ol_enable_valsort="$ol_arg"
3520 ol_enable_valsort=${ol_enable_overlays:-no}
3522 # end --enable-valsort
3525 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3526 if test "${enable_xxslurpdoptions+set}" = set; then
3527 enableval="$enable_xxslurpdoptions"
3530 # OpenLDAP --enable-slurpd
3532 # Check whether --enable-slurpd or --disable-slurpd was given.
3533 if test "${enable_slurpd+set}" = set; then
3534 enableval="$enable_slurpd"
3537 for ol_val in auto yes no ; do
3538 if test "$enableval" = "$ol_val" ; then
3542 if test "$ol_arg" = "invalid" ; then
3543 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3545 { (exit 1); exit 1; }; }
3547 ol_enable_slurpd="$ol_arg"
3550 ol_enable_slurpd=auto
3552 # end --enable-slurpd
3554 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3555 if test "${enable_xxliboptions+set}" = set; then
3556 enableval="$enable_xxliboptions"
3559 # Check whether --enable-static or --disable-static was given.
3560 if test "${enable_static+set}" = set; then
3561 enableval="$enable_static"
3562 p=${PACKAGE-default}
3564 yes) enable_static=yes ;;
3565 no) enable_static=no ;;
3568 # Look at the argument we got. We use all the common list separators.
3569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3570 for pkg in $enableval; do
3572 if test "X$pkg" = "X$p"; then
3583 # Check whether --enable-shared or --disable-shared was given.
3584 if test "${enable_shared+set}" = set; then
3585 enableval="$enable_shared"
3586 p=${PACKAGE-default}
3588 yes) enable_shared=yes ;;
3589 no) enable_shared=no ;;
3592 # Look at the argument we got. We use all the common list separators.
3593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3594 for pkg in $enableval; do
3596 if test "X$pkg" = "X$p"; then
3610 if test $ol_enable_slapd = no ; then
3611 if test $ol_enable_slapi = yes ; then
3612 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3613 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3615 case "$ol_enable_backends" in yes | mod)
3616 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3619 for i in $Backends; do
3620 eval "ol_tmp=\$ol_enable_$i"
3621 if test $ol_tmp != no ; then
3622 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3623 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3624 eval "ol_enable_$i=no"
3627 if test $ol_enable_modules = yes ; then
3628 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3629 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3631 if test $ol_enable_wrappers = yes ; then
3632 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3633 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3635 if test $ol_enable_rlookups = yes ; then
3636 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3637 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3639 if test $ol_enable_dynacl = yes ; then
3640 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3641 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3643 if test $ol_enable_aci != no ; then
3644 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3647 if test $ol_enable_slurpd = yes ; then
3648 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3649 echo "$as_me: error: slurpd requires slapd" >&2;}
3650 { (exit 1); exit 1; }; }
3652 if test $ol_enable_rewrite = yes ; then
3653 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3654 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3656 case "$ol_enable_overlays" in yes | mod)
3657 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3658 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3660 for i in $Overlays; do
3661 eval "ol_tmp=\$ol_enable_$i"
3662 if test $ol_tmp != no ; then
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3665 eval "ol_enable_$i=no"
3669 # force settings to no
3674 ol_enable_modules=no
3675 ol_enable_rlookups=no
3678 ol_enable_wrappers=no
3682 ol_enable_rewrite=no
3684 elif test $ol_enable_modules != yes &&
3685 test $ol_enable_bdb = no &&
3686 test $ol_enable_dnssrv = no &&
3687 test $ol_enable_hdb = no &&
3688 test $ol_enable_ldap = no &&
3689 test $ol_enable_meta = no &&
3690 test $ol_enable_monitor = no &&
3691 test $ol_enable_null = no &&
3692 test $ol_enable_passwd = no &&
3693 test $ol_enable_perl = no &&
3694 test $ol_enable_relay = no &&
3695 test $ol_enable_shell = no &&
3696 test $ol_enable_sql = no ; then
3698 if test $ol_enable_slapd = yes ; then
3699 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3700 echo "$as_me: error: slapd requires a backend" >&2;}
3701 { (exit 1); exit 1; }; }
3703 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3704 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3709 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3710 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3711 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3712 { (exit 1); exit 1; }; }
3715 if test $ol_enable_slurpd = yes ; then
3716 if test $ol_with_threads = no ; then
3717 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3718 echo "$as_me: error: slurpd requires threads" >&2;}
3719 { (exit 1); exit 1; }; }
3723 if test $ol_enable_lmpasswd = yes ; then
3724 if test $ol_with_tls = no ; then
3725 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3726 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3727 { (exit 1); exit 1; }; }
3731 if test $ol_enable_spasswd = yes ; then
3732 if test $ol_with_cyrus_sasl = no ; then
3733 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3734 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3735 { (exit 1); exit 1; }; }
3737 ol_with_cyrus_sasl=yes
3740 echo "$as_me:$LINENO: result: done" >&5
3741 echo "${ECHO_T}done" >&6
3787 BUILD_TRANSLUCENT=no
3791 SLAPD_STATIC_OVERLAYS=
3792 SLAPD_DYNAMIC_OVERLAYS=
3794 SLAPD_MODULES_LDFLAGS=
3795 SLAPD_MODULES_CPPFLAGS=
3797 SLAPD_STATIC_BACKENDS=back-ldif
3798 SLAPD_DYNAMIC_BACKENDS=
3824 cat >>confdefs.h <<\_ACEOF
3825 #define HAVE_MKVERSION 1
3833 *-*-aix*) if test -z "$CC" ; then
3834 case "$ol_with_threads" in
3835 auto | yes | posix) ol_aix_threads=yes ;;
3841 if test $ol_aix_threads = yes ; then
3842 if test -z "${CC}" ; then
3843 for ac_prog in cc_r xlc_r cc
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_CC+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if test -n "$CC"; then
3853 ac_cv_prog_CC="$CC" # Let the user override the test.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_CC="$ac_prog"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 if test -n "$CC"; then
3873 echo "$as_me:$LINENO: result: $CC" >&5
3874 echo "${ECHO_T}$CC" >&6
3876 echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3880 test -n "$CC" && break
3884 if test "$CC" = cc ; then
3885 if test $ol_with_threads != auto ; then
3886 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3887 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3888 { (exit 1); exit 1; }; }
3890 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3891 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3897 case ${CC} in cc_r | xlc_r)
3898 ol_with_threads=posix
3899 ol_cv_pthread_create=yes
3904 if test -z "${CC}"; then
3905 for ac_prog in cc gcc
3907 # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_CC+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 if test -n "$CC"; then
3915 ac_cv_prog_CC="$CC" # Let the user override the test.
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_CC="$ac_prog"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 if test -n "$CC"; then
3935 echo "$as_me:$LINENO: result: $CC" >&5
3936 echo "${ECHO_T}$CC" >&6
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3942 test -n "$CC" && break
3944 test -n "$CC" || CC="missing"
3947 if test "${CC}" = "missing" ; then
3948 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3949 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3950 { (exit 1); exit 1; }; }
3954 if test -z "${AR}"; then
3955 for ac_prog in ar gar
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_AR+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$AR"; then
3965 ac_cv_prog_AR="$AR" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_AR="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 if test -n "$AR"; then
3985 echo "$as_me:$LINENO: result: $AR" >&5
3986 echo "${ECHO_T}$AR" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 test -n "$AR" && break
3994 test -n "$AR" || AR="missing"
3997 if test "${AR}" = "missing" ; then
3998 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3999 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4000 { (exit 1); exit 1; }; }
4008 # Check whether --enable-fast-install or --disable-fast-install was given.
4009 if test "${enable_fast_install+set}" = set; then
4010 enableval="$enable_fast_install"
4011 p=${PACKAGE-default}
4013 yes) enable_fast_install=yes ;;
4014 no) enable_fast_install=no ;;
4016 enable_fast_install=no
4017 # Look at the argument we got. We use all the common list separators.
4018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4019 for pkg in $enableval; do
4021 if test "X$pkg" = "X$p"; then
4022 enable_fast_install=yes
4029 enable_fast_install=yes
4032 DEPDIR="${am__leading_dot}deps"
4034 ac_config_commands="$ac_config_commands depfiles"
4037 am_make=${MAKE-make}
4038 cat > confinc << 'END'
4043 # If we don't find an include directive, just comment out the code.
4044 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4045 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4049 # First try GNU make style include.
4050 echo "include confinc" > confmf
4051 # We grep out `Entering directory' and `Leaving directory'
4052 # messages which can occur if `w' ends up in MAKEFLAGS.
4053 # In particular we don't look at `^make:' because GNU make might
4054 # be invoked under some other name (usually "gmake"), in which
4055 # case it prints its new name instead of `make'.
4056 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4061 # Now try BSD make style include.
4062 if test "$am__include" = "#"; then
4063 echo '.include "confinc"' > confmf
4064 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4065 am__include=.include
4072 echo "$as_me:$LINENO: result: $_am_result" >&5
4073 echo "${ECHO_T}$_am_result" >&6
4074 rm -f confinc confmf
4076 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4077 if test "${enable_dependency_tracking+set}" = set; then
4078 enableval="$enable_dependency_tracking"
4081 if test "x$enable_dependency_tracking" != xno; then
4082 am_depcomp="$ac_aux_dir/depcomp"
4087 if test "x$enable_dependency_tracking" != xno; then
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_CC+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 if test -n "$CC"; then
4131 echo "$as_me:$LINENO: result: $CC" >&5
4132 echo "${ECHO_T}$CC" >&6
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4139 if test -z "$ac_cv_prog_CC"; then
4141 # Extract the first word of "gcc", so it can be a program name with args.
4142 set dummy gcc; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -n "$ac_ct_CC"; then
4149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CC="gcc"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4170 echo "${ECHO_T}$ac_ct_CC" >&6
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4181 if test -z "$CC"; then
4182 if test -n "$ac_tool_prefix"; then
4183 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4184 set dummy ${ac_tool_prefix}cc; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_CC+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 if test -n "$CC"; then
4191 ac_cv_prog_CC="$CC" # Let the user override the test.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_CC="${ac_tool_prefix}cc"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 if test -n "$CC"; then
4211 echo "$as_me:$LINENO: result: $CC" >&5
4212 echo "${ECHO_T}$CC" >&6
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4219 if test -z "$ac_cv_prog_CC"; then
4221 # Extract the first word of "cc", so it can be a program name with args.
4222 set dummy cc; ac_word=$2
4223 echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 if test -n "$ac_ct_CC"; then
4229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238 ac_cv_prog_ac_ct_CC="cc"
4239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4248 if test -n "$ac_ct_CC"; then
4249 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4250 echo "${ECHO_T}$ac_ct_CC" >&6
4252 echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4262 if test -z "$CC"; then
4263 # Extract the first word of "cc", so it can be a program name with args.
4264 set dummy cc; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_prog_CC+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4282 ac_prog_rejected=yes
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 if test $ac_prog_rejected = yes; then
4293 # We found a bogon in the path, so make sure we never use it.
4294 set dummy $ac_cv_prog_CC
4296 if test $# != 0; then
4297 # We chose a different compiler from the bogus one.
4298 # However, it has the same basename, so the bogon will be chosen
4299 # first if we set CC to just the basename; use the full file name.
4301 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4307 if test -n "$CC"; then
4308 echo "$as_me:$LINENO: result: $CC" >&5
4309 echo "${ECHO_T}$CC" >&6
4311 echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4316 if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 if test -n "$CC"; then
4328 ac_cv_prog_CC="$CC" # Let the user override the test.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 if test -n "$CC"; then
4348 echo "$as_me:$LINENO: result: $CC" >&5
4349 echo "${ECHO_T}$CC" >&6
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 test -n "$CC" && break
4358 if test -z "$CC"; then
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 if test -n "$ac_ct_CC"; then
4370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_ac_ct_CC="$ac_prog"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4389 if test -n "$ac_ct_CC"; then
4390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4391 echo "${ECHO_T}$ac_ct_CC" >&6
4393 echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4397 test -n "$ac_ct_CC" && break
4406 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4407 See \`config.log' for more details." >&5
4408 echo "$as_me: error: no acceptable C compiler found in \$PATH
4409 See \`config.log' for more details." >&2;}
4410 { (exit 1); exit 1; }; }
4412 # Provide some information about the compiler.
4413 echo "$as_me:$LINENO:" \
4414 "checking for C compiler version" >&5
4415 ac_compiler=`set X $ac_compile; echo $2`
4416 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4417 (eval $ac_compiler --version </dev/null >&5) 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }
4421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4422 (eval $ac_compiler -v </dev/null >&5) 2>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }
4426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4427 (eval $ac_compiler -V </dev/null >&5) 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4447 ac_clean_files_save=$ac_clean_files
4448 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4449 # Try to create an executable without -o first, disregard a.out.
4450 # It will help us diagnose broken compilers, and finding out an intuition
4452 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4453 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4454 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4455 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4456 (eval $ac_link_default) 2>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; then
4460 # Find the output, starting from the most likely. This scheme is
4461 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4464 # Be careful to initialize this variable, since it used to be cached.
4465 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4467 # b.out is created by i960 compilers.
4468 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4470 test -f "$ac_file" || continue
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4475 # This is the source file.
4478 # We found the default executable, but exeext='' is most
4482 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4483 # FIXME: I believe we export ac_cv_exeext for Libtool,
4484 # but it would be cool to find out if it's true. Does anybody
4485 # maintain Libtool? --akim.
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4497 See \`config.log' for more details." >&5
4498 echo "$as_me: error: C compiler cannot create executables
4499 See \`config.log' for more details." >&2;}
4500 { (exit 77); exit 77; }; }
4503 ac_exeext=$ac_cv_exeext
4504 echo "$as_me:$LINENO: result: $ac_file" >&5
4505 echo "${ECHO_T}$ac_file" >&6
4507 # Check the compiler produces executables we can run. If not, either
4508 # the compiler is broken, or we cross compile.
4509 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4510 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4511 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4512 # If not cross compiling, check that we can run a simple program.
4513 if test "$cross_compiling" != yes; then
4514 if { ac_try='./$ac_file'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4522 if test "$cross_compiling" = maybe; then
4525 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4526 If you meant to cross compile, use \`--host'.
4527 See \`config.log' for more details." >&5
4528 echo "$as_me: error: cannot run C compiled programs.
4529 If you meant to cross compile, use \`--host'.
4530 See \`config.log' for more details." >&2;}
4531 { (exit 1); exit 1; }; }
4535 echo "$as_me:$LINENO: result: yes" >&5
4536 echo "${ECHO_T}yes" >&6
4538 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4539 ac_clean_files=$ac_clean_files_save
4540 # Check the compiler produces executables we can run. If not, either
4541 # the compiler is broken, or we cross compile.
4542 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4543 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4544 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4545 echo "${ECHO_T}$cross_compiling" >&6
4547 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4548 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; then
4554 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4555 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4556 # work properly (i.e., refer to `conftest.exe'), while it won't with
4558 for ac_file in conftest.exe conftest conftest.*; do
4559 test -f "$ac_file" || continue
4561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4562 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4569 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4572 See \`config.log' for more details." >&2;}
4573 { (exit 1); exit 1; }; }
4576 rm -f conftest$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4578 echo "${ECHO_T}$ac_cv_exeext" >&6
4580 rm -f conftest.$ac_ext
4581 EXEEXT=$ac_cv_exeext
4583 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4584 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4585 if test "${ac_cv_objext+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4603 rm -f conftest.o conftest.obj
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; then
4609 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4621 See \`config.log' for more details." >&5
4622 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4623 See \`config.log' for more details." >&2;}
4624 { (exit 1); exit 1; }; }
4627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4630 echo "${ECHO_T}$ac_cv_objext" >&6
4631 OBJEXT=$ac_cv_objext
4633 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4634 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4689 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4690 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4691 GCC=`test $ac_compiler_gnu = yes && echo yes`
4692 ac_test_CFLAGS=${CFLAGS+set}
4693 ac_save_CFLAGS=$CFLAGS
4695 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4696 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4697 if test "${ac_cv_prog_cc_g+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717 (eval $ac_compile) 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_c_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4748 if test "$ac_test_CFLAGS" = set; then
4749 CFLAGS=$ac_save_CFLAGS
4750 elif test $ac_cv_prog_cc_g = yes; then
4751 if test "$GCC" = yes; then
4757 if test "$GCC" = yes; then
4763 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4764 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4765 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 ac_cv_prog_cc_stdc=no
4770 cat >conftest.$ac_ext <<_ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4778 #include <sys/types.h>
4779 #include <sys/stat.h>
4780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4781 struct buf { int x; };
4782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4783 static char *e (p, i)
4789 static char *f (char * (*g) (char **, int), char **p, ...)
4794 s = g (p, va_arg (v,int));
4799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4800 function prototypes and stuff, but not '\xHH' hex character constants.
4801 These don't provoke an error unfortunately, instead are silently treated
4802 as 'x'. The following induces an error, until -std1 is added to get
4803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4804 array size at least. It's necessary to write '\x00'==0 to get something
4805 that's true only with -std1. */
4806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4808 int test (int i, double x);
4809 struct s1 {int (*f) (int a);};
4810 struct s2 {int (*f) (double a);};
4811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4822 # Don't try gcc -ansi; that turns off useful extensions and
4823 # breaks some systems' header files.
4824 # AIX -qlanglvl=ansi
4825 # Ultrix and OSF/1 -std1
4826 # HP-UX 10.20 and later -Ae
4827 # HP-UX older versions -Aa -D_HPUX_SOURCE
4828 # SVR4 -Xc -D__EXTENSIONS__
4829 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831 CC="$ac_save_CC $ac_arg"
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -z "$ac_c_werror_flag"
4842 || test ! -s conftest.err'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_prog_cc_stdc=$ac_arg
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4861 rm -f conftest.err conftest.$ac_objext
4863 rm -f conftest.$ac_ext conftest.$ac_objext
4868 case "x$ac_cv_prog_cc_stdc" in
4870 echo "$as_me:$LINENO: result: none needed" >&5
4871 echo "${ECHO_T}none needed" >&6 ;;
4873 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4874 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4875 CC="$CC $ac_cv_prog_cc_stdc" ;;
4878 # Some people use a C++ compiler to compile C. Since we use `exit',
4879 # in C++ we need to declare it. In case someone uses the same compiler
4880 # for both compiling C and C++ we need to have the C++ compiler decide
4881 # the declaration of exit, since it's the most demanding environment.
4882 cat >conftest.$ac_ext <<_ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889 (eval $ac_compile) 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest.$ac_objext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 for ac_declaration in \
4911 'extern "C" void std::exit (int) throw (); using std::exit;' \
4912 'extern "C" void std::exit (int); using std::exit;' \
4913 'extern "C" void exit (int) throw ();' \
4914 'extern "C" void exit (int);' \
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 cat >conftest.$ac_ext <<_ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4982 grep -v '^ *+' conftest.er1 >conftest.err
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009 if test -n "$ac_declaration"; then
5010 echo '#ifdef __cplusplus' >>confdefs.h
5011 echo $ac_declaration >>confdefs.h
5012 echo '#endif' >>confdefs.h
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027 depcc="$CC" am_compiler_list=
5029 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5030 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5031 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035 # We make a subdir and do the tests there. Otherwise we can end up
5036 # making bogus files that we don't know about and never remove. For
5037 # instance it was reported that on HP-UX the gcc test will end up
5038 # making a dummy file named `D' -- because `-MD' means `put the output
5041 # Copy depcomp to subdir because otherwise we won't find it if we're
5042 # using a relative directory.
5043 cp "$am_depcomp" conftest.dir
5045 # We will build objects and dependencies in a subdirectory because
5046 # it helps to detect inapplicable dependency modes. For instance
5047 # both Tru64's cc and ICC support -MD to output dependencies as a
5048 # side effect of compilation, but ICC will put the dependencies in
5049 # the current directory while Tru64 will put them in the object
5053 am_cv_CC_dependencies_compiler_type=none
5054 if test "$am_compiler_list" = ""; then
5055 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5057 for depmode in $am_compiler_list; do
5058 # Setup a source with many dependencies, because some compilers
5059 # like to wrap large dependency lists on column 80 (with \), and
5060 # we should not choose a depcomp mode which is confused by this.
5062 # We need to recreate these files for each test, as the compiler may
5063 # overwrite some of them when testing with obscure command lines.
5064 # This happens at least with the AIX C compiler.
5066 for i in 1 2 3 4 5 6; do
5067 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5068 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5069 # Solaris 8's {/usr,}/bin/sh.
5070 touch sub/conftst$i.h
5072 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5076 # after this tag, mechanisms are not by side-effect, so they'll
5077 # only be used when explicitly requested
5078 if test "x$enable_dependency_tracking" = xyes; then
5086 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5087 # mode. It turns out that the SunPro C++ compiler does not properly
5088 # handle `-M -o', and we need to detect this.
5089 if depmode=$depmode \
5090 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5091 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5092 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5093 >/dev/null 2>conftest.err &&
5094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097 # icc doesn't choke on unknown options, it will just issue warnings
5098 # or remarks (even with -Werror). So we grep stderr for any message
5099 # that says an option was ignored or not supported.
5100 # When given -MP, icc 7.0 and 7.1 complain thusly:
5101 # icc: Command line warning: ignoring option '-M'; no argument required
5102 # The diagnosis changed in icc 8.0:
5103 # icc: Command line remark: option '-MP' not supported
5104 if (grep 'ignoring option' conftest.err ||
5105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106 am_cv_CC_dependencies_compiler_type=$depmode
5115 am_cv_CC_dependencies_compiler_type=none
5119 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5120 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5126 test "x$enable_dependency_tracking" != xno \
5127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5129 am__fastdepCC_FALSE='#'
5131 am__fastdepCC_TRUE='#'
5132 am__fastdepCC_FALSE=
5136 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5137 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5138 if test "${lt_cv_path_SED+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 # Loop through the user's path and test for sed and gsed.
5142 # Then use that list of sed's as ones to test for truncation.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for lt_ac_prog in sed gsed; do
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5151 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5158 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5159 # along with /bin/sed that truncates output.
5160 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5161 test ! -f $lt_ac_sed && continue
5162 cat /dev/null > conftest.in
5164 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5165 # Check for GNU sed and select it if it is found.
5166 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5167 lt_cv_path_SED=$lt_ac_sed
5171 cat conftest.in conftest.in >conftest.tmp
5172 mv conftest.tmp conftest.in
5173 cp conftest.in conftest.nl
5175 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5176 cmp -s conftest.out conftest.nl || break
5177 # 10000 chars as input seems more than enough
5178 test $lt_ac_count -gt 10 && break
5179 lt_ac_count=`expr $lt_ac_count + 1`
5180 if test $lt_ac_count -gt $lt_ac_max; then
5181 lt_ac_max=$lt_ac_count
5182 lt_cv_path_SED=$lt_ac_sed
5190 echo "$as_me:$LINENO: result: $SED" >&5
5191 echo "${ECHO_T}$SED" >&6
5193 echo "$as_me:$LINENO: checking for egrep" >&5
5194 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5195 if test "${ac_cv_prog_egrep+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5199 then ac_cv_prog_egrep='grep -E'
5200 else ac_cv_prog_egrep='egrep'
5203 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5204 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5205 EGREP=$ac_cv_prog_egrep
5209 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5210 if test "${with_gnu_ld+set}" = set; then
5211 withval="$with_gnu_ld"
5212 test "$withval" = no || with_gnu_ld=yes
5217 if test "$GCC" = yes; then
5218 # Check if gcc -print-prog-name=ld gives a path.
5219 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5220 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5223 # gcc leaves a trailing carriage return which upsets mingw
5224 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5226 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5229 # Accept absolute paths.
5231 re_direlt='/[^/][^/]*/\.\./'
5232 # Canonicalize the pathname of ld
5233 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5234 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5235 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5237 test -z "$LD" && LD="$ac_prog"
5240 # If it fails, then pretend we aren't using GCC.
5244 # If it is relative, then search for the first ld in PATH.
5248 elif test "$with_gnu_ld" = yes; then
5249 echo "$as_me:$LINENO: checking for GNU ld" >&5
5250 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5252 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5253 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5255 if test "${lt_cv_path_LD+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test -z "$LD"; then
5259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5260 for ac_dir in $PATH; do
5262 test -z "$ac_dir" && ac_dir=.
5263 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5264 lt_cv_path_LD="$ac_dir/$ac_prog"
5265 # Check to see if the program is GNU ld. I'd rather use --version,
5266 # but apparently some variants of GNU ld only accept -v.
5267 # Break only if it was the GNU/non-GNU ld that we prefer.
5268 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5269 *GNU* | *'with BFD'*)
5270 test "$with_gnu_ld" != no && break
5273 test "$with_gnu_ld" != yes && break
5280 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5285 if test -n "$LD"; then
5286 echo "$as_me:$LINENO: result: $LD" >&5
5287 echo "${ECHO_T}$LD" >&6
5289 echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6
5292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5294 { (exit 1); exit 1; }; }
5295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5297 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5301 case `$LD -v 2>&1 </dev/null` in
5302 *GNU* | *'with BFD'*)
5303 lt_cv_prog_gnu_ld=yes
5306 lt_cv_prog_gnu_ld=no
5310 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5311 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5312 with_gnu_ld=$lt_cv_prog_gnu_ld
5315 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5316 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5317 if test "${lt_cv_ld_reload_flag+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 lt_cv_ld_reload_flag='-r'
5322 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5323 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5324 reload_flag=$lt_cv_ld_reload_flag
5325 case $reload_flag in
5327 *) reload_flag=" $reload_flag" ;;
5329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5332 if test "$GCC" = yes; then
5333 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5340 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5341 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5342 if test "${lt_cv_path_NM+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 if test -n "$NM"; then
5346 # Let the user override the test.
5349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5350 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5352 test -z "$ac_dir" && ac_dir=.
5353 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5354 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5355 # Check to see if the nm accepts a BSD-compat flag.
5356 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5357 # nm: unknown option "B" ignored
5358 # Tru64's nm complains that /dev/null is an invalid object file
5359 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5360 */dev/null* | *'Invalid file or object type'*)
5361 lt_cv_path_NM="$tmp_nm -B"
5365 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5367 lt_cv_path_NM="$tmp_nm -p"
5371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5372 continue # so that we can try to find one that supports BSD flags
5379 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5382 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5383 echo "${ECHO_T}$lt_cv_path_NM" >&6
5386 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5387 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5389 if test "$LN_S" = "ln -s"; then
5390 echo "$as_me:$LINENO: result: yes" >&5
5391 echo "${ECHO_T}yes" >&6
5393 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5394 echo "${ECHO_T}no, using $LN_S" >&6
5397 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5398 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5399 if test "${lt_cv_deplibs_check_method+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 lt_cv_file_magic_cmd='$MAGIC_CMD'
5403 lt_cv_file_magic_test_file=
5404 lt_cv_deplibs_check_method='unknown'
5405 # Need to set the preceding variable on all platforms that support
5406 # interlibrary dependencies.
5407 # 'none' -- dependencies not supported.
5408 # `unknown' -- same as none, but documents that we really don't know.
5409 # 'pass_all' -- all dependencies passed with no checks.
5410 # 'test_compile' -- check by making test program.
5411 # 'file_magic [[regex]]' -- check by looking for files in library path
5412 # which responds to the $file_magic_cmd with a given extended regex.
5413 # If you have `file' or equivalent on your system and you're not sure
5414 # whether `pass_all' will *always* work, you probably want this one.
5418 lt_cv_deplibs_check_method=pass_all
5422 lt_cv_deplibs_check_method=pass_all
5426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5427 lt_cv_file_magic_cmd='/usr/bin/file -L'
5428 lt_cv_file_magic_test_file=/shlib/libc.so
5432 # func_win32_libid is a shell function defined in ltmain.sh
5433 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5434 lt_cv_file_magic_cmd='func_win32_libid'
5438 # Base MSYS/MinGW do not provide the 'file' command needed by
5439 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5440 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5441 lt_cv_file_magic_cmd='$OBJDUMP -f'
5444 darwin* | rhapsody*)
5445 lt_cv_deplibs_check_method=pass_all
5448 freebsd* | kfreebsd*-gnu | dragonfly*)
5449 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5452 # Not sure whether the presence of OpenBSD here was a mistake.
5453 # Let's accept both of them until this is cleared up.
5454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5455 lt_cv_file_magic_cmd=/usr/bin/file
5456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5460 lt_cv_deplibs_check_method=pass_all
5465 lt_cv_deplibs_check_method=pass_all
5468 hpux10.20* | hpux11*)
5469 lt_cv_file_magic_cmd=/usr/bin/file
5472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5473 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5476 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]'
5477 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5481 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5486 irix5* | irix6* | nonstopux*)
5488 *-32|*"-32 ") libmagic=32-bit;;
5489 *-n32|*"-n32 ") libmagic=N32;;
5490 *-64|*"-64 ") libmagic=64-bit;;
5491 *) libmagic=never-match;;
5493 lt_cv_deplibs_check_method=pass_all
5496 # This must be Linux ELF.
5498 lt_cv_deplibs_check_method=pass_all
5502 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5511 lt_cv_file_magic_cmd=/usr/bin/file
5512 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5516 lt_cv_deplibs_check_method=unknown
5520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5527 osf3* | osf4* | osf5*)
5528 lt_cv_deplibs_check_method=pass_all
5532 lt_cv_deplibs_check_method=pass_all
5536 lt_cv_deplibs_check_method=pass_all
5539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5540 case $host_vendor in
5542 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]'
5543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5546 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_file_magic_cmd='/bin/file'
5550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5553 lt_cv_file_magic_cmd='/bin/file'
5554 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5555 lt_cv_file_magic_test_file=/lib/libc.so
5558 lt_cv_deplibs_check_method=pass_all
5563 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5564 lt_cv_deplibs_check_method=pass_all
5569 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5570 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5571 file_magic_cmd=$lt_cv_file_magic_cmd
5572 deplibs_check_method=$lt_cv_deplibs_check_method
5573 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5578 # If no C compiler was specified, use CC.
5581 # Allow CC to be a program name with arguments.
5585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5586 if test "${enable_libtool_lock+set}" = set; then
5587 enableval="$enable_libtool_lock"
5590 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5592 # Some flags need to be propagated to the compiler or linker for good
5596 # Find out which ABI we are using.
5597 echo 'int i;' > conftest.$ac_ext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; then
5603 case `/usr/bin/file conftest.$ac_objext` in
5615 # Find out which ABI we are using.
5616 echo '#line 5616 "configure"' > conftest.$ac_ext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618 (eval $ac_compile) 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; then
5622 if test "$lt_cv_prog_gnu_ld" = yes; then
5623 case `/usr/bin/file conftest.$ac_objext` in
5625 LD="${LD-ld} -melf32bsmip"
5628 LD="${LD-ld} -melf32bmipn32"
5631 LD="${LD-ld} -melf64bmip"
5635 case `/usr/bin/file conftest.$ac_objext` in
5651 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5652 # Find out which ABI we are using.
5653 echo 'int i;' > conftest.$ac_ext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; then
5659 case `/usr/bin/file conftest.o` in
5663 LD="${LD-ld} -m elf_i386"
5665 ppc64-*linux*|powerpc64-*linux*)
5666 LD="${LD-ld} -m elf32ppclinux"
5669 LD="${LD-ld} -m elf_s390"
5672 LD="${LD-ld} -m elf32_sparc"
5679 LD="${LD-ld} -m elf_x86_64"
5681 ppc*-*linux*|powerpc*-*linux*)
5682 LD="${LD-ld} -m elf64ppc"
5685 LD="${LD-ld} -m elf64_s390"
5688 LD="${LD-ld} -m elf64_sparc"
5698 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5699 SAVE_CFLAGS="$CFLAGS"
5700 CFLAGS="$CFLAGS -belf"
5701 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5702 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5703 if test "${lt_cv_cc_needs_belf+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 ac_cpp='$CPP $CPPFLAGS'
5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 lt_cv_cc_needs_belf=yes
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 lt_cv_cc_needs_belf=no
5756 rm -f conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext conftest.$ac_ext
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5766 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5767 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5768 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5769 CFLAGS="$SAVE_CFLAGS"
5772 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 if test -n "$DLLTOOL"; then
5782 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 DLLTOOL=$ac_cv_prog_DLLTOOL
5801 if test -n "$DLLTOOL"; then
5802 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5803 echo "${ECHO_T}$DLLTOOL" >&6
5805 echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5810 if test -z "$ac_cv_prog_DLLTOOL"; then
5811 ac_ct_DLLTOOL=$DLLTOOL
5812 # Extract the first word of "dlltool", so it can be a program name with args.
5813 set dummy dlltool; ac_word=$2
5814 echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5816 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 if test -n "$ac_ct_DLLTOOL"; then
5820 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5839 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5840 if test -n "$ac_ct_DLLTOOL"; then
5841 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5842 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5844 echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5848 DLLTOOL=$ac_ct_DLLTOOL
5850 DLLTOOL="$ac_cv_prog_DLLTOOL"
5853 if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}as; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_AS+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test -n "$AS"; then
5862 ac_cv_prog_AS="$AS" # Let the user override the test.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_AS="${ac_tool_prefix}as"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 if test -n "$AS"; then
5882 echo "$as_me:$LINENO: result: $AS" >&5
5883 echo "${ECHO_T}$AS" >&6
5885 echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5890 if test -z "$ac_cv_prog_AS"; then
5892 # Extract the first word of "as", so it can be a program name with args.
5893 set dummy as; ac_word=$2
5894 echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5896 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 if test -n "$ac_ct_AS"; then
5900 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_ac_ct_AS="as"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5919 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5920 if test -n "$ac_ct_AS"; then
5921 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5922 echo "${ECHO_T}$ac_ct_AS" >&6
5924 echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5933 if test -n "$ac_tool_prefix"; then
5934 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 if test -n "$OBJDUMP"; then
5942 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 OBJDUMP=$ac_cv_prog_OBJDUMP
5961 if test -n "$OBJDUMP"; then
5962 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5963 echo "${ECHO_T}$OBJDUMP" >&6
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5970 if test -z "$ac_cv_prog_OBJDUMP"; then
5971 ac_ct_OBJDUMP=$OBJDUMP
5972 # Extract the first word of "objdump", so it can be a program name with args.
5973 set dummy objdump; ac_word=$2
5974 echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5976 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 if test -n "$ac_ct_OBJDUMP"; then
5980 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6000 if test -n "$ac_ct_OBJDUMP"; then
6001 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6002 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6004 echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6008 OBJDUMP=$ac_ct_OBJDUMP
6010 OBJDUMP="$ac_cv_prog_OBJDUMP"
6017 need_locks="$enable_libtool_lock"
6021 ac_cpp='$CPP $CPPFLAGS'
6022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6025 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6026 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6027 # On Suns, sometimes $CPP names a directory.
6028 if test -n "$CPP" && test -d "$CPP"; then
6031 if test -z "$CPP"; then
6032 if test "${ac_cv_prog_CPP+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 # Double quotes because CPP needs to be expanded
6036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6039 for ac_c_preproc_warn_flag in '' yes
6041 # Use a header file that comes with gcc, so configuring glibc
6042 # with a fresh cross-compiler works.
6043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6044 # <limits.h> exists even on freestanding compilers.
6045 # On the NeXT, cc -E runs the code through the compiler's parser,
6046 # not just through cpp. "Syntax error" is here to catch this case.
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6054 # include <limits.h>
6056 # include <assert.h>
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null; then
6068 if test -s conftest.err; then
6069 ac_cpp_err=$ac_c_preproc_warn_flag
6070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6077 if test -z "$ac_cpp_err"; then
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 # Broken: fails on valid input.
6086 rm -f conftest.err conftest.$ac_ext
6088 # OK, works on sane cases. Now check whether non-existent headers
6089 # can be detected and how.
6090 cat >conftest.$ac_ext <<_ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <ac_nonexistent.h>
6098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null; then
6106 if test -s conftest.err; then
6107 ac_cpp_err=$ac_c_preproc_warn_flag
6108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6115 if test -z "$ac_cpp_err"; then
6116 # Broken: success on invalid input.
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6122 # Passes both tests.
6126 rm -f conftest.err conftest.$ac_ext
6129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6130 rm -f conftest.err conftest.$ac_ext
6131 if $ac_preproc_ok; then
6143 echo "$as_me:$LINENO: result: $CPP" >&5
6144 echo "${ECHO_T}$CPP" >&6
6146 for ac_c_preproc_warn_flag in '' yes
6148 # Use a header file that comes with gcc, so configuring glibc
6149 # with a fresh cross-compiler works.
6150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6151 # <limits.h> exists even on freestanding compilers.
6152 # On the NeXT, cc -E runs the code through the compiler's parser,
6153 # not just through cpp. "Syntax error" is here to catch this case.
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6161 # include <limits.h>
6163 # include <assert.h>
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev/null; then
6175 if test -s conftest.err; then
6176 ac_cpp_err=$ac_c_preproc_warn_flag
6177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184 if test -z "$ac_cpp_err"; then
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 # Broken: fails on valid input.
6193 rm -f conftest.err conftest.$ac_ext
6195 # OK, works on sane cases. Now check whether non-existent headers
6196 # can be detected and how.
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 #include <ac_nonexistent.h>
6205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } >/dev/null; then
6213 if test -s conftest.err; then
6214 ac_cpp_err=$ac_c_preproc_warn_flag
6215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6222 if test -z "$ac_cpp_err"; then
6223 # Broken: success on invalid input.
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 # Passes both tests.
6233 rm -f conftest.err conftest.$ac_ext
6236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6237 rm -f conftest.err conftest.$ac_ext
6238 if $ac_preproc_ok; then
6241 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6242 See \`config.log' for more details." >&5
6243 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6244 See \`config.log' for more details." >&2;}
6245 { (exit 1); exit 1; }; }
6249 ac_cpp='$CPP $CPPFLAGS'
6250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6257 if test "${ac_cv_header_stdc+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_header_stdc=yes
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 ac_cv_header_stdc=no
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 if test $ac_cv_header_stdc = yes; then
6311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6312 cat >conftest.$ac_ext <<_ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "memchr" >/dev/null 2>&1; then
6325 ac_cv_header_stdc=no
6331 if test $ac_cv_header_stdc = yes; then
6332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 $EGREP "free" >/dev/null 2>&1; then
6346 ac_cv_header_stdc=no
6352 if test $ac_cv_header_stdc = yes; then
6353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6354 if test "$cross_compiling" = yes; then
6357 cat >conftest.$ac_ext <<_ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6364 #if ((' ' & 0x0FF) == 0x020)
6365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6368 # define ISLOWER(c) \
6369 (('a' <= (c) && (c) <= 'i') \
6370 || ('j' <= (c) && (c) <= 'r') \
6371 || ('s' <= (c) && (c) <= 'z'))
6372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6380 for (i = 0; i < 256; i++)
6381 if (XOR (islower (i), ISLOWER (i))
6382 || toupper (i) != TOUPPER (i))
6387 rm -f conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6400 echo "$as_me: program exited with status $ac_status" >&5
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_header_stdc=no
6407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6413 if test $ac_cv_header_stdc = yes; then
6415 cat >>confdefs.h <<\_ACEOF
6416 #define STDC_HEADERS 1
6421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6432 inttypes.h stdint.h unistd.h
6434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6435 echo "$as_me:$LINENO: checking for $ac_header" >&5
6436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6448 #include <$ac_header>
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>conftest.er1
6454 grep -v '^ *+' conftest.er1 >conftest.err
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -z "$ac_c_werror_flag"
6460 || test ! -s conftest.err'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest.$ac_objext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 eval "$as_ac_Header=yes"
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6477 eval "$as_ac_Header=no"
6479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6484 cat >>confdefs.h <<_ACEOF
6485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6494 for ac_header in dlfcn.h
6496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6498 echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6506 # Is the header compilable?
6507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516 #include <$ac_header>
6518 rm -f conftest.$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>conftest.er1
6522 grep -v '^ *+' conftest.er1 >conftest.err
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_header_compiler=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_header_compiler=no
6547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6549 echo "${ECHO_T}$ac_header_compiler" >&6
6551 # Is the header present?
6552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <$ac_header>
6562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } >/dev/null; then
6570 if test -s conftest.err; then
6571 ac_cpp_err=$ac_c_preproc_warn_flag
6572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6579 if test -z "$ac_cpp_err"; then
6580 ac_header_preproc=yes
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_header_preproc=no
6587 rm -f conftest.err conftest.$ac_ext
6588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6589 echo "${ECHO_T}$ac_header_preproc" >&6
6591 # So? What about this header?
6592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6598 ac_header_preproc=yes
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6615 ## --------------------------------------------- ##
6616 ## Report this to <http://www.openldap.org/its/> ##
6617 ## --------------------------------------------- ##
6620 sed "s/^/$as_me: WARNING: /" >&2
6623 echo "$as_me:$LINENO: checking for $ac_header" >&5
6624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 eval "$as_ac_Header=\$ac_header_preproc"
6630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6635 cat >>confdefs.h <<_ACEOF
6636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6644 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6646 # find the maximum length of command line arguments
6647 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6648 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6649 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 # On DJGPP, this test can blow up pretty badly due to problems in libc
6658 # (any single argument exceeding 2000 bytes causes a buffer overrun
6659 # during glob expansion). Even if it were fixed, the result of this
6660 # check would be larger than it should be.
6661 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6665 # Under GNU Hurd, this test is not required because there is
6666 # no limit to the length of command line arguments.
6667 # Libtool will interpret -1 as no limit whatsoever
6668 lt_cv_sys_max_cmd_len=-1;
6672 # On Win9x/ME, this test blows up -- it succeeds, but takes
6673 # about 5 minutes as the teststring grows exponentially.
6674 # Worse, since 9x/ME are not pre-emptively multitasking,
6675 # you end up with a "frozen" computer, even though with patience
6676 # the test eventually succeeds (with a max line length of 256k).
6677 # Instead, let's just punt: use the minimum linelength reported by
6678 # all of the supported platforms: 8192 (on NT/2K/XP).
6679 lt_cv_sys_max_cmd_len=8192;
6683 # On AmigaOS with pdksh, this test takes hours, literally.
6684 # So we just punt and use a minimum line length of 8192.
6685 lt_cv_sys_max_cmd_len=8192;
6688 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6689 # This has been around since 386BSD, at least. Likely further.
6690 if test -x /sbin/sysctl; then
6691 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6692 elif test -x /usr/sbin/sysctl; then
6693 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6695 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6697 # And add a safety zone
6698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6702 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6703 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6704 # nice to cause kernel panics so lets avoid the loop below.
6705 # First set a reasonable default.
6706 lt_cv_sys_max_cmd_len=16384
6708 if test -x /sbin/sysconfig; then
6709 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6710 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6715 # If test is not a shell built-in, we'll probably end up computing a
6716 # maximum length that is only half of the actual maximum length, but
6718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6719 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6720 = "XX$teststring") >/dev/null 2>&1 &&
6721 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6722 lt_cv_sys_max_cmd_len=$new_result &&
6723 test $i != 17 # 1/2 MB should be enough
6726 teststring=$teststring$teststring
6729 # Add a significant safety factor because C++ compilers can tack on massive
6730 # amounts of additional arguments before passing them to the linker.
6731 # It appears as though 1/2 is a usable value.
6732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6738 if test -n $lt_cv_sys_max_cmd_len ; then
6739 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6740 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6742 echo "$as_me:$LINENO: result: none" >&5
6743 echo "${ECHO_T}none" >&6
6749 # Check for command to grab the raw symbol name followed by C symbol from nm.
6750 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6751 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6752 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 # These are sane defaults that work on at least a few old systems.
6757 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6759 # Character class describing NM global symbol codes.
6760 symcode='[BCDEGRST]'
6762 # Regexp to match symbols that can be accessed directly from C.
6763 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6765 # Transform an extracted symbol line into a proper C declaration
6766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6768 # Transform an extracted symbol line into symbol name and symbol address
6769 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'"
6771 # Define system-specific variables.
6776 cygwin* | mingw* | pw32*)
6777 symcode='[ABCDGISTW]'
6779 hpux*) # Its linker distinguishes data from code symbols
6780 if test "$host_cpu" = ia64; then
6781 symcode='[ABCDEGRST]'
6783 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6784 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'"
6787 if test "$host_cpu" = ia64; then
6788 symcode='[ABCDGIRSTW]'
6789 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6790 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6794 symcode='[BCDEGRST]'
6797 symcode='[BCDEGQRST]'
6807 # Handle CRLF in mingw tool chain
6811 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6815 # If we're using GNU nm, then use its standard symbol codes.
6816 case `$NM -V 2>&1` in
6817 *GNU* | *'with BFD'*)
6818 symcode='[ABCDGIRSTW]' ;;
6821 # Try without a prefix undercore, then with it.
6822 for ac_symprfx in "" "_"; do
6824 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6825 symxfrm="\\1 $ac_symprfx\\2 \\2"
6827 # Write the raw and C identifiers.
6828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6830 # Check to see that the pipe works correctly.
6834 cat > conftest.$ac_ext <<EOF
6839 void nm_test_func(){}
6843 int main(){nm_test_var='a';nm_test_func();return(0);}
6846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847 (eval $ac_compile) 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; then
6851 # Now try to grab the symbols.
6853 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6854 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && test -s "$nlist"; then
6858 # Try sorting and uniquifying the output.
6859 if sort "$nlist" | uniq > "$nlist"T; then
6860 mv -f "$nlist"T "$nlist"
6865 # Make sure that we snagged all the symbols we need.
6866 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6867 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6868 cat <<EOF > conftest.$ac_ext
6874 # Now generate the symbol file.
6875 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6877 cat <<EOF >> conftest.$ac_ext
6878 #if defined (__STDC__) && __STDC__
6879 # define lt_ptr_t void *
6881 # define lt_ptr_t char *
6885 /* The mapping between symbol names and symbols. */
6890 lt_preloaded_symbols[] =
6893 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6894 cat <<\EOF >> conftest.$ac_ext
6902 # Now try linking the two files.
6903 mv conftest.$ac_objext conftstm.$ac_objext
6904 lt_save_LIBS="$LIBS"
6905 lt_save_CFLAGS="$CFLAGS"
6906 LIBS="conftstm.$ac_objext"
6907 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909 (eval $ac_link) 2>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6915 LIBS="$lt_save_LIBS"
6916 CFLAGS="$lt_save_CFLAGS"
6918 echo "cannot find nm_test_func in $nlist" >&5
6921 echo "cannot find nm_test_var in $nlist" >&5
6924 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6927 echo "$progname: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 rm -f conftest* conftst*
6932 # Do not use the global_symbol_pipe unless it works.
6933 if test "$pipe_works" = yes; then
6936 lt_cv_sys_global_symbol_pipe=
6942 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6943 lt_cv_sys_global_symbol_to_cdecl=
6945 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6946 echo "$as_me:$LINENO: result: failed" >&5
6947 echo "${ECHO_T}failed" >&6
6949 echo "$as_me:$LINENO: result: ok" >&5
6950 echo "${ECHO_T}ok" >&6
6953 echo "$as_me:$LINENO: checking for objdir" >&5
6954 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6955 if test "${lt_cv_objdir+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 rm -f .libs 2>/dev/null
6959 mkdir .libs 2>/dev/null
6960 if test -d .libs; then
6963 # MS-DOS does not allow filenames that begin with a dot.
6966 rmdir .libs 2>/dev/null
6968 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6969 echo "${ECHO_T}$lt_cv_objdir" >&6
6970 objdir=$lt_cv_objdir
6978 # AIX sometimes has problems with the GCC collect2 program. For some
6979 # reason, if we set the COLLECT_NAMES environment variable, the problems
6980 # vanish in a puff of smoke.
6981 if test "X${COLLECT_NAMES+set}" != Xset; then
6983 export COLLECT_NAMES
6988 # Sed substitution that helps us do robust quoting. It backslashifies
6989 # metacharacters that are still active within double-quoted strings.
6990 Xsed='sed -e 1s/^X//'
6991 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6993 # Same as above, but do not quote variable references.
6994 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6996 # Sed substitution to delay expansion of an escaped shell variable in a
6997 # double_quote_subst'ed string.
6998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7000 # Sed substitution to avoid accidental globbing in evaled expressions
7001 no_glob_subst='s/\*/\\\*/g'
7007 default_ofile=libtool
7008 can_build_shared=yes
7010 # All known linkers require a `.a' archive for static linking (except MSVC,
7011 # which needs '.lib').
7013 ltmain="$ac_aux_dir/ltmain.sh"
7014 ofile="$default_ofile"
7015 with_gnu_ld="$lt_cv_prog_gnu_ld"
7017 if test -n "$ac_tool_prefix"; then
7018 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}ar; ac_word=$2
7020 echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022 if test "${ac_cv_prog_AR+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 if test -n "$AR"; then
7026 ac_cv_prog_AR="$AR" # Let the user override the test.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_AR="${ac_tool_prefix}ar"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 if test -n "$AR"; then
7046 echo "$as_me:$LINENO: result: $AR" >&5
7047 echo "${ECHO_T}$AR" >&6
7049 echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6
7054 if test -z "$ac_cv_prog_AR"; then
7056 # Extract the first word of "ar", so it can be a program name with args.
7057 set dummy ar; ac_word=$2
7058 echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 if test -n "$ac_ct_AR"; then
7064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_ac_ct_AR="ar"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7084 if test -n "$ac_ct_AR"; then
7085 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7086 echo "${ECHO_T}$ac_ct_AR" >&6
7088 echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7100 echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102 if test "${ac_cv_prog_RANLIB+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 if test -n "$RANLIB"; then
7106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 RANLIB=$ac_cv_prog_RANLIB
7125 if test -n "$RANLIB"; then
7126 echo "$as_me:$LINENO: result: $RANLIB" >&5
7127 echo "${ECHO_T}$RANLIB" >&6
7129 echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7134 if test -z "$ac_cv_prog_RANLIB"; then
7135 ac_ct_RANLIB=$RANLIB
7136 # Extract the first word of "ranlib", so it can be a program name with args.
7137 set dummy ranlib; ac_word=$2
7138 echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7140 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 if test -n "$ac_ct_RANLIB"; then
7144 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_ac_ct_RANLIB="ranlib"
7154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7164 if test -n "$ac_ct_RANLIB"; then
7165 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7166 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7172 RANLIB=$ac_ct_RANLIB
7174 RANLIB="$ac_cv_prog_RANLIB"
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}strip; ac_word=$2
7180 echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182 if test "${ac_cv_prog_STRIP+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 if test -n "$STRIP"; then
7186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 STRIP=$ac_cv_prog_STRIP
7205 if test -n "$STRIP"; then
7206 echo "$as_me:$LINENO: result: $STRIP" >&5
7207 echo "${ECHO_T}$STRIP" >&6
7209 echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7214 if test -z "$ac_cv_prog_STRIP"; then
7216 # Extract the first word of "strip", so it can be a program name with args.
7217 set dummy strip; ac_word=$2
7218 echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7220 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 if test -n "$ac_ct_STRIP"; then
7224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233 ac_cv_prog_ac_ct_STRIP="strip"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7244 if test -n "$ac_ct_STRIP"; then
7245 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7246 echo "${ECHO_T}$ac_ct_STRIP" >&6
7248 echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6
7254 STRIP="$ac_cv_prog_STRIP"
7259 old_CFLAGS="$CFLAGS"
7261 # Set sane defaults for various variables
7262 test -z "$AR" && AR=ar
7263 test -z "$AR_FLAGS" && AR_FLAGS=cru
7264 test -z "$AS" && AS=as
7265 test -z "$CC" && CC=cc
7266 test -z "$LTCC" && LTCC=$CC
7267 test -z "$DLLTOOL" && DLLTOOL=dlltool
7268 test -z "$LD" && LD=ld
7269 test -z "$LN_S" && LN_S="ln -s"
7270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7271 test -z "$NM" && NM=nm
7272 test -z "$SED" && SED=sed
7273 test -z "$OBJDUMP" && OBJDUMP=objdump
7274 test -z "$RANLIB" && RANLIB=:
7275 test -z "$STRIP" && STRIP=:
7276 test -z "$ac_objext" && ac_objext=o
7278 # Determine commands to create old-style static archives.
7279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7280 old_postinstall_cmds='chmod 644 $oldlib'
7281 old_postuninstall_cmds=
7283 if test -n "$RANLIB"; then
7286 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7289 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7292 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7295 for cc_temp in $compiler""; do
7297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7303 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7306 # Only perform the check for file, if the check method requires it
7307 case $deplibs_check_method in
7309 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7310 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7311 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7320 lt_save_MAGIC_CMD="$MAGIC_CMD"
7321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7323 for ac_dir in $ac_dummy; do
7325 test -z "$ac_dir" && ac_dir=.
7326 if test -f $ac_dir/${ac_tool_prefix}file; then
7327 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7328 if test -n "$file_magic_test_file"; then
7329 case $deplibs_check_method in
7331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7334 $EGREP "$file_magic_regex" > /dev/null; then
7339 *** Warning: the command libtool uses to detect shared libraries,
7340 *** $file_magic_cmd, produces output that libtool cannot recognize.
7341 *** The result is that libtool may fail to recognize shared libraries
7342 *** as such. This will affect the creation of libtool libraries that
7343 *** depend on shared libraries, but programs linked with such libtool
7344 *** libraries will work regardless of this problem. Nevertheless, you
7345 *** may want to report the problem to your system manager and/or to
7346 *** bug-libtool@gnu.org
7356 MAGIC_CMD="$lt_save_MAGIC_CMD"
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if test -n "$MAGIC_CMD"; then
7363 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7364 echo "${ECHO_T}$MAGIC_CMD" >&6
7366 echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7370 if test -z "$lt_cv_path_MAGIC_CMD"; then
7371 if test -n "$ac_tool_prefix"; then
7372 echo "$as_me:$LINENO: checking for file" >&5
7373 echo $ECHO_N "checking for file... $ECHO_C" >&6
7374 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7382 lt_save_MAGIC_CMD="$MAGIC_CMD"
7383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7385 for ac_dir in $ac_dummy; do
7387 test -z "$ac_dir" && ac_dir=.
7388 if test -f $ac_dir/file; then
7389 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7390 if test -n "$file_magic_test_file"; then
7391 case $deplibs_check_method in
7393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7396 $EGREP "$file_magic_regex" > /dev/null; then
7401 *** Warning: the command libtool uses to detect shared libraries,
7402 *** $file_magic_cmd, produces output that libtool cannot recognize.
7403 *** The result is that libtool may fail to recognize shared libraries
7404 *** as such. This will affect the creation of libtool libraries that
7405 *** depend on shared libraries, but programs linked with such libtool
7406 *** libraries will work regardless of this problem. Nevertheless, you
7407 *** may want to report the problem to your system manager and/or to
7408 *** bug-libtool@gnu.org
7418 MAGIC_CMD="$lt_save_MAGIC_CMD"
7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424 if test -n "$MAGIC_CMD"; then
7425 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7426 echo "${ECHO_T}$MAGIC_CMD" >&6
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7442 enable_win32_dll=yes
7444 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7445 if test "${enable_libtool_lock+set}" = set; then
7446 enableval="$enable_libtool_lock"
7449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7452 # Check whether --with-pic or --without-pic was given.
7453 if test "${with_pic+set}" = set; then
7459 test -z "$pic_mode" && pic_mode=default
7461 # Use C for the default configuration in the libtool script
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471 # Source file extension for C test sources.
7474 # Object file extension for compiled C test sources.
7478 # Code to be used in simple compile tests
7479 lt_simple_compile_test_code="int some_variable = 0;\n"
7481 # Code to be used in simple link tests
7482 lt_simple_link_test_code='int main(){return(0);}\n'
7485 # If no C compiler was specified, use CC.
7488 # Allow CC to be a program name with arguments.
7492 # save warnings/boilerplate of simple test code
7493 ac_outfile=conftest.$ac_objext
7494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7496 _lt_compiler_boilerplate=`cat conftest.err`
7499 ac_outfile=conftest.$ac_objext
7500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7502 _lt_linker_boilerplate=`cat conftest.err`
7507 # Check for any special shared library compilation flags.
7510 if test "$GCC" = no; then
7513 lt_prog_cc_shlib='-belf'
7517 if test -n "$lt_prog_cc_shlib"; then
7518 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7519 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7520 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7522 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7523 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7524 lt_cv_prog_cc_can_build_shared=no
7530 # Check to make sure the static flag actually works.
7532 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7533 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7534 if test "${lt_prog_compiler_static_works+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 lt_prog_compiler_static_works=no
7538 save_LDFLAGS="$LDFLAGS"
7539 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7540 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7542 # The linker can only warn and ignore the option if not recognized
7543 # So say no if there are warnings
7544 if test -s conftest.err; then
7545 # Append any errors to the config.log.
7546 cat conftest.err 1>&5
7547 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7548 $SED '/^$/d' conftest.err >conftest.er2
7549 if diff conftest.exp conftest.er2 >/dev/null; then
7550 lt_prog_compiler_static_works=yes
7553 lt_prog_compiler_static_works=yes
7557 LDFLAGS="$save_LDFLAGS"
7560 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7561 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7563 if test x"$lt_prog_compiler_static_works" = xyes; then
7566 lt_prog_compiler_static=
7572 lt_prog_compiler_no_builtin_flag=
7574 if test "$GCC" = yes; then
7575 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7578 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7579 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7580 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 lt_cv_prog_compiler_rtti_exceptions=no
7584 ac_outfile=conftest.$ac_objext
7585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586 lt_compiler_flag="-fno-rtti -fno-exceptions"
7587 # Insert the option either (1) after the last *FLAGS variable, or
7588 # (2) before a word containing "conftest.", or (3) at the end.
7589 # Note that $ac_compile itself does not contain backslashes and begins
7590 # with a dollar sign (not a hyphen), so the echo should work correctly.
7591 # The option is referenced via a variable to avoid confusing sed.
7592 lt_compile=`echo "$ac_compile" | $SED \
7593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595 -e 's:$: $lt_compiler_flag:'`
7596 (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597 (eval "$lt_compile" 2>conftest.err)
7599 cat conftest.err >&5
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 if (exit $ac_status) && test -s "$ac_outfile"; then
7602 # The compiler can only warn and ignore the option if not recognized
7603 # So say no if there are warnings other than the usual output.
7604 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7605 $SED '/^$/d' conftest.err >conftest.er2
7606 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7607 lt_cv_prog_compiler_rtti_exceptions=yes
7613 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7614 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7616 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7617 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7624 lt_prog_compiler_wl=
7625 lt_prog_compiler_pic=
7626 lt_prog_compiler_static=
7628 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7631 if test "$GCC" = yes; then
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_static='-static'
7637 # All AIX code is PIC.
7638 if test "$host_cpu" = ia64; then
7639 # AIX 5 now supports IA64 processor
7640 lt_prog_compiler_static='-Bstatic'
7645 # FIXME: we need at least 68020 code to build shared libraries, but
7646 # adding the `-m68020' flag to GCC prevents building anything better,
7648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7651 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7652 # PIC is the default for these OSes.
7655 mingw* | pw32* | os2*)
7656 # This hack is so that the source file can tell whether it is being
7657 # built for inclusion in a dll (and should export symbols for example).
7658 lt_prog_compiler_pic='-DDLL_EXPORT'
7661 darwin* | rhapsody*)
7662 # PIC is the default on this platform
7663 # Common symbols not allowed in MH_DYLIB files
7664 lt_prog_compiler_pic='-fno-common'
7668 # Just because we use GCC doesn't mean we suddenly get shared libraries
7669 # on systems that don't support them.
7670 lt_prog_compiler_can_build_shared=no
7675 if test -d /usr/nec; then
7676 lt_prog_compiler_pic=-Kconform_pic
7681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7688 lt_prog_compiler_pic='-fPIC'
7694 lt_prog_compiler_pic='-fPIC'
7698 # PORTME Check for flag to pass linker flags through the system compiler.
7701 lt_prog_compiler_wl='-Wl,'
7702 if test "$host_cpu" = ia64; then
7703 # AIX 5 now supports IA64 processor
7704 lt_prog_compiler_static='-Bstatic'
7706 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7710 # PIC is the default on this platform
7711 # Common symbols not allowed in MH_DYLIB files
7712 case $cc_basename in
7714 lt_prog_compiler_pic='-qnocommon'
7715 lt_prog_compiler_wl='-Wl,'
7720 mingw* | pw32* | os2*)
7721 # This hack is so that the source file can tell whether it is being
7722 # built for inclusion in a dll (and should export symbols for example).
7723 lt_prog_compiler_pic='-DDLL_EXPORT'
7726 hpux9* | hpux10* | hpux11*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7735 lt_prog_compiler_pic='+Z'
7738 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7739 lt_prog_compiler_static='${wl}-a ${wl}archive'
7742 irix5* | irix6* | nonstopux*)
7743 lt_prog_compiler_wl='-Wl,'
7744 # PIC (with -KPIC) is the default.
7745 lt_prog_compiler_static='-non_shared'
7749 lt_prog_compiler_pic='-KPIC'
7750 lt_prog_compiler_static='-Bstatic'
7754 case $cc_basename in
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-KPIC'
7758 lt_prog_compiler_static='-static'
7760 pgcc* | pgf77* | pgf90* | pgf95*)
7761 # Portland Group compilers (*not* the Pentium gcc compiler,
7762 # which looks to be a dead project)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-fpic'
7765 lt_prog_compiler_static='-Bstatic'
7768 lt_prog_compiler_wl='-Wl,'
7769 # All Alpha code is PIC.
7770 lt_prog_compiler_static='-non_shared'
7775 osf3* | osf4* | osf5*)
7776 lt_prog_compiler_wl='-Wl,'
7777 # All OSF/1 code is PIC.
7778 lt_prog_compiler_static='-non_shared'
7782 lt_prog_compiler_pic='-Kpic'
7783 lt_prog_compiler_static='-dn'
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7789 case $cc_basename in
7791 lt_prog_compiler_wl='-Qoption ld ';;
7793 lt_prog_compiler_wl='-Wl,';;
7798 lt_prog_compiler_wl='-Qoption ld '
7799 lt_prog_compiler_pic='-PIC'
7800 lt_prog_compiler_static='-Bstatic'
7803 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-Bstatic'
7810 if test -d /usr/nec ;then
7811 lt_prog_compiler_pic='-Kconform_pic'
7812 lt_prog_compiler_static='-Bstatic'
7817 lt_prog_compiler_wl='-Wl,'
7818 lt_prog_compiler_can_build_shared=no
7822 lt_prog_compiler_pic='-pic'
7823 lt_prog_compiler_static='-Bstatic'
7827 lt_prog_compiler_can_build_shared=no
7832 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7833 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7836 # Check to make sure the PIC flag actually works.
7838 if test -n "$lt_prog_compiler_pic"; then
7840 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7841 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7842 if test "${lt_prog_compiler_pic_works+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 lt_prog_compiler_pic_works=no
7846 ac_outfile=conftest.$ac_objext
7847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7848 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7849 # Insert the option either (1) after the last *FLAGS variable, or
7850 # (2) before a word containing "conftest.", or (3) at the end.
7851 # Note that $ac_compile itself does not contain backslashes and begins
7852 # with a dollar sign (not a hyphen), so the echo should work correctly.
7853 # The option is referenced via a variable to avoid confusing sed.
7854 lt_compile=`echo "$ac_compile" | $SED \
7855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
7858 (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859 (eval "$lt_compile" 2>conftest.err)
7861 cat conftest.err >&5
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 if (exit $ac_status) && test -s "$ac_outfile"; then
7864 # The compiler can only warn and ignore the option if not recognized
7865 # So say no if there are warnings other than the usual output.
7866 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7867 $SED '/^$/d' conftest.err >conftest.er2
7868 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7869 lt_prog_compiler_pic_works=yes
7875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7876 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7878 if test x"$lt_prog_compiler_pic_works" = xyes; then
7879 case $lt_prog_compiler_pic in
7881 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7884 lt_prog_compiler_pic=
7885 lt_prog_compiler_can_build_shared=no
7890 # For platforms which do not support PIC, -DPIC is meaningless:
7892 lt_prog_compiler_pic=
7895 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7899 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7900 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7901 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 lt_cv_prog_compiler_c_o=no
7905 $rm -r conftest 2>/dev/null
7909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7911 lt_compiler_flag="-o out/conftest2.$ac_objext"
7912 # Insert the option either (1) after the last *FLAGS variable, or
7913 # (2) before a word containing "conftest.", or (3) at the end.
7914 # Note that $ac_compile itself does not contain backslashes and begins
7915 # with a dollar sign (not a hyphen), so the echo should work correctly.
7916 lt_compile=`echo "$ac_compile" | $SED \
7917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7919 -e 's:$: $lt_compiler_flag:'`
7920 (eval echo "\"\$as_me:7920: $lt_compile\"" >&5)
7921 (eval "$lt_compile" 2>out/conftest.err)
7923 cat out/conftest.err >&5
7924 echo "$as_me:7924: \$? = $ac_status" >&5
7925 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7927 # The compiler can only warn and ignore the option if not recognized
7928 # So say no if there are warnings
7929 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7930 $SED '/^$/d' out/conftest.err >out/conftest.er2
7931 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7932 lt_cv_prog_compiler_c_o=yes
7937 # SGI C++ compiler will create directory out/ii_files/ for
7938 # template instantiation
7939 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7940 $rm out/* && rmdir out
7946 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7947 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7950 hard_links="nottested"
7951 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7952 # do not overwrite the value of need_locks provided by the user
7953 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7959 ln conftest.a conftest.b 2>&5 || hard_links=no
7960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7961 echo "$as_me:$LINENO: result: $hard_links" >&5
7962 echo "${ECHO_T}$hard_links" >&6
7963 if test "$hard_links" = no; then
7964 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7972 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7973 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7976 allow_undefined_flag=
7977 enable_shared_with_static_runtimes=no
7979 archive_expsym_cmds=
7980 old_archive_From_new_cmds=
7981 old_archive_from_expsyms_cmds=
7982 export_dynamic_flag_spec=
7983 whole_archive_flag_spec=
7984 thread_safe_flag_spec=
7985 hardcode_libdir_flag_spec=
7986 hardcode_libdir_flag_spec_ld=
7987 hardcode_libdir_separator=
7990 hardcode_shlibpath_var=unsupported
7991 link_all_deplibs=unknown
7992 hardcode_automatic=no
7995 always_export_symbols=no
7996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7997 # include_expsyms should be a list of space-separated symbols to be *always*
7998 # included in the symbol list
8000 # exclude_expsyms can be an extended regexp of symbols to exclude
8001 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8002 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8003 # as well as any symbol that contains `d'.
8004 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8005 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8006 # platforms (ab)use it in PIC code, but their linkers get confused if
8007 # the symbol is explicitly referenced. Since portable code cannot
8008 # rely on this symbol name, it's probably fine to never include it in
8009 # preloaded symbol tables.
8010 extract_expsyms_cmds=
8011 # Just being paranoid about ensuring that cc_basename is set.
8012 for cc_temp in $compiler""; do
8014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8023 cygwin* | mingw* | pw32*)
8024 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8025 # When not using gcc, we currently assume that we are using
8026 # Microsoft Visual C++.
8027 if test "$GCC" != yes; then
8037 if test "$with_gnu_ld" = yes; then
8038 # If archive_cmds runs LD, not CC, wlarc should be empty
8041 # Set some defaults for GNU ld with shared library support. These
8042 # are reset later if shared libraries are not supported. Putting them
8043 # here allows them to be overridden if necessary.
8044 runpath_var=LD_RUN_PATH
8045 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8046 export_dynamic_flag_spec='${wl}--export-dynamic'
8047 # ancient GNU ld didn't support --whole-archive et. al.
8048 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8049 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8051 whole_archive_flag_spec=
8053 supports_anon_versioning=no
8054 case `$LD -v 2>/dev/null` in
8055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8058 *\ 2.11.*) ;; # other 2.11 versions
8059 *) supports_anon_versioning=yes ;;
8062 # See if GNU ld supports shared libraries.
8064 aix3* | aix4* | aix5*)
8065 # On AIX/PPC, the GNU linker is very broken
8066 if test "$host_cpu" != ia64; then
8070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8071 *** to be unable to reliably create shared libraries on AIX.
8072 *** Therefore, libtool is disabling shared libraries support. If you
8073 *** really care for shared libraries, you may want to modify your PATH
8074 *** so that a non-GNU linker is found, and then restart.
8081 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)'
8082 hardcode_libdir_flag_spec='-L$libdir'
8083 hardcode_minus_L=yes
8085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8086 # that the semantics of dynamic libraries on AmigaOS, at least up
8087 # to version 4, is to share data among multiple programs linked
8088 # with the same dynamic library. Since this doesn't match the
8089 # behavior of shared libraries on other platforms, we can't use
8095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8096 allow_undefined_flag=unsupported
8097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8098 # support --undefined. This deserves some investigation. FIXME
8099 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105 cygwin* | mingw* | pw32*)
8106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8107 # as there is no search path for DLLs.
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 allow_undefined_flag=unsupported
8110 always_export_symbols=no
8111 enable_shared_with_static_runtimes=yes
8112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8116 # If the export-symbols file already is a .def file (1st line
8117 # is EXPORTS), use it as is; otherwise, prepend...
8118 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8119 cp $export_symbols $output_objdir/$soname.def;
8121 echo EXPORTS > $output_objdir/$soname.def;
8122 cat $export_symbols >> $output_objdir/$soname.def;
8124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8133 case $cc_basename,$host_cpu in
8134 pgcc*) # Portland Group C compiler
8135 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'
8136 tmp_addflag=' $pic_flag'
8138 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8139 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'
8140 tmp_addflag=' $pic_flag -Mnomain' ;;
8141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8142 tmp_addflag=' -i_dynamic' ;;
8143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8144 tmp_addflag=' -i_dynamic -nofor_main' ;;
8145 ifc* | ifort*) # Intel Fortran compiler
8146 tmp_addflag=' -nofor_main' ;;
8148 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 if test $supports_anon_versioning = yes; then
8151 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8153 $echo "local: *; };" >> $output_objdir/$libname.ver~
8154 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8163 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8172 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8176 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8177 *** create shared libraries on Solaris systems. Therefore, libtool
8178 *** is disabling shared libraries support. We urge you to upgrade GNU
8179 *** binutils to release 2.9.1 or newer. Another option is to modify
8180 *** your PATH or compiler configuration so that the native linker is
8181 *** used, and then restart.
8184 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8193 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8196 hardcode_shlibpath_var=no
8200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8209 if test "$ld_shlibs" = no; then
8211 hardcode_libdir_flag_spec=
8212 export_dynamic_flag_spec=
8213 whole_archive_flag_spec=
8216 # PORTME fill in a description of your system's linker (not GNU ld)
8219 allow_undefined_flag=unsupported
8220 always_export_symbols=yes
8221 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'
8222 # Note: this linker hardcodes the directories in LIBPATH if there
8223 # are no directories specified by -L.
8224 hardcode_minus_L=yes
8225 if test "$GCC" = yes && test -z "$link_static_flag"; then
8226 # Neither direct hardcoding nor static linking is supported with a
8228 hardcode_direct=unsupported
8233 if test "$host_cpu" = ia64; then
8234 # On IA64, the linker does run time linking by default, so we don't
8235 # have to do anything special.
8236 aix_use_runtimelinking=no
8237 exp_sym_flag='-Bexport'
8240 # If we're using GNU nm, then we don't want the "-C" option.
8241 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8242 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8243 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'
8245 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'
8247 aix_use_runtimelinking=no
8249 # Test if we are trying to use run time linking or normal
8250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8251 # need to do runtime linking.
8252 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8253 for ld_flag in $LDFLAGS; do
8254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8255 aix_use_runtimelinking=yes
8261 exp_sym_flag='-bexport'
8262 no_entry_flag='-bnoentry'
8265 # When large executables or shared objects are built, AIX ld can
8266 # have problems creating the table of contents. If linking a library
8267 # or program results in "error TOC overflow" add -mminimal-toc to
8268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8273 hardcode_libdir_separator=':'
8274 link_all_deplibs=yes
8276 if test "$GCC" = yes; then
8277 case $host_os in aix4.[012]|aix4.[012].*)
8278 # We only want to do this on AIX 4.2 and lower, the check
8279 # below for broken collect2 doesn't work under 4.3+
8280 collect2name=`${CC} -print-prog-name=collect2`
8281 if test -f "$collect2name" && \
8282 strings "$collect2name" | grep resolve_lib_name >/dev/null
8284 # We have reworked collect2
8287 # We have old collect2
8288 hardcode_direct=unsupported
8289 # It fails to find uninstalled libraries when the uninstalled
8290 # path is not listed in the libpath. Setting hardcode_minus_L
8291 # to unsupported forces relinking
8292 hardcode_minus_L=yes
8293 hardcode_libdir_flag_spec='-L$libdir'
8294 hardcode_libdir_separator=
8297 shared_flag='-shared'
8298 if test "$aix_use_runtimelinking" = yes; then
8299 shared_flag="$shared_flag "'${wl}-G'
8303 if test "$host_cpu" = ia64; then
8304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8305 # chokes on -Wl,-G. The following line is correct:
8308 if test "$aix_use_runtimelinking" = yes; then
8309 shared_flag='${wl}-G'
8311 shared_flag='${wl}-bM:SRE'
8316 # It seems that -bexpall does not export symbols beginning with
8317 # underscore (_), so it is better to generate a list of symbols to export.
8318 always_export_symbols=yes
8319 if test "$aix_use_runtimelinking" = yes; then
8320 # Warning - without using the other runtime loading flags (-brtl),
8321 # -berok will link without error, but may produce a broken library.
8322 allow_undefined_flag='-berok'
8323 # Determine the default libpath from the value encoded in an empty executable.
8324 cat >conftest.$ac_ext <<_ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag"
8349 || test ! -s conftest.err'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest$ac_exeext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8364 # Check for a 64-bit object if we didn't find anything.
8365 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; }
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8372 rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8377 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"
8379 if test "$host_cpu" = ia64; then
8380 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8381 allow_undefined_flag="-z nodefs"
8382 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"
8384 # Determine the default libpath from the value encoded in an empty executable.
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1 >conftest.err
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8425 # Check for a 64-bit object if we didn't find anything.
8426 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; }
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8433 rm -f conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8438 # Warning - without using the other run time loading flags,
8439 # -berok will link without error, but may produce a broken library.
8440 no_undefined_flag=' ${wl}-bernotok'
8441 allow_undefined_flag=' ${wl}-berok'
8442 # -bexpall does not export symbols beginning with underscore (_)
8443 always_export_symbols=yes
8444 # Exported symbols can be pulled into shared objects from archives
8445 whole_archive_flag_spec=' '
8446 archive_cmds_need_lc=yes
8447 # This is similar to how AIX traditionally builds its shared libraries.
8448 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'
8454 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)'
8455 hardcode_libdir_flag_spec='-L$libdir'
8456 hardcode_minus_L=yes
8457 # see comment about different semantics on the GNU ld section
8462 export_dynamic_flag_spec=-rdynamic
8465 cygwin* | mingw* | pw32*)
8466 # When not using gcc, we currently assume that we are using
8467 # Microsoft Visual C++.
8468 # hardcode_libdir_flag_spec is actually meaningless, as there is
8469 # no search path for DLLs.
8470 hardcode_libdir_flag_spec=' '
8471 allow_undefined_flag=unsupported
8472 # Tell ltmain to make .lib files, not .a files.
8474 # Tell ltmain to make .dll files, not .so files.
8476 # FIXME: Setting linknames here is a bad hack.
8477 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8478 # The linker will automatically build a .lib file if we build a DLL.
8479 old_archive_From_new_cmds='true'
8480 # FIXME: Should let the user specify the lib program.
8481 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8482 fix_srcfile_path='`cygpath -w "$srcfile"`'
8483 enable_shared_with_static_runtimes=yes
8486 darwin* | rhapsody*)
8488 rhapsody* | darwin1.[012])
8489 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8495 case ${MACOSX_DEPLOYMENT_TARGET} in
8497 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8500 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8506 archive_cmds_need_lc=no
8508 hardcode_automatic=yes
8509 hardcode_shlibpath_var=unsupported
8510 whole_archive_flag_spec=''
8511 link_all_deplibs=yes
8512 if test "$GCC" = yes ; then
8513 output_verbose_link_cmd='echo'
8514 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8515 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8516 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8517 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}'
8518 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}'
8520 case $cc_basename in
8522 output_verbose_link_cmd='echo'
8523 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8524 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8526 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}'
8527 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}'
8537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538 hardcode_libdir_flag_spec='-L$libdir'
8539 hardcode_shlibpath_var=no
8546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8547 # support. Future versions do this automatically, but an explicit c++rt0.o
8548 # does not break anything, and helps significantly (at the cost of a little
8551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8552 hardcode_libdir_flag_spec='-R$libdir'
8554 hardcode_shlibpath_var=no
8557 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8561 hardcode_minus_L=yes
8562 hardcode_shlibpath_var=no
8565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8566 freebsd* | kfreebsd*-gnu | dragonfly*)
8567 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8568 hardcode_libdir_flag_spec='-R$libdir'
8570 hardcode_shlibpath_var=no
8574 if test "$GCC" = yes; then
8575 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'
8577 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'
8579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580 hardcode_libdir_separator=:
8583 # hardcode_minus_L: Not really in the search PATH,
8584 # but as the default location of the library.
8585 hardcode_minus_L=yes
8586 export_dynamic_flag_spec='${wl}-E'
8590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8602 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8605 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8609 if test "$with_gnu_ld" = no; then
8612 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8613 hardcode_libdir_flag_spec_ld='+b $libdir'
8614 hardcode_libdir_separator=:
8616 hardcode_shlibpath_var=no
8619 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_shlibpath_var=no
8623 # hardcode_minus_L: Not really in the search PATH,
8624 # but as the default location of the library.
8625 hardcode_minus_L=yes
8628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8629 hardcode_libdir_separator=:
8631 export_dynamic_flag_spec='${wl}-E'
8633 # hardcode_minus_L: Not really in the search PATH,
8634 # but as the default location of the library.
8635 hardcode_minus_L=yes
8641 irix5* | irix6* | nonstopux*)
8642 if test "$GCC" = yes; then
8643 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'
8645 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'
8646 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649 hardcode_libdir_separator=:
8650 link_all_deplibs=yes
8654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8659 hardcode_libdir_flag_spec='-R$libdir'
8661 hardcode_shlibpath_var=no
8665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668 hardcode_libdir_separator=:
8669 hardcode_shlibpath_var=no
8674 hardcode_shlibpath_var=no
8675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679 export_dynamic_flag_spec='${wl}-E'
8682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_libdir_flag_spec='-R$libdir'
8687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8695 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_minus_L=yes
8697 allow_undefined_flag=unsupported
8698 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'
8699 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8703 if test "$GCC" = yes; then
8704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8705 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'
8707 allow_undefined_flag=' -expect_unresolved \*'
8708 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'
8710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711 hardcode_libdir_separator=:
8714 osf4* | osf5*) # as osf3* with the addition of -msym flag
8715 if test "$GCC" = yes; then
8716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8717 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'
8718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720 allow_undefined_flag=' -expect_unresolved \*'
8721 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'
8722 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8723 $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'
8725 # Both c and cxx compiler support -rpath directly
8726 hardcode_libdir_flag_spec='-rpath $libdir'
8728 hardcode_libdir_separator=:
8732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_shlibpath_var=no
8734 export_dynamic_flag_spec='${wl}-Bexport'
8735 runpath_var=LD_RUN_PATH
8736 hardcode_runpath_var=yes
8740 no_undefined_flag=' -z text'
8741 if test "$GCC" = yes; then
8743 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8745 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8748 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8752 hardcode_libdir_flag_spec='-R$libdir'
8753 hardcode_shlibpath_var=no
8755 solaris2.[0-5] | solaris2.[0-5].*) ;;
8757 # The compiler driver will combine linker options so we
8758 # cannot just pass the convience library names through
8759 # without $wl, iff we do not link with $LD.
8760 # Luckily, gcc supports the same syntax we need for Sun Studio.
8761 # Supported since Solaris 2.6 (maybe 2.5.1?)
8764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8766 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' ;;
8769 link_all_deplibs=yes
8773 if test "x$host_vendor" = xsequent; then
8774 # Use $CC to link under sequent, because it throws in some extra .o
8775 # files that make .init and .fini sections work.
8776 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8780 hardcode_libdir_flag_spec='-L$libdir'
8782 hardcode_minus_L=yes
8783 hardcode_shlibpath_var=no
8787 case $host_vendor in
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_direct=yes # is this really true???
8793 ## LD is ld it makes a PLAMLIB
8794 ## CC just makes a GrossModule.
8795 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8796 reload_cmds='$CC -r -o $output$reload_objs'
8800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8804 runpath_var='LD_RUN_PATH'
8805 hardcode_shlibpath_var=no
8809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810 hardcode_shlibpath_var=no
8811 export_dynamic_flag_spec='-Bexport'
8815 if test -d /usr/nec; then
8816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_shlibpath_var=no
8818 runpath_var=LD_RUN_PATH
8819 hardcode_runpath_var=yes
8825 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8828 hardcode_shlibpath_var=no
8829 hardcode_runpath_var=yes
8830 runpath_var=LD_RUN_PATH
8833 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8834 no_undefined_flag='${wl}-z ${wl}text'
8835 if test "$GCC" = yes; then
8836 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 runpath_var='LD_RUN_PATH'
8841 hardcode_shlibpath_var=no
8845 no_undefined_flag=' -z text'
8846 # $CC -shared without GNU ld will not create a library from C++
8847 # object files and a static libstdc++, better avoid it by now
8848 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8851 hardcode_libdir_flag_spec=
8852 hardcode_shlibpath_var=no
8853 runpath_var='LD_RUN_PATH'
8857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 hardcode_shlibpath_var=no
8868 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8869 echo "${ECHO_T}$ld_shlibs" >&6
8870 test "$ld_shlibs" = no && can_build_shared=no
8872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8873 if test "$GCC" = yes; then
8874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8878 # Do we need to explicitly link libc?
8880 case "x$archive_cmds_need_lc" in
8882 # Assume -lc should be added
8883 archive_cmds_need_lc=yes
8885 if test "$enable_shared" = yes && test "$GCC" = yes; then
8886 case $archive_cmds in
8888 # FIXME: we may have to deal with multi-command sequences.
8891 # Test whether the compiler implicitly links with -lc since on some
8892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8893 # to ld, don't add -lc before -lgcc.
8894 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8895 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } 2>conftest.err; then
8906 libobjs=conftest.$ac_objext
8908 wl=$lt_prog_compiler_wl
8914 lt_save_allow_undefined_flag=$allow_undefined_flag
8915 allow_undefined_flag=
8916 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8917 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }
8922 archive_cmds_need_lc=no
8924 archive_cmds_need_lc=yes
8926 allow_undefined_flag=$lt_save_allow_undefined_flag
8928 cat conftest.err 1>&5
8931 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8932 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8939 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8942 libname_spec='lib$name'
8950 shlibpath_overrides_runpath=unknown
8952 dynamic_linker="$host_os ld.so"
8953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8954 if test "$GCC" = yes; then
8955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8957 # if the path contains ";" then we assume it to be the separator
8958 # otherwise default to the standard path separator (i.e. ":") - it is
8959 # assumed that no part of a normal pathname contains ";" but that should
8960 # okay in the real world where ";" in dirpaths is itself problematic.
8961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8968 need_lib_prefix=unknown
8969 hardcode_into_libs=no
8971 # when you set need_version to no, make sure it does not cause -set_version
8972 # flags to be left without arguments
8973 need_version=unknown
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8979 shlibpath_var=LIBPATH
8981 # AIX 3 has no versioning support, so we append a major version to the name.
8982 soname_spec='${libname}${release}${shared_ext}$major'
8989 hardcode_into_libs=yes
8990 if test "$host_cpu" = ia64; then
8991 # AIX 5 supports IA64
8992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8993 shlibpath_var=LD_LIBRARY_PATH
8995 # With GCC up to 2.95.x, collect2 would create an import file
8996 # for dependence libraries. The import file would start with
8997 # the line `#! .'. This would cause the generated library to
8998 # depend on `.', always an invalid library. This was fixed in
8999 # development snapshots of GCC prior to 3.0.
9001 aix4 | aix4.[01] | aix4.[01].*)
9002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9004 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9012 # soname into executable. Probably we can add versioning support to
9013 # collect2, so additional links can be useful in future.
9014 if test "$aix_use_runtimelinking" = yes; then
9015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9016 # instead of lib<name>.a to let people know that these are not
9017 # typical AIX shared libraries.
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 # We preserve .a as extension for shared libraries through AIX4.2
9021 # and later when we are not doing run time linking.
9022 library_names_spec='${libname}${release}.a $libname.a'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LIBPATH
9030 library_names_spec='$libname.ixlibrary $libname.a'
9031 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9032 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'
9036 library_names_spec='${libname}${shared_ext}'
9037 dynamic_linker="$host_os ld.so"
9038 shlibpath_var=LIBRARY_PATH
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9049 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9050 # the default ld.so.conf also contains /usr/contrib/lib and
9051 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9052 # libtool to hard-code these into programs
9055 cygwin* | mingw* | pw32*)
9056 version_type=windows
9061 case $GCC,$host_os in
9062 yes,cygwin* | yes,mingw* | yes,pw32*)
9063 library_names_spec='$libname.dll.a'
9064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9065 postinstall_cmds='base_file=`basename \${file}`~
9066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9067 dldir=$destdir/`dirname \$dlpath`~
9068 test -d \$dldir || mkdir -p \$dldir~
9069 $install_prog $dir/$dlname \$dldir/$dlname~
9070 chmod a+x \$dldir/$dlname'
9071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9072 dlpath=$dir/\$dldll~
9074 shlibpath_overrides_runpath=yes
9078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9080 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9083 # MinGW DLLs use traditional 'lib' prefix
9084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9086 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9087 # It is most probably a Windows format PATH printed by
9088 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9089 # path with ; separators, and with drive letters. We can handle the
9090 # drive letters (cygwin fileutils understands them), so leave them,
9091 # especially as we might pass files found there to a mingw objdump,
9092 # which wouldn't understand a cygwinified path. Ahh.
9093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9099 # pw32 DLLs use 'pw' prefix rather than 'lib'
9100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9109 dynamic_linker='Win32 ld.exe'
9110 # FIXME: first we should search . and the directory the executable is in
9114 darwin* | rhapsody*)
9115 dynamic_linker="$host_os dyld"
9119 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9120 soname_spec='${libname}${release}${major}$shared_ext'
9121 shlibpath_overrides_runpath=yes
9122 shlibpath_var=DYLD_LIBRARY_PATH
9123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9124 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9125 if test "$GCC" = yes; then
9126 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"`
9128 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 hardcode_into_libs=yes
9155 dynamic_linker='GNU ld.so'
9158 freebsd* | dragonfly*)
9159 # DragonFly does not have aout. When/if they implement a new
9160 # versioning mechanism, adjust this.
9161 if test -x /usr/bin/objformat; then
9162 objformat=`/usr/bin/objformat`
9165 freebsd[123]*) objformat=aout ;;
9169 version_type=freebsd-$objformat
9170 case $version_type in
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9181 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=yes
9186 freebsd3.[01]* | freebsdelf3.[01]*)
9187 shlibpath_overrides_runpath=yes
9188 hardcode_into_libs=yes
9191 shlibpath_overrides_runpath=no
9192 hardcode_into_libs=yes
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 hardcode_into_libs=yes
9207 hpux9* | hpux10* | hpux11*)
9208 # Give a soname corresponding to the major version so that dld.sl refuses to
9209 # link against other versions.
9216 hardcode_into_libs=yes
9217 dynamic_linker="$host_os dld.so"
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 if test "X$HPUX_IA64_MODE" = X32; then
9223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9231 hardcode_into_libs=yes
9232 dynamic_linker="$host_os dld.sl"
9233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9242 dynamic_linker="$host_os dld.sl"
9243 shlibpath_var=SHLIB_PATH
9244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9250 postinstall_cmds='chmod 555 $lib'
9253 irix5* | irix6* | nonstopux*)
9255 nonstopux*) version_type=nonstopux ;;
9257 if test "$lt_cv_prog_gnu_ld" = yes; then
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9268 irix5* | nonstopux*)
9272 case $LD in # libtool.m4 will add one of these switches to LD
9273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9274 libsuff= shlibsuff= libmagic=32-bit;;
9275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9276 libsuff=32 shlibsuff=N32 libmagic=N32;;
9277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9279 *) libsuff= shlibsuff= libmagic=never-match;;
9283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9284 shlibpath_overrides_runpath=no
9285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9287 hardcode_into_libs=yes
9290 # No shared lib support for Linux oldld, aout, or coff.
9291 linux*oldld* | linux*aout* | linux*coff*)
9295 # This must be Linux ELF.
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=no
9305 # This implies no fast_install, which is unacceptable.
9306 # Some rework will be needed to allow for fast_install
9307 # before this can be enabled.
9308 hardcode_into_libs=yes
9310 # Append ld.so.conf contents to the search path
9311 if test -f /etc/ld.so.conf; then
9312 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' ' '`
9313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9316 # We used to test for /lib/ld.so.1 and disable shared libraries on
9317 # powerpc, because MkLinux only supported shared libraries with the
9318 # GNU dynamic linker. Since this was broken with cross compilers,
9319 # most powerpc-linux boxes support dynamic linking these days and
9320 # people can always --disable-shared, the test was removed, and we
9321 # assume the GNU/Linux dynamic linker is in use.
9322 dynamic_linker='GNU/Linux ld.so'
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 shlibpath_overrides_runpath=no
9333 hardcode_into_libs=yes
9334 dynamic_linker='GNU ld.so'
9341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9344 dynamic_linker='NetBSD (a.out) ld.so'
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 dynamic_linker='NetBSD ld.elf_so'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=yes
9352 hardcode_into_libs=yes
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 shlibpath_overrides_runpath=yes
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=yes
9375 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9377 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9378 *) need_version=no ;;
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9385 openbsd2.[89] | openbsd2.[89].*)
9386 shlibpath_overrides_runpath=no
9389 shlibpath_overrides_runpath=yes
9393 shlibpath_overrides_runpath=yes
9398 libname_spec='$name'
9401 library_names_spec='$libname${shared_ext} $libname.a'
9402 dynamic_linker='OS/2 ld.exe'
9403 shlibpath_var=LIBPATH
9406 osf3* | osf4* | osf5*)
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412 shlibpath_var=LD_LIBRARY_PATH
9413 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9414 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 shlibpath_var=LD_LIBRARY_PATH
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=yes
9432 hardcode_into_libs=yes
9433 # ldd complains unless libraries are executable
9434 postinstall_cmds='chmod +x $lib'
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9443 if test "$with_gnu_ld" = yes; then
9449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 case $host_vendor in
9456 shlibpath_overrides_runpath=no
9458 export_dynamic_flag_spec='${wl}-Blargedynsym'
9459 runpath_var=LD_RUN_PATH
9467 shlibpath_overrides_runpath=no
9468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9474 if test -d /usr/nec ;then
9476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9477 soname_spec='$libname${shared_ext}.$major'
9478 shlibpath_var=LD_LIBRARY_PATH
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9493 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9494 echo "${ECHO_T}$dynamic_linker" >&6
9495 test "$dynamic_linker" = no && can_build_shared=no
9497 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9498 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9500 if test -n "$hardcode_libdir_flag_spec" || \
9501 test -n "$runpath_var" || \
9502 test "X$hardcode_automatic" = "Xyes" ; then
9504 # We can hardcode non-existant directories.
9505 if test "$hardcode_direct" != no &&
9506 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9507 # have to relink, otherwise we might link with an installed library
9508 # when we should be linking with a yet-to-be-installed one
9509 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9510 test "$hardcode_minus_L" != no; then
9511 # Linking always hardcodes the temporary library directory.
9512 hardcode_action=relink
9514 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9515 hardcode_action=immediate
9518 # We cannot hardcode anything, or else we can only hardcode existing
9520 hardcode_action=unsupported
9522 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9523 echo "${ECHO_T}$hardcode_action" >&6
9525 if test "$hardcode_action" = relink; then
9526 # Fast installation is not supported
9527 enable_fast_install=no
9528 elif test "$shlibpath_overrides_runpath" = yes ||
9529 test "$enable_shared" = no; then
9530 # Fast installation is not necessary
9531 enable_fast_install=needless
9536 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9537 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9538 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9539 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9540 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9541 echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9544 # FIXME - insert some real tests, host_os isn't really good enough
9547 if test -n "$STRIP" ; then
9548 striplib="$STRIP -x"
9549 echo "$as_me:$LINENO: result: yes" >&5
9550 echo "${ECHO_T}yes" >&6
9552 echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9557 echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9563 if test "x$enable_dlopen" != xyes; then
9564 enable_dlopen=unknown
9565 enable_dlopen_self=unknown
9566 enable_dlopen_self_static=unknown
9573 lt_cv_dlopen="load_add_on"
9575 lt_cv_dlopen_self=yes
9579 lt_cv_dlopen="LoadLibrary"
9584 lt_cv_dlopen="dlopen"
9589 # if libdl is installed we need to link against it
9590 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9591 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 ac_check_lib_save_LIBS=$LIBS
9597 cat >conftest.$ac_ext <<_ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9604 /* Override any gcc2 internal prototype to avoid an error. */
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag"
9629 || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_lib_dl_dlopen=yes
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_lib_dl_dlopen=no
9648 rm -f conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 LIBS=$ac_check_lib_save_LIBS
9652 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9653 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9654 if test $ac_cv_lib_dl_dlopen = yes; then
9655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9660 lt_cv_dlopen_self=yes
9667 echo "$as_me:$LINENO: checking for shl_load" >&5
9668 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9669 if test "${ac_cv_func_shl_load+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9680 #define shl_load innocuous_shl_load
9682 /* System header to define __stub macros and hopefully few prototypes,
9683 which can conflict with char shl_load (); below.
9684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9685 <limits.h> exists even on freestanding compilers. */
9688 # include <limits.h>
9690 # include <assert.h>
9695 /* Override any gcc2 internal prototype to avoid an error. */
9700 /* We use char because int might match the return type of a gcc2
9701 builtin and then its argument prototype would still apply. */
9703 /* The GNU C library defines this for functions which it implements
9704 to always fail with ENOSYS. Some functions are actually named
9705 something starting with __ and the normal name is an alias. */
9706 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9709 char (*f) () = shl_load;
9718 return f != shl_load;
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_func_shl_load=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_func_shl_load=no
9752 rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9756 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9757 if test $ac_cv_func_shl_load = yes; then
9758 lt_cv_dlopen="shl_load"
9760 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9761 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 ac_check_lib_save_LIBS=$LIBS
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 /* Override any gcc2 internal prototype to avoid an error. */
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791 (eval $ac_link) 2>conftest.er1
9793 grep -v '^ *+' conftest.er1 >conftest.err
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_lib_dld_shl_load=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_lib_dld_shl_load=no
9818 rm -f conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9822 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9823 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9824 if test $ac_cv_lib_dld_shl_load = yes; then
9825 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9827 echo "$as_me:$LINENO: checking for dlopen" >&5
9828 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9829 if test "${ac_cv_func_dlopen+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9840 #define dlopen innocuous_dlopen
9842 /* System header to define __stub macros and hopefully few prototypes,
9843 which can conflict with char dlopen (); below.
9844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9845 <limits.h> exists even on freestanding compilers. */
9848 # include <limits.h>
9850 # include <assert.h>
9855 /* Override any gcc2 internal prototype to avoid an error. */
9860 /* We use char because int might match the return type of a gcc2
9861 builtin and then its argument prototype would still apply. */
9863 /* The GNU C library defines this for functions which it implements
9864 to always fail with ENOSYS. Some functions are actually named
9865 something starting with __ and the normal name is an alias. */
9866 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9869 char (*f) () = dlopen;
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885 (eval $ac_link) 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag"
9893 || test ! -s conftest.err'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest$ac_exeext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_func_dlopen=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_cv_func_dlopen=no
9912 rm -f conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9915 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9916 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9917 if test $ac_cv_func_dlopen = yes; then
9918 lt_cv_dlopen="dlopen"
9920 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9921 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9922 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 ac_check_lib_save_LIBS=$LIBS
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9934 /* Override any gcc2 internal prototype to avoid an error. */
9938 /* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9953 grep -v '^ *+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_lib_dl_dlopen=yes
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 ac_cv_lib_dl_dlopen=no
9978 rm -f conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9982 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9984 if test $ac_cv_lib_dl_dlopen = yes; then
9985 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9987 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9988 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 ac_check_lib_save_LIBS=$LIBS
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10001 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>conftest.er1
10020 grep -v '^ *+' conftest.er1 >conftest.err
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag"
10026 || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_lib_svld_dlopen=yes
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 ac_cv_lib_svld_dlopen=no
10045 rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10049 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10050 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10051 if test $ac_cv_lib_svld_dlopen = yes; then
10052 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10054 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10055 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10056 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 ac_check_lib_save_LIBS=$LIBS
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10068 /* Override any gcc2 internal prototype to avoid an error. */
10072 /* We use char because int might match the return type of a gcc2
10073 builtin and then its argument prototype would still apply. */
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>conftest.er1
10087 grep -v '^ *+' conftest.er1 >conftest.err
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag"
10093 || test ! -s conftest.err'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest$ac_exeext'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
10105 ac_cv_lib_dld_dld_link=yes
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_cv_lib_dld_dld_link=no
10112 rm -f conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10116 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10117 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10118 if test $ac_cv_lib_dld_dld_link = yes; then
10119 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10140 if test "x$lt_cv_dlopen" != xno; then
10146 case $lt_cv_dlopen in
10148 save_CPPFLAGS="$CPPFLAGS"
10149 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10151 save_LDFLAGS="$LDFLAGS"
10152 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10155 LIBS="$lt_cv_dlopen_libs $LIBS"
10157 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10158 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10159 if test "${lt_cv_dlopen_self+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 if test "$cross_compiling" = yes; then :
10163 lt_cv_dlopen_self=cross
10165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10166 lt_status=$lt_dlunknown
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10178 # define LT_DLGLOBAL RTLD_GLOBAL
10181 # define LT_DLGLOBAL DL_GLOBAL
10183 # define LT_DLGLOBAL 0
10187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10188 find out it does not work in some platform. */
10189 #ifndef LT_DLLAZY_OR_NOW
10191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10194 # define LT_DLLAZY_OR_NOW DL_LAZY
10197 # define LT_DLLAZY_OR_NOW RTLD_NOW
10200 # define LT_DLLAZY_OR_NOW DL_NOW
10202 # define LT_DLLAZY_OR_NOW 0
10210 extern "C" void exit (int);
10213 void fnord() { int i=42;}
10216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10217 int status = $lt_dlunknown;
10221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10223 /* dlclose (self); */
10229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10234 (./conftest; exit; ) >&5 2>/dev/null
10236 case x$lt_status in
10237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10239 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10242 # compilation failed
10243 lt_cv_dlopen_self=no
10250 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10251 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10253 if test "x$lt_cv_dlopen_self" = xyes; then
10254 LDFLAGS="$LDFLAGS $link_static_flag"
10255 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10256 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10257 if test "${lt_cv_dlopen_self_static+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 if test "$cross_compiling" = yes; then :
10261 lt_cv_dlopen_self_static=cross
10263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10264 lt_status=$lt_dlunknown
10265 cat > conftest.$ac_ext <<EOF
10266 #line 10266 "configure"
10267 #include "confdefs.h"
10276 # define LT_DLGLOBAL RTLD_GLOBAL
10279 # define LT_DLGLOBAL DL_GLOBAL
10281 # define LT_DLGLOBAL 0
10285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10286 find out it does not work in some platform. */
10287 #ifndef LT_DLLAZY_OR_NOW
10289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10292 # define LT_DLLAZY_OR_NOW DL_LAZY
10295 # define LT_DLLAZY_OR_NOW RTLD_NOW
10298 # define LT_DLLAZY_OR_NOW DL_NOW
10300 # define LT_DLLAZY_OR_NOW 0
10308 extern "C" void exit (int);
10311 void fnord() { int i=42;}
10314 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10315 int status = $lt_dlunknown;
10319 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10320 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10321 /* dlclose (self); */
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328 (eval $ac_link) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10332 (./conftest; exit; ) >&5 2>/dev/null
10334 case x$lt_status in
10335 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10336 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10337 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10340 # compilation failed
10341 lt_cv_dlopen_self_static=no
10348 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10349 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10352 CPPFLAGS="$save_CPPFLAGS"
10353 LDFLAGS="$save_LDFLAGS"
10358 case $lt_cv_dlopen_self in
10359 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10360 *) enable_dlopen_self=unknown ;;
10363 case $lt_cv_dlopen_self_static in
10364 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10365 *) enable_dlopen_self_static=unknown ;;
10370 # Report which librarie types wil actually be built
10371 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10372 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10373 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10374 echo "${ECHO_T}$can_build_shared" >&6
10376 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10377 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10378 test "$can_build_shared" = "no" && enable_shared=no
10380 # On AIX, shared libraries and static libraries use the same namespace, and
10381 # are all built from PIC.
10384 test "$enable_shared" = yes && enable_static=no
10385 if test -n "$RANLIB"; then
10386 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387 postinstall_cmds='$RANLIB $lib'
10392 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393 test "$enable_shared" = yes && enable_static=no
10397 echo "$as_me:$LINENO: result: $enable_shared" >&5
10398 echo "${ECHO_T}$enable_shared" >&6
10400 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10401 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10402 # Make sure either enable_shared or enable_static is yes.
10403 test "$enable_shared" = yes || enable_static=yes
10404 echo "$as_me:$LINENO: result: $enable_static" >&5
10405 echo "${ECHO_T}$enable_static" >&6
10407 # The else clause should only fire when bootstrapping the
10408 # libtool distribution, otherwise you forgot to ship ltmain.sh
10409 # with your package, and you will get complaints that there are
10410 # no rules to generate ltmain.sh.
10411 if test -f "$ltmain"; then
10412 # See if we are running on zsh, and set the options which allow our commands through
10413 # without removal of \ escapes.
10414 if test -n "${ZSH_VERSION+set}" ; then
10415 setopt NO_GLOB_SUBST
10417 # Now quote all the things that may contain metacharacters while being
10418 # careful not to overquote the AC_SUBSTed values. We take copies of the
10419 # variables and quote the copies for generation of the libtool script.
10420 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10422 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10423 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10424 deplibs_check_method reload_flag reload_cmds need_locks \
10425 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10426 lt_cv_sys_global_symbol_to_c_name_address \
10427 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10428 old_postinstall_cmds old_postuninstall_cmds \
10432 lt_prog_compiler_wl \
10433 lt_prog_compiler_pic \
10434 lt_prog_compiler_static \
10435 lt_prog_compiler_no_builtin_flag \
10436 export_dynamic_flag_spec \
10437 thread_safe_flag_spec \
10438 whole_archive_flag_spec \
10439 enable_shared_with_static_runtimes \
10441 old_archive_from_new_cmds \
10446 compiler_lib_search_path \
10448 archive_expsym_cmds \
10450 postuninstall_cmds \
10451 old_archive_from_expsyms_cmds \
10452 allow_undefined_flag \
10453 no_undefined_flag \
10454 export_symbols_cmds \
10455 hardcode_libdir_flag_spec \
10456 hardcode_libdir_flag_spec_ld \
10457 hardcode_libdir_separator \
10458 hardcode_automatic \
10460 module_expsym_cmds \
10461 lt_cv_prog_compiler_c_o \
10463 include_expsyms; do
10466 old_archive_cmds | \
10467 old_archive_from_new_cmds | \
10469 archive_expsym_cmds | \
10471 module_expsym_cmds | \
10472 old_archive_from_expsyms_cmds | \
10473 export_symbols_cmds | \
10474 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10475 postinstall_cmds | postuninstall_cmds | \
10476 old_postinstall_cmds | old_postuninstall_cmds | \
10477 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10478 # Double-quote double-evaled strings.
10479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10482 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10488 *'\$0 --fallback-echo"')
10489 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10493 cfgfile="${ofile}T"
10494 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10496 { echo "$as_me:$LINENO: creating $ofile" >&5
10497 echo "$as_me: creating $ofile" >&6;}
10499 cat <<__EOF__ >> "$cfgfile"
10502 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10503 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10504 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10506 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10507 # Free Software Foundation, Inc.
10509 # This file is part of GNU Libtool:
10510 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10512 # This program is free software; you can redistribute it and/or modify
10513 # it under the terms of the GNU General Public License as published by
10514 # the Free Software Foundation; either version 2 of the License, or
10515 # (at your option) any later version.
10517 # This program is distributed in the hope that it will be useful, but
10518 # WITHOUT ANY WARRANTY; without even the implied warranty of
10519 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10520 # General Public License for more details.
10522 # You should have received a copy of the GNU General Public License
10523 # along with this program; if not, write to the Free Software
10524 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10526 # As a special exception to the GNU General Public License, if you
10527 # distribute this file as part of a program that contains a
10528 # configuration script generated by Autoconf, you may include it under
10529 # the same distribution terms that you use for the rest of that program.
10531 # A sed program that does not truncate output.
10534 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10535 Xsed="$SED -e 1s/^X//"
10537 # The HP-UX ksh and POSIX shell print the target directory to stdout
10538 # if CDPATH is set.
10539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10541 # The names of the tagged configurations supported by this script.
10544 # ### BEGIN LIBTOOL CONFIG
10546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10548 # Shell to use when invoking shell scripts.
10551 # Whether or not to build shared libraries.
10552 build_libtool_libs=$enable_shared
10554 # Whether or not to build static libraries.
10555 build_old_libs=$enable_static
10557 # Whether or not to add -lc for building shared libraries.
10558 build_libtool_need_lc=$archive_cmds_need_lc
10560 # Whether or not to disallow shared libs when runtime libs are static
10561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10563 # Whether or not to optimize for fast installation.
10564 fast_install=$enable_fast_install
10567 host_alias=$host_alias
10571 # The build system.
10572 build_alias=$build_alias
10576 # An echo program that does not interpret backslashes.
10581 AR_FLAGS=$lt_AR_FLAGS
10586 # A language-specific compiler.
10589 # Is the compiler the GNU C compiler?
10595 # The linker used to build libraries.
10598 # Whether we need hard or soft links.
10601 # A BSD-compatible nm program.
10604 # A symbol stripping program
10607 # Used to examine libraries when file_magic_cmd begins "file"
10608 MAGIC_CMD=$MAGIC_CMD
10610 # Used on cygwin: DLL creation program.
10613 # Used on cygwin: object dumper.
10616 # Used on cygwin: assembler.
10619 # The name of the directory that contains temporary libtool files.
10622 # How to create reloadable object files.
10623 reload_flag=$lt_reload_flag
10624 reload_cmds=$lt_reload_cmds
10626 # How to pass a linker flag through the compiler.
10627 wl=$lt_lt_prog_compiler_wl
10629 # Object file suffix (normally "o").
10630 objext="$ac_objext"
10632 # Old archive suffix (normally "a").
10635 # Shared library suffix (normally ".so").
10636 shrext_cmds='$shrext_cmds'
10638 # Executable file suffix (normally "").
10641 # Additional compiler flags for building library objects.
10642 pic_flag=$lt_lt_prog_compiler_pic
10645 # What is the maximum length of a command?
10646 max_cmd_len=$lt_cv_sys_max_cmd_len
10648 # Does compiler simultaneously support -c and -o options?
10649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10651 # Must we lock files when doing compilation?
10652 need_locks=$lt_need_locks
10654 # Do we need the lib prefix for modules?
10655 need_lib_prefix=$need_lib_prefix
10657 # Do we need a version for libraries?
10658 need_version=$need_version
10660 # Whether dlopen is supported.
10661 dlopen_support=$enable_dlopen
10663 # Whether dlopen of programs is supported.
10664 dlopen_self=$enable_dlopen_self
10666 # Whether dlopen of statically linked programs is supported.
10667 dlopen_self_static=$enable_dlopen_self_static
10669 # Compiler flag to prevent dynamic linking.
10670 link_static_flag=$lt_lt_prog_compiler_static
10672 # Compiler flag to turn off builtin functions.
10673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10675 # Compiler flag to allow reflexive dlopens.
10676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10678 # Compiler flag to generate shared objects directly from archives.
10679 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10681 # Compiler flag to generate thread-safe objects.
10682 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10684 # Library versioning type.
10685 version_type=$version_type
10687 # Format of library name prefix.
10688 libname_spec=$lt_libname_spec
10690 # List of archive names. First name is the real one, the rest are links.
10691 # The last name is the one that the linker finds with -lNAME.
10692 library_names_spec=$lt_library_names_spec
10694 # The coded name of the library, if different from the real name.
10695 soname_spec=$lt_soname_spec
10697 # Commands used to build and install an old-style archive.
10699 old_archive_cmds=$lt_old_archive_cmds
10700 old_postinstall_cmds=$lt_old_postinstall_cmds
10701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10703 # Create an old-style archive from a shared archive.
10704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10706 # Create a temporary old-style archive to link instead of a shared archive.
10707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10709 # Commands used to build and install a shared archive.
10710 archive_cmds=$lt_archive_cmds
10711 archive_expsym_cmds=$lt_archive_expsym_cmds
10712 postinstall_cmds=$lt_postinstall_cmds
10713 postuninstall_cmds=$lt_postuninstall_cmds
10715 # Commands used to build a loadable module (assumed same as above if empty)
10716 module_cmds=$lt_module_cmds
10717 module_expsym_cmds=$lt_module_expsym_cmds
10719 # Commands to strip libraries.
10720 old_striplib=$lt_old_striplib
10721 striplib=$lt_striplib
10723 # Dependencies to place before the objects being linked to create a
10725 predep_objects=$lt_predep_objects
10727 # Dependencies to place after the objects being linked to create a
10729 postdep_objects=$lt_postdep_objects
10731 # Dependencies to place before the objects being linked to create a
10733 predeps=$lt_predeps
10735 # Dependencies to place after the objects being linked to create a
10737 postdeps=$lt_postdeps
10739 # The library search path used internally by the compiler when linking
10740 # a shared library.
10741 compiler_lib_search_path=$lt_compiler_lib_search_path
10743 # Method to check whether dependent libraries are shared objects.
10744 deplibs_check_method=$lt_deplibs_check_method
10746 # Command to use when deplibs_check_method == file_magic.
10747 file_magic_cmd=$lt_file_magic_cmd
10749 # Flag that allows shared libraries with undefined symbols to be built.
10750 allow_undefined_flag=$lt_allow_undefined_flag
10752 # Flag that forces no undefined symbols.
10753 no_undefined_flag=$lt_no_undefined_flag
10755 # Commands used to finish a libtool library installation in a directory.
10756 finish_cmds=$lt_finish_cmds
10758 # Same as above, but a single script fragment to be evaled but not shown.
10759 finish_eval=$lt_finish_eval
10761 # Take the output of nm and produce a listing of raw symbols and C names.
10762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10764 # Transform the output of nm in a proper C declaration
10765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10767 # Transform the output of nm in a C name address pair
10768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10770 # This is the shared library runtime path variable.
10771 runpath_var=$runpath_var
10773 # This is the shared library path variable.
10774 shlibpath_var=$shlibpath_var
10776 # Is shlibpath searched before the hard-coded library search path?
10777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10779 # How to hardcode a shared library path into an executable.
10780 hardcode_action=$hardcode_action
10782 # Whether we should hardcode library paths into libraries.
10783 hardcode_into_libs=$hardcode_into_libs
10785 # Flag to hardcode \$libdir into a binary during linking.
10786 # This must work even if \$libdir does not exist.
10787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10789 # If ld is used when linking, flag to hardcode \$libdir into
10790 # a binary during linking. This must work even if \$libdir does
10792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10794 # Whether we need a single -rpath flag with a separated argument.
10795 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10798 # resulting binary.
10799 hardcode_direct=$hardcode_direct
10801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10802 # resulting binary.
10803 hardcode_minus_L=$hardcode_minus_L
10805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10806 # the resulting binary.
10807 hardcode_shlibpath_var=$hardcode_shlibpath_var
10809 # Set to yes if building a shared library automatically hardcodes DIR into the library
10810 # and all subsequent libraries and executables linked against it.
10811 hardcode_automatic=$hardcode_automatic
10813 # Variables whose values should be saved in libtool wrapper scripts and
10814 # restored at relink time.
10815 variables_saved_for_relink="$variables_saved_for_relink"
10817 # Whether libtool must link a program against all its dependency libraries.
10818 link_all_deplibs=$link_all_deplibs
10820 # Compile-time system search path for libraries
10821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10823 # Run-time system search path for libraries
10824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10826 # Fix the shell variable \$srcfile for the compiler.
10827 fix_srcfile_path="$fix_srcfile_path"
10829 # Set to yes if exported symbols are required.
10830 always_export_symbols=$always_export_symbols
10832 # The commands to list exported symbols.
10833 export_symbols_cmds=$lt_export_symbols_cmds
10835 # The commands to extract the exported symbol list from a shared archive.
10836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10838 # Symbols that should not be listed in the preloaded symbols.
10839 exclude_expsyms=$lt_exclude_expsyms
10841 # Symbols that must always be exported.
10842 include_expsyms=$lt_include_expsyms
10844 # ### END LIBTOOL CONFIG
10851 cat <<\EOF >> "$cfgfile"
10853 # AIX sometimes has problems with the GCC collect2 program. For some
10854 # reason, if we set the COLLECT_NAMES environment variable, the problems
10855 # vanish in a puff of smoke.
10856 if test "X${COLLECT_NAMES+set}" != Xset; then
10858 export COLLECT_NAMES
10864 # We use sed instead of cat because bash on DJGPP gets confused if
10865 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10866 # text mode, it properly converts lines to CR/LF. This bash problem
10867 # is reportedly fixed, but why not run on old versions too?
10868 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10870 mv -f "$cfgfile" "$ofile" || \
10871 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10875 # If there is no Makefile yet, we rely on a make rule to execute
10876 # `config.status --recheck' to rerun these tests and create the
10877 # libtool script then.
10878 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10879 if test -f "$ltmain_in"; then
10880 test -f Makefile && make "$ltmain"
10886 ac_cpp='$CPP $CPPFLAGS'
10887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10894 # Check whether --with-tags or --without-tags was given.
10895 if test "${with_tags+set}" = set; then
10896 withval="$with_tags"
10897 tagnames="$withval"
10900 if test -f "$ltmain" && test -n "$tagnames"; then
10901 if test ! -f "${ofile}"; then
10902 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10903 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10906 if test -z "$LTCC"; then
10907 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10908 if test -z "$LTCC"; then
10909 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10910 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10913 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10917 # Extract list of available tagged configurations in $ofile.
10918 # Note that this assumes the entire list is on one line.
10919 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10922 for tagname in $tagnames; do
10924 # Check whether tagname contains only valid characters
10925 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10927 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10928 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10929 { (exit 1); exit 1; }; }
10933 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10935 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10936 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10937 { (exit 1); exit 1; }; }
10940 # Update the list of available tags.
10941 if test -n "$tagname"; then
10942 echo appending configuration tag \"$tagname\" to $ofile
10946 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10947 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10948 (test "X$CXX" != "Xg++"))) ; then
10956 if test -n "$F77" && test "X$F77" != "Xno"; then
10964 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10975 # Source file extension for RC test sources.
10978 # Object file extension for compiled RC test sources.
10982 # Code to be used in simple compile tests
10983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10985 # Code to be used in simple link tests
10986 lt_simple_link_test_code="$lt_simple_compile_test_code"
10988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10990 # If no C compiler was specified, use CC.
10993 # Allow CC to be a program name with arguments.
10997 # save warnings/boilerplate of simple test code
10998 ac_outfile=conftest.$ac_objext
10999 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11001 _lt_compiler_boilerplate=`cat conftest.err`
11004 ac_outfile=conftest.$ac_objext
11005 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11007 _lt_linker_boilerplate=`cat conftest.err`
11011 # Allow CC to be a program name with arguments.
11016 for cc_temp in $compiler""; do
11018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11026 lt_cv_prog_compiler_c_o_RC=yes
11028 # The else clause should only fire when bootstrapping the
11029 # libtool distribution, otherwise you forgot to ship ltmain.sh
11030 # with your package, and you will get complaints that there are
11031 # no rules to generate ltmain.sh.
11032 if test -f "$ltmain"; then
11033 # See if we are running on zsh, and set the options which allow our commands through
11034 # without removal of \ escapes.
11035 if test -n "${ZSH_VERSION+set}" ; then
11036 setopt NO_GLOB_SUBST
11038 # Now quote all the things that may contain metacharacters while being
11039 # careful not to overquote the AC_SUBSTed values. We take copies of the
11040 # variables and quote the copies for generation of the libtool script.
11041 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11045 deplibs_check_method reload_flag reload_cmds need_locks \
11046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11047 lt_cv_sys_global_symbol_to_c_name_address \
11048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11049 old_postinstall_cmds old_postuninstall_cmds \
11053 lt_prog_compiler_wl_RC \
11054 lt_prog_compiler_pic_RC \
11055 lt_prog_compiler_static_RC \
11056 lt_prog_compiler_no_builtin_flag_RC \
11057 export_dynamic_flag_spec_RC \
11058 thread_safe_flag_spec_RC \
11059 whole_archive_flag_spec_RC \
11060 enable_shared_with_static_runtimes_RC \
11061 old_archive_cmds_RC \
11062 old_archive_from_new_cmds_RC \
11063 predep_objects_RC \
11064 postdep_objects_RC \
11067 compiler_lib_search_path_RC \
11069 archive_expsym_cmds_RC \
11070 postinstall_cmds_RC \
11071 postuninstall_cmds_RC \
11072 old_archive_from_expsyms_cmds_RC \
11073 allow_undefined_flag_RC \
11074 no_undefined_flag_RC \
11075 export_symbols_cmds_RC \
11076 hardcode_libdir_flag_spec_RC \
11077 hardcode_libdir_flag_spec_ld_RC \
11078 hardcode_libdir_separator_RC \
11079 hardcode_automatic_RC \
11081 module_expsym_cmds_RC \
11082 lt_cv_prog_compiler_c_o_RC \
11083 exclude_expsyms_RC \
11084 include_expsyms_RC; do
11087 old_archive_cmds_RC | \
11088 old_archive_from_new_cmds_RC | \
11089 archive_cmds_RC | \
11090 archive_expsym_cmds_RC | \
11092 module_expsym_cmds_RC | \
11093 old_archive_from_expsyms_cmds_RC | \
11094 export_symbols_cmds_RC | \
11095 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11096 postinstall_cmds | postuninstall_cmds | \
11097 old_postinstall_cmds | old_postuninstall_cmds | \
11098 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11099 # Double-quote double-evaled strings.
11100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11109 *'\$0 --fallback-echo"')
11110 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11116 cat <<__EOF__ >> "$cfgfile"
11117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11121 # Shell to use when invoking shell scripts.
11124 # Whether or not to build shared libraries.
11125 build_libtool_libs=$enable_shared
11127 # Whether or not to build static libraries.
11128 build_old_libs=$enable_static
11130 # Whether or not to add -lc for building shared libraries.
11131 build_libtool_need_lc=$archive_cmds_need_lc_RC
11133 # Whether or not to disallow shared libs when runtime libs are static
11134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11136 # Whether or not to optimize for fast installation.
11137 fast_install=$enable_fast_install
11140 host_alias=$host_alias
11144 # The build system.
11145 build_alias=$build_alias
11149 # An echo program that does not interpret backslashes.
11154 AR_FLAGS=$lt_AR_FLAGS
11159 # A language-specific compiler.
11162 # Is the compiler the GNU C compiler?
11168 # The linker used to build libraries.
11171 # Whether we need hard or soft links.
11174 # A BSD-compatible nm program.
11177 # A symbol stripping program
11180 # Used to examine libraries when file_magic_cmd begins "file"
11181 MAGIC_CMD=$MAGIC_CMD
11183 # Used on cygwin: DLL creation program.
11186 # Used on cygwin: object dumper.
11189 # Used on cygwin: assembler.
11192 # The name of the directory that contains temporary libtool files.
11195 # How to create reloadable object files.
11196 reload_flag=$lt_reload_flag
11197 reload_cmds=$lt_reload_cmds
11199 # How to pass a linker flag through the compiler.
11200 wl=$lt_lt_prog_compiler_wl_RC
11202 # Object file suffix (normally "o").
11203 objext="$ac_objext"
11205 # Old archive suffix (normally "a").
11208 # Shared library suffix (normally ".so").
11209 shrext_cmds='$shrext_cmds'
11211 # Executable file suffix (normally "").
11214 # Additional compiler flags for building library objects.
11215 pic_flag=$lt_lt_prog_compiler_pic_RC
11218 # What is the maximum length of a command?
11219 max_cmd_len=$lt_cv_sys_max_cmd_len
11221 # Does compiler simultaneously support -c and -o options?
11222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11224 # Must we lock files when doing compilation?
11225 need_locks=$lt_need_locks
11227 # Do we need the lib prefix for modules?
11228 need_lib_prefix=$need_lib_prefix
11230 # Do we need a version for libraries?
11231 need_version=$need_version
11233 # Whether dlopen is supported.
11234 dlopen_support=$enable_dlopen
11236 # Whether dlopen of programs is supported.
11237 dlopen_self=$enable_dlopen_self
11239 # Whether dlopen of statically linked programs is supported.
11240 dlopen_self_static=$enable_dlopen_self_static
11242 # Compiler flag to prevent dynamic linking.
11243 link_static_flag=$lt_lt_prog_compiler_static_RC
11245 # Compiler flag to turn off builtin functions.
11246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11248 # Compiler flag to allow reflexive dlopens.
11249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11251 # Compiler flag to generate shared objects directly from archives.
11252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11254 # Compiler flag to generate thread-safe objects.
11255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11257 # Library versioning type.
11258 version_type=$version_type
11260 # Format of library name prefix.
11261 libname_spec=$lt_libname_spec
11263 # List of archive names. First name is the real one, the rest are links.
11264 # The last name is the one that the linker finds with -lNAME.
11265 library_names_spec=$lt_library_names_spec
11267 # The coded name of the library, if different from the real name.
11268 soname_spec=$lt_soname_spec
11270 # Commands used to build and install an old-style archive.
11272 old_archive_cmds=$lt_old_archive_cmds_RC
11273 old_postinstall_cmds=$lt_old_postinstall_cmds
11274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11276 # Create an old-style archive from a shared archive.
11277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11279 # Create a temporary old-style archive to link instead of a shared archive.
11280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11282 # Commands used to build and install a shared archive.
11283 archive_cmds=$lt_archive_cmds_RC
11284 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11285 postinstall_cmds=$lt_postinstall_cmds
11286 postuninstall_cmds=$lt_postuninstall_cmds
11288 # Commands used to build a loadable module (assumed same as above if empty)
11289 module_cmds=$lt_module_cmds_RC
11290 module_expsym_cmds=$lt_module_expsym_cmds_RC
11292 # Commands to strip libraries.
11293 old_striplib=$lt_old_striplib
11294 striplib=$lt_striplib
11296 # Dependencies to place before the objects being linked to create a
11298 predep_objects=$lt_predep_objects_RC
11300 # Dependencies to place after the objects being linked to create a
11302 postdep_objects=$lt_postdep_objects_RC
11304 # Dependencies to place before the objects being linked to create a
11306 predeps=$lt_predeps_RC
11308 # Dependencies to place after the objects being linked to create a
11310 postdeps=$lt_postdeps_RC
11312 # The library search path used internally by the compiler when linking
11313 # a shared library.
11314 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11316 # Method to check whether dependent libraries are shared objects.
11317 deplibs_check_method=$lt_deplibs_check_method
11319 # Command to use when deplibs_check_method == file_magic.
11320 file_magic_cmd=$lt_file_magic_cmd
11322 # Flag that allows shared libraries with undefined symbols to be built.
11323 allow_undefined_flag=$lt_allow_undefined_flag_RC
11325 # Flag that forces no undefined symbols.
11326 no_undefined_flag=$lt_no_undefined_flag_RC
11328 # Commands used to finish a libtool library installation in a directory.
11329 finish_cmds=$lt_finish_cmds
11331 # Same as above, but a single script fragment to be evaled but not shown.
11332 finish_eval=$lt_finish_eval
11334 # Take the output of nm and produce a listing of raw symbols and C names.
11335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11337 # Transform the output of nm in a proper C declaration
11338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11340 # Transform the output of nm in a C name address pair
11341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11343 # This is the shared library runtime path variable.
11344 runpath_var=$runpath_var
11346 # This is the shared library path variable.
11347 shlibpath_var=$shlibpath_var
11349 # Is shlibpath searched before the hard-coded library search path?
11350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11352 # How to hardcode a shared library path into an executable.
11353 hardcode_action=$hardcode_action_RC
11355 # Whether we should hardcode library paths into libraries.
11356 hardcode_into_libs=$hardcode_into_libs
11358 # Flag to hardcode \$libdir into a binary during linking.
11359 # This must work even if \$libdir does not exist.
11360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11362 # If ld is used when linking, flag to hardcode \$libdir into
11363 # a binary during linking. This must work even if \$libdir does
11365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11367 # Whether we need a single -rpath flag with a separated argument.
11368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11371 # resulting binary.
11372 hardcode_direct=$hardcode_direct_RC
11374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11375 # resulting binary.
11376 hardcode_minus_L=$hardcode_minus_L_RC
11378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11379 # the resulting binary.
11380 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11382 # Set to yes if building a shared library automatically hardcodes DIR into the library
11383 # and all subsequent libraries and executables linked against it.
11384 hardcode_automatic=$hardcode_automatic_RC
11386 # Variables whose values should be saved in libtool wrapper scripts and
11387 # restored at relink time.
11388 variables_saved_for_relink="$variables_saved_for_relink"
11390 # Whether libtool must link a program against all its dependency libraries.
11391 link_all_deplibs=$link_all_deplibs_RC
11393 # Compile-time system search path for libraries
11394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11396 # Run-time system search path for libraries
11397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11399 # Fix the shell variable \$srcfile for the compiler.
11400 fix_srcfile_path="$fix_srcfile_path_RC"
11402 # Set to yes if exported symbols are required.
11403 always_export_symbols=$always_export_symbols_RC
11405 # The commands to list exported symbols.
11406 export_symbols_cmds=$lt_export_symbols_cmds_RC
11408 # The commands to extract the exported symbol list from a shared archive.
11409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11411 # Symbols that should not be listed in the preloaded symbols.
11412 exclude_expsyms=$lt_exclude_expsyms_RC
11414 # Symbols that must always be exported.
11415 include_expsyms=$lt_include_expsyms_RC
11417 # ### END LIBTOOL TAG CONFIG: $tagname
11423 # If there is no Makefile yet, we rely on a make rule to execute
11424 # `config.status --recheck' to rerun these tests and create the
11425 # libtool script then.
11426 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11427 if test -f "$ltmain_in"; then
11428 test -f Makefile && make "$ltmain"
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11445 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11446 { (exit 1); exit 1; }; }
11450 # Append the new tag name to the list of available tags.
11451 if test -n "$tagname" ; then
11452 available_tags="$available_tags $tagname"
11458 # Now substitute the updated list of available tags.
11459 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11460 mv "${ofile}T" "$ofile"
11464 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11465 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11466 { (exit 1); exit 1; }; }
11472 # This can be used to rebuild libtool when needed
11473 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11475 # Always use our own libtool.
11476 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11478 # Prevent multiple expansion
11490 if test $ol_enable_perl != no ; then
11491 # Extract the first word of "perl", so it can be a program name with args.
11492 set dummy perl; ac_word=$2
11493 echo "$as_me:$LINENO: checking for $ac_word" >&5
11494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11495 if test "${ac_cv_path_PERLBIN+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11521 PERLBIN=$ac_cv_path_PERLBIN
11523 if test -n "$PERLBIN"; then
11524 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11525 echo "${ECHO_T}$PERLBIN" >&6
11527 echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11532 if test "no$PERLBIN" = "no" ; then
11533 if test $ol_enable_perl = yes ; then
11534 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11535 echo "$as_me: error: could not locate perl" >&2;}
11536 { (exit 1); exit 1; }; }
11540 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11541 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11543 if test x"$ol_enable_perl" = "xyes" ; then
11544 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11546 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11553 ac_cpp='$CPP $CPPFLAGS'
11554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11557 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11558 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11559 # On Suns, sometimes $CPP names a directory.
11560 if test -n "$CPP" && test -d "$CPP"; then
11563 if test -z "$CPP"; then
11564 if test "${ac_cv_prog_CPP+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 # Double quotes because CPP needs to be expanded
11568 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11570 ac_preproc_ok=false
11571 for ac_c_preproc_warn_flag in '' yes
11573 # Use a header file that comes with gcc, so configuring glibc
11574 # with a fresh cross-compiler works.
11575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576 # <limits.h> exists even on freestanding compilers.
11577 # On the NeXT, cc -E runs the code through the compiler's parser,
11578 # not just through cpp. "Syntax error" is here to catch this case.
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11586 # include <limits.h>
11588 # include <assert.h>
11592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } >/dev/null; then
11600 if test -s conftest.err; then
11601 ac_cpp_err=$ac_c_preproc_warn_flag
11602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11609 if test -z "$ac_cpp_err"; then
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 # Broken: fails on valid input.
11618 rm -f conftest.err conftest.$ac_ext
11620 # OK, works on sane cases. Now check whether non-existent headers
11621 # can be detected and how.
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 #include <ac_nonexistent.h>
11630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } >/dev/null; then
11638 if test -s conftest.err; then
11639 ac_cpp_err=$ac_c_preproc_warn_flag
11640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11647 if test -z "$ac_cpp_err"; then
11648 # Broken: success on invalid input.
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 # Passes both tests.
11658 rm -f conftest.err conftest.$ac_ext
11661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11662 rm -f conftest.err conftest.$ac_ext
11663 if $ac_preproc_ok; then
11668 ac_cv_prog_CPP=$CPP
11671 CPP=$ac_cv_prog_CPP
11673 ac_cv_prog_CPP=$CPP
11675 echo "$as_me:$LINENO: result: $CPP" >&5
11676 echo "${ECHO_T}$CPP" >&6
11677 ac_preproc_ok=false
11678 for ac_c_preproc_warn_flag in '' yes
11680 # Use a header file that comes with gcc, so configuring glibc
11681 # with a fresh cross-compiler works.
11682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11683 # <limits.h> exists even on freestanding compilers.
11684 # On the NeXT, cc -E runs the code through the compiler's parser,
11685 # not just through cpp. "Syntax error" is here to catch this case.
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11693 # include <limits.h>
11695 # include <assert.h>
11699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } >/dev/null; then
11707 if test -s conftest.err; then
11708 ac_cpp_err=$ac_c_preproc_warn_flag
11709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11716 if test -z "$ac_cpp_err"; then
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 # Broken: fails on valid input.
11725 rm -f conftest.err conftest.$ac_ext
11727 # OK, works on sane cases. Now check whether non-existent headers
11728 # can be detected and how.
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 #include <ac_nonexistent.h>
11737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } >/dev/null; then
11745 if test -s conftest.err; then
11746 ac_cpp_err=$ac_c_preproc_warn_flag
11747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11754 if test -z "$ac_cpp_err"; then
11755 # Broken: success on invalid input.
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 # Passes both tests.
11765 rm -f conftest.err conftest.$ac_ext
11768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11769 rm -f conftest.err conftest.$ac_ext
11770 if $ac_preproc_ok; then
11773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11774 See \`config.log' for more details." >&5
11775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11776 See \`config.log' for more details." >&2;}
11777 { (exit 1); exit 1; }; }
11781 ac_cpp='$CPP $CPPFLAGS'
11782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11788 *mingw32* ) ac_cv_mingw32=yes ;;
11789 *cygwin* ) ac_cv_cygwin=yes ;;
11795 cat >>confdefs.h <<_ACEOF
11796 #define EXEEXT "${EXEEXT}"
11800 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11801 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11802 if test "${ac_cv_lib_be_be_app+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_check_lib_save_LIBS=$LIBS
11806 LIBS="-lbe -lroot -lnet $LIBS"
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11814 /* Override any gcc2 internal prototype to avoid an error. */
11818 /* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11829 rm -f conftest.$ac_objext conftest$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831 (eval $ac_link) 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try='test -z "$ac_c_werror_flag"
11839 || test ! -s conftest.err'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest$ac_exeext'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 ac_cv_lib_be_be_app=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_cv_lib_be_be_app=no
11858 rm -f conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11862 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11863 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11864 if test $ac_cv_lib_be_be_app = yes; then
11865 LIBS="$LIBS -lbe -lroot -lnet"
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876 if test -n "$ac_tool_prefix"; then
11877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11879 echo "$as_me:$LINENO: checking for $ac_word" >&5
11880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11881 if test "${ac_cv_prog_CC+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 if test -n "$CC"; then
11885 ac_cv_prog_CC="$CC" # Let the user override the test.
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 if test -n "$CC"; then
11905 echo "$as_me:$LINENO: result: $CC" >&5
11906 echo "${ECHO_T}$CC" >&6
11908 echo "$as_me:$LINENO: result: no" >&5
11909 echo "${ECHO_T}no" >&6
11913 if test -z "$ac_cv_prog_CC"; then
11915 # Extract the first word of "gcc", so it can be a program name with args.
11916 set dummy gcc; ac_word=$2
11917 echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 if test -n "$ac_ct_CC"; then
11923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_prog_ac_ct_CC="gcc"
11933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11942 if test -n "$ac_ct_CC"; then
11943 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11944 echo "${ECHO_T}$ac_ct_CC" >&6
11946 echo "$as_me:$LINENO: result: no" >&5
11947 echo "${ECHO_T}no" >&6
11952 CC="$ac_cv_prog_CC"
11955 if test -z "$CC"; then
11956 if test -n "$ac_tool_prefix"; then
11957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11958 set dummy ${ac_tool_prefix}cc; ac_word=$2
11959 echo "$as_me:$LINENO: checking for $ac_word" >&5
11960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11961 if test "${ac_cv_prog_CC+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 if test -n "$CC"; then
11965 ac_cv_prog_CC="$CC" # Let the user override the test.
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_prog_CC="${ac_tool_prefix}cc"
11975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 if test -n "$CC"; then
11985 echo "$as_me:$LINENO: result: $CC" >&5
11986 echo "${ECHO_T}$CC" >&6
11988 echo "$as_me:$LINENO: result: no" >&5
11989 echo "${ECHO_T}no" >&6
11993 if test -z "$ac_cv_prog_CC"; then
11995 # Extract the first word of "cc", so it can be a program name with args.
11996 set dummy cc; ac_word=$2
11997 echo "$as_me:$LINENO: checking for $ac_word" >&5
11998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 if test -n "$ac_ct_CC"; then
12003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12009 test -z "$as_dir" && as_dir=.
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12012 ac_cv_prog_ac_ct_CC="cc"
12013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12022 if test -n "$ac_ct_CC"; then
12023 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12024 echo "${ECHO_T}$ac_ct_CC" >&6
12026 echo "$as_me:$LINENO: result: no" >&5
12027 echo "${ECHO_T}no" >&6
12032 CC="$ac_cv_prog_CC"
12036 if test -z "$CC"; then
12037 # Extract the first word of "cc", so it can be a program name with args.
12038 set dummy cc; ac_word=$2
12039 echo "$as_me:$LINENO: checking for $ac_word" >&5
12040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12041 if test "${ac_cv_prog_CC+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 if test -n "$CC"; then
12045 ac_cv_prog_CC="$CC" # Let the user override the test.
12047 ac_prog_rejected=no
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12056 ac_prog_rejected=yes
12060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 if test $ac_prog_rejected = yes; then
12067 # We found a bogon in the path, so make sure we never use it.
12068 set dummy $ac_cv_prog_CC
12070 if test $# != 0; then
12071 # We chose a different compiler from the bogus one.
12072 # However, it has the same basename, so the bogon will be chosen
12073 # first if we set CC to just the basename; use the full file name.
12075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12081 if test -n "$CC"; then
12082 echo "$as_me:$LINENO: result: $CC" >&5
12083 echo "${ECHO_T}$CC" >&6
12085 echo "$as_me:$LINENO: result: no" >&5
12086 echo "${ECHO_T}no" >&6
12090 if test -z "$CC"; then
12091 if test -n "$ac_tool_prefix"; then
12094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12096 echo "$as_me:$LINENO: checking for $ac_word" >&5
12097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12098 if test "${ac_cv_prog_CC+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 if test -n "$CC"; then
12102 ac_cv_prog_CC="$CC" # Let the user override the test.
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 if test -n "$CC"; then
12122 echo "$as_me:$LINENO: result: $CC" >&5
12123 echo "${ECHO_T}$CC" >&6
12125 echo "$as_me:$LINENO: result: no" >&5
12126 echo "${ECHO_T}no" >&6
12129 test -n "$CC" && break
12132 if test -z "$CC"; then
12136 # Extract the first word of "$ac_prog", so it can be a program name with args.
12137 set dummy $ac_prog; ac_word=$2
12138 echo "$as_me:$LINENO: checking for $ac_word" >&5
12139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 if test -n "$ac_ct_CC"; then
12144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153 ac_cv_prog_ac_ct_CC="$ac_prog"
12154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12163 if test -n "$ac_ct_CC"; then
12164 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12165 echo "${ECHO_T}$ac_ct_CC" >&6
12167 echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6
12171 test -n "$ac_ct_CC" && break
12180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12181 See \`config.log' for more details." >&5
12182 echo "$as_me: error: no acceptable C compiler found in \$PATH
12183 See \`config.log' for more details." >&2;}
12184 { (exit 1); exit 1; }; }
12186 # Provide some information about the compiler.
12187 echo "$as_me:$LINENO:" \
12188 "checking for C compiler version" >&5
12189 ac_compiler=`set X $ac_compile; echo $2`
12190 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12191 (eval $ac_compiler --version </dev/null >&5) 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }
12195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12196 (eval $ac_compiler -v </dev/null >&5) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }
12200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12201 (eval $ac_compiler -V </dev/null >&5) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }
12206 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12207 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12208 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12229 rm -f conftest.$ac_objext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231 (eval $ac_compile) 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -z "$ac_c_werror_flag"
12239 || test ! -s conftest.err'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_compiler_gnu=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12262 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12264 GCC=`test $ac_compiler_gnu = yes && echo yes`
12265 ac_test_CFLAGS=${CFLAGS+set}
12266 ac_save_CFLAGS=$CFLAGS
12268 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12270 if test "${ac_cv_prog_cc_g+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 cat >conftest.$ac_ext <<_ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12288 rm -f conftest.$ac_objext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag"
12298 || test ! -s conftest.err'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 ac_cv_prog_cc_g=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12320 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12321 if test "$ac_test_CFLAGS" = set; then
12322 CFLAGS=$ac_save_CFLAGS
12323 elif test $ac_cv_prog_cc_g = yes; then
12324 if test "$GCC" = yes; then
12330 if test "$GCC" = yes; then
12336 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12337 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12338 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_cv_prog_cc_stdc=no
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 #include <stdarg.h>
12351 #include <sys/types.h>
12352 #include <sys/stat.h>
12353 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12354 struct buf { int x; };
12355 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12356 static char *e (p, i)
12362 static char *f (char * (*g) (char **, int), char **p, ...)
12367 s = g (p, va_arg (v,int));
12372 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12373 function prototypes and stuff, but not '\xHH' hex character constants.
12374 These don't provoke an error unfortunately, instead are silently treated
12375 as 'x'. The following induces an error, until -std1 is added to get
12376 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12377 array size at least. It's necessary to write '\x00'==0 to get something
12378 that's true only with -std1. */
12379 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12381 int test (int i, double x);
12382 struct s1 {int (*f) (int a);};
12383 struct s2 {int (*f) (double a);};
12384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12390 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12395 # Don't try gcc -ansi; that turns off useful extensions and
12396 # breaks some systems' header files.
12397 # AIX -qlanglvl=ansi
12398 # Ultrix and OSF/1 -std1
12399 # HP-UX 10.20 and later -Ae
12400 # HP-UX older versions -Aa -D_HPUX_SOURCE
12401 # SVR4 -Xc -D__EXTENSIONS__
12402 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12404 CC="$ac_save_CC $ac_arg"
12405 rm -f conftest.$ac_objext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407 (eval $ac_compile) 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_c_werror_flag"
12415 || test ! -s conftest.err'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest.$ac_objext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_prog_cc_stdc=$ac_arg
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12434 rm -f conftest.err conftest.$ac_objext
12436 rm -f conftest.$ac_ext conftest.$ac_objext
12441 case "x$ac_cv_prog_cc_stdc" in
12443 echo "$as_me:$LINENO: result: none needed" >&5
12444 echo "${ECHO_T}none needed" >&6 ;;
12446 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12447 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12448 CC="$CC $ac_cv_prog_cc_stdc" ;;
12451 # Some people use a C++ compiler to compile C. Since we use `exit',
12452 # in C++ we need to declare it. In case someone uses the same compiler
12453 # for both compiling C and C++ we need to have the C++ compiler decide
12454 # the declaration of exit, since it's the most demanding environment.
12455 cat >conftest.$ac_ext <<_ACEOF
12456 #ifndef __cplusplus
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 for ac_declaration in \
12484 'extern "C" void std::exit (int) throw (); using std::exit;' \
12485 'extern "C" void std::exit (int); using std::exit;' \
12486 'extern "C" void exit (int) throw ();' \
12487 'extern "C" void exit (int);' \
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 #include <stdlib.h>
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag"
12516 || test ! -s conftest.err'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553 (eval $ac_compile) 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag"
12561 || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582 if test -n "$ac_declaration"; then
12583 echo '#ifdef __cplusplus' >>confdefs.h
12584 echo $ac_declaration >>confdefs.h
12585 echo '#endif' >>confdefs.h
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12600 depcc="$CC" am_compiler_list=
12602 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12603 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12604 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12608 # We make a subdir and do the tests there. Otherwise we can end up
12609 # making bogus files that we don't know about and never remove. For
12610 # instance it was reported that on HP-UX the gcc test will end up
12611 # making a dummy file named `D' -- because `-MD' means `put the output
12614 # Copy depcomp to subdir because otherwise we won't find it if we're
12615 # using a relative directory.
12616 cp "$am_depcomp" conftest.dir
12618 # We will build objects and dependencies in a subdirectory because
12619 # it helps to detect inapplicable dependency modes. For instance
12620 # both Tru64's cc and ICC support -MD to output dependencies as a
12621 # side effect of compilation, but ICC will put the dependencies in
12622 # the current directory while Tru64 will put them in the object
12626 am_cv_CC_dependencies_compiler_type=none
12627 if test "$am_compiler_list" = ""; then
12628 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12630 for depmode in $am_compiler_list; do
12631 # Setup a source with many dependencies, because some compilers
12632 # like to wrap large dependency lists on column 80 (with \), and
12633 # we should not choose a depcomp mode which is confused by this.
12635 # We need to recreate these files for each test, as the compiler may
12636 # overwrite some of them when testing with obscure command lines.
12637 # This happens at least with the AIX C compiler.
12639 for i in 1 2 3 4 5 6; do
12640 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12641 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12642 # Solaris 8's {/usr,}/bin/sh.
12643 touch sub/conftst$i.h
12645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12649 # after this tag, mechanisms are not by side-effect, so they'll
12650 # only be used when explicitly requested
12651 if test "x$enable_dependency_tracking" = xyes; then
12659 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12660 # mode. It turns out that the SunPro C++ compiler does not properly
12661 # handle `-M -o', and we need to detect this.
12662 if depmode=$depmode \
12663 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12665 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12666 >/dev/null 2>conftest.err &&
12667 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12668 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12669 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12670 # icc doesn't choke on unknown options, it will just issue warnings
12671 # or remarks (even with -Werror). So we grep stderr for any message
12672 # that says an option was ignored or not supported.
12673 # When given -MP, icc 7.0 and 7.1 complain thusly:
12674 # icc: Command line warning: ignoring option '-M'; no argument required
12675 # The diagnosis changed in icc 8.0:
12676 # icc: Command line remark: option '-MP' not supported
12677 if (grep 'ignoring option' conftest.err ||
12678 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12679 am_cv_CC_dependencies_compiler_type=$depmode
12686 rm -rf conftest.dir
12688 am_cv_CC_dependencies_compiler_type=none
12692 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12693 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12694 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12699 test "x$enable_dependency_tracking" != xno \
12700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12701 am__fastdepCC_TRUE=
12702 am__fastdepCC_FALSE='#'
12704 am__fastdepCC_TRUE='#'
12705 am__fastdepCC_FALSE=
12709 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12710 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12711 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12712 { (exit 1); exit 1; }; }
12715 # test for make depend flag
12718 if test -z "${MKDEP}"; then
12719 OL_MKDEP="${CC-cc}"
12720 if test -z "${MKDEP_FLAGS}"; then
12721 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12722 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12723 if test "${ol_cv_mkdep+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 for flag in "-M" "-xM"; do
12729 cat > conftest.c <<EOF
12732 if { ac_try='$OL_MKDEP $flag conftest.c'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } \
12738 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12740 if test ! -f conftest."${ac_object}" ; then
12742 OL_MKDEP_FLAGS="$flag"
12750 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12751 echo "${ECHO_T}$ol_cv_mkdep" >&6
12754 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12758 OL_MKDEP="${MKDEP}"
12759 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12764 if test "${ol_cv_mkdep}" = no ; then
12765 # this will soon become an error
12766 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12767 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12770 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12771 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12772 if test "${ac_cv_lib_s_afopen+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 ac_check_lib_save_LIBS=$LIBS
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12784 /* Override any gcc2 internal prototype to avoid an error. */
12788 /* We use char because int might match the return type of a gcc2
12789 builtin and then its argument prototype would still apply. */
12799 rm -f conftest.$ac_objext conftest$ac_exeext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12801 (eval $ac_link) 2>conftest.er1
12803 grep -v '^ *+' conftest.er1 >conftest.err
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag"
12809 || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest$ac_exeext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 ac_cv_lib_s_afopen=yes
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 ac_cv_lib_s_afopen=no
12828 rm -f conftest.err conftest.$ac_objext \
12829 conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12832 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12833 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12834 if test $ac_cv_lib_s_afopen = yes; then
12838 cat >>confdefs.h <<\_ACEOF
12839 #define HAVE_AIX_SECURITY 1
12848 ac_cv_func_getopt=no
12850 cat >>confdefs.h <<\_ACEOF
12851 #define BOTH_STRINGS_H 1
12858 WITH_MODULES_ENABLED=no
12859 if test $ol_enable_modules != no ; then
12861 for ac_header in ltdl.h
12863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12865 echo "$as_me:$LINENO: checking for $ac_header" >&5
12866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12873 # Is the header compilable?
12874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 $ac_includes_default
12883 #include <$ac_header>
12885 rm -f conftest.$ac_objext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887 (eval $ac_compile) 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag"
12895 || test ! -s conftest.err'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest.$ac_objext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 ac_header_compiler=yes
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_header_compiler=no
12914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12916 echo "${ECHO_T}$ac_header_compiler" >&6
12918 # Is the header present?
12919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12921 cat >conftest.$ac_ext <<_ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 #include <$ac_header>
12929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12932 grep -v '^ *+' conftest.er1 >conftest.err
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } >/dev/null; then
12937 if test -s conftest.err; then
12938 ac_cpp_err=$ac_c_preproc_warn_flag
12939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12946 if test -z "$ac_cpp_err"; then
12947 ac_header_preproc=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_header_preproc=no
12954 rm -f conftest.err conftest.$ac_ext
12955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12956 echo "${ECHO_T}$ac_header_preproc" >&6
12958 # So? What about this header?
12959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12965 ac_header_preproc=yes
12968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12982 ## --------------------------------------------- ##
12983 ## Report this to <http://www.openldap.org/its/> ##
12984 ## --------------------------------------------- ##
12987 sed "s/^/$as_me: WARNING: /" >&2
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 eval "$as_ac_Header=\$ac_header_preproc"
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13002 cat >>confdefs.h <<_ACEOF
13003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13011 if test $ac_cv_header_ltdl_h = no ; then
13012 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13013 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13014 { (exit 1); exit 1; }; }
13017 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13018 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13019 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-lltdl $LIBS"
13024 cat >conftest.$ac_ext <<_ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13031 /* Override any gcc2 internal prototype to avoid an error. */
13035 /* We use char because int might match the return type of a gcc2
13036 builtin and then its argument prototype would still apply. */
13046 rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13048 (eval $ac_link) 2>conftest.er1
13050 grep -v '^ *+' conftest.er1 >conftest.err
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag"
13056 || test ! -s conftest.err'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; } &&
13062 { ac_try='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_lib_ltdl_lt_dlinit=yes
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ac_cv_lib_ltdl_lt_dlinit=no
13075 rm -f conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13077 LIBS=$ac_check_lib_save_LIBS
13079 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13080 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13081 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13083 MODULES_LIBS=-lltdl
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_LIBLTDL 1
13093 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13094 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13095 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13096 { (exit 1); exit 1; }; }
13098 ol_link_modules=yes
13099 WITH_MODULES_ENABLED=yes
13102 for i in $Backends; do
13103 eval "ol_tmp=\$ol_enable_$i"
13104 if test $ol_tmp = mod ; then
13105 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13106 echo "$as_me: WARNING: building static $i backend" >&2;}
13107 eval "ol_enable_$i=yes"
13110 for i in $Overlays; do
13111 eval "ol_tmp=\$ol_enable_$i"
13112 if test $ol_tmp = mod ; then
13113 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13114 echo "$as_me: WARNING: building static $i overlay" >&2;}
13115 eval "ol_enable_$i=yes"
13121 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13122 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13123 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13135 #include <__ASCII__/generate_error.h>
13139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13142 grep -v '^ *+' conftest.er1 >conftest.err
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } >/dev/null; then
13147 if test -s conftest.err; then
13148 ac_cpp_err=$ac_c_preproc_warn_flag
13149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13156 if test -z "$ac_cpp_err"; then
13157 ol_cv_cpp_ebcdic=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ol_cv_cpp_ebcdic=no
13164 rm -f conftest.err conftest.$ac_ext
13166 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13167 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13168 if test $ol_cv_cpp_ebcdic = yes ; then
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAVE_EBCDIC 1
13176 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13178 if test "${ol_cv_header_stdc+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 cat >conftest.$ac_ext <<_ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 #include <stdlib.h>
13188 #include <stdarg.h>
13189 #include <string.h>
13192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } >/dev/null; then
13200 if test -s conftest.err; then
13201 ac_cpp_err=$ac_c_preproc_warn_flag
13202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13209 if test -z "$ac_cpp_err"; then
13210 ol_cv_header_stdc=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 ol_cv_header_stdc=no
13217 rm -f conftest.err conftest.$ac_ext
13219 if test $ol_cv_header_stdc = yes; then
13220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13221 cat >conftest.$ac_ext <<_ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 #include <string.h>
13230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13231 $EGREP "memchr" >/dev/null 2>&1; then
13234 ol_cv_header_stdc=no
13240 if test $ol_cv_header_stdc = yes; then
13241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 #include <stdlib.h>
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252 $EGREP "free" >/dev/null 2>&1; then
13255 ol_cv_header_stdc=no
13261 if test $ol_cv_header_stdc = yes; then
13262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13263 if test "$cross_compiling" = yes; then
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13273 #ifndef HAVE_EBCDIC
13274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13277 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13278 || ('j' <= (c) && (c) <= 'r') \
13279 || ('s' <= (c) && (c) <= 'z'))
13280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13283 int main () { int i; for (i = 0; i < 256; i++)
13284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13288 rm -f conftest$ac_exeext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13290 (eval $ac_link) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13301 echo "$as_me: program exited with status $ac_status" >&5
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ( exit $ac_status )
13306 ol_cv_header_stdc=no
13308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13312 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13313 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13314 if test $ol_cv_header_stdc = yes; then
13315 cat >>confdefs.h <<\_ACEOF
13316 #define STDC_HEADERS 1
13320 ac_cv_header_stdc=disable
13323 if test $ol_cv_header_stdc != yes; then
13324 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13325 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13333 ac_header_dirent=no
13334 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13335 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13336 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13337 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 #include <sys/types.h>
13359 rm -f conftest.$ac_objext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361 (eval $ac_compile) 2>conftest.er1
13363 grep -v '^ *+' conftest.er1 >conftest.err
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag"
13369 || test ! -s conftest.err'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 eval "$as_ac_Header=yes"
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 eval "$as_ac_Header=no"
13388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13393 cat >>confdefs.h <<_ACEOF
13394 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13397 ac_header_dirent=$ac_hdr; break
13401 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13402 if test $ac_header_dirent = dirent.h; then
13403 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13404 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13405 if test "${ac_cv_search_opendir+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 ac_func_search_save_LIBS=$LIBS
13409 ac_cv_search_opendir=no
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13417 /* Override any gcc2 internal prototype to avoid an error. */
13421 /* We use char because int might match the return type of a gcc2
13422 builtin and then its argument prototype would still apply. */
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434 (eval $ac_link) 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag"
13442 || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest$ac_exeext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_cv_search_opendir="none required"
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13460 rm -f conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 if test "$ac_cv_search_opendir" = no; then
13463 for ac_lib in dir; do
13464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any gcc2 internal prototype to avoid an error. */
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest$ac_exeext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_search_opendir="-l$ac_lib"
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13516 rm -f conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_func_search_save_LIBS
13522 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13523 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13524 if test "$ac_cv_search_opendir" != no; then
13525 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13530 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13531 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13532 if test "${ac_cv_search_opendir+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 ac_func_search_save_LIBS=$LIBS
13536 ac_cv_search_opendir=no
13537 cat >conftest.$ac_ext <<_ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 /* Override any gcc2 internal prototype to avoid an error. */
13548 /* We use char because int might match the return type of a gcc2
13549 builtin and then its argument prototype would still apply. */
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561 (eval $ac_link) 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_c_werror_flag"
13569 || test ! -s conftest.err'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } &&
13575 { ac_try='test -s conftest$ac_exeext'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 ac_cv_search_opendir="none required"
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13587 rm -f conftest.err conftest.$ac_objext \
13588 conftest$ac_exeext conftest.$ac_ext
13589 if test "$ac_cv_search_opendir" = no; then
13590 for ac_lib in x; do
13591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any gcc2 internal prototype to avoid an error. */
13603 /* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616 (eval $ac_link) 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -z "$ac_c_werror_flag"
13624 || test ! -s conftest.err'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_search_opendir="-l$ac_lib"
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13643 rm -f conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_func_search_save_LIBS
13649 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13650 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13651 if test "$ac_cv_search_opendir" != no; then
13652 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13658 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13659 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13660 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13669 #include <sys/types.h>
13670 #include <sys/wait.h>
13671 #ifndef WEXITSTATUS
13672 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13675 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690 (eval $ac_compile) 2>conftest.er1
13692 grep -v '^ *+' conftest.er1 >conftest.err
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest.$ac_objext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_header_sys_wait_h=yes
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ac_cv_header_sys_wait_h=no
13717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13719 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13720 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13721 if test $ac_cv_header_sys_wait_h = yes; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_SYS_WAIT_H 1
13729 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13730 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13731 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 cat >conftest.$ac_ext <<_ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 #include <sys/types.h>
13741 #include <termios.h>
13747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13748 $EGREP "yes" >/dev/null 2>&1; then
13749 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13751 ac_cv_sys_tiocgwinsz_in_termios_h=no
13756 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13757 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13759 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13760 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13761 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13762 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 #include <sys/types.h>
13772 #include <sys/ioctl.h>
13778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779 $EGREP "yes" >/dev/null 2>&1; then
13780 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13782 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13787 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13788 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13790 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13792 cat >>confdefs.h <<\_ACEOF
13793 #define GWINSZ_IN_SYS_IOCTL 1
13891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13893 echo "$as_me:$LINENO: checking for $ac_header" >&5
13894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13901 # Is the header compilable?
13902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 $ac_includes_default
13911 #include <$ac_header>
13913 rm -f conftest.$ac_objext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915 (eval $ac_compile) 2>conftest.er1
13917 grep -v '^ *+' conftest.er1 >conftest.err
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -z "$ac_c_werror_flag"
13923 || test ! -s conftest.err'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest.$ac_objext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_header_compiler=yes
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ac_header_compiler=no
13942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13944 echo "${ECHO_T}$ac_header_compiler" >&6
13946 # Is the header present?
13947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13949 cat >conftest.$ac_ext <<_ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <$ac_header>
13957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13958 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13965 if test -s conftest.err; then
13966 ac_cpp_err=$ac_c_preproc_warn_flag
13967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13974 if test -z "$ac_cpp_err"; then
13975 ac_header_preproc=yes
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_header_preproc=no
13982 rm -f conftest.err conftest.$ac_ext
13983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 echo "${ECHO_T}$ac_header_preproc" >&6
13986 # So? What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13993 ac_header_preproc=yes
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14010 ## --------------------------------------------- ##
14011 ## Report this to <http://www.openldap.org/its/> ##
14012 ## --------------------------------------------- ##
14015 sed "s/^/$as_me: WARNING: /" >&2
14018 echo "$as_me:$LINENO: checking for $ac_header" >&5
14019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 eval "$as_ac_Header=\$ac_header_preproc"
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14030 cat >>confdefs.h <<_ACEOF
14031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14039 if test "$ac_cv_mingw32" = yes ; then
14042 for ac_header in winsock.h winsock2.h
14044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046 echo "$as_me:$LINENO: checking for $ac_header" >&5
14047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14054 # Is the header compilable?
14055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 $ac_includes_default
14064 #include <$ac_header>
14066 rm -f conftest.$ac_objext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068 (eval $ac_compile) 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
14075 { ac_try='test -z "$ac_c_werror_flag"
14076 || test ! -s conftest.err'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 ac_header_compiler=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ac_header_compiler=no
14095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14097 echo "${ECHO_T}$ac_header_compiler" >&6
14099 # Is the header present?
14100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #include <$ac_header>
14110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14111 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
14118 if test -s conftest.err; then
14119 ac_cpp_err=$ac_c_preproc_warn_flag
14120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14127 if test -z "$ac_cpp_err"; then
14128 ac_header_preproc=yes
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_header_preproc=no
14135 rm -f conftest.err conftest.$ac_ext
14136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14137 echo "${ECHO_T}$ac_header_preproc" >&6
14139 # So? What about this header?
14140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14146 ac_header_preproc=yes
14149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14163 ## --------------------------------------------- ##
14164 ## Report this to <http://www.openldap.org/its/> ##
14165 ## --------------------------------------------- ##
14168 sed "s/^/$as_me: WARNING: /" >&2
14171 echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 eval "$as_ac_Header=\$ac_header_preproc"
14178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14183 cat >>confdefs.h <<_ACEOF
14184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14194 for ac_header in resolv.h
14196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14197 echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 $ac_includes_default
14209 #include <netinet/in.h>
14212 #include <$ac_header>
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216 (eval $ac_compile) 2>conftest.er1
14218 grep -v '^ *+' conftest.er1 >conftest.err
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } &&
14223 { ac_try='test -z "$ac_c_werror_flag"
14224 || test ! -s conftest.err'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest.$ac_objext'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 eval "$as_ac_Header=yes"
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 eval "$as_ac_Header=no"
14243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14248 cat >>confdefs.h <<_ACEOF
14249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14258 for ac_header in netinet/tcp.h
14260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261 echo "$as_me:$LINENO: checking for $ac_header" >&5
14262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 cat >conftest.$ac_ext <<_ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 $ac_includes_default
14273 #include <netinet/in.h>
14276 #include <$ac_header>
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 eval "$as_ac_Header=yes"
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 eval "$as_ac_Header=no"
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14312 cat >>confdefs.h <<_ACEOF
14313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14322 for ac_header in sys/ucred.h
14324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14325 echo "$as_me:$LINENO: checking for $ac_header" >&5
14326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 cat >conftest.$ac_ext <<_ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 $ac_includes_default
14337 #ifdef HAVE_SYS_PARAM_H
14338 #include <sys/param.h>
14342 #include <$ac_header>
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>conftest.er1
14348 grep -v '^ *+' conftest.er1 >conftest.err
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag"
14354 || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 eval "$as_ac_Header=yes"
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 eval "$as_ac_Header=no"
14373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14378 cat >>confdefs.h <<_ACEOF
14379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14390 for ac_func in sigaction sigset
14392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 cat >conftest.$ac_ext <<_ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14406 #define $ac_func innocuous_$ac_func
14408 /* System header to define __stub macros and hopefully few prototypes,
14409 which can conflict with char $ac_func (); below.
14410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411 <limits.h> exists even on freestanding compilers. */
14414 # include <limits.h>
14416 # include <assert.h>
14421 /* Override any gcc2 internal prototype to avoid an error. */
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435 char (*f) () = $ac_func;
14444 return f != $ac_func;
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>conftest.er1
14453 grep -v '^ *+' conftest.er1 >conftest.err
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest$ac_exeext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 eval "$as_ac_var=yes"
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 eval "$as_ac_var=no"
14478 rm -f conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14483 if test `eval echo '${'$as_ac_var'}'` = yes; then
14484 cat >>confdefs.h <<_ACEOF
14485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14492 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14494 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14495 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14496 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 ac_check_lib_save_LIBS=$LIBS
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14508 /* Override any gcc2 internal prototype to avoid an error. */
14512 /* We use char because int might match the return type of a gcc2
14513 builtin and then its argument prototype would still apply. */
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest$ac_exeext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_cv_lib_V3_sigset=yes
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 ac_cv_lib_V3_sigset=no
14552 rm -f conftest.err conftest.$ac_objext \
14553 conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14557 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14558 if test $ac_cv_lib_V3_sigset = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_LIBV3 1
14569 if test "$ac_cv_header_winsock_h" = yes; then
14570 echo "$as_me:$LINENO: checking for winsock" >&5
14571 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14572 if test "${ol_cv_winsock+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 for curlib in ws2_32 wsock32; do
14577 LIBS="$LIBS -l$curlib"
14578 cat >conftest.$ac_ext <<_ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14584 #include <winsock.h>
14591 select(0,NULL,NULL,NULL,NULL);
14593 gethostname(NULL,0);
14599 rm -f conftest.$ac_objext conftest$ac_exeext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14601 (eval $ac_link) 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag"
14609 || test ! -s conftest.err'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest$ac_exeext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14628 rm -f conftest.err conftest.$ac_objext \
14629 conftest$ac_exeext conftest.$ac_ext
14631 if test $ol_cv_winsock = yes; then
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_WINSOCK 1
14637 ac_cv_func_socket=yes
14638 ac_cv_func_select=yes
14639 ac_cv_func_closesocket=yes
14640 ac_cv_func_gethostname=yes
14641 if test $curlib = ws2_32; then
14642 ol_cv_winsock=winsock2
14644 cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_WINSOCK2 1
14654 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14655 echo "${ECHO_T}$ol_cv_winsock" >&6
14659 echo "$as_me:$LINENO: checking for socket" >&5
14660 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14661 if test "${ac_cv_func_socket+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14672 #define socket innocuous_socket
14674 /* System header to define __stub macros and hopefully few prototypes,
14675 which can conflict with char socket (); below.
14676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14677 <limits.h> exists even on freestanding compilers. */
14680 # include <limits.h>
14682 # include <assert.h>
14687 /* Override any gcc2 internal prototype to avoid an error. */
14692 /* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */
14695 /* The GNU C library defines this for functions which it implements
14696 to always fail with ENOSYS. Some functions are actually named
14697 something starting with __ and the normal name is an alias. */
14698 #if defined (__stub_socket) || defined (__stub___socket)
14701 char (*f) () = socket;
14710 return f != socket;
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717 (eval $ac_link) 2>conftest.er1
14719 grep -v '^ *+' conftest.er1 >conftest.err
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -z "$ac_c_werror_flag"
14725 || test ! -s conftest.err'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } &&
14731 { ac_try='test -s conftest$ac_exeext'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_cv_func_socket=yes
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_cv_func_socket=no
14744 rm -f conftest.err conftest.$ac_objext \
14745 conftest$ac_exeext conftest.$ac_ext
14747 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14748 echo "${ECHO_T}$ac_cv_func_socket" >&6
14749 if test $ac_cv_func_socket = yes; then
14754 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14755 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14756 if test "${ac_cv_lib_socket_main+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lsocket $LIBS"
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14777 rm -f conftest.$ac_objext conftest$ac_exeext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779 (eval $ac_link) 2>conftest.er1
14781 grep -v '^ *+' conftest.er1 >conftest.err
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
14786 { ac_try='test -z "$ac_c_werror_flag"
14787 || test ! -s conftest.err'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; } &&
14793 { ac_try='test -s conftest$ac_exeext'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14799 ac_cv_lib_socket_main=yes
14801 echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14804 ac_cv_lib_socket_main=no
14806 rm -f conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 LIBS=$ac_check_lib_save_LIBS
14810 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14811 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14812 if test $ac_cv_lib_socket_main = yes; then
14813 cat >>confdefs.h <<_ACEOF
14814 #define HAVE_LIBSOCKET 1
14817 LIBS="-lsocket $LIBS"
14822 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14823 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14824 if test "${ac_cv_lib_net_main+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 ac_check_lib_save_LIBS=$LIBS
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest$ac_exeext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_cv_lib_net_main=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_cv_lib_net_main=no
14874 rm -f conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14878 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14879 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14880 if test $ac_cv_lib_net_main = yes; then
14881 cat >>confdefs.h <<_ACEOF
14882 #define HAVE_LIBNET 1
14890 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14891 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14892 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-lnsl_s $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915 (eval $ac_link) 2>conftest.er1
14917 grep -v '^ *+' conftest.er1 >conftest.err
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -z "$ac_c_werror_flag"
14923 || test ! -s conftest.err'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; } &&
14929 { ac_try='test -s conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_lib_nsl_s_main=yes
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_cv_lib_nsl_s_main=no
14942 rm -f conftest.err conftest.$ac_objext \
14943 conftest$ac_exeext conftest.$ac_ext
14944 LIBS=$ac_check_lib_save_LIBS
14946 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14947 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14948 if test $ac_cv_lib_nsl_s_main = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_LIBNSL_S 1
14953 LIBS="-lnsl_s $LIBS"
14958 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14959 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14960 if test "${ac_cv_lib_nsl_main+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 ac_check_lib_save_LIBS=$LIBS
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14983 (eval $ac_link) 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag"
14991 || test ! -s conftest.err'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_cv_lib_nsl_main=yes
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 ac_cv_lib_nsl_main=no
15010 rm -f conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_check_lib_save_LIBS
15014 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15015 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15016 if test $ac_cv_lib_nsl_main = yes; then
15017 cat >>confdefs.h <<_ACEOF
15018 #define HAVE_LIBNSL 1
15026 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15027 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15028 if test "${ac_cv_lib_inet_socket+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 ac_check_lib_save_LIBS=$LIBS
15032 LIBS="-linet $LIBS"
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15040 /* Override any gcc2 internal prototype to avoid an error. */
15044 /* We use char because int might match the return type of a gcc2
15045 builtin and then its argument prototype would still apply. */
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag"
15065 || test ! -s conftest.err'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest$ac_exeext'
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_cv_lib_inet_socket=yes
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_cv_lib_inet_socket=no
15084 rm -f conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_check_lib_save_LIBS
15088 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15089 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15090 if test $ac_cv_lib_inet_socket = yes; then
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_LIBINET 1
15095 LIBS="-linet $LIBS"
15100 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15101 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15102 if test "${ac_cv_lib_gen_main+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 ac_check_lib_save_LIBS=$LIBS
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_lib_gen_main=yes
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_cv_lib_gen_main=no
15152 rm -f conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15154 LIBS=$ac_check_lib_save_LIBS
15156 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15157 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15158 if test $ac_cv_lib_gen_main = yes; then
15159 cat >>confdefs.h <<_ACEOF
15160 #define HAVE_LIBGEN 1
15171 echo "$as_me:$LINENO: checking for select" >&5
15172 echo $ECHO_N "checking for select... $ECHO_C" >&6
15173 if test "${ac_cv_func_select+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 /* Define select to an innocuous variant, in case <limits.h> declares select.
15183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15184 #define select innocuous_select
15186 /* System header to define __stub macros and hopefully few prototypes,
15187 which can conflict with char select (); below.
15188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15189 <limits.h> exists even on freestanding compilers. */
15192 # include <limits.h>
15194 # include <assert.h>
15199 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15207 /* The GNU C library defines this for functions which it implements
15208 to always fail with ENOSYS. Some functions are actually named
15209 something starting with __ and the normal name is an alias. */
15210 #if defined (__stub_select) || defined (__stub___select)
15213 char (*f) () = select;
15222 return f != select;
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15229 (eval $ac_link) 2>conftest.er1
15231 grep -v '^ *+' conftest.er1 >conftest.err
15233 cat conftest.err >&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } &&
15236 { ac_try='test -z "$ac_c_werror_flag"
15237 || test ! -s conftest.err'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; } &&
15243 { ac_try='test -s conftest$ac_exeext'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_cv_func_select=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_func_select=no
15256 rm -f conftest.err conftest.$ac_objext \
15257 conftest$ac_exeext conftest.$ac_ext
15259 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15260 echo "${ECHO_T}$ac_cv_func_select" >&6
15261 if test $ac_cv_func_select = yes; then
15264 { { echo "$as_me:$LINENO: error: select() required." >&5
15265 echo "$as_me: error: select() required." >&2;}
15266 { (exit 1); exit 1; }; }
15270 if test "${ac_cv_header_winsock_h}" != yes; then
15273 for ac_header in sys/select.h sys/socket.h
15275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15277 echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15285 # Is the header compilable?
15286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15288 cat >conftest.$ac_ext <<_ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294 $ac_includes_default
15295 #include <$ac_header>
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>conftest.er1
15301 grep -v '^ *+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -z "$ac_c_werror_flag"
15307 || test ! -s conftest.err'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest.$ac_objext'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_header_compiler=yes
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_header_compiler=no
15326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15328 echo "${ECHO_T}$ac_header_compiler" >&6
15330 # Is the header present?
15331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 #include <$ac_header>
15341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15342 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
15349 if test -s conftest.err; then
15350 ac_cpp_err=$ac_c_preproc_warn_flag
15351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15358 if test -z "$ac_cpp_err"; then
15359 ac_header_preproc=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_header_preproc=no
15366 rm -f conftest.err conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15368 echo "${ECHO_T}$ac_header_preproc" >&6
15370 # So? What about this header?
15371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15377 ac_header_preproc=yes
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15394 ## --------------------------------------------- ##
15395 ## Report this to <http://www.openldap.org/its/> ##
15396 ## --------------------------------------------- ##
15399 sed "s/^/$as_me: WARNING: /" >&2
15402 echo "$as_me:$LINENO: checking for $ac_header" >&5
15403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 eval "$as_ac_Header=\$ac_header_preproc"
15409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15414 cat >>confdefs.h <<_ACEOF
15415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15422 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15423 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15424 if test "${ac_cv_func_select_args+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15428 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15429 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 $ac_includes_default
15437 #if HAVE_SYS_SELECT_H
15438 # include <sys/select.h>
15440 #if HAVE_SYS_SOCKET_H
15441 # include <sys/socket.h>
15447 extern int select ($ac_arg1,
15448 $ac_arg234, $ac_arg234, $ac_arg234,
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456 (eval $ac_compile) 2>conftest.er1
15458 grep -v '^ *+' conftest.er1 >conftest.err
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15486 # Provide a safe default value.
15487 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15490 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15491 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15492 ac_save_IFS=$IFS; IFS=','
15493 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15497 cat >>confdefs.h <<_ACEOF
15498 #define SELECT_TYPE_ARG1 $1
15502 cat >>confdefs.h <<_ACEOF
15503 #define SELECT_TYPE_ARG234 ($2)
15507 cat >>confdefs.h <<_ACEOF
15508 #define SELECT_TYPE_ARG5 ($3)
15517 for ac_func in poll
15519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15520 echo "$as_me:$LINENO: checking for $ac_func" >&5
15521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15522 if eval "test \"\${$as_ac_var+set}\" = set"; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15533 #define $ac_func innocuous_$ac_func
15535 /* System header to define __stub macros and hopefully few prototypes,
15536 which can conflict with char $ac_func (); below.
15537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15538 <limits.h> exists even on freestanding compilers. */
15541 # include <limits.h>
15543 # include <assert.h>
15548 /* Override any gcc2 internal prototype to avoid an error. */
15553 /* We use char because int might match the return type of a gcc2
15554 builtin and then its argument prototype would still apply. */
15556 /* The GNU C library defines this for functions which it implements
15557 to always fail with ENOSYS. Some functions are actually named
15558 something starting with __ and the normal name is an alias. */
15559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15562 char (*f) () = $ac_func;
15571 return f != $ac_func;
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 eval "$as_ac_var=yes"
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 eval "$as_ac_var=no"
15605 rm -f conftest.err conftest.$ac_objext \
15606 conftest$ac_exeext conftest.$ac_ext
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15610 if test `eval echo '${'$as_ac_var'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15618 if test $ac_cv_func_poll = yes; then
15621 for ac_header in poll.h sys/poll.h
15623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15625 echo "$as_me:$LINENO: checking for $ac_header" >&5
15626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15633 # Is the header compilable?
15634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 $ac_includes_default
15643 #include <$ac_header>
15645 rm -f conftest.$ac_objext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647 (eval $ac_compile) 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag"
15655 || test ! -s conftest.err'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest.$ac_objext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_header_compiler=yes
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_header_compiler=no
15674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15676 echo "${ECHO_T}$ac_header_compiler" >&6
15678 # Is the header present?
15679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15681 cat >conftest.$ac_ext <<_ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <$ac_header>
15689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15690 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
15697 if test -s conftest.err; then
15698 ac_cpp_err=$ac_c_preproc_warn_flag
15699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15706 if test -z "$ac_cpp_err"; then
15707 ac_header_preproc=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_header_preproc=no
15714 rm -f conftest.err conftest.$ac_ext
15715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15716 echo "${ECHO_T}$ac_header_preproc" >&6
15718 # So? What about this header?
15719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15725 ac_header_preproc=yes
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15742 ## --------------------------------------------- ##
15743 ## Report this to <http://www.openldap.org/its/> ##
15744 ## --------------------------------------------- ##
15747 sed "s/^/$as_me: WARNING: /" >&2
15750 echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 eval "$as_ac_Header=\$ac_header_preproc"
15757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15773 for ac_header in sys/epoll.h
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15777 echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15785 # Is the header compilable?
15786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 $ac_includes_default
15795 #include <$ac_header>
15797 rm -f conftest.$ac_objext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799 (eval $ac_compile) 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -z "$ac_c_werror_flag"
15807 || test ! -s conftest.err'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest.$ac_objext'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15819 ac_header_compiler=yes
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_header_compiler=no
15826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15828 echo "${ECHO_T}$ac_header_compiler" >&6
15830 # Is the header present?
15831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15833 cat >conftest.$ac_ext <<_ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 #include <$ac_header>
15841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15842 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
15849 if test -s conftest.err; then
15850 ac_cpp_err=$ac_c_preproc_warn_flag
15851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15858 if test -z "$ac_cpp_err"; then
15859 ac_header_preproc=yes
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_header_preproc=no
15866 rm -f conftest.err conftest.$ac_ext
15867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868 echo "${ECHO_T}$ac_header_preproc" >&6
15870 # So? What about this header?
15871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15877 ac_header_preproc=yes
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15894 ## --------------------------------------------- ##
15895 ## Report this to <http://www.openldap.org/its/> ##
15896 ## --------------------------------------------- ##
15899 sed "s/^/$as_me: WARNING: /" >&2
15902 echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 eval "$as_ac_Header=\$ac_header_preproc"
15909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15914 cat >>confdefs.h <<_ACEOF
15915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15922 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15923 echo "$as_me:$LINENO: checking for epoll system call" >&5
15924 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15925 if test "$cross_compiling" = yes; then
15926 echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 int main(int argc, char **argv)
15937 int epfd = epoll_create(256);
15938 exit (epfd == -1 ? 1 : 0);
15941 rm -f conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943 (eval $ac_link) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 echo "$as_me:$LINENO: result: yes" >&5
15953 echo "${ECHO_T}yes" >&6
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_EPOLL 1
15960 echo "$as_me: program exited with status $ac_status" >&5
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 ( exit $ac_status )
15965 echo "$as_me:$LINENO: result: no" >&5
15966 echo "${ECHO_T}no" >&6
15968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15973 for ac_header in sys/devpoll.h
15975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15977 echo "$as_me:$LINENO: checking for $ac_header" >&5
15978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15985 # Is the header compilable?
15986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15988 cat >conftest.$ac_ext <<_ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 $ac_includes_default
15995 #include <$ac_header>
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 ac_header_compiler=yes
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_header_compiler=no
16026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6
16030 # Is the header present?
16031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <$ac_header>
16041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16042 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
16049 if test -s conftest.err; then
16050 ac_cpp_err=$ac_c_preproc_warn_flag
16051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16058 if test -z "$ac_cpp_err"; then
16059 ac_header_preproc=yes
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ac_header_preproc=no
16066 rm -f conftest.err conftest.$ac_ext
16067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16068 echo "${ECHO_T}$ac_header_preproc" >&6
16070 # So? What about this header?
16071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16077 ac_header_preproc=yes
16080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16094 ## --------------------------------------------- ##
16095 ## Report this to <http://www.openldap.org/its/> ##
16096 ## --------------------------------------------- ##
16099 sed "s/^/$as_me: WARNING: /" >&2
16102 echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 eval "$as_ac_Header=\$ac_header_preproc"
16109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16114 cat >>confdefs.h <<_ACEOF
16115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16122 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16123 -a "${ac_cv_header_poll_h}" = yes ; \
16125 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16126 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16127 if test "$cross_compiling" = yes; then
16128 echo "$as_me:$LINENO: result: no" >&5
16129 echo "${ECHO_T}no" >&6
16131 cat >conftest.$ac_ext <<_ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 int main(int argc, char **argv)
16139 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16140 exit (devpollfd == -1 ? 1 : 0);
16143 rm -f conftest$ac_exeext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145 (eval $ac_link) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 echo "$as_me:$LINENO: result: yes" >&5
16155 echo "${ECHO_T}yes" >&6
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_DEVPOLL 1
16162 echo "$as_me: program exited with status $ac_status" >&5
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ( exit $ac_status )
16167 echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6
16170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16175 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16176 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16177 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16189 #include <sys/types.h>
16192 #include <stdlib.h>
16197 char *c = (char *) *sys_errlist
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag"
16212 || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ol_cv_dcl_sys_errlist=yes
16225 ol_cv_have_sys_errlist=yes
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ol_cv_dcl_sys_errlist=no
16232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16234 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16235 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16237 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16238 if test $ol_cv_dcl_sys_errlist = no ; then
16240 cat >>confdefs.h <<\_ACEOF
16241 #define DECL_SYS_ERRLIST 1
16245 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16246 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16247 if test "${ol_cv_have_sys_errlist+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16261 char *c = (char *) *sys_errlist
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268 (eval $ac_link) 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest$ac_exeext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ol_cv_have_sys_errlist=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ol_cv_have_sys_errlist=no
16295 rm -f conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16298 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16299 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16301 if test $ol_cv_have_sys_errlist = yes ; then
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE_SYS_ERRLIST 1
16310 for ac_func in strerror strerror_r
16312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16313 echo "$as_me:$LINENO: checking for $ac_func" >&5
16314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16315 if eval "test \"\${$as_ac_var+set}\" = set"; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16326 #define $ac_func innocuous_$ac_func
16328 /* System header to define __stub macros and hopefully few prototypes,
16329 which can conflict with char $ac_func (); below.
16330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16331 <limits.h> exists even on freestanding compilers. */
16334 # include <limits.h>
16336 # include <assert.h>
16341 /* Override any gcc2 internal prototype to avoid an error. */
16346 /* We use char because int might match the return type of a gcc2
16347 builtin and then its argument prototype would still apply. */
16349 /* The GNU C library defines this for functions which it implements
16350 to always fail with ENOSYS. Some functions are actually named
16351 something starting with __ and the normal name is an alias. */
16352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16355 char (*f) () = $ac_func;
16364 return f != $ac_func;
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371 (eval $ac_link) 2>conftest.er1
16373 grep -v '^ *+' conftest.er1 >conftest.err
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -z "$ac_c_werror_flag"
16379 || test ! -s conftest.err'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest$ac_exeext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 eval "$as_ac_var=yes"
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 eval "$as_ac_var=no"
16398 rm -f conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16403 if test `eval echo '${'$as_ac_var'}'` = yes; then
16404 cat >>confdefs.h <<_ACEOF
16405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16411 ol_cv_func_strerror_r=no
16412 if test "${ac_cv_func_strerror_r}" = yes ; then
16413 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16414 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16415 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 cat >conftest.$ac_ext <<_ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 #include <string.h>
16427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428 $EGREP "strerror_r" >/dev/null 2>&1; then
16429 ol_decl_strerror_r=yes
16431 ol_decl_strerror_r=no
16435 if test $ol_decl_strerror_r = yes ; then
16436 cat >conftest.$ac_ext <<_ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include <string.h>
16446 /* from autoconf 2.59 */
16448 char x = *strerror_r (0, buf, sizeof buf);
16449 char *p = strerror_r (0, buf, sizeof buf);
16455 rm -f conftest.$ac_objext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16457 (eval $ac_compile) 2>conftest.er1
16459 grep -v '^ *+' conftest.er1 >conftest.err
16461 cat conftest.err >&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } &&
16464 { ac_try='test -z "$ac_c_werror_flag"
16465 || test ! -s conftest.err'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try='test -s conftest.$ac_objext'
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 ol_cv_nonposix_strerror_r=yes
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482 ol_cv_nonposix_strerror_r=no
16484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16486 if test "$cross_compiling" = yes; then
16487 ol_cv_nonposix_strerror=no
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16499 strerror_r( 1, buf, sizeof buf );
16500 exit( buf[0] == 0 );
16504 rm -f conftest$ac_exeext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506 (eval $ac_link) 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 ol_cv_nonposix_strerror_r=yes
16517 echo "$as_me: program exited with status $ac_status" >&5
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ( exit $ac_status )
16522 ol_cv_nonposix_strerror=no
16524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16529 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16530 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16531 if test $ol_cv_nonposix_strerror_r = yes ; then
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_NONPOSIX_STRERROR_R 1
16539 elif test "${ac_cv_func_strerror}" = no ; then
16540 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16541 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16542 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 cat >conftest.$ac_ext <<_ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16554 #include <sys/types.h>
16557 #include <stdlib.h>
16562 char *c = (char *) *sys_errlist
16567 rm -f conftest.$ac_objext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16569 (eval $ac_compile) 2>conftest.er1
16571 grep -v '^ *+' conftest.er1 >conftest.err
16573 cat conftest.err >&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } &&
16576 { ac_try='test -z "$ac_c_werror_flag"
16577 || test ! -s conftest.err'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; } &&
16583 { ac_try='test -s conftest.$ac_objext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ol_cv_dcl_sys_errlist=yes
16590 ol_cv_have_sys_errlist=yes
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ol_cv_dcl_sys_errlist=no
16597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16599 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16600 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16602 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16603 if test $ol_cv_dcl_sys_errlist = no ; then
16605 cat >>confdefs.h <<\_ACEOF
16606 #define DECL_SYS_ERRLIST 1
16610 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16611 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16612 if test "${ol_cv_have_sys_errlist+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16626 char *c = (char *) *sys_errlist
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16633 (eval $ac_link) 2>conftest.er1
16635 grep -v '^ *+' conftest.er1 >conftest.err
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try='test -z "$ac_c_werror_flag"
16641 || test ! -s conftest.err'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ol_cv_have_sys_errlist=yes
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ol_cv_have_sys_errlist=no
16660 rm -f conftest.err conftest.$ac_objext \
16661 conftest$ac_exeext conftest.$ac_ext
16663 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16664 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16666 if test $ol_cv_have_sys_errlist = yes ; then
16668 cat >>confdefs.h <<\_ACEOF
16669 #define HAVE_SYS_ERRLIST 1
16678 for ac_header in regex.h
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 echo "$as_me:$LINENO: checking for $ac_header" >&5
16682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 $ac_includes_default
16693 #ifdef HAVE_SYS_TYPES_H
16694 #include <sys/types.h>
16698 #include <$ac_header>
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702 (eval $ac_compile) 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 eval "$as_ac_Header=yes"
16724 echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16727 eval "$as_ac_Header=no"
16729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16734 cat >>confdefs.h <<_ACEOF
16735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16743 if test "$ac_cv_header_regex_h" != yes ; then
16744 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16745 echo "$as_me: error: POSIX regex.h required." >&2;}
16746 { (exit 1); exit 1; }; }
16748 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16749 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16750 if test "${ac_cv_search_regfree+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 ac_func_search_save_LIBS=$LIBS
16754 ac_cv_search_regfree=no
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16762 /* Override any gcc2 internal prototype to avoid an error. */
16766 /* We use char because int might match the return type of a gcc2
16767 builtin and then its argument prototype would still apply. */
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779 (eval $ac_link) 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag"
16787 || test ! -s conftest.err'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest$ac_exeext'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_search_regfree="none required"
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16805 rm -f conftest.err conftest.$ac_objext \
16806 conftest$ac_exeext conftest.$ac_ext
16807 if test "$ac_cv_search_regfree" = no; then
16808 for ac_lib in regex gnuregex; do
16809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16817 /* Override any gcc2 internal prototype to avoid an error. */
16821 /* We use char because int might match the return type of a gcc2
16822 builtin and then its argument prototype would still apply. */
16832 rm -f conftest.$ac_objext conftest$ac_exeext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834 (eval $ac_link) 2>conftest.er1
16836 grep -v '^ *+' conftest.er1 >conftest.err
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag"
16842 || test ! -s conftest.err'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; } &&
16848 { ac_try='test -s conftest$ac_exeext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 ac_cv_search_regfree="-l$ac_lib"
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16861 rm -f conftest.err conftest.$ac_objext \
16862 conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_func_search_save_LIBS
16867 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16868 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16869 if test "$ac_cv_search_regfree" != no; then
16870 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16873 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16874 echo "$as_me: error: POSIX regex required." >&2;}
16875 { (exit 1); exit 1; }; }
16880 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16881 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16882 if test "${ol_cv_c_posix_regex+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 if test "$cross_compiling" = yes; then
16887 ol_cv_c_posix_regex=cross
16889 cat >conftest.$ac_ext <<_ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16896 #include <sys/types.h>
16898 static char *pattern, *string;
16906 if(regcomp(&re, pattern, 0)) {
16910 string = "ALL MATCH";
16912 rc = regexec(&re, string, 0, (void*)0, 0);
16919 rm -f conftest$ac_exeext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16921 (eval $ac_link) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ol_cv_c_posix_regex=yes
16932 echo "$as_me: program exited with status $ac_status" >&5
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ( exit $ac_status )
16937 ol_cv_c_posix_regex=no
16939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16942 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16943 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16945 if test "$ol_cv_c_posix_regex" = no ; then
16946 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16947 echo "$as_me: error: broken POSIX regex!" >&2;}
16948 { (exit 1); exit 1; }; }
16954 for ac_header in sys/uuid.h
16956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16966 # Is the header compilable?
16967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969 cat >conftest.$ac_ext <<_ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 $ac_includes_default
16976 #include <$ac_header>
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_header_compiler=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_header_compiler=no
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17009 echo "${ECHO_T}$ac_header_compiler" >&6
17011 # Is the header present?
17012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17014 cat >conftest.$ac_ext <<_ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 #include <$ac_header>
17022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17023 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
17030 if test -s conftest.err; then
17031 ac_cpp_err=$ac_c_preproc_warn_flag
17032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17039 if test -z "$ac_cpp_err"; then
17040 ac_header_preproc=yes
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_header_preproc=no
17047 rm -f conftest.err conftest.$ac_ext
17048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17049 echo "${ECHO_T}$ac_header_preproc" >&6
17051 # So? What about this header?
17052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17058 ac_header_preproc=yes
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17075 ## --------------------------------------------- ##
17076 ## Report this to <http://www.openldap.org/its/> ##
17077 ## --------------------------------------------- ##
17080 sed "s/^/$as_me: WARNING: /" >&2
17083 echo "$as_me:$LINENO: checking for $ac_header" >&5
17084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 eval "$as_ac_Header=\$ac_header_preproc"
17090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17095 cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17103 if test $ac_cv_header_sys_uuid_h = yes ; then
17105 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17106 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17107 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 ac_func_search_save_LIBS=$LIBS
17111 ac_cv_search_uuid_to_str=no
17112 cat >conftest.$ac_ext <<_ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17119 /* Override any gcc2 internal prototype to avoid an error. */
17123 /* We use char because int might match the return type of a gcc2
17124 builtin and then its argument prototype would still apply. */
17125 char uuid_to_str ();
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag"
17144 || test ! -s conftest.err'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest$ac_exeext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_search_uuid_to_str="none required"
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17162 rm -f conftest.err conftest.$ac_objext \
17163 conftest$ac_exeext conftest.$ac_ext
17164 if test "$ac_cv_search_uuid_to_str" = no; then
17165 for ac_lib in uuid; do
17166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17167 cat >conftest.$ac_ext <<_ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17174 /* Override any gcc2 internal prototype to avoid an error. */
17178 /* We use char because int might match the return type of a gcc2
17179 builtin and then its argument prototype would still apply. */
17180 char uuid_to_str ();
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>conftest.er1
17193 grep -v '^ *+' conftest.er1 >conftest.err
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag"
17199 || test ! -s conftest.err'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_cv_search_uuid_to_str="-l$ac_lib"
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17218 rm -f conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_func_search_save_LIBS
17224 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17225 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17226 if test "$ac_cv_search_uuid_to_str" != no; then
17227 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17235 if test have_uuid = yes ; then
17237 cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_UUID_TO_STR 1
17242 test "$ac_cv_search_uuid_to_str" = "none required" || \
17243 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17247 if test $have_uuid = no ; then
17249 for ac_header in uuid/uuid.h
17251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17253 echo "$as_me:$LINENO: checking for $ac_header" >&5
17254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17261 # Is the header compilable?
17262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 $ac_includes_default
17271 #include <$ac_header>
17273 rm -f conftest.$ac_objext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17275 (eval $ac_compile) 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -z "$ac_c_werror_flag"
17283 || test ! -s conftest.err'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; } &&
17289 { ac_try='test -s conftest.$ac_objext'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_header_compiler=yes
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ac_header_compiler=no
17302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17304 echo "${ECHO_T}$ac_header_compiler" >&6
17306 # Is the header present?
17307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 #include <$ac_header>
17317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17318 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
17325 if test -s conftest.err; then
17326 ac_cpp_err=$ac_c_preproc_warn_flag
17327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17334 if test -z "$ac_cpp_err"; then
17335 ac_header_preproc=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_header_preproc=no
17342 rm -f conftest.err conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6
17346 # So? What about this header?
17347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17353 ac_header_preproc=yes
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17370 ## --------------------------------------------- ##
17371 ## Report this to <http://www.openldap.org/its/> ##
17372 ## --------------------------------------------- ##
17375 sed "s/^/$as_me: WARNING: /" >&2
17378 echo "$as_me:$LINENO: checking for $ac_header" >&5
17379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 eval "$as_ac_Header=\$ac_header_preproc"
17385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398 if test $ac_cv_header_uuid_uuid_h = yes ; then
17400 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17401 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17402 if test "${ac_cv_search_uuid_generate+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 ac_func_search_save_LIBS=$LIBS
17406 ac_cv_search_uuid_generate=no
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 /* Override any gcc2 internal prototype to avoid an error. */
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420 char uuid_generate ();
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431 (eval $ac_link) 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_search_uuid_generate="none required"
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17457 rm -f conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17459 if test "$ac_cv_search_uuid_generate" = no; then
17460 for ac_lib in uuid; do
17461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17462 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17469 /* Override any gcc2 internal prototype to avoid an error. */
17473 /* We use char because int might match the return type of a gcc2
17474 builtin and then its argument prototype would still apply. */
17475 char uuid_generate ();
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486 (eval $ac_link) 2>conftest.er1
17488 grep -v '^ *+' conftest.er1 >conftest.err
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest$ac_exeext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_search_uuid_generate="-l$ac_lib"
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17513 rm -f conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext conftest.$ac_ext
17517 LIBS=$ac_func_search_save_LIBS
17519 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17520 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17521 if test "$ac_cv_search_uuid_generate" != no; then
17522 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17530 if test have_uuid = yes ; then
17532 cat >>confdefs.h <<\_ACEOF
17533 #define HAVE_UUID_GENERATE 1
17537 test "$ac_cv_search_uuid_generate" = "none required" || \
17538 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17543 if test $have_uuid = no ; then
17544 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17545 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17547 LIBS="$LIBS -lrpcrt4"
17548 cat >conftest.$ac_ext <<_ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17555 int __stdcall UuidCreate(void *);
17556 int __stdcall UuidToStringA(void *,void **);
17563 UuidToStringA(0,0);
17569 rm -f conftest.$ac_objext conftest$ac_exeext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>conftest.er1
17573 grep -v '^ *+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } &&
17578 { ac_try='test -z "$ac_c_werror_flag"
17579 || test ! -s conftest.err'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17598 rm -f conftest.err conftest.$ac_objext \
17599 conftest$ac_exeext conftest.$ac_ext
17600 if test $need_rpcrt = yes; then
17601 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17604 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17605 echo "${ECHO_T}$need_rpcrt" >&6
17608 ol_cv_lib_resolver=no
17609 if test $ol_cv_lib_resolver = no ; then
17610 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17611 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17612 if test "${ol_cv_resolver_none+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 LIBS="$ol_RESOLVER_LIB $LIBS"
17620 cat >conftest.$ac_ext <<_ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17627 #ifdef HAVE_SYS_TYPES_H
17628 # include <sys/types.h>
17630 #include <netinet/in.h>
17631 #ifdef HAVE_ARPA_NAMESER_H
17632 # include <arpa/nameser.h>
17634 #ifdef HAVE_RESOLV_H
17635 # include <resolv.h>
17643 char *request = NULL;
17644 unsigned char reply[64*1024];
17645 unsigned char host[64*1024];
17649 /* Bind 8/9 interface */
17650 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17652 /* Bind 4 interface */
17656 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17660 /* Bind 8/9 interface */
17662 #elif defined(HFIXEDSZ)
17663 /* Bind 4 interface w/ HFIXEDSZ */
17666 /* Bind 4 interface w/o HFIXEDSZ */
17667 p += sizeof(HEADER);
17669 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17677 (eval $ac_link) 2>conftest.er1
17679 grep -v '^ *+' conftest.er1 >conftest.err
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest$ac_exeext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ol_cv_resolver_none=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 ol_cv_resolver_none=no
17704 rm -f conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17710 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17711 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17713 if test $ol_cv_resolver_none = yes ; then
17714 ol_cv_lib_resolver=yes
17718 if test $ol_cv_lib_resolver = no ; then
17719 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17720 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17721 if test "${ol_cv_resolver_resolv+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 ol_RESOLVER_LIB=-lresolv
17727 LIBS="$ol_RESOLVER_LIB $LIBS"
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17736 #ifdef HAVE_SYS_TYPES_H
17737 # include <sys/types.h>
17739 #include <netinet/in.h>
17740 #ifdef HAVE_ARPA_NAMESER_H
17741 # include <arpa/nameser.h>
17743 #ifdef HAVE_RESOLV_H
17744 # include <resolv.h>
17752 char *request = NULL;
17753 unsigned char reply[64*1024];
17754 unsigned char host[64*1024];
17758 /* Bind 8/9 interface */
17759 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17761 /* Bind 4 interface */
17765 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17769 /* Bind 8/9 interface */
17771 #elif defined(HFIXEDSZ)
17772 /* Bind 4 interface w/ HFIXEDSZ */
17775 /* Bind 4 interface w/o HFIXEDSZ */
17776 p += sizeof(HEADER);
17778 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ol_cv_resolver_resolv=yes
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ol_cv_resolver_resolv=no
17813 rm -f conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17819 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17820 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17822 if test $ol_cv_resolver_resolv = yes ; then
17823 ol_cv_lib_resolver=-lresolv
17827 if test $ol_cv_lib_resolver = no ; then
17828 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17829 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17830 if test "${ol_cv_resolver_bind+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 ol_RESOLVER_LIB=-lbind
17836 LIBS="$ol_RESOLVER_LIB $LIBS"
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 #ifdef HAVE_SYS_TYPES_H
17846 # include <sys/types.h>
17848 #include <netinet/in.h>
17849 #ifdef HAVE_ARPA_NAMESER_H
17850 # include <arpa/nameser.h>
17852 #ifdef HAVE_RESOLV_H
17853 # include <resolv.h>
17861 char *request = NULL;
17862 unsigned char reply[64*1024];
17863 unsigned char host[64*1024];
17867 /* Bind 8/9 interface */
17868 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17870 /* Bind 4 interface */
17874 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17878 /* Bind 8/9 interface */
17880 #elif defined(HFIXEDSZ)
17881 /* Bind 4 interface w/ HFIXEDSZ */
17884 /* Bind 4 interface w/o HFIXEDSZ */
17885 p += sizeof(HEADER);
17887 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17895 (eval $ac_link) 2>conftest.er1
17897 grep -v '^ *+' conftest.er1 >conftest.err
17899 cat conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
17902 { ac_try='test -z "$ac_c_werror_flag"
17903 || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest$ac_exeext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ol_cv_resolver_bind=yes
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ol_cv_resolver_bind=no
17922 rm -f conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
17928 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17929 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17931 if test $ol_cv_resolver_bind = yes ; then
17932 ol_cv_lib_resolver=-lbind
17939 if test "$ol_cv_lib_resolver" != no ; then
17941 cat >>confdefs.h <<\_ACEOF
17942 #define HAVE_RES_QUERY 1
17946 if test "$ol_enable_dnssrv" != no ; then
17950 if test "$ol_cv_lib_resolver" != yes ; then
17951 LIBS="$ol_cv_lib_resolver $LIBS"
17955 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17956 if test "$ol_link_dnssrv" = no ; then
17957 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17958 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17959 { (exit 1); exit 1; }; }
17962 ol_enable_dnssrv=no
17966 for ac_func in hstrerror
17968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17969 echo "$as_me:$LINENO: checking for $ac_func" >&5
17970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17971 if eval "test \"\${$as_ac_var+set}\" = set"; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17974 cat >conftest.$ac_ext <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17982 #define $ac_func innocuous_$ac_func
17984 /* System header to define __stub macros and hopefully few prototypes,
17985 which can conflict with char $ac_func (); below.
17986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17987 <limits.h> exists even on freestanding compilers. */
17990 # include <limits.h>
17992 # include <assert.h>
17997 /* Override any gcc2 internal prototype to avoid an error. */
18002 /* We use char because int might match the return type of a gcc2
18003 builtin and then its argument prototype would still apply. */
18005 /* The GNU C library defines this for functions which it implements
18006 to always fail with ENOSYS. Some functions are actually named
18007 something starting with __ and the normal name is an alias. */
18008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18011 char (*f) () = $ac_func;
18020 return f != $ac_func;
18025 rm -f conftest.$ac_objext conftest$ac_exeext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>conftest.er1
18029 grep -v '^ *+' conftest.er1 >conftest.err
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag"
18035 || test ! -s conftest.err'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try='test -s conftest$ac_exeext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 eval "$as_ac_var=yes"
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 eval "$as_ac_var=no"
18054 rm -f conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18059 if test `eval echo '${'$as_ac_var'}'` = yes; then
18060 cat >>confdefs.h <<_ACEOF
18061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18072 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18075 echo "$as_me:$LINENO: checking for $ac_func" >&5
18076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18077 if eval "test \"\${$as_ac_var+set}\" = set"; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18088 #define $ac_func innocuous_$ac_func
18090 /* System header to define __stub macros and hopefully few prototypes,
18091 which can conflict with char $ac_func (); below.
18092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18093 <limits.h> exists even on freestanding compilers. */
18096 # include <limits.h>
18098 # include <assert.h>
18103 /* Override any gcc2 internal prototype to avoid an error. */
18108 /* We use char because int might match the return type of a gcc2
18109 builtin and then its argument prototype would still apply. */
18111 /* The GNU C library defines this for functions which it implements
18112 to always fail with ENOSYS. Some functions are actually named
18113 something starting with __ and the normal name is an alias. */
18114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18117 char (*f) () = $ac_func;
18126 return f != $ac_func;
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133 (eval $ac_link) 2>conftest.er1
18135 grep -v '^ *+' conftest.er1 >conftest.err
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
18140 { ac_try='test -z "$ac_c_werror_flag"
18141 || test ! -s conftest.err'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; } &&
18147 { ac_try='test -s conftest$ac_exeext'
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; }; then
18153 eval "$as_ac_var=yes"
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18158 eval "$as_ac_var=no"
18160 rm -f conftest.err conftest.$ac_objext \
18161 conftest$ac_exeext conftest.$ac_ext
18163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18165 if test `eval echo '${'$as_ac_var'}'` = yes; then
18166 cat >>confdefs.h <<_ACEOF
18167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18175 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18176 if test $ol_enable_ipv6 = yes ; then
18177 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18178 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18179 { (exit 1); exit 1; }; }
18181 elif test $ol_enable_ipv6 != no ; then
18182 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18183 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18184 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18195 # include <netinet/in.h>
18196 # ifdef INET6_ADDRSTRLEN
18197 __has_inet6_addrstrlen__;
18201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18202 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18203 ol_cv_inet6_addrstrlen=yes
18205 ol_cv_inet6_addrstrlen=no
18210 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18211 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18214 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18215 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18216 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18220 cat >conftest.$ac_ext <<_ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18227 #include <sys/types.h>
18228 #include <sys/socket.h>
18234 struct sockaddr_storage ss;
18240 rm -f conftest.$ac_objext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18242 (eval $ac_compile) 2>conftest.er1
18244 grep -v '^ *+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
18249 { ac_try='test -z "$ac_c_werror_flag"
18250 || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest.$ac_objext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 ol_cv_struct_sockaddr_storage=yes
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ol_cv_struct_sockaddr_storage=no
18269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18271 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18272 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18274 if test $ol_cv_inet6_addrstrlen = yes &&
18275 test $ol_cv_struct_sockaddr_storage = yes ; then
18277 elif test $ol_enable_ipv6 = yes &&
18278 test $ol_cv_inet6_addrstrlen = no ; then
18279 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18280 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18281 { (exit 1); exit 1; }; }
18282 elif test $ol_enable_ipv6 = yes &&
18283 test $ol_cv_struct_sockaddr_storage = no ; then
18284 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18285 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18286 { (exit 1); exit 1; }; }
18290 if test $ol_enable_local != no ; then
18292 for ac_header in sys/un.h
18294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18296 echo "$as_me:$LINENO: checking for $ac_header" >&5
18297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18304 # Is the header compilable?
18305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18307 cat >conftest.$ac_ext <<_ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18313 $ac_includes_default
18314 #include <$ac_header>
18316 rm -f conftest.$ac_objext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18318 (eval $ac_compile) 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag"
18326 || test ! -s conftest.err'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; } &&
18332 { ac_try='test -s conftest.$ac_objext'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 ac_header_compiler=yes
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_header_compiler=no
18345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18347 echo "${ECHO_T}$ac_header_compiler" >&6
18349 # Is the header present?
18350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18352 cat >conftest.$ac_ext <<_ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 #include <$ac_header>
18360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18361 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
18368 if test -s conftest.err; then
18369 ac_cpp_err=$ac_c_preproc_warn_flag
18370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18377 if test -z "$ac_cpp_err"; then
18378 ac_header_preproc=yes
18380 echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 ac_header_preproc=no
18385 rm -f conftest.err conftest.$ac_ext
18386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18387 echo "${ECHO_T}$ac_header_preproc" >&6
18389 # So? What about this header?
18390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18396 ac_header_preproc=yes
18399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18413 ## --------------------------------------------- ##
18414 ## Report this to <http://www.openldap.org/its/> ##
18415 ## --------------------------------------------- ##
18418 sed "s/^/$as_me: WARNING: /" >&2
18421 echo "$as_me:$LINENO: checking for $ac_header" >&5
18422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 eval "$as_ac_Header=\$ac_header_preproc"
18428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18433 cat >>confdefs.h <<_ACEOF
18434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18442 if test $ol_enable_local = auto ; then
18443 ol_enable_local=$ac_cv_header_sys_un_h
18444 elif test $ac_cv_header_sys_un_h = no ; then
18445 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18446 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18447 { (exit 1); exit 1; }; }
18452 if test $ol_with_tls = yes ; then
18457 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18459 for ac_header in openssl/ssl.h
18461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18463 echo "$as_me:$LINENO: checking for $ac_header" >&5
18464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18471 # Is the header compilable?
18472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 $ac_includes_default
18481 #include <$ac_header>
18483 rm -f conftest.$ac_objext
18484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18485 (eval $ac_compile) 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_c_werror_flag"
18493 || test ! -s conftest.err'
18494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; } &&
18499 { ac_try='test -s conftest.$ac_objext'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_header_compiler=yes
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 ac_header_compiler=no
18512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18514 echo "${ECHO_T}$ac_header_compiler" >&6
18516 # Is the header present?
18517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18519 cat >conftest.$ac_ext <<_ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 #include <$ac_header>
18527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18528 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
18535 if test -s conftest.err; then
18536 ac_cpp_err=$ac_c_preproc_warn_flag
18537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18544 if test -z "$ac_cpp_err"; then
18545 ac_header_preproc=yes
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_header_preproc=no
18552 rm -f conftest.err conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18554 echo "${ECHO_T}$ac_header_preproc" >&6
18556 # So? What about this header?
18557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18563 ac_header_preproc=yes
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18580 ## --------------------------------------------- ##
18581 ## Report this to <http://www.openldap.org/its/> ##
18582 ## --------------------------------------------- ##
18585 sed "s/^/$as_me: WARNING: /" >&2
18588 echo "$as_me:$LINENO: checking for $ac_header" >&5
18589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 eval "$as_ac_Header=\$ac_header_preproc"
18595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18600 cat >>confdefs.h <<_ACEOF
18601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18609 if test $ac_cv_header_openssl_ssl_h = yes ; then
18610 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18611 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18612 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 ac_check_lib_save_LIBS=$LIBS
18616 LIBS="-lssl -lcrypto $LIBS"
18617 cat >conftest.$ac_ext <<_ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18624 /* Override any gcc2 internal prototype to avoid an error. */
18628 /* We use char because int might match the return type of a gcc2
18629 builtin and then its argument prototype would still apply. */
18630 char SSL_library_init ();
18634 SSL_library_init ();
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18641 (eval $ac_link) 2>conftest.er1
18643 grep -v '^ *+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_c_werror_flag"
18649 || test ! -s conftest.err'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try='test -s conftest$ac_exeext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 ac_cv_lib_ssl_SSL_library_init=yes
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18666 ac_cv_lib_ssl_SSL_library_init=no
18668 rm -f conftest.err conftest.$ac_objext \
18669 conftest$ac_exeext conftest.$ac_ext
18670 LIBS=$ac_check_lib_save_LIBS
18672 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18673 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18674 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18682 if test $have_openssl = no ; then
18683 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18684 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18685 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 ac_check_lib_save_LIBS=$LIBS
18689 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18690 cat >conftest.$ac_ext <<_ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18697 /* Override any gcc2 internal prototype to avoid an error. */
18701 /* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18703 char ssl3_accept ();
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag"
18722 || test ! -s conftest.err'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest$ac_exeext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_cv_lib_ssl_ssl3_accept=yes
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ac_cv_lib_ssl_ssl3_accept=no
18741 rm -f conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18745 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18746 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18747 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18756 if test $have_openssl = yes ; then
18757 ol_with_tls=openssl
18761 cat >>confdefs.h <<\_ACEOF
18762 #define HAVE_OPENSSL 1
18766 if test $need_rsaref = yes; then
18768 cat >>confdefs.h <<\_ACEOF
18769 #define HAVE_RSAREF 1
18773 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18775 TLS_LIBS="-lssl -lcrypto"
18778 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18779 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18780 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18791 #ifdef HAVE_OPENSSL_SSL_H
18792 #include <openssl/ssl.h>
18795 /* Require 0.9.7d+ */
18796 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18797 char *__ssl_compat = "0.9.7d";
18801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18802 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18803 ol_cv_ssl_crl_compat=yes
18805 ol_cv_ssl_crl_compat=no
18810 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18811 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18813 if test $ol_cv_ssl_crl_compat = yes ; then
18815 cat >>confdefs.h <<\_ACEOF
18816 #define HAVE_OPENSSL_CRL 1
18825 if test $ol_link_tls = yes ; then
18827 cat >>confdefs.h <<\_ACEOF
18832 elif test $ol_with_tls = auto ; then
18833 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
18834 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
18835 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18836 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18837 elif test $ol_with_tls != no ; then
18838 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
18839 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
18840 { (exit 1); exit 1; }; }
18842 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18843 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18846 if test $ol_enable_lmpasswd != no; then
18847 if test $ol_link_tls != yes ; then
18848 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
18849 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
18850 { (exit 1); exit 1; }; }
18854 cat >>confdefs.h <<\_ACEOF
18855 #define SLAPD_LMHASH 1
18862 case $ol_with_threads in auto | yes | nt)
18865 echo "$as_me:$LINENO: checking for _beginthread" >&5
18866 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
18867 if test "${ac_cv_func__beginthread+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
18877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18878 #define _beginthread innocuous__beginthread
18880 /* System header to define __stub macros and hopefully few prototypes,
18881 which can conflict with char _beginthread (); below.
18882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 <limits.h> exists even on freestanding compilers. */
18886 # include <limits.h>
18888 # include <assert.h>
18891 #undef _beginthread
18893 /* Override any gcc2 internal prototype to avoid an error. */
18898 /* We use char because int might match the return type of a gcc2
18899 builtin and then its argument prototype would still apply. */
18900 char _beginthread ();
18901 /* The GNU C library defines this for functions which it implements
18902 to always fail with ENOSYS. Some functions are actually named
18903 something starting with __ and the normal name is an alias. */
18904 #if defined (__stub__beginthread) || defined (__stub____beginthread)
18907 char (*f) () = _beginthread;
18916 return f != _beginthread;
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18923 (eval $ac_link) 2>conftest.er1
18925 grep -v '^ *+' conftest.er1 >conftest.err
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest$ac_exeext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
18943 ac_cv_func__beginthread=yes
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 ac_cv_func__beginthread=no
18950 rm -f conftest.err conftest.$ac_objext \
18951 conftest$ac_exeext conftest.$ac_ext
18953 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
18954 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
18957 if test $ac_cv_func__beginthread = yes ; then
18959 cat >>confdefs.h <<\_ACEOF
18960 #define HAVE_NT_THREADS 1
18963 ol_cv_nt_threads=yes
18967 if test "$ol_cv_nt_threads" = yes ; then
18969 ol_with_threads=found
18970 ol_with_yielding_select=yes
18973 cat >>confdefs.h <<\_ACEOF
18974 #define HAVE_NT_SERVICE_MANAGER 1
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_NT_EVENT_LOG 1
18984 if test $ol_with_threads = nt ; then
18985 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
18986 echo "$as_me: error: could not locate NT Threads" >&2;}
18987 { (exit 1); exit 1; }; }
18992 case $ol_with_threads in auto | yes | posix)
18995 for ac_header in pthread.h
18997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19007 # Is the header compilable?
19008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 $ac_includes_default
19017 #include <$ac_header>
19019 rm -f conftest.$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_header_compiler=yes
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_header_compiler=no
19048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19050 echo "${ECHO_T}$ac_header_compiler" >&6
19052 # Is the header present?
19053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19055 cat >conftest.$ac_ext <<_ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19061 #include <$ac_header>
19063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19066 grep -v '^ *+' conftest.er1 >conftest.err
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } >/dev/null; then
19071 if test -s conftest.err; then
19072 ac_cpp_err=$ac_c_preproc_warn_flag
19073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19080 if test -z "$ac_cpp_err"; then
19081 ac_header_preproc=yes
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 ac_header_preproc=no
19088 rm -f conftest.err conftest.$ac_ext
19089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19090 echo "${ECHO_T}$ac_header_preproc" >&6
19092 # So? What about this header?
19093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19099 ac_header_preproc=yes
19102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19116 ## --------------------------------------------- ##
19117 ## Report this to <http://www.openldap.org/its/> ##
19118 ## --------------------------------------------- ##
19121 sed "s/^/$as_me: WARNING: /" >&2
19124 echo "$as_me:$LINENO: checking for $ac_header" >&5
19125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 eval "$as_ac_Header=\$ac_header_preproc"
19131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19136 cat >>confdefs.h <<_ACEOF
19137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19145 if test $ac_cv_header_pthread_h = yes ; then
19146 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19147 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19148 if test "${ol_cv_pthread_version+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 cat >conftest.$ac_ext <<_ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19159 # include <pthread.h>
19165 int i = PTHREAD_CREATE_JOINABLE;
19171 rm -f conftest.$ac_objext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19173 (eval $ac_compile) 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try='test -z "$ac_c_werror_flag"
19181 || test ! -s conftest.err'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19194 cat >conftest.$ac_ext <<_ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 #include <pthread.h>
19203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19204 $EGREP "pthread_detach" >/dev/null 2>&1; then
19205 ol_cv_pthread_version=10
19207 ol_cv_pthread_version=8
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 # include <pthread.h>
19224 # ifdef PTHREAD_CREATE_UNDETACHED
19229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19230 $EGREP "draft7" >/dev/null 2>&1; then
19231 ol_cv_pthread_version=7
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 #include <pthread.h>
19243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19244 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19245 ol_cv_pthread_version=6
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19255 # include <pthread.h>
19256 #ifdef PTHREAD_MUTEX_INITIALIZER
19261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19262 $EGREP "draft5" >/dev/null 2>&1; then
19263 ol_cv_pthread_version=5
19265 ol_cv_pthread_version=4
19276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19279 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19280 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19283 if test $ol_cv_pthread_version != 0 ; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_PTHREADS $ol_cv_pthread_version
19290 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19291 echo "$as_me: error: unknown pthread version" >&2;}
19292 { (exit 1); exit 1; }; }
19295 # consider threads found
19296 ol_with_threads=found
19299 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19300 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19301 if test "${ol_cv_header_linux_threads+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310 #include <pthread.h>
19312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19313 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19314 ol_cv_header_linux_threads=yes
19316 ol_cv_header_linux_threads=no
19322 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19323 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19324 if test $ol_cv_header_linux_threads = yes; then
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE_LINUX_THREADS 1
19333 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19334 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19335 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 #include <pthread.h>
19345 #ifdef _POSIX_THREAD_IS_GNU_PTH
19350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19351 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19352 ol_cv_header_gnu_pth_pthread_h=yes
19354 ol_cv_header_gnu_pth_pthread_h=no
19360 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19361 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19364 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19366 for ac_header in sched.h
19368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19370 echo "$as_me:$LINENO: checking for $ac_header" >&5
19371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19378 # Is the header compilable?
19379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 $ac_includes_default
19388 #include <$ac_header>
19390 rm -f conftest.$ac_objext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392 (eval $ac_compile) 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_header_compiler=yes
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ac_header_compiler=no
19419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19421 echo "${ECHO_T}$ac_header_compiler" >&6
19423 # Is the header present?
19424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 #include <$ac_header>
19434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } >/dev/null; then
19442 if test -s conftest.err; then
19443 ac_cpp_err=$ac_c_preproc_warn_flag
19444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19451 if test -z "$ac_cpp_err"; then
19452 ac_header_preproc=yes
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_header_preproc=no
19459 rm -f conftest.err conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6
19463 # So? What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470 ac_header_preproc=yes
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19487 ## --------------------------------------------- ##
19488 ## Report this to <http://www.openldap.org/its/> ##
19489 ## --------------------------------------------- ##
19492 sed "s/^/$as_me: WARNING: /" >&2
19495 echo "$as_me:$LINENO: checking for $ac_header" >&5
19496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 eval "$as_ac_Header=\$ac_header_preproc"
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19518 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19519 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19520 if test "${ol_cv_pthread_create+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 if test "$cross_compiling" = yes; then
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 /* pthread test headers */
19533 #include <pthread.h>
19534 #if HAVE_PTHREADS < 7
19538 #define NULL (void*)0
19541 static void *task(p)
19544 return (void *) (p == NULL);
19551 /* pthread test function */
19552 #ifndef PTHREAD_CREATE_DETACHED
19553 #define PTHREAD_CREATE_DETACHED 1
19557 int detach = PTHREAD_CREATE_DETACHED;
19559 #if HAVE_PTHREADS > 4
19560 /* Final pthreads */
19561 pthread_attr_t attr;
19563 status = pthread_attr_init(&attr);
19564 if( status ) return status;
19566 #if HAVE_PTHREADS < 7
19567 status = pthread_attr_setdetachstate(&attr, &detach);
19568 if( status < 0 ) status = errno;
19570 status = pthread_attr_setdetachstate(&attr, detach);
19572 if( status ) return status;
19573 status = pthread_create( &t, &attr, task, NULL );
19574 #if HAVE_PTHREADS < 7
19575 if( status < 0 ) status = errno;
19577 if( status ) return status;
19579 /* Draft 4 pthreads */
19580 status = pthread_create( &t, pthread_attr_default, task, NULL );
19581 if( status ) return errno;
19583 /* give thread a chance to complete */
19584 /* it should remain joinable and hence detachable */
19587 status = pthread_detach( &t );
19588 if( status ) return errno;
19591 #ifdef HAVE_LINUX_THREADS
19592 pthread_kill_other_threads_np();
19601 rm -f conftest.$ac_objext conftest$ac_exeext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19603 (eval $ac_link) 2>conftest.er1
19605 grep -v '^ *+' conftest.er1 >conftest.err
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag"
19611 || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest$ac_exeext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 ol_cv_pthread_create=yes
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 ol_cv_pthread_create=no
19630 rm -f conftest.err conftest.$ac_objext \
19631 conftest$ac_exeext conftest.$ac_ext
19633 cat >conftest.$ac_ext <<_ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19640 /* pthread test headers */
19641 #include <pthread.h>
19642 #if HAVE_PTHREADS < 7
19646 #define NULL (void*)0
19649 static void *task(p)
19652 return (void *) (p == NULL);
19656 int main(argc, argv)
19661 /* pthread test function */
19662 #ifndef PTHREAD_CREATE_DETACHED
19663 #define PTHREAD_CREATE_DETACHED 1
19667 int detach = PTHREAD_CREATE_DETACHED;
19669 #if HAVE_PTHREADS > 4
19670 /* Final pthreads */
19671 pthread_attr_t attr;
19673 status = pthread_attr_init(&attr);
19674 if( status ) return status;
19676 #if HAVE_PTHREADS < 7
19677 status = pthread_attr_setdetachstate(&attr, &detach);
19678 if( status < 0 ) status = errno;
19680 status = pthread_attr_setdetachstate(&attr, detach);
19682 if( status ) return status;
19683 status = pthread_create( &t, &attr, task, NULL );
19684 #if HAVE_PTHREADS < 7
19685 if( status < 0 ) status = errno;
19687 if( status ) return status;
19689 /* Draft 4 pthreads */
19690 status = pthread_create( &t, pthread_attr_default, task, NULL );
19691 if( status ) return errno;
19693 /* give thread a chance to complete */
19694 /* it should remain joinable and hence detachable */
19697 status = pthread_detach( &t );
19698 if( status ) return errno;
19701 #ifdef HAVE_LINUX_THREADS
19702 pthread_kill_other_threads_np();
19710 rm -f conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; }; then
19721 ol_cv_pthread_create=yes
19723 echo "$as_me: program exited with status $ac_status" >&5
19724 echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19727 ( exit $ac_status )
19728 ol_cv_pthread_create=no
19730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19733 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19734 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19736 if test $ol_cv_pthread_create != no ; then
19737 ol_link_threads=posix
19738 ol_link_pthreads=""
19741 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19742 if test "$ol_link_threads" = no ; then
19744 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19745 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19746 if test "${ol_cv_pthread_kthread+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 LIBS="-kthread $LIBS"
19754 if test "$cross_compiling" = yes; then
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19762 /* pthread test headers */
19763 #include <pthread.h>
19764 #if HAVE_PTHREADS < 7
19768 #define NULL (void*)0
19771 static void *task(p)
19774 return (void *) (p == NULL);
19781 /* pthread test function */
19782 #ifndef PTHREAD_CREATE_DETACHED
19783 #define PTHREAD_CREATE_DETACHED 1
19787 int detach = PTHREAD_CREATE_DETACHED;
19789 #if HAVE_PTHREADS > 4
19790 /* Final pthreads */
19791 pthread_attr_t attr;
19793 status = pthread_attr_init(&attr);
19794 if( status ) return status;
19796 #if HAVE_PTHREADS < 7
19797 status = pthread_attr_setdetachstate(&attr, &detach);
19798 if( status < 0 ) status = errno;
19800 status = pthread_attr_setdetachstate(&attr, detach);
19802 if( status ) return status;
19803 status = pthread_create( &t, &attr, task, NULL );
19804 #if HAVE_PTHREADS < 7
19805 if( status < 0 ) status = errno;
19807 if( status ) return status;
19809 /* Draft 4 pthreads */
19810 status = pthread_create( &t, pthread_attr_default, task, NULL );
19811 if( status ) return errno;
19813 /* give thread a chance to complete */
19814 /* it should remain joinable and hence detachable */
19817 status = pthread_detach( &t );
19818 if( status ) return errno;
19821 #ifdef HAVE_LINUX_THREADS
19822 pthread_kill_other_threads_np();
19831 rm -f conftest.$ac_objext conftest$ac_exeext
19832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19833 (eval $ac_link) 2>conftest.er1
19835 grep -v '^ *+' conftest.er1 >conftest.err
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
19840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest$ac_exeext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ol_cv_pthread_kthread=yes
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 ol_cv_pthread_kthread=no
19860 rm -f conftest.err conftest.$ac_objext \
19861 conftest$ac_exeext conftest.$ac_ext
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19870 /* pthread test headers */
19871 #include <pthread.h>
19872 #if HAVE_PTHREADS < 7
19876 #define NULL (void*)0
19879 static void *task(p)
19882 return (void *) (p == NULL);
19886 int main(argc, argv)
19891 /* pthread test function */
19892 #ifndef PTHREAD_CREATE_DETACHED
19893 #define PTHREAD_CREATE_DETACHED 1
19897 int detach = PTHREAD_CREATE_DETACHED;
19899 #if HAVE_PTHREADS > 4
19900 /* Final pthreads */
19901 pthread_attr_t attr;
19903 status = pthread_attr_init(&attr);
19904 if( status ) return status;
19906 #if HAVE_PTHREADS < 7
19907 status = pthread_attr_setdetachstate(&attr, &detach);
19908 if( status < 0 ) status = errno;
19910 status = pthread_attr_setdetachstate(&attr, detach);
19912 if( status ) return status;
19913 status = pthread_create( &t, &attr, task, NULL );
19914 #if HAVE_PTHREADS < 7
19915 if( status < 0 ) status = errno;
19917 if( status ) return status;
19919 /* Draft 4 pthreads */
19920 status = pthread_create( &t, pthread_attr_default, task, NULL );
19921 if( status ) return errno;
19923 /* give thread a chance to complete */
19924 /* it should remain joinable and hence detachable */
19927 status = pthread_detach( &t );
19928 if( status ) return errno;
19931 #ifdef HAVE_LINUX_THREADS
19932 pthread_kill_other_threads_np();
19940 rm -f conftest$ac_exeext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19942 (eval $ac_link) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ol_cv_pthread_kthread=yes
19953 echo "$as_me: program exited with status $ac_status" >&5
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ( exit $ac_status )
19958 ol_cv_pthread_kthread=no
19960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19967 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
19968 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
19970 if test $ol_cv_pthread_kthread = yes ; then
19971 ol_link_pthreads="-kthread"
19972 ol_link_threads=posix
19976 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19977 if test "$ol_link_threads" = no ; then
19979 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
19980 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
19981 if test "${ol_cv_pthread_pthread+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 LIBS="-pthread $LIBS"
19989 if test "$cross_compiling" = yes; then
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19997 /* pthread test headers */
19998 #include <pthread.h>
19999 #if HAVE_PTHREADS < 7
20003 #define NULL (void*)0
20006 static void *task(p)
20009 return (void *) (p == NULL);
20016 /* pthread test function */
20017 #ifndef PTHREAD_CREATE_DETACHED
20018 #define PTHREAD_CREATE_DETACHED 1
20022 int detach = PTHREAD_CREATE_DETACHED;
20024 #if HAVE_PTHREADS > 4
20025 /* Final pthreads */
20026 pthread_attr_t attr;
20028 status = pthread_attr_init(&attr);
20029 if( status ) return status;
20031 #if HAVE_PTHREADS < 7
20032 status = pthread_attr_setdetachstate(&attr, &detach);
20033 if( status < 0 ) status = errno;
20035 status = pthread_attr_setdetachstate(&attr, detach);
20037 if( status ) return status;
20038 status = pthread_create( &t, &attr, task, NULL );
20039 #if HAVE_PTHREADS < 7
20040 if( status < 0 ) status = errno;
20042 if( status ) return status;
20044 /* Draft 4 pthreads */
20045 status = pthread_create( &t, pthread_attr_default, task, NULL );
20046 if( status ) return errno;
20048 /* give thread a chance to complete */
20049 /* it should remain joinable and hence detachable */
20052 status = pthread_detach( &t );
20053 if( status ) return errno;
20056 #ifdef HAVE_LINUX_THREADS
20057 pthread_kill_other_threads_np();
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20068 (eval $ac_link) 2>conftest.er1
20070 grep -v '^ *+' conftest.er1 >conftest.err
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
20075 { ac_try='test -z "$ac_c_werror_flag"
20076 || test ! -s conftest.err'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest$ac_exeext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20088 ol_cv_pthread_pthread=yes
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ol_cv_pthread_pthread=no
20095 rm -f conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext conftest.$ac_ext
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20105 /* pthread test headers */
20106 #include <pthread.h>
20107 #if HAVE_PTHREADS < 7
20111 #define NULL (void*)0
20114 static void *task(p)
20117 return (void *) (p == NULL);
20121 int main(argc, argv)
20126 /* pthread test function */
20127 #ifndef PTHREAD_CREATE_DETACHED
20128 #define PTHREAD_CREATE_DETACHED 1
20132 int detach = PTHREAD_CREATE_DETACHED;
20134 #if HAVE_PTHREADS > 4
20135 /* Final pthreads */
20136 pthread_attr_t attr;
20138 status = pthread_attr_init(&attr);
20139 if( status ) return status;
20141 #if HAVE_PTHREADS < 7
20142 status = pthread_attr_setdetachstate(&attr, &detach);
20143 if( status < 0 ) status = errno;
20145 status = pthread_attr_setdetachstate(&attr, detach);
20147 if( status ) return status;
20148 status = pthread_create( &t, &attr, task, NULL );
20149 #if HAVE_PTHREADS < 7
20150 if( status < 0 ) status = errno;
20152 if( status ) return status;
20154 /* Draft 4 pthreads */
20155 status = pthread_create( &t, pthread_attr_default, task, NULL );
20156 if( status ) return errno;
20158 /* give thread a chance to complete */
20159 /* it should remain joinable and hence detachable */
20162 status = pthread_detach( &t );
20163 if( status ) return errno;
20166 #ifdef HAVE_LINUX_THREADS
20167 pthread_kill_other_threads_np();
20175 rm -f conftest$ac_exeext
20176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20177 (eval $ac_link) 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 ol_cv_pthread_pthread=yes
20188 echo "$as_me: program exited with status $ac_status" >&5
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ( exit $ac_status )
20193 ol_cv_pthread_pthread=no
20195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20202 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20203 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20205 if test $ol_cv_pthread_pthread = yes ; then
20206 ol_link_pthreads="-pthread"
20207 ol_link_threads=posix
20211 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20212 if test "$ol_link_threads" = no ; then
20214 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20215 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20216 if test "${ol_cv_pthread_pthreads+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 LIBS="-pthreads $LIBS"
20224 if test "$cross_compiling" = yes; then
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20232 /* pthread test headers */
20233 #include <pthread.h>
20234 #if HAVE_PTHREADS < 7
20238 #define NULL (void*)0
20241 static void *task(p)
20244 return (void *) (p == NULL);
20251 /* pthread test function */
20252 #ifndef PTHREAD_CREATE_DETACHED
20253 #define PTHREAD_CREATE_DETACHED 1
20257 int detach = PTHREAD_CREATE_DETACHED;
20259 #if HAVE_PTHREADS > 4
20260 /* Final pthreads */
20261 pthread_attr_t attr;
20263 status = pthread_attr_init(&attr);
20264 if( status ) return status;
20266 #if HAVE_PTHREADS < 7
20267 status = pthread_attr_setdetachstate(&attr, &detach);
20268 if( status < 0 ) status = errno;
20270 status = pthread_attr_setdetachstate(&attr, detach);
20272 if( status ) return status;
20273 status = pthread_create( &t, &attr, task, NULL );
20274 #if HAVE_PTHREADS < 7
20275 if( status < 0 ) status = errno;
20277 if( status ) return status;
20279 /* Draft 4 pthreads */
20280 status = pthread_create( &t, pthread_attr_default, task, NULL );
20281 if( status ) return errno;
20283 /* give thread a chance to complete */
20284 /* it should remain joinable and hence detachable */
20287 status = pthread_detach( &t );
20288 if( status ) return errno;
20291 #ifdef HAVE_LINUX_THREADS
20292 pthread_kill_other_threads_np();
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303 (eval $ac_link) 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag"
20311 || test ! -s conftest.err'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; } &&
20317 { ac_try='test -s conftest$ac_exeext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ol_cv_pthread_pthreads=yes
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ol_cv_pthread_pthreads=no
20330 rm -f conftest.err conftest.$ac_objext \
20331 conftest$ac_exeext conftest.$ac_ext
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20340 /* pthread test headers */
20341 #include <pthread.h>
20342 #if HAVE_PTHREADS < 7
20346 #define NULL (void*)0
20349 static void *task(p)
20352 return (void *) (p == NULL);
20356 int main(argc, argv)
20361 /* pthread test function */
20362 #ifndef PTHREAD_CREATE_DETACHED
20363 #define PTHREAD_CREATE_DETACHED 1
20367 int detach = PTHREAD_CREATE_DETACHED;
20369 #if HAVE_PTHREADS > 4
20370 /* Final pthreads */
20371 pthread_attr_t attr;
20373 status = pthread_attr_init(&attr);
20374 if( status ) return status;
20376 #if HAVE_PTHREADS < 7
20377 status = pthread_attr_setdetachstate(&attr, &detach);
20378 if( status < 0 ) status = errno;
20380 status = pthread_attr_setdetachstate(&attr, detach);
20382 if( status ) return status;
20383 status = pthread_create( &t, &attr, task, NULL );
20384 #if HAVE_PTHREADS < 7
20385 if( status < 0 ) status = errno;
20387 if( status ) return status;
20389 /* Draft 4 pthreads */
20390 status = pthread_create( &t, pthread_attr_default, task, NULL );
20391 if( status ) return errno;
20393 /* give thread a chance to complete */
20394 /* it should remain joinable and hence detachable */
20397 status = pthread_detach( &t );
20398 if( status ) return errno;
20401 #ifdef HAVE_LINUX_THREADS
20402 pthread_kill_other_threads_np();
20410 rm -f conftest$ac_exeext
20411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20412 (eval $ac_link) 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 ol_cv_pthread_pthreads=yes
20423 echo "$as_me: program exited with status $ac_status" >&5
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ( exit $ac_status )
20428 ol_cv_pthread_pthreads=no
20430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20437 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20438 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20440 if test $ol_cv_pthread_pthreads = yes ; then
20441 ol_link_pthreads="-pthreads"
20442 ol_link_threads=posix
20446 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20447 if test "$ol_link_threads" = no ; then
20449 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20450 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20451 if test "${ol_cv_pthread_mthreads+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 LIBS="-mthreads $LIBS"
20459 if test "$cross_compiling" = yes; then
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20467 /* pthread test headers */
20468 #include <pthread.h>
20469 #if HAVE_PTHREADS < 7
20473 #define NULL (void*)0
20476 static void *task(p)
20479 return (void *) (p == NULL);
20486 /* pthread test function */
20487 #ifndef PTHREAD_CREATE_DETACHED
20488 #define PTHREAD_CREATE_DETACHED 1
20492 int detach = PTHREAD_CREATE_DETACHED;
20494 #if HAVE_PTHREADS > 4
20495 /* Final pthreads */
20496 pthread_attr_t attr;
20498 status = pthread_attr_init(&attr);
20499 if( status ) return status;
20501 #if HAVE_PTHREADS < 7
20502 status = pthread_attr_setdetachstate(&attr, &detach);
20503 if( status < 0 ) status = errno;
20505 status = pthread_attr_setdetachstate(&attr, detach);
20507 if( status ) return status;
20508 status = pthread_create( &t, &attr, task, NULL );
20509 #if HAVE_PTHREADS < 7
20510 if( status < 0 ) status = errno;
20512 if( status ) return status;
20514 /* Draft 4 pthreads */
20515 status = pthread_create( &t, pthread_attr_default, task, NULL );
20516 if( status ) return errno;
20518 /* give thread a chance to complete */
20519 /* it should remain joinable and hence detachable */
20522 status = pthread_detach( &t );
20523 if( status ) return errno;
20526 #ifdef HAVE_LINUX_THREADS
20527 pthread_kill_other_threads_np();
20536 rm -f conftest.$ac_objext conftest$ac_exeext
20537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20538 (eval $ac_link) 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
20545 { ac_try='test -z "$ac_c_werror_flag"
20546 || test ! -s conftest.err'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; } &&
20552 { ac_try='test -s conftest$ac_exeext'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ol_cv_pthread_mthreads=yes
20560 echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20563 ol_cv_pthread_mthreads=no
20565 rm -f conftest.err conftest.$ac_objext \
20566 conftest$ac_exeext conftest.$ac_ext
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20575 /* pthread test headers */
20576 #include <pthread.h>
20577 #if HAVE_PTHREADS < 7
20581 #define NULL (void*)0
20584 static void *task(p)
20587 return (void *) (p == NULL);
20591 int main(argc, argv)
20596 /* pthread test function */
20597 #ifndef PTHREAD_CREATE_DETACHED
20598 #define PTHREAD_CREATE_DETACHED 1
20602 int detach = PTHREAD_CREATE_DETACHED;
20604 #if HAVE_PTHREADS > 4
20605 /* Final pthreads */
20606 pthread_attr_t attr;
20608 status = pthread_attr_init(&attr);
20609 if( status ) return status;
20611 #if HAVE_PTHREADS < 7
20612 status = pthread_attr_setdetachstate(&attr, &detach);
20613 if( status < 0 ) status = errno;
20615 status = pthread_attr_setdetachstate(&attr, detach);
20617 if( status ) return status;
20618 status = pthread_create( &t, &attr, task, NULL );
20619 #if HAVE_PTHREADS < 7
20620 if( status < 0 ) status = errno;
20622 if( status ) return status;
20624 /* Draft 4 pthreads */
20625 status = pthread_create( &t, pthread_attr_default, task, NULL );
20626 if( status ) return errno;
20628 /* give thread a chance to complete */
20629 /* it should remain joinable and hence detachable */
20632 status = pthread_detach( &t );
20633 if( status ) return errno;
20636 #ifdef HAVE_LINUX_THREADS
20637 pthread_kill_other_threads_np();
20645 rm -f conftest$ac_exeext
20646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647 (eval $ac_link) 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ol_cv_pthread_mthreads=yes
20658 echo "$as_me: program exited with status $ac_status" >&5
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 ( exit $ac_status )
20663 ol_cv_pthread_mthreads=no
20665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20672 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20673 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20675 if test $ol_cv_pthread_mthreads = yes ; then
20676 ol_link_pthreads="-mthreads"
20677 ol_link_threads=posix
20681 # Pthread try link: -thread (ol_cv_pthread_thread)
20682 if test "$ol_link_threads" = no ; then
20684 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20685 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20686 if test "${ol_cv_pthread_thread+set}" = set; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 LIBS="-thread $LIBS"
20694 if test "$cross_compiling" = yes; then
20695 cat >conftest.$ac_ext <<_ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20702 /* pthread test headers */
20703 #include <pthread.h>
20704 #if HAVE_PTHREADS < 7
20708 #define NULL (void*)0
20711 static void *task(p)
20714 return (void *) (p == NULL);
20721 /* pthread test function */
20722 #ifndef PTHREAD_CREATE_DETACHED
20723 #define PTHREAD_CREATE_DETACHED 1
20727 int detach = PTHREAD_CREATE_DETACHED;
20729 #if HAVE_PTHREADS > 4
20730 /* Final pthreads */
20731 pthread_attr_t attr;
20733 status = pthread_attr_init(&attr);
20734 if( status ) return status;
20736 #if HAVE_PTHREADS < 7
20737 status = pthread_attr_setdetachstate(&attr, &detach);
20738 if( status < 0 ) status = errno;
20740 status = pthread_attr_setdetachstate(&attr, detach);
20742 if( status ) return status;
20743 status = pthread_create( &t, &attr, task, NULL );
20744 #if HAVE_PTHREADS < 7
20745 if( status < 0 ) status = errno;
20747 if( status ) return status;
20749 /* Draft 4 pthreads */
20750 status = pthread_create( &t, pthread_attr_default, task, NULL );
20751 if( status ) return errno;
20753 /* give thread a chance to complete */
20754 /* it should remain joinable and hence detachable */
20757 status = pthread_detach( &t );
20758 if( status ) return errno;
20761 #ifdef HAVE_LINUX_THREADS
20762 pthread_kill_other_threads_np();
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20773 (eval $ac_link) 2>conftest.er1
20775 grep -v '^ *+' conftest.er1 >conftest.err
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
20780 { ac_try='test -z "$ac_c_werror_flag"
20781 || test ! -s conftest.err'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; } &&
20787 { ac_try='test -s conftest$ac_exeext'
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 ol_cv_pthread_thread=yes
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 ol_cv_pthread_thread=no
20800 rm -f conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20803 cat >conftest.$ac_ext <<_ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20810 /* pthread test headers */
20811 #include <pthread.h>
20812 #if HAVE_PTHREADS < 7
20816 #define NULL (void*)0
20819 static void *task(p)
20822 return (void *) (p == NULL);
20826 int main(argc, argv)
20831 /* pthread test function */
20832 #ifndef PTHREAD_CREATE_DETACHED
20833 #define PTHREAD_CREATE_DETACHED 1
20837 int detach = PTHREAD_CREATE_DETACHED;
20839 #if HAVE_PTHREADS > 4
20840 /* Final pthreads */
20841 pthread_attr_t attr;
20843 status = pthread_attr_init(&attr);
20844 if( status ) return status;
20846 #if HAVE_PTHREADS < 7
20847 status = pthread_attr_setdetachstate(&attr, &detach);
20848 if( status < 0 ) status = errno;
20850 status = pthread_attr_setdetachstate(&attr, detach);
20852 if( status ) return status;
20853 status = pthread_create( &t, &attr, task, NULL );
20854 #if HAVE_PTHREADS < 7
20855 if( status < 0 ) status = errno;
20857 if( status ) return status;
20859 /* Draft 4 pthreads */
20860 status = pthread_create( &t, pthread_attr_default, task, NULL );
20861 if( status ) return errno;
20863 /* give thread a chance to complete */
20864 /* it should remain joinable and hence detachable */
20867 status = pthread_detach( &t );
20868 if( status ) return errno;
20871 #ifdef HAVE_LINUX_THREADS
20872 pthread_kill_other_threads_np();
20880 rm -f conftest$ac_exeext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20882 (eval $ac_link) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 ol_cv_pthread_thread=yes
20893 echo "$as_me: program exited with status $ac_status" >&5
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 ( exit $ac_status )
20898 ol_cv_pthread_thread=no
20900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20907 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
20908 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
20910 if test $ol_cv_pthread_thread = yes ; then
20911 ol_link_pthreads="-thread"
20912 ol_link_threads=posix
20917 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20918 if test "$ol_link_threads" = no ; then
20919 # try -lpthread -lmach -lexc -lc_r
20920 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20921 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
20922 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
20923 echo $ECHO_N "(cached) $ECHO_C" >&6
20928 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20930 if test "$cross_compiling" = yes; then
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20938 /* pthread test headers */
20939 #include <pthread.h>
20940 #if HAVE_PTHREADS < 7
20944 #define NULL (void*)0
20947 static void *task(p)
20950 return (void *) (p == NULL);
20957 /* pthread test function */
20958 #ifndef PTHREAD_CREATE_DETACHED
20959 #define PTHREAD_CREATE_DETACHED 1
20963 int detach = PTHREAD_CREATE_DETACHED;
20965 #if HAVE_PTHREADS > 4
20966 /* Final pthreads */
20967 pthread_attr_t attr;
20969 status = pthread_attr_init(&attr);
20970 if( status ) return status;
20972 #if HAVE_PTHREADS < 7
20973 status = pthread_attr_setdetachstate(&attr, &detach);
20974 if( status < 0 ) status = errno;
20976 status = pthread_attr_setdetachstate(&attr, detach);
20978 if( status ) return status;
20979 status = pthread_create( &t, &attr, task, NULL );
20980 #if HAVE_PTHREADS < 7
20981 if( status < 0 ) status = errno;
20983 if( status ) return status;
20985 /* Draft 4 pthreads */
20986 status = pthread_create( &t, pthread_attr_default, task, NULL );
20987 if( status ) return errno;
20989 /* give thread a chance to complete */
20990 /* it should remain joinable and hence detachable */
20993 status = pthread_detach( &t );
20994 if( status ) return errno;
20997 #ifdef HAVE_LINUX_THREADS
20998 pthread_kill_other_threads_np();
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21009 (eval $ac_link) 2>conftest.er1
21011 grep -v '^ *+' conftest.er1 >conftest.err
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -z "$ac_c_werror_flag"
21017 || test ! -s conftest.err'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; } &&
21023 { ac_try='test -s conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21036 rm -f conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21046 /* pthread test headers */
21047 #include <pthread.h>
21048 #if HAVE_PTHREADS < 7
21052 #define NULL (void*)0
21055 static void *task(p)
21058 return (void *) (p == NULL);
21062 int main(argc, argv)
21067 /* pthread test function */
21068 #ifndef PTHREAD_CREATE_DETACHED
21069 #define PTHREAD_CREATE_DETACHED 1
21073 int detach = PTHREAD_CREATE_DETACHED;
21075 #if HAVE_PTHREADS > 4
21076 /* Final pthreads */
21077 pthread_attr_t attr;
21079 status = pthread_attr_init(&attr);
21080 if( status ) return status;
21082 #if HAVE_PTHREADS < 7
21083 status = pthread_attr_setdetachstate(&attr, &detach);
21084 if( status < 0 ) status = errno;
21086 status = pthread_attr_setdetachstate(&attr, detach);
21088 if( status ) return status;
21089 status = pthread_create( &t, &attr, task, NULL );
21090 #if HAVE_PTHREADS < 7
21091 if( status < 0 ) status = errno;
21093 if( status ) return status;
21095 /* Draft 4 pthreads */
21096 status = pthread_create( &t, pthread_attr_default, task, NULL );
21097 if( status ) return errno;
21099 /* give thread a chance to complete */
21100 /* it should remain joinable and hence detachable */
21103 status = pthread_detach( &t );
21104 if( status ) return errno;
21107 #ifdef HAVE_LINUX_THREADS
21108 pthread_kill_other_threads_np();
21116 rm -f conftest$ac_exeext
21117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21118 (eval $ac_link) 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21129 echo "$as_me: program exited with status $ac_status" >&5
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ( exit $ac_status )
21134 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21143 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21144 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21146 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21147 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21148 ol_link_threads=posix
21152 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21153 if test "$ol_link_threads" = no ; then
21154 # try -lpthread -lmach -lexc
21155 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21156 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21157 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 LIBS="-lpthread -lmach -lexc $LIBS"
21165 if test "$cross_compiling" = yes; then
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21173 /* pthread test headers */
21174 #include <pthread.h>
21175 #if HAVE_PTHREADS < 7
21179 #define NULL (void*)0
21182 static void *task(p)
21185 return (void *) (p == NULL);
21192 /* pthread test function */
21193 #ifndef PTHREAD_CREATE_DETACHED
21194 #define PTHREAD_CREATE_DETACHED 1
21198 int detach = PTHREAD_CREATE_DETACHED;
21200 #if HAVE_PTHREADS > 4
21201 /* Final pthreads */
21202 pthread_attr_t attr;
21204 status = pthread_attr_init(&attr);
21205 if( status ) return status;
21207 #if HAVE_PTHREADS < 7
21208 status = pthread_attr_setdetachstate(&attr, &detach);
21209 if( status < 0 ) status = errno;
21211 status = pthread_attr_setdetachstate(&attr, detach);
21213 if( status ) return status;
21214 status = pthread_create( &t, &attr, task, NULL );
21215 #if HAVE_PTHREADS < 7
21216 if( status < 0 ) status = errno;
21218 if( status ) return status;
21220 /* Draft 4 pthreads */
21221 status = pthread_create( &t, pthread_attr_default, task, NULL );
21222 if( status ) return errno;
21224 /* give thread a chance to complete */
21225 /* it should remain joinable and hence detachable */
21228 status = pthread_detach( &t );
21229 if( status ) return errno;
21232 #ifdef HAVE_LINUX_THREADS
21233 pthread_kill_other_threads_np();
21242 rm -f conftest.$ac_objext conftest$ac_exeext
21243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21244 (eval $ac_link) 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -z "$ac_c_werror_flag"
21252 || test ! -s conftest.err'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; } &&
21258 { ac_try='test -s conftest$ac_exeext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ol_cv_pthread_lpthread_lmach_lexc=yes
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ol_cv_pthread_lpthread_lmach_lexc=no
21271 rm -f conftest.err conftest.$ac_objext \
21272 conftest$ac_exeext conftest.$ac_ext
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21281 /* pthread test headers */
21282 #include <pthread.h>
21283 #if HAVE_PTHREADS < 7
21287 #define NULL (void*)0
21290 static void *task(p)
21293 return (void *) (p == NULL);
21297 int main(argc, argv)
21302 /* pthread test function */
21303 #ifndef PTHREAD_CREATE_DETACHED
21304 #define PTHREAD_CREATE_DETACHED 1
21308 int detach = PTHREAD_CREATE_DETACHED;
21310 #if HAVE_PTHREADS > 4
21311 /* Final pthreads */
21312 pthread_attr_t attr;
21314 status = pthread_attr_init(&attr);
21315 if( status ) return status;
21317 #if HAVE_PTHREADS < 7
21318 status = pthread_attr_setdetachstate(&attr, &detach);
21319 if( status < 0 ) status = errno;
21321 status = pthread_attr_setdetachstate(&attr, detach);
21323 if( status ) return status;
21324 status = pthread_create( &t, &attr, task, NULL );
21325 #if HAVE_PTHREADS < 7
21326 if( status < 0 ) status = errno;
21328 if( status ) return status;
21330 /* Draft 4 pthreads */
21331 status = pthread_create( &t, pthread_attr_default, task, NULL );
21332 if( status ) return errno;
21334 /* give thread a chance to complete */
21335 /* it should remain joinable and hence detachable */
21338 status = pthread_detach( &t );
21339 if( status ) return errno;
21342 #ifdef HAVE_LINUX_THREADS
21343 pthread_kill_other_threads_np();
21351 rm -f conftest$ac_exeext
21352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21353 (eval $ac_link) 2>&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
21362 ol_cv_pthread_lpthread_lmach_lexc=yes
21364 echo "$as_me: program exited with status $ac_status" >&5
21365 echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21368 ( exit $ac_status )
21369 ol_cv_pthread_lpthread_lmach_lexc=no
21371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21378 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21379 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21381 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21382 ol_link_pthreads="-lpthread -lmach -lexc"
21383 ol_link_threads=posix
21388 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21389 if test "$ol_link_threads" = no ; then
21390 # try -lpthread -Wl,-woff,85
21391 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21392 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21393 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21401 if test "$cross_compiling" = yes; then
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21409 /* pthread test headers */
21410 #include <pthread.h>
21411 #if HAVE_PTHREADS < 7
21415 #define NULL (void*)0
21418 static void *task(p)
21421 return (void *) (p == NULL);
21428 /* pthread test function */
21429 #ifndef PTHREAD_CREATE_DETACHED
21430 #define PTHREAD_CREATE_DETACHED 1
21434 int detach = PTHREAD_CREATE_DETACHED;
21436 #if HAVE_PTHREADS > 4
21437 /* Final pthreads */
21438 pthread_attr_t attr;
21440 status = pthread_attr_init(&attr);
21441 if( status ) return status;
21443 #if HAVE_PTHREADS < 7
21444 status = pthread_attr_setdetachstate(&attr, &detach);
21445 if( status < 0 ) status = errno;
21447 status = pthread_attr_setdetachstate(&attr, detach);
21449 if( status ) return status;
21450 status = pthread_create( &t, &attr, task, NULL );
21451 #if HAVE_PTHREADS < 7
21452 if( status < 0 ) status = errno;
21454 if( status ) return status;
21456 /* Draft 4 pthreads */
21457 status = pthread_create( &t, pthread_attr_default, task, NULL );
21458 if( status ) return errno;
21460 /* give thread a chance to complete */
21461 /* it should remain joinable and hence detachable */
21464 status = pthread_detach( &t );
21465 if( status ) return errno;
21468 #ifdef HAVE_LINUX_THREADS
21469 pthread_kill_other_threads_np();
21478 rm -f conftest.$ac_objext conftest$ac_exeext
21479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21480 (eval $ac_link) 2>conftest.er1
21482 grep -v '^ *+' conftest.er1 >conftest.err
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } &&
21487 { ac_try='test -z "$ac_c_werror_flag"
21488 || test ! -s conftest.err'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } &&
21494 { ac_try='test -s conftest$ac_exeext'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 ol_cv_pthread_lib_lpthread_woff=yes
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ol_cv_pthread_lib_lpthread_woff=no
21507 rm -f conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* pthread test headers */
21518 #include <pthread.h>
21519 #if HAVE_PTHREADS < 7
21523 #define NULL (void*)0
21526 static void *task(p)
21529 return (void *) (p == NULL);
21533 int main(argc, argv)
21538 /* pthread test function */
21539 #ifndef PTHREAD_CREATE_DETACHED
21540 #define PTHREAD_CREATE_DETACHED 1
21544 int detach = PTHREAD_CREATE_DETACHED;
21546 #if HAVE_PTHREADS > 4
21547 /* Final pthreads */
21548 pthread_attr_t attr;
21550 status = pthread_attr_init(&attr);
21551 if( status ) return status;
21553 #if HAVE_PTHREADS < 7
21554 status = pthread_attr_setdetachstate(&attr, &detach);
21555 if( status < 0 ) status = errno;
21557 status = pthread_attr_setdetachstate(&attr, detach);
21559 if( status ) return status;
21560 status = pthread_create( &t, &attr, task, NULL );
21561 #if HAVE_PTHREADS < 7
21562 if( status < 0 ) status = errno;
21564 if( status ) return status;
21566 /* Draft 4 pthreads */
21567 status = pthread_create( &t, pthread_attr_default, task, NULL );
21568 if( status ) return errno;
21570 /* give thread a chance to complete */
21571 /* it should remain joinable and hence detachable */
21574 status = pthread_detach( &t );
21575 if( status ) return errno;
21578 #ifdef HAVE_LINUX_THREADS
21579 pthread_kill_other_threads_np();
21587 rm -f conftest$ac_exeext
21588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589 (eval $ac_link) 2>&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 ol_cv_pthread_lib_lpthread_woff=yes
21600 echo "$as_me: program exited with status $ac_status" >&5
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604 ( exit $ac_status )
21605 ol_cv_pthread_lib_lpthread_woff=no
21607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21614 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21615 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21617 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21618 ol_link_pthreads="-lpthread -Wl,-woff,85"
21619 ol_link_threads=posix
21624 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21625 if test "$ol_link_threads" = no ; then
21627 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21628 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21629 if test "${ol_cv_pthread_lpthread+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 LIBS="-lpthread $LIBS"
21637 if test "$cross_compiling" = yes; then
21638 cat >conftest.$ac_ext <<_ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21645 /* pthread test headers */
21646 #include <pthread.h>
21647 #if HAVE_PTHREADS < 7
21651 #define NULL (void*)0
21654 static void *task(p)
21657 return (void *) (p == NULL);
21664 /* pthread test function */
21665 #ifndef PTHREAD_CREATE_DETACHED
21666 #define PTHREAD_CREATE_DETACHED 1
21670 int detach = PTHREAD_CREATE_DETACHED;
21672 #if HAVE_PTHREADS > 4
21673 /* Final pthreads */
21674 pthread_attr_t attr;
21676 status = pthread_attr_init(&attr);
21677 if( status ) return status;
21679 #if HAVE_PTHREADS < 7
21680 status = pthread_attr_setdetachstate(&attr, &detach);
21681 if( status < 0 ) status = errno;
21683 status = pthread_attr_setdetachstate(&attr, detach);
21685 if( status ) return status;
21686 status = pthread_create( &t, &attr, task, NULL );
21687 #if HAVE_PTHREADS < 7
21688 if( status < 0 ) status = errno;
21690 if( status ) return status;
21692 /* Draft 4 pthreads */
21693 status = pthread_create( &t, pthread_attr_default, task, NULL );
21694 if( status ) return errno;
21696 /* give thread a chance to complete */
21697 /* it should remain joinable and hence detachable */
21700 status = pthread_detach( &t );
21701 if( status ) return errno;
21704 #ifdef HAVE_LINUX_THREADS
21705 pthread_kill_other_threads_np();
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716 (eval $ac_link) 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -z "$ac_c_werror_flag"
21724 || test ! -s conftest.err'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest$ac_exeext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ol_cv_pthread_lpthread=yes
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 ol_cv_pthread_lpthread=no
21743 rm -f conftest.err conftest.$ac_objext \
21744 conftest$ac_exeext conftest.$ac_ext
21746 cat >conftest.$ac_ext <<_ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h. */
21753 /* pthread test headers */
21754 #include <pthread.h>
21755 #if HAVE_PTHREADS < 7
21759 #define NULL (void*)0
21762 static void *task(p)
21765 return (void *) (p == NULL);
21769 int main(argc, argv)
21774 /* pthread test function */
21775 #ifndef PTHREAD_CREATE_DETACHED
21776 #define PTHREAD_CREATE_DETACHED 1
21780 int detach = PTHREAD_CREATE_DETACHED;
21782 #if HAVE_PTHREADS > 4
21783 /* Final pthreads */
21784 pthread_attr_t attr;
21786 status = pthread_attr_init(&attr);
21787 if( status ) return status;
21789 #if HAVE_PTHREADS < 7
21790 status = pthread_attr_setdetachstate(&attr, &detach);
21791 if( status < 0 ) status = errno;
21793 status = pthread_attr_setdetachstate(&attr, detach);
21795 if( status ) return status;
21796 status = pthread_create( &t, &attr, task, NULL );
21797 #if HAVE_PTHREADS < 7
21798 if( status < 0 ) status = errno;
21800 if( status ) return status;
21802 /* Draft 4 pthreads */
21803 status = pthread_create( &t, pthread_attr_default, task, NULL );
21804 if( status ) return errno;
21806 /* give thread a chance to complete */
21807 /* it should remain joinable and hence detachable */
21810 status = pthread_detach( &t );
21811 if( status ) return errno;
21814 #ifdef HAVE_LINUX_THREADS
21815 pthread_kill_other_threads_np();
21823 rm -f conftest$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ol_cv_pthread_lpthread=yes
21836 echo "$as_me: program exited with status $ac_status" >&5
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ( exit $ac_status )
21841 ol_cv_pthread_lpthread=no
21843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21850 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
21851 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
21853 if test $ol_cv_pthread_lpthread = yes ; then
21854 ol_link_pthreads="-lpthread"
21855 ol_link_threads=posix
21859 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21860 if test "$ol_link_threads" = no ; then
21862 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
21863 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
21864 if test "${ol_cv_pthread_lc_r+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 if test "$cross_compiling" = yes; then
21873 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21880 /* pthread test headers */
21881 #include <pthread.h>
21882 #if HAVE_PTHREADS < 7
21886 #define NULL (void*)0
21889 static void *task(p)
21892 return (void *) (p == NULL);
21899 /* pthread test function */
21900 #ifndef PTHREAD_CREATE_DETACHED
21901 #define PTHREAD_CREATE_DETACHED 1
21905 int detach = PTHREAD_CREATE_DETACHED;
21907 #if HAVE_PTHREADS > 4
21908 /* Final pthreads */
21909 pthread_attr_t attr;
21911 status = pthread_attr_init(&attr);
21912 if( status ) return status;
21914 #if HAVE_PTHREADS < 7
21915 status = pthread_attr_setdetachstate(&attr, &detach);
21916 if( status < 0 ) status = errno;
21918 status = pthread_attr_setdetachstate(&attr, detach);
21920 if( status ) return status;
21921 status = pthread_create( &t, &attr, task, NULL );
21922 #if HAVE_PTHREADS < 7
21923 if( status < 0 ) status = errno;
21925 if( status ) return status;
21927 /* Draft 4 pthreads */
21928 status = pthread_create( &t, pthread_attr_default, task, NULL );
21929 if( status ) return errno;
21931 /* give thread a chance to complete */
21932 /* it should remain joinable and hence detachable */
21935 status = pthread_detach( &t );
21936 if( status ) return errno;
21939 #ifdef HAVE_LINUX_THREADS
21940 pthread_kill_other_threads_np();
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21951 (eval $ac_link) 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } &&
21958 { ac_try='test -z "$ac_c_werror_flag"
21959 || test ! -s conftest.err'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; } &&
21965 { ac_try='test -s conftest$ac_exeext'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ol_cv_pthread_lc_r=yes
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ol_cv_pthread_lc_r=no
21978 rm -f conftest.err conftest.$ac_objext \
21979 conftest$ac_exeext conftest.$ac_ext
21981 cat >conftest.$ac_ext <<_ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21988 /* pthread test headers */
21989 #include <pthread.h>
21990 #if HAVE_PTHREADS < 7
21994 #define NULL (void*)0
21997 static void *task(p)
22000 return (void *) (p == NULL);
22004 int main(argc, argv)
22009 /* pthread test function */
22010 #ifndef PTHREAD_CREATE_DETACHED
22011 #define PTHREAD_CREATE_DETACHED 1
22015 int detach = PTHREAD_CREATE_DETACHED;
22017 #if HAVE_PTHREADS > 4
22018 /* Final pthreads */
22019 pthread_attr_t attr;
22021 status = pthread_attr_init(&attr);
22022 if( status ) return status;
22024 #if HAVE_PTHREADS < 7
22025 status = pthread_attr_setdetachstate(&attr, &detach);
22026 if( status < 0 ) status = errno;
22028 status = pthread_attr_setdetachstate(&attr, detach);
22030 if( status ) return status;
22031 status = pthread_create( &t, &attr, task, NULL );
22032 #if HAVE_PTHREADS < 7
22033 if( status < 0 ) status = errno;
22035 if( status ) return status;
22037 /* Draft 4 pthreads */
22038 status = pthread_create( &t, pthread_attr_default, task, NULL );
22039 if( status ) return errno;
22041 /* give thread a chance to complete */
22042 /* it should remain joinable and hence detachable */
22045 status = pthread_detach( &t );
22046 if( status ) return errno;
22049 #ifdef HAVE_LINUX_THREADS
22050 pthread_kill_other_threads_np();
22058 rm -f conftest$ac_exeext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22060 (eval $ac_link) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065 (eval $ac_try) 2>&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; }; then
22069 ol_cv_pthread_lc_r=yes
22071 echo "$as_me: program exited with status $ac_status" >&5
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ( exit $ac_status )
22076 ol_cv_pthread_lc_r=no
22078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22085 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22086 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22088 if test $ol_cv_pthread_lc_r = yes ; then
22089 ol_link_pthreads="-lc_r"
22090 ol_link_threads=posix
22095 # Pthread try link: -threads (ol_cv_pthread_threads)
22096 if test "$ol_link_threads" = no ; then
22098 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22099 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22100 if test "${ol_cv_pthread_threads+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 LIBS="-threads $LIBS"
22108 if test "$cross_compiling" = yes; then
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22116 /* pthread test headers */
22117 #include <pthread.h>
22118 #if HAVE_PTHREADS < 7
22122 #define NULL (void*)0
22125 static void *task(p)
22128 return (void *) (p == NULL);
22135 /* pthread test function */
22136 #ifndef PTHREAD_CREATE_DETACHED
22137 #define PTHREAD_CREATE_DETACHED 1
22141 int detach = PTHREAD_CREATE_DETACHED;
22143 #if HAVE_PTHREADS > 4
22144 /* Final pthreads */
22145 pthread_attr_t attr;
22147 status = pthread_attr_init(&attr);
22148 if( status ) return status;
22150 #if HAVE_PTHREADS < 7
22151 status = pthread_attr_setdetachstate(&attr, &detach);
22152 if( status < 0 ) status = errno;
22154 status = pthread_attr_setdetachstate(&attr, detach);
22156 if( status ) return status;
22157 status = pthread_create( &t, &attr, task, NULL );
22158 #if HAVE_PTHREADS < 7
22159 if( status < 0 ) status = errno;
22161 if( status ) return status;
22163 /* Draft 4 pthreads */
22164 status = pthread_create( &t, pthread_attr_default, task, NULL );
22165 if( status ) return errno;
22167 /* give thread a chance to complete */
22168 /* it should remain joinable and hence detachable */
22171 status = pthread_detach( &t );
22172 if( status ) return errno;
22175 #ifdef HAVE_LINUX_THREADS
22176 pthread_kill_other_threads_np();
22185 rm -f conftest.$ac_objext conftest$ac_exeext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22187 (eval $ac_link) 2>conftest.er1
22189 grep -v '^ *+' conftest.er1 >conftest.err
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
22194 { ac_try='test -z "$ac_c_werror_flag"
22195 || test ! -s conftest.err'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest$ac_exeext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ol_cv_pthread_threads=yes
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ol_cv_pthread_threads=no
22214 rm -f conftest.err conftest.$ac_objext \
22215 conftest$ac_exeext conftest.$ac_ext
22217 cat >conftest.$ac_ext <<_ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22224 /* pthread test headers */
22225 #include <pthread.h>
22226 #if HAVE_PTHREADS < 7
22230 #define NULL (void*)0
22233 static void *task(p)
22236 return (void *) (p == NULL);
22240 int main(argc, argv)
22245 /* pthread test function */
22246 #ifndef PTHREAD_CREATE_DETACHED
22247 #define PTHREAD_CREATE_DETACHED 1
22251 int detach = PTHREAD_CREATE_DETACHED;
22253 #if HAVE_PTHREADS > 4
22254 /* Final pthreads */
22255 pthread_attr_t attr;
22257 status = pthread_attr_init(&attr);
22258 if( status ) return status;
22260 #if HAVE_PTHREADS < 7
22261 status = pthread_attr_setdetachstate(&attr, &detach);
22262 if( status < 0 ) status = errno;
22264 status = pthread_attr_setdetachstate(&attr, detach);
22266 if( status ) return status;
22267 status = pthread_create( &t, &attr, task, NULL );
22268 #if HAVE_PTHREADS < 7
22269 if( status < 0 ) status = errno;
22271 if( status ) return status;
22273 /* Draft 4 pthreads */
22274 status = pthread_create( &t, pthread_attr_default, task, NULL );
22275 if( status ) return errno;
22277 /* give thread a chance to complete */
22278 /* it should remain joinable and hence detachable */
22281 status = pthread_detach( &t );
22282 if( status ) return errno;
22285 #ifdef HAVE_LINUX_THREADS
22286 pthread_kill_other_threads_np();
22294 rm -f conftest$ac_exeext
22295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22296 (eval $ac_link) 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22305 ol_cv_pthread_threads=yes
22307 echo "$as_me: program exited with status $ac_status" >&5
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ( exit $ac_status )
22312 ol_cv_pthread_threads=no
22314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22321 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22322 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22324 if test $ol_cv_pthread_threads = yes ; then
22325 ol_link_pthreads="-threads"
22326 ol_link_threads=posix
22331 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22332 if test "$ol_link_threads" = no ; then
22333 # try -lpthreads -lmach -lexc -lc_r
22334 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22335 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22336 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22342 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22344 if test "$cross_compiling" = yes; then
22345 cat >conftest.$ac_ext <<_ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h. */
22352 /* pthread test headers */
22353 #include <pthread.h>
22354 #if HAVE_PTHREADS < 7
22358 #define NULL (void*)0
22361 static void *task(p)
22364 return (void *) (p == NULL);
22371 /* pthread test function */
22372 #ifndef PTHREAD_CREATE_DETACHED
22373 #define PTHREAD_CREATE_DETACHED 1
22377 int detach = PTHREAD_CREATE_DETACHED;
22379 #if HAVE_PTHREADS > 4
22380 /* Final pthreads */
22381 pthread_attr_t attr;
22383 status = pthread_attr_init(&attr);
22384 if( status ) return status;
22386 #if HAVE_PTHREADS < 7
22387 status = pthread_attr_setdetachstate(&attr, &detach);
22388 if( status < 0 ) status = errno;
22390 status = pthread_attr_setdetachstate(&attr, detach);
22392 if( status ) return status;
22393 status = pthread_create( &t, &attr, task, NULL );
22394 #if HAVE_PTHREADS < 7
22395 if( status < 0 ) status = errno;
22397 if( status ) return status;
22399 /* Draft 4 pthreads */
22400 status = pthread_create( &t, pthread_attr_default, task, NULL );
22401 if( status ) return errno;
22403 /* give thread a chance to complete */
22404 /* it should remain joinable and hence detachable */
22407 status = pthread_detach( &t );
22408 if( status ) return errno;
22411 #ifdef HAVE_LINUX_THREADS
22412 pthread_kill_other_threads_np();
22421 rm -f conftest.$ac_objext conftest$ac_exeext
22422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22423 (eval $ac_link) 2>conftest.er1
22425 grep -v '^ *+' conftest.er1 >conftest.err
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } &&
22430 { ac_try='test -z "$ac_c_werror_flag"
22431 || test ! -s conftest.err'
22432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433 (eval $ac_try) 2>&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; } &&
22437 { ac_try='test -s conftest$ac_exeext'
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; }; then
22443 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22450 rm -f conftest.err conftest.$ac_objext \
22451 conftest$ac_exeext conftest.$ac_ext
22453 cat >conftest.$ac_ext <<_ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22460 /* pthread test headers */
22461 #include <pthread.h>
22462 #if HAVE_PTHREADS < 7
22466 #define NULL (void*)0
22469 static void *task(p)
22472 return (void *) (p == NULL);
22476 int main(argc, argv)
22481 /* pthread test function */
22482 #ifndef PTHREAD_CREATE_DETACHED
22483 #define PTHREAD_CREATE_DETACHED 1
22487 int detach = PTHREAD_CREATE_DETACHED;
22489 #if HAVE_PTHREADS > 4
22490 /* Final pthreads */
22491 pthread_attr_t attr;
22493 status = pthread_attr_init(&attr);
22494 if( status ) return status;
22496 #if HAVE_PTHREADS < 7
22497 status = pthread_attr_setdetachstate(&attr, &detach);
22498 if( status < 0 ) status = errno;
22500 status = pthread_attr_setdetachstate(&attr, detach);
22502 if( status ) return status;
22503 status = pthread_create( &t, &attr, task, NULL );
22504 #if HAVE_PTHREADS < 7
22505 if( status < 0 ) status = errno;
22507 if( status ) return status;
22509 /* Draft 4 pthreads */
22510 status = pthread_create( &t, pthread_attr_default, task, NULL );
22511 if( status ) return errno;
22513 /* give thread a chance to complete */
22514 /* it should remain joinable and hence detachable */
22517 status = pthread_detach( &t );
22518 if( status ) return errno;
22521 #ifdef HAVE_LINUX_THREADS
22522 pthread_kill_other_threads_np();
22530 rm -f conftest$ac_exeext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22532 (eval $ac_link) 2>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; }; then
22541 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22543 echo "$as_me: program exited with status $ac_status" >&5
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ( exit $ac_status )
22548 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22557 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22558 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22560 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22561 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22562 ol_link_threads=posix
22566 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22567 if test "$ol_link_threads" = no ; then
22568 # try -lpthreads -lmach -lexc
22569 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22570 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22571 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22572 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 LIBS="-lpthreads -lmach -lexc $LIBS"
22579 if test "$cross_compiling" = yes; then
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22587 /* pthread test headers */
22588 #include <pthread.h>
22589 #if HAVE_PTHREADS < 7
22593 #define NULL (void*)0
22596 static void *task(p)
22599 return (void *) (p == NULL);
22606 /* pthread test function */
22607 #ifndef PTHREAD_CREATE_DETACHED
22608 #define PTHREAD_CREATE_DETACHED 1
22612 int detach = PTHREAD_CREATE_DETACHED;
22614 #if HAVE_PTHREADS > 4
22615 /* Final pthreads */
22616 pthread_attr_t attr;
22618 status = pthread_attr_init(&attr);
22619 if( status ) return status;
22621 #if HAVE_PTHREADS < 7
22622 status = pthread_attr_setdetachstate(&attr, &detach);
22623 if( status < 0 ) status = errno;
22625 status = pthread_attr_setdetachstate(&attr, detach);
22627 if( status ) return status;
22628 status = pthread_create( &t, &attr, task, NULL );
22629 #if HAVE_PTHREADS < 7
22630 if( status < 0 ) status = errno;
22632 if( status ) return status;
22634 /* Draft 4 pthreads */
22635 status = pthread_create( &t, pthread_attr_default, task, NULL );
22636 if( status ) return errno;
22638 /* give thread a chance to complete */
22639 /* it should remain joinable and hence detachable */
22642 status = pthread_detach( &t );
22643 if( status ) return errno;
22646 #ifdef HAVE_LINUX_THREADS
22647 pthread_kill_other_threads_np();
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22658 (eval $ac_link) 2>conftest.er1
22660 grep -v '^ *+' conftest.er1 >conftest.err
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } &&
22665 { ac_try='test -z "$ac_c_werror_flag"
22666 || test ! -s conftest.err'
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; } &&
22672 { ac_try='test -s conftest$ac_exeext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 ol_cv_pthread_lpthreads_lmach_lexc=yes
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ol_cv_pthread_lpthreads_lmach_lexc=no
22685 rm -f conftest.err conftest.$ac_objext \
22686 conftest$ac_exeext conftest.$ac_ext
22688 cat >conftest.$ac_ext <<_ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22695 /* pthread test headers */
22696 #include <pthread.h>
22697 #if HAVE_PTHREADS < 7
22701 #define NULL (void*)0
22704 static void *task(p)
22707 return (void *) (p == NULL);
22711 int main(argc, argv)
22716 /* pthread test function */
22717 #ifndef PTHREAD_CREATE_DETACHED
22718 #define PTHREAD_CREATE_DETACHED 1
22722 int detach = PTHREAD_CREATE_DETACHED;
22724 #if HAVE_PTHREADS > 4
22725 /* Final pthreads */
22726 pthread_attr_t attr;
22728 status = pthread_attr_init(&attr);
22729 if( status ) return status;
22731 #if HAVE_PTHREADS < 7
22732 status = pthread_attr_setdetachstate(&attr, &detach);
22733 if( status < 0 ) status = errno;
22735 status = pthread_attr_setdetachstate(&attr, detach);
22737 if( status ) return status;
22738 status = pthread_create( &t, &attr, task, NULL );
22739 #if HAVE_PTHREADS < 7
22740 if( status < 0 ) status = errno;
22742 if( status ) return status;
22744 /* Draft 4 pthreads */
22745 status = pthread_create( &t, pthread_attr_default, task, NULL );
22746 if( status ) return errno;
22748 /* give thread a chance to complete */
22749 /* it should remain joinable and hence detachable */
22752 status = pthread_detach( &t );
22753 if( status ) return errno;
22756 #ifdef HAVE_LINUX_THREADS
22757 pthread_kill_other_threads_np();
22765 rm -f conftest$ac_exeext
22766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22767 (eval $ac_link) 2>&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; }; then
22776 ol_cv_pthread_lpthreads_lmach_lexc=yes
22778 echo "$as_me: program exited with status $ac_status" >&5
22779 echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22782 ( exit $ac_status )
22783 ol_cv_pthread_lpthreads_lmach_lexc=no
22785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22792 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22793 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22795 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22796 ol_link_pthreads="-lpthreads -lmach -lexc"
22797 ol_link_threads=posix
22801 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
22802 if test "$ol_link_threads" = no ; then
22803 # try -lpthreads -lexc
22804 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
22805 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
22806 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22812 LIBS="-lpthreads -lexc $LIBS"
22814 if test "$cross_compiling" = yes; then
22815 cat >conftest.$ac_ext <<_ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22822 /* pthread test headers */
22823 #include <pthread.h>
22824 #if HAVE_PTHREADS < 7
22828 #define NULL (void*)0
22831 static void *task(p)
22834 return (void *) (p == NULL);
22841 /* pthread test function */
22842 #ifndef PTHREAD_CREATE_DETACHED
22843 #define PTHREAD_CREATE_DETACHED 1
22847 int detach = PTHREAD_CREATE_DETACHED;
22849 #if HAVE_PTHREADS > 4
22850 /* Final pthreads */
22851 pthread_attr_t attr;
22853 status = pthread_attr_init(&attr);
22854 if( status ) return status;
22856 #if HAVE_PTHREADS < 7
22857 status = pthread_attr_setdetachstate(&attr, &detach);
22858 if( status < 0 ) status = errno;
22860 status = pthread_attr_setdetachstate(&attr, detach);
22862 if( status ) return status;
22863 status = pthread_create( &t, &attr, task, NULL );
22864 #if HAVE_PTHREADS < 7
22865 if( status < 0 ) status = errno;
22867 if( status ) return status;
22869 /* Draft 4 pthreads */
22870 status = pthread_create( &t, pthread_attr_default, task, NULL );
22871 if( status ) return errno;
22873 /* give thread a chance to complete */
22874 /* it should remain joinable and hence detachable */
22877 status = pthread_detach( &t );
22878 if( status ) return errno;
22881 #ifdef HAVE_LINUX_THREADS
22882 pthread_kill_other_threads_np();
22891 rm -f conftest.$ac_objext conftest$ac_exeext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22893 (eval $ac_link) 2>conftest.er1
22895 grep -v '^ *+' conftest.er1 >conftest.err
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } &&
22900 { ac_try='test -z "$ac_c_werror_flag"
22901 || test ! -s conftest.err'
22902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); }; } &&
22907 { ac_try='test -s conftest$ac_exeext'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }; then
22913 ol_cv_pthread_lpthreads_lexc=yes
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ol_cv_pthread_lpthreads_lexc=no
22920 rm -f conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext conftest.$ac_ext
22923 cat >conftest.$ac_ext <<_ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h. */
22930 /* pthread test headers */
22931 #include <pthread.h>
22932 #if HAVE_PTHREADS < 7
22936 #define NULL (void*)0
22939 static void *task(p)
22942 return (void *) (p == NULL);
22946 int main(argc, argv)
22951 /* pthread test function */
22952 #ifndef PTHREAD_CREATE_DETACHED
22953 #define PTHREAD_CREATE_DETACHED 1
22957 int detach = PTHREAD_CREATE_DETACHED;
22959 #if HAVE_PTHREADS > 4
22960 /* Final pthreads */
22961 pthread_attr_t attr;
22963 status = pthread_attr_init(&attr);
22964 if( status ) return status;
22966 #if HAVE_PTHREADS < 7
22967 status = pthread_attr_setdetachstate(&attr, &detach);
22968 if( status < 0 ) status = errno;
22970 status = pthread_attr_setdetachstate(&attr, detach);
22972 if( status ) return status;
22973 status = pthread_create( &t, &attr, task, NULL );
22974 #if HAVE_PTHREADS < 7
22975 if( status < 0 ) status = errno;
22977 if( status ) return status;
22979 /* Draft 4 pthreads */
22980 status = pthread_create( &t, pthread_attr_default, task, NULL );
22981 if( status ) return errno;
22983 /* give thread a chance to complete */
22984 /* it should remain joinable and hence detachable */
22987 status = pthread_detach( &t );
22988 if( status ) return errno;
22991 #ifdef HAVE_LINUX_THREADS
22992 pthread_kill_other_threads_np();
23000 rm -f conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002 (eval $ac_link) 2>&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 ol_cv_pthread_lpthreads_lexc=yes
23013 echo "$as_me: program exited with status $ac_status" >&5
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ( exit $ac_status )
23018 ol_cv_pthread_lpthreads_lexc=no
23020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23027 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23028 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23030 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23031 ol_link_pthreads="-lpthreads -lexc"
23032 ol_link_threads=posix
23037 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23038 if test "$ol_link_threads" = no ; then
23040 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23041 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23042 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 LIBS="-lpthreads $LIBS"
23050 if test "$cross_compiling" = yes; then
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23058 /* pthread test headers */
23059 #include <pthread.h>
23060 #if HAVE_PTHREADS < 7
23064 #define NULL (void*)0
23067 static void *task(p)
23070 return (void *) (p == NULL);
23077 /* pthread test function */
23078 #ifndef PTHREAD_CREATE_DETACHED
23079 #define PTHREAD_CREATE_DETACHED 1
23083 int detach = PTHREAD_CREATE_DETACHED;
23085 #if HAVE_PTHREADS > 4
23086 /* Final pthreads */
23087 pthread_attr_t attr;
23089 status = pthread_attr_init(&attr);
23090 if( status ) return status;
23092 #if HAVE_PTHREADS < 7
23093 status = pthread_attr_setdetachstate(&attr, &detach);
23094 if( status < 0 ) status = errno;
23096 status = pthread_attr_setdetachstate(&attr, detach);
23098 if( status ) return status;
23099 status = pthread_create( &t, &attr, task, NULL );
23100 #if HAVE_PTHREADS < 7
23101 if( status < 0 ) status = errno;
23103 if( status ) return status;
23105 /* Draft 4 pthreads */
23106 status = pthread_create( &t, pthread_attr_default, task, NULL );
23107 if( status ) return errno;
23109 /* give thread a chance to complete */
23110 /* it should remain joinable and hence detachable */
23113 status = pthread_detach( &t );
23114 if( status ) return errno;
23117 #ifdef HAVE_LINUX_THREADS
23118 pthread_kill_other_threads_np();
23127 rm -f conftest.$ac_objext conftest$ac_exeext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23129 (eval $ac_link) 2>conftest.er1
23131 grep -v '^ *+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } &&
23136 { ac_try='test -z "$ac_c_werror_flag"
23137 || test ! -s conftest.err'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; } &&
23143 { ac_try='test -s conftest$ac_exeext'
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; }; then
23149 ol_cv_pthread_lib_lpthreads=yes
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ol_cv_pthread_lib_lpthreads=no
23156 rm -f conftest.err conftest.$ac_objext \
23157 conftest$ac_exeext conftest.$ac_ext
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23166 /* pthread test headers */
23167 #include <pthread.h>
23168 #if HAVE_PTHREADS < 7
23172 #define NULL (void*)0
23175 static void *task(p)
23178 return (void *) (p == NULL);
23182 int main(argc, argv)
23187 /* pthread test function */
23188 #ifndef PTHREAD_CREATE_DETACHED
23189 #define PTHREAD_CREATE_DETACHED 1
23193 int detach = PTHREAD_CREATE_DETACHED;
23195 #if HAVE_PTHREADS > 4
23196 /* Final pthreads */
23197 pthread_attr_t attr;
23199 status = pthread_attr_init(&attr);
23200 if( status ) return status;
23202 #if HAVE_PTHREADS < 7
23203 status = pthread_attr_setdetachstate(&attr, &detach);
23204 if( status < 0 ) status = errno;
23206 status = pthread_attr_setdetachstate(&attr, detach);
23208 if( status ) return status;
23209 status = pthread_create( &t, &attr, task, NULL );
23210 #if HAVE_PTHREADS < 7
23211 if( status < 0 ) status = errno;
23213 if( status ) return status;
23215 /* Draft 4 pthreads */
23216 status = pthread_create( &t, pthread_attr_default, task, NULL );
23217 if( status ) return errno;
23219 /* give thread a chance to complete */
23220 /* it should remain joinable and hence detachable */
23223 status = pthread_detach( &t );
23224 if( status ) return errno;
23227 #ifdef HAVE_LINUX_THREADS
23228 pthread_kill_other_threads_np();
23236 rm -f conftest$ac_exeext
23237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23238 (eval $ac_link) 2>&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23247 ol_cv_pthread_lib_lpthreads=yes
23249 echo "$as_me: program exited with status $ac_status" >&5
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23253 ( exit $ac_status )
23254 ol_cv_pthread_lib_lpthreads=no
23256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23263 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23264 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23266 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23267 ol_link_pthreads="-lpthreads"
23268 ol_link_threads=posix
23273 if test $ol_link_threads != no ; then
23274 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23276 save_CPPFLAGS="$CPPFLAGS"
23278 LIBS="$LTHREAD_LIBS $LIBS"
23283 for ac_func in sched_yield pthread_yield thr_yield
23285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23286 echo "$as_me:$LINENO: checking for $ac_func" >&5
23287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23288 if eval "test \"\${$as_ac_var+set}\" = set"; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23291 cat >conftest.$ac_ext <<_ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23299 #define $ac_func innocuous_$ac_func
23301 /* System header to define __stub macros and hopefully few prototypes,
23302 which can conflict with char $ac_func (); below.
23303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23304 <limits.h> exists even on freestanding compilers. */
23307 # include <limits.h>
23309 # include <assert.h>
23314 /* Override any gcc2 internal prototype to avoid an error. */
23319 /* We use char because int might match the return type of a gcc2
23320 builtin and then its argument prototype would still apply. */
23322 /* The GNU C library defines this for functions which it implements
23323 to always fail with ENOSYS. Some functions are actually named
23324 something starting with __ and the normal name is an alias. */
23325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23328 char (*f) () = $ac_func;
23337 return f != $ac_func;
23342 rm -f conftest.$ac_objext conftest$ac_exeext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23344 (eval $ac_link) 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -z "$ac_c_werror_flag"
23352 || test ! -s conftest.err'
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; } &&
23358 { ac_try='test -s conftest$ac_exeext'
23359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360 (eval $ac_try) 2>&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); }; }; then
23364 eval "$as_ac_var=yes"
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 eval "$as_ac_var=no"
23371 rm -f conftest.err conftest.$ac_objext \
23372 conftest$ac_exeext conftest.$ac_ext
23374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23376 if test `eval echo '${'$as_ac_var'}'` = yes; then
23377 cat >>confdefs.h <<_ACEOF
23378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23385 if test $ac_cv_func_sched_yield = no &&
23386 test $ac_cv_func_pthread_yield = no &&
23387 test $ac_cv_func_thr_yield = no ; then
23388 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23389 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23390 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23393 ac_check_lib_save_LIBS=$LIBS
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23402 /* Override any gcc2 internal prototype to avoid an error. */
23406 /* We use char because int might match the return type of a gcc2
23407 builtin and then its argument prototype would still apply. */
23408 char sched_yield ();
23417 rm -f conftest.$ac_objext conftest$ac_exeext
23418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23419 (eval $ac_link) 2>conftest.er1
23421 grep -v '^ *+' conftest.er1 >conftest.err
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
23426 { ac_try='test -z "$ac_c_werror_flag"
23427 || test ! -s conftest.err'
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); }; } &&
23433 { ac_try='test -s conftest$ac_exeext'
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }; then
23439 ac_cv_lib_rt_sched_yield=yes
23441 echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 ac_cv_lib_rt_sched_yield=no
23446 rm -f conftest.err conftest.$ac_objext \
23447 conftest$ac_exeext conftest.$ac_ext
23448 LIBS=$ac_check_lib_save_LIBS
23450 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23451 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23452 if test $ac_cv_lib_rt_sched_yield = yes; then
23453 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23455 cat >>confdefs.h <<\_ACEOF
23456 #define HAVE_SCHED_YIELD 1
23459 ac_cv_func_sched_yield=yes
23461 ac_cv_func_sched_yield=no
23465 if test $ac_cv_func_sched_yield = no &&
23466 test $ac_cv_func_pthread_yield = no &&
23467 test "$ac_cv_func_thr_yield" = no ; then
23468 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23469 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23473 for ac_func in pthread_kill
23475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23476 echo "$as_me:$LINENO: checking for $ac_func" >&5
23477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23478 if eval "test \"\${$as_ac_var+set}\" = set"; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23489 #define $ac_func innocuous_$ac_func
23491 /* System header to define __stub macros and hopefully few prototypes,
23492 which can conflict with char $ac_func (); below.
23493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23494 <limits.h> exists even on freestanding compilers. */
23497 # include <limits.h>
23499 # include <assert.h>
23504 /* Override any gcc2 internal prototype to avoid an error. */
23509 /* We use char because int might match the return type of a gcc2
23510 builtin and then its argument prototype would still apply. */
23512 /* The GNU C library defines this for functions which it implements
23513 to always fail with ENOSYS. Some functions are actually named
23514 something starting with __ and the normal name is an alias. */
23515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23518 char (*f) () = $ac_func;
23527 return f != $ac_func;
23532 rm -f conftest.$ac_objext conftest$ac_exeext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23534 (eval $ac_link) 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } &&
23541 { ac_try='test -z "$ac_c_werror_flag"
23542 || test ! -s conftest.err'
23543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544 (eval $ac_try) 2>&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); }; } &&
23548 { ac_try='test -s conftest$ac_exeext'
23549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23550 (eval $ac_try) 2>&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); }; }; then
23554 eval "$as_ac_var=yes"
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 eval "$as_ac_var=no"
23561 rm -f conftest.err conftest.$ac_objext \
23562 conftest$ac_exeext conftest.$ac_ext
23564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23566 if test `eval echo '${'$as_ac_var'}'` = yes; then
23567 cat >>confdefs.h <<_ACEOF
23568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23575 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23576 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23577 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23581 cat >conftest.$ac_ext <<_ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23588 #include <pthread.h>
23589 pthread_rwlock_t rwlock;
23594 pthread_rwlock_destroy(&rwlock);
23599 rm -f conftest.$ac_objext conftest$ac_exeext
23600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23601 (eval $ac_link) 2>conftest.er1
23603 grep -v '^ *+' conftest.er1 >conftest.err
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
23608 { ac_try='test -z "$ac_c_werror_flag"
23609 || test ! -s conftest.err'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; } &&
23615 { ac_try='test -s conftest$ac_exeext'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; }; then
23621 ol_cv_func_pthread_rwlock_destroy=yes
23623 echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23626 ol_cv_func_pthread_rwlock_destroy=no
23628 rm -f conftest.err conftest.$ac_objext \
23629 conftest$ac_exeext conftest.$ac_ext
23632 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23633 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23634 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23636 cat >>confdefs.h <<\_ACEOF
23637 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23642 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23643 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23644 if test "${ol_cv_func_pthread_detach+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23655 #include <pthread.h>
23657 #define NULL (void*)0
23663 pthread_detach(NULL);
23668 rm -f conftest.$ac_objext conftest$ac_exeext
23669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23670 (eval $ac_link) 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } &&
23677 { ac_try='test -z "$ac_c_werror_flag"
23678 || test ! -s conftest.err'
23679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680 (eval $ac_try) 2>&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; } &&
23684 { ac_try='test -s conftest$ac_exeext'
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; }; then
23690 ol_cv_func_pthread_detach=yes
23692 echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23695 ol_cv_func_pthread_detach=no
23697 rm -f conftest.err conftest.$ac_objext \
23698 conftest$ac_exeext conftest.$ac_ext
23701 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23702 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23704 if test $ol_cv_func_pthread_detach = no ; then
23705 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23706 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23707 { (exit 1); exit 1; }; }
23711 cat >>confdefs.h <<\_ACEOF
23712 #define HAVE_PTHREAD_DETACH 1
23721 pthread_setconcurrency \
23722 pthread_getconcurrency \
23723 thr_setconcurrency \
23724 thr_getconcurrency \
23727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23728 echo "$as_me:$LINENO: checking for $ac_func" >&5
23729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23730 if eval "test \"\${$as_ac_var+set}\" = set"; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23733 cat >conftest.$ac_ext <<_ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23741 #define $ac_func innocuous_$ac_func
23743 /* System header to define __stub macros and hopefully few prototypes,
23744 which can conflict with char $ac_func (); below.
23745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23746 <limits.h> exists even on freestanding compilers. */
23749 # include <limits.h>
23751 # include <assert.h>
23756 /* Override any gcc2 internal prototype to avoid an error. */
23761 /* We use char because int might match the return type of a gcc2
23762 builtin and then its argument prototype would still apply. */
23764 /* The GNU C library defines this for functions which it implements
23765 to always fail with ENOSYS. Some functions are actually named
23766 something starting with __ and the normal name is an alias. */
23767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23770 char (*f) () = $ac_func;
23779 return f != $ac_func;
23784 rm -f conftest.$ac_objext conftest$ac_exeext
23785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23786 (eval $ac_link) 2>conftest.er1
23788 grep -v '^ *+' conftest.er1 >conftest.err
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } &&
23793 { ac_try='test -z "$ac_c_werror_flag"
23794 || test ! -s conftest.err'
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; } &&
23800 { ac_try='test -s conftest$ac_exeext'
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; }; then
23806 eval "$as_ac_var=yes"
23808 echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23811 eval "$as_ac_var=no"
23813 rm -f conftest.err conftest.$ac_objext \
23814 conftest$ac_exeext conftest.$ac_ext
23816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23818 if test `eval echo '${'$as_ac_var'}'` = yes; then
23819 cat >>confdefs.h <<_ACEOF
23820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23829 for ac_func in pthread_kill_other_threads_np
23831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23832 echo "$as_me:$LINENO: checking for $ac_func" >&5
23833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23834 if eval "test \"\${$as_ac_var+set}\" = set"; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 cat >conftest.$ac_ext <<_ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23845 #define $ac_func innocuous_$ac_func
23847 /* System header to define __stub macros and hopefully few prototypes,
23848 which can conflict with char $ac_func (); below.
23849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23850 <limits.h> exists even on freestanding compilers. */
23853 # include <limits.h>
23855 # include <assert.h>
23860 /* Override any gcc2 internal prototype to avoid an error. */
23865 /* We use char because int might match the return type of a gcc2
23866 builtin and then its argument prototype would still apply. */
23868 /* The GNU C library defines this for functions which it implements
23869 to always fail with ENOSYS. Some functions are actually named
23870 something starting with __ and the normal name is an alias. */
23871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23874 char (*f) () = $ac_func;
23883 return f != $ac_func;
23888 rm -f conftest.$ac_objext conftest$ac_exeext
23889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23890 (eval $ac_link) 2>conftest.er1
23892 grep -v '^ *+' conftest.er1 >conftest.err
23894 cat conftest.err >&5
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } &&
23897 { ac_try='test -z "$ac_c_werror_flag"
23898 || test ! -s conftest.err'
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; } &&
23904 { ac_try='test -s conftest$ac_exeext'
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 eval "$as_ac_var=yes"
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 eval "$as_ac_var=no"
23917 rm -f conftest.err conftest.$ac_objext \
23918 conftest$ac_exeext conftest.$ac_ext
23920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23922 if test `eval echo '${'$as_ac_var'}'` = yes; then
23923 cat >>confdefs.h <<_ACEOF
23924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23930 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
23931 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
23932 if test "${ol_cv_sys_linux_threads+set}" = set; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
23937 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
23938 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
23943 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
23944 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
23945 if test "${ol_cv_linux_threads+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23949 if test $ol_cv_header_linux_threads = yes &&
23950 test $ol_cv_sys_linux_threads = yes; then
23951 ol_cv_linux_threads=yes
23952 elif test $ol_cv_header_linux_threads = no &&
23953 test $ol_cv_sys_linux_threads = no; then
23954 ol_cv_linux_threads=no
23956 ol_cv_linux_threads=error
23960 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
23961 echo "${ECHO_T}$ol_cv_linux_threads" >&6
23964 if test $ol_cv_linux_threads = error; then
23965 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
23966 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
23967 { (exit 1); exit 1; }; };
23970 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
23971 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
23972 if test "${ol_cv_pthread_create_works+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 if test "$cross_compiling" = yes; then
23977 ol_cv_pthread_create_works=yes
23979 cat >conftest.$ac_ext <<_ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23986 /* pthread test headers */
23987 #include <pthread.h>
23988 #if HAVE_PTHREADS < 7
23992 #define NULL (void*)0
23995 static void *task(p)
23998 return (void *) (p == NULL);
24002 int main(argc, argv)
24007 /* pthread test function */
24008 #ifndef PTHREAD_CREATE_DETACHED
24009 #define PTHREAD_CREATE_DETACHED 1
24013 int detach = PTHREAD_CREATE_DETACHED;
24015 #if HAVE_PTHREADS > 4
24016 /* Final pthreads */
24017 pthread_attr_t attr;
24019 status = pthread_attr_init(&attr);
24020 if( status ) return status;
24022 #if HAVE_PTHREADS < 7
24023 status = pthread_attr_setdetachstate(&attr, &detach);
24024 if( status < 0 ) status = errno;
24026 status = pthread_attr_setdetachstate(&attr, detach);
24028 if( status ) return status;
24029 status = pthread_create( &t, &attr, task, NULL );
24030 #if HAVE_PTHREADS < 7
24031 if( status < 0 ) status = errno;
24033 if( status ) return status;
24035 /* Draft 4 pthreads */
24036 status = pthread_create( &t, pthread_attr_default, task, NULL );
24037 if( status ) return errno;
24039 /* give thread a chance to complete */
24040 /* it should remain joinable and hence detachable */
24043 status = pthread_detach( &t );
24044 if( status ) return errno;
24047 #ifdef HAVE_LINUX_THREADS
24048 pthread_kill_other_threads_np();
24056 rm -f conftest$ac_exeext
24057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24058 (eval $ac_link) 2>&5
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24067 ol_cv_pthread_create_works=yes
24069 echo "$as_me: program exited with status $ac_status" >&5
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ( exit $ac_status )
24074 ol_cv_pthread_create_works=no
24076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24079 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24080 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24082 if test $ol_cv_pthread_create_works = no ; then
24083 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24084 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24085 { (exit 1); exit 1; }; }
24088 ol_replace_broken_yield=no
24090 if test $ol_replace_broken_yield = yes ; then
24092 cat >>confdefs.h <<\_ACEOF
24093 #define REPLACE_BROKEN_YIELD 1
24098 if test $ol_with_yielding_select = auto ; then
24099 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24100 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24101 if test "${ol_cv_pthread_select_yields+set}" = set; then
24102 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 if test "$cross_compiling" = yes; then
24106 ol_cv_pthread_select_yields=cross
24108 cat >conftest.$ac_ext <<_ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24115 #include <sys/types.h>
24116 #include <sys/time.h>
24117 #include <unistd.h>
24118 #include <pthread.h>
24120 #define NULL (void*) 0
24123 static int fildes[2];
24125 static void *task(p)
24137 FD_SET(fildes[0], &rfds);
24139 /* we're not interested in any fds */
24140 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24147 exit(0); /* if we exit here, the select blocked the whole process */
24150 int main(argc, argv)
24156 /* create a pipe to select */
24157 if(pipe(&fildes[0])) {
24162 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24163 (void) pthread_setconcurrency(2);
24165 #ifdef HAVE_THR_SETCONCURRENCY
24166 /* Set Solaris LWP concurrency to 2 */
24167 thr_setconcurrency(2);
24171 #if HAVE_PTHREADS < 6
24172 pthread_create(&t, pthread_attr_default, task, NULL);
24174 pthread_create(&t, NULL, task, NULL);
24177 /* make sure task runs first */
24180 #elif defined( HAVE_SCHED_YIELD )
24182 #elif defined( HAVE_PTHREAD_YIELD )
24189 rm -f conftest$ac_exeext
24190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24191 (eval $ac_link) 2>&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196 (eval $ac_try) 2>&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; }; then
24200 ol_cv_pthread_select_yields=no
24202 echo "$as_me: program exited with status $ac_status" >&5
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ( exit $ac_status )
24207 ol_cv_pthread_select_yields=yes
24209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24212 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24213 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24215 if test $ol_cv_pthread_select_yields = cross ; then
24216 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24217 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24218 { (exit 1); exit 1; }; }
24221 if test $ol_cv_pthread_select_yields = yes ; then
24222 ol_with_yielding_select=yes
24226 CPPFLAGS="$save_CPPFLAGS"
24229 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24230 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24231 { (exit 1); exit 1; }; }
24235 if test $ol_with_threads = posix ; then
24236 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24237 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24238 { (exit 1); exit 1; }; }
24243 case $ol_with_threads in auto | yes | mach)
24247 for ac_header in mach/cthreads.h cthreads.h
24249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24251 echo "$as_me:$LINENO: checking for $ac_header" >&5
24252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24254 echo $ECHO_N "(cached) $ECHO_C" >&6
24256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24259 # Is the header compilable?
24260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24262 cat >conftest.$ac_ext <<_ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h. */
24268 $ac_includes_default
24269 #include <$ac_header>
24271 rm -f conftest.$ac_objext
24272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24273 (eval $ac_compile) 2>conftest.er1
24275 grep -v '^ *+' conftest.er1 >conftest.err
24277 cat conftest.err >&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); } &&
24280 { ac_try='test -z "$ac_c_werror_flag"
24281 || test ! -s conftest.err'
24282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24283 (eval $ac_try) 2>&5
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); }; } &&
24287 { ac_try='test -s conftest.$ac_objext'
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
24293 ac_header_compiler=yes
24295 echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_header_compiler=no
24300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24302 echo "${ECHO_T}$ac_header_compiler" >&6
24304 # Is the header present?
24305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 #include <$ac_header>
24315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24318 grep -v '^ *+' conftest.er1 >conftest.err
24320 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } >/dev/null; then
24323 if test -s conftest.err; then
24324 ac_cpp_err=$ac_c_preproc_warn_flag
24325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24332 if test -z "$ac_cpp_err"; then
24333 ac_header_preproc=yes
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 ac_header_preproc=no
24340 rm -f conftest.err conftest.$ac_ext
24341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24342 echo "${ECHO_T}$ac_header_preproc" >&6
24344 # So? What about this header?
24345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24351 ac_header_preproc=yes
24354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24368 ## --------------------------------------------- ##
24369 ## Report this to <http://www.openldap.org/its/> ##
24370 ## --------------------------------------------- ##
24373 sed "s/^/$as_me: WARNING: /" >&2
24376 echo "$as_me:$LINENO: checking for $ac_header" >&5
24377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24379 echo $ECHO_N "(cached) $ECHO_C" >&6
24381 eval "$as_ac_Header=\$ac_header_preproc"
24383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24388 cat >>confdefs.h <<_ACEOF
24389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24396 if test $ac_cv_header_mach_cthreads_h = yes ; then
24397 ol_with_threads=found
24399 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24400 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24401 if test "${ac_cv_func_cthread_fork+set}" = set; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24404 cat >conftest.$ac_ext <<_ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24410 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24412 #define cthread_fork innocuous_cthread_fork
24414 /* System header to define __stub macros and hopefully few prototypes,
24415 which can conflict with char cthread_fork (); below.
24416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24417 <limits.h> exists even on freestanding compilers. */
24420 # include <limits.h>
24422 # include <assert.h>
24425 #undef cthread_fork
24427 /* Override any gcc2 internal prototype to avoid an error. */
24432 /* We use char because int might match the return type of a gcc2
24433 builtin and then its argument prototype would still apply. */
24434 char cthread_fork ();
24435 /* The GNU C library defines this for functions which it implements
24436 to always fail with ENOSYS. Some functions are actually named
24437 something starting with __ and the normal name is an alias. */
24438 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24441 char (*f) () = cthread_fork;
24450 return f != cthread_fork;
24455 rm -f conftest.$ac_objext conftest$ac_exeext
24456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24457 (eval $ac_link) 2>conftest.er1
24459 grep -v '^ *+' conftest.er1 >conftest.err
24461 cat conftest.err >&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } &&
24464 { ac_try='test -z "$ac_c_werror_flag"
24465 || test ! -s conftest.err'
24466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); }; } &&
24471 { ac_try='test -s conftest$ac_exeext'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; }; then
24477 ac_cv_func_cthread_fork=yes
24479 echo "$as_me: failed program was:" >&5
24480 sed 's/^/| /' conftest.$ac_ext >&5
24482 ac_cv_func_cthread_fork=no
24484 rm -f conftest.err conftest.$ac_objext \
24485 conftest$ac_exeext conftest.$ac_ext
24487 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24488 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24489 if test $ac_cv_func_cthread_fork = yes; then
24490 ol_link_threads=yes
24494 if test $ol_link_threads = no ; then
24495 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24496 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24497 if test "${ol_cv_cthread_all_load+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 LIBS="-all_load $LIBS"
24503 cat >conftest.$ac_ext <<_ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24509 #include <mach/cthreads.h>
24514 cthread_fork((void *)0, (void *)0);
24520 rm -f conftest.$ac_objext conftest$ac_exeext
24521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24522 (eval $ac_link) 2>conftest.er1
24524 grep -v '^ *+' conftest.er1 >conftest.err
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } &&
24529 { ac_try='test -z "$ac_c_werror_flag"
24530 || test ! -s conftest.err'
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; } &&
24536 { ac_try='test -s conftest$ac_exeext'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 ol_cv_cthread_all_load=yes
24544 echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 ol_cv_cthread_all_load=no
24549 rm -f conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
24554 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24555 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24557 if test $ol_cv_cthread_all_load = yes ; then
24558 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24559 ol_link_threads=mach
24560 ol_with_threads=found
24564 elif test $ac_cv_header_cthreads_h = yes ; then
24566 ol_with_threads=found
24569 LIBS="$LIBS -lthreads"
24570 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24571 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24572 if test "${ac_cv_func_cthread_fork+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24575 cat >conftest.$ac_ext <<_ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h. */
24581 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24583 #define cthread_fork innocuous_cthread_fork
24585 /* System header to define __stub macros and hopefully few prototypes,
24586 which can conflict with char cthread_fork (); below.
24587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24588 <limits.h> exists even on freestanding compilers. */
24591 # include <limits.h>
24593 # include <assert.h>
24596 #undef cthread_fork
24598 /* Override any gcc2 internal prototype to avoid an error. */
24603 /* We use char because int might match the return type of a gcc2
24604 builtin and then its argument prototype would still apply. */
24605 char cthread_fork ();
24606 /* The GNU C library defines this for functions which it implements
24607 to always fail with ENOSYS. Some functions are actually named
24608 something starting with __ and the normal name is an alias. */
24609 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24612 char (*f) () = cthread_fork;
24621 return f != cthread_fork;
24626 rm -f conftest.$ac_objext conftest$ac_exeext
24627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24628 (eval $ac_link) 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } &&
24635 { ac_try='test -z "$ac_c_werror_flag"
24636 || test ! -s conftest.err'
24637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24638 (eval $ac_try) 2>&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); }; } &&
24642 { ac_try='test -s conftest$ac_exeext'
24643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644 (eval $ac_try) 2>&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); }; }; then
24648 ac_cv_func_cthread_fork=yes
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 ac_cv_func_cthread_fork=no
24655 rm -f conftest.err conftest.$ac_objext \
24656 conftest$ac_exeext conftest.$ac_ext
24658 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24659 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24660 if test $ac_cv_func_cthread_fork = yes; then
24661 ol_link_threads=yes
24666 if test $ol_link_threads = yes ; then
24667 LTHREAD_LIBS="-lthreads"
24668 ol_link_threads=mach
24669 ol_with_threads=found
24671 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24672 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24673 { (exit 1); exit 1; }; }
24676 elif test $ol_with_threads = mach ; then
24677 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24678 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24679 { (exit 1); exit 1; }; }
24682 if test $ol_link_threads = mach ; then
24684 cat >>confdefs.h <<\_ACEOF
24685 #define HAVE_MACH_CTHREADS 1
24688 elif test $ol_with_threads = found ; then
24689 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24690 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24691 { (exit 1); exit 1; }; }
24696 case $ol_with_threads in auto | yes | pth)
24699 for ac_header in pth.h
24701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24703 echo "$as_me:$LINENO: checking for $ac_header" >&5
24704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
24708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24711 # Is the header compilable?
24712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24714 cat >conftest.$ac_ext <<_ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h. */
24720 $ac_includes_default
24721 #include <$ac_header>
24723 rm -f conftest.$ac_objext
24724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24725 (eval $ac_compile) 2>conftest.er1
24727 grep -v '^ *+' conftest.er1 >conftest.err
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } &&
24732 { ac_try='test -z "$ac_c_werror_flag"
24733 || test ! -s conftest.err'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest.$ac_objext'
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 ac_header_compiler=yes
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ac_header_compiler=no
24752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24754 echo "${ECHO_T}$ac_header_compiler" >&6
24756 # Is the header present?
24757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24759 cat >conftest.$ac_ext <<_ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h. */
24765 #include <$ac_header>
24767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24770 grep -v '^ *+' conftest.er1 >conftest.err
24772 cat conftest.err >&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } >/dev/null; then
24775 if test -s conftest.err; then
24776 ac_cpp_err=$ac_c_preproc_warn_flag
24777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24784 if test -z "$ac_cpp_err"; then
24785 ac_header_preproc=yes
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24790 ac_header_preproc=no
24792 rm -f conftest.err conftest.$ac_ext
24793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24794 echo "${ECHO_T}$ac_header_preproc" >&6
24796 # So? What about this header?
24797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24803 ac_header_preproc=yes
24806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24820 ## --------------------------------------------- ##
24821 ## Report this to <http://www.openldap.org/its/> ##
24822 ## --------------------------------------------- ##
24825 sed "s/^/$as_me: WARNING: /" >&2
24828 echo "$as_me:$LINENO: checking for $ac_header" >&5
24829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24831 echo $ECHO_N "(cached) $ECHO_C" >&6
24833 eval "$as_ac_Header=\$ac_header_preproc"
24835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24840 cat >>confdefs.h <<_ACEOF
24841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24849 if test $ac_cv_header_pth_h = yes ; then
24850 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
24851 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
24852 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 ac_check_lib_save_LIBS=$LIBS
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24864 /* Override any gcc2 internal prototype to avoid an error. */
24868 /* We use char because int might match the return type of a gcc2
24869 builtin and then its argument prototype would still apply. */
24870 char pth_version ();
24879 rm -f conftest.$ac_objext conftest$ac_exeext
24880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24881 (eval $ac_link) 2>conftest.er1
24883 grep -v '^ *+' conftest.er1 >conftest.err
24885 cat conftest.err >&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); } &&
24888 { ac_try='test -z "$ac_c_werror_flag"
24889 || test ! -s conftest.err'
24890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; } &&
24895 { ac_try='test -s conftest$ac_exeext'
24896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24897 (eval $ac_try) 2>&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); }; }; then
24901 ac_cv_lib_pth_pth_version=yes
24903 echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24906 ac_cv_lib_pth_pth_version=no
24908 rm -f conftest.err conftest.$ac_objext \
24909 conftest$ac_exeext conftest.$ac_ext
24910 LIBS=$ac_check_lib_save_LIBS
24912 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
24913 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
24914 if test $ac_cv_lib_pth_pth_version = yes; then
24921 if test $have_pth = yes ; then
24923 cat >>confdefs.h <<\_ACEOF
24924 #define HAVE_GNU_PTH 1
24927 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
24928 ol_link_threads=pth
24929 ol_with_threads=found
24931 if test $ol_with_yielding_select = auto ; then
24932 ol_with_yielding_select=yes
24939 case $ol_with_threads in auto | yes | lwp)
24943 for ac_header in thread.h synch.h
24945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24947 echo "$as_me:$LINENO: checking for $ac_header" >&5
24948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24955 # Is the header compilable?
24956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 $ac_includes_default
24965 #include <$ac_header>
24967 rm -f conftest.$ac_objext
24968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24969 (eval $ac_compile) 2>conftest.er1
24971 grep -v '^ *+' conftest.er1 >conftest.err
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } &&
24976 { ac_try='test -z "$ac_c_werror_flag"
24977 || test ! -s conftest.err'
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; } &&
24983 { ac_try='test -s conftest.$ac_objext'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; }; then
24989 ac_header_compiler=yes
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ac_header_compiler=no
24996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24998 echo "${ECHO_T}$ac_header_compiler" >&6
25000 # Is the header present?
25001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25003 cat >conftest.$ac_ext <<_ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25009 #include <$ac_header>
25011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } >/dev/null; then
25019 if test -s conftest.err; then
25020 ac_cpp_err=$ac_c_preproc_warn_flag
25021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25028 if test -z "$ac_cpp_err"; then
25029 ac_header_preproc=yes
25031 echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25034 ac_header_preproc=no
25036 rm -f conftest.err conftest.$ac_ext
25037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25038 echo "${ECHO_T}$ac_header_preproc" >&6
25040 # So? What about this header?
25041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25047 ac_header_preproc=yes
25050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25064 ## --------------------------------------------- ##
25065 ## Report this to <http://www.openldap.org/its/> ##
25066 ## --------------------------------------------- ##
25069 sed "s/^/$as_me: WARNING: /" >&2
25072 echo "$as_me:$LINENO: checking for $ac_header" >&5
25073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 eval "$as_ac_Header=\$ac_header_preproc"
25079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25084 cat >>confdefs.h <<_ACEOF
25085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25092 if test $ac_cv_header_thread_h = yes &&
25093 test $ac_cv_header_synch_h = yes ; then
25094 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25095 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25096 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 ac_check_lib_save_LIBS=$LIBS
25100 LIBS="-lthread $LIBS"
25101 cat >conftest.$ac_ext <<_ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25108 /* Override any gcc2 internal prototype to avoid an error. */
25112 /* We use char because int might match the return type of a gcc2
25113 builtin and then its argument prototype would still apply. */
25114 char thr_create ();
25123 rm -f conftest.$ac_objext conftest$ac_exeext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25125 (eval $ac_link) 2>conftest.er1
25127 grep -v '^ *+' conftest.er1 >conftest.err
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } &&
25132 { ac_try='test -z "$ac_c_werror_flag"
25133 || test ! -s conftest.err'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest$ac_exeext'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 ac_cv_lib_thread_thr_create=yes
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 ac_cv_lib_thread_thr_create=no
25152 rm -f conftest.err conftest.$ac_objext \
25153 conftest$ac_exeext conftest.$ac_ext
25154 LIBS=$ac_check_lib_save_LIBS
25156 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25157 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25158 if test $ac_cv_lib_thread_thr_create = yes; then
25165 if test $have_thr = yes ; then
25167 cat >>confdefs.h <<\_ACEOF
25171 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25172 ol_link_threads=thr
25174 if test $ol_with_yielding_select = auto ; then
25175 ol_with_yielding_select=yes
25181 thr_setconcurrency \
25182 thr_getconcurrency \
25185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25186 echo "$as_me:$LINENO: checking for $ac_func" >&5
25187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25188 if eval "test \"\${$as_ac_var+set}\" = set"; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25199 #define $ac_func innocuous_$ac_func
25201 /* System header to define __stub macros and hopefully few prototypes,
25202 which can conflict with char $ac_func (); below.
25203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25204 <limits.h> exists even on freestanding compilers. */
25207 # include <limits.h>
25209 # include <assert.h>
25214 /* Override any gcc2 internal prototype to avoid an error. */
25219 /* We use char because int might match the return type of a gcc2
25220 builtin and then its argument prototype would still apply. */
25222 /* The GNU C library defines this for functions which it implements
25223 to always fail with ENOSYS. Some functions are actually named
25224 something starting with __ and the normal name is an alias. */
25225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25228 char (*f) () = $ac_func;
25237 return f != $ac_func;
25242 rm -f conftest.$ac_objext conftest$ac_exeext
25243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25244 (eval $ac_link) 2>conftest.er1
25246 grep -v '^ *+' conftest.er1 >conftest.err
25248 cat conftest.err >&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); } &&
25251 { ac_try='test -z "$ac_c_werror_flag"
25252 || test ! -s conftest.err'
25253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254 (eval $ac_try) 2>&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }; } &&
25258 { ac_try='test -s conftest$ac_exeext'
25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; }; then
25264 eval "$as_ac_var=yes"
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25269 eval "$as_ac_var=no"
25271 rm -f conftest.err conftest.$ac_objext \
25272 conftest$ac_exeext conftest.$ac_ext
25274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25276 if test `eval echo '${'$as_ac_var'}'` = yes; then
25277 cat >>confdefs.h <<_ACEOF
25278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25288 for ac_header in lwp/lwp.h
25290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25292 echo "$as_me:$LINENO: checking for $ac_header" >&5
25293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25295 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25300 # Is the header compilable?
25301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 $ac_includes_default
25310 #include <$ac_header>
25312 rm -f conftest.$ac_objext
25313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25314 (eval $ac_compile) 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } &&
25321 { ac_try='test -z "$ac_c_werror_flag"
25322 || test ! -s conftest.err'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; } &&
25328 { ac_try='test -s conftest.$ac_objext'
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; }; then
25334 ac_header_compiler=yes
25336 echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25339 ac_header_compiler=no
25341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25343 echo "${ECHO_T}$ac_header_compiler" >&6
25345 # Is the header present?
25346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25348 cat >conftest.$ac_ext <<_ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 #include <$ac_header>
25356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25359 grep -v '^ *+' conftest.er1 >conftest.err
25361 cat conftest.err >&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } >/dev/null; then
25364 if test -s conftest.err; then
25365 ac_cpp_err=$ac_c_preproc_warn_flag
25366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25373 if test -z "$ac_cpp_err"; then
25374 ac_header_preproc=yes
25376 echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25379 ac_header_preproc=no
25381 rm -f conftest.err conftest.$ac_ext
25382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25383 echo "${ECHO_T}$ac_header_preproc" >&6
25385 # So? What about this header?
25386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25392 ac_header_preproc=yes
25395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25409 ## --------------------------------------------- ##
25410 ## Report this to <http://www.openldap.org/its/> ##
25411 ## --------------------------------------------- ##
25414 sed "s/^/$as_me: WARNING: /" >&2
25417 echo "$as_me:$LINENO: checking for $ac_header" >&5
25418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25422 eval "$as_ac_Header=\$ac_header_preproc"
25424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25429 cat >>confdefs.h <<_ACEOF
25430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25437 if test $ac_cv_header_lwp_lwp_h = yes ; then
25438 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25439 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25440 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25441 echo $ECHO_N "(cached) $ECHO_C" >&6
25443 ac_check_lib_save_LIBS=$LIBS
25445 cat >conftest.$ac_ext <<_ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h. */
25452 /* Override any gcc2 internal prototype to avoid an error. */
25456 /* We use char because int might match the return type of a gcc2
25457 builtin and then its argument prototype would still apply. */
25458 char lwp_create ();
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25469 (eval $ac_link) 2>conftest.er1
25471 grep -v '^ *+' conftest.er1 >conftest.err
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } &&
25476 { ac_try='test -z "$ac_c_werror_flag"
25477 || test ! -s conftest.err'
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; } &&
25483 { ac_try='test -s conftest$ac_exeext'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 ac_cv_lib_lwp_lwp_create=yes
25491 echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25494 ac_cv_lib_lwp_lwp_create=no
25496 rm -f conftest.err conftest.$ac_objext \
25497 conftest$ac_exeext conftest.$ac_ext
25498 LIBS=$ac_check_lib_save_LIBS
25500 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25501 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25502 if test $ac_cv_lib_lwp_lwp_create = yes; then
25509 if test $have_lwp = yes ; then
25511 cat >>confdefs.h <<\_ACEOF
25515 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25516 ol_link_threads=lwp
25518 if test $ol_with_yielding_select = auto ; then
25519 ol_with_yielding_select=no
25526 if test $ol_with_yielding_select = yes ; then
25528 cat >>confdefs.h <<\_ACEOF
25529 #define HAVE_YIELDING_SELECT 1
25534 if test $ol_with_threads = manual ; then
25535 ol_link_threads=yes
25537 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25538 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25542 for ac_header in pthread.h sched.h
25544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25546 echo "$as_me:$LINENO: checking for $ac_header" >&5
25547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25554 # Is the header compilable?
25555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25557 cat >conftest.$ac_ext <<_ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h. */
25563 $ac_includes_default
25564 #include <$ac_header>
25566 rm -f conftest.$ac_objext
25567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25568 (eval $ac_compile) 2>conftest.er1
25570 grep -v '^ *+' conftest.er1 >conftest.err
25572 cat conftest.err >&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } &&
25575 { ac_try='test -z "$ac_c_werror_flag"
25576 || test ! -s conftest.err'
25577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25578 (eval $ac_try) 2>&5
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); }; } &&
25582 { ac_try='test -s conftest.$ac_objext'
25583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25584 (eval $ac_try) 2>&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); }; }; then
25588 ac_header_compiler=yes
25590 echo "$as_me: failed program was:" >&5
25591 sed 's/^/| /' conftest.$ac_ext >&5
25593 ac_header_compiler=no
25595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25597 echo "${ECHO_T}$ac_header_compiler" >&6
25599 # Is the header present?
25600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25602 cat >conftest.$ac_ext <<_ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25608 #include <$ac_header>
25610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25613 grep -v '^ *+' conftest.er1 >conftest.err
25615 cat conftest.err >&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } >/dev/null; then
25618 if test -s conftest.err; then
25619 ac_cpp_err=$ac_c_preproc_warn_flag
25620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25627 if test -z "$ac_cpp_err"; then
25628 ac_header_preproc=yes
25630 echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25633 ac_header_preproc=no
25635 rm -f conftest.err conftest.$ac_ext
25636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25637 echo "${ECHO_T}$ac_header_preproc" >&6
25639 # So? What about this header?
25640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25646 ac_header_preproc=yes
25649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25663 ## --------------------------------------------- ##
25664 ## Report this to <http://www.openldap.org/its/> ##
25665 ## --------------------------------------------- ##
25668 sed "s/^/$as_me: WARNING: /" >&2
25671 echo "$as_me:$LINENO: checking for $ac_header" >&5
25672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25674 echo $ECHO_N "(cached) $ECHO_C" >&6
25676 eval "$as_ac_Header=\$ac_header_preproc"
25678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25683 cat >>confdefs.h <<_ACEOF
25684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25693 for ac_func in sched_yield pthread_yield
25695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25696 echo "$as_me:$LINENO: checking for $ac_func" >&5
25697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25698 if eval "test \"\${$as_ac_var+set}\" = set"; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 cat >conftest.$ac_ext <<_ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25709 #define $ac_func innocuous_$ac_func
25711 /* System header to define __stub macros and hopefully few prototypes,
25712 which can conflict with char $ac_func (); below.
25713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25714 <limits.h> exists even on freestanding compilers. */
25717 # include <limits.h>
25719 # include <assert.h>
25724 /* Override any gcc2 internal prototype to avoid an error. */
25729 /* We use char because int might match the return type of a gcc2
25730 builtin and then its argument prototype would still apply. */
25732 /* The GNU C library defines this for functions which it implements
25733 to always fail with ENOSYS. Some functions are actually named
25734 something starting with __ and the normal name is an alias. */
25735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25738 char (*f) () = $ac_func;
25747 return f != $ac_func;
25752 rm -f conftest.$ac_objext conftest$ac_exeext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25754 (eval $ac_link) 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } &&
25761 { ac_try='test -z "$ac_c_werror_flag"
25762 || test ! -s conftest.err'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; } &&
25768 { ac_try='test -s conftest$ac_exeext'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; }; then
25774 eval "$as_ac_var=yes"
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 eval "$as_ac_var=no"
25781 rm -f conftest.err conftest.$ac_objext \
25782 conftest$ac_exeext conftest.$ac_ext
25784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25786 if test `eval echo '${'$as_ac_var'}'` = yes; then
25787 cat >>confdefs.h <<_ACEOF
25788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25795 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25796 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25797 if test "${ol_cv_header_linux_threads+set}" = set; then
25798 echo $ECHO_N "(cached) $ECHO_C" >&6
25800 cat >conftest.$ac_ext <<_ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25806 #include <pthread.h>
25808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25809 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
25810 ol_cv_header_linux_threads=yes
25812 ol_cv_header_linux_threads=no
25818 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
25819 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
25820 if test $ol_cv_header_linux_threads = yes; then
25822 cat >>confdefs.h <<\_ACEOF
25823 #define HAVE_LINUX_THREADS 1
25830 for ac_header in mach/cthreads.h
25832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25834 echo "$as_me:$LINENO: checking for $ac_header" >&5
25835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
25839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25842 # Is the header compilable?
25843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25845 cat >conftest.$ac_ext <<_ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h. */
25851 $ac_includes_default
25852 #include <$ac_header>
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856 (eval $ac_compile) 2>conftest.er1
25858 grep -v '^ *+' conftest.er1 >conftest.err
25860 cat conftest.err >&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } &&
25863 { ac_try='test -z "$ac_c_werror_flag"
25864 || test ! -s conftest.err'
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; } &&
25870 { ac_try='test -s conftest.$ac_objext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 ac_header_compiler=yes
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25881 ac_header_compiler=no
25883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25885 echo "${ECHO_T}$ac_header_compiler" >&6
25887 # Is the header present?
25888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25890 cat >conftest.$ac_ext <<_ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25896 #include <$ac_header>
25898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } >/dev/null; then
25906 if test -s conftest.err; then
25907 ac_cpp_err=$ac_c_preproc_warn_flag
25908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25915 if test -z "$ac_cpp_err"; then
25916 ac_header_preproc=yes
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 ac_header_preproc=no
25923 rm -f conftest.err conftest.$ac_ext
25924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25925 echo "${ECHO_T}$ac_header_preproc" >&6
25927 # So? What about this header?
25928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25934 ac_header_preproc=yes
25937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25951 ## --------------------------------------------- ##
25952 ## Report this to <http://www.openldap.org/its/> ##
25953 ## --------------------------------------------- ##
25956 sed "s/^/$as_me: WARNING: /" >&2
25959 echo "$as_me:$LINENO: checking for $ac_header" >&5
25960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
25964 eval "$as_ac_Header=\$ac_header_preproc"
25966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25971 cat >>confdefs.h <<_ACEOF
25972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25980 for ac_header in lwp/lwp.h
25982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25984 echo "$as_me:$LINENO: checking for $ac_header" >&5
25985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25992 # Is the header compilable?
25993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26001 $ac_includes_default
26002 #include <$ac_header>
26004 rm -f conftest.$ac_objext
26005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26006 (eval $ac_compile) 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } &&
26013 { ac_try='test -z "$ac_c_werror_flag"
26014 || test ! -s conftest.err'
26015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016 (eval $ac_try) 2>&5
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; } &&
26020 { ac_try='test -s conftest.$ac_objext'
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026 ac_header_compiler=yes
26028 echo "$as_me: failed program was:" >&5
26029 sed 's/^/| /' conftest.$ac_ext >&5
26031 ac_header_compiler=no
26033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26035 echo "${ECHO_T}$ac_header_compiler" >&6
26037 # Is the header present?
26038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26040 cat >conftest.$ac_ext <<_ACEOF
26043 cat confdefs.h >>conftest.$ac_ext
26044 cat >>conftest.$ac_ext <<_ACEOF
26045 /* end confdefs.h. */
26046 #include <$ac_header>
26048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26051 grep -v '^ *+' conftest.er1 >conftest.err
26053 cat conftest.err >&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); } >/dev/null; then
26056 if test -s conftest.err; then
26057 ac_cpp_err=$ac_c_preproc_warn_flag
26058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26065 if test -z "$ac_cpp_err"; then
26066 ac_header_preproc=yes
26068 echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26071 ac_header_preproc=no
26073 rm -f conftest.err conftest.$ac_ext
26074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26075 echo "${ECHO_T}$ac_header_preproc" >&6
26077 # So? What about this header?
26078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26084 ac_header_preproc=yes
26087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26101 ## --------------------------------------------- ##
26102 ## Report this to <http://www.openldap.org/its/> ##
26103 ## --------------------------------------------- ##
26106 sed "s/^/$as_me: WARNING: /" >&2
26109 echo "$as_me:$LINENO: checking for $ac_header" >&5
26110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26112 echo $ECHO_N "(cached) $ECHO_C" >&6
26114 eval "$as_ac_Header=\$ac_header_preproc"
26116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26121 cat >>confdefs.h <<_ACEOF
26122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26131 for ac_header in thread.h synch.h
26133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26135 echo "$as_me:$LINENO: checking for $ac_header" >&5
26136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26143 # Is the header compilable?
26144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26146 cat >conftest.$ac_ext <<_ACEOF
26149 cat confdefs.h >>conftest.$ac_ext
26150 cat >>conftest.$ac_ext <<_ACEOF
26151 /* end confdefs.h. */
26152 $ac_includes_default
26153 #include <$ac_header>
26155 rm -f conftest.$ac_objext
26156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26157 (eval $ac_compile) 2>conftest.er1
26159 grep -v '^ *+' conftest.er1 >conftest.err
26161 cat conftest.err >&5
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); } &&
26164 { ac_try='test -z "$ac_c_werror_flag"
26165 || test ! -s conftest.err'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; } &&
26171 { ac_try='test -s conftest.$ac_objext'
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; }; then
26177 ac_header_compiler=yes
26179 echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26182 ac_header_compiler=no
26184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26186 echo "${ECHO_T}$ac_header_compiler" >&6
26188 # Is the header present?
26189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26191 cat >conftest.$ac_ext <<_ACEOF
26194 cat confdefs.h >>conftest.$ac_ext
26195 cat >>conftest.$ac_ext <<_ACEOF
26196 /* end confdefs.h. */
26197 #include <$ac_header>
26199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26202 grep -v '^ *+' conftest.er1 >conftest.err
26204 cat conftest.err >&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); } >/dev/null; then
26207 if test -s conftest.err; then
26208 ac_cpp_err=$ac_c_preproc_warn_flag
26209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26216 if test -z "$ac_cpp_err"; then
26217 ac_header_preproc=yes
26219 echo "$as_me: failed program was:" >&5
26220 sed 's/^/| /' conftest.$ac_ext >&5
26222 ac_header_preproc=no
26224 rm -f conftest.err conftest.$ac_ext
26225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26226 echo "${ECHO_T}$ac_header_preproc" >&6
26228 # So? What about this header?
26229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26235 ac_header_preproc=yes
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26252 ## --------------------------------------------- ##
26253 ## Report this to <http://www.openldap.org/its/> ##
26254 ## --------------------------------------------- ##
26257 sed "s/^/$as_me: WARNING: /" >&2
26260 echo "$as_me:$LINENO: checking for $ac_header" >&5
26261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26263 echo $ECHO_N "(cached) $ECHO_C" >&6
26265 eval "$as_ac_Header=\$ac_header_preproc"
26267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26272 cat >>confdefs.h <<_ACEOF
26273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26282 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26283 cat >>confdefs.h <<\_ACEOF
26284 #define REENTRANT 1
26287 cat >>confdefs.h <<\_ACEOF
26288 #define _REENTRANT 1
26291 cat >>confdefs.h <<\_ACEOF
26292 #define THREAD_SAFE 1
26295 cat >>confdefs.h <<\_ACEOF
26296 #define _THREAD_SAFE 1
26299 cat >>confdefs.h <<\_ACEOF
26300 #define THREADSAFE 1
26303 cat >>confdefs.h <<\_ACEOF
26304 #define _THREADSAFE 1
26307 cat >>confdefs.h <<\_ACEOF
26308 #define _SGI_MP_SOURCE 1
26312 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26313 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26314 if test "${ol_cv_errno_thread_specific+set}" = set; then
26315 echo $ECHO_N "(cached) $ECHO_C" >&6
26318 cat >conftest.$ac_ext <<_ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26335 (eval $ac_link) 2>conftest.er1
26337 grep -v '^ *+' conftest.er1 >conftest.err
26339 cat conftest.err >&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } &&
26342 { ac_try='test -z "$ac_c_werror_flag"
26343 || test ! -s conftest.err'
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; } &&
26349 { ac_try='test -s conftest$ac_exeext'
26350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26351 (eval $ac_try) 2>&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); }; }; then
26355 ol_cv_errno_thread_specific=yes
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26360 ol_cv_errno_thread_specific=no
26362 rm -f conftest.err conftest.$ac_objext \
26363 conftest$ac_exeext conftest.$ac_ext
26366 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26367 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26369 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26370 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26371 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26372 echo $ECHO_N "(cached) $ECHO_C" >&6
26375 cat >conftest.$ac_ext <<_ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h. */
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26392 (eval $ac_link) 2>conftest.er1
26394 grep -v '^ *+' conftest.er1 >conftest.err
26396 cat conftest.err >&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } &&
26399 { ac_try='test -z "$ac_c_werror_flag"
26400 || test ! -s conftest.err'
26401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402 (eval $ac_try) 2>&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; } &&
26406 { ac_try='test -s conftest$ac_exeext'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; }; then
26412 ol_cv_h_errno_thread_specific=yes
26414 echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26417 ol_cv_h_errno_thread_specific=no
26419 rm -f conftest.err conftest.$ac_objext \
26420 conftest$ac_exeext conftest.$ac_ext
26423 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26424 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26426 if test $ol_cv_errno_thread_specific != yes ||
26427 test $ol_cv_h_errno_thread_specific != yes ; then
26428 LIBS="$LTHREAD_LIBS $LIBS"
26434 if test $ol_link_threads = no ; then
26435 if test $ol_with_threads = yes ; then
26436 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26437 echo "$as_me: error: no suitable thread support" >&2;}
26438 { (exit 1); exit 1; }; }
26441 if test $ol_with_threads = auto ; then
26442 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26443 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26448 cat >>confdefs.h <<\_ACEOF
26449 #define NO_THREADS 1
26458 if test $ol_link_threads != no ; then
26460 cat >>confdefs.h <<\_ACEOF
26461 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26471 gethostbyname_r gethostbyaddr_r \
26474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26475 echo "$as_me:$LINENO: checking for $ac_func" >&5
26476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26477 if eval "test \"\${$as_ac_var+set}\" = set"; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26480 cat >conftest.$ac_ext <<_ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h. */
26486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26488 #define $ac_func innocuous_$ac_func
26490 /* System header to define __stub macros and hopefully few prototypes,
26491 which can conflict with char $ac_func (); below.
26492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26493 <limits.h> exists even on freestanding compilers. */
26496 # include <limits.h>
26498 # include <assert.h>
26503 /* Override any gcc2 internal prototype to avoid an error. */
26508 /* We use char because int might match the return type of a gcc2
26509 builtin and then its argument prototype would still apply. */
26511 /* The GNU C library defines this for functions which it implements
26512 to always fail with ENOSYS. Some functions are actually named
26513 something starting with __ and the normal name is an alias. */
26514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26517 char (*f) () = $ac_func;
26526 return f != $ac_func;
26531 rm -f conftest.$ac_objext conftest$ac_exeext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533 (eval $ac_link) 2>conftest.er1
26535 grep -v '^ *+' conftest.er1 >conftest.err
26537 cat conftest.err >&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -z "$ac_c_werror_flag"
26541 || test ! -s conftest.err'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest$ac_exeext'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; }; then
26553 eval "$as_ac_var=yes"
26555 echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26558 eval "$as_ac_var=no"
26560 rm -f conftest.err conftest.$ac_objext \
26561 conftest$ac_exeext conftest.$ac_ext
26563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26565 if test `eval echo '${'$as_ac_var'}'` = yes; then
26566 cat >>confdefs.h <<_ACEOF
26567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26574 if test "$ac_cv_func_ctime_r" = no ; then
26575 ol_cv_func_ctime_r_nargs=0
26577 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26578 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26579 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26580 echo $ECHO_N "(cached) $ECHO_C" >&6
26582 cat >conftest.$ac_ext <<_ACEOF
26585 cat confdefs.h >>conftest.$ac_ext
26586 cat >>conftest.$ac_ext <<_ACEOF
26587 /* end confdefs.h. */
26592 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26597 rm -f conftest.$ac_objext
26598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26599 (eval $ac_compile) 2>conftest.er1
26601 grep -v '^ *+' conftest.er1 >conftest.err
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } &&
26606 { ac_try='test -z "$ac_c_werror_flag"
26607 || test ! -s conftest.err'
26608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609 (eval $ac_try) 2>&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); }; } &&
26613 { ac_try='test -s conftest.$ac_objext'
26614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615 (eval $ac_try) 2>&5
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); }; }; then
26619 ol_cv_func_ctime_r_nargs3=yes
26621 echo "$as_me: failed program was:" >&5
26622 sed 's/^/| /' conftest.$ac_ext >&5
26624 ol_cv_func_ctime_r_nargs3=no
26626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26638 time_t ti; char *buffer; ctime_r(&ti,buffer);
26643 rm -f conftest.$ac_objext
26644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26645 (eval $ac_compile) 2>conftest.er1
26647 grep -v '^ *+' conftest.er1 >conftest.err
26649 cat conftest.err >&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } &&
26652 { ac_try='test -z "$ac_c_werror_flag"
26653 || test ! -s conftest.err'
26654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655 (eval $ac_try) 2>&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); }; } &&
26659 { ac_try='test -s conftest.$ac_objext'
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; }; then
26665 ol_cv_func_ctime_r_nargs2=yes
26667 echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26670 ol_cv_func_ctime_r_nargs2=no
26672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26674 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26675 test $ol_cv_func_ctime_r_nargs2 = no ; then
26677 ol_cv_func_ctime_r_nargs=3
26679 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26680 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26682 ol_cv_func_ctime_r_nargs=2
26685 ol_cv_func_ctime_r_nargs=0
26689 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26690 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26692 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26694 cat >>confdefs.h <<_ACEOF
26695 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26702 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26703 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26704 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26705 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26708 cat >conftest.$ac_ext <<_ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26714 #include <sys/types.h>
26715 #include <sys/socket.h>
26716 #include <netinet/in.h>
26718 #define BUFSIZE (sizeof(struct hostent)+10)
26722 struct hostent hent; char buffer[BUFSIZE];
26723 int bufsize=BUFSIZE;int h_errno;
26724 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26725 buffer, bufsize, &h_errno);
26730 rm -f conftest.$ac_objext
26731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26732 (eval $ac_compile) 2>conftest.er1
26734 grep -v '^ *+' conftest.er1 >conftest.err
26736 cat conftest.err >&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } &&
26739 { ac_try='test -z "$ac_c_werror_flag"
26740 || test ! -s conftest.err'
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; } &&
26746 { ac_try='test -s conftest.$ac_objext'
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); }; }; then
26752 ol_cv_func_gethostbyname_r_nargs5=yes
26754 echo "$as_me: failed program was:" >&5
26755 sed 's/^/| /' conftest.$ac_ext >&5
26757 ol_cv_func_gethostbyname_r_nargs5=no
26759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26761 cat >conftest.$ac_ext <<_ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26767 #include <sys/types.h>
26768 #include <sys/socket.h>
26769 #include <netinet/in.h>
26771 #define BUFSIZE (sizeof(struct hostent)+10)
26775 struct hostent hent;struct hostent *rhent;
26776 char buffer[BUFSIZE];
26777 int bufsize=BUFSIZE;int h_errno;
26778 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26784 rm -f conftest.$ac_objext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26786 (eval $ac_compile) 2>conftest.er1
26788 grep -v '^ *+' conftest.er1 >conftest.err
26790 cat conftest.err >&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
26793 { ac_try='test -z "$ac_c_werror_flag"
26794 || test ! -s conftest.err'
26795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796 (eval $ac_try) 2>&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); }; } &&
26800 { ac_try='test -s conftest.$ac_objext'
26801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 ol_cv_func_gethostbyname_r_nargs6=yes
26808 echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26811 ol_cv_func_gethostbyname_r_nargs6=no
26813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26815 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
26816 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
26818 ol_cv_func_gethostbyname_r_nargs=5
26820 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
26821 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
26823 ol_cv_func_gethostbyname_r_nargs=6
26826 ol_cv_func_gethostbyname_r_nargs=0
26830 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
26831 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
26832 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
26834 cat >>confdefs.h <<_ACEOF
26835 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
26841 ol_cv_func_gethostbyname_r_nargs=0
26844 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
26845 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
26846 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
26847 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
26850 cat >conftest.$ac_ext <<_ACEOF
26853 cat confdefs.h >>conftest.$ac_ext
26854 cat >>conftest.$ac_ext <<_ACEOF
26855 /* end confdefs.h. */
26856 #include <sys/types.h>
26857 #include <sys/socket.h>
26858 #include <netinet/in.h>
26860 #define BUFSIZE (sizeof(struct hostent)+10)
26864 struct hostent hent; char buffer[BUFSIZE];
26865 struct in_addr add;
26866 size_t alen=sizeof(struct in_addr);
26867 int bufsize=BUFSIZE;int h_errno;
26868 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26869 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876 (eval $ac_compile) 2>conftest.er1
26878 grep -v '^ *+' conftest.er1 >conftest.err
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } &&
26883 { ac_try='test -z "$ac_c_werror_flag"
26884 || test ! -s conftest.err'
26885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886 (eval $ac_try) 2>&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; } &&
26890 { ac_try='test -s conftest.$ac_objext'
26891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892 (eval $ac_try) 2>&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); }; }; then
26896 ol_cv_func_gethostbyaddr_r_nargs7=yes
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ol_cv_func_gethostbyaddr_r_nargs7=no
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26905 cat >conftest.$ac_ext <<_ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h. */
26911 #include <sys/types.h>
26912 #include <sys/socket.h>
26913 #include <netinet/in.h>
26915 #define BUFSIZE (sizeof(struct hostent)+10)
26919 struct hostent hent;
26920 struct hostent *rhent; char buffer[BUFSIZE];
26921 struct in_addr add;
26922 size_t alen=sizeof(struct in_addr);
26923 int bufsize=BUFSIZE;int h_errno;
26924 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26925 alen, AF_INET, &hent, buffer, bufsize,
26931 rm -f conftest.$ac_objext
26932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26933 (eval $ac_compile) 2>conftest.er1
26935 grep -v '^ *+' conftest.er1 >conftest.err
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag"
26941 || test ! -s conftest.err'
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; } &&
26947 { ac_try='test -s conftest.$ac_objext'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }; then
26953 ol_cv_func_gethostbyaddr_r_nargs8=yes
26955 echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26958 ol_cv_func_gethostbyaddr_r_nargs8=no
26960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
26963 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
26965 ol_cv_func_gethostbyaddr_r_nargs=7
26967 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
26968 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
26970 ol_cv_func_gethostbyaddr_r_nargs=8
26973 ol_cv_func_gethostbyaddr_r_nargs=0
26977 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
26978 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
26979 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
26981 cat >>confdefs.h <<_ACEOF
26982 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
26988 ol_cv_func_gethostbyaddr_r_nargs=0
26993 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
26994 ol_cv_berkeley_db=no
26996 for ac_header in db.h
26998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27000 echo "$as_me:$LINENO: checking for $ac_header" >&5
27001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27003 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27008 # Is the header compilable?
27009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27011 cat >conftest.$ac_ext <<_ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h. */
27017 $ac_includes_default
27018 #include <$ac_header>
27020 rm -f conftest.$ac_objext
27021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27022 (eval $ac_compile) 2>conftest.er1
27024 grep -v '^ *+' conftest.er1 >conftest.err
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
27029 { ac_try='test -z "$ac_c_werror_flag"
27030 || test ! -s conftest.err'
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); }; } &&
27036 { ac_try='test -s conftest.$ac_objext'
27037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27038 (eval $ac_try) 2>&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
27042 ac_header_compiler=yes
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27047 ac_header_compiler=no
27049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27051 echo "${ECHO_T}$ac_header_compiler" >&6
27053 # Is the header present?
27054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27056 cat >conftest.$ac_ext <<_ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h. */
27062 #include <$ac_header>
27064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27067 grep -v '^ *+' conftest.er1 >conftest.err
27069 cat conftest.err >&5
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); } >/dev/null; then
27072 if test -s conftest.err; then
27073 ac_cpp_err=$ac_c_preproc_warn_flag
27074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27081 if test -z "$ac_cpp_err"; then
27082 ac_header_preproc=yes
27084 echo "$as_me: failed program was:" >&5
27085 sed 's/^/| /' conftest.$ac_ext >&5
27087 ac_header_preproc=no
27089 rm -f conftest.err conftest.$ac_ext
27090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27091 echo "${ECHO_T}$ac_header_preproc" >&6
27093 # So? What about this header?
27094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27100 ac_header_preproc=yes
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27117 ## --------------------------------------------- ##
27118 ## Report this to <http://www.openldap.org/its/> ##
27119 ## --------------------------------------------- ##
27122 sed "s/^/$as_me: WARNING: /" >&2
27125 echo "$as_me:$LINENO: checking for $ac_header" >&5
27126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27130 eval "$as_ac_Header=\$ac_header_preproc"
27132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27137 cat >>confdefs.h <<_ACEOF
27138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27145 if test $ac_cv_header_db_h = yes; then
27148 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27149 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27150 if test "${ol_cv_bdb_major+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27155 if test $ol_cv_bdb_major = 0 ; then
27156 cat >conftest.$ac_ext <<_ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27164 #ifndef DB_VERSION_MAJOR
27165 # define DB_VERSION_MAJOR 1
27167 #if DB_VERSION_MAJOR == 4
27172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27173 $EGREP "__db_version" >/dev/null 2>&1; then
27181 if test $ol_cv_bdb_major = 0 ; then
27182 cat >conftest.$ac_ext <<_ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27190 #ifndef DB_VERSION_MAJOR
27191 # define DB_VERSION_MAJOR 1
27193 #if DB_VERSION_MAJOR == 3
27198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27199 $EGREP "__db_version" >/dev/null 2>&1; then
27207 if test $ol_cv_bdb_major = 0 ; then
27208 cat >conftest.$ac_ext <<_ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h. */
27216 #ifndef DB_VERSION_MAJOR
27217 # define DB_VERSION_MAJOR 1
27219 #if DB_VERSION_MAJOR == 2
27224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27225 $EGREP "__db_version" >/dev/null 2>&1; then
27233 if test $ol_cv_bdb_major = 0 ; then
27234 cat >conftest.$ac_ext <<_ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h. */
27242 #ifndef DB_VERSION_MAJOR
27243 # define DB_VERSION_MAJOR 1
27245 #if DB_VERSION_MAJOR == 1
27250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27251 $EGREP "__db_version" >/dev/null 2>&1; then
27260 if test $ol_cv_bdb_major = 0 ; then
27261 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27262 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27263 { (exit 1); exit 1; }; }
27267 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27268 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27270 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27271 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27272 if test "${ol_cv_bdb_minor+set}" = set; then
27273 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 if test $ol_cv_bdb_minor = 0 ; then
27278 cat >conftest.$ac_ext <<_ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27286 #ifndef DB_VERSION_MINOR
27287 # define DB_VERSION_MINOR 0
27289 #if DB_VERSION_MINOR == 9
27294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27295 $EGREP "__db_version" >/dev/null 2>&1; then
27303 if test $ol_cv_bdb_minor = 0 ; then
27304 cat >conftest.$ac_ext <<_ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27312 #ifndef DB_VERSION_MINOR
27313 # define DB_VERSION_MINOR 0
27315 #if DB_VERSION_MINOR == 8
27320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27321 $EGREP "__db_version" >/dev/null 2>&1; then
27329 if test $ol_cv_bdb_minor = 0 ; then
27330 cat >conftest.$ac_ext <<_ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h. */
27338 #ifndef DB_VERSION_MINOR
27339 # define DB_VERSION_MINOR 0
27341 #if DB_VERSION_MINOR == 7
27346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27347 $EGREP "__db_version" >/dev/null 2>&1; then
27355 if test $ol_cv_bdb_minor = 0 ; then
27356 cat >conftest.$ac_ext <<_ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h. */
27364 #ifndef DB_VERSION_MINOR
27365 # define DB_VERSION_MINOR 0
27367 #if DB_VERSION_MINOR == 6
27372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27373 $EGREP "__db_version" >/dev/null 2>&1; then
27381 if test $ol_cv_bdb_minor = 0 ; then
27382 cat >conftest.$ac_ext <<_ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27390 #ifndef DB_VERSION_MINOR
27391 # define DB_VERSION_MINOR 0
27393 #if DB_VERSION_MINOR == 5
27398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27399 $EGREP "__db_version" >/dev/null 2>&1; then
27407 if test $ol_cv_bdb_minor = 0 ; then
27408 cat >conftest.$ac_ext <<_ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h. */
27416 #ifndef DB_VERSION_MINOR
27417 # define DB_VERSION_MINOR 0
27419 #if DB_VERSION_MINOR == 4
27424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27425 $EGREP "__db_version" >/dev/null 2>&1; then
27433 if test $ol_cv_bdb_minor = 0 ; then
27434 cat >conftest.$ac_ext <<_ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h. */
27442 #ifndef DB_VERSION_MINOR
27443 # define DB_VERSION_MINOR 0
27445 #if DB_VERSION_MINOR == 3
27450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27451 $EGREP "__db_version" >/dev/null 2>&1; then
27459 if test $ol_cv_bdb_minor = 0 ; then
27460 cat >conftest.$ac_ext <<_ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h. */
27468 #ifndef DB_VERSION_MINOR
27469 # define DB_VERSION_MINOR 0
27471 #if DB_VERSION_MINOR == 2
27476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27477 $EGREP "__db_version" >/dev/null 2>&1; then
27485 if test $ol_cv_bdb_minor = 0 ; then
27486 cat >conftest.$ac_ext <<_ACEOF
27489 cat confdefs.h >>conftest.$ac_ext
27490 cat >>conftest.$ac_ext <<_ACEOF
27491 /* end confdefs.h. */
27494 #ifndef DB_VERSION_MINOR
27495 # define DB_VERSION_MINOR 0
27497 #if DB_VERSION_MINOR == 1
27502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27503 $EGREP "__db_version" >/dev/null 2>&1; then
27513 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27514 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27516 if test $ol_cv_bdb_major = 4 ; then
27517 if test $ol_cv_bdb_minor = 5 ; then
27518 if test $ol_cv_lib_db = no ; then
27519 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27520 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27521 if test "${ol_cv_db_db45+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27527 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27529 cat >conftest.$ac_ext <<_ACEOF
27532 cat confdefs.h >>conftest.$ac_ext
27533 cat >>conftest.$ac_ext <<_ACEOF
27534 /* end confdefs.h. */
27536 #ifdef HAVE_DB_185_H
27537 # include <db_185.h>
27542 #ifndef DB_VERSION_MAJOR
27543 # define DB_VERSION_MAJOR 1
27547 #define NULL ((void*)0)
27554 #if DB_VERSION_MAJOR > 1
27557 int major, minor, patch;
27559 version = db_version( &major, &minor, &patch );
27561 if( major != DB_VERSION_MAJOR ||
27562 minor < DB_VERSION_MINOR )
27564 printf("Berkeley DB version mismatch\n"
27565 "\theader: %s\n\tlibrary: %s\n",
27566 DB_VERSION_STRING, version);
27572 #if DB_VERSION_MAJOR > 2
27573 db_env_create( NULL, 0 );
27574 #elif DB_VERSION_MAJOR > 1
27575 db_appexit( NULL );
27577 (void) dbopen( NULL, 0, 0, 0, NULL);
27584 rm -f conftest.$ac_objext conftest$ac_exeext
27585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27586 (eval $ac_link) 2>conftest.er1
27588 grep -v '^ *+' conftest.er1 >conftest.err
27590 cat conftest.err >&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } &&
27593 { ac_try='test -z "$ac_c_werror_flag"
27594 || test ! -s conftest.err'
27595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596 (eval $ac_try) 2>&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; } &&
27600 { ac_try='test -s conftest$ac_exeext'
27601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27602 (eval $ac_try) 2>&5
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; }; then
27608 echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27613 rm -f conftest.err conftest.$ac_objext \
27614 conftest$ac_exeext conftest.$ac_ext
27619 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27620 echo "${ECHO_T}$ol_cv_db_db45" >&6
27622 if test $ol_cv_db_db45 = yes ; then
27623 ol_cv_lib_db=-ldb45
27627 if test $ol_cv_lib_db = no ; then
27628 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27629 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27630 if test "${ol_cv_db_db_45+set}" = set; then
27631 echo $ECHO_N "(cached) $ECHO_C" >&6
27636 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27638 cat >conftest.$ac_ext <<_ACEOF
27641 cat confdefs.h >>conftest.$ac_ext
27642 cat >>conftest.$ac_ext <<_ACEOF
27643 /* end confdefs.h. */
27645 #ifdef HAVE_DB_185_H
27646 # include <db_185.h>
27651 #ifndef DB_VERSION_MAJOR
27652 # define DB_VERSION_MAJOR 1
27656 #define NULL ((void*)0)
27663 #if DB_VERSION_MAJOR > 1
27666 int major, minor, patch;
27668 version = db_version( &major, &minor, &patch );
27670 if( major != DB_VERSION_MAJOR ||
27671 minor < DB_VERSION_MINOR )
27673 printf("Berkeley DB version mismatch\n"
27674 "\theader: %s\n\tlibrary: %s\n",
27675 DB_VERSION_STRING, version);
27681 #if DB_VERSION_MAJOR > 2
27682 db_env_create( NULL, 0 );
27683 #elif DB_VERSION_MAJOR > 1
27684 db_appexit( NULL );
27686 (void) dbopen( NULL, 0, 0, 0, NULL);
27693 rm -f conftest.$ac_objext conftest$ac_exeext
27694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27695 (eval $ac_link) 2>conftest.er1
27697 grep -v '^ *+' conftest.er1 >conftest.err
27699 cat conftest.err >&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); } &&
27702 { ac_try='test -z "$ac_c_werror_flag"
27703 || test ! -s conftest.err'
27704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705 (eval $ac_try) 2>&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; } &&
27709 { ac_try='test -s conftest$ac_exeext'
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; }; then
27717 echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27722 rm -f conftest.err conftest.$ac_objext \
27723 conftest$ac_exeext conftest.$ac_ext
27728 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27729 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27731 if test $ol_cv_db_db_45 = yes ; then
27732 ol_cv_lib_db=-ldb-45
27736 if test $ol_cv_lib_db = no ; then
27737 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27738 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27739 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27740 echo $ECHO_N "(cached) $ECHO_C" >&6
27745 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27747 cat >conftest.$ac_ext <<_ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h. */
27754 #ifdef HAVE_DB_185_H
27755 # include <db_185.h>
27760 #ifndef DB_VERSION_MAJOR
27761 # define DB_VERSION_MAJOR 1
27765 #define NULL ((void*)0)
27772 #if DB_VERSION_MAJOR > 1
27775 int major, minor, patch;
27777 version = db_version( &major, &minor, &patch );
27779 if( major != DB_VERSION_MAJOR ||
27780 minor < DB_VERSION_MINOR )
27782 printf("Berkeley DB version mismatch\n"
27783 "\theader: %s\n\tlibrary: %s\n",
27784 DB_VERSION_STRING, version);
27790 #if DB_VERSION_MAJOR > 2
27791 db_env_create( NULL, 0 );
27792 #elif DB_VERSION_MAJOR > 1
27793 db_appexit( NULL );
27795 (void) dbopen( NULL, 0, 0, 0, NULL);
27802 rm -f conftest.$ac_objext conftest$ac_exeext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27804 (eval $ac_link) 2>conftest.er1
27806 grep -v '^ *+' conftest.er1 >conftest.err
27808 cat conftest.err >&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); } &&
27811 { ac_try='test -z "$ac_c_werror_flag"
27812 || test ! -s conftest.err'
27813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814 (eval $ac_try) 2>&5
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); }; } &&
27818 { ac_try='test -s conftest$ac_exeext'
27819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820 (eval $ac_try) 2>&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); }; }; then
27824 ol_cv_db_db_4_dot_5=yes
27826 echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27829 ol_cv_db_db_4_dot_5=no
27831 rm -f conftest.err conftest.$ac_objext \
27832 conftest$ac_exeext conftest.$ac_ext
27837 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
27838 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
27840 if test $ol_cv_db_db_4_dot_5 = yes ; then
27841 ol_cv_lib_db=-ldb-4.5
27845 if test $ol_cv_lib_db = no ; then
27846 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
27847 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
27848 if test "${ol_cv_db_db_4_5+set}" = set; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27854 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27856 cat >conftest.$ac_ext <<_ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h. */
27863 #ifdef HAVE_DB_185_H
27864 # include <db_185.h>
27869 #ifndef DB_VERSION_MAJOR
27870 # define DB_VERSION_MAJOR 1
27874 #define NULL ((void*)0)
27881 #if DB_VERSION_MAJOR > 1
27884 int major, minor, patch;
27886 version = db_version( &major, &minor, &patch );
27888 if( major != DB_VERSION_MAJOR ||
27889 minor < DB_VERSION_MINOR )
27891 printf("Berkeley DB version mismatch\n"
27892 "\theader: %s\n\tlibrary: %s\n",
27893 DB_VERSION_STRING, version);
27899 #if DB_VERSION_MAJOR > 2
27900 db_env_create( NULL, 0 );
27901 #elif DB_VERSION_MAJOR > 1
27902 db_appexit( NULL );
27904 (void) dbopen( NULL, 0, 0, 0, NULL);
27911 rm -f conftest.$ac_objext conftest$ac_exeext
27912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27913 (eval $ac_link) 2>conftest.er1
27915 grep -v '^ *+' conftest.er1 >conftest.err
27917 cat conftest.err >&5
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); } &&
27920 { ac_try='test -z "$ac_c_werror_flag"
27921 || test ! -s conftest.err'
27922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923 (eval $ac_try) 2>&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); }; } &&
27927 { ac_try='test -s conftest$ac_exeext'
27928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27929 (eval $ac_try) 2>&5
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; }; then
27933 ol_cv_db_db_4_5=yes
27935 echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27940 rm -f conftest.err conftest.$ac_objext \
27941 conftest$ac_exeext conftest.$ac_ext
27946 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
27947 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
27949 if test $ol_cv_db_db_4_5 = yes ; then
27950 ol_cv_lib_db=-ldb-4-5
27954 elif test $ol_cv_bdb_minor = 4 ; then
27955 if test $ol_cv_lib_db = no ; then
27956 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
27957 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
27958 if test "${ol_cv_db_db44+set}" = set; then
27959 echo $ECHO_N "(cached) $ECHO_C" >&6
27964 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27966 cat >conftest.$ac_ext <<_ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h. */
27973 #ifdef HAVE_DB_185_H
27974 # include <db_185.h>
27979 #ifndef DB_VERSION_MAJOR
27980 # define DB_VERSION_MAJOR 1
27984 #define NULL ((void*)0)
27991 #if DB_VERSION_MAJOR > 1
27994 int major, minor, patch;
27996 version = db_version( &major, &minor, &patch );
27998 if( major != DB_VERSION_MAJOR ||
27999 minor < DB_VERSION_MINOR )
28001 printf("Berkeley DB version mismatch\n"
28002 "\theader: %s\n\tlibrary: %s\n",
28003 DB_VERSION_STRING, version);
28009 #if DB_VERSION_MAJOR > 2
28010 db_env_create( NULL, 0 );
28011 #elif DB_VERSION_MAJOR > 1
28012 db_appexit( NULL );
28014 (void) dbopen( NULL, 0, 0, 0, NULL);
28021 rm -f conftest.$ac_objext conftest$ac_exeext
28022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28023 (eval $ac_link) 2>conftest.er1
28025 grep -v '^ *+' conftest.er1 >conftest.err
28027 cat conftest.err >&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); } &&
28030 { ac_try='test -z "$ac_c_werror_flag"
28031 || test ! -s conftest.err'
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; } &&
28037 { ac_try='test -s conftest$ac_exeext'
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; }; then
28045 echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28050 rm -f conftest.err conftest.$ac_objext \
28051 conftest$ac_exeext conftest.$ac_ext
28056 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28057 echo "${ECHO_T}$ol_cv_db_db44" >&6
28059 if test $ol_cv_db_db44 = yes ; then
28060 ol_cv_lib_db=-ldb44
28064 if test $ol_cv_lib_db = no ; then
28065 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28066 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28067 if test "${ol_cv_db_db_44+set}" = set; then
28068 echo $ECHO_N "(cached) $ECHO_C" >&6
28073 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28075 cat >conftest.$ac_ext <<_ACEOF
28078 cat confdefs.h >>conftest.$ac_ext
28079 cat >>conftest.$ac_ext <<_ACEOF
28080 /* end confdefs.h. */
28082 #ifdef HAVE_DB_185_H
28083 # include <db_185.h>
28088 #ifndef DB_VERSION_MAJOR
28089 # define DB_VERSION_MAJOR 1
28093 #define NULL ((void*)0)
28100 #if DB_VERSION_MAJOR > 1
28103 int major, minor, patch;
28105 version = db_version( &major, &minor, &patch );
28107 if( major != DB_VERSION_MAJOR ||
28108 minor < DB_VERSION_MINOR )
28110 printf("Berkeley DB version mismatch\n"
28111 "\theader: %s\n\tlibrary: %s\n",
28112 DB_VERSION_STRING, version);
28118 #if DB_VERSION_MAJOR > 2
28119 db_env_create( NULL, 0 );
28120 #elif DB_VERSION_MAJOR > 1
28121 db_appexit( NULL );
28123 (void) dbopen( NULL, 0, 0, 0, NULL);
28130 rm -f conftest.$ac_objext conftest$ac_exeext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28132 (eval $ac_link) 2>conftest.er1
28134 grep -v '^ *+' conftest.er1 >conftest.err
28136 cat conftest.err >&5
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); } &&
28139 { ac_try='test -z "$ac_c_werror_flag"
28140 || test ! -s conftest.err'
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest$ac_exeext'
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28159 rm -f conftest.err conftest.$ac_objext \
28160 conftest$ac_exeext conftest.$ac_ext
28165 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28166 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28168 if test $ol_cv_db_db_44 = yes ; then
28169 ol_cv_lib_db=-ldb-44
28173 if test $ol_cv_lib_db = no ; then
28174 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28175 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28176 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28177 echo $ECHO_N "(cached) $ECHO_C" >&6
28182 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28184 cat >conftest.$ac_ext <<_ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h. */
28191 #ifdef HAVE_DB_185_H
28192 # include <db_185.h>
28197 #ifndef DB_VERSION_MAJOR
28198 # define DB_VERSION_MAJOR 1
28202 #define NULL ((void*)0)
28209 #if DB_VERSION_MAJOR > 1
28212 int major, minor, patch;
28214 version = db_version( &major, &minor, &patch );
28216 if( major != DB_VERSION_MAJOR ||
28217 minor < DB_VERSION_MINOR )
28219 printf("Berkeley DB version mismatch\n"
28220 "\theader: %s\n\tlibrary: %s\n",
28221 DB_VERSION_STRING, version);
28227 #if DB_VERSION_MAJOR > 2
28228 db_env_create( NULL, 0 );
28229 #elif DB_VERSION_MAJOR > 1
28230 db_appexit( NULL );
28232 (void) dbopen( NULL, 0, 0, 0, NULL);
28239 rm -f conftest.$ac_objext conftest$ac_exeext
28240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28241 (eval $ac_link) 2>conftest.er1
28243 grep -v '^ *+' conftest.er1 >conftest.err
28245 cat conftest.err >&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); } &&
28248 { ac_try='test -z "$ac_c_werror_flag"
28249 || test ! -s conftest.err'
28250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28251 (eval $ac_try) 2>&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); }; } &&
28255 { ac_try='test -s conftest$ac_exeext'
28256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257 (eval $ac_try) 2>&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; }; then
28261 ol_cv_db_db_4_dot_4=yes
28263 echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28266 ol_cv_db_db_4_dot_4=no
28268 rm -f conftest.err conftest.$ac_objext \
28269 conftest$ac_exeext conftest.$ac_ext
28274 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28275 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28277 if test $ol_cv_db_db_4_dot_4 = yes ; then
28278 ol_cv_lib_db=-ldb-4.4
28282 if test $ol_cv_lib_db = no ; then
28283 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28284 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28285 if test "${ol_cv_db_db_4_4+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28291 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28293 cat >conftest.$ac_ext <<_ACEOF
28296 cat confdefs.h >>conftest.$ac_ext
28297 cat >>conftest.$ac_ext <<_ACEOF
28298 /* end confdefs.h. */
28300 #ifdef HAVE_DB_185_H
28301 # include <db_185.h>
28306 #ifndef DB_VERSION_MAJOR
28307 # define DB_VERSION_MAJOR 1
28311 #define NULL ((void*)0)
28318 #if DB_VERSION_MAJOR > 1
28321 int major, minor, patch;
28323 version = db_version( &major, &minor, &patch );
28325 if( major != DB_VERSION_MAJOR ||
28326 minor < DB_VERSION_MINOR )
28328 printf("Berkeley DB version mismatch\n"
28329 "\theader: %s\n\tlibrary: %s\n",
28330 DB_VERSION_STRING, version);
28336 #if DB_VERSION_MAJOR > 2
28337 db_env_create( NULL, 0 );
28338 #elif DB_VERSION_MAJOR > 1
28339 db_appexit( NULL );
28341 (void) dbopen( NULL, 0, 0, 0, NULL);
28348 rm -f conftest.$ac_objext conftest$ac_exeext
28349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28350 (eval $ac_link) 2>conftest.er1
28352 grep -v '^ *+' conftest.er1 >conftest.err
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } &&
28357 { ac_try='test -z "$ac_c_werror_flag"
28358 || test ! -s conftest.err'
28359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360 (eval $ac_try) 2>&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; } &&
28364 { ac_try='test -s conftest$ac_exeext'
28365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366 (eval $ac_try) 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; }; then
28370 ol_cv_db_db_4_4=yes
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28377 rm -f conftest.err conftest.$ac_objext \
28378 conftest$ac_exeext conftest.$ac_ext
28383 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28384 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28386 if test $ol_cv_db_db_4_4 = yes ; then
28387 ol_cv_lib_db=-ldb-4-4
28391 elif test $ol_cv_bdb_minor = 3 ; then
28392 if test $ol_cv_lib_db = no ; then
28393 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28394 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28395 if test "${ol_cv_db_db43+set}" = set; then
28396 echo $ECHO_N "(cached) $ECHO_C" >&6
28401 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28403 cat >conftest.$ac_ext <<_ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h. */
28410 #ifdef HAVE_DB_185_H
28411 # include <db_185.h>
28416 #ifndef DB_VERSION_MAJOR
28417 # define DB_VERSION_MAJOR 1
28421 #define NULL ((void*)0)
28428 #if DB_VERSION_MAJOR > 1
28431 int major, minor, patch;
28433 version = db_version( &major, &minor, &patch );
28435 if( major != DB_VERSION_MAJOR ||
28436 minor < DB_VERSION_MINOR )
28438 printf("Berkeley DB version mismatch\n"
28439 "\theader: %s\n\tlibrary: %s\n",
28440 DB_VERSION_STRING, version);
28446 #if DB_VERSION_MAJOR > 2
28447 db_env_create( NULL, 0 );
28448 #elif DB_VERSION_MAJOR > 1
28449 db_appexit( NULL );
28451 (void) dbopen( NULL, 0, 0, 0, NULL);
28458 rm -f conftest.$ac_objext conftest$ac_exeext
28459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28460 (eval $ac_link) 2>conftest.er1
28462 grep -v '^ *+' conftest.er1 >conftest.err
28464 cat conftest.err >&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); } &&
28467 { ac_try='test -z "$ac_c_werror_flag"
28468 || test ! -s conftest.err'
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; } &&
28474 { ac_try='test -s conftest$ac_exeext'
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; }; then
28482 echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28487 rm -f conftest.err conftest.$ac_objext \
28488 conftest$ac_exeext conftest.$ac_ext
28493 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28494 echo "${ECHO_T}$ol_cv_db_db43" >&6
28496 if test $ol_cv_db_db43 = yes ; then
28497 ol_cv_lib_db=-ldb43
28501 if test $ol_cv_lib_db = no ; then
28502 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28503 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28504 if test "${ol_cv_db_db_43+set}" = set; then
28505 echo $ECHO_N "(cached) $ECHO_C" >&6
28510 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28512 cat >conftest.$ac_ext <<_ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28519 #ifdef HAVE_DB_185_H
28520 # include <db_185.h>
28525 #ifndef DB_VERSION_MAJOR
28526 # define DB_VERSION_MAJOR 1
28530 #define NULL ((void*)0)
28537 #if DB_VERSION_MAJOR > 1
28540 int major, minor, patch;
28542 version = db_version( &major, &minor, &patch );
28544 if( major != DB_VERSION_MAJOR ||
28545 minor < DB_VERSION_MINOR )
28547 printf("Berkeley DB version mismatch\n"
28548 "\theader: %s\n\tlibrary: %s\n",
28549 DB_VERSION_STRING, version);
28555 #if DB_VERSION_MAJOR > 2
28556 db_env_create( NULL, 0 );
28557 #elif DB_VERSION_MAJOR > 1
28558 db_appexit( NULL );
28560 (void) dbopen( NULL, 0, 0, 0, NULL);
28567 rm -f conftest.$ac_objext conftest$ac_exeext
28568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28569 (eval $ac_link) 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -z "$ac_c_werror_flag"
28577 || test ! -s conftest.err'
28578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579 (eval $ac_try) 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest$ac_exeext'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; }; then
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28596 rm -f conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
28602 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28603 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28605 if test $ol_cv_db_db_43 = yes ; then
28606 ol_cv_lib_db=-ldb-43
28610 if test $ol_cv_lib_db = no ; then
28611 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28612 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28613 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
28619 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28621 cat >conftest.$ac_ext <<_ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28628 #ifdef HAVE_DB_185_H
28629 # include <db_185.h>
28634 #ifndef DB_VERSION_MAJOR
28635 # define DB_VERSION_MAJOR 1
28639 #define NULL ((void*)0)
28646 #if DB_VERSION_MAJOR > 1
28649 int major, minor, patch;
28651 version = db_version( &major, &minor, &patch );
28653 if( major != DB_VERSION_MAJOR ||
28654 minor < DB_VERSION_MINOR )
28656 printf("Berkeley DB version mismatch\n"
28657 "\theader: %s\n\tlibrary: %s\n",
28658 DB_VERSION_STRING, version);
28664 #if DB_VERSION_MAJOR > 2
28665 db_env_create( NULL, 0 );
28666 #elif DB_VERSION_MAJOR > 1
28667 db_appexit( NULL );
28669 (void) dbopen( NULL, 0, 0, 0, NULL);
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28678 (eval $ac_link) 2>conftest.er1
28680 grep -v '^ *+' conftest.er1 >conftest.err
28682 cat conftest.err >&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
28685 { ac_try='test -z "$ac_c_werror_flag"
28686 || test ! -s conftest.err'
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; } &&
28692 { ac_try='test -s conftest$ac_exeext'
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
28698 ol_cv_db_db_4_dot_3=yes
28700 echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28703 ol_cv_db_db_4_dot_3=no
28705 rm -f conftest.err conftest.$ac_objext \
28706 conftest$ac_exeext conftest.$ac_ext
28711 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28712 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28714 if test $ol_cv_db_db_4_dot_3 = yes ; then
28715 ol_cv_lib_db=-ldb-4.3
28719 if test $ol_cv_lib_db = no ; then
28720 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28721 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28722 if test "${ol_cv_db_db_4_3+set}" = set; then
28723 echo $ECHO_N "(cached) $ECHO_C" >&6
28728 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28730 cat >conftest.$ac_ext <<_ACEOF
28733 cat confdefs.h >>conftest.$ac_ext
28734 cat >>conftest.$ac_ext <<_ACEOF
28735 /* end confdefs.h. */
28737 #ifdef HAVE_DB_185_H
28738 # include <db_185.h>
28743 #ifndef DB_VERSION_MAJOR
28744 # define DB_VERSION_MAJOR 1
28748 #define NULL ((void*)0)
28755 #if DB_VERSION_MAJOR > 1
28758 int major, minor, patch;
28760 version = db_version( &major, &minor, &patch );
28762 if( major != DB_VERSION_MAJOR ||
28763 minor < DB_VERSION_MINOR )
28765 printf("Berkeley DB version mismatch\n"
28766 "\theader: %s\n\tlibrary: %s\n",
28767 DB_VERSION_STRING, version);
28773 #if DB_VERSION_MAJOR > 2
28774 db_env_create( NULL, 0 );
28775 #elif DB_VERSION_MAJOR > 1
28776 db_appexit( NULL );
28778 (void) dbopen( NULL, 0, 0, 0, NULL);
28785 rm -f conftest.$ac_objext conftest$ac_exeext
28786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28787 (eval $ac_link) 2>conftest.er1
28789 grep -v '^ *+' conftest.er1 >conftest.err
28791 cat conftest.err >&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); } &&
28794 { ac_try='test -z "$ac_c_werror_flag"
28795 || test ! -s conftest.err'
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest$ac_exeext'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 ol_cv_db_db_4_3=yes
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28814 rm -f conftest.err conftest.$ac_objext \
28815 conftest$ac_exeext conftest.$ac_ext
28820 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28821 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28823 if test $ol_cv_db_db_4_3 = yes ; then
28824 ol_cv_lib_db=-ldb-4-3
28828 elif test $ol_cv_bdb_minor = 2 ; then
28829 if test $ol_cv_lib_db = no ; then
28830 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28831 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28832 if test "${ol_cv_db_db42+set}" = set; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28838 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28840 cat >conftest.$ac_ext <<_ACEOF
28843 cat confdefs.h >>conftest.$ac_ext
28844 cat >>conftest.$ac_ext <<_ACEOF
28845 /* end confdefs.h. */
28847 #ifdef HAVE_DB_185_H
28848 # include <db_185.h>
28853 #ifndef DB_VERSION_MAJOR
28854 # define DB_VERSION_MAJOR 1
28858 #define NULL ((void*)0)
28865 #if DB_VERSION_MAJOR > 1
28868 int major, minor, patch;
28870 version = db_version( &major, &minor, &patch );
28872 if( major != DB_VERSION_MAJOR ||
28873 minor < DB_VERSION_MINOR )
28875 printf("Berkeley DB version mismatch\n"
28876 "\theader: %s\n\tlibrary: %s\n",
28877 DB_VERSION_STRING, version);
28883 #if DB_VERSION_MAJOR > 2
28884 db_env_create( NULL, 0 );
28885 #elif DB_VERSION_MAJOR > 1
28886 db_appexit( NULL );
28888 (void) dbopen( NULL, 0, 0, 0, NULL);
28895 rm -f conftest.$ac_objext conftest$ac_exeext
28896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28897 (eval $ac_link) 2>conftest.er1
28899 grep -v '^ *+' conftest.er1 >conftest.err
28901 cat conftest.err >&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); } &&
28904 { ac_try='test -z "$ac_c_werror_flag"
28905 || test ! -s conftest.err'
28906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907 (eval $ac_try) 2>&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; } &&
28911 { ac_try='test -s conftest$ac_exeext'
28912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913 (eval $ac_try) 2>&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; }; then
28919 echo "$as_me: failed program was:" >&5
28920 sed 's/^/| /' conftest.$ac_ext >&5
28924 rm -f conftest.err conftest.$ac_objext \
28925 conftest$ac_exeext conftest.$ac_ext
28930 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28931 echo "${ECHO_T}$ol_cv_db_db42" >&6
28933 if test $ol_cv_db_db42 = yes ; then
28934 ol_cv_lib_db=-ldb42
28938 if test $ol_cv_lib_db = no ; then
28939 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28940 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28941 if test "${ol_cv_db_db_42+set}" = set; then
28942 echo $ECHO_N "(cached) $ECHO_C" >&6
28947 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28949 cat >conftest.$ac_ext <<_ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h. */
28956 #ifdef HAVE_DB_185_H
28957 # include <db_185.h>
28962 #ifndef DB_VERSION_MAJOR
28963 # define DB_VERSION_MAJOR 1
28967 #define NULL ((void*)0)
28974 #if DB_VERSION_MAJOR > 1
28977 int major, minor, patch;
28979 version = db_version( &major, &minor, &patch );
28981 if( major != DB_VERSION_MAJOR ||
28982 minor < DB_VERSION_MINOR )
28984 printf("Berkeley DB version mismatch\n"
28985 "\theader: %s\n\tlibrary: %s\n",
28986 DB_VERSION_STRING, version);
28992 #if DB_VERSION_MAJOR > 2
28993 db_env_create( NULL, 0 );
28994 #elif DB_VERSION_MAJOR > 1
28995 db_appexit( NULL );
28997 (void) dbopen( NULL, 0, 0, 0, NULL);
29004 rm -f conftest.$ac_objext conftest$ac_exeext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29006 (eval $ac_link) 2>conftest.er1
29008 grep -v '^ *+' conftest.er1 >conftest.err
29010 cat conftest.err >&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
29013 { ac_try='test -z "$ac_c_werror_flag"
29014 || test ! -s conftest.err'
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest$ac_exeext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29033 rm -f conftest.err conftest.$ac_objext \
29034 conftest$ac_exeext conftest.$ac_ext
29039 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29040 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29042 if test $ol_cv_db_db_42 = yes ; then
29043 ol_cv_lib_db=-ldb-42
29047 if test $ol_cv_lib_db = no ; then
29048 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29049 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29050 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29056 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29058 cat >conftest.$ac_ext <<_ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29065 #ifdef HAVE_DB_185_H
29066 # include <db_185.h>
29071 #ifndef DB_VERSION_MAJOR
29072 # define DB_VERSION_MAJOR 1
29076 #define NULL ((void*)0)
29083 #if DB_VERSION_MAJOR > 1
29086 int major, minor, patch;
29088 version = db_version( &major, &minor, &patch );
29090 if( major != DB_VERSION_MAJOR ||
29091 minor < DB_VERSION_MINOR )
29093 printf("Berkeley DB version mismatch\n"
29094 "\theader: %s\n\tlibrary: %s\n",
29095 DB_VERSION_STRING, version);
29101 #if DB_VERSION_MAJOR > 2
29102 db_env_create( NULL, 0 );
29103 #elif DB_VERSION_MAJOR > 1
29104 db_appexit( NULL );
29106 (void) dbopen( NULL, 0, 0, 0, NULL);
29113 rm -f conftest.$ac_objext conftest$ac_exeext
29114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29115 (eval $ac_link) 2>conftest.er1
29117 grep -v '^ *+' conftest.er1 >conftest.err
29119 cat conftest.err >&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); } &&
29122 { ac_try='test -z "$ac_c_werror_flag"
29123 || test ! -s conftest.err'
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; } &&
29129 { ac_try='test -s conftest$ac_exeext'
29130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131 (eval $ac_try) 2>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; }; then
29135 ol_cv_db_db_4_dot_2=yes
29137 echo "$as_me: failed program was:" >&5
29138 sed 's/^/| /' conftest.$ac_ext >&5
29140 ol_cv_db_db_4_dot_2=no
29142 rm -f conftest.err conftest.$ac_objext \
29143 conftest$ac_exeext conftest.$ac_ext
29148 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29149 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29151 if test $ol_cv_db_db_4_dot_2 = yes ; then
29152 ol_cv_lib_db=-ldb-4.2
29156 if test $ol_cv_lib_db = no ; then
29157 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29158 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29159 if test "${ol_cv_db_db_4_2+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29165 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29167 cat >conftest.$ac_ext <<_ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h. */
29174 #ifdef HAVE_DB_185_H
29175 # include <db_185.h>
29180 #ifndef DB_VERSION_MAJOR
29181 # define DB_VERSION_MAJOR 1
29185 #define NULL ((void*)0)
29192 #if DB_VERSION_MAJOR > 1
29195 int major, minor, patch;
29197 version = db_version( &major, &minor, &patch );
29199 if( major != DB_VERSION_MAJOR ||
29200 minor < DB_VERSION_MINOR )
29202 printf("Berkeley DB version mismatch\n"
29203 "\theader: %s\n\tlibrary: %s\n",
29204 DB_VERSION_STRING, version);
29210 #if DB_VERSION_MAJOR > 2
29211 db_env_create( NULL, 0 );
29212 #elif DB_VERSION_MAJOR > 1
29213 db_appexit( NULL );
29215 (void) dbopen( NULL, 0, 0, 0, NULL);
29222 rm -f conftest.$ac_objext conftest$ac_exeext
29223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29224 (eval $ac_link) 2>conftest.er1
29226 grep -v '^ *+' conftest.er1 >conftest.err
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); } &&
29231 { ac_try='test -z "$ac_c_werror_flag"
29232 || test ! -s conftest.err'
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; } &&
29238 { ac_try='test -s conftest$ac_exeext'
29239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240 (eval $ac_try) 2>&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; }; then
29244 ol_cv_db_db_4_2=yes
29246 echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29251 rm -f conftest.err conftest.$ac_objext \
29252 conftest$ac_exeext conftest.$ac_ext
29257 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29258 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29260 if test $ol_cv_db_db_4_2 = yes ; then
29261 ol_cv_lib_db=-ldb-4-2
29265 elif test $ol_cv_bdb_minor = 1 ; then
29266 if test $ol_cv_lib_db = no ; then
29267 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29268 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29269 if test "${ol_cv_db_db41+set}" = set; then
29270 echo $ECHO_N "(cached) $ECHO_C" >&6
29275 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29277 cat >conftest.$ac_ext <<_ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h. */
29284 #ifdef HAVE_DB_185_H
29285 # include <db_185.h>
29290 #ifndef DB_VERSION_MAJOR
29291 # define DB_VERSION_MAJOR 1
29295 #define NULL ((void*)0)
29302 #if DB_VERSION_MAJOR > 1
29305 int major, minor, patch;
29307 version = db_version( &major, &minor, &patch );
29309 if( major != DB_VERSION_MAJOR ||
29310 minor < DB_VERSION_MINOR )
29312 printf("Berkeley DB version mismatch\n"
29313 "\theader: %s\n\tlibrary: %s\n",
29314 DB_VERSION_STRING, version);
29320 #if DB_VERSION_MAJOR > 2
29321 db_env_create( NULL, 0 );
29322 #elif DB_VERSION_MAJOR > 1
29323 db_appexit( NULL );
29325 (void) dbopen( NULL, 0, 0, 0, NULL);
29332 rm -f conftest.$ac_objext conftest$ac_exeext
29333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29334 (eval $ac_link) 2>conftest.er1
29336 grep -v '^ *+' conftest.er1 >conftest.err
29338 cat conftest.err >&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
29341 { ac_try='test -z "$ac_c_werror_flag"
29342 || test ! -s conftest.err'
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; } &&
29348 { ac_try='test -s conftest$ac_exeext'
29349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29350 (eval $ac_try) 2>&5
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); }; }; then
29356 echo "$as_me: failed program was:" >&5
29357 sed 's/^/| /' conftest.$ac_ext >&5
29361 rm -f conftest.err conftest.$ac_objext \
29362 conftest$ac_exeext conftest.$ac_ext
29367 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29368 echo "${ECHO_T}$ol_cv_db_db41" >&6
29370 if test $ol_cv_db_db41 = yes ; then
29371 ol_cv_lib_db=-ldb41
29375 if test $ol_cv_lib_db = no ; then
29376 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29377 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29378 if test "${ol_cv_db_db_41+set}" = set; then
29379 echo $ECHO_N "(cached) $ECHO_C" >&6
29384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29386 cat >conftest.$ac_ext <<_ACEOF
29389 cat confdefs.h >>conftest.$ac_ext
29390 cat >>conftest.$ac_ext <<_ACEOF
29391 /* end confdefs.h. */
29393 #ifdef HAVE_DB_185_H
29394 # include <db_185.h>
29399 #ifndef DB_VERSION_MAJOR
29400 # define DB_VERSION_MAJOR 1
29404 #define NULL ((void*)0)
29411 #if DB_VERSION_MAJOR > 1
29414 int major, minor, patch;
29416 version = db_version( &major, &minor, &patch );
29418 if( major != DB_VERSION_MAJOR ||
29419 minor < DB_VERSION_MINOR )
29421 printf("Berkeley DB version mismatch\n"
29422 "\theader: %s\n\tlibrary: %s\n",
29423 DB_VERSION_STRING, version);
29429 #if DB_VERSION_MAJOR > 2
29430 db_env_create( NULL, 0 );
29431 #elif DB_VERSION_MAJOR > 1
29432 db_appexit( NULL );
29434 (void) dbopen( NULL, 0, 0, 0, NULL);
29441 rm -f conftest.$ac_objext conftest$ac_exeext
29442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29443 (eval $ac_link) 2>conftest.er1
29445 grep -v '^ *+' conftest.er1 >conftest.err
29447 cat conftest.err >&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); } &&
29450 { ac_try='test -z "$ac_c_werror_flag"
29451 || test ! -s conftest.err'
29452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453 (eval $ac_try) 2>&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; } &&
29457 { ac_try='test -s conftest$ac_exeext'
29458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459 (eval $ac_try) 2>&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; }; then
29465 echo "$as_me: failed program was:" >&5
29466 sed 's/^/| /' conftest.$ac_ext >&5
29470 rm -f conftest.err conftest.$ac_objext \
29471 conftest$ac_exeext conftest.$ac_ext
29476 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29477 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29479 if test $ol_cv_db_db_41 = yes ; then
29480 ol_cv_lib_db=-ldb-41
29484 if test $ol_cv_lib_db = no ; then
29485 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29486 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29487 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29495 cat >conftest.$ac_ext <<_ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h. */
29502 #ifdef HAVE_DB_185_H
29503 # include <db_185.h>
29508 #ifndef DB_VERSION_MAJOR
29509 # define DB_VERSION_MAJOR 1
29513 #define NULL ((void*)0)
29520 #if DB_VERSION_MAJOR > 1
29523 int major, minor, patch;
29525 version = db_version( &major, &minor, &patch );
29527 if( major != DB_VERSION_MAJOR ||
29528 minor < DB_VERSION_MINOR )
29530 printf("Berkeley DB version mismatch\n"
29531 "\theader: %s\n\tlibrary: %s\n",
29532 DB_VERSION_STRING, version);
29538 #if DB_VERSION_MAJOR > 2
29539 db_env_create( NULL, 0 );
29540 #elif DB_VERSION_MAJOR > 1
29541 db_appexit( NULL );
29543 (void) dbopen( NULL, 0, 0, 0, NULL);
29550 rm -f conftest.$ac_objext conftest$ac_exeext
29551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29552 (eval $ac_link) 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } &&
29559 { ac_try='test -z "$ac_c_werror_flag"
29560 || test ! -s conftest.err'
29561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562 (eval $ac_try) 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest$ac_exeext'
29567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29568 (eval $ac_try) 2>&5
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); }; }; then
29572 ol_cv_db_db_4_dot_1=yes
29574 echo "$as_me: failed program was:" >&5
29575 sed 's/^/| /' conftest.$ac_ext >&5
29577 ol_cv_db_db_4_dot_1=no
29579 rm -f conftest.err conftest.$ac_objext \
29580 conftest$ac_exeext conftest.$ac_ext
29585 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29586 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29588 if test $ol_cv_db_db_4_dot_1 = yes ; then
29589 ol_cv_lib_db=-ldb-4.1
29593 if test $ol_cv_lib_db = no ; then
29594 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29595 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29596 if test "${ol_cv_db_db_4_1+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29604 cat >conftest.$ac_ext <<_ACEOF
29607 cat confdefs.h >>conftest.$ac_ext
29608 cat >>conftest.$ac_ext <<_ACEOF
29609 /* end confdefs.h. */
29611 #ifdef HAVE_DB_185_H
29612 # include <db_185.h>
29617 #ifndef DB_VERSION_MAJOR
29618 # define DB_VERSION_MAJOR 1
29622 #define NULL ((void*)0)
29629 #if DB_VERSION_MAJOR > 1
29632 int major, minor, patch;
29634 version = db_version( &major, &minor, &patch );
29636 if( major != DB_VERSION_MAJOR ||
29637 minor < DB_VERSION_MINOR )
29639 printf("Berkeley DB version mismatch\n"
29640 "\theader: %s\n\tlibrary: %s\n",
29641 DB_VERSION_STRING, version);
29647 #if DB_VERSION_MAJOR > 2
29648 db_env_create( NULL, 0 );
29649 #elif DB_VERSION_MAJOR > 1
29650 db_appexit( NULL );
29652 (void) dbopen( NULL, 0, 0, 0, NULL);
29659 rm -f conftest.$ac_objext conftest$ac_exeext
29660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29661 (eval $ac_link) 2>conftest.er1
29663 grep -v '^ *+' conftest.er1 >conftest.err
29665 cat conftest.err >&5
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); } &&
29668 { ac_try='test -z "$ac_c_werror_flag"
29669 || test ! -s conftest.err'
29670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29671 (eval $ac_try) 2>&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); }; } &&
29675 { ac_try='test -s conftest$ac_exeext'
29676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29677 (eval $ac_try) 2>&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); }; }; then
29681 ol_cv_db_db_4_1=yes
29683 echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29688 rm -f conftest.err conftest.$ac_objext \
29689 conftest$ac_exeext conftest.$ac_ext
29694 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29695 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29697 if test $ol_cv_db_db_4_1 = yes ; then
29698 ol_cv_lib_db=-ldb-4-1
29703 if test $ol_cv_lib_db = no ; then
29704 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29705 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29706 if test "${ol_cv_db_db_4+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29712 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29714 cat >conftest.$ac_ext <<_ACEOF
29717 cat confdefs.h >>conftest.$ac_ext
29718 cat >>conftest.$ac_ext <<_ACEOF
29719 /* end confdefs.h. */
29721 #ifdef HAVE_DB_185_H
29722 # include <db_185.h>
29727 #ifndef DB_VERSION_MAJOR
29728 # define DB_VERSION_MAJOR 1
29732 #define NULL ((void*)0)
29739 #if DB_VERSION_MAJOR > 1
29742 int major, minor, patch;
29744 version = db_version( &major, &minor, &patch );
29746 if( major != DB_VERSION_MAJOR ||
29747 minor < DB_VERSION_MINOR )
29749 printf("Berkeley DB version mismatch\n"
29750 "\theader: %s\n\tlibrary: %s\n",
29751 DB_VERSION_STRING, version);
29757 #if DB_VERSION_MAJOR > 2
29758 db_env_create( NULL, 0 );
29759 #elif DB_VERSION_MAJOR > 1
29760 db_appexit( NULL );
29762 (void) dbopen( NULL, 0, 0, 0, NULL);
29769 rm -f conftest.$ac_objext conftest$ac_exeext
29770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29771 (eval $ac_link) 2>conftest.er1
29773 grep -v '^ *+' conftest.er1 >conftest.err
29775 cat conftest.err >&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
29778 { ac_try='test -z "$ac_c_werror_flag"
29779 || test ! -s conftest.err'
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; } &&
29785 { ac_try='test -s conftest$ac_exeext'
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
29793 echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29798 rm -f conftest.err conftest.$ac_objext \
29799 conftest$ac_exeext conftest.$ac_ext
29804 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29805 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29807 if test $ol_cv_db_db_4 = yes ; then
29808 ol_cv_lib_db=-ldb-4
29812 if test $ol_cv_lib_db = no ; then
29813 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29814 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29815 if test "${ol_cv_db_db4+set}" = set; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29821 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29823 cat >conftest.$ac_ext <<_ACEOF
29826 cat confdefs.h >>conftest.$ac_ext
29827 cat >>conftest.$ac_ext <<_ACEOF
29828 /* end confdefs.h. */
29830 #ifdef HAVE_DB_185_H
29831 # include <db_185.h>
29836 #ifndef DB_VERSION_MAJOR
29837 # define DB_VERSION_MAJOR 1
29841 #define NULL ((void*)0)
29848 #if DB_VERSION_MAJOR > 1
29851 int major, minor, patch;
29853 version = db_version( &major, &minor, &patch );
29855 if( major != DB_VERSION_MAJOR ||
29856 minor < DB_VERSION_MINOR )
29858 printf("Berkeley DB version mismatch\n"
29859 "\theader: %s\n\tlibrary: %s\n",
29860 DB_VERSION_STRING, version);
29866 #if DB_VERSION_MAJOR > 2
29867 db_env_create( NULL, 0 );
29868 #elif DB_VERSION_MAJOR > 1
29869 db_appexit( NULL );
29871 (void) dbopen( NULL, 0, 0, 0, NULL);
29878 rm -f conftest.$ac_objext conftest$ac_exeext
29879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29880 (eval $ac_link) 2>conftest.er1
29882 grep -v '^ *+' conftest.er1 >conftest.err
29884 cat conftest.err >&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } &&
29887 { ac_try='test -z "$ac_c_werror_flag"
29888 || test ! -s conftest.err'
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; } &&
29894 { ac_try='test -s conftest$ac_exeext'
29895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896 (eval $ac_try) 2>&5
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); }; }; then
29902 echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29907 rm -f conftest.err conftest.$ac_objext \
29908 conftest$ac_exeext conftest.$ac_ext
29913 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29914 echo "${ECHO_T}$ol_cv_db_db4" >&6
29916 if test $ol_cv_db_db4 = yes ; then
29921 if test $ol_cv_lib_db = no ; then
29922 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29923 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29924 if test "${ol_cv_db_db+set}" = set; then
29925 echo $ECHO_N "(cached) $ECHO_C" >&6
29930 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29932 cat >conftest.$ac_ext <<_ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h. */
29939 #ifdef HAVE_DB_185_H
29940 # include <db_185.h>
29945 #ifndef DB_VERSION_MAJOR
29946 # define DB_VERSION_MAJOR 1
29950 #define NULL ((void*)0)
29957 #if DB_VERSION_MAJOR > 1
29960 int major, minor, patch;
29962 version = db_version( &major, &minor, &patch );
29964 if( major != DB_VERSION_MAJOR ||
29965 minor < DB_VERSION_MINOR )
29967 printf("Berkeley DB version mismatch\n"
29968 "\theader: %s\n\tlibrary: %s\n",
29969 DB_VERSION_STRING, version);
29975 #if DB_VERSION_MAJOR > 2
29976 db_env_create( NULL, 0 );
29977 #elif DB_VERSION_MAJOR > 1
29978 db_appexit( NULL );
29980 (void) dbopen( NULL, 0, 0, 0, NULL);
29987 rm -f conftest.$ac_objext conftest$ac_exeext
29988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29989 (eval $ac_link) 2>conftest.er1
29991 grep -v '^ *+' conftest.er1 >conftest.err
29993 cat conftest.err >&5
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); } &&
29996 { ac_try='test -z "$ac_c_werror_flag"
29997 || test ! -s conftest.err'
29998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999 (eval $ac_try) 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest$ac_exeext'
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; }; then
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30016 rm -f conftest.err conftest.$ac_objext \
30017 conftest$ac_exeext conftest.$ac_ext
30022 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30023 echo "${ECHO_T}$ol_cv_db_db" >&6
30025 if test $ol_cv_db_db = yes ; then
30031 elif test $ol_cv_bdb_major = 3 ; then
30032 if test $ol_cv_lib_db = no ; then
30033 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30034 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30035 if test "${ol_cv_db_db3+set}" = set; then
30036 echo $ECHO_N "(cached) $ECHO_C" >&6
30041 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30043 cat >conftest.$ac_ext <<_ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h. */
30050 #ifdef HAVE_DB_185_H
30051 # include <db_185.h>
30056 #ifndef DB_VERSION_MAJOR
30057 # define DB_VERSION_MAJOR 1
30061 #define NULL ((void*)0)
30068 #if DB_VERSION_MAJOR > 1
30071 int major, minor, patch;
30073 version = db_version( &major, &minor, &patch );
30075 if( major != DB_VERSION_MAJOR ||
30076 minor < DB_VERSION_MINOR )
30078 printf("Berkeley DB version mismatch\n"
30079 "\theader: %s\n\tlibrary: %s\n",
30080 DB_VERSION_STRING, version);
30086 #if DB_VERSION_MAJOR > 2
30087 db_env_create( NULL, 0 );
30088 #elif DB_VERSION_MAJOR > 1
30089 db_appexit( NULL );
30091 (void) dbopen( NULL, 0, 0, 0, NULL);
30098 rm -f conftest.$ac_objext conftest$ac_exeext
30099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30100 (eval $ac_link) 2>conftest.er1
30102 grep -v '^ *+' conftest.er1 >conftest.err
30104 cat conftest.err >&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
30107 { ac_try='test -z "$ac_c_werror_flag"
30108 || test ! -s conftest.err'
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; } &&
30114 { ac_try='test -s conftest$ac_exeext'
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; }; then
30122 echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30127 rm -f conftest.err conftest.$ac_objext \
30128 conftest$ac_exeext conftest.$ac_ext
30133 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30134 echo "${ECHO_T}$ol_cv_db_db3" >&6
30136 if test $ol_cv_db_db3 = yes ; then
30141 if test $ol_cv_lib_db = no ; then
30142 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30143 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30144 if test "${ol_cv_db_db_3+set}" = set; then
30145 echo $ECHO_N "(cached) $ECHO_C" >&6
30150 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30152 cat >conftest.$ac_ext <<_ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30159 #ifdef HAVE_DB_185_H
30160 # include <db_185.h>
30165 #ifndef DB_VERSION_MAJOR
30166 # define DB_VERSION_MAJOR 1
30170 #define NULL ((void*)0)
30177 #if DB_VERSION_MAJOR > 1
30180 int major, minor, patch;
30182 version = db_version( &major, &minor, &patch );
30184 if( major != DB_VERSION_MAJOR ||
30185 minor < DB_VERSION_MINOR )
30187 printf("Berkeley DB version mismatch\n"
30188 "\theader: %s\n\tlibrary: %s\n",
30189 DB_VERSION_STRING, version);
30195 #if DB_VERSION_MAJOR > 2
30196 db_env_create( NULL, 0 );
30197 #elif DB_VERSION_MAJOR > 1
30198 db_appexit( NULL );
30200 (void) dbopen( NULL, 0, 0, 0, NULL);
30207 rm -f conftest.$ac_objext conftest$ac_exeext
30208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30209 (eval $ac_link) 2>conftest.er1
30211 grep -v '^ *+' conftest.er1 >conftest.err
30213 cat conftest.err >&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
30216 { ac_try='test -z "$ac_c_werror_flag"
30217 || test ! -s conftest.err'
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest$ac_exeext'
30224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30225 (eval $ac_try) 2>&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; }; then
30231 echo "$as_me: failed program was:" >&5
30232 sed 's/^/| /' conftest.$ac_ext >&5
30236 rm -f conftest.err conftest.$ac_objext \
30237 conftest$ac_exeext conftest.$ac_ext
30242 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30243 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30245 if test $ol_cv_db_db_3 = yes ; then
30246 ol_cv_lib_db=-ldb-3
30251 elif test $ol_cv_bdb_major = 2 ; then
30252 if test $ol_cv_lib_db = no ; then
30253 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30254 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30255 if test "${ol_cv_db_db2+set}" = set; then
30256 echo $ECHO_N "(cached) $ECHO_C" >&6
30261 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30263 cat >conftest.$ac_ext <<_ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30270 #ifdef HAVE_DB_185_H
30271 # include <db_185.h>
30276 #ifndef DB_VERSION_MAJOR
30277 # define DB_VERSION_MAJOR 1
30281 #define NULL ((void*)0)
30288 #if DB_VERSION_MAJOR > 1
30291 int major, minor, patch;
30293 version = db_version( &major, &minor, &patch );
30295 if( major != DB_VERSION_MAJOR ||
30296 minor < DB_VERSION_MINOR )
30298 printf("Berkeley DB version mismatch\n"
30299 "\theader: %s\n\tlibrary: %s\n",
30300 DB_VERSION_STRING, version);
30306 #if DB_VERSION_MAJOR > 2
30307 db_env_create( NULL, 0 );
30308 #elif DB_VERSION_MAJOR > 1
30309 db_appexit( NULL );
30311 (void) dbopen( NULL, 0, 0, 0, NULL);
30318 rm -f conftest.$ac_objext conftest$ac_exeext
30319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30320 (eval $ac_link) 2>conftest.er1
30322 grep -v '^ *+' conftest.er1 >conftest.err
30324 cat conftest.err >&5
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); } &&
30327 { ac_try='test -z "$ac_c_werror_flag"
30328 || test ! -s conftest.err'
30329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30330 (eval $ac_try) 2>&5
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333 (exit $ac_status); }; } &&
30334 { ac_try='test -s conftest$ac_exeext'
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; }; then
30342 echo "$as_me: failed program was:" >&5
30343 sed 's/^/| /' conftest.$ac_ext >&5
30347 rm -f conftest.err conftest.$ac_objext \
30348 conftest$ac_exeext conftest.$ac_ext
30353 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30354 echo "${ECHO_T}$ol_cv_db_db2" >&6
30356 if test $ol_cv_db_db2 = yes ; then
30361 if test $ol_cv_lib_db = no ; then
30362 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30363 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30364 if test "${ol_cv_db_db_2+set}" = set; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30370 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30372 cat >conftest.$ac_ext <<_ACEOF
30375 cat confdefs.h >>conftest.$ac_ext
30376 cat >>conftest.$ac_ext <<_ACEOF
30377 /* end confdefs.h. */
30379 #ifdef HAVE_DB_185_H
30380 # include <db_185.h>
30385 #ifndef DB_VERSION_MAJOR
30386 # define DB_VERSION_MAJOR 1
30390 #define NULL ((void*)0)
30397 #if DB_VERSION_MAJOR > 1
30400 int major, minor, patch;
30402 version = db_version( &major, &minor, &patch );
30404 if( major != DB_VERSION_MAJOR ||
30405 minor < DB_VERSION_MINOR )
30407 printf("Berkeley DB version mismatch\n"
30408 "\theader: %s\n\tlibrary: %s\n",
30409 DB_VERSION_STRING, version);
30415 #if DB_VERSION_MAJOR > 2
30416 db_env_create( NULL, 0 );
30417 #elif DB_VERSION_MAJOR > 1
30418 db_appexit( NULL );
30420 (void) dbopen( NULL, 0, 0, 0, NULL);
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30429 (eval $ac_link) 2>conftest.er1
30431 grep -v '^ *+' conftest.er1 >conftest.err
30433 cat conftest.err >&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); } &&
30436 { ac_try='test -z "$ac_c_werror_flag"
30437 || test ! -s conftest.err'
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; } &&
30443 { ac_try='test -s conftest$ac_exeext'
30444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445 (eval $ac_try) 2>&5
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; }; then
30451 echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30456 rm -f conftest.err conftest.$ac_objext \
30457 conftest$ac_exeext conftest.$ac_ext
30462 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30463 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30465 if test $ol_cv_db_db_2 = yes ; then
30466 ol_cv_lib_db=-ldb-2
30471 elif test $ol_cv_bdb_major = 1 ; then
30472 if test $ol_cv_lib_db = no ; then
30473 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30474 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30475 if test "${ol_cv_db_db1+set}" = set; then
30476 echo $ECHO_N "(cached) $ECHO_C" >&6
30481 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30483 cat >conftest.$ac_ext <<_ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h. */
30490 #ifdef HAVE_DB_185_H
30491 # include <db_185.h>
30496 #ifndef DB_VERSION_MAJOR
30497 # define DB_VERSION_MAJOR 1
30501 #define NULL ((void*)0)
30508 #if DB_VERSION_MAJOR > 1
30511 int major, minor, patch;
30513 version = db_version( &major, &minor, &patch );
30515 if( major != DB_VERSION_MAJOR ||
30516 minor < DB_VERSION_MINOR )
30518 printf("Berkeley DB version mismatch\n"
30519 "\theader: %s\n\tlibrary: %s\n",
30520 DB_VERSION_STRING, version);
30526 #if DB_VERSION_MAJOR > 2
30527 db_env_create( NULL, 0 );
30528 #elif DB_VERSION_MAJOR > 1
30529 db_appexit( NULL );
30531 (void) dbopen( NULL, 0, 0, 0, NULL);
30538 rm -f conftest.$ac_objext conftest$ac_exeext
30539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30540 (eval $ac_link) 2>conftest.er1
30542 grep -v '^ *+' conftest.er1 >conftest.err
30544 cat conftest.err >&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } &&
30547 { ac_try='test -z "$ac_c_werror_flag"
30548 || test ! -s conftest.err'
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; } &&
30554 { ac_try='test -s conftest$ac_exeext'
30555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; }; then
30562 echo "$as_me: failed program was:" >&5
30563 sed 's/^/| /' conftest.$ac_ext >&5
30567 rm -f conftest.err conftest.$ac_objext \
30568 conftest$ac_exeext conftest.$ac_ext
30573 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30574 echo "${ECHO_T}$ol_cv_db_db1" >&6
30576 if test $ol_cv_db_db1 = yes ; then
30581 if test $ol_cv_lib_db = no ; then
30582 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30583 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30584 if test "${ol_cv_db_db_1+set}" = set; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30590 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30592 cat >conftest.$ac_ext <<_ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h. */
30599 #ifdef HAVE_DB_185_H
30600 # include <db_185.h>
30605 #ifndef DB_VERSION_MAJOR
30606 # define DB_VERSION_MAJOR 1
30610 #define NULL ((void*)0)
30617 #if DB_VERSION_MAJOR > 1
30620 int major, minor, patch;
30622 version = db_version( &major, &minor, &patch );
30624 if( major != DB_VERSION_MAJOR ||
30625 minor < DB_VERSION_MINOR )
30627 printf("Berkeley DB version mismatch\n"
30628 "\theader: %s\n\tlibrary: %s\n",
30629 DB_VERSION_STRING, version);
30635 #if DB_VERSION_MAJOR > 2
30636 db_env_create( NULL, 0 );
30637 #elif DB_VERSION_MAJOR > 1
30638 db_appexit( NULL );
30640 (void) dbopen( NULL, 0, 0, 0, NULL);
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30649 (eval $ac_link) 2>conftest.er1
30651 grep -v '^ *+' conftest.er1 >conftest.err
30653 cat conftest.err >&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); } &&
30656 { ac_try='test -z "$ac_c_werror_flag"
30657 || test ! -s conftest.err'
30658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659 (eval $ac_try) 2>&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest$ac_exeext'
30664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665 (eval $ac_try) 2>&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30676 rm -f conftest.err conftest.$ac_objext \
30677 conftest$ac_exeext conftest.$ac_ext
30682 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30683 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30685 if test $ol_cv_db_db_1 = yes ; then
30686 ol_cv_lib_db=-ldb-1
30691 if test $ol_cv_lib_db = no ; then
30692 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30693 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30694 if test "${ol_cv_db_none+set}" = set; then
30695 echo $ECHO_N "(cached) $ECHO_C" >&6
30700 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30702 cat >conftest.$ac_ext <<_ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h. */
30709 #ifdef HAVE_DB_185_H
30710 # include <db_185.h>
30715 #ifndef DB_VERSION_MAJOR
30716 # define DB_VERSION_MAJOR 1
30720 #define NULL ((void*)0)
30727 #if DB_VERSION_MAJOR > 1
30730 int major, minor, patch;
30732 version = db_version( &major, &minor, &patch );
30734 if( major != DB_VERSION_MAJOR ||
30735 minor < DB_VERSION_MINOR )
30737 printf("Berkeley DB version mismatch\n"
30738 "\theader: %s\n\tlibrary: %s\n",
30739 DB_VERSION_STRING, version);
30745 #if DB_VERSION_MAJOR > 2
30746 db_env_create( NULL, 0 );
30747 #elif DB_VERSION_MAJOR > 1
30748 db_appexit( NULL );
30750 (void) dbopen( NULL, 0, 0, 0, NULL);
30757 rm -f conftest.$ac_objext conftest$ac_exeext
30758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30759 (eval $ac_link) 2>conftest.er1
30761 grep -v '^ *+' conftest.er1 >conftest.err
30763 cat conftest.err >&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } &&
30766 { ac_try='test -z "$ac_c_werror_flag"
30767 || test ! -s conftest.err'
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; } &&
30773 { ac_try='test -s conftest$ac_exeext'
30774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775 (eval $ac_try) 2>&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
30781 echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30786 rm -f conftest.err conftest.$ac_objext \
30787 conftest$ac_exeext conftest.$ac_ext
30792 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30793 echo "${ECHO_T}$ol_cv_db_none" >&6
30795 if test $ol_cv_db_none = yes ; then
30801 if test "$ol_cv_lib_db" != no ; then
30802 ol_cv_berkeley_db=yes
30803 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
30804 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
30805 if test "${ol_cv_berkeley_db_version+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30810 LIBS="$LTHREAD_LIBS $LIBS"
30811 if test $ol_cv_lib_db != yes ; then
30812 LIBS="$ol_cv_lib_db $LIBS"
30815 if test "$cross_compiling" = yes; then
30816 ol_cv_berkeley_db_version=cross
30818 cat >conftest.$ac_ext <<_ACEOF
30821 cat confdefs.h >>conftest.$ac_ext
30822 cat >>conftest.$ac_ext <<_ACEOF
30823 /* end confdefs.h. */
30825 #ifdef HAVE_DB_185_H
30830 #ifndef DB_VERSION_MAJOR
30831 # define DB_VERSION_MAJOR 1
30834 #define NULL ((void *)0)
30838 #if DB_VERSION_MAJOR > 1
30840 int major, minor, patch;
30842 version = db_version( &major, &minor, &patch );
30844 if( major != DB_VERSION_MAJOR ||
30845 minor != DB_VERSION_MINOR ||
30846 patch != DB_VERSION_PATCH )
30848 printf("Berkeley DB version mismatch\n"
30849 "\theader: %s\n\tlibrary: %s\n",
30850 DB_VERSION_STRING, version);
30858 rm -f conftest$ac_exeext
30859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30860 (eval $ac_link) 2>&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30865 (eval $ac_try) 2>&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); }; }; then
30869 ol_cv_berkeley_db_version=yes
30871 echo "$as_me: program exited with status $ac_status" >&5
30872 echo "$as_me: failed program was:" >&5
30873 sed 's/^/| /' conftest.$ac_ext >&5
30875 ( exit $ac_status )
30876 ol_cv_berkeley_db_version=no
30878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30884 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
30885 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
30887 if test $ol_cv_berkeley_db_version = no ; then
30888 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
30889 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
30890 { (exit 1); exit 1; }; }
30893 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
30894 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
30895 if test "${ol_cv_berkeley_db_thread+set}" = set; then
30896 echo $ECHO_N "(cached) $ECHO_C" >&6
30900 LIBS="$LTHREAD_LIBS $LIBS"
30901 if test $ol_cv_lib_db != yes ; then
30902 LIBS="$ol_cv_lib_db $LIBS"
30905 if test "$cross_compiling" = yes; then
30906 ol_cv_berkeley_db_thread=cross
30908 cat >conftest.$ac_ext <<_ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30915 #ifdef HAVE_DB_185_H
30921 #define NULL ((void *)0)
30926 u_int32_t flags = DB_CREATE |
30932 #if DB_VERSION_MAJOR > 2
30933 DB_ENV *env = NULL;
30935 rc = db_env_create( &env, 0 );
30937 flags |= DB_INIT_MPOOL;
30938 #ifdef DB_MPOOL_PRIVATE
30939 flags |= DB_MPOOL_PRIVATE;
30943 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30947 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
30948 rc = env->open( env, NULL, flags, 0 );
30950 rc = env->open( env, NULL, NULL, flags, 0 );
30954 rc = env->close( env, 0 );
30958 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30964 memset( &env, '\0', sizeof(env) );
30966 rc = db_appinit( NULL, NULL, &env, flags );
30969 db_appexit( &env );
30972 unlink("__db_mpool.share");
30973 unlink("__db_lock.share");
30979 rm -f conftest$ac_exeext
30980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30981 (eval $ac_link) 2>&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30986 (eval $ac_try) 2>&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); }; }; then
30990 ol_cv_berkeley_db_thread=yes
30992 echo "$as_me: program exited with status $ac_status" >&5
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 ( exit $ac_status )
30997 ol_cv_berkeley_db_thread=no
30999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31005 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31006 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31008 if test $ol_cv_berkeley_db_thread != no ; then
31010 cat >>confdefs.h <<\_ACEOF
31011 #define HAVE_BERKELEY_DB_THREAD 1
31020 if test $ol_cv_berkeley_db = no ; then
31021 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31022 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31023 { (exit 1); exit 1; }; }
31027 cat >>confdefs.h <<\_ACEOF
31028 #define HAVE_BERKELEY_DB 1
31032 if test $ol_cv_lib_db != yes ; then
31033 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31036 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31037 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31038 if test "${ol_cv_bdb_compat+set}" = set; then
31039 echo $ECHO_N "(cached) $ECHO_C" >&6
31042 cat >conftest.$ac_ext <<_ACEOF
31045 cat confdefs.h >>conftest.$ac_ext
31046 cat >>conftest.$ac_ext <<_ACEOF
31047 /* end confdefs.h. */
31051 /* this check could be improved */
31052 #ifndef DB_VERSION_MAJOR
31053 # define DB_VERSION_MAJOR 1
31055 #ifndef DB_VERSION_MINOR
31056 # define DB_VERSION_MINOR 0
31059 /* require 4.2 or later, but exclude 4.3 */
31060 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31061 __db_version_compat
31065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31066 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31067 ol_cv_bdb_compat=yes
31069 ol_cv_bdb_compat=no
31074 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31075 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31078 if test $ol_cv_bdb_compat != yes ; then
31079 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31080 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31081 { (exit 1); exit 1; }; }
31084 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31090 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31091 BUILD_LIBS_DYNAMIC=shared
31093 cat >>confdefs.h <<\_ACEOF
31094 #define LDAP_LIBS_DYNAMIC 1
31099 BUILD_LIBS_DYNAMIC=static
31103 if test $ol_enable_wrappers != no ; then
31105 for ac_header in tcpd.h
31107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31109 echo "$as_me:$LINENO: checking for $ac_header" >&5
31110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31112 echo $ECHO_N "(cached) $ECHO_C" >&6
31114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31117 # Is the header compilable?
31118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31120 cat >conftest.$ac_ext <<_ACEOF
31123 cat confdefs.h >>conftest.$ac_ext
31124 cat >>conftest.$ac_ext <<_ACEOF
31125 /* end confdefs.h. */
31126 $ac_includes_default
31127 #include <$ac_header>
31129 rm -f conftest.$ac_objext
31130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31131 (eval $ac_compile) 2>conftest.er1
31133 grep -v '^ *+' conftest.er1 >conftest.err
31135 cat conftest.err >&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); } &&
31138 { ac_try='test -z "$ac_c_werror_flag"
31139 || test ! -s conftest.err'
31140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141 (eval $ac_try) 2>&5
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; } &&
31145 { ac_try='test -s conftest.$ac_objext'
31146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147 (eval $ac_try) 2>&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
31151 ac_header_compiler=yes
31153 echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31156 ac_header_compiler=no
31158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31160 echo "${ECHO_T}$ac_header_compiler" >&6
31162 # Is the header present?
31163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31165 cat >conftest.$ac_ext <<_ACEOF
31168 cat confdefs.h >>conftest.$ac_ext
31169 cat >>conftest.$ac_ext <<_ACEOF
31170 /* end confdefs.h. */
31171 #include <$ac_header>
31173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31176 grep -v '^ *+' conftest.er1 >conftest.err
31178 cat conftest.err >&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); } >/dev/null; then
31181 if test -s conftest.err; then
31182 ac_cpp_err=$ac_c_preproc_warn_flag
31183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31190 if test -z "$ac_cpp_err"; then
31191 ac_header_preproc=yes
31193 echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31196 ac_header_preproc=no
31198 rm -f conftest.err conftest.$ac_ext
31199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31200 echo "${ECHO_T}$ac_header_preproc" >&6
31202 # So? What about this header?
31203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31209 ac_header_preproc=yes
31212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31226 ## --------------------------------------------- ##
31227 ## Report this to <http://www.openldap.org/its/> ##
31228 ## --------------------------------------------- ##
31231 sed "s/^/$as_me: WARNING: /" >&2
31234 echo "$as_me:$LINENO: checking for $ac_header" >&5
31235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31237 echo $ECHO_N "(cached) $ECHO_C" >&6
31239 eval "$as_ac_Header=\$ac_header_preproc"
31241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31246 cat >>confdefs.h <<_ACEOF
31247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31250 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31251 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31253 LIBS="$LIBS -lwrap"
31254 cat >conftest.$ac_ext <<_ACEOF
31257 cat confdefs.h >>conftest.$ac_ext
31258 cat >>conftest.$ac_ext <<_ACEOF
31259 /* end confdefs.h. */
31262 int allow_severity = 0;
31263 int deny_severity = 0;
31265 struct request_info *req;
31277 rm -f conftest.$ac_objext conftest$ac_exeext
31278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31279 (eval $ac_link) 2>conftest.er1
31281 grep -v '^ *+' conftest.er1 >conftest.err
31283 cat conftest.err >&5
31284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285 (exit $ac_status); } &&
31286 { ac_try='test -z "$ac_c_werror_flag"
31287 || test ! -s conftest.err'
31288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31289 (eval $ac_try) 2>&5
31291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31292 (exit $ac_status); }; } &&
31293 { ac_try='test -s conftest$ac_exeext'
31294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31295 (eval $ac_try) 2>&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); }; }; then
31299 echo "$as_me:$LINENO: result: -lwrap" >&5
31300 echo "${ECHO_T}-lwrap" >&6
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31309 cat >conftest.$ac_ext <<_ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h. */
31317 int allow_severity = 0;
31318 int deny_severity = 0;
31320 struct request_info *req;
31332 rm -f conftest.$ac_objext conftest$ac_exeext
31333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31334 (eval $ac_link) 2>conftest.er1
31336 grep -v '^ *+' conftest.er1 >conftest.err
31338 cat conftest.err >&5
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); } &&
31341 { ac_try='test -z "$ac_c_werror_flag"
31342 || test ! -s conftest.err'
31343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344 (eval $ac_try) 2>&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; } &&
31348 { ac_try='test -s conftest$ac_exeext'
31349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31350 (eval $ac_try) 2>&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); }; }; then
31354 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31355 echo "${ECHO_T}-lwrap -lnsl" >&6
31357 LIBS="$save_LIBS -lnsl"
31359 echo "$as_me: failed program was:" >&5
31360 sed 's/^/| /' conftest.$ac_ext >&5
31363 echo "$as_me:$LINENO: result: no" >&5
31364 echo "${ECHO_T}no" >&6
31368 rm -f conftest.err conftest.$ac_objext \
31369 conftest$ac_exeext conftest.$ac_ext
31371 rm -f conftest.err conftest.$ac_objext \
31372 conftest$ac_exeext conftest.$ac_ext
31380 if test $have_wrappers = yes ; then
31382 cat >>confdefs.h <<\_ACEOF
31383 #define HAVE_TCPD 1
31387 elif test $ol_enable_wrappers = yes ; then
31388 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31389 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31390 { (exit 1); exit 1; }; }
31392 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31393 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31398 if test $ol_enable_syslog != no ; then
31399 echo "$as_me:$LINENO: checking for openlog" >&5
31400 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31401 if test "${ac_cv_func_openlog+set}" = set; then
31402 echo $ECHO_N "(cached) $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 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31412 #define openlog innocuous_openlog
31414 /* System header to define __stub macros and hopefully few prototypes,
31415 which can conflict with char openlog (); below.
31416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31417 <limits.h> exists even on freestanding compilers. */
31420 # include <limits.h>
31422 # include <assert.h>
31427 /* Override any gcc2 internal prototype to avoid an error. */
31432 /* We use char because int might match the return type of a gcc2
31433 builtin and then its argument prototype would still apply. */
31435 /* The GNU C library defines this for functions which it implements
31436 to always fail with ENOSYS. Some functions are actually named
31437 something starting with __ and the normal name is an alias. */
31438 #if defined (__stub_openlog) || defined (__stub___openlog)
31441 char (*f) () = openlog;
31450 return f != openlog;
31455 rm -f conftest.$ac_objext conftest$ac_exeext
31456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31457 (eval $ac_link) 2>conftest.er1
31459 grep -v '^ *+' conftest.er1 >conftest.err
31461 cat conftest.err >&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } &&
31464 { ac_try='test -z "$ac_c_werror_flag"
31465 || test ! -s conftest.err'
31466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31467 (eval $ac_try) 2>&5
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); }; } &&
31471 { ac_try='test -s conftest$ac_exeext'
31472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31473 (eval $ac_try) 2>&5
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); }; }; then
31477 ac_cv_func_openlog=yes
31479 echo "$as_me: failed program was:" >&5
31480 sed 's/^/| /' conftest.$ac_ext >&5
31482 ac_cv_func_openlog=no
31484 rm -f conftest.err conftest.$ac_objext \
31485 conftest$ac_exeext conftest.$ac_ext
31487 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31488 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31490 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31491 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31492 echo "$as_me: error: could not find syslog" >&2;}
31493 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31495 ol_enable_syslog=$ac_cv_func_openlog
31499 if test $ol_enable_sql != no ; then
31502 for ac_header in sql.h sqlext.h
31504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31506 echo "$as_me:$LINENO: checking for $ac_header" >&5
31507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31514 # Is the header compilable?
31515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31517 cat >conftest.$ac_ext <<_ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h. */
31523 $ac_includes_default
31524 #include <$ac_header>
31526 rm -f conftest.$ac_objext
31527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31528 (eval $ac_compile) 2>conftest.er1
31530 grep -v '^ *+' conftest.er1 >conftest.err
31532 cat conftest.err >&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); } &&
31535 { ac_try='test -z "$ac_c_werror_flag"
31536 || test ! -s conftest.err'
31537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31538 (eval $ac_try) 2>&5
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; } &&
31542 { ac_try='test -s conftest.$ac_objext'
31543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31544 (eval $ac_try) 2>&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; }; then
31548 ac_header_compiler=yes
31550 echo "$as_me: failed program was:" >&5
31551 sed 's/^/| /' conftest.$ac_ext >&5
31553 ac_header_compiler=no
31555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31557 echo "${ECHO_T}$ac_header_compiler" >&6
31559 # Is the header present?
31560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31562 cat >conftest.$ac_ext <<_ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h. */
31568 #include <$ac_header>
31570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31573 grep -v '^ *+' conftest.er1 >conftest.err
31575 cat conftest.err >&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); } >/dev/null; then
31578 if test -s conftest.err; then
31579 ac_cpp_err=$ac_c_preproc_warn_flag
31580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31587 if test -z "$ac_cpp_err"; then
31588 ac_header_preproc=yes
31590 echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31593 ac_header_preproc=no
31595 rm -f conftest.err conftest.$ac_ext
31596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31597 echo "${ECHO_T}$ac_header_preproc" >&6
31599 # So? What about this header?
31600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31606 ac_header_preproc=yes
31609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31623 ## --------------------------------------------- ##
31624 ## Report this to <http://www.openldap.org/its/> ##
31625 ## --------------------------------------------- ##
31628 sed "s/^/$as_me: WARNING: /" >&2
31631 echo "$as_me:$LINENO: checking for $ac_header" >&5
31632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 eval "$as_ac_Header=\$ac_header_preproc"
31638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31643 cat >>confdefs.h <<_ACEOF
31644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31649 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31650 echo "$as_me: error: could not locate SQL headers" >&2;}
31651 { (exit 1); exit 1; }; }
31659 LIBS="$LTHREAD_LIBS"
31661 if test $ol_with_odbc = auto ; then
31662 ol_with_odbc="iodbc unixodbc"
31665 for odbc in $ol_with_odbc ; do
31666 if test $ol_link_sql = no ; then
31669 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31670 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31671 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 ac_check_lib_save_LIBS=$LIBS
31675 LIBS="-liodbc $LIBS"
31676 cat >conftest.$ac_ext <<_ACEOF
31679 cat confdefs.h >>conftest.$ac_ext
31680 cat >>conftest.$ac_ext <<_ACEOF
31681 /* end confdefs.h. */
31683 /* Override any gcc2 internal prototype to avoid an error. */
31687 /* We use char because int might match the return type of a gcc2
31688 builtin and then its argument prototype would still apply. */
31689 char SQLDriverConnect ();
31693 SQLDriverConnect ();
31698 rm -f conftest.$ac_objext conftest$ac_exeext
31699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31700 (eval $ac_link) 2>conftest.er1
31702 grep -v '^ *+' conftest.er1 >conftest.err
31704 cat conftest.err >&5
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); } &&
31707 { ac_try='test -z "$ac_c_werror_flag"
31708 || test ! -s conftest.err'
31709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31710 (eval $ac_try) 2>&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); }; } &&
31714 { ac_try='test -s conftest$ac_exeext'
31715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31716 (eval $ac_try) 2>&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; }; then
31720 ac_cv_lib_iodbc_SQLDriverConnect=yes
31722 echo "$as_me: failed program was:" >&5
31723 sed 's/^/| /' conftest.$ac_ext >&5
31725 ac_cv_lib_iodbc_SQLDriverConnect=no
31727 rm -f conftest.err conftest.$ac_objext \
31728 conftest$ac_exeext conftest.$ac_ext
31729 LIBS=$ac_check_lib_save_LIBS
31731 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31732 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31733 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31739 if test $have_iodbc = yes ; then
31740 ol_link_sql="-liodbc"
31745 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31746 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31747 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31748 echo $ECHO_N "(cached) $ECHO_C" >&6
31750 ac_check_lib_save_LIBS=$LIBS
31751 LIBS="-lodbc $LIBS"
31752 cat >conftest.$ac_ext <<_ACEOF
31755 cat confdefs.h >>conftest.$ac_ext
31756 cat >>conftest.$ac_ext <<_ACEOF
31757 /* end confdefs.h. */
31759 /* Override any gcc2 internal prototype to avoid an error. */
31763 /* We use char because int might match the return type of a gcc2
31764 builtin and then its argument prototype would still apply. */
31765 char SQLDriverConnect ();
31769 SQLDriverConnect ();
31774 rm -f conftest.$ac_objext conftest$ac_exeext
31775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31776 (eval $ac_link) 2>conftest.er1
31778 grep -v '^ *+' conftest.er1 >conftest.err
31780 cat conftest.err >&5
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); } &&
31783 { ac_try='test -z "$ac_c_werror_flag"
31784 || test ! -s conftest.err'
31785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786 (eval $ac_try) 2>&5
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; } &&
31790 { ac_try='test -s conftest$ac_exeext'
31791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31792 (eval $ac_try) 2>&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; }; then
31796 ac_cv_lib_odbc_SQLDriverConnect=yes
31798 echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31801 ac_cv_lib_odbc_SQLDriverConnect=no
31803 rm -f conftest.err conftest.$ac_objext \
31804 conftest$ac_exeext conftest.$ac_ext
31805 LIBS=$ac_check_lib_save_LIBS
31807 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
31808 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
31809 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
31815 if test $have_odbc = yes ; then
31816 ol_link_sql="-lodbc"
31821 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
31822 echo "$as_me: error: unknown ODBC library" >&2;}
31823 { (exit 1); exit 1; }; }
31831 if test $ol_link_sql != no ; then
31832 SLAPD_SQL_LIBS="$ol_link_sql"
31834 elif test $ol_enable_sql != auto ; then
31835 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
31836 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
31837 { (exit 1); exit 1; }; }
31843 for ac_header in unicode/utypes.h
31845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31847 echo "$as_me:$LINENO: checking for $ac_header" >&5
31848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31855 # Is the header compilable?
31856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31858 cat >conftest.$ac_ext <<_ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h. */
31864 $ac_includes_default
31865 #include <$ac_header>
31867 rm -f conftest.$ac_objext
31868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31869 (eval $ac_compile) 2>conftest.er1
31871 grep -v '^ *+' conftest.er1 >conftest.err
31873 cat conftest.err >&5
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); } &&
31876 { ac_try='test -z "$ac_c_werror_flag"
31877 || test ! -s conftest.err'
31878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879 (eval $ac_try) 2>&5
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }; } &&
31883 { ac_try='test -s conftest.$ac_objext'
31884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885 (eval $ac_try) 2>&5
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); }; }; then
31889 ac_header_compiler=yes
31891 echo "$as_me: failed program was:" >&5
31892 sed 's/^/| /' conftest.$ac_ext >&5
31894 ac_header_compiler=no
31896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31898 echo "${ECHO_T}$ac_header_compiler" >&6
31900 # Is the header present?
31901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31903 cat >conftest.$ac_ext <<_ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h. */
31909 #include <$ac_header>
31911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31914 grep -v '^ *+' conftest.er1 >conftest.err
31916 cat conftest.err >&5
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); } >/dev/null; then
31919 if test -s conftest.err; then
31920 ac_cpp_err=$ac_c_preproc_warn_flag
31921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31928 if test -z "$ac_cpp_err"; then
31929 ac_header_preproc=yes
31931 echo "$as_me: failed program was:" >&5
31932 sed 's/^/| /' conftest.$ac_ext >&5
31934 ac_header_preproc=no
31936 rm -f conftest.err conftest.$ac_ext
31937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31938 echo "${ECHO_T}$ac_header_preproc" >&6
31940 # So? What about this header?
31941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31947 ac_header_preproc=yes
31950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31964 ## --------------------------------------------- ##
31965 ## Report this to <http://www.openldap.org/its/> ##
31966 ## --------------------------------------------- ##
31969 sed "s/^/$as_me: WARNING: /" >&2
31972 echo "$as_me:$LINENO: checking for $ac_header" >&5
31973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31977 eval "$as_ac_Header=\$ac_header_preproc"
31979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31984 cat >>confdefs.h <<_ACEOF
31985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31992 if test $ac_cv_header_unicode_utypes_h = yes ; then
31993 OL_ICULIBS="-licuuc -licudata"
31995 echo "$as_me:$LINENO: checking for ICU libraries" >&5
31996 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
31997 if test "${ol_cv_lib_icu+set}" = set; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
32002 LIBS="$OL_ICULIBS $LIBS"
32003 cat >conftest.$ac_ext <<_ACEOF
32006 cat confdefs.h >>conftest.$ac_ext
32007 cat >>conftest.$ac_ext <<_ACEOF
32008 /* end confdefs.h. */
32010 #include <unicode/utypes.h>
32016 (void) u_errorName(0);
32022 rm -f conftest.$ac_objext conftest$ac_exeext
32023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32024 (eval $ac_link) 2>conftest.er1
32026 grep -v '^ *+' conftest.er1 >conftest.err
32028 cat conftest.err >&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); } &&
32031 { ac_try='test -z "$ac_c_werror_flag"
32032 || test ! -s conftest.err'
32033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32034 (eval $ac_try) 2>&5
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); }; } &&
32038 { ac_try='test -s conftest$ac_exeext'
32039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32040 (eval $ac_try) 2>&5
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; }; then
32046 echo "$as_me: failed program was:" >&5
32047 sed 's/^/| /' conftest.$ac_ext >&5
32051 rm -f conftest.err conftest.$ac_objext \
32052 conftest$ac_exeext conftest.$ac_ext
32056 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32057 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32059 if test $ol_cv_lib_icu != no ; then
32060 ol_icu="$OL_ICULIBS"
32062 cat >>confdefs.h <<\_ACEOF
32069 if test "$ol_icu" = no ; then
32070 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32071 echo "$as_me: WARNING: ICU not available" >&2;}
32078 if test $ol_with_cyrus_sasl != no ; then
32081 for ac_header in sasl/sasl.h sasl.h
32083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32085 echo "$as_me:$LINENO: checking for $ac_header" >&5
32086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32088 echo $ECHO_N "(cached) $ECHO_C" >&6
32090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32093 # Is the header compilable?
32094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32096 cat >conftest.$ac_ext <<_ACEOF
32099 cat confdefs.h >>conftest.$ac_ext
32100 cat >>conftest.$ac_ext <<_ACEOF
32101 /* end confdefs.h. */
32102 $ac_includes_default
32103 #include <$ac_header>
32105 rm -f conftest.$ac_objext
32106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32107 (eval $ac_compile) 2>conftest.er1
32109 grep -v '^ *+' conftest.er1 >conftest.err
32111 cat conftest.err >&5
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); } &&
32114 { ac_try='test -z "$ac_c_werror_flag"
32115 || test ! -s conftest.err'
32116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117 (eval $ac_try) 2>&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; } &&
32121 { ac_try='test -s conftest.$ac_objext'
32122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32123 (eval $ac_try) 2>&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); }; }; then
32127 ac_header_compiler=yes
32129 echo "$as_me: failed program was:" >&5
32130 sed 's/^/| /' conftest.$ac_ext >&5
32132 ac_header_compiler=no
32134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32136 echo "${ECHO_T}$ac_header_compiler" >&6
32138 # Is the header present?
32139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32141 cat >conftest.$ac_ext <<_ACEOF
32144 cat confdefs.h >>conftest.$ac_ext
32145 cat >>conftest.$ac_ext <<_ACEOF
32146 /* end confdefs.h. */
32147 #include <$ac_header>
32149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32152 grep -v '^ *+' conftest.er1 >conftest.err
32154 cat conftest.err >&5
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); } >/dev/null; then
32157 if test -s conftest.err; then
32158 ac_cpp_err=$ac_c_preproc_warn_flag
32159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32166 if test -z "$ac_cpp_err"; then
32167 ac_header_preproc=yes
32169 echo "$as_me: failed program was:" >&5
32170 sed 's/^/| /' conftest.$ac_ext >&5
32172 ac_header_preproc=no
32174 rm -f conftest.err conftest.$ac_ext
32175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32176 echo "${ECHO_T}$ac_header_preproc" >&6
32178 # So? What about this header?
32179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32185 ac_header_preproc=yes
32188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32202 ## --------------------------------------------- ##
32203 ## Report this to <http://www.openldap.org/its/> ##
32204 ## --------------------------------------------- ##
32207 sed "s/^/$as_me: WARNING: /" >&2
32210 echo "$as_me:$LINENO: checking for $ac_header" >&5
32211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32213 echo $ECHO_N "(cached) $ECHO_C" >&6
32215 eval "$as_ac_Header=\$ac_header_preproc"
32217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32222 cat >>confdefs.h <<_ACEOF
32223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32231 if test $ac_cv_header_sasl_sasl_h = yes ||
32232 test $ac_cv_header_sasl_h = yes; then
32233 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32234 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32235 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32236 echo $ECHO_N "(cached) $ECHO_C" >&6
32238 ac_check_lib_save_LIBS=$LIBS
32239 LIBS="-lsasl2 $LIBS"
32240 cat >conftest.$ac_ext <<_ACEOF
32243 cat confdefs.h >>conftest.$ac_ext
32244 cat >>conftest.$ac_ext <<_ACEOF
32245 /* end confdefs.h. */
32247 /* Override any gcc2 internal prototype to avoid an error. */
32251 /* We use char because int might match the return type of a gcc2
32252 builtin and then its argument prototype would still apply. */
32253 char sasl_client_init ();
32257 sasl_client_init ();
32262 rm -f conftest.$ac_objext conftest$ac_exeext
32263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32264 (eval $ac_link) 2>conftest.er1
32266 grep -v '^ *+' conftest.er1 >conftest.err
32268 cat conftest.err >&5
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); } &&
32271 { ac_try='test -z "$ac_c_werror_flag"
32272 || test ! -s conftest.err'
32273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32274 (eval $ac_try) 2>&5
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; } &&
32278 { ac_try='test -s conftest$ac_exeext'
32279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32280 (eval $ac_try) 2>&5
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); }; }; then
32284 ac_cv_lib_sasl2_sasl_client_init=yes
32286 echo "$as_me: failed program was:" >&5
32287 sed 's/^/| /' conftest.$ac_ext >&5
32289 ac_cv_lib_sasl2_sasl_client_init=no
32291 rm -f conftest.err conftest.$ac_objext \
32292 conftest$ac_exeext conftest.$ac_ext
32293 LIBS=$ac_check_lib_save_LIBS
32295 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32296 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32297 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32298 ol_link_sasl="-lsasl2"
32300 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32301 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32302 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32305 ac_check_lib_save_LIBS=$LIBS
32306 LIBS="-lsasl $LIBS"
32307 cat >conftest.$ac_ext <<_ACEOF
32310 cat confdefs.h >>conftest.$ac_ext
32311 cat >>conftest.$ac_ext <<_ACEOF
32312 /* end confdefs.h. */
32314 /* Override any gcc2 internal prototype to avoid an error. */
32318 /* We use char because int might match the return type of a gcc2
32319 builtin and then its argument prototype would still apply. */
32320 char sasl_client_init ();
32324 sasl_client_init ();
32329 rm -f conftest.$ac_objext conftest$ac_exeext
32330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32331 (eval $ac_link) 2>conftest.er1
32333 grep -v '^ *+' conftest.er1 >conftest.err
32335 cat conftest.err >&5
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); } &&
32338 { ac_try='test -z "$ac_c_werror_flag"
32339 || test ! -s conftest.err'
32340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32341 (eval $ac_try) 2>&5
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); }; } &&
32345 { ac_try='test -s conftest$ac_exeext'
32346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32347 (eval $ac_try) 2>&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); }; }; then
32351 ac_cv_lib_sasl_sasl_client_init=yes
32353 echo "$as_me: failed program was:" >&5
32354 sed 's/^/| /' conftest.$ac_ext >&5
32356 ac_cv_lib_sasl_sasl_client_init=no
32358 rm -f conftest.err conftest.$ac_objext \
32359 conftest$ac_exeext conftest.$ac_ext
32360 LIBS=$ac_check_lib_save_LIBS
32362 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32363 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32364 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32365 ol_link_sasl="-lsasl"
32372 if test $ol_link_sasl = no ; then
32373 if test $ol_with_cyrus_sasl != auto ; then
32374 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32375 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32376 { (exit 1); exit 1; }; }
32378 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32379 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32380 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32381 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32382 if test $ol_link_tls = no ; then
32383 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32384 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32388 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32389 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32390 if test "${ol_cv_sasl_compat+set}" = set; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32394 cat >conftest.$ac_ext <<_ACEOF
32397 cat confdefs.h >>conftest.$ac_ext
32398 cat >>conftest.$ac_ext <<_ACEOF
32399 /* end confdefs.h. */
32401 #ifdef HAVE_SASL_SASL_H
32402 #include <sasl/sasl.h>
32407 /* Require 2.1.15+ */
32408 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32409 char *__sasl_compat = "2.2+ or better okay (we guess)";
32410 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32411 && SASL_VERSION_STEP >=15
32412 char *__sasl_compat = "2.1.15+ or better okay";
32416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32417 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32418 ol_cv_sasl_compat=yes
32420 ol_cv_sasl_compat=no
32425 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32426 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32428 if test $ol_cv_sasl_compat = no ; then
32430 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32431 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32432 { (exit 1); exit 1; }; }
32436 cat >>confdefs.h <<\_ACEOF
32437 #define HAVE_CYRUS_SASL 1
32440 SASL_LIBS="$ol_link_sasl"
32441 if test $ol_enable_spasswd != no ; then
32442 ol_link_spasswd=yes
32445 ac_save_LIBS="$LIBS"
32446 LIBS="$LIBS $ol_link_sasl"
32447 echo "$as_me:$LINENO: checking for sasl_version" >&5
32448 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32449 if test "${ac_cv_func_sasl_version+set}" = set; then
32450 echo $ECHO_N "(cached) $ECHO_C" >&6
32452 cat >conftest.$ac_ext <<_ACEOF
32455 cat confdefs.h >>conftest.$ac_ext
32456 cat >>conftest.$ac_ext <<_ACEOF
32457 /* end confdefs.h. */
32458 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32460 #define sasl_version innocuous_sasl_version
32462 /* System header to define __stub macros and hopefully few prototypes,
32463 which can conflict with char sasl_version (); below.
32464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32465 <limits.h> exists even on freestanding compilers. */
32468 # include <limits.h>
32470 # include <assert.h>
32473 #undef sasl_version
32475 /* Override any gcc2 internal prototype to avoid an error. */
32480 /* We use char because int might match the return type of a gcc2
32481 builtin and then its argument prototype would still apply. */
32482 char sasl_version ();
32483 /* The GNU C library defines this for functions which it implements
32484 to always fail with ENOSYS. Some functions are actually named
32485 something starting with __ and the normal name is an alias. */
32486 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32489 char (*f) () = sasl_version;
32498 return f != sasl_version;
32503 rm -f conftest.$ac_objext conftest$ac_exeext
32504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32505 (eval $ac_link) 2>conftest.er1
32507 grep -v '^ *+' conftest.er1 >conftest.err
32509 cat conftest.err >&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
32512 { ac_try='test -z "$ac_c_werror_flag"
32513 || test ! -s conftest.err'
32514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32515 (eval $ac_try) 2>&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; } &&
32519 { ac_try='test -s conftest$ac_exeext'
32520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32521 (eval $ac_try) 2>&5
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); }; }; then
32525 ac_cv_func_sasl_version=yes
32527 echo "$as_me: failed program was:" >&5
32528 sed 's/^/| /' conftest.$ac_ext >&5
32530 ac_cv_func_sasl_version=no
32532 rm -f conftest.err conftest.$ac_objext \
32533 conftest$ac_exeext conftest.$ac_ext
32535 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32536 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32537 if test $ac_cv_func_sasl_version = yes; then
32539 cat >>confdefs.h <<\_ACEOF
32540 #define HAVE_SASL_VERSION 1
32545 LIBS="$ac_save_LIBS"
32551 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32552 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32553 if test $ol_link_tls = no ; then
32554 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32555 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32559 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32561 if test -r /dev/urandom ; then
32562 dev="/dev/urandom";
32563 elif test -r /idev/urandom ; then
32564 dev="/idev/urandom";
32565 elif test -r /dev/srandom ; then
32566 dev="/dev/srandom";
32567 elif test -r /dev/random ; then
32569 elif test -r /idev/random ; then
32570 dev="/idev/random";
32573 if test $dev != no ; then
32575 cat >>confdefs.h <<_ACEOF
32576 #define URANDOM_DEVICE "$dev"
32583 if test $ol_with_fetch != no ; then
32585 LIBS="-lfetch -lcom_err $LIBS"
32586 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32587 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32588 if test "${ol_cv_lib_fetch+set}" = set; then
32589 echo $ECHO_N "(cached) $ECHO_C" >&6
32592 cat >conftest.$ac_ext <<_ACEOF
32595 cat confdefs.h >>conftest.$ac_ext
32596 cat >>conftest.$ac_ext <<_ACEOF
32597 /* end confdefs.h. */
32599 #include <sys/param.h>
32605 struct url *u = fetchParseURL("file:///");
32610 rm -f conftest.$ac_objext conftest$ac_exeext
32611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32612 (eval $ac_link) 2>conftest.er1
32614 grep -v '^ *+' conftest.er1 >conftest.err
32616 cat conftest.err >&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } &&
32619 { ac_try='test -z "$ac_c_werror_flag"
32620 || test ! -s conftest.err'
32621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622 (eval $ac_try) 2>&5
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; } &&
32626 { ac_try='test -s conftest$ac_exeext'
32627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32628 (eval $ac_try) 2>&5
32630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631 (exit $ac_status); }; }; then
32632 ol_cv_lib_fetch=yes
32634 echo "$as_me: failed program was:" >&5
32635 sed 's/^/| /' conftest.$ac_ext >&5
32639 rm -f conftest.err conftest.$ac_objext \
32640 conftest$ac_exeext conftest.$ac_ext
32642 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32643 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32645 if test $ol_cv_lib_fetch != no ; then
32646 ol_link_fetch="-lfetch -lcom_err"
32648 cat >>confdefs.h <<\_ACEOF
32649 #define HAVE_FETCH 1
32655 if test $ol_cv_lib_fetch != no ; then
32656 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32657 ol_link_fetch=freebsd
32659 elif test $ol_with_fetch != auto ; then
32660 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32661 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32662 { (exit 1); exit 1; }; }
32666 if test $ol_enable_crypt != no ; then
32668 LIBS="$TLS_LIBS $LIBS"
32670 echo "$as_me:$LINENO: checking for crypt" >&5
32671 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32672 if test "${ac_cv_func_crypt+set}" = set; then
32673 echo $ECHO_N "(cached) $ECHO_C" >&6
32675 cat >conftest.$ac_ext <<_ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32681 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32683 #define crypt innocuous_crypt
32685 /* System header to define __stub macros and hopefully few prototypes,
32686 which can conflict with char crypt (); below.
32687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32688 <limits.h> exists even on freestanding compilers. */
32691 # include <limits.h>
32693 # include <assert.h>
32698 /* Override any gcc2 internal prototype to avoid an error. */
32703 /* We use char because int might match the return type of a gcc2
32704 builtin and then its argument prototype would still apply. */
32706 /* The GNU C library defines this for functions which it implements
32707 to always fail with ENOSYS. Some functions are actually named
32708 something starting with __ and the normal name is an alias. */
32709 #if defined (__stub_crypt) || defined (__stub___crypt)
32712 char (*f) () = crypt;
32726 rm -f conftest.$ac_objext conftest$ac_exeext
32727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32728 (eval $ac_link) 2>conftest.er1
32730 grep -v '^ *+' conftest.er1 >conftest.err
32732 cat conftest.err >&5
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); } &&
32735 { ac_try='test -z "$ac_c_werror_flag"
32736 || test ! -s conftest.err'
32737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738 (eval $ac_try) 2>&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); }; } &&
32742 { ac_try='test -s conftest$ac_exeext'
32743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32744 (eval $ac_try) 2>&5
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; }; then
32748 ac_cv_func_crypt=yes
32750 echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32753 ac_cv_func_crypt=no
32755 rm -f conftest.err conftest.$ac_objext \
32756 conftest$ac_exeext conftest.$ac_ext
32758 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32759 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32760 if test $ac_cv_func_crypt = yes; then
32765 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32766 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32767 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32768 echo $ECHO_N "(cached) $ECHO_C" >&6
32770 ac_check_lib_save_LIBS=$LIBS
32771 LIBS="-lcrypt $LIBS"
32772 cat >conftest.$ac_ext <<_ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h. */
32779 /* Override any gcc2 internal prototype to avoid an error. */
32783 /* We use char because int might match the return type of a gcc2
32784 builtin and then its argument prototype would still apply. */
32794 rm -f conftest.$ac_objext conftest$ac_exeext
32795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32796 (eval $ac_link) 2>conftest.er1
32798 grep -v '^ *+' conftest.er1 >conftest.err
32800 cat conftest.err >&5
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); } &&
32803 { ac_try='test -z "$ac_c_werror_flag"
32804 || test ! -s conftest.err'
32805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32806 (eval $ac_try) 2>&5
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); }; } &&
32810 { ac_try='test -s conftest$ac_exeext'
32811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812 (eval $ac_try) 2>&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; }; then
32816 ac_cv_lib_crypt_crypt=yes
32818 echo "$as_me: failed program was:" >&5
32819 sed 's/^/| /' conftest.$ac_ext >&5
32821 ac_cv_lib_crypt_crypt=no
32823 rm -f conftest.err conftest.$ac_objext \
32824 conftest$ac_exeext conftest.$ac_ext
32825 LIBS=$ac_check_lib_save_LIBS
32827 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
32828 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
32829 if test $ac_cv_lib_crypt_crypt = yes; then
32830 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
32841 if test $have_crypt = yes ; then
32843 cat >>confdefs.h <<\_ACEOF
32844 #define HAVE_CRYPT 1
32848 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
32849 echo "$as_me: WARNING: could not find crypt" >&2;}
32850 if test $ol_enable_crypt = yes ; then
32851 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
32852 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
32853 { (exit 1); exit 1; }; }
32856 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
32857 echo "$as_me: WARNING: disabling crypt support" >&2;}
32862 if test $ol_enable_proctitle != no ; then
32863 echo "$as_me:$LINENO: checking for setproctitle" >&5
32864 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
32865 if test "${ac_cv_func_setproctitle+set}" = set; then
32866 echo $ECHO_N "(cached) $ECHO_C" >&6
32868 cat >conftest.$ac_ext <<_ACEOF
32871 cat confdefs.h >>conftest.$ac_ext
32872 cat >>conftest.$ac_ext <<_ACEOF
32873 /* end confdefs.h. */
32874 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
32875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32876 #define setproctitle innocuous_setproctitle
32878 /* System header to define __stub macros and hopefully few prototypes,
32879 which can conflict with char setproctitle (); below.
32880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32881 <limits.h> exists even on freestanding compilers. */
32884 # include <limits.h>
32886 # include <assert.h>
32889 #undef setproctitle
32891 /* Override any gcc2 internal prototype to avoid an error. */
32896 /* We use char because int might match the return type of a gcc2
32897 builtin and then its argument prototype would still apply. */
32898 char setproctitle ();
32899 /* The GNU C library defines this for functions which it implements
32900 to always fail with ENOSYS. Some functions are actually named
32901 something starting with __ and the normal name is an alias. */
32902 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
32905 char (*f) () = setproctitle;
32914 return f != setproctitle;
32919 rm -f conftest.$ac_objext conftest$ac_exeext
32920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32921 (eval $ac_link) 2>conftest.er1
32923 grep -v '^ *+' conftest.er1 >conftest.err
32925 cat conftest.err >&5
32926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 (exit $ac_status); } &&
32928 { ac_try='test -z "$ac_c_werror_flag"
32929 || test ! -s conftest.err'
32930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32931 (eval $ac_try) 2>&5
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); }; } &&
32935 { ac_try='test -s conftest$ac_exeext'
32936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32937 (eval $ac_try) 2>&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); }; }; then
32941 ac_cv_func_setproctitle=yes
32943 echo "$as_me: failed program was:" >&5
32944 sed 's/^/| /' conftest.$ac_ext >&5
32946 ac_cv_func_setproctitle=no
32948 rm -f conftest.err conftest.$ac_objext \
32949 conftest$ac_exeext conftest.$ac_ext
32951 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
32952 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
32953 if test $ac_cv_func_setproctitle = yes; then
32954 have_setproctitle=yes
32957 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
32958 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
32959 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32962 ac_check_lib_save_LIBS=$LIBS
32963 LIBS="-lutil $LIBS"
32964 cat >conftest.$ac_ext <<_ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h. */
32971 /* Override any gcc2 internal prototype to avoid an error. */
32975 /* We use char because int might match the return type of a gcc2
32976 builtin and then its argument prototype would still apply. */
32977 char setproctitle ();
32986 rm -f conftest.$ac_objext conftest$ac_exeext
32987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32988 (eval $ac_link) 2>conftest.er1
32990 grep -v '^ *+' conftest.er1 >conftest.err
32992 cat conftest.err >&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } &&
32995 { ac_try='test -z "$ac_c_werror_flag"
32996 || test ! -s conftest.err'
32997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32998 (eval $ac_try) 2>&5
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; } &&
33002 { ac_try='test -s conftest$ac_exeext'
33003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33004 (eval $ac_try) 2>&5
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); }; }; then
33008 ac_cv_lib_util_setproctitle=yes
33010 echo "$as_me: failed program was:" >&5
33011 sed 's/^/| /' conftest.$ac_ext >&5
33013 ac_cv_lib_util_setproctitle=no
33015 rm -f conftest.err conftest.$ac_objext \
33016 conftest$ac_exeext conftest.$ac_ext
33017 LIBS=$ac_check_lib_save_LIBS
33019 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33020 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33021 if test $ac_cv_lib_util_setproctitle = yes; then
33022 have_setproctitle=yes
33023 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33025 have_setproctitle=no
33027 "setproctitle.$ac_objext" | \
33028 *" setproctitle.$ac_objext" | \
33029 "setproctitle.$ac_objext "* | \
33030 *" setproctitle.$ac_objext "* ) ;;
33031 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33034 LIBSRCS="$LIBSRCS setproctitle.c"
33040 if test $have_setproctitle = yes ; then
33042 cat >>confdefs.h <<\_ACEOF
33043 #define HAVE_SETPROCTITLE 1
33049 if test $ol_enable_slp != no ; then
33051 for ac_header in slp.h
33053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33055 echo "$as_me:$LINENO: checking for $ac_header" >&5
33056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33058 echo $ECHO_N "(cached) $ECHO_C" >&6
33060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33063 # Is the header compilable?
33064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33066 cat >conftest.$ac_ext <<_ACEOF
33069 cat confdefs.h >>conftest.$ac_ext
33070 cat >>conftest.$ac_ext <<_ACEOF
33071 /* end confdefs.h. */
33072 $ac_includes_default
33073 #include <$ac_header>
33075 rm -f conftest.$ac_objext
33076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33077 (eval $ac_compile) 2>conftest.er1
33079 grep -v '^ *+' conftest.er1 >conftest.err
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } &&
33084 { ac_try='test -z "$ac_c_werror_flag"
33085 || test ! -s conftest.err'
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest.$ac_objext'
33092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33093 (eval $ac_try) 2>&5
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; }; then
33097 ac_header_compiler=yes
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33102 ac_header_compiler=no
33104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33106 echo "${ECHO_T}$ac_header_compiler" >&6
33108 # Is the header present?
33109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33111 cat >conftest.$ac_ext <<_ACEOF
33114 cat confdefs.h >>conftest.$ac_ext
33115 cat >>conftest.$ac_ext <<_ACEOF
33116 /* end confdefs.h. */
33117 #include <$ac_header>
33119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33122 grep -v '^ *+' conftest.er1 >conftest.err
33124 cat conftest.err >&5
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); } >/dev/null; then
33127 if test -s conftest.err; then
33128 ac_cpp_err=$ac_c_preproc_warn_flag
33129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33136 if test -z "$ac_cpp_err"; then
33137 ac_header_preproc=yes
33139 echo "$as_me: failed program was:" >&5
33140 sed 's/^/| /' conftest.$ac_ext >&5
33142 ac_header_preproc=no
33144 rm -f conftest.err conftest.$ac_ext
33145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33146 echo "${ECHO_T}$ac_header_preproc" >&6
33148 # So? What about this header?
33149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33155 ac_header_preproc=yes
33158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33172 ## --------------------------------------------- ##
33173 ## Report this to <http://www.openldap.org/its/> ##
33174 ## --------------------------------------------- ##
33177 sed "s/^/$as_me: WARNING: /" >&2
33180 echo "$as_me:$LINENO: checking for $ac_header" >&5
33181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33185 eval "$as_ac_Header=\$ac_header_preproc"
33187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33192 cat >>confdefs.h <<_ACEOF
33193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33201 if test $ac_cv_header_slp_h = yes ; then
33202 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33203 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33204 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33205 echo $ECHO_N "(cached) $ECHO_C" >&6
33207 ac_check_lib_save_LIBS=$LIBS
33209 cat >conftest.$ac_ext <<_ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h. */
33216 /* Override any gcc2 internal prototype to avoid an error. */
33220 /* We use char because int might match the return type of a gcc2
33221 builtin and then its argument prototype would still apply. */
33231 rm -f conftest.$ac_objext conftest$ac_exeext
33232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33233 (eval $ac_link) 2>conftest.er1
33235 grep -v '^ *+' conftest.er1 >conftest.err
33237 cat conftest.err >&5
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); } &&
33240 { ac_try='test -z "$ac_c_werror_flag"
33241 || test ! -s conftest.err'
33242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243 (eval $ac_try) 2>&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; } &&
33247 { ac_try='test -s conftest$ac_exeext'
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; }; then
33253 ac_cv_lib_slp_SLPOpen=yes
33255 echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33258 ac_cv_lib_slp_SLPOpen=no
33260 rm -f conftest.err conftest.$ac_objext \
33261 conftest$ac_exeext conftest.$ac_ext
33262 LIBS=$ac_check_lib_save_LIBS
33264 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33265 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33266 if test $ac_cv_lib_slp_SLPOpen = yes; then
33272 if test $have_slp = yes ; then
33274 cat >>confdefs.h <<\_ACEOF
33278 SLAPD_SLP_LIBS=-lslp
33281 elif test $ol_enable_slp = yes ; then
33282 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33283 echo "$as_me: error: SLP not found" >&2;}
33284 { (exit 1); exit 1; }; }
33289 echo "$as_me:$LINENO: checking for mode_t" >&5
33290 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33291 if test "${ac_cv_type_mode_t+set}" = set; then
33292 echo $ECHO_N "(cached) $ECHO_C" >&6
33294 cat >conftest.$ac_ext <<_ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h. */
33300 $ac_includes_default
33306 if (sizeof (mode_t))
33312 rm -f conftest.$ac_objext
33313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33314 (eval $ac_compile) 2>conftest.er1
33316 grep -v '^ *+' conftest.er1 >conftest.err
33318 cat conftest.err >&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); } &&
33321 { ac_try='test -z "$ac_c_werror_flag"
33322 || test ! -s conftest.err'
33323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33324 (eval $ac_try) 2>&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); }; } &&
33328 { ac_try='test -s conftest.$ac_objext'
33329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33330 (eval $ac_try) 2>&5
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); }; }; then
33334 ac_cv_type_mode_t=yes
33336 echo "$as_me: failed program was:" >&5
33337 sed 's/^/| /' conftest.$ac_ext >&5
33339 ac_cv_type_mode_t=no
33341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33343 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33344 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33345 if test $ac_cv_type_mode_t = yes; then
33349 cat >>confdefs.h <<_ACEOF
33355 echo "$as_me:$LINENO: checking for off_t" >&5
33356 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33357 if test "${ac_cv_type_off_t+set}" = set; then
33358 echo $ECHO_N "(cached) $ECHO_C" >&6
33360 cat >conftest.$ac_ext <<_ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h. */
33366 $ac_includes_default
33372 if (sizeof (off_t))
33378 rm -f conftest.$ac_objext
33379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33380 (eval $ac_compile) 2>conftest.er1
33382 grep -v '^ *+' conftest.er1 >conftest.err
33384 cat conftest.err >&5
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); } &&
33387 { ac_try='test -z "$ac_c_werror_flag"
33388 || test ! -s conftest.err'
33389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390 (eval $ac_try) 2>&5
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest.$ac_objext'
33395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33396 (eval $ac_try) 2>&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
33400 ac_cv_type_off_t=yes
33402 echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33405 ac_cv_type_off_t=no
33407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33409 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33410 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33411 if test $ac_cv_type_off_t = yes; then
33415 cat >>confdefs.h <<_ACEOF
33421 echo "$as_me:$LINENO: checking for pid_t" >&5
33422 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33423 if test "${ac_cv_type_pid_t+set}" = set; then
33424 echo $ECHO_N "(cached) $ECHO_C" >&6
33426 cat >conftest.$ac_ext <<_ACEOF
33429 cat confdefs.h >>conftest.$ac_ext
33430 cat >>conftest.$ac_ext <<_ACEOF
33431 /* end confdefs.h. */
33432 $ac_includes_default
33438 if (sizeof (pid_t))
33444 rm -f conftest.$ac_objext
33445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33446 (eval $ac_compile) 2>conftest.er1
33448 grep -v '^ *+' conftest.er1 >conftest.err
33450 cat conftest.err >&5
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); } &&
33453 { ac_try='test -z "$ac_c_werror_flag"
33454 || test ! -s conftest.err'
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; } &&
33460 { ac_try='test -s conftest.$ac_objext'
33461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462 (eval $ac_try) 2>&5
33464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465 (exit $ac_status); }; }; then
33466 ac_cv_type_pid_t=yes
33468 echo "$as_me: failed program was:" >&5
33469 sed 's/^/| /' conftest.$ac_ext >&5
33471 ac_cv_type_pid_t=no
33473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33475 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33476 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33477 if test $ac_cv_type_pid_t = yes; then
33481 cat >>confdefs.h <<_ACEOF
33487 echo "$as_me:$LINENO: checking for ssize_t" >&5
33488 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33489 if test "${ac_cv_type_ssize_t+set}" = set; then
33490 echo $ECHO_N "(cached) $ECHO_C" >&6
33492 cat >conftest.$ac_ext <<_ACEOF
33495 cat confdefs.h >>conftest.$ac_ext
33496 cat >>conftest.$ac_ext <<_ACEOF
33497 /* end confdefs.h. */
33498 $ac_includes_default
33504 if (sizeof (ssize_t))
33510 rm -f conftest.$ac_objext
33511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33512 (eval $ac_compile) 2>conftest.er1
33514 grep -v '^ *+' conftest.er1 >conftest.err
33516 cat conftest.err >&5
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); } &&
33519 { ac_try='test -z "$ac_c_werror_flag"
33520 || test ! -s conftest.err'
33521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33522 (eval $ac_try) 2>&5
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); }; } &&
33526 { ac_try='test -s conftest.$ac_objext'
33527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528 (eval $ac_try) 2>&5
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; }; then
33532 ac_cv_type_ssize_t=yes
33534 echo "$as_me: failed program was:" >&5
33535 sed 's/^/| /' conftest.$ac_ext >&5
33537 ac_cv_type_ssize_t=no
33539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33541 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33542 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33543 if test $ac_cv_type_ssize_t = yes; then
33547 cat >>confdefs.h <<_ACEOF
33548 #define ssize_t signed int
33553 echo "$as_me:$LINENO: checking for caddr_t" >&5
33554 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33555 if test "${ac_cv_type_caddr_t+set}" = set; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33558 cat >conftest.$ac_ext <<_ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h. */
33564 $ac_includes_default
33570 if (sizeof (caddr_t))
33576 rm -f conftest.$ac_objext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33578 (eval $ac_compile) 2>conftest.er1
33580 grep -v '^ *+' conftest.er1 >conftest.err
33582 cat conftest.err >&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } &&
33585 { ac_try='test -z "$ac_c_werror_flag"
33586 || test ! -s conftest.err'
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; } &&
33592 { ac_try='test -s conftest.$ac_objext'
33593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594 (eval $ac_try) 2>&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; }; then
33598 ac_cv_type_caddr_t=yes
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33603 ac_cv_type_caddr_t=no
33605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33607 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33608 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33609 if test $ac_cv_type_caddr_t = yes; then
33613 cat >>confdefs.h <<_ACEOF
33614 #define caddr_t char *
33619 echo "$as_me:$LINENO: checking for size_t" >&5
33620 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33621 if test "${ac_cv_type_size_t+set}" = set; then
33622 echo $ECHO_N "(cached) $ECHO_C" >&6
33624 cat >conftest.$ac_ext <<_ACEOF
33627 cat confdefs.h >>conftest.$ac_ext
33628 cat >>conftest.$ac_ext <<_ACEOF
33629 /* end confdefs.h. */
33630 $ac_includes_default
33636 if (sizeof (size_t))
33642 rm -f conftest.$ac_objext
33643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33644 (eval $ac_compile) 2>conftest.er1
33646 grep -v '^ *+' conftest.er1 >conftest.err
33648 cat conftest.err >&5
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); } &&
33651 { ac_try='test -z "$ac_c_werror_flag"
33652 || test ! -s conftest.err'
33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654 (eval $ac_try) 2>&5
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); }; } &&
33658 { ac_try='test -s conftest.$ac_objext'
33659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33660 (eval $ac_try) 2>&5
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); }; }; then
33664 ac_cv_type_size_t=yes
33666 echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33669 ac_cv_type_size_t=no
33671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33673 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33674 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33675 if test $ac_cv_type_size_t = yes; then
33679 cat >>confdefs.h <<_ACEOF
33680 #define size_t unsigned
33686 echo "$as_me:$LINENO: checking for long long" >&5
33687 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33688 if test "${ac_cv_type_long_long+set}" = set; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33691 cat >conftest.$ac_ext <<_ACEOF
33694 cat confdefs.h >>conftest.$ac_ext
33695 cat >>conftest.$ac_ext <<_ACEOF
33696 /* end confdefs.h. */
33697 $ac_includes_default
33701 if ((long long *) 0)
33703 if (sizeof (long long))
33709 rm -f conftest.$ac_objext
33710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33711 (eval $ac_compile) 2>conftest.er1
33713 grep -v '^ *+' conftest.er1 >conftest.err
33715 cat conftest.err >&5
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); } &&
33718 { ac_try='test -z "$ac_c_werror_flag"
33719 || test ! -s conftest.err'
33720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33721 (eval $ac_try) 2>&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); }; } &&
33725 { ac_try='test -s conftest.$ac_objext'
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; }; then
33731 ac_cv_type_long_long=yes
33733 echo "$as_me: failed program was:" >&5
33734 sed 's/^/| /' conftest.$ac_ext >&5
33736 ac_cv_type_long_long=no
33738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33740 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33741 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33742 if test $ac_cv_type_long_long = yes; then
33744 cat >>confdefs.h <<_ACEOF
33745 #define HAVE_LONG_LONG 1
33751 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33752 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33753 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33754 echo $ECHO_N "(cached) $ECHO_C" >&6
33756 cat >conftest.$ac_ext <<_ACEOF
33759 cat confdefs.h >>conftest.$ac_ext
33760 cat >>conftest.$ac_ext <<_ACEOF
33761 /* end confdefs.h. */
33762 $ac_includes_default
33766 if ((ptrdiff_t *) 0)
33768 if (sizeof (ptrdiff_t))
33774 rm -f conftest.$ac_objext
33775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33776 (eval $ac_compile) 2>conftest.er1
33778 grep -v '^ *+' conftest.er1 >conftest.err
33780 cat conftest.err >&5
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); } &&
33783 { ac_try='test -z "$ac_c_werror_flag"
33784 || test ! -s conftest.err'
33785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786 (eval $ac_try) 2>&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); }; } &&
33790 { ac_try='test -s conftest.$ac_objext'
33791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792 (eval $ac_try) 2>&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; }; then
33796 ac_cv_type_ptrdiff_t=yes
33798 echo "$as_me: failed program was:" >&5
33799 sed 's/^/| /' conftest.$ac_ext >&5
33801 ac_cv_type_ptrdiff_t=no
33803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33805 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
33806 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
33807 if test $ac_cv_type_ptrdiff_t = yes; then
33809 cat >>confdefs.h <<_ACEOF
33810 #define HAVE_PTRDIFF_T 1
33817 echo "$as_me:$LINENO: checking for socklen_t" >&5
33818 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
33819 if test "${ac_cv_type_socklen_t+set}" = set; then
33820 echo $ECHO_N "(cached) $ECHO_C" >&6
33822 cat >conftest.$ac_ext <<_ACEOF
33825 cat confdefs.h >>conftest.$ac_ext
33826 cat >>conftest.$ac_ext <<_ACEOF
33827 /* end confdefs.h. */
33828 $ac_includes_default
33829 #ifdef HAVE_SYS_SOCKET_H
33830 #include <sys/socket.h>
33837 if ((socklen_t *) 0)
33839 if (sizeof (socklen_t))
33845 rm -f conftest.$ac_objext
33846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33847 (eval $ac_compile) 2>conftest.er1
33849 grep -v '^ *+' conftest.er1 >conftest.err
33851 cat conftest.err >&5
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); } &&
33854 { ac_try='test -z "$ac_c_werror_flag"
33855 || test ! -s conftest.err'
33856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33857 (eval $ac_try) 2>&5
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); }; } &&
33861 { ac_try='test -s conftest.$ac_objext'
33862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33863 (eval $ac_try) 2>&5
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; }; then
33867 ac_cv_type_socklen_t=yes
33869 echo "$as_me: failed program was:" >&5
33870 sed 's/^/| /' conftest.$ac_ext >&5
33872 ac_cv_type_socklen_t=no
33874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33876 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
33877 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
33878 if test $ac_cv_type_socklen_t = yes; then
33882 cat >>confdefs.h <<_ACEOF
33883 #define socklen_t int
33889 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33890 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
33891 if test "${ac_cv_type_signal+set}" = set; then
33892 echo $ECHO_N "(cached) $ECHO_C" >&6
33894 cat >conftest.$ac_ext <<_ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h. */
33900 #include <sys/types.h>
33901 #include <signal.h>
33906 extern "C" void (*signal (int, void (*)(int)))(int);
33908 void (*signal ()) ();
33919 rm -f conftest.$ac_objext
33920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33921 (eval $ac_compile) 2>conftest.er1
33923 grep -v '^ *+' conftest.er1 >conftest.err
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } &&
33928 { ac_try='test -z "$ac_c_werror_flag"
33929 || test ! -s conftest.err'
33930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33931 (eval $ac_try) 2>&5
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); }; } &&
33935 { ac_try='test -s conftest.$ac_objext'
33936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33937 (eval $ac_try) 2>&5
33939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); }; }; then
33941 ac_cv_type_signal=void
33943 echo "$as_me: failed program was:" >&5
33944 sed 's/^/| /' conftest.$ac_ext >&5
33946 ac_cv_type_signal=int
33948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33950 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33951 echo "${ECHO_T}$ac_cv_type_signal" >&6
33953 cat >>confdefs.h <<_ACEOF
33954 #define RETSIGTYPE $ac_cv_type_signal
33959 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
33960 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
33961 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
33962 echo $ECHO_N "(cached) $ECHO_C" >&6
33964 cat >conftest.$ac_ext <<_ACEOF
33967 cat confdefs.h >>conftest.$ac_ext
33968 cat >>conftest.$ac_ext <<_ACEOF
33969 /* end confdefs.h. */
33970 $ac_includes_default
33971 #include <signal.h>
33977 if ((sig_atomic_t *) 0)
33979 if (sizeof (sig_atomic_t))
33985 rm -f conftest.$ac_objext
33986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33987 (eval $ac_compile) 2>conftest.er1
33989 grep -v '^ *+' conftest.er1 >conftest.err
33991 cat conftest.err >&5
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); } &&
33994 { ac_try='test -z "$ac_c_werror_flag"
33995 || test ! -s conftest.err'
33996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33997 (eval $ac_try) 2>&5
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest.$ac_objext'
34002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34003 (eval $ac_try) 2>&5
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; }; then
34007 ac_cv_type_sig_atomic_t=yes
34009 echo "$as_me: failed program was:" >&5
34010 sed 's/^/| /' conftest.$ac_ext >&5
34012 ac_cv_type_sig_atomic_t=no
34014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34016 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34017 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34018 if test $ac_cv_type_sig_atomic_t = yes; then
34022 cat >>confdefs.h <<_ACEOF
34023 #define sig_atomic_t int
34029 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34030 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34031 if test "${ac_cv_type_uid_t+set}" = set; then
34032 echo $ECHO_N "(cached) $ECHO_C" >&6
34034 cat >conftest.$ac_ext <<_ACEOF
34037 cat confdefs.h >>conftest.$ac_ext
34038 cat >>conftest.$ac_ext <<_ACEOF
34039 /* end confdefs.h. */
34040 #include <sys/types.h>
34043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34044 $EGREP "uid_t" >/dev/null 2>&1; then
34045 ac_cv_type_uid_t=yes
34047 ac_cv_type_uid_t=no
34052 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34053 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34054 if test $ac_cv_type_uid_t = no; then
34056 cat >>confdefs.h <<\_ACEOF
34061 cat >>confdefs.h <<\_ACEOF
34068 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34069 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34070 if test "${ac_cv_header_time+set}" = set; then
34071 echo $ECHO_N "(cached) $ECHO_C" >&6
34073 cat >conftest.$ac_ext <<_ACEOF
34076 cat confdefs.h >>conftest.$ac_ext
34077 cat >>conftest.$ac_ext <<_ACEOF
34078 /* end confdefs.h. */
34079 #include <sys/types.h>
34080 #include <sys/time.h>
34086 if ((struct tm *) 0)
34092 rm -f conftest.$ac_objext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34094 (eval $ac_compile) 2>conftest.er1
34096 grep -v '^ *+' conftest.er1 >conftest.err
34098 cat conftest.err >&5
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); } &&
34101 { ac_try='test -z "$ac_c_werror_flag"
34102 || test ! -s conftest.err'
34103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34104 (eval $ac_try) 2>&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); }; } &&
34108 { ac_try='test -s conftest.$ac_objext'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34114 ac_cv_header_time=yes
34116 echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34119 ac_cv_header_time=no
34121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34123 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34124 echo "${ECHO_T}$ac_cv_header_time" >&6
34125 if test $ac_cv_header_time = yes; then
34127 cat >>confdefs.h <<\_ACEOF
34128 #define TIME_WITH_SYS_TIME 1
34133 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34134 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34135 if test "${ac_cv_struct_tm+set}" = set; then
34136 echo $ECHO_N "(cached) $ECHO_C" >&6
34138 cat >conftest.$ac_ext <<_ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h. */
34144 #include <sys/types.h>
34150 struct tm *tp; tp->tm_sec;
34155 rm -f conftest.$ac_objext
34156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34157 (eval $ac_compile) 2>conftest.er1
34159 grep -v '^ *+' conftest.er1 >conftest.err
34161 cat conftest.err >&5
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); } &&
34164 { ac_try='test -z "$ac_c_werror_flag"
34165 || test ! -s conftest.err'
34166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34167 (eval $ac_try) 2>&5
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; } &&
34171 { ac_try='test -s conftest.$ac_objext'
34172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34173 (eval $ac_try) 2>&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); }; }; then
34177 ac_cv_struct_tm=time.h
34179 echo "$as_me: failed program was:" >&5
34180 sed 's/^/| /' conftest.$ac_ext >&5
34182 ac_cv_struct_tm=sys/time.h
34184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34186 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34187 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34188 if test $ac_cv_struct_tm = sys/time.h; then
34190 cat >>confdefs.h <<\_ACEOF
34191 #define TM_IN_SYS_TIME 1
34196 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34197 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34198 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34199 echo $ECHO_N "(cached) $ECHO_C" >&6
34201 cat >conftest.$ac_ext <<_ACEOF
34204 cat confdefs.h >>conftest.$ac_ext
34205 cat >>conftest.$ac_ext <<_ACEOF
34206 /* end confdefs.h. */
34207 $ac_includes_default
34211 static struct stat ac_aggr;
34212 if (ac_aggr.st_blksize)
34218 rm -f conftest.$ac_objext
34219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34220 (eval $ac_compile) 2>conftest.er1
34222 grep -v '^ *+' conftest.er1 >conftest.err
34224 cat conftest.err >&5
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); } &&
34227 { ac_try='test -z "$ac_c_werror_flag"
34228 || test ! -s conftest.err'
34229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34230 (eval $ac_try) 2>&5
34232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233 (exit $ac_status); }; } &&
34234 { ac_try='test -s conftest.$ac_objext'
34235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34236 (eval $ac_try) 2>&5
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); }; }; then
34240 ac_cv_member_struct_stat_st_blksize=yes
34242 echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34245 cat >conftest.$ac_ext <<_ACEOF
34248 cat confdefs.h >>conftest.$ac_ext
34249 cat >>conftest.$ac_ext <<_ACEOF
34250 /* end confdefs.h. */
34251 $ac_includes_default
34255 static struct stat ac_aggr;
34256 if (sizeof ac_aggr.st_blksize)
34262 rm -f conftest.$ac_objext
34263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34264 (eval $ac_compile) 2>conftest.er1
34266 grep -v '^ *+' conftest.er1 >conftest.err
34268 cat conftest.err >&5
34269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270 (exit $ac_status); } &&
34271 { ac_try='test -z "$ac_c_werror_flag"
34272 || test ! -s conftest.err'
34273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34274 (eval $ac_try) 2>&5
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; } &&
34278 { ac_try='test -s conftest.$ac_objext'
34279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34280 (eval $ac_try) 2>&5
34282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283 (exit $ac_status); }; }; then
34284 ac_cv_member_struct_stat_st_blksize=yes
34286 echo "$as_me: failed program was:" >&5
34287 sed 's/^/| /' conftest.$ac_ext >&5
34289 ac_cv_member_struct_stat_st_blksize=no
34291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34296 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34297 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34299 cat >>confdefs.h <<_ACEOF
34300 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34306 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34307 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34308 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34309 echo $ECHO_N "(cached) $ECHO_C" >&6
34311 cat >conftest.$ac_ext <<_ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h. */
34317 $ac_includes_default
34323 static struct passwd ac_aggr;
34324 if (ac_aggr.pw_gecos)
34330 rm -f conftest.$ac_objext
34331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34332 (eval $ac_compile) 2>conftest.er1
34334 grep -v '^ *+' conftest.er1 >conftest.err
34336 cat conftest.err >&5
34337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34338 (exit $ac_status); } &&
34339 { ac_try='test -z "$ac_c_werror_flag"
34340 || test ! -s conftest.err'
34341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342 (eval $ac_try) 2>&5
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); }; } &&
34346 { ac_try='test -s conftest.$ac_objext'
34347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34348 (eval $ac_try) 2>&5
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
34352 ac_cv_member_struct_passwd_pw_gecos=yes
34354 echo "$as_me: failed program was:" >&5
34355 sed 's/^/| /' conftest.$ac_ext >&5
34357 cat >conftest.$ac_ext <<_ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h. */
34363 $ac_includes_default
34369 static struct passwd ac_aggr;
34370 if (sizeof ac_aggr.pw_gecos)
34376 rm -f conftest.$ac_objext
34377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34378 (eval $ac_compile) 2>conftest.er1
34380 grep -v '^ *+' conftest.er1 >conftest.err
34382 cat conftest.err >&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_c_werror_flag"
34386 || test ! -s conftest.err'
34387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388 (eval $ac_try) 2>&5
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); }; } &&
34392 { ac_try='test -s conftest.$ac_objext'
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; }; then
34398 ac_cv_member_struct_passwd_pw_gecos=yes
34400 echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34403 ac_cv_member_struct_passwd_pw_gecos=no
34405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34409 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34410 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34411 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34413 cat >>confdefs.h <<_ACEOF
34414 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34420 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34421 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34422 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34423 echo $ECHO_N "(cached) $ECHO_C" >&6
34425 cat >conftest.$ac_ext <<_ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h. */
34431 $ac_includes_default
34437 static struct passwd ac_aggr;
34438 if (ac_aggr.pw_passwd)
34444 rm -f conftest.$ac_objext
34445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34446 (eval $ac_compile) 2>conftest.er1
34448 grep -v '^ *+' conftest.er1 >conftest.err
34450 cat conftest.err >&5
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); } &&
34453 { ac_try='test -z "$ac_c_werror_flag"
34454 || test ! -s conftest.err'
34455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34456 (eval $ac_try) 2>&5
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); }; } &&
34460 { ac_try='test -s conftest.$ac_objext'
34461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34462 (eval $ac_try) 2>&5
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); }; }; then
34466 ac_cv_member_struct_passwd_pw_passwd=yes
34468 echo "$as_me: failed program was:" >&5
34469 sed 's/^/| /' conftest.$ac_ext >&5
34471 cat >conftest.$ac_ext <<_ACEOF
34474 cat confdefs.h >>conftest.$ac_ext
34475 cat >>conftest.$ac_ext <<_ACEOF
34476 /* end confdefs.h. */
34477 $ac_includes_default
34483 static struct passwd ac_aggr;
34484 if (sizeof ac_aggr.pw_passwd)
34490 rm -f conftest.$ac_objext
34491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34492 (eval $ac_compile) 2>conftest.er1
34494 grep -v '^ *+' conftest.er1 >conftest.err
34496 cat conftest.err >&5
34497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498 (exit $ac_status); } &&
34499 { ac_try='test -z "$ac_c_werror_flag"
34500 || test ! -s conftest.err'
34501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34502 (eval $ac_try) 2>&5
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); }; } &&
34506 { ac_try='test -s conftest.$ac_objext'
34507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34508 (eval $ac_try) 2>&5
34510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511 (exit $ac_status); }; }; then
34512 ac_cv_member_struct_passwd_pw_passwd=yes
34514 echo "$as_me: failed program was:" >&5
34515 sed 's/^/| /' conftest.$ac_ext >&5
34517 ac_cv_member_struct_passwd_pw_passwd=no
34519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34523 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34524 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34525 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34527 cat >>confdefs.h <<_ACEOF
34528 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34535 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34536 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34537 if test "${ol_cv_c_upper_lower+set}" = set; then
34538 echo $ECHO_N "(cached) $ECHO_C" >&6
34541 if test "$cross_compiling" = yes; then
34542 ol_cv_c_upper_lower=safe
34544 cat >conftest.$ac_ext <<_ACEOF
34547 cat confdefs.h >>conftest.$ac_ext
34548 cat >>conftest.$ac_ext <<_ACEOF
34549 /* end confdefs.h. */
34554 if ('C' == toupper('C'))
34560 rm -f conftest$ac_exeext
34561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34562 (eval $ac_link) 2>&5
34564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; }; then
34571 ol_cv_c_upper_lower=no
34573 echo "$as_me: program exited with status $ac_status" >&5
34574 echo "$as_me: failed program was:" >&5
34575 sed 's/^/| /' conftest.$ac_ext >&5
34577 ( exit $ac_status )
34578 ol_cv_c_upper_lower=yes
34580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34583 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34584 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34585 if test $ol_cv_c_upper_lower != no ; then
34587 cat >>confdefs.h <<\_ACEOF
34588 #define C_UPPER_LOWER 1
34593 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34594 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34595 if test "${ac_cv_c_const+set}" = set; then
34596 echo $ECHO_N "(cached) $ECHO_C" >&6
34598 cat >conftest.$ac_ext <<_ACEOF
34601 cat confdefs.h >>conftest.$ac_ext
34602 cat >>conftest.$ac_ext <<_ACEOF
34603 /* end confdefs.h. */
34608 /* FIXME: Include the comments suggested by Paul. */
34609 #ifndef __cplusplus
34610 /* Ultrix mips cc rejects this. */
34611 typedef int charset[2];
34613 /* SunOS 4.1.1 cc rejects this. */
34614 char const *const *ccp;
34616 /* NEC SVR4.0.2 mips cc rejects this. */
34617 struct point {int x, y;};
34618 static struct point const zero = {0,0};
34619 /* AIX XL C 1.02.0.0 rejects this.
34620 It does not let you subtract one const X* pointer from another in
34621 an arm of an if-expression whose if-part is not a constant
34623 const char *g = "string";
34624 ccp = &g + (g ? g-g : 0);
34625 /* HPUX 7.0 cc rejects these. */
34628 ccp = (char const *const *) p;
34629 { /* SCO 3.2v4 cc rejects this. */
34631 char const *s = 0 ? (char *) 0 : (char const *) 0;
34635 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34636 int x[] = {25, 17};
34637 const int *foo = &x[0];
34640 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34641 typedef const int *iptr;
34645 { /* AIX XL C 1.02.0.0 rejects this saying
34646 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34647 struct s { int j; const int *ap[3]; };
34648 struct s *b; b->j = 5;
34650 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34651 const int foo = 10;
34659 rm -f conftest.$ac_objext
34660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34661 (eval $ac_compile) 2>conftest.er1
34663 grep -v '^ *+' conftest.er1 >conftest.err
34665 cat conftest.err >&5
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); } &&
34668 { ac_try='test -z "$ac_c_werror_flag"
34669 || test ! -s conftest.err'
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; } &&
34675 { ac_try='test -s conftest.$ac_objext'
34676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34677 (eval $ac_try) 2>&5
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); }; }; then
34683 echo "$as_me: failed program was:" >&5
34684 sed 's/^/| /' conftest.$ac_ext >&5
34688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34690 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34691 echo "${ECHO_T}$ac_cv_c_const" >&6
34692 if test $ac_cv_c_const = no; then
34694 cat >>confdefs.h <<\_ACEOF
34700 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34701 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34702 if test "${ol_cv_c_volatile+set}" = set; then
34703 echo $ECHO_N "(cached) $ECHO_C" >&6
34705 cat >conftest.$ac_ext <<_ACEOF
34708 cat confdefs.h >>conftest.$ac_ext
34709 cat >>conftest.$ac_ext <<_ACEOF
34710 /* end confdefs.h. */
34715 volatile int a; int * volatile b = x ? &y : &z;
34716 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34722 rm -f conftest.$ac_objext
34723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34724 (eval $ac_compile) 2>conftest.er1
34726 grep -v '^ *+' conftest.er1 >conftest.err
34728 cat conftest.err >&5
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } &&
34731 { ac_try='test -z "$ac_c_werror_flag"
34732 || test ! -s conftest.err'
34733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34734 (eval $ac_try) 2>&5
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); }; } &&
34738 { ac_try='test -s conftest.$ac_objext'
34739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34740 (eval $ac_try) 2>&5
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); }; }; then
34744 ol_cv_c_volatile=yes
34746 echo "$as_me: failed program was:" >&5
34747 sed 's/^/| /' conftest.$ac_ext >&5
34749 ol_cv_c_volatile=no
34751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34753 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
34754 echo "${ECHO_T}$ol_cv_c_volatile" >&6
34755 if test $ol_cv_c_volatile = yes; then
34759 cat >>confdefs.h <<\_ACEOF
34766 if test $cross_compiling = yes ; then
34767 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
34768 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
34770 cat >>confdefs.h <<\_ACEOF
34771 #define CROSS_COMPILING 1
34775 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34776 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
34777 if test "${ac_cv_c_bigendian+set}" = set; then
34778 echo $ECHO_N "(cached) $ECHO_C" >&6
34780 # See if sys/param.h defines the BYTE_ORDER macro.
34781 cat >conftest.$ac_ext <<_ACEOF
34784 cat confdefs.h >>conftest.$ac_ext
34785 cat >>conftest.$ac_ext <<_ACEOF
34786 /* end confdefs.h. */
34787 #include <sys/types.h>
34788 #include <sys/param.h>
34793 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
34794 bogus endian macros
34801 rm -f conftest.$ac_objext
34802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34803 (eval $ac_compile) 2>conftest.er1
34805 grep -v '^ *+' conftest.er1 >conftest.err
34807 cat conftest.err >&5
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
34810 { ac_try='test -z "$ac_c_werror_flag"
34811 || test ! -s conftest.err'
34812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813 (eval $ac_try) 2>&5
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; }; then
34823 # It does; now see whether it defined to BIG_ENDIAN or not.
34824 cat >conftest.$ac_ext <<_ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h. */
34830 #include <sys/types.h>
34831 #include <sys/param.h>
34836 #if BYTE_ORDER != BIG_ENDIAN
34844 rm -f conftest.$ac_objext
34845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34846 (eval $ac_compile) 2>conftest.er1
34848 grep -v '^ *+' conftest.er1 >conftest.err
34850 cat conftest.err >&5
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); } &&
34853 { ac_try='test -z "$ac_c_werror_flag"
34854 || test ! -s conftest.err'
34855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856 (eval $ac_try) 2>&5
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); }; } &&
34860 { ac_try='test -s conftest.$ac_objext'
34861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34862 (eval $ac_try) 2>&5
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); }; }; then
34866 ac_cv_c_bigendian=yes
34868 echo "$as_me: failed program was:" >&5
34869 sed 's/^/| /' conftest.$ac_ext >&5
34871 ac_cv_c_bigendian=no
34873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875 echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34878 # It does not; compile a test program.
34879 if test "$cross_compiling" = yes; then
34880 # try to guess the endianness by grepping values into an object file
34881 ac_cv_c_bigendian=unknown
34882 cat >conftest.$ac_ext <<_ACEOF
34885 cat confdefs.h >>conftest.$ac_ext
34886 cat >>conftest.$ac_ext <<_ACEOF
34887 /* end confdefs.h. */
34888 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34889 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34890 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
34891 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34892 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34893 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
34897 _ascii (); _ebcdic ();
34902 rm -f conftest.$ac_objext
34903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34904 (eval $ac_compile) 2>conftest.er1
34906 grep -v '^ *+' conftest.er1 >conftest.err
34908 cat conftest.err >&5
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 (exit $ac_status); } &&
34911 { ac_try='test -z "$ac_c_werror_flag"
34912 || test ! -s conftest.err'
34913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34914 (eval $ac_try) 2>&5
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); }; } &&
34918 { ac_try='test -s conftest.$ac_objext'
34919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920 (eval $ac_try) 2>&5
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); }; }; then
34924 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
34925 ac_cv_c_bigendian=yes
34927 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34928 if test "$ac_cv_c_bigendian" = unknown; then
34929 ac_cv_c_bigendian=no
34931 # finding both strings is unlikely to happen, but who knows?
34932 ac_cv_c_bigendian=unknown
34936 echo "$as_me: failed program was:" >&5
34937 sed 's/^/| /' conftest.$ac_ext >&5
34940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34942 cat >conftest.$ac_ext <<_ACEOF
34945 cat confdefs.h >>conftest.$ac_ext
34946 cat >>conftest.$ac_ext <<_ACEOF
34947 /* end confdefs.h. */
34951 /* Are we little or big endian? From Harbison&Steele. */
34955 char c[sizeof (long)];
34958 exit (u.c[sizeof (long) - 1] == 1);
34961 rm -f conftest$ac_exeext
34962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34963 (eval $ac_link) 2>&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968 (eval $ac_try) 2>&5
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); }; }; then
34972 ac_cv_c_bigendian=no
34974 echo "$as_me: program exited with status $ac_status" >&5
34975 echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34978 ( exit $ac_status )
34979 ac_cv_c_bigendian=yes
34981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34986 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34987 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
34988 case $ac_cv_c_bigendian in
34991 cat >>confdefs.h <<\_ACEOF
34992 #define WORDS_BIGENDIAN 1
34998 { { echo "$as_me:$LINENO: error: unknown endianness
34999 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35000 echo "$as_me: error: unknown endianness
35001 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35002 { (exit 1); exit 1; }; } ;;
35007 echo "$as_me:$LINENO: checking for short" >&5
35008 echo $ECHO_N "checking for short... $ECHO_C" >&6
35009 if test "${ac_cv_type_short+set}" = set; then
35010 echo $ECHO_N "(cached) $ECHO_C" >&6
35012 cat >conftest.$ac_ext <<_ACEOF
35015 cat confdefs.h >>conftest.$ac_ext
35016 cat >>conftest.$ac_ext <<_ACEOF
35017 /* end confdefs.h. */
35018 $ac_includes_default
35024 if (sizeof (short))
35030 rm -f conftest.$ac_objext
35031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35032 (eval $ac_compile) 2>conftest.er1
35034 grep -v '^ *+' conftest.er1 >conftest.err
35036 cat conftest.err >&5
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); } &&
35039 { ac_try='test -z "$ac_c_werror_flag"
35040 || test ! -s conftest.err'
35041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35042 (eval $ac_try) 2>&5
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); }; } &&
35046 { ac_try='test -s conftest.$ac_objext'
35047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35048 (eval $ac_try) 2>&5
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); }; }; then
35052 ac_cv_type_short=yes
35054 echo "$as_me: failed program was:" >&5
35055 sed 's/^/| /' conftest.$ac_ext >&5
35057 ac_cv_type_short=no
35059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35061 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35062 echo "${ECHO_T}$ac_cv_type_short" >&6
35064 echo "$as_me:$LINENO: checking size of short" >&5
35065 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35066 if test "${ac_cv_sizeof_short+set}" = set; then
35067 echo $ECHO_N "(cached) $ECHO_C" >&6
35069 if test "$ac_cv_type_short" = yes; then
35070 # The cast to unsigned long works around a bug in the HP C Compiler
35071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35073 # This bug is HP SR number 8606223364.
35074 if test "$cross_compiling" = yes; then
35075 # Depending upon the size, compute the lo and hi bounds.
35076 cat >conftest.$ac_ext <<_ACEOF
35079 cat confdefs.h >>conftest.$ac_ext
35080 cat >>conftest.$ac_ext <<_ACEOF
35081 /* end confdefs.h. */
35082 $ac_includes_default
35086 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35093 rm -f conftest.$ac_objext
35094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35095 (eval $ac_compile) 2>conftest.er1
35097 grep -v '^ *+' conftest.er1 >conftest.err
35099 cat conftest.err >&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); } &&
35102 { ac_try='test -z "$ac_c_werror_flag"
35103 || test ! -s conftest.err'
35104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105 (eval $ac_try) 2>&5
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); }; } &&
35109 { ac_try='test -s conftest.$ac_objext'
35110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35111 (eval $ac_try) 2>&5
35113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 (exit $ac_status); }; }; then
35117 cat >conftest.$ac_ext <<_ACEOF
35120 cat confdefs.h >>conftest.$ac_ext
35121 cat >>conftest.$ac_ext <<_ACEOF
35122 /* end confdefs.h. */
35123 $ac_includes_default
35127 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35134 rm -f conftest.$ac_objext
35135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35136 (eval $ac_compile) 2>conftest.er1
35138 grep -v '^ *+' conftest.er1 >conftest.err
35140 cat conftest.err >&5
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); } &&
35143 { ac_try='test -z "$ac_c_werror_flag"
35144 || test ! -s conftest.err'
35145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35146 (eval $ac_try) 2>&5
35148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149 (exit $ac_status); }; } &&
35150 { ac_try='test -s conftest.$ac_objext'
35151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35152 (eval $ac_try) 2>&5
35154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155 (exit $ac_status); }; }; then
35156 ac_hi=$ac_mid; break
35158 echo "$as_me: failed program was:" >&5
35159 sed 's/^/| /' conftest.$ac_ext >&5
35161 ac_lo=`expr $ac_mid + 1`
35162 if test $ac_lo -le $ac_mid; then
35166 ac_mid=`expr 2 '*' $ac_mid + 1`
35168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35171 echo "$as_me: failed program was:" >&5
35172 sed 's/^/| /' conftest.$ac_ext >&5
35174 cat >conftest.$ac_ext <<_ACEOF
35177 cat confdefs.h >>conftest.$ac_ext
35178 cat >>conftest.$ac_ext <<_ACEOF
35179 /* end confdefs.h. */
35180 $ac_includes_default
35184 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35191 rm -f conftest.$ac_objext
35192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35193 (eval $ac_compile) 2>conftest.er1
35195 grep -v '^ *+' conftest.er1 >conftest.err
35197 cat conftest.err >&5
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199 (exit $ac_status); } &&
35200 { ac_try='test -z "$ac_c_werror_flag"
35201 || test ! -s conftest.err'
35202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203 (eval $ac_try) 2>&5
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); }; } &&
35207 { ac_try='test -s conftest.$ac_objext'
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; }; then
35215 cat >conftest.$ac_ext <<_ACEOF
35218 cat confdefs.h >>conftest.$ac_ext
35219 cat >>conftest.$ac_ext <<_ACEOF
35220 /* end confdefs.h. */
35221 $ac_includes_default
35225 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35232 rm -f conftest.$ac_objext
35233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35234 (eval $ac_compile) 2>conftest.er1
35236 grep -v '^ *+' conftest.er1 >conftest.err
35238 cat conftest.err >&5
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } &&
35241 { ac_try='test -z "$ac_c_werror_flag"
35242 || test ! -s conftest.err'
35243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35244 (eval $ac_try) 2>&5
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); }; } &&
35248 { ac_try='test -s conftest.$ac_objext'
35249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250 (eval $ac_try) 2>&5
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; }; then
35254 ac_lo=$ac_mid; break
35256 echo "$as_me: failed program was:" >&5
35257 sed 's/^/| /' conftest.$ac_ext >&5
35259 ac_hi=`expr '(' $ac_mid ')' - 1`
35260 if test $ac_mid -le $ac_hi; then
35264 ac_mid=`expr 2 '*' $ac_mid`
35266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35269 echo "$as_me: failed program was:" >&5
35270 sed 's/^/| /' conftest.$ac_ext >&5
35274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35277 # Binary search between lo and hi bounds.
35278 while test "x$ac_lo" != "x$ac_hi"; do
35279 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35280 cat >conftest.$ac_ext <<_ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h. */
35286 $ac_includes_default
35290 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35297 rm -f conftest.$ac_objext
35298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35299 (eval $ac_compile) 2>conftest.er1
35301 grep -v '^ *+' conftest.er1 >conftest.err
35303 cat conftest.err >&5
35304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305 (exit $ac_status); } &&
35306 { ac_try='test -z "$ac_c_werror_flag"
35307 || test ! -s conftest.err'
35308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35309 (eval $ac_try) 2>&5
35311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312 (exit $ac_status); }; } &&
35313 { ac_try='test -s conftest.$ac_objext'
35314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35315 (eval $ac_try) 2>&5
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); }; }; then
35321 echo "$as_me: failed program was:" >&5
35322 sed 's/^/| /' conftest.$ac_ext >&5
35324 ac_lo=`expr '(' $ac_mid ')' + 1`
35326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35329 ?*) ac_cv_sizeof_short=$ac_lo;;
35330 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35331 See \`config.log' for more details." >&5
35332 echo "$as_me: error: cannot compute sizeof (short), 77
35333 See \`config.log' for more details." >&2;}
35334 { (exit 1); exit 1; }; } ;;
35337 if test "$cross_compiling" = yes; then
35338 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35339 See \`config.log' for more details." >&5
35340 echo "$as_me: error: cannot run test program while cross compiling
35341 See \`config.log' for more details." >&2;}
35342 { (exit 1); exit 1; }; }
35344 cat >conftest.$ac_ext <<_ACEOF
35347 cat confdefs.h >>conftest.$ac_ext
35348 cat >>conftest.$ac_ext <<_ACEOF
35349 /* end confdefs.h. */
35350 $ac_includes_default
35351 long longval () { return (long) (sizeof (short)); }
35352 unsigned long ulongval () { return (long) (sizeof (short)); }
35354 #include <stdlib.h>
35359 FILE *f = fopen ("conftest.val", "w");
35362 if (((long) (sizeof (short))) < 0)
35364 long i = longval ();
35365 if (i != ((long) (sizeof (short))))
35367 fprintf (f, "%ld\n", i);
35371 unsigned long i = ulongval ();
35372 if (i != ((long) (sizeof (short))))
35374 fprintf (f, "%lu\n", i);
35376 exit (ferror (f) || fclose (f) != 0);
35382 rm -f conftest$ac_exeext
35383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35384 (eval $ac_link) 2>&5
35386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35389 (eval $ac_try) 2>&5
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); }; }; then
35393 ac_cv_sizeof_short=`cat conftest.val`
35395 echo "$as_me: program exited with status $ac_status" >&5
35396 echo "$as_me: failed program was:" >&5
35397 sed 's/^/| /' conftest.$ac_ext >&5
35399 ( exit $ac_status )
35400 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35401 See \`config.log' for more details." >&5
35402 echo "$as_me: error: cannot compute sizeof (short), 77
35403 See \`config.log' for more details." >&2;}
35404 { (exit 1); exit 1; }; }
35406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35411 ac_cv_sizeof_short=0
35414 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35415 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35416 cat >>confdefs.h <<_ACEOF
35417 #define SIZEOF_SHORT $ac_cv_sizeof_short
35421 echo "$as_me:$LINENO: checking for int" >&5
35422 echo $ECHO_N "checking for int... $ECHO_C" >&6
35423 if test "${ac_cv_type_int+set}" = set; then
35424 echo $ECHO_N "(cached) $ECHO_C" >&6
35426 cat >conftest.$ac_ext <<_ACEOF
35429 cat confdefs.h >>conftest.$ac_ext
35430 cat >>conftest.$ac_ext <<_ACEOF
35431 /* end confdefs.h. */
35432 $ac_includes_default
35444 rm -f conftest.$ac_objext
35445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35446 (eval $ac_compile) 2>conftest.er1
35448 grep -v '^ *+' conftest.er1 >conftest.err
35450 cat conftest.err >&5
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); } &&
35453 { ac_try='test -z "$ac_c_werror_flag"
35454 || test ! -s conftest.err'
35455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456 (eval $ac_try) 2>&5
35458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); }; } &&
35460 { ac_try='test -s conftest.$ac_objext'
35461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462 (eval $ac_try) 2>&5
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); }; }; then
35468 echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35475 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35476 echo "${ECHO_T}$ac_cv_type_int" >&6
35478 echo "$as_me:$LINENO: checking size of int" >&5
35479 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35480 if test "${ac_cv_sizeof_int+set}" = set; then
35481 echo $ECHO_N "(cached) $ECHO_C" >&6
35483 if test "$ac_cv_type_int" = yes; then
35484 # The cast to unsigned long works around a bug in the HP C Compiler
35485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35487 # This bug is HP SR number 8606223364.
35488 if test "$cross_compiling" = yes; then
35489 # Depending upon the size, compute the lo and hi bounds.
35490 cat >conftest.$ac_ext <<_ACEOF
35493 cat confdefs.h >>conftest.$ac_ext
35494 cat >>conftest.$ac_ext <<_ACEOF
35495 /* end confdefs.h. */
35496 $ac_includes_default
35500 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35507 rm -f conftest.$ac_objext
35508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35509 (eval $ac_compile) 2>conftest.er1
35511 grep -v '^ *+' conftest.er1 >conftest.err
35513 cat conftest.err >&5
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); } &&
35516 { ac_try='test -z "$ac_c_werror_flag"
35517 || test ! -s conftest.err'
35518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35519 (eval $ac_try) 2>&5
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; } &&
35523 { ac_try='test -s conftest.$ac_objext'
35524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35525 (eval $ac_try) 2>&5
35527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35528 (exit $ac_status); }; }; then
35531 cat >conftest.$ac_ext <<_ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h. */
35537 $ac_includes_default
35541 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35548 rm -f conftest.$ac_objext
35549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35550 (eval $ac_compile) 2>conftest.er1
35552 grep -v '^ *+' conftest.er1 >conftest.err
35554 cat conftest.err >&5
35555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556 (exit $ac_status); } &&
35557 { ac_try='test -z "$ac_c_werror_flag"
35558 || test ! -s conftest.err'
35559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35560 (eval $ac_try) 2>&5
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); }; } &&
35564 { ac_try='test -s conftest.$ac_objext'
35565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35566 (eval $ac_try) 2>&5
35568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569 (exit $ac_status); }; }; then
35570 ac_hi=$ac_mid; break
35572 echo "$as_me: failed program was:" >&5
35573 sed 's/^/| /' conftest.$ac_ext >&5
35575 ac_lo=`expr $ac_mid + 1`
35576 if test $ac_lo -le $ac_mid; then
35580 ac_mid=`expr 2 '*' $ac_mid + 1`
35582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35585 echo "$as_me: failed program was:" >&5
35586 sed 's/^/| /' conftest.$ac_ext >&5
35588 cat >conftest.$ac_ext <<_ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h. */
35594 $ac_includes_default
35598 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35605 rm -f conftest.$ac_objext
35606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35607 (eval $ac_compile) 2>conftest.er1
35609 grep -v '^ *+' conftest.er1 >conftest.err
35611 cat conftest.err >&5
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } &&
35614 { ac_try='test -z "$ac_c_werror_flag"
35615 || test ! -s conftest.err'
35616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35617 (eval $ac_try) 2>&5
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); }; } &&
35621 { ac_try='test -s conftest.$ac_objext'
35622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35623 (eval $ac_try) 2>&5
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); }; }; then
35629 cat >conftest.$ac_ext <<_ACEOF
35632 cat confdefs.h >>conftest.$ac_ext
35633 cat >>conftest.$ac_ext <<_ACEOF
35634 /* end confdefs.h. */
35635 $ac_includes_default
35639 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35646 rm -f conftest.$ac_objext
35647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35648 (eval $ac_compile) 2>conftest.er1
35650 grep -v '^ *+' conftest.er1 >conftest.err
35652 cat conftest.err >&5
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); } &&
35655 { ac_try='test -z "$ac_c_werror_flag"
35656 || test ! -s conftest.err'
35657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658 (eval $ac_try) 2>&5
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); }; } &&
35662 { ac_try='test -s conftest.$ac_objext'
35663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35664 (eval $ac_try) 2>&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); }; }; then
35668 ac_lo=$ac_mid; break
35670 echo "$as_me: failed program was:" >&5
35671 sed 's/^/| /' conftest.$ac_ext >&5
35673 ac_hi=`expr '(' $ac_mid ')' - 1`
35674 if test $ac_mid -le $ac_hi; then
35678 ac_mid=`expr 2 '*' $ac_mid`
35680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35683 echo "$as_me: failed program was:" >&5
35684 sed 's/^/| /' conftest.$ac_ext >&5
35688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35691 # Binary search between lo and hi bounds.
35692 while test "x$ac_lo" != "x$ac_hi"; do
35693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35694 cat >conftest.$ac_ext <<_ACEOF
35697 cat confdefs.h >>conftest.$ac_ext
35698 cat >>conftest.$ac_ext <<_ACEOF
35699 /* end confdefs.h. */
35700 $ac_includes_default
35704 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35711 rm -f conftest.$ac_objext
35712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35713 (eval $ac_compile) 2>conftest.er1
35715 grep -v '^ *+' conftest.er1 >conftest.err
35717 cat conftest.err >&5
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); } &&
35720 { ac_try='test -z "$ac_c_werror_flag"
35721 || test ! -s conftest.err'
35722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35723 (eval $ac_try) 2>&5
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); }; } &&
35727 { ac_try='test -s conftest.$ac_objext'
35728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729 (eval $ac_try) 2>&5
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); }; }; then
35735 echo "$as_me: failed program was:" >&5
35736 sed 's/^/| /' conftest.$ac_ext >&5
35738 ac_lo=`expr '(' $ac_mid ')' + 1`
35740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35743 ?*) ac_cv_sizeof_int=$ac_lo;;
35744 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35745 See \`config.log' for more details." >&5
35746 echo "$as_me: error: cannot compute sizeof (int), 77
35747 See \`config.log' for more details." >&2;}
35748 { (exit 1); exit 1; }; } ;;
35751 if test "$cross_compiling" = yes; then
35752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35753 See \`config.log' for more details." >&5
35754 echo "$as_me: error: cannot run test program while cross compiling
35755 See \`config.log' for more details." >&2;}
35756 { (exit 1); exit 1; }; }
35758 cat >conftest.$ac_ext <<_ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h. */
35764 $ac_includes_default
35765 long longval () { return (long) (sizeof (int)); }
35766 unsigned long ulongval () { return (long) (sizeof (int)); }
35768 #include <stdlib.h>
35773 FILE *f = fopen ("conftest.val", "w");
35776 if (((long) (sizeof (int))) < 0)
35778 long i = longval ();
35779 if (i != ((long) (sizeof (int))))
35781 fprintf (f, "%ld\n", i);
35785 unsigned long i = ulongval ();
35786 if (i != ((long) (sizeof (int))))
35788 fprintf (f, "%lu\n", i);
35790 exit (ferror (f) || fclose (f) != 0);
35796 rm -f conftest$ac_exeext
35797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35798 (eval $ac_link) 2>&5
35800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35803 (eval $ac_try) 2>&5
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 (exit $ac_status); }; }; then
35807 ac_cv_sizeof_int=`cat conftest.val`
35809 echo "$as_me: program exited with status $ac_status" >&5
35810 echo "$as_me: failed program was:" >&5
35811 sed 's/^/| /' conftest.$ac_ext >&5
35813 ( exit $ac_status )
35814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35815 See \`config.log' for more details." >&5
35816 echo "$as_me: error: cannot compute sizeof (int), 77
35817 See \`config.log' for more details." >&2;}
35818 { (exit 1); exit 1; }; }
35820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35828 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35829 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
35830 cat >>confdefs.h <<_ACEOF
35831 #define SIZEOF_INT $ac_cv_sizeof_int
35835 echo "$as_me:$LINENO: checking for long" >&5
35836 echo $ECHO_N "checking for long... $ECHO_C" >&6
35837 if test "${ac_cv_type_long+set}" = set; then
35838 echo $ECHO_N "(cached) $ECHO_C" >&6
35840 cat >conftest.$ac_ext <<_ACEOF
35843 cat confdefs.h >>conftest.$ac_ext
35844 cat >>conftest.$ac_ext <<_ACEOF
35845 /* end confdefs.h. */
35846 $ac_includes_default
35858 rm -f conftest.$ac_objext
35859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35860 (eval $ac_compile) 2>conftest.er1
35862 grep -v '^ *+' conftest.er1 >conftest.err
35864 cat conftest.err >&5
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); } &&
35867 { ac_try='test -z "$ac_c_werror_flag"
35868 || test ! -s conftest.err'
35869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870 (eval $ac_try) 2>&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); }; } &&
35874 { ac_try='test -s conftest.$ac_objext'
35875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876 (eval $ac_try) 2>&5
35878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 (exit $ac_status); }; }; then
35880 ac_cv_type_long=yes
35882 echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35889 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
35890 echo "${ECHO_T}$ac_cv_type_long" >&6
35892 echo "$as_me:$LINENO: checking size of long" >&5
35893 echo $ECHO_N "checking size of long... $ECHO_C" >&6
35894 if test "${ac_cv_sizeof_long+set}" = set; then
35895 echo $ECHO_N "(cached) $ECHO_C" >&6
35897 if test "$ac_cv_type_long" = yes; then
35898 # The cast to unsigned long works around a bug in the HP C Compiler
35899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35901 # This bug is HP SR number 8606223364.
35902 if test "$cross_compiling" = yes; then
35903 # Depending upon the size, compute the lo and hi bounds.
35904 cat >conftest.$ac_ext <<_ACEOF
35907 cat confdefs.h >>conftest.$ac_ext
35908 cat >>conftest.$ac_ext <<_ACEOF
35909 /* end confdefs.h. */
35910 $ac_includes_default
35914 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
35921 rm -f conftest.$ac_objext
35922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35923 (eval $ac_compile) 2>conftest.er1
35925 grep -v '^ *+' conftest.er1 >conftest.err
35927 cat conftest.err >&5
35928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35929 (exit $ac_status); } &&
35930 { ac_try='test -z "$ac_c_werror_flag"
35931 || test ! -s conftest.err'
35932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35933 (eval $ac_try) 2>&5
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); }; } &&
35937 { ac_try='test -s conftest.$ac_objext'
35938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35939 (eval $ac_try) 2>&5
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); }; }; then
35945 cat >conftest.$ac_ext <<_ACEOF
35948 cat confdefs.h >>conftest.$ac_ext
35949 cat >>conftest.$ac_ext <<_ACEOF
35950 /* end confdefs.h. */
35951 $ac_includes_default
35955 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35962 rm -f conftest.$ac_objext
35963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35964 (eval $ac_compile) 2>conftest.er1
35966 grep -v '^ *+' conftest.er1 >conftest.err
35968 cat conftest.err >&5
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); } &&
35971 { ac_try='test -z "$ac_c_werror_flag"
35972 || test ! -s conftest.err'
35973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35974 (eval $ac_try) 2>&5
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); }; } &&
35978 { ac_try='test -s conftest.$ac_objext'
35979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980 (eval $ac_try) 2>&5
35982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983 (exit $ac_status); }; }; then
35984 ac_hi=$ac_mid; break
35986 echo "$as_me: failed program was:" >&5
35987 sed 's/^/| /' conftest.$ac_ext >&5
35989 ac_lo=`expr $ac_mid + 1`
35990 if test $ac_lo -le $ac_mid; then
35994 ac_mid=`expr 2 '*' $ac_mid + 1`
35996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35999 echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36002 cat >conftest.$ac_ext <<_ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h. */
36008 $ac_includes_default
36012 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36019 rm -f conftest.$ac_objext
36020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36021 (eval $ac_compile) 2>conftest.er1
36023 grep -v '^ *+' conftest.er1 >conftest.err
36025 cat conftest.err >&5
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); } &&
36028 { ac_try='test -z "$ac_c_werror_flag"
36029 || test ! -s conftest.err'
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; } &&
36035 { ac_try='test -s conftest.$ac_objext'
36036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36037 (eval $ac_try) 2>&5
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); }; }; then
36043 cat >conftest.$ac_ext <<_ACEOF
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36049 $ac_includes_default
36053 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36060 rm -f conftest.$ac_objext
36061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36062 (eval $ac_compile) 2>conftest.er1
36064 grep -v '^ *+' conftest.er1 >conftest.err
36066 cat conftest.err >&5
36067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068 (exit $ac_status); } &&
36069 { ac_try='test -z "$ac_c_werror_flag"
36070 || test ! -s conftest.err'
36071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36072 (eval $ac_try) 2>&5
36074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075 (exit $ac_status); }; } &&
36076 { ac_try='test -s conftest.$ac_objext'
36077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36078 (eval $ac_try) 2>&5
36080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081 (exit $ac_status); }; }; then
36082 ac_lo=$ac_mid; break
36084 echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36087 ac_hi=`expr '(' $ac_mid ')' - 1`
36088 if test $ac_mid -le $ac_hi; then
36092 ac_mid=`expr 2 '*' $ac_mid`
36094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36097 echo "$as_me: failed program was:" >&5
36098 sed 's/^/| /' conftest.$ac_ext >&5
36102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36105 # Binary search between lo and hi bounds.
36106 while test "x$ac_lo" != "x$ac_hi"; do
36107 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36108 cat >conftest.$ac_ext <<_ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h. */
36114 $ac_includes_default
36118 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36125 rm -f conftest.$ac_objext
36126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36127 (eval $ac_compile) 2>conftest.er1
36129 grep -v '^ *+' conftest.er1 >conftest.err
36131 cat conftest.err >&5
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); } &&
36134 { ac_try='test -z "$ac_c_werror_flag"
36135 || test ! -s conftest.err'
36136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137 (eval $ac_try) 2>&5
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); }; } &&
36141 { ac_try='test -s conftest.$ac_objext'
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; }; then
36149 echo "$as_me: failed program was:" >&5
36150 sed 's/^/| /' conftest.$ac_ext >&5
36152 ac_lo=`expr '(' $ac_mid ')' + 1`
36154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36157 ?*) ac_cv_sizeof_long=$ac_lo;;
36158 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36159 See \`config.log' for more details." >&5
36160 echo "$as_me: error: cannot compute sizeof (long), 77
36161 See \`config.log' for more details." >&2;}
36162 { (exit 1); exit 1; }; } ;;
36165 if test "$cross_compiling" = yes; then
36166 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36167 See \`config.log' for more details." >&5
36168 echo "$as_me: error: cannot run test program while cross compiling
36169 See \`config.log' for more details." >&2;}
36170 { (exit 1); exit 1; }; }
36172 cat >conftest.$ac_ext <<_ACEOF
36175 cat confdefs.h >>conftest.$ac_ext
36176 cat >>conftest.$ac_ext <<_ACEOF
36177 /* end confdefs.h. */
36178 $ac_includes_default
36179 long longval () { return (long) (sizeof (long)); }
36180 unsigned long ulongval () { return (long) (sizeof (long)); }
36182 #include <stdlib.h>
36187 FILE *f = fopen ("conftest.val", "w");
36190 if (((long) (sizeof (long))) < 0)
36192 long i = longval ();
36193 if (i != ((long) (sizeof (long))))
36195 fprintf (f, "%ld\n", i);
36199 unsigned long i = ulongval ();
36200 if (i != ((long) (sizeof (long))))
36202 fprintf (f, "%lu\n", i);
36204 exit (ferror (f) || fclose (f) != 0);
36210 rm -f conftest$ac_exeext
36211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36212 (eval $ac_link) 2>&5
36214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36217 (eval $ac_try) 2>&5
36219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220 (exit $ac_status); }; }; then
36221 ac_cv_sizeof_long=`cat conftest.val`
36223 echo "$as_me: program exited with status $ac_status" >&5
36224 echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36227 ( exit $ac_status )
36228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36229 See \`config.log' for more details." >&5
36230 echo "$as_me: error: cannot compute sizeof (long), 77
36231 See \`config.log' for more details." >&2;}
36232 { (exit 1); exit 1; }; }
36234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36239 ac_cv_sizeof_long=0
36242 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36243 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36244 cat >>confdefs.h <<_ACEOF
36245 #define SIZEOF_LONG $ac_cv_sizeof_long
36249 echo "$as_me:$LINENO: checking for long long" >&5
36250 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36251 if test "${ac_cv_type_long_long+set}" = set; then
36252 echo $ECHO_N "(cached) $ECHO_C" >&6
36254 cat >conftest.$ac_ext <<_ACEOF
36257 cat confdefs.h >>conftest.$ac_ext
36258 cat >>conftest.$ac_ext <<_ACEOF
36259 /* end confdefs.h. */
36260 $ac_includes_default
36264 if ((long long *) 0)
36266 if (sizeof (long long))
36272 rm -f conftest.$ac_objext
36273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36274 (eval $ac_compile) 2>conftest.er1
36276 grep -v '^ *+' conftest.er1 >conftest.err
36278 cat conftest.err >&5
36279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 (exit $ac_status); } &&
36281 { ac_try='test -z "$ac_c_werror_flag"
36282 || test ! -s conftest.err'
36283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284 (eval $ac_try) 2>&5
36286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); }; } &&
36288 { ac_try='test -s conftest.$ac_objext'
36289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290 (eval $ac_try) 2>&5
36292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 (exit $ac_status); }; }; then
36294 ac_cv_type_long_long=yes
36296 echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36299 ac_cv_type_long_long=no
36301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36303 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36304 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36306 echo "$as_me:$LINENO: checking size of long long" >&5
36307 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36308 if test "${ac_cv_sizeof_long_long+set}" = set; then
36309 echo $ECHO_N "(cached) $ECHO_C" >&6
36311 if test "$ac_cv_type_long_long" = yes; then
36312 # The cast to unsigned long works around a bug in the HP C Compiler
36313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36315 # This bug is HP SR number 8606223364.
36316 if test "$cross_compiling" = yes; then
36317 # Depending upon the size, compute the lo and hi bounds.
36318 cat >conftest.$ac_ext <<_ACEOF
36321 cat confdefs.h >>conftest.$ac_ext
36322 cat >>conftest.$ac_ext <<_ACEOF
36323 /* end confdefs.h. */
36324 $ac_includes_default
36328 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36335 rm -f conftest.$ac_objext
36336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36337 (eval $ac_compile) 2>conftest.er1
36339 grep -v '^ *+' conftest.er1 >conftest.err
36341 cat conftest.err >&5
36342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343 (exit $ac_status); } &&
36344 { ac_try='test -z "$ac_c_werror_flag"
36345 || test ! -s conftest.err'
36346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36347 (eval $ac_try) 2>&5
36349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36350 (exit $ac_status); }; } &&
36351 { ac_try='test -s conftest.$ac_objext'
36352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36353 (eval $ac_try) 2>&5
36355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356 (exit $ac_status); }; }; then
36359 cat >conftest.$ac_ext <<_ACEOF
36362 cat confdefs.h >>conftest.$ac_ext
36363 cat >>conftest.$ac_ext <<_ACEOF
36364 /* end confdefs.h. */
36365 $ac_includes_default
36369 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36376 rm -f conftest.$ac_objext
36377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36378 (eval $ac_compile) 2>conftest.er1
36380 grep -v '^ *+' conftest.er1 >conftest.err
36382 cat conftest.err >&5
36383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36384 (exit $ac_status); } &&
36385 { ac_try='test -z "$ac_c_werror_flag"
36386 || test ! -s conftest.err'
36387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36388 (eval $ac_try) 2>&5
36390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); }; } &&
36392 { ac_try='test -s conftest.$ac_objext'
36393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36394 (eval $ac_try) 2>&5
36396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397 (exit $ac_status); }; }; then
36398 ac_hi=$ac_mid; break
36400 echo "$as_me: failed program was:" >&5
36401 sed 's/^/| /' conftest.$ac_ext >&5
36403 ac_lo=`expr $ac_mid + 1`
36404 if test $ac_lo -le $ac_mid; then
36408 ac_mid=`expr 2 '*' $ac_mid + 1`
36410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36413 echo "$as_me: failed program was:" >&5
36414 sed 's/^/| /' conftest.$ac_ext >&5
36416 cat >conftest.$ac_ext <<_ACEOF
36419 cat confdefs.h >>conftest.$ac_ext
36420 cat >>conftest.$ac_ext <<_ACEOF
36421 /* end confdefs.h. */
36422 $ac_includes_default
36426 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36433 rm -f conftest.$ac_objext
36434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36435 (eval $ac_compile) 2>conftest.er1
36437 grep -v '^ *+' conftest.er1 >conftest.err
36439 cat conftest.err >&5
36440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441 (exit $ac_status); } &&
36442 { ac_try='test -z "$ac_c_werror_flag"
36443 || test ! -s conftest.err'
36444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36445 (eval $ac_try) 2>&5
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); }; } &&
36449 { ac_try='test -s conftest.$ac_objext'
36450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36451 (eval $ac_try) 2>&5
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); }; }; then
36457 cat >conftest.$ac_ext <<_ACEOF
36460 cat confdefs.h >>conftest.$ac_ext
36461 cat >>conftest.$ac_ext <<_ACEOF
36462 /* end confdefs.h. */
36463 $ac_includes_default
36467 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36474 rm -f conftest.$ac_objext
36475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36476 (eval $ac_compile) 2>conftest.er1
36478 grep -v '^ *+' conftest.er1 >conftest.err
36480 cat conftest.err >&5
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); } &&
36483 { ac_try='test -z "$ac_c_werror_flag"
36484 || test ! -s conftest.err'
36485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36486 (eval $ac_try) 2>&5
36488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); }; } &&
36490 { ac_try='test -s conftest.$ac_objext'
36491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36492 (eval $ac_try) 2>&5
36494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495 (exit $ac_status); }; }; then
36496 ac_lo=$ac_mid; break
36498 echo "$as_me: failed program was:" >&5
36499 sed 's/^/| /' conftest.$ac_ext >&5
36501 ac_hi=`expr '(' $ac_mid ')' - 1`
36502 if test $ac_mid -le $ac_hi; then
36506 ac_mid=`expr 2 '*' $ac_mid`
36508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36511 echo "$as_me: failed program was:" >&5
36512 sed 's/^/| /' conftest.$ac_ext >&5
36516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36519 # Binary search between lo and hi bounds.
36520 while test "x$ac_lo" != "x$ac_hi"; do
36521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36522 cat >conftest.$ac_ext <<_ACEOF
36525 cat confdefs.h >>conftest.$ac_ext
36526 cat >>conftest.$ac_ext <<_ACEOF
36527 /* end confdefs.h. */
36528 $ac_includes_default
36532 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36539 rm -f conftest.$ac_objext
36540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36541 (eval $ac_compile) 2>conftest.er1
36543 grep -v '^ *+' conftest.er1 >conftest.err
36545 cat conftest.err >&5
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); } &&
36548 { ac_try='test -z "$ac_c_werror_flag"
36549 || test ! -s conftest.err'
36550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36551 (eval $ac_try) 2>&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); }; } &&
36555 { ac_try='test -s conftest.$ac_objext'
36556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36557 (eval $ac_try) 2>&5
36559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36560 (exit $ac_status); }; }; then
36563 echo "$as_me: failed program was:" >&5
36564 sed 's/^/| /' conftest.$ac_ext >&5
36566 ac_lo=`expr '(' $ac_mid ')' + 1`
36568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36571 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36572 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36573 See \`config.log' for more details." >&5
36574 echo "$as_me: error: cannot compute sizeof (long long), 77
36575 See \`config.log' for more details." >&2;}
36576 { (exit 1); exit 1; }; } ;;
36579 if test "$cross_compiling" = yes; then
36580 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36581 See \`config.log' for more details." >&5
36582 echo "$as_me: error: cannot run test program while cross compiling
36583 See \`config.log' for more details." >&2;}
36584 { (exit 1); exit 1; }; }
36586 cat >conftest.$ac_ext <<_ACEOF
36589 cat confdefs.h >>conftest.$ac_ext
36590 cat >>conftest.$ac_ext <<_ACEOF
36591 /* end confdefs.h. */
36592 $ac_includes_default
36593 long longval () { return (long) (sizeof (long long)); }
36594 unsigned long ulongval () { return (long) (sizeof (long long)); }
36596 #include <stdlib.h>
36601 FILE *f = fopen ("conftest.val", "w");
36604 if (((long) (sizeof (long long))) < 0)
36606 long i = longval ();
36607 if (i != ((long) (sizeof (long long))))
36609 fprintf (f, "%ld\n", i);
36613 unsigned long i = ulongval ();
36614 if (i != ((long) (sizeof (long long))))
36616 fprintf (f, "%lu\n", i);
36618 exit (ferror (f) || fclose (f) != 0);
36624 rm -f conftest$ac_exeext
36625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36626 (eval $ac_link) 2>&5
36628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 (eval $ac_try) 2>&5
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); }; }; then
36635 ac_cv_sizeof_long_long=`cat conftest.val`
36637 echo "$as_me: program exited with status $ac_status" >&5
36638 echo "$as_me: failed program was:" >&5
36639 sed 's/^/| /' conftest.$ac_ext >&5
36641 ( exit $ac_status )
36642 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36643 See \`config.log' for more details." >&5
36644 echo "$as_me: error: cannot compute sizeof (long long), 77
36645 See \`config.log' for more details." >&2;}
36646 { (exit 1); exit 1; }; }
36648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36653 ac_cv_sizeof_long_long=0
36656 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36657 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36658 cat >>confdefs.h <<_ACEOF
36659 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36663 echo "$as_me:$LINENO: checking for wchar_t" >&5
36664 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36665 if test "${ac_cv_type_wchar_t+set}" = set; then
36666 echo $ECHO_N "(cached) $ECHO_C" >&6
36668 cat >conftest.$ac_ext <<_ACEOF
36671 cat confdefs.h >>conftest.$ac_ext
36672 cat >>conftest.$ac_ext <<_ACEOF
36673 /* end confdefs.h. */
36674 $ac_includes_default
36680 if (sizeof (wchar_t))
36686 rm -f conftest.$ac_objext
36687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36688 (eval $ac_compile) 2>conftest.er1
36690 grep -v '^ *+' conftest.er1 >conftest.err
36692 cat conftest.err >&5
36693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694 (exit $ac_status); } &&
36695 { ac_try='test -z "$ac_c_werror_flag"
36696 || test ! -s conftest.err'
36697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36698 (eval $ac_try) 2>&5
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); }; } &&
36702 { ac_try='test -s conftest.$ac_objext'
36703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36704 (eval $ac_try) 2>&5
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); }; }; then
36708 ac_cv_type_wchar_t=yes
36710 echo "$as_me: failed program was:" >&5
36711 sed 's/^/| /' conftest.$ac_ext >&5
36713 ac_cv_type_wchar_t=no
36715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36717 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36718 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36720 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36721 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36722 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36723 echo $ECHO_N "(cached) $ECHO_C" >&6
36725 if test "$ac_cv_type_wchar_t" = yes; then
36726 # The cast to unsigned long works around a bug in the HP C Compiler
36727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36729 # This bug is HP SR number 8606223364.
36730 if test "$cross_compiling" = yes; then
36731 # Depending upon the size, compute the lo and hi bounds.
36732 cat >conftest.$ac_ext <<_ACEOF
36735 cat confdefs.h >>conftest.$ac_ext
36736 cat >>conftest.$ac_ext <<_ACEOF
36737 /* end confdefs.h. */
36738 $ac_includes_default
36742 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
36749 rm -f conftest.$ac_objext
36750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36751 (eval $ac_compile) 2>conftest.er1
36753 grep -v '^ *+' conftest.er1 >conftest.err
36755 cat conftest.err >&5
36756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36757 (exit $ac_status); } &&
36758 { ac_try='test -z "$ac_c_werror_flag"
36759 || test ! -s conftest.err'
36760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36761 (eval $ac_try) 2>&5
36763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764 (exit $ac_status); }; } &&
36765 { ac_try='test -s conftest.$ac_objext'
36766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36767 (eval $ac_try) 2>&5
36769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770 (exit $ac_status); }; }; then
36773 cat >conftest.$ac_ext <<_ACEOF
36776 cat confdefs.h >>conftest.$ac_ext
36777 cat >>conftest.$ac_ext <<_ACEOF
36778 /* end confdefs.h. */
36779 $ac_includes_default
36783 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36790 rm -f conftest.$ac_objext
36791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36792 (eval $ac_compile) 2>conftest.er1
36794 grep -v '^ *+' conftest.er1 >conftest.err
36796 cat conftest.err >&5
36797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798 (exit $ac_status); } &&
36799 { ac_try='test -z "$ac_c_werror_flag"
36800 || test ! -s conftest.err'
36801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36802 (eval $ac_try) 2>&5
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); }; } &&
36806 { ac_try='test -s conftest.$ac_objext'
36807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36808 (eval $ac_try) 2>&5
36810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811 (exit $ac_status); }; }; then
36812 ac_hi=$ac_mid; break
36814 echo "$as_me: failed program was:" >&5
36815 sed 's/^/| /' conftest.$ac_ext >&5
36817 ac_lo=`expr $ac_mid + 1`
36818 if test $ac_lo -le $ac_mid; then
36822 ac_mid=`expr 2 '*' $ac_mid + 1`
36824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36827 echo "$as_me: failed program was:" >&5
36828 sed 's/^/| /' conftest.$ac_ext >&5
36830 cat >conftest.$ac_ext <<_ACEOF
36833 cat confdefs.h >>conftest.$ac_ext
36834 cat >>conftest.$ac_ext <<_ACEOF
36835 /* end confdefs.h. */
36836 $ac_includes_default
36840 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
36847 rm -f conftest.$ac_objext
36848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36849 (eval $ac_compile) 2>conftest.er1
36851 grep -v '^ *+' conftest.er1 >conftest.err
36853 cat conftest.err >&5
36854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); } &&
36856 { ac_try='test -z "$ac_c_werror_flag"
36857 || test ! -s conftest.err'
36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36859 (eval $ac_try) 2>&5
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; } &&
36863 { ac_try='test -s conftest.$ac_objext'
36864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36865 (eval $ac_try) 2>&5
36867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868 (exit $ac_status); }; }; then
36871 cat >conftest.$ac_ext <<_ACEOF
36874 cat confdefs.h >>conftest.$ac_ext
36875 cat >>conftest.$ac_ext <<_ACEOF
36876 /* end confdefs.h. */
36877 $ac_includes_default
36881 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
36888 rm -f conftest.$ac_objext
36889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36890 (eval $ac_compile) 2>conftest.er1
36892 grep -v '^ *+' conftest.er1 >conftest.err
36894 cat conftest.err >&5
36895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896 (exit $ac_status); } &&
36897 { ac_try='test -z "$ac_c_werror_flag"
36898 || test ! -s conftest.err'
36899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36900 (eval $ac_try) 2>&5
36902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903 (exit $ac_status); }; } &&
36904 { ac_try='test -s conftest.$ac_objext'
36905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36906 (eval $ac_try) 2>&5
36908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36909 (exit $ac_status); }; }; then
36910 ac_lo=$ac_mid; break
36912 echo "$as_me: failed program was:" >&5
36913 sed 's/^/| /' conftest.$ac_ext >&5
36915 ac_hi=`expr '(' $ac_mid ')' - 1`
36916 if test $ac_mid -le $ac_hi; then
36920 ac_mid=`expr 2 '*' $ac_mid`
36922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36925 echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36933 # Binary search between lo and hi bounds.
36934 while test "x$ac_lo" != "x$ac_hi"; do
36935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36936 cat >conftest.$ac_ext <<_ACEOF
36939 cat confdefs.h >>conftest.$ac_ext
36940 cat >>conftest.$ac_ext <<_ACEOF
36941 /* end confdefs.h. */
36942 $ac_includes_default
36946 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36953 rm -f conftest.$ac_objext
36954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36955 (eval $ac_compile) 2>conftest.er1
36957 grep -v '^ *+' conftest.er1 >conftest.err
36959 cat conftest.err >&5
36960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961 (exit $ac_status); } &&
36962 { ac_try='test -z "$ac_c_werror_flag"
36963 || test ! -s conftest.err'
36964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36965 (eval $ac_try) 2>&5
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); }; } &&
36969 { ac_try='test -s conftest.$ac_objext'
36970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36971 (eval $ac_try) 2>&5
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); }; }; then
36977 echo "$as_me: failed program was:" >&5
36978 sed 's/^/| /' conftest.$ac_ext >&5
36980 ac_lo=`expr '(' $ac_mid ')' + 1`
36982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36985 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
36986 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
36987 See \`config.log' for more details." >&5
36988 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
36989 See \`config.log' for more details." >&2;}
36990 { (exit 1); exit 1; }; } ;;
36993 if test "$cross_compiling" = yes; then
36994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36995 See \`config.log' for more details." >&5
36996 echo "$as_me: error: cannot run test program while cross compiling
36997 See \`config.log' for more details." >&2;}
36998 { (exit 1); exit 1; }; }
37000 cat >conftest.$ac_ext <<_ACEOF
37003 cat confdefs.h >>conftest.$ac_ext
37004 cat >>conftest.$ac_ext <<_ACEOF
37005 /* end confdefs.h. */
37006 $ac_includes_default
37007 long longval () { return (long) (sizeof (wchar_t)); }
37008 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37010 #include <stdlib.h>
37015 FILE *f = fopen ("conftest.val", "w");
37018 if (((long) (sizeof (wchar_t))) < 0)
37020 long i = longval ();
37021 if (i != ((long) (sizeof (wchar_t))))
37023 fprintf (f, "%ld\n", i);
37027 unsigned long i = ulongval ();
37028 if (i != ((long) (sizeof (wchar_t))))
37030 fprintf (f, "%lu\n", i);
37032 exit (ferror (f) || fclose (f) != 0);
37038 rm -f conftest$ac_exeext
37039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37040 (eval $ac_link) 2>&5
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045 (eval $ac_try) 2>&5
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); }; }; then
37049 ac_cv_sizeof_wchar_t=`cat conftest.val`
37051 echo "$as_me: program exited with status $ac_status" >&5
37052 echo "$as_me: failed program was:" >&5
37053 sed 's/^/| /' conftest.$ac_ext >&5
37055 ( exit $ac_status )
37056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37057 See \`config.log' for more details." >&5
37058 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37059 See \`config.log' for more details." >&2;}
37060 { (exit 1); exit 1; }; }
37062 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37067 ac_cv_sizeof_wchar_t=0
37070 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37071 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37072 cat >>confdefs.h <<_ACEOF
37073 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37078 if test "$ac_cv_sizeof_int" -lt 4 ; then
37079 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37080 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37083 cat >>confdefs.h <<\_ACEOF
37084 #define LBER_INT_T long
37089 cat >>confdefs.h <<\_ACEOF
37090 #define LBER_INT_T int
37096 cat >>confdefs.h <<\_ACEOF
37097 #define LBER_LEN_T long
37101 cat >>confdefs.h <<\_ACEOF
37102 #define LBER_SOCKET_T int
37106 cat >>confdefs.h <<\_ACEOF
37107 #define LBER_TAG_T long
37111 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37112 if test $ac_cv_sizeof_long_long -gt 4 ; then
37113 ol_with_mp=longlong
37115 cat >>confdefs.h <<\_ACEOF
37116 #define USE_MP_LONG_LONG 1
37119 elif test $ol_with_mp = longlong ; then
37120 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37121 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37122 { (exit 1); exit 1; }; }
37125 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37126 if test $ac_cv_sizeof_long -gt 4 ; then
37129 cat >>confdefs.h <<\_ACEOF
37130 #define USE_MP_LONG 1
37133 elif test $ol_with_mp = long ; then
37134 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37135 echo "$as_me: error: long unusable for multiple precision" >&2;}
37136 { (exit 1); exit 1; }; }
37139 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37141 for ac_header in openssl/bn.h
37143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37145 echo "$as_me:$LINENO: checking for $ac_header" >&5
37146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37148 echo $ECHO_N "(cached) $ECHO_C" >&6
37150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37153 # Is the header compilable?
37154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37156 cat >conftest.$ac_ext <<_ACEOF
37159 cat confdefs.h >>conftest.$ac_ext
37160 cat >>conftest.$ac_ext <<_ACEOF
37161 /* end confdefs.h. */
37162 $ac_includes_default
37163 #include <$ac_header>
37165 rm -f conftest.$ac_objext
37166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37167 (eval $ac_compile) 2>conftest.er1
37169 grep -v '^ *+' conftest.er1 >conftest.err
37171 cat conftest.err >&5
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); } &&
37174 { ac_try='test -z "$ac_c_werror_flag"
37175 || test ! -s conftest.err'
37176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177 (eval $ac_try) 2>&5
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); }; } &&
37181 { ac_try='test -s conftest.$ac_objext'
37182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37183 (eval $ac_try) 2>&5
37185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186 (exit $ac_status); }; }; then
37187 ac_header_compiler=yes
37189 echo "$as_me: failed program was:" >&5
37190 sed 's/^/| /' conftest.$ac_ext >&5
37192 ac_header_compiler=no
37194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37196 echo "${ECHO_T}$ac_header_compiler" >&6
37198 # Is the header present?
37199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37201 cat >conftest.$ac_ext <<_ACEOF
37204 cat confdefs.h >>conftest.$ac_ext
37205 cat >>conftest.$ac_ext <<_ACEOF
37206 /* end confdefs.h. */
37207 #include <$ac_header>
37209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37212 grep -v '^ *+' conftest.er1 >conftest.err
37214 cat conftest.err >&5
37215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216 (exit $ac_status); } >/dev/null; then
37217 if test -s conftest.err; then
37218 ac_cpp_err=$ac_c_preproc_warn_flag
37219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37226 if test -z "$ac_cpp_err"; then
37227 ac_header_preproc=yes
37229 echo "$as_me: failed program was:" >&5
37230 sed 's/^/| /' conftest.$ac_ext >&5
37232 ac_header_preproc=no
37234 rm -f conftest.err conftest.$ac_ext
37235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37236 echo "${ECHO_T}$ac_header_preproc" >&6
37238 # So? What about this header?
37239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37245 ac_header_preproc=yes
37248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37262 ## --------------------------------------------- ##
37263 ## Report this to <http://www.openldap.org/its/> ##
37264 ## --------------------------------------------- ##
37267 sed "s/^/$as_me: WARNING: /" >&2
37270 echo "$as_me:$LINENO: checking for $ac_header" >&5
37271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37273 echo $ECHO_N "(cached) $ECHO_C" >&6
37275 eval "$as_ac_Header=\$ac_header_preproc"
37277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37282 cat >>confdefs.h <<_ACEOF
37283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37291 for ac_header in openssl/crypto.h
37293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37295 echo "$as_me:$LINENO: checking for $ac_header" >&5
37296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37298 echo $ECHO_N "(cached) $ECHO_C" >&6
37300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37303 # Is the header compilable?
37304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37306 cat >conftest.$ac_ext <<_ACEOF
37309 cat confdefs.h >>conftest.$ac_ext
37310 cat >>conftest.$ac_ext <<_ACEOF
37311 /* end confdefs.h. */
37312 $ac_includes_default
37313 #include <$ac_header>
37315 rm -f conftest.$ac_objext
37316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37317 (eval $ac_compile) 2>conftest.er1
37319 grep -v '^ *+' conftest.er1 >conftest.err
37321 cat conftest.err >&5
37322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); } &&
37324 { ac_try='test -z "$ac_c_werror_flag"
37325 || test ! -s conftest.err'
37326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327 (eval $ac_try) 2>&5
37329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330 (exit $ac_status); }; } &&
37331 { ac_try='test -s conftest.$ac_objext'
37332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37333 (eval $ac_try) 2>&5
37335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37336 (exit $ac_status); }; }; then
37337 ac_header_compiler=yes
37339 echo "$as_me: failed program was:" >&5
37340 sed 's/^/| /' conftest.$ac_ext >&5
37342 ac_header_compiler=no
37344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37346 echo "${ECHO_T}$ac_header_compiler" >&6
37348 # Is the header present?
37349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37351 cat >conftest.$ac_ext <<_ACEOF
37354 cat confdefs.h >>conftest.$ac_ext
37355 cat >>conftest.$ac_ext <<_ACEOF
37356 /* end confdefs.h. */
37357 #include <$ac_header>
37359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37362 grep -v '^ *+' conftest.er1 >conftest.err
37364 cat conftest.err >&5
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); } >/dev/null; then
37367 if test -s conftest.err; then
37368 ac_cpp_err=$ac_c_preproc_warn_flag
37369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37376 if test -z "$ac_cpp_err"; then
37377 ac_header_preproc=yes
37379 echo "$as_me: failed program was:" >&5
37380 sed 's/^/| /' conftest.$ac_ext >&5
37382 ac_header_preproc=no
37384 rm -f conftest.err conftest.$ac_ext
37385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37386 echo "${ECHO_T}$ac_header_preproc" >&6
37388 # So? What about this header?
37389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37395 ac_header_preproc=yes
37398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37412 ## --------------------------------------------- ##
37413 ## Report this to <http://www.openldap.org/its/> ##
37414 ## --------------------------------------------- ##
37417 sed "s/^/$as_me: WARNING: /" >&2
37420 echo "$as_me:$LINENO: checking for $ac_header" >&5
37421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37423 echo $ECHO_N "(cached) $ECHO_C" >&6
37425 eval "$as_ac_Header=\$ac_header_preproc"
37427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37432 cat >>confdefs.h <<_ACEOF
37433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37440 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37441 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37442 test "$ol_with_tls" = "found" ; then
37445 cat >>confdefs.h <<\_ACEOF
37446 #define USE_MP_BIGNUM 1
37449 elif test $ol_with_mp = bignum ; then
37450 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37451 echo "$as_me: error: bignum not available" >&2;}
37452 { (exit 1); exit 1; }; }
37455 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37457 for ac_header in gmp.h
37459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37461 echo "$as_me:$LINENO: checking for $ac_header" >&5
37462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37464 echo $ECHO_N "(cached) $ECHO_C" >&6
37466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37469 # Is the header compilable?
37470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37472 cat >conftest.$ac_ext <<_ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h. */
37478 $ac_includes_default
37479 #include <$ac_header>
37481 rm -f conftest.$ac_objext
37482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37483 (eval $ac_compile) 2>conftest.er1
37485 grep -v '^ *+' conftest.er1 >conftest.err
37487 cat conftest.err >&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); } &&
37490 { ac_try='test -z "$ac_c_werror_flag"
37491 || test ! -s conftest.err'
37492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37493 (eval $ac_try) 2>&5
37495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496 (exit $ac_status); }; } &&
37497 { ac_try='test -s conftest.$ac_objext'
37498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37499 (eval $ac_try) 2>&5
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); }; }; then
37503 ac_header_compiler=yes
37505 echo "$as_me: failed program was:" >&5
37506 sed 's/^/| /' conftest.$ac_ext >&5
37508 ac_header_compiler=no
37510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37512 echo "${ECHO_T}$ac_header_compiler" >&6
37514 # Is the header present?
37515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37517 cat >conftest.$ac_ext <<_ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h. */
37523 #include <$ac_header>
37525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37528 grep -v '^ *+' conftest.er1 >conftest.err
37530 cat conftest.err >&5
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); } >/dev/null; then
37533 if test -s conftest.err; then
37534 ac_cpp_err=$ac_c_preproc_warn_flag
37535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37542 if test -z "$ac_cpp_err"; then
37543 ac_header_preproc=yes
37545 echo "$as_me: failed program was:" >&5
37546 sed 's/^/| /' conftest.$ac_ext >&5
37548 ac_header_preproc=no
37550 rm -f conftest.err conftest.$ac_ext
37551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37552 echo "${ECHO_T}$ac_header_preproc" >&6
37554 # So? What about this header?
37555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37561 ac_header_preproc=yes
37564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37578 ## --------------------------------------------- ##
37579 ## Report this to <http://www.openldap.org/its/> ##
37580 ## --------------------------------------------- ##
37583 sed "s/^/$as_me: WARNING: /" >&2
37586 echo "$as_me:$LINENO: checking for $ac_header" >&5
37587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37589 echo $ECHO_N "(cached) $ECHO_C" >&6
37591 eval "$as_ac_Header=\$ac_header_preproc"
37593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37598 cat >>confdefs.h <<_ACEOF
37599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37607 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37608 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37609 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37610 echo $ECHO_N "(cached) $ECHO_C" >&6
37612 ac_check_lib_save_LIBS=$LIBS
37614 cat >conftest.$ac_ext <<_ACEOF
37617 cat confdefs.h >>conftest.$ac_ext
37618 cat >>conftest.$ac_ext <<_ACEOF
37619 /* end confdefs.h. */
37621 /* Override any gcc2 internal prototype to avoid an error. */
37625 /* We use char because int might match the return type of a gcc2
37626 builtin and then its argument prototype would still apply. */
37627 char __gmpz_add_ui ();
37636 rm -f conftest.$ac_objext conftest$ac_exeext
37637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37638 (eval $ac_link) 2>conftest.er1
37640 grep -v '^ *+' conftest.er1 >conftest.err
37642 cat conftest.err >&5
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); } &&
37645 { ac_try='test -z "$ac_c_werror_flag"
37646 || test ! -s conftest.err'
37647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37648 (eval $ac_try) 2>&5
37650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651 (exit $ac_status); }; } &&
37652 { ac_try='test -s conftest$ac_exeext'
37653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654 (eval $ac_try) 2>&5
37656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657 (exit $ac_status); }; }; then
37658 ac_cv_lib_gmp___gmpz_add_ui=yes
37660 echo "$as_me: failed program was:" >&5
37661 sed 's/^/| /' conftest.$ac_ext >&5
37663 ac_cv_lib_gmp___gmpz_add_ui=no
37665 rm -f conftest.err conftest.$ac_objext \
37666 conftest$ac_exeext conftest.$ac_ext
37667 LIBS=$ac_check_lib_save_LIBS
37669 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37670 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37671 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37672 cat >>confdefs.h <<_ACEOF
37673 #define HAVE_LIBGMP 1
37680 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37682 cat >>confdefs.h <<\_ACEOF
37683 #define USE_MP_GMP 1
37687 elif test $ol_with_mp = gmp ; then
37688 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37689 echo "$as_me: error: gmp not available" >&2;}
37690 { (exit 1); exit 1; }; }
37693 if test $ol_with_mp = auto ; then
37697 echo "$as_me:$LINENO: checking for working memcmp" >&5
37698 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37699 if test "${ac_cv_func_memcmp_working+set}" = set; then
37700 echo $ECHO_N "(cached) $ECHO_C" >&6
37702 if test "$cross_compiling" = yes; then
37703 ac_cv_func_memcmp_working=no
37705 cat >conftest.$ac_ext <<_ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h. */
37711 $ac_includes_default
37716 /* Some versions of memcmp are not 8-bit clean. */
37717 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37718 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37721 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37722 or more and with at least one buffer not starting on a 4-byte boundary.
37723 William Lewis provided this test program. */
37728 for (i = 0; i < 4; i++)
37732 strcpy (a, "--------01111111");
37733 strcpy (b, "--------10000000");
37734 if (memcmp (a, b, 16) >= 0)
37744 rm -f conftest$ac_exeext
37745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37746 (eval $ac_link) 2>&5
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751 (eval $ac_try) 2>&5
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); }; }; then
37755 ac_cv_func_memcmp_working=yes
37757 echo "$as_me: program exited with status $ac_status" >&5
37758 echo "$as_me: failed program was:" >&5
37759 sed 's/^/| /' conftest.$ac_ext >&5
37761 ( exit $ac_status )
37762 ac_cv_func_memcmp_working=no
37764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37767 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
37768 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
37769 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
37770 "memcmp.$ac_objext" | \
37771 *" memcmp.$ac_objext" | \
37772 "memcmp.$ac_objext "* | \
37773 *" memcmp.$ac_objext "* ) ;;
37774 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
37779 if test $ac_cv_func_memcmp_working = no ; then
37781 cat >>confdefs.h <<\_ACEOF
37782 #define NEED_MEMCMP_REPLACEMENT 1
37788 for ac_func in strftime
37790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37791 echo "$as_me:$LINENO: checking for $ac_func" >&5
37792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37793 if eval "test \"\${$as_ac_var+set}\" = set"; then
37794 echo $ECHO_N "(cached) $ECHO_C" >&6
37796 cat >conftest.$ac_ext <<_ACEOF
37799 cat confdefs.h >>conftest.$ac_ext
37800 cat >>conftest.$ac_ext <<_ACEOF
37801 /* end confdefs.h. */
37802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37804 #define $ac_func innocuous_$ac_func
37806 /* System header to define __stub macros and hopefully few prototypes,
37807 which can conflict with char $ac_func (); below.
37808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37809 <limits.h> exists even on freestanding compilers. */
37812 # include <limits.h>
37814 # include <assert.h>
37819 /* Override any gcc2 internal prototype to avoid an error. */
37824 /* We use char because int might match the return type of a gcc2
37825 builtin and then its argument prototype would still apply. */
37827 /* The GNU C library defines this for functions which it implements
37828 to always fail with ENOSYS. Some functions are actually named
37829 something starting with __ and the normal name is an alias. */
37830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37833 char (*f) () = $ac_func;
37842 return f != $ac_func;
37847 rm -f conftest.$ac_objext conftest$ac_exeext
37848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37849 (eval $ac_link) 2>conftest.er1
37851 grep -v '^ *+' conftest.er1 >conftest.err
37853 cat conftest.err >&5
37854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37855 (exit $ac_status); } &&
37856 { ac_try='test -z "$ac_c_werror_flag"
37857 || test ! -s conftest.err'
37858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37859 (eval $ac_try) 2>&5
37861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37862 (exit $ac_status); }; } &&
37863 { ac_try='test -s conftest$ac_exeext'
37864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37865 (eval $ac_try) 2>&5
37867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37868 (exit $ac_status); }; }; then
37869 eval "$as_ac_var=yes"
37871 echo "$as_me: failed program was:" >&5
37872 sed 's/^/| /' conftest.$ac_ext >&5
37874 eval "$as_ac_var=no"
37876 rm -f conftest.err conftest.$ac_objext \
37877 conftest$ac_exeext conftest.$ac_ext
37879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37881 if test `eval echo '${'$as_ac_var'}'` = yes; then
37882 cat >>confdefs.h <<_ACEOF
37883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37887 # strftime is in -lintl on SCO UNIX.
37888 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
37889 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
37890 if test "${ac_cv_lib_intl_strftime+set}" = set; then
37891 echo $ECHO_N "(cached) $ECHO_C" >&6
37893 ac_check_lib_save_LIBS=$LIBS
37894 LIBS="-lintl $LIBS"
37895 cat >conftest.$ac_ext <<_ACEOF
37898 cat confdefs.h >>conftest.$ac_ext
37899 cat >>conftest.$ac_ext <<_ACEOF
37900 /* end confdefs.h. */
37902 /* Override any gcc2 internal prototype to avoid an error. */
37906 /* We use char because int might match the return type of a gcc2
37907 builtin and then its argument prototype would still apply. */
37917 rm -f conftest.$ac_objext conftest$ac_exeext
37918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37919 (eval $ac_link) 2>conftest.er1
37921 grep -v '^ *+' conftest.er1 >conftest.err
37923 cat conftest.err >&5
37924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925 (exit $ac_status); } &&
37926 { ac_try='test -z "$ac_c_werror_flag"
37927 || test ! -s conftest.err'
37928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37929 (eval $ac_try) 2>&5
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); }; } &&
37933 { ac_try='test -s conftest$ac_exeext'
37934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37935 (eval $ac_try) 2>&5
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); }; }; then
37939 ac_cv_lib_intl_strftime=yes
37941 echo "$as_me: failed program was:" >&5
37942 sed 's/^/| /' conftest.$ac_ext >&5
37944 ac_cv_lib_intl_strftime=no
37946 rm -f conftest.err conftest.$ac_objext \
37947 conftest$ac_exeext conftest.$ac_ext
37948 LIBS=$ac_check_lib_save_LIBS
37950 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
37951 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
37952 if test $ac_cv_lib_intl_strftime = yes; then
37953 cat >>confdefs.h <<\_ACEOF
37954 #define HAVE_STRFTIME 1
37957 LIBS="-lintl $LIBS"
37964 echo "$as_me:$LINENO: checking for inet_aton()" >&5
37965 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
37966 if test "${ol_cv_func_inet_aton+set}" = set; then
37967 echo $ECHO_N "(cached) $ECHO_C" >&6
37969 cat >conftest.$ac_ext <<_ACEOF
37972 cat confdefs.h >>conftest.$ac_ext
37973 cat >>conftest.$ac_ext <<_ACEOF
37974 /* end confdefs.h. */
37976 #ifdef HAVE_SYS_TYPES_H
37977 # include <sys/types.h>
37979 #ifdef HAVE_SYS_SOCKET_H
37980 # include <sys/socket.h>
37981 # ifdef HAVE_SYS_SELECT_H
37982 # include <sys/select.h>
37984 # include <netinet/in.h>
37985 # ifdef HAVE_ARPA_INET_H
37986 # include <arpa/inet.h>
37994 int rc = inet_aton( "255.255.255.255", &in );
37999 rm -f conftest.$ac_objext conftest$ac_exeext
38000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38001 (eval $ac_link) 2>conftest.er1
38003 grep -v '^ *+' conftest.er1 >conftest.err
38005 cat conftest.err >&5
38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); } &&
38008 { ac_try='test -z "$ac_c_werror_flag"
38009 || test ! -s conftest.err'
38010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38011 (eval $ac_try) 2>&5
38013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014 (exit $ac_status); }; } &&
38015 { ac_try='test -s conftest$ac_exeext'
38016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38017 (eval $ac_try) 2>&5
38019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); }; }; then
38021 ol_cv_func_inet_aton=yes
38023 echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38026 ol_cv_func_inet_aton=no
38028 rm -f conftest.err conftest.$ac_objext \
38029 conftest$ac_exeext conftest.$ac_ext
38031 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38032 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38033 if test $ol_cv_func_inet_aton != no; then
38035 cat >>confdefs.h <<\_ACEOF
38036 #define HAVE_INET_ATON 1
38042 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38043 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38044 if test "${ac_cv_func__spawnlp+set}" = set; then
38045 echo $ECHO_N "(cached) $ECHO_C" >&6
38047 cat >conftest.$ac_ext <<_ACEOF
38050 cat confdefs.h >>conftest.$ac_ext
38051 cat >>conftest.$ac_ext <<_ACEOF
38052 /* end confdefs.h. */
38053 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38055 #define _spawnlp innocuous__spawnlp
38057 /* System header to define __stub macros and hopefully few prototypes,
38058 which can conflict with char _spawnlp (); below.
38059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38060 <limits.h> exists even on freestanding compilers. */
38063 # include <limits.h>
38065 # include <assert.h>
38070 /* Override any gcc2 internal prototype to avoid an error. */
38075 /* We use char because int might match the return type of a gcc2
38076 builtin and then its argument prototype would still apply. */
38078 /* The GNU C library defines this for functions which it implements
38079 to always fail with ENOSYS. Some functions are actually named
38080 something starting with __ and the normal name is an alias. */
38081 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38084 char (*f) () = _spawnlp;
38093 return f != _spawnlp;
38098 rm -f conftest.$ac_objext conftest$ac_exeext
38099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38100 (eval $ac_link) 2>conftest.er1
38102 grep -v '^ *+' conftest.er1 >conftest.err
38104 cat conftest.err >&5
38105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); } &&
38107 { ac_try='test -z "$ac_c_werror_flag"
38108 || test ! -s conftest.err'
38109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38110 (eval $ac_try) 2>&5
38112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113 (exit $ac_status); }; } &&
38114 { ac_try='test -s conftest$ac_exeext'
38115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38116 (eval $ac_try) 2>&5
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); }; }; then
38120 ac_cv_func__spawnlp=yes
38122 echo "$as_me: failed program was:" >&5
38123 sed 's/^/| /' conftest.$ac_ext >&5
38125 ac_cv_func__spawnlp=no
38127 rm -f conftest.err conftest.$ac_objext \
38128 conftest$ac_exeext conftest.$ac_ext
38130 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38131 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38132 if test $ac_cv_func__spawnlp = yes; then
38134 cat >>confdefs.h <<\_ACEOF
38135 #define HAVE_SPAWNLP 1
38141 echo "$as_me:$LINENO: checking for _snprintf" >&5
38142 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38143 if test "${ac_cv_func__snprintf+set}" = set; then
38144 echo $ECHO_N "(cached) $ECHO_C" >&6
38146 cat >conftest.$ac_ext <<_ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h. */
38152 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38154 #define _snprintf innocuous__snprintf
38156 /* System header to define __stub macros and hopefully few prototypes,
38157 which can conflict with char _snprintf (); below.
38158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38159 <limits.h> exists even on freestanding compilers. */
38162 # include <limits.h>
38164 # include <assert.h>
38169 /* Override any gcc2 internal prototype to avoid an error. */
38174 /* We use char because int might match the return type of a gcc2
38175 builtin and then its argument prototype would still apply. */
38177 /* The GNU C library defines this for functions which it implements
38178 to always fail with ENOSYS. Some functions are actually named
38179 something starting with __ and the normal name is an alias. */
38180 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38183 char (*f) () = _snprintf;
38192 return f != _snprintf;
38197 rm -f conftest.$ac_objext conftest$ac_exeext
38198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38199 (eval $ac_link) 2>conftest.er1
38201 grep -v '^ *+' conftest.er1 >conftest.err
38203 cat conftest.err >&5
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); } &&
38206 { ac_try='test -z "$ac_c_werror_flag"
38207 || test ! -s conftest.err'
38208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209 (eval $ac_try) 2>&5
38211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212 (exit $ac_status); }; } &&
38213 { ac_try='test -s conftest$ac_exeext'
38214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38215 (eval $ac_try) 2>&5
38217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218 (exit $ac_status); }; }; then
38219 ac_cv_func__snprintf=yes
38221 echo "$as_me: failed program was:" >&5
38222 sed 's/^/| /' conftest.$ac_ext >&5
38224 ac_cv_func__snprintf=no
38226 rm -f conftest.err conftest.$ac_objext \
38227 conftest$ac_exeext conftest.$ac_ext
38229 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38230 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38231 if test $ac_cv_func__snprintf = yes; then
38232 ac_cv_func_snprintf=yes
38234 cat >>confdefs.h <<\_ACEOF
38235 #define snprintf _snprintf
38242 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38243 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38244 if test "${ac_cv_func__vsnprintf+set}" = set; then
38245 echo $ECHO_N "(cached) $ECHO_C" >&6
38247 cat >conftest.$ac_ext <<_ACEOF
38250 cat confdefs.h >>conftest.$ac_ext
38251 cat >>conftest.$ac_ext <<_ACEOF
38252 /* end confdefs.h. */
38253 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38255 #define _vsnprintf innocuous__vsnprintf
38257 /* System header to define __stub macros and hopefully few prototypes,
38258 which can conflict with char _vsnprintf (); below.
38259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38260 <limits.h> exists even on freestanding compilers. */
38263 # include <limits.h>
38265 # include <assert.h>
38270 /* Override any gcc2 internal prototype to avoid an error. */
38275 /* We use char because int might match the return type of a gcc2
38276 builtin and then its argument prototype would still apply. */
38277 char _vsnprintf ();
38278 /* The GNU C library defines this for functions which it implements
38279 to always fail with ENOSYS. Some functions are actually named
38280 something starting with __ and the normal name is an alias. */
38281 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38284 char (*f) () = _vsnprintf;
38293 return f != _vsnprintf;
38298 rm -f conftest.$ac_objext conftest$ac_exeext
38299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38300 (eval $ac_link) 2>conftest.er1
38302 grep -v '^ *+' conftest.er1 >conftest.err
38304 cat conftest.err >&5
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); } &&
38307 { ac_try='test -z "$ac_c_werror_flag"
38308 || test ! -s conftest.err'
38309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38310 (eval $ac_try) 2>&5
38312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313 (exit $ac_status); }; } &&
38314 { ac_try='test -s conftest$ac_exeext'
38315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38316 (eval $ac_try) 2>&5
38318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319 (exit $ac_status); }; }; then
38320 ac_cv_func__vsnprintf=yes
38322 echo "$as_me: failed program was:" >&5
38323 sed 's/^/| /' conftest.$ac_ext >&5
38325 ac_cv_func__vsnprintf=no
38327 rm -f conftest.err conftest.$ac_objext \
38328 conftest$ac_exeext conftest.$ac_ext
38330 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38331 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38332 if test $ac_cv_func__vsnprintf = yes; then
38333 ac_cv_func_vsnprintf=yes
38335 cat >>confdefs.h <<\_ACEOF
38336 #define vsnprintf _vsnprintf
38344 for ac_func in vprintf
38346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38347 echo "$as_me:$LINENO: checking for $ac_func" >&5
38348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38349 if eval "test \"\${$as_ac_var+set}\" = set"; then
38350 echo $ECHO_N "(cached) $ECHO_C" >&6
38352 cat >conftest.$ac_ext <<_ACEOF
38355 cat confdefs.h >>conftest.$ac_ext
38356 cat >>conftest.$ac_ext <<_ACEOF
38357 /* end confdefs.h. */
38358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38360 #define $ac_func innocuous_$ac_func
38362 /* System header to define __stub macros and hopefully few prototypes,
38363 which can conflict with char $ac_func (); below.
38364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38365 <limits.h> exists even on freestanding compilers. */
38368 # include <limits.h>
38370 # include <assert.h>
38375 /* Override any gcc2 internal prototype to avoid an error. */
38380 /* We use char because int might match the return type of a gcc2
38381 builtin and then its argument prototype would still apply. */
38383 /* The GNU C library defines this for functions which it implements
38384 to always fail with ENOSYS. Some functions are actually named
38385 something starting with __ and the normal name is an alias. */
38386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38389 char (*f) () = $ac_func;
38398 return f != $ac_func;
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 eval "$as_ac_var=yes"
38427 echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38430 eval "$as_ac_var=no"
38432 rm -f conftest.err conftest.$ac_objext \
38433 conftest$ac_exeext conftest.$ac_ext
38435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38437 if test `eval echo '${'$as_ac_var'}'` = yes; then
38438 cat >>confdefs.h <<_ACEOF
38439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38442 echo "$as_me:$LINENO: checking for _doprnt" >&5
38443 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38444 if test "${ac_cv_func__doprnt+set}" = set; then
38445 echo $ECHO_N "(cached) $ECHO_C" >&6
38447 cat >conftest.$ac_ext <<_ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h. */
38453 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38455 #define _doprnt innocuous__doprnt
38457 /* System header to define __stub macros and hopefully few prototypes,
38458 which can conflict with char _doprnt (); below.
38459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38460 <limits.h> exists even on freestanding compilers. */
38463 # include <limits.h>
38465 # include <assert.h>
38470 /* Override any gcc2 internal prototype to avoid an error. */
38475 /* We use char because int might match the return type of a gcc2
38476 builtin and then its argument prototype would still apply. */
38478 /* The GNU C library defines this for functions which it implements
38479 to always fail with ENOSYS. Some functions are actually named
38480 something starting with __ and the normal name is an alias. */
38481 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38484 char (*f) () = _doprnt;
38493 return f != _doprnt;
38498 rm -f conftest.$ac_objext conftest$ac_exeext
38499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38500 (eval $ac_link) 2>conftest.er1
38502 grep -v '^ *+' conftest.er1 >conftest.err
38504 cat conftest.err >&5
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); } &&
38507 { ac_try='test -z "$ac_c_werror_flag"
38508 || test ! -s conftest.err'
38509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510 (eval $ac_try) 2>&5
38512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513 (exit $ac_status); }; } &&
38514 { ac_try='test -s conftest$ac_exeext'
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; }; then
38520 ac_cv_func__doprnt=yes
38522 echo "$as_me: failed program was:" >&5
38523 sed 's/^/| /' conftest.$ac_ext >&5
38525 ac_cv_func__doprnt=no
38527 rm -f conftest.err conftest.$ac_objext \
38528 conftest$ac_exeext conftest.$ac_ext
38530 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38531 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38532 if test $ac_cv_func__doprnt = yes; then
38534 cat >>confdefs.h <<\_ACEOF
38535 #define HAVE_DOPRNT 1
38545 if test $ac_cv_func_vprintf = yes ; then
38548 for ac_func in snprintf vsnprintf
38550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38551 echo "$as_me:$LINENO: checking for $ac_func" >&5
38552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38553 if eval "test \"\${$as_ac_var+set}\" = set"; then
38554 echo $ECHO_N "(cached) $ECHO_C" >&6
38556 cat >conftest.$ac_ext <<_ACEOF
38559 cat confdefs.h >>conftest.$ac_ext
38560 cat >>conftest.$ac_ext <<_ACEOF
38561 /* end confdefs.h. */
38562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38564 #define $ac_func innocuous_$ac_func
38566 /* System header to define __stub macros and hopefully few prototypes,
38567 which can conflict with char $ac_func (); below.
38568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38569 <limits.h> exists even on freestanding compilers. */
38572 # include <limits.h>
38574 # include <assert.h>
38579 /* Override any gcc2 internal prototype to avoid an error. */
38584 /* We use char because int might match the return type of a gcc2
38585 builtin and then its argument prototype would still apply. */
38587 /* The GNU C library defines this for functions which it implements
38588 to always fail with ENOSYS. Some functions are actually named
38589 something starting with __ and the normal name is an alias. */
38590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38593 char (*f) () = $ac_func;
38602 return f != $ac_func;
38607 rm -f conftest.$ac_objext conftest$ac_exeext
38608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38609 (eval $ac_link) 2>conftest.er1
38611 grep -v '^ *+' conftest.er1 >conftest.err
38613 cat conftest.err >&5
38614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38615 (exit $ac_status); } &&
38616 { ac_try='test -z "$ac_c_werror_flag"
38617 || test ! -s conftest.err'
38618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38619 (eval $ac_try) 2>&5
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); }; } &&
38623 { ac_try='test -s conftest$ac_exeext'
38624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38625 (eval $ac_try) 2>&5
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); }; }; then
38629 eval "$as_ac_var=yes"
38631 echo "$as_me: failed program was:" >&5
38632 sed 's/^/| /' conftest.$ac_ext >&5
38634 eval "$as_ac_var=no"
38636 rm -f conftest.err conftest.$ac_objext \
38637 conftest$ac_exeext conftest.$ac_ext
38639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38641 if test `eval echo '${'$as_ac_var'}'` = yes; then
38642 cat >>confdefs.h <<_ACEOF
38643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38765 echo "$as_me:$LINENO: checking for $ac_func" >&5
38766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38767 if eval "test \"\${$as_ac_var+set}\" = set"; then
38768 echo $ECHO_N "(cached) $ECHO_C" >&6
38770 cat >conftest.$ac_ext <<_ACEOF
38773 cat confdefs.h >>conftest.$ac_ext
38774 cat >>conftest.$ac_ext <<_ACEOF
38775 /* end confdefs.h. */
38776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38778 #define $ac_func innocuous_$ac_func
38780 /* System header to define __stub macros and hopefully few prototypes,
38781 which can conflict with char $ac_func (); below.
38782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38783 <limits.h> exists even on freestanding compilers. */
38786 # include <limits.h>
38788 # include <assert.h>
38793 /* Override any gcc2 internal prototype to avoid an error. */
38798 /* We use char because int might match the return type of a gcc2
38799 builtin and then its argument prototype would still apply. */
38801 /* The GNU C library defines this for functions which it implements
38802 to always fail with ENOSYS. Some functions are actually named
38803 something starting with __ and the normal name is an alias. */
38804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38807 char (*f) () = $ac_func;
38816 return f != $ac_func;
38821 rm -f conftest.$ac_objext conftest$ac_exeext
38822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38823 (eval $ac_link) 2>conftest.er1
38825 grep -v '^ *+' conftest.er1 >conftest.err
38827 cat conftest.err >&5
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); } &&
38830 { ac_try='test -z "$ac_c_werror_flag"
38831 || test ! -s conftest.err'
38832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833 (eval $ac_try) 2>&5
38835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836 (exit $ac_status); }; } &&
38837 { ac_try='test -s conftest$ac_exeext'
38838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839 (eval $ac_try) 2>&5
38841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); }; }; then
38843 eval "$as_ac_var=yes"
38845 echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.$ac_ext >&5
38848 eval "$as_ac_var=no"
38850 rm -f conftest.err conftest.$ac_objext \
38851 conftest$ac_exeext conftest.$ac_ext
38853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38855 if test `eval echo '${'$as_ac_var'}'` = yes; then
38856 cat >>confdefs.h <<_ACEOF
38857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38866 for ac_func in getopt getpeereid
38868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38869 echo "$as_me:$LINENO: checking for $ac_func" >&5
38870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38871 if eval "test \"\${$as_ac_var+set}\" = set"; then
38872 echo $ECHO_N "(cached) $ECHO_C" >&6
38874 cat >conftest.$ac_ext <<_ACEOF
38877 cat confdefs.h >>conftest.$ac_ext
38878 cat >>conftest.$ac_ext <<_ACEOF
38879 /* end confdefs.h. */
38880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38882 #define $ac_func innocuous_$ac_func
38884 /* System header to define __stub macros and hopefully few prototypes,
38885 which can conflict with char $ac_func (); below.
38886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38887 <limits.h> exists even on freestanding compilers. */
38890 # include <limits.h>
38892 # include <assert.h>
38897 /* Override any gcc2 internal prototype to avoid an error. */
38902 /* We use char because int might match the return type of a gcc2
38903 builtin and then its argument prototype would still apply. */
38905 /* The GNU C library defines this for functions which it implements
38906 to always fail with ENOSYS. Some functions are actually named
38907 something starting with __ and the normal name is an alias. */
38908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38911 char (*f) () = $ac_func;
38920 return f != $ac_func;
38925 rm -f conftest.$ac_objext conftest$ac_exeext
38926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38927 (eval $ac_link) 2>conftest.er1
38929 grep -v '^ *+' conftest.er1 >conftest.err
38931 cat conftest.err >&5
38932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933 (exit $ac_status); } &&
38934 { ac_try='test -z "$ac_c_werror_flag"
38935 || test ! -s conftest.err'
38936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38937 (eval $ac_try) 2>&5
38939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38940 (exit $ac_status); }; } &&
38941 { ac_try='test -s conftest$ac_exeext'
38942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38943 (eval $ac_try) 2>&5
38945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946 (exit $ac_status); }; }; then
38947 eval "$as_ac_var=yes"
38949 echo "$as_me: failed program was:" >&5
38950 sed 's/^/| /' conftest.$ac_ext >&5
38952 eval "$as_ac_var=no"
38954 rm -f conftest.err conftest.$ac_objext \
38955 conftest$ac_exeext conftest.$ac_ext
38957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38959 if test `eval echo '${'$as_ac_var'}'` = yes; then
38960 cat >>confdefs.h <<_ACEOF
38961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38966 "$ac_func.$ac_objext" | \
38967 *" $ac_func.$ac_objext" | \
38968 "$ac_func.$ac_objext "* | \
38969 *" $ac_func.$ac_objext "* ) ;;
38970 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38978 if test "$ac_cv_func_getopt" != yes; then
38979 LIBSRCS="$LIBSRCS getopt.c"
38982 if test "$ac_cv_func_getpeereid" != yes; then
38984 for ac_func in getpeerucred
38986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38987 echo "$as_me:$LINENO: checking for $ac_func" >&5
38988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38989 if eval "test \"\${$as_ac_var+set}\" = set"; then
38990 echo $ECHO_N "(cached) $ECHO_C" >&6
38992 cat >conftest.$ac_ext <<_ACEOF
38995 cat confdefs.h >>conftest.$ac_ext
38996 cat >>conftest.$ac_ext <<_ACEOF
38997 /* end confdefs.h. */
38998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39000 #define $ac_func innocuous_$ac_func
39002 /* System header to define __stub macros and hopefully few prototypes,
39003 which can conflict with char $ac_func (); below.
39004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39005 <limits.h> exists even on freestanding compilers. */
39008 # include <limits.h>
39010 # include <assert.h>
39015 /* Override any gcc2 internal prototype to avoid an error. */
39020 /* We use char because int might match the return type of a gcc2
39021 builtin and then its argument prototype would still apply. */
39023 /* The GNU C library defines this for functions which it implements
39024 to always fail with ENOSYS. Some functions are actually named
39025 something starting with __ and the normal name is an alias. */
39026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39029 char (*f) () = $ac_func;
39038 return f != $ac_func;
39043 rm -f conftest.$ac_objext conftest$ac_exeext
39044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39045 (eval $ac_link) 2>conftest.er1
39047 grep -v '^ *+' conftest.er1 >conftest.err
39049 cat conftest.err >&5
39050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051 (exit $ac_status); } &&
39052 { ac_try='test -z "$ac_c_werror_flag"
39053 || test ! -s conftest.err'
39054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39055 (eval $ac_try) 2>&5
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); }; } &&
39059 { ac_try='test -s conftest$ac_exeext'
39060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39061 (eval $ac_try) 2>&5
39063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064 (exit $ac_status); }; }; then
39065 eval "$as_ac_var=yes"
39067 echo "$as_me: failed program was:" >&5
39068 sed 's/^/| /' conftest.$ac_ext >&5
39070 eval "$as_ac_var=no"
39072 rm -f conftest.err conftest.$ac_objext \
39073 conftest$ac_exeext conftest.$ac_ext
39075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39077 if test `eval echo '${'$as_ac_var'}'` = yes; then
39078 cat >>confdefs.h <<_ACEOF
39079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39085 if test "$ac_cv_func_getpeerucred" != yes ; then
39086 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39087 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39088 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39089 echo $ECHO_N "(cached) $ECHO_C" >&6
39091 cat >conftest.$ac_ext <<_ACEOF
39094 cat confdefs.h >>conftest.$ac_ext
39095 cat >>conftest.$ac_ext <<_ACEOF
39096 /* end confdefs.h. */
39097 $ac_includes_default
39098 #ifdef HAVE_SYS_SOCKET_H
39099 #include <sys/socket.h>
39105 static struct msghdr ac_aggr;
39106 if (ac_aggr.msg_accrightslen)
39112 rm -f conftest.$ac_objext
39113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39114 (eval $ac_compile) 2>conftest.er1
39116 grep -v '^ *+' conftest.er1 >conftest.err
39118 cat conftest.err >&5
39119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); } &&
39121 { ac_try='test -z "$ac_c_werror_flag"
39122 || test ! -s conftest.err'
39123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124 (eval $ac_try) 2>&5
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); }; } &&
39128 { ac_try='test -s conftest.$ac_objext'
39129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39130 (eval $ac_try) 2>&5
39132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); }; }; then
39134 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39136 echo "$as_me: failed program was:" >&5
39137 sed 's/^/| /' conftest.$ac_ext >&5
39139 cat >conftest.$ac_ext <<_ACEOF
39142 cat confdefs.h >>conftest.$ac_ext
39143 cat >>conftest.$ac_ext <<_ACEOF
39144 /* end confdefs.h. */
39145 $ac_includes_default
39146 #ifdef HAVE_SYS_SOCKET_H
39147 #include <sys/socket.h>
39153 static struct msghdr ac_aggr;
39154 if (sizeof ac_aggr.msg_accrightslen)
39160 rm -f conftest.$ac_objext
39161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39162 (eval $ac_compile) 2>conftest.er1
39164 grep -v '^ *+' conftest.er1 >conftest.err
39166 cat conftest.err >&5
39167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168 (exit $ac_status); } &&
39169 { ac_try='test -z "$ac_c_werror_flag"
39170 || test ! -s conftest.err'
39171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39172 (eval $ac_try) 2>&5
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); }; } &&
39176 { ac_try='test -s conftest.$ac_objext'
39177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39178 (eval $ac_try) 2>&5
39180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181 (exit $ac_status); }; }; then
39182 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39184 echo "$as_me: failed program was:" >&5
39185 sed 's/^/| /' conftest.$ac_ext >&5
39187 ac_cv_member_struct_msghdr_msg_accrightslen=no
39189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39193 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39194 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39195 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39197 cat >>confdefs.h <<_ACEOF
39198 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39204 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39205 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39206 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39207 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39208 echo $ECHO_N "(cached) $ECHO_C" >&6
39210 cat >conftest.$ac_ext <<_ACEOF
39213 cat confdefs.h >>conftest.$ac_ext
39214 cat >>conftest.$ac_ext <<_ACEOF
39215 /* end confdefs.h. */
39216 $ac_includes_default
39217 #ifdef HAVE_SYS_SOCKET_H
39218 #include <sys/socket.h>
39224 static struct msghdr ac_aggr;
39225 if (ac_aggr.msg_control)
39231 rm -f conftest.$ac_objext
39232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39233 (eval $ac_compile) 2>conftest.er1
39235 grep -v '^ *+' conftest.er1 >conftest.err
39237 cat conftest.err >&5
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); } &&
39240 { ac_try='test -z "$ac_c_werror_flag"
39241 || test ! -s conftest.err'
39242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243 (eval $ac_try) 2>&5
39245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246 (exit $ac_status); }; } &&
39247 { ac_try='test -s conftest.$ac_objext'
39248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39249 (eval $ac_try) 2>&5
39251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252 (exit $ac_status); }; }; then
39253 ac_cv_member_struct_msghdr_msg_control=yes
39255 echo "$as_me: failed program was:" >&5
39256 sed 's/^/| /' conftest.$ac_ext >&5
39258 cat >conftest.$ac_ext <<_ACEOF
39261 cat confdefs.h >>conftest.$ac_ext
39262 cat >>conftest.$ac_ext <<_ACEOF
39263 /* end confdefs.h. */
39264 $ac_includes_default
39265 #ifdef HAVE_SYS_SOCKET_H
39266 #include <sys/socket.h>
39272 static struct msghdr ac_aggr;
39273 if (sizeof ac_aggr.msg_control)
39279 rm -f conftest.$ac_objext
39280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39281 (eval $ac_compile) 2>conftest.er1
39283 grep -v '^ *+' conftest.er1 >conftest.err
39285 cat conftest.err >&5
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); } &&
39288 { ac_try='test -z "$ac_c_werror_flag"
39289 || test ! -s conftest.err'
39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291 (eval $ac_try) 2>&5
39293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; } &&
39295 { ac_try='test -s conftest.$ac_objext'
39296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39297 (eval $ac_try) 2>&5
39299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300 (exit $ac_status); }; }; then
39301 ac_cv_member_struct_msghdr_msg_control=yes
39303 echo "$as_me: failed program was:" >&5
39304 sed 's/^/| /' conftest.$ac_ext >&5
39306 ac_cv_member_struct_msghdr_msg_control=no
39308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39313 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39314 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39316 cat >>confdefs.h <<_ACEOF
39317 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39325 LIBSRCS="$LIBSRCS getpeereid.c"
39328 if test "$ac_cv_func_snprintf" != yes ||
39329 test "$ac_cv_func_vsnprintf" != yes; then
39330 if test "$ac_cv_func_snprintf" != yes; then
39332 cat >>confdefs.h <<\_ACEOF
39333 #define snprintf ber_pvt_snprintf
39337 if test "$ac_cv_func_vsnprintf" != yes; then
39339 cat >>confdefs.h <<\_ACEOF
39340 #define vsnprintf ber_pvt_vsnprintf
39347 if test "$ol_enable_slapi" != no ; then
39349 for ac_header in ltdl.h
39351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39353 echo "$as_me:$LINENO: checking for $ac_header" >&5
39354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39356 echo $ECHO_N "(cached) $ECHO_C" >&6
39358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39361 # Is the header compilable?
39362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39364 cat >conftest.$ac_ext <<_ACEOF
39367 cat confdefs.h >>conftest.$ac_ext
39368 cat >>conftest.$ac_ext <<_ACEOF
39369 /* end confdefs.h. */
39370 $ac_includes_default
39371 #include <$ac_header>
39373 rm -f conftest.$ac_objext
39374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39375 (eval $ac_compile) 2>conftest.er1
39377 grep -v '^ *+' conftest.er1 >conftest.err
39379 cat conftest.err >&5
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); } &&
39382 { ac_try='test -z "$ac_c_werror_flag"
39383 || test ! -s conftest.err'
39384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39385 (eval $ac_try) 2>&5
39387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388 (exit $ac_status); }; } &&
39389 { ac_try='test -s conftest.$ac_objext'
39390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39391 (eval $ac_try) 2>&5
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); }; }; then
39395 ac_header_compiler=yes
39397 echo "$as_me: failed program was:" >&5
39398 sed 's/^/| /' conftest.$ac_ext >&5
39400 ac_header_compiler=no
39402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39404 echo "${ECHO_T}$ac_header_compiler" >&6
39406 # Is the header present?
39407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39409 cat >conftest.$ac_ext <<_ACEOF
39412 cat confdefs.h >>conftest.$ac_ext
39413 cat >>conftest.$ac_ext <<_ACEOF
39414 /* end confdefs.h. */
39415 #include <$ac_header>
39417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39420 grep -v '^ *+' conftest.er1 >conftest.err
39422 cat conftest.err >&5
39423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); } >/dev/null; then
39425 if test -s conftest.err; then
39426 ac_cpp_err=$ac_c_preproc_warn_flag
39427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39434 if test -z "$ac_cpp_err"; then
39435 ac_header_preproc=yes
39437 echo "$as_me: failed program was:" >&5
39438 sed 's/^/| /' conftest.$ac_ext >&5
39440 ac_header_preproc=no
39442 rm -f conftest.err conftest.$ac_ext
39443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39444 echo "${ECHO_T}$ac_header_preproc" >&6
39446 # So? What about this header?
39447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39453 ac_header_preproc=yes
39456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39470 ## --------------------------------------------- ##
39471 ## Report this to <http://www.openldap.org/its/> ##
39472 ## --------------------------------------------- ##
39475 sed "s/^/$as_me: WARNING: /" >&2
39478 echo "$as_me:$LINENO: checking for $ac_header" >&5
39479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39481 echo $ECHO_N "(cached) $ECHO_C" >&6
39483 eval "$as_ac_Header=\$ac_header_preproc"
39485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39490 cat >>confdefs.h <<_ACEOF
39491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39499 if test $ac_cv_header_ltdl_h != yes ; then
39500 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39501 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
39502 { (exit 1); exit 1; }; }
39504 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
39505 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
39506 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
39507 echo $ECHO_N "(cached) $ECHO_C" >&6
39509 ac_check_lib_save_LIBS=$LIBS
39510 LIBS="-lltdl $LIBS"
39511 cat >conftest.$ac_ext <<_ACEOF
39514 cat confdefs.h >>conftest.$ac_ext
39515 cat >>conftest.$ac_ext <<_ACEOF
39516 /* end confdefs.h. */
39518 /* Override any gcc2 internal prototype to avoid an error. */
39522 /* We use char because int might match the return type of a gcc2
39523 builtin and then its argument prototype would still apply. */
39533 rm -f conftest.$ac_objext conftest$ac_exeext
39534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39535 (eval $ac_link) 2>conftest.er1
39537 grep -v '^ *+' conftest.er1 >conftest.err
39539 cat conftest.err >&5
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); } &&
39542 { ac_try='test -z "$ac_c_werror_flag"
39543 || test ! -s conftest.err'
39544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39545 (eval $ac_try) 2>&5
39547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548 (exit $ac_status); }; } &&
39549 { ac_try='test -s conftest$ac_exeext'
39550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39551 (eval $ac_try) 2>&5
39553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554 (exit $ac_status); }; }; then
39555 ac_cv_lib_ltdl_lt_dlinit=yes
39557 echo "$as_me: failed program was:" >&5
39558 sed 's/^/| /' conftest.$ac_ext >&5
39560 ac_cv_lib_ltdl_lt_dlinit=no
39562 rm -f conftest.err conftest.$ac_objext \
39563 conftest$ac_exeext conftest.$ac_ext
39564 LIBS=$ac_check_lib_save_LIBS
39566 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
39567 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
39568 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
39571 LIBSLAPI=libslapi.a
39572 LIBSLAPITOOLS=../libslapi.a
39574 cat >>confdefs.h <<\_ACEOF
39575 #define HAVE_LIBLTDL 1
39580 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
39581 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
39582 { (exit 1); exit 1; }; }
39587 cat >>confdefs.h <<\_ACEOF
39588 #define LDAP_SLAPI 1
39593 if test "$ol_enable_debug" != no ; then
39594 if test "$ol_enable_debug" = traditional; then
39596 cat >>confdefs.h <<\_ACEOF
39597 #define OLD_DEBUG 1
39602 cat >>confdefs.h <<\_ACEOF
39603 #define LDAP_DEBUG 1
39607 if test "$ol_enable_syslog" = yes ; then
39609 cat >>confdefs.h <<\_ACEOF
39610 #define LDAP_SYSLOG 1
39614 if test "$ol_enable_proctitle" != no ; then
39616 cat >>confdefs.h <<\_ACEOF
39617 #define LDAP_PROCTITLE 1
39621 if test "$ol_enable_referrals" != no ; then
39623 cat >>confdefs.h <<\_ACEOF
39624 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
39628 if test "$ol_enable_local" != no; then
39630 cat >>confdefs.h <<\_ACEOF
39631 #define LDAP_PF_LOCAL 1
39635 if test "$ol_link_ipv6" != no; then
39637 cat >>confdefs.h <<\_ACEOF
39638 #define LDAP_PF_INET6 1
39642 if test "$ol_enable_cleartext" != no ; then
39644 cat >>confdefs.h <<\_ACEOF
39645 #define SLAPD_CLEARTEXT 1
39649 if test "$ol_enable_crypt" != no ; then
39651 cat >>confdefs.h <<\_ACEOF
39652 #define SLAPD_CRYPT 1
39656 if test "$ol_link_spasswd" != no ; then
39658 cat >>confdefs.h <<\_ACEOF
39659 #define SLAPD_SPASSWD 1
39663 if test "$ol_enable_rlookups" != no ; then
39665 cat >>confdefs.h <<\_ACEOF
39666 #define SLAPD_RLOOKUPS 1
39670 if test "$ol_enable_aci" != no ; then
39671 if test $ol_enable_dynacl = no ; then
39672 ol_enable_dynacl=yes
39673 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
39674 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
39676 if test "$ol_enable_aci" = mod ; then
39677 MFLAG=SLAPD_MOD_DYNAMIC
39678 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
39679 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
39680 { (exit 1); exit 1; }; }
39682 MFLAG=SLAPD_MOD_STATIC
39684 WITH_ACI_ENABLED=$ol_enable_aci
39686 cat >>confdefs.h <<_ACEOF
39687 #define SLAPD_ACI_ENABLED $MFLAG
39691 WITH_ACI_ENABLED=no
39693 if test "$ol_enable_dynacl" != no ; then
39695 cat >>confdefs.h <<\_ACEOF
39696 #define SLAP_DYNACL 1
39701 if test "$ol_link_modules" != no ; then
39703 cat >>confdefs.h <<\_ACEOF
39704 #define SLAPD_MODULES 1
39708 SLAPD_MODULES_LDFLAGS="-dlopen self"
39712 cat >>confdefs.h <<\_ACEOF
39713 #define SLAPD_MOD_STATIC 1
39717 cat >>confdefs.h <<\_ACEOF
39718 #define SLAPD_MOD_DYNAMIC 2
39722 if test "$ol_enable_monitor" != no ; then
39724 BUILD_MONITOR=$ol_enable_monitor
39725 if test "$ol_enable_monitor" = mod ; then
39726 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
39727 MFLAG=SLAPD_MOD_DYNAMIC
39729 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
39730 MFLAG=SLAPD_MOD_STATIC
39733 cat >>confdefs.h <<_ACEOF
39734 #define SLAPD_MONITOR $MFLAG
39739 if test "$ol_enable_bdb" != no ; then
39741 BUILD_BDB=$ol_enable_bdb
39742 if test "$ol_enable_bdb" = mod ; then
39743 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
39744 MFLAG=SLAPD_MOD_DYNAMIC
39746 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
39747 MFLAG=SLAPD_MOD_STATIC
39750 cat >>confdefs.h <<_ACEOF
39751 #define SLAPD_BDB $MFLAG
39756 if test "$ol_enable_dnssrv" != no ; then
39758 BUILD_DNSSRV=$ol_enable_dnssrv
39759 if test "$ol_enable_dnssrv" = mod ; then
39760 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
39761 MFLAG=SLAPD_MOD_DYNAMIC
39763 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
39764 MFLAG=SLAPD_MOD_STATIC
39767 cat >>confdefs.h <<_ACEOF
39768 #define SLAPD_DNSSRV $MFLAG
39773 if test "$ol_enable_hdb" != no ; then
39775 BUILD_HDB=$ol_enable_hdb
39776 if test "$ol_enable_hdb" = mod ; then
39777 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
39778 MFLAG=SLAPD_MOD_DYNAMIC
39780 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
39781 MFLAG=SLAPD_MOD_STATIC
39784 cat >>confdefs.h <<_ACEOF
39785 #define SLAPD_HDB $MFLAG
39790 if test "$ol_enable_ldap" != no ; then
39792 BUILD_LDAP=$ol_enable_ldap
39793 if test "$ol_enable_ldap" = mod ; then
39794 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
39795 MFLAG=SLAPD_MOD_DYNAMIC
39797 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
39798 MFLAG=SLAPD_MOD_STATIC
39801 cat >>confdefs.h <<_ACEOF
39802 #define SLAPD_LDAP $MFLAG
39807 if test "$ol_enable_meta" != no ; then
39809 BUILD_META=$ol_enable_meta
39811 if test "$ol_enable_meta" = mod ; then
39812 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
39813 MFLAG=SLAPD_MOD_DYNAMIC
39815 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
39816 MFLAG=SLAPD_MOD_STATIC
39819 cat >>confdefs.h <<_ACEOF
39820 #define SLAPD_META $MFLAG
39825 if test "$ol_enable_null" != no ; then
39827 BUILD_NULL=$ol_enable_null
39828 if test "$ol_enable_null" = mod ; then
39829 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
39830 MFLAG=SLAPD_MOD_DYNAMIC
39832 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
39833 MFLAG=SLAPD_MOD_STATIC
39836 cat >>confdefs.h <<_ACEOF
39837 #define SLAPD_NULL $MFLAG
39842 if test "$ol_enable_passwd" != no ; then
39844 BUILD_PASSWD=$ol_enable_passwd
39845 if test "$ol_enable_passwd" = mod ; then
39846 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
39847 MFLAG=SLAPD_MOD_DYNAMIC
39849 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
39850 MFLAG=SLAPD_MOD_STATIC
39853 cat >>confdefs.h <<_ACEOF
39854 #define SLAPD_PASSWD $MFLAG
39859 if test "$ol_link_perl" != no ; then
39861 BUILD_PERL=$ol_enable_perl
39862 if test "$ol_enable_perl" = mod ; then
39863 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
39864 MFLAG=SLAPD_MOD_DYNAMIC
39866 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
39867 MFLAG=SLAPD_MOD_STATIC
39870 cat >>confdefs.h <<_ACEOF
39871 #define SLAPD_PERL $MFLAG
39876 if test "$ol_enable_relay" != no ; then
39878 BUILD_RELAY=$ol_enable_relay
39879 if test "$ol_enable_relay" = mod ; then
39880 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
39881 MFLAG=SLAPD_MOD_DYNAMIC
39883 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
39884 MFLAG=SLAPD_MOD_STATIC
39887 cat >>confdefs.h <<_ACEOF
39888 #define SLAPD_RELAY $MFLAG
39893 if test "$ol_enable_shell" != no ; then
39894 if test "$ol_link_threads" != no ; then
39895 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
39896 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
39899 BUILD_SHELL=$ol_enable_shell
39900 if test "$ol_enable_shell" = mod ; then
39901 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
39902 MFLAG=SLAPD_MOD_DYNAMIC
39904 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
39905 MFLAG=SLAPD_MOD_STATIC
39908 cat >>confdefs.h <<_ACEOF
39909 #define SLAPD_SHELL $MFLAG
39914 if test "$ol_link_sql" != no ; then
39916 BUILD_SQL=$ol_enable_sql
39917 if test "$ol_enable_sql" = mod; then
39918 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
39919 MFLAG=SLAPD_MOD_DYNAMIC
39921 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
39922 MFLAG=SLAPD_MOD_STATIC
39925 cat >>confdefs.h <<_ACEOF
39926 #define SLAPD_SQL $MFLAG
39931 if test "$ol_enable_accesslog" != no ; then
39932 BUILD_ACCESSLOG=$ol_enable_accesslog
39933 if test "$ol_enable_accesslog" = mod ; then
39934 MFLAG=SLAPD_MOD_DYNAMIC
39935 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
39937 MFLAG=SLAPD_MOD_STATIC
39938 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
39941 cat >>confdefs.h <<_ACEOF
39942 #define SLAPD_OVER_ACCESSLOG $MFLAG
39947 if test "$ol_enable_auditlog" != no ; then
39948 BUILD_AUDITLOG=$ol_enable_auditlog
39949 if test "$ol_enable_auditlog" = mod ; then
39950 MFLAG=SLAPD_MOD_DYNAMIC
39951 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
39953 MFLAG=SLAPD_MOD_STATIC
39954 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
39957 cat >>confdefs.h <<_ACEOF
39958 #define SLAPD_OVER_AUDITLOG $MFLAG
39963 if test "$ol_enable_constraint" != no ; then
39964 BUILD_CONSTRAINT=$ol_enable_constraint
39965 if test "$ol_enable_constraint" = mod ; then
39966 MFLAG=SLAPD_MOD_DYNAMIC
39967 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
39969 MFLAG=SLAPD_MOD_STATIC
39970 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
39973 cat >>confdefs.h <<_ACEOF
39974 #define SLAPD_OVER_CONSTRAINT $MFLAG
39979 if test "$ol_enable_dds" != no ; then
39980 BUILD_DDS=$ol_enable_dds
39981 if test "$ol_enable_dds" = mod ; then
39982 MFLAG=SLAPD_MOD_DYNAMIC
39983 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
39985 MFLAG=SLAPD_MOD_STATIC
39986 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
39989 cat >>confdefs.h <<_ACEOF
39990 #define SLAPD_OVER_DDS $MFLAG
39995 if test "$ol_enable_dyngroup" != no ; then
39996 BUILD_DYNGROUP=$ol_enable_dyngroup
39997 if test "$ol_enable_dyngroup" = mod ; then
39998 MFLAG=SLAPD_MOD_DYNAMIC
39999 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40001 MFLAG=SLAPD_MOD_STATIC
40002 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40005 cat >>confdefs.h <<_ACEOF
40006 #define SLAPD_OVER_DYNGROUP $MFLAG
40011 if test "$ol_enable_dynlist" != no ; then
40012 BUILD_DYNLIST=$ol_enable_dynlist
40013 if test "$ol_enable_dynlist" = mod ; then
40014 MFLAG=SLAPD_MOD_DYNAMIC
40015 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40017 MFLAG=SLAPD_MOD_STATIC
40018 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40021 cat >>confdefs.h <<_ACEOF
40022 #define SLAPD_OVER_DYNLIST $MFLAG
40027 if test "$ol_enable_ppolicy" != no ; then
40028 BUILD_PPOLICY=$ol_enable_ppolicy
40029 if test "$ol_enable_ppolicy" = mod ; then
40030 MFLAG=SLAPD_MOD_DYNAMIC
40031 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40033 MFLAG=SLAPD_MOD_STATIC
40034 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40037 cat >>confdefs.h <<_ACEOF
40038 #define SLAPD_OVER_PPOLICY $MFLAG
40043 if test "$ol_enable_proxycache" != no ; then
40044 BUILD_PROXYCACHE=$ol_enable_proxycache
40045 if test "$ol_enable_proxycache" = mod ; then
40046 MFLAG=SLAPD_MOD_DYNAMIC
40047 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40049 MFLAG=SLAPD_MOD_STATIC
40050 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40053 cat >>confdefs.h <<_ACEOF
40054 #define SLAPD_OVER_PROXYCACHE $MFLAG
40059 if test "$ol_enable_refint" != no ; then
40060 BUILD_REFINT=$ol_enable_refint
40061 if test "$ol_enable_refint" = mod ; then
40062 MFLAG=SLAPD_MOD_DYNAMIC
40063 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40065 MFLAG=SLAPD_MOD_STATIC
40066 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40069 cat >>confdefs.h <<_ACEOF
40070 #define SLAPD_OVER_REFINT $MFLAG
40075 if test "$ol_enable_retcode" != no ; then
40076 BUILD_RETCODE=$ol_enable_retcode
40077 if test "$ol_enable_retcode" = mod ; then
40078 MFLAG=SLAPD_MOD_DYNAMIC
40079 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40081 MFLAG=SLAPD_MOD_STATIC
40082 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40085 cat >>confdefs.h <<_ACEOF
40086 #define SLAPD_OVER_RETCODE $MFLAG
40091 if test "$ol_enable_rwm" != no ; then
40093 BUILD_RWM=$ol_enable_rwm
40094 if test "$ol_enable_rwm" = mod ; then
40095 MFLAG=SLAPD_MOD_DYNAMIC
40096 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40098 MFLAG=SLAPD_MOD_STATIC
40099 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40102 cat >>confdefs.h <<_ACEOF
40103 #define SLAPD_OVER_RWM $MFLAG
40108 if test "$ol_enable_seqmod" != no ; then
40109 BUILD_SEQMOD=$ol_enable_seqmod
40110 if test "$ol_enable_seqmod" = mod ; then
40111 MFLAG=SLAPD_MOD_DYNAMIC
40112 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40114 MFLAG=SLAPD_MOD_STATIC
40115 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40118 cat >>confdefs.h <<_ACEOF
40119 #define SLAPD_OVER_SEQMOD $MFLAG
40124 if test "$ol_enable_syncprov" != no ; then
40125 BUILD_SYNCPROV=$ol_enable_syncprov
40126 if test "$ol_enable_syncprov" = mod ; then
40127 MFLAG=SLAPD_MOD_DYNAMIC
40128 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40130 MFLAG=SLAPD_MOD_STATIC
40131 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40134 cat >>confdefs.h <<_ACEOF
40135 #define SLAPD_OVER_SYNCPROV $MFLAG
40140 if test "$ol_enable_translucent" != no ; then
40141 BUILD_TRANSLUCENT=$ol_enable_translucent
40142 if test "$ol_enable_translucent" = mod ; then
40143 MFLAG=SLAPD_MOD_DYNAMIC
40144 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40146 MFLAG=SLAPD_MOD_STATIC
40147 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40150 cat >>confdefs.h <<_ACEOF
40151 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40156 if test "$ol_enable_unique" != no ; then
40157 BUILD_UNIQUE=$ol_enable_unique
40158 if test "$ol_enable_unique" = mod ; then
40159 MFLAG=SLAPD_MOD_DYNAMIC
40160 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40162 MFLAG=SLAPD_MOD_STATIC
40163 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40166 cat >>confdefs.h <<_ACEOF
40167 #define SLAPD_OVER_UNIQUE $MFLAG
40172 if test "$ol_enable_valsort" != no ; then
40173 BUILD_VALSORT=$ol_enable_valsort
40174 if test "$ol_enable_valsort" = mod ; then
40175 MFLAG=SLAPD_MOD_DYNAMIC
40176 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40178 MFLAG=SLAPD_MOD_STATIC
40179 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40182 cat >>confdefs.h <<_ACEOF
40183 #define SLAPD_OVER_VALSORT $MFLAG
40188 if test "$ol_enable_slurpd" != no &&
40189 test "$ol_link_threads" != no &&
40190 test $BUILD_SLAPD = yes ; then
40194 if test "$ol_enable_rewrite" != no ; then
40196 cat >>confdefs.h <<\_ACEOF
40197 #define ENABLE_REWRITE 1
40203 if test "$ol_enable_slapi" != no ; then
40205 cat >>confdefs.h <<\_ACEOF
40206 #define ENABLE_SLAPI 1
40210 SLAPD_SLAPI_DEPEND=libslapi.a
40215 if test "$ac_cv_mingw32" = yes ; then
40217 SLAPD_MODULES_LDFLAGS=
40306 # Check whether --with-xxinstall or --without-xxinstall was given.
40307 if test "${with_xxinstall+set}" = set; then
40308 withval="$with_xxinstall"
40313 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
40316 ac_config_commands="$ac_config_commands default"
40320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40321 # Let make expand exec_prefix.
40322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40324 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40325 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40326 # trailing colons and then remove the whole line if VPATH becomes empty
40327 # (actually we leave an empty line to preserve line numbers).
40328 if test "x$srcdir" = x.; then
40329 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40330 s/:*\$(srcdir):*/:/;
40331 s/:*\${srcdir}:*/:/;
40333 s/^\([^=]*=[ ]*\):*/\1/;
40339 DEFS=-DHAVE_CONFIG_H
40343 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40344 # 1. Remove the extension, and $U if already installed.
40345 ac_i=`echo "$ac_i" |
40346 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40348 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40349 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40351 LIBOBJS=$ac_libobjs
40353 LTLIBOBJS=$ac_ltlibobjs
40356 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40357 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40358 Usually this means the macro was only invoked conditionally." >&5
40359 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40360 Usually this means the macro was only invoked conditionally." >&2;}
40361 { (exit 1); exit 1; }; }
40363 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40364 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40365 Usually this means the macro was only invoked conditionally." >&5
40366 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40367 Usually this means the macro was only invoked conditionally." >&2;}
40368 { (exit 1); exit 1; }; }
40370 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40371 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40372 Usually this means the macro was only invoked conditionally." >&5
40373 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40374 Usually this means the macro was only invoked conditionally." >&2;}
40375 { (exit 1); exit 1; }; }
40378 : ${CONFIG_STATUS=./config.status}
40379 ac_clean_files_save=$ac_clean_files
40380 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40381 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40382 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40383 cat >$CONFIG_STATUS <<_ACEOF
40385 # Generated by $as_me.
40386 # Run this file to recreate the current configuration.
40387 # Compiler output produced by configure, useful for debugging
40388 # configure, is in config.log if it exists.
40391 ac_cs_recheck=false
40393 SHELL=\${CONFIG_SHELL-$SHELL}
40396 cat >>$CONFIG_STATUS <<\_ACEOF
40397 ## --------------------- ##
40398 ## M4sh Initialization. ##
40399 ## --------------------- ##
40401 # Be Bourne compatible
40402 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40405 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40406 # is contrary to our usage. Disable this feature.
40407 alias -g '${1+"$@"}'='"$@"'
40408 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40411 DUALCASE=1; export DUALCASE # for MKS sh
40413 # Support unset when possible.
40414 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40421 # Work around bugs in pre-3.0 UWIN ksh.
40422 $as_unset ENV MAIL MAILPATH
40429 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40430 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40431 LC_TELEPHONE LC_TIME
40433 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40434 eval $as_var=C; export $as_var
40440 # Required to use basename.
40441 if expr a : '\(a\)' >/dev/null 2>&1; then
40447 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40448 as_basename=basename
40454 # Name of the executable.
40455 as_me=`$as_basename "$0" ||
40456 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40457 X"$0" : 'X\(//\)$' \| \
40458 X"$0" : 'X\(/\)$' \| \
40459 . : '\(.\)' 2>/dev/null ||
40461 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40462 /^X\/\(\/\/\)$/{ s//\1/; q; }
40463 /^X\/\(\/\).*/{ s//\1/; q; }
40467 # PATH needs CR, and LINENO needs CR and PATH.
40468 # Avoid depending upon Character Ranges.
40469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40472 as_cr_digits='0123456789'
40473 as_cr_alnum=$as_cr_Letters$as_cr_digits
40475 # The user is always right.
40476 if test "${PATH_SEPARATOR+set}" != set; then
40477 echo "#! /bin/sh" >conf$$.sh
40478 echo "exit 0" >>conf$$.sh
40480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40489 as_lineno_1=$LINENO
40490 as_lineno_2=$LINENO
40491 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40492 test "x$as_lineno_1" != "x$as_lineno_2" &&
40493 test "x$as_lineno_3" = "x$as_lineno_2" || {
40494 # Find who we are. Look in the path if we contain no path at all
40497 *[\\/]* ) as_myself=$0 ;;
40498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40499 for as_dir in $PATH
40502 test -z "$as_dir" && as_dir=.
40503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40508 # We did not find ourselves, most probably we were run as `sh COMMAND'
40509 # in which case we are not to be found in the path.
40510 if test "x$as_myself" = x; then
40513 if test ! -f "$as_myself"; then
40514 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40515 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40516 { (exit 1); exit 1; }; }
40518 case $CONFIG_SHELL in
40520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40521 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40524 test -z "$as_dir" && as_dir=.
40525 for as_base in sh bash ksh sh5; do
40528 if ("$as_dir/$as_base" -c '
40529 as_lineno_1=$LINENO
40530 as_lineno_2=$LINENO
40531 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40532 test "x$as_lineno_1" != "x$as_lineno_2" &&
40533 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40534 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40535 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40536 CONFIG_SHELL=$as_dir/$as_base
40537 export CONFIG_SHELL
40538 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40546 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40547 # uniformly replaced by the line number. The first 'sed' inserts a
40548 # line-number line before each line; the second 'sed' does the real
40549 # work. The second script uses 'N' to pair each line-number line
40550 # with the numbered line, and appends trailing '-' during
40551 # substitution so that $LINENO is not a special case at line end.
40552 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40553 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40554 sed '=' <$as_myself |
40559 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40562 s,^['$as_cr_digits']*\n,,
40563 ' >$as_me.lineno &&
40564 chmod +x $as_me.lineno ||
40565 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40566 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40567 { (exit 1); exit 1; }; }
40569 # Don't try to exec as it changes $[0], causing all sort of problems
40570 # (the dirname of $[0] is not the place where we might find the
40571 # original and so on. Autoconf is especially sensible to this).
40573 # Exit status is that of the last command.
40578 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40579 *c*,-n*) ECHO_N= ECHO_C='
40581 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40582 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40585 if expr a : '\(a\)' >/dev/null 2>&1; then
40591 rm -f conf$$ conf$$.exe conf$$.file
40593 if ln -s conf$$.file conf$$ 2>/dev/null; then
40594 # We could just check for DJGPP; but this test a) works b) is more generic
40595 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40596 if test -f conf$$.exe; then
40597 # Don't use ln at all; we don't have any links
40602 elif ln conf$$.file conf$$ 2>/dev/null; then
40607 rm -f conf$$ conf$$.exe conf$$.file
40609 if mkdir -p . 2>/dev/null; then
40612 test -d ./-p && rmdir ./-p
40616 as_executable_p="test -f"
40618 # Sed expression to map a string onto a valid CPP name.
40619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40621 # Sed expression to map a string onto a valid variable name.
40622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40626 # We need space, tab and new line, in precisely that order.
40636 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40637 # report actual input values of CONFIG_FILES etc. instead of their
40638 # values after options handling. Logging --version etc. is OK.
40642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40643 ## Running $as_me. ##
40648 This file was extended by $as_me, which was
40649 generated by GNU Autoconf 2.59. Invocation command line was
40651 CONFIG_FILES = $CONFIG_FILES
40652 CONFIG_HEADERS = $CONFIG_HEADERS
40653 CONFIG_LINKS = $CONFIG_LINKS
40654 CONFIG_COMMANDS = $CONFIG_COMMANDS
40658 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40662 # Files that config.status was made for.
40663 if test -n "$ac_config_files"; then
40664 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40667 if test -n "$ac_config_headers"; then
40668 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40671 if test -n "$ac_config_links"; then
40672 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40675 if test -n "$ac_config_commands"; then
40676 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40679 cat >>$CONFIG_STATUS <<\_ACEOF
40682 \`$as_me' instantiates files from templates according to the
40683 current configuration.
40685 Usage: $0 [OPTIONS] [FILE]...
40687 -h, --help print this help, then exit
40688 -V, --version print version number, then exit
40689 -q, --quiet do not print progress messages
40690 -d, --debug don't remove temporary files
40691 --recheck update $as_me by reconfiguring in the same conditions
40692 --file=FILE[:TEMPLATE]
40693 instantiate the configuration file FILE
40694 --header=FILE[:TEMPLATE]
40695 instantiate the configuration header FILE
40697 Configuration files:
40700 Configuration headers:
40703 Configuration commands:
40706 Report bugs to <bug-autoconf@gnu.org>."
40709 cat >>$CONFIG_STATUS <<_ACEOF
40712 configured by $0, generated by GNU Autoconf 2.59,
40713 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40715 Copyright (C) 2003 Free Software Foundation, Inc.
40716 This config.status script is free software; the Free Software Foundation
40717 gives unlimited permission to copy, distribute and modify it."
40722 cat >>$CONFIG_STATUS <<\_ACEOF
40723 # If no file are specified by the user, then we need to provide default
40724 # value. By we need to know if files were specified by the user.
40730 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40731 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40739 *) # This is not an option, so the user has probably given explicit
40742 ac_need_defaults=false;;
40746 # Handling of the options.
40748 cat >>$CONFIG_STATUS <<\_ACEOF
40749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40751 --version | --vers* | -V )
40752 echo "$ac_cs_version"; exit 0 ;;
40754 # Conflict between --help and --header
40755 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40756 Try \`$0 --help' for more information." >&5
40757 echo "$as_me: error: ambiguous option: $1
40758 Try \`$0 --help' for more information." >&2;}
40759 { (exit 1); exit 1; }; };;
40760 --help | --hel | -h )
40761 echo "$ac_cs_usage"; exit 0 ;;
40762 --debug | --d* | -d )
40764 --file | --fil | --fi | --f )
40766 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40767 ac_need_defaults=false;;
40768 --header | --heade | --head | --hea )
40770 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40771 ac_need_defaults=false;;
40772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40776 # This is an error.
40777 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40778 Try \`$0 --help' for more information." >&5
40779 echo "$as_me: error: unrecognized option: $1
40780 Try \`$0 --help' for more information." >&2;}
40781 { (exit 1); exit 1; }; } ;;
40783 *) ac_config_targets="$ac_config_targets $1" ;;
40789 ac_configure_extra_args=
40791 if $ac_cs_silent; then
40793 ac_configure_extra_args="$ac_configure_extra_args --silent"
40797 cat >>$CONFIG_STATUS <<_ACEOF
40798 if \$ac_cs_recheck; then
40799 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40800 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40805 cat >>$CONFIG_STATUS <<_ACEOF
40807 # INIT-COMMANDS section.
40810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40812 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
40813 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
40820 cat >>$CONFIG_STATUS <<\_ACEOF
40821 for ac_config_target in $ac_config_targets
40823 case "$ac_config_target" in
40824 # Handling of arguments.
40825 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
40826 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
40827 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
40828 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
40829 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
40830 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
40831 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
40832 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
40833 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
40834 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
40835 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
40836 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40837 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40838 "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" ;;
40839 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40840 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40841 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40842 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
40843 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
40844 "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" ;;
40845 "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" ;;
40846 "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" ;;
40847 "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" ;;
40848 "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" ;;
40849 "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" ;;
40850 "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" ;;
40851 "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" ;;
40852 "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" ;;
40853 "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" ;;
40854 "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" ;;
40855 "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" ;;
40856 "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" ;;
40857 "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" ;;
40858 "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" ;;
40859 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
40860 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
40861 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
40862 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
40863 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
40864 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40865 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40866 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
40867 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
40868 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
40869 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40870 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40871 { (exit 1); exit 1; }; };;
40875 # If the user did not use the arguments to specify the items to instantiate,
40876 # then the envvar interface is used. Set only those that are not.
40877 # We use the long form for the default assignment because of an extremely
40878 # bizarre bug on SunOS 4.1.3.
40879 if $ac_need_defaults; then
40880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40885 # Have a temporary directory for convenience. Make it in the build tree
40886 # simply because there is no reason to put it here, and in addition,
40887 # creating and moving files from /tmp can sometimes cause problems.
40888 # Create a temporary directory, and hook for its removal unless debugging.
40891 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40892 trap '{ (exit 1); exit 1; }' 1 2 13 15
40895 # Create a (secure) tmp directory for tmp files.
40898 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40899 test -n "$tmp" && test -d "$tmp"
40902 tmp=./confstat$$-$RANDOM
40903 (umask 077 && mkdir $tmp)
40906 echo "$me: cannot create a temporary directory in ." >&2
40907 { (exit 1); exit 1; }
40912 cat >>$CONFIG_STATUS <<_ACEOF
40915 # CONFIG_FILES section.
40918 # No need to generate the scripts if there are no CONFIG_FILES.
40919 # This happens for instance when ./config.status config.h
40920 if test -n "\$CONFIG_FILES"; then
40921 # Protect against being on the right side of a sed subst in config.status.
40922 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40923 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40924 s,@SHELL@,$SHELL,;t t
40925 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40926 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40927 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40928 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40929 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40930 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40931 s,@exec_prefix@,$exec_prefix,;t t
40932 s,@prefix@,$prefix,;t t
40933 s,@program_transform_name@,$program_transform_name,;t t
40934 s,@bindir@,$bindir,;t t
40935 s,@sbindir@,$sbindir,;t t
40936 s,@libexecdir@,$libexecdir,;t t
40937 s,@datadir@,$datadir,;t t
40938 s,@sysconfdir@,$sysconfdir,;t t
40939 s,@sharedstatedir@,$sharedstatedir,;t t
40940 s,@localstatedir@,$localstatedir,;t t
40941 s,@libdir@,$libdir,;t t
40942 s,@includedir@,$includedir,;t t
40943 s,@oldincludedir@,$oldincludedir,;t t
40944 s,@infodir@,$infodir,;t t
40945 s,@mandir@,$mandir,;t t
40946 s,@build_alias@,$build_alias,;t t
40947 s,@host_alias@,$host_alias,;t t
40948 s,@target_alias@,$target_alias,;t t
40949 s,@DEFS@,$DEFS,;t t
40950 s,@ECHO_C@,$ECHO_C,;t t
40951 s,@ECHO_N@,$ECHO_N,;t t
40952 s,@ECHO_T@,$ECHO_T,;t t
40953 s,@LIBS@,$LIBS,;t t
40954 s,@build@,$build,;t t
40955 s,@build_cpu@,$build_cpu,;t t
40956 s,@build_vendor@,$build_vendor,;t t
40957 s,@build_os@,$build_os,;t t
40958 s,@host@,$host,;t t
40959 s,@host_cpu@,$host_cpu,;t t
40960 s,@host_vendor@,$host_vendor,;t t
40961 s,@host_os@,$host_os,;t t
40962 s,@target@,$target,;t t
40963 s,@target_cpu@,$target_cpu,;t t
40964 s,@target_vendor@,$target_vendor,;t t
40965 s,@target_os@,$target_os,;t t
40966 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40967 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40968 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40969 s,@CYGPATH_W@,$CYGPATH_W,;t t
40970 s,@PACKAGE@,$PACKAGE,;t t
40971 s,@VERSION@,$VERSION,;t t
40972 s,@ACLOCAL@,$ACLOCAL,;t t
40973 s,@AUTOCONF@,$AUTOCONF,;t t
40974 s,@AUTOMAKE@,$AUTOMAKE,;t t
40975 s,@AUTOHEADER@,$AUTOHEADER,;t t
40976 s,@MAKEINFO@,$MAKEINFO,;t t
40977 s,@install_sh@,$install_sh,;t t
40978 s,@STRIP@,$STRIP,;t t
40979 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40980 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40981 s,@mkdir_p@,$mkdir_p,;t t
40983 s,@SET_MAKE@,$SET_MAKE,;t t
40984 s,@am__leading_dot@,$am__leading_dot,;t t
40985 s,@AMTAR@,$AMTAR,;t t
40986 s,@am__tar@,$am__tar,;t t
40987 s,@am__untar@,$am__untar,;t t
40988 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
40989 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
40990 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
40991 s,@top_builddir@,$top_builddir,;t t
40992 s,@ldap_subdir@,$ldap_subdir,;t t
40995 s,@CFLAGS@,$CFLAGS,;t t
40996 s,@LDFLAGS@,$LDFLAGS,;t t
40997 s,@CPPFLAGS@,$CPPFLAGS,;t t
40998 s,@ac_ct_CC@,$ac_ct_CC,;t t
40999 s,@EXEEXT@,$EXEEXT,;t t
41000 s,@OBJEXT@,$OBJEXT,;t t
41001 s,@DEPDIR@,$DEPDIR,;t t
41002 s,@am__include@,$am__include,;t t
41003 s,@am__quote@,$am__quote,;t t
41004 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41005 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41006 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41007 s,@CCDEPMODE@,$CCDEPMODE,;t t
41008 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41009 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41010 s,@EGREP@,$EGREP,;t t
41011 s,@LN_S@,$LN_S,;t t
41012 s,@ECHO@,$ECHO,;t t
41013 s,@ac_ct_AR@,$ac_ct_AR,;t t
41014 s,@RANLIB@,$RANLIB,;t t
41015 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41016 s,@DLLTOOL@,$DLLTOOL,;t t
41017 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41019 s,@ac_ct_AS@,$ac_ct_AS,;t t
41020 s,@OBJDUMP@,$OBJDUMP,;t t
41021 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41023 s,@LIBTOOL@,$LIBTOOL,;t t
41024 s,@PERLBIN@,$PERLBIN,;t t
41025 s,@OL_MKDEP@,$OL_MKDEP,;t t
41026 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41027 s,@LTSTATIC@,$LTSTATIC,;t t
41028 s,@LIBOBJS@,$LIBOBJS,;t t
41029 s,@LIBSRCS@,$LIBSRCS,;t t
41030 s,@PLAT@,$PLAT,;t t
41031 s,@WITH_SASL@,$WITH_SASL,;t t
41032 s,@WITH_TLS@,$WITH_TLS,;t t
41033 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41034 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41035 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41036 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41037 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41038 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41039 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41040 s,@BUILD_BDB@,$BUILD_BDB,;t t
41041 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41042 s,@BUILD_HDB@,$BUILD_HDB,;t t
41043 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41044 s,@BUILD_META@,$BUILD_META,;t t
41045 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41046 s,@BUILD_NULL@,$BUILD_NULL,;t t
41047 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41048 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41049 s,@BUILD_PERL@,$BUILD_PERL,;t t
41050 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41051 s,@BUILD_SQL@,$BUILD_SQL,;t t
41052 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41053 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41054 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41055 s,@BUILD_DDS@,$BUILD_DDS,;t t
41056 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41057 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41058 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41059 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41060 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41061 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41062 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41063 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41064 s,@BUILD_RWM@,$BUILD_RWM,;t t
41065 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41066 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41067 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41068 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41069 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41070 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41071 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41072 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41073 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41074 s,@BDB_LIBS@,$BDB_LIBS,;t t
41075 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41076 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41077 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41078 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41079 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41080 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41081 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41082 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41083 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41084 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41085 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41086 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41087 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41088 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41089 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41090 s,@SASL_LIBS@,$SASL_LIBS,;t t
41091 s,@TLS_LIBS@,$TLS_LIBS,;t t
41092 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41093 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41094 s,@LIBSLAPI@,$LIBSLAPI,;t t
41095 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41096 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41097 s,@ICU_LIBS@,$ICU_LIBS,;t t
41098 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41099 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41100 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41101 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41102 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41103 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41108 cat >>$CONFIG_STATUS <<\_ACEOF
41109 # Split the substitutions into bite-sized pieces for seds with
41110 # small command number limits, like on Digital OSF/1 and HP-UX.
41111 ac_max_sed_lines=48
41112 ac_sed_frag=1 # Number of current file.
41113 ac_beg=1 # First line for current file.
41114 ac_end=$ac_max_sed_lines # Line after last line for current file.
41117 while $ac_more_lines; do
41118 if test $ac_beg -gt 1; then
41119 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41121 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41123 if test ! -s $tmp/subs.frag; then
41124 ac_more_lines=false
41126 # The purpose of the label and of the branching condition is to
41127 # speed up the sed processing (if there are no `@' at all, there
41128 # is no need to browse any of the substitutions).
41129 # These are the two extra sed commands mentioned above.
41131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41132 if test -z "$ac_sed_cmds"; then
41133 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41135 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41137 ac_sed_frag=`expr $ac_sed_frag + 1`
41139 ac_end=`expr $ac_end + $ac_max_sed_lines`
41142 if test -z "$ac_sed_cmds"; then
41145 fi # test -n "$CONFIG_FILES"
41148 cat >>$CONFIG_STATUS <<\_ACEOF
41149 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41150 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41152 - | *:- | *:-:* ) # input from stdin
41154 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41156 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41158 * ) ac_file_in=$ac_file.in ;;
41161 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41162 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41163 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41164 X"$ac_file" : 'X\(//\)[^/]' \| \
41165 X"$ac_file" : 'X\(//\)$' \| \
41166 X"$ac_file" : 'X\(/\)' \| \
41167 . : '\(.\)' 2>/dev/null ||
41169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41171 /^X\(\/\/\)$/{ s//\1/; q; }
41172 /^X\(\/\).*/{ s//\1/; q; }
41174 { if $as_mkdir_p; then
41179 while test ! -d "$as_dir"; do
41180 as_dirs="$as_dir $as_dirs"
41181 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41183 X"$as_dir" : 'X\(//\)[^/]' \| \
41184 X"$as_dir" : 'X\(//\)$' \| \
41185 X"$as_dir" : 'X\(/\)' \| \
41186 . : '\(.\)' 2>/dev/null ||
41188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41190 /^X\(\/\/\)$/{ s//\1/; q; }
41191 /^X\(\/\).*/{ s//\1/; q; }
41194 test ! -n "$as_dirs" || mkdir $as_dirs
41195 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41196 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41197 { (exit 1); exit 1; }; }; }
41201 if test "$ac_dir" != .; then
41202 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41203 # A "../" for each directory in $ac_dir_suffix.
41204 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41206 ac_dir_suffix= ac_top_builddir=
41210 .) # No --srcdir option. We are building in place.
41212 if test -z "$ac_top_builddir"; then
41215 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41217 [\\/]* | ?:[\\/]* ) # Absolute path.
41218 ac_srcdir=$srcdir$ac_dir_suffix;
41219 ac_top_srcdir=$srcdir ;;
41220 *) # Relative path.
41221 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41222 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41225 # Do not use `cd foo && pwd` to compute absolute paths, because
41226 # the directories may not exist.
41228 .) ac_abs_builddir="$ac_dir";;
41231 .) ac_abs_builddir=`pwd`;;
41232 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41233 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41236 case $ac_abs_builddir in
41237 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41239 case ${ac_top_builddir}. in
41240 .) ac_abs_top_builddir=$ac_abs_builddir;;
41241 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41242 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41245 case $ac_abs_builddir in
41246 .) ac_abs_srcdir=$ac_srcdir;;
41249 .) ac_abs_srcdir=$ac_abs_builddir;;
41250 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41251 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41254 case $ac_abs_builddir in
41255 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41257 case $ac_top_srcdir in
41258 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41259 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41260 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41267 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41270 if test x"$ac_file" != x-; then
41271 { echo "$as_me:$LINENO: creating $ac_file" >&5
41272 echo "$as_me: creating $ac_file" >&6;}
41275 # Let's still pretend it is `configure' which instantiates (i.e., don't
41276 # use $as_me), people would be surprised to read:
41277 # /* config.h. Generated by config.status. */
41278 if test x"$ac_file" = x-; then
41281 configure_input="$ac_file. "
41283 configure_input=$configure_input"Generated from `echo $ac_file_in |
41284 sed 's,.*/,,'` by configure."
41286 # First look for the input files in the build tree, otherwise in the
41288 ac_file_inputs=`IFS=:
41289 for f in $ac_file_in; do
41291 -) echo $tmp/stdin ;;
41293 # Absolute (can't be DOS-style, as IFS=:)
41294 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41295 echo "$as_me: error: cannot find input file: $f" >&2;}
41296 { (exit 1); exit 1; }; }
41299 if test -f "$f"; then
41302 elif test -f "$srcdir/$f"; then
41307 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41308 echo "$as_me: error: cannot find input file: $f" >&2;}
41309 { (exit 1); exit 1; }; }
41312 done` || { (exit 1); exit 1; }
41314 cat >>$CONFIG_STATUS <<_ACEOF
41318 cat >>$CONFIG_STATUS <<\_ACEOF
41320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41321 s,@configure_input@,$configure_input,;t t
41322 s,@srcdir@,$ac_srcdir,;t t
41323 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41324 s,@top_srcdir@,$ac_top_srcdir,;t t
41325 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41326 s,@builddir@,$ac_builddir,;t t
41327 s,@abs_builddir@,$ac_abs_builddir,;t t
41328 s,@top_builddir@,$ac_top_builddir,;t t
41329 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41330 s,@INSTALL@,$ac_INSTALL,;t t
41331 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41333 if test x"$ac_file" != x-; then
41334 mv $tmp/out $ac_file
41342 cat >>$CONFIG_STATUS <<\_ACEOF
41345 # CONFIG_HEADER section.
41348 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41349 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41351 # ac_d sets the value in "#define NAME VALUE" lines.
41352 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41353 ac_dB='[ ].*$,\1#\2'
41356 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41357 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41358 ac_uB='$,\1#\2define\3'
41362 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41363 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41365 - | *:- | *:-:* ) # input from stdin
41367 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41369 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41370 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41371 * ) ac_file_in=$ac_file.in ;;
41374 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41375 echo "$as_me: creating $ac_file" >&6;}
41377 # First look for the input files in the build tree, otherwise in the
41379 ac_file_inputs=`IFS=:
41380 for f in $ac_file_in; do
41382 -) echo $tmp/stdin ;;
41384 # Absolute (can't be DOS-style, as IFS=:)
41385 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41386 echo "$as_me: error: cannot find input file: $f" >&2;}
41387 { (exit 1); exit 1; }; }
41388 # Do quote $f, to prevent DOS paths from being IFS'd.
41391 if test -f "$f"; then
41394 elif test -f "$srcdir/$f"; then
41399 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41400 echo "$as_me: error: cannot find input file: $f" >&2;}
41401 { (exit 1); exit 1; }; }
41404 done` || { (exit 1); exit 1; }
41405 # Remove the trailing spaces.
41406 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41410 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41411 # `conftest.undefs', that substitutes the proper values into
41412 # config.h.in to produce config.h. The first handles `#define'
41413 # templates, and the second `#undef' templates.
41414 # And first: Protect against being on the right side of a sed subst in
41415 # config.status. Protect against being in an unquoted here document
41416 # in config.status.
41417 rm -f conftest.defines conftest.undefs
41418 # Using a here document instead of a string reduces the quoting nightmare.
41419 # Putting comments in sed scripts is not portable.
41421 # `end' is used to avoid that the second main sed command (meant for
41422 # 0-ary CPP macros) applies to n-ary macro definitions.
41423 # See the Autoconf documentation for `clear'.
41424 cat >confdef2sed.sed <<\_ACEOF
41429 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41431 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41434 # If some macros were called several times there might be several times
41435 # the same #defines, which is useless. Nevertheless, we may not want to
41436 # sort them, since we want the *last* AC-DEFINE to be honored.
41437 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41438 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41439 rm -f confdef2sed.sed
41441 # This sed command replaces #undef with comments. This is necessary, for
41442 # example, in the case of _POSIX_SOURCE, which is predefined and required
41443 # on some systems where configure will not decide to define it.
41444 cat >>conftest.undefs <<\_ACEOF
41445 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41448 # Break up conftest.defines because some shells have a limit on the size
41449 # of here documents, and old seds have small limits too (100 cmds).
41450 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41451 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41452 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41453 echo ' :' >>$CONFIG_STATUS
41454 rm -f conftest.tail
41455 while grep . conftest.defines >/dev/null
41457 # Write a limited-size here document to $tmp/defines.sed.
41458 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41459 # Speed up: don't consider the non `#define' lines.
41460 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41461 # Work around the forget-to-reset-the-flag bug.
41462 echo 't clr' >>$CONFIG_STATUS
41463 echo ': clr' >>$CONFIG_STATUS
41464 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41466 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41468 mv $tmp/out $tmp/in
41470 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41471 rm -f conftest.defines
41472 mv conftest.tail conftest.defines
41474 rm -f conftest.defines
41475 echo ' fi # grep' >>$CONFIG_STATUS
41476 echo >>$CONFIG_STATUS
41478 # Break up conftest.undefs because some shells have a limit on the size
41479 # of here documents, and old seds have small limits too (100 cmds).
41480 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41481 rm -f conftest.tail
41482 while grep . conftest.undefs >/dev/null
41484 # Write a limited-size here document to $tmp/undefs.sed.
41485 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41486 # Speed up: don't consider the non `#undef'
41487 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41488 # Work around the forget-to-reset-the-flag bug.
41489 echo 't clr' >>$CONFIG_STATUS
41490 echo ': clr' >>$CONFIG_STATUS
41491 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41493 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41495 mv $tmp/out $tmp/in
41497 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41498 rm -f conftest.undefs
41499 mv conftest.tail conftest.undefs
41501 rm -f conftest.undefs
41503 cat >>$CONFIG_STATUS <<\_ACEOF
41504 # Let's still pretend it is `configure' which instantiates (i.e., don't
41505 # use $as_me), people would be surprised to read:
41506 # /* config.h. Generated by config.status. */
41507 if test x"$ac_file" = x-; then
41508 echo "/* Generated by configure. */" >$tmp/config.h
41510 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41512 cat $tmp/in >>$tmp/config.h
41514 if test x"$ac_file" != x-; then
41515 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41516 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41517 echo "$as_me: $ac_file is unchanged" >&6;}
41519 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41521 X"$ac_file" : 'X\(//\)[^/]' \| \
41522 X"$ac_file" : 'X\(//\)$' \| \
41523 X"$ac_file" : 'X\(/\)' \| \
41524 . : '\(.\)' 2>/dev/null ||
41526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41528 /^X\(\/\/\)$/{ s//\1/; q; }
41529 /^X\(\/\).*/{ s//\1/; q; }
41531 { if $as_mkdir_p; then
41536 while test ! -d "$as_dir"; do
41537 as_dirs="$as_dir $as_dirs"
41538 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41540 X"$as_dir" : 'X\(//\)[^/]' \| \
41541 X"$as_dir" : 'X\(//\)$' \| \
41542 X"$as_dir" : 'X\(/\)' \| \
41543 . : '\(.\)' 2>/dev/null ||
41545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41547 /^X\(\/\/\)$/{ s//\1/; q; }
41548 /^X\(\/\).*/{ s//\1/; q; }
41551 test ! -n "$as_dirs" || mkdir $as_dirs
41552 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41554 { (exit 1); exit 1; }; }; }
41557 mv $tmp/config.h $ac_file
41561 rm -f $tmp/config.h
41563 # Compute $ac_file's index in $config_headers.
41565 for _am_header in $config_headers :; do
41566 case $_am_header in
41567 $ac_file | $ac_file:* )
41570 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41573 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41574 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41575 X$ac_file : 'X\(//\)[^/]' \| \
41576 X$ac_file : 'X\(//\)$' \| \
41577 X$ac_file : 'X\(/\)' \| \
41578 . : '\(.\)' 2>/dev/null ||
41580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41582 /^X\(\/\/\)$/{ s//\1/; q; }
41583 /^X\(\/\).*/{ s//\1/; q; }
41584 s/.*/./; q'`/stamp-h$_am_stamp_count
41587 cat >>$CONFIG_STATUS <<\_ACEOF
41590 # CONFIG_COMMANDS section.
41592 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41593 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41594 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41595 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41596 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41597 X"$ac_dest" : 'X\(//\)[^/]' \| \
41598 X"$ac_dest" : 'X\(//\)$' \| \
41599 X"$ac_dest" : 'X\(/\)' \| \
41600 . : '\(.\)' 2>/dev/null ||
41602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41604 /^X\(\/\/\)$/{ s//\1/; q; }
41605 /^X\(\/\).*/{ s//\1/; q; }
41607 { if $as_mkdir_p; then
41612 while test ! -d "$as_dir"; do
41613 as_dirs="$as_dir $as_dirs"
41614 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41616 X"$as_dir" : 'X\(//\)[^/]' \| \
41617 X"$as_dir" : 'X\(//\)$' \| \
41618 X"$as_dir" : 'X\(/\)' \| \
41619 . : '\(.\)' 2>/dev/null ||
41621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41623 /^X\(\/\/\)$/{ s//\1/; q; }
41624 /^X\(\/\).*/{ s//\1/; q; }
41627 test ! -n "$as_dirs" || mkdir $as_dirs
41628 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41630 { (exit 1); exit 1; }; }; }
41634 if test "$ac_dir" != .; then
41635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41636 # A "../" for each directory in $ac_dir_suffix.
41637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41639 ac_dir_suffix= ac_top_builddir=
41643 .) # No --srcdir option. We are building in place.
41645 if test -z "$ac_top_builddir"; then
41648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41650 [\\/]* | ?:[\\/]* ) # Absolute path.
41651 ac_srcdir=$srcdir$ac_dir_suffix;
41652 ac_top_srcdir=$srcdir ;;
41653 *) # Relative path.
41654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41655 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41658 # Do not use `cd foo && pwd` to compute absolute paths, because
41659 # the directories may not exist.
41661 .) ac_abs_builddir="$ac_dir";;
41664 .) ac_abs_builddir=`pwd`;;
41665 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41666 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41669 case $ac_abs_builddir in
41670 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41672 case ${ac_top_builddir}. in
41673 .) ac_abs_top_builddir=$ac_abs_builddir;;
41674 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41675 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41678 case $ac_abs_builddir in
41679 .) ac_abs_srcdir=$ac_srcdir;;
41682 .) ac_abs_srcdir=$ac_abs_builddir;;
41683 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41684 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41687 case $ac_abs_builddir in
41688 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41690 case $ac_top_srcdir in
41691 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41692 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41693 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41698 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41699 echo "$as_me: executing $ac_dest commands" >&6;}
41701 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
41702 # Strip MF so we end up with the name of the file.
41703 mf=`echo "$mf" | sed -e 's/:.*$//'`
41704 # Check whether this is an Automake generated Makefile or not.
41705 # We used to match only the files named `Makefile.in', but
41706 # some people rename them; so instead we look at the file content.
41707 # Grep'ing the first line is not enough: some people post-process
41708 # each Makefile.in and add a new line on top of each file to say so.
41709 # So let's grep whole file.
41710 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
41711 dirpart=`(dirname "$mf") 2>/dev/null ||
41712 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41713 X"$mf" : 'X\(//\)[^/]' \| \
41714 X"$mf" : 'X\(//\)$' \| \
41715 X"$mf" : 'X\(/\)' \| \
41716 . : '\(.\)' 2>/dev/null ||
41718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41720 /^X\(\/\/\)$/{ s//\1/; q; }
41721 /^X\(\/\).*/{ s//\1/; q; }
41726 # Extract the definition of DEPDIR, am__include, and am__quote
41727 # from the Makefile without running `make'.
41728 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41729 test -z "$DEPDIR" && continue
41730 am__include=`sed -n 's/^am__include = //p' < "$mf"`
41731 test -z "am__include" && continue
41732 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41733 # When using ansi2knr, U may be empty or an underscore; expand it
41734 U=`sed -n 's/^U = //p' < "$mf"`
41735 # Find all dependency output files, they are included files with
41736 # $(DEPDIR) in their names. We invoke sed twice because it is the
41737 # simplest approach to changing $(DEPDIR) to its actual value in the
41739 for file in `sed -n "
41740 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41741 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41742 # Make sure the directory exists.
41743 test -f "$dirpart/$file" && continue
41744 fdir=`(dirname "$file") 2>/dev/null ||
41745 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41746 X"$file" : 'X\(//\)[^/]' \| \
41747 X"$file" : 'X\(//\)$' \| \
41748 X"$file" : 'X\(/\)' \| \
41749 . : '\(.\)' 2>/dev/null ||
41751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41753 /^X\(\/\/\)$/{ s//\1/; q; }
41754 /^X\(\/\).*/{ s//\1/; q; }
41756 { if $as_mkdir_p; then
41757 mkdir -p $dirpart/$fdir
41759 as_dir=$dirpart/$fdir
41761 while test ! -d "$as_dir"; do
41762 as_dirs="$as_dir $as_dirs"
41763 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41765 X"$as_dir" : 'X\(//\)[^/]' \| \
41766 X"$as_dir" : 'X\(//\)$' \| \
41767 X"$as_dir" : 'X\(/\)' \| \
41768 . : '\(.\)' 2>/dev/null ||
41770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41772 /^X\(\/\/\)$/{ s//\1/; q; }
41773 /^X\(\/\).*/{ s//\1/; q; }
41776 test ! -n "$as_dirs" || mkdir $as_dirs
41777 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
41778 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
41779 { (exit 1); exit 1; }; }; }
41781 # echo "creating $dirpart/$file"
41782 echo '# dummy' > "$dirpart/$file"
41789 BACKENDSC="servers/slapd/backends.c"
41790 echo "Making $BACKENDSC"
41792 cat > $BACKENDSC << ENDX
41793 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41795 * Copyright 1998-2007 The OpenLDAP Foundation.
41796 * All rights reserved.
41798 * Redistribution and use in source and binary forms, with or without
41799 * modification, are permitted only as authorized by the OpenLDAP
41802 * A copy of this license is available in the file LICENSE in the
41803 * top-level directory of the distribution or, alternatively, at
41804 * <http://www.OpenLDAP.org/license.html>.
41806 /* This file is automatically generated by configure; please do not edit. */
41808 #include "portable.h"
41812 if test "${STATIC_BACKENDS}"; then
41813 for b in config ${STATIC_BACKENDS}; do
41814 bb=`echo "${b}" | sed -e 's/back-//'`
41815 cat >> $BACKENDSC << ENDX
41816 extern BI_init ${bb}_back_initialize;
41820 cat >> $BACKENDSC << ENDX
41822 BackendInfo slap_binfo[] = {
41825 for b in config ${STATIC_BACKENDS}; do
41826 bb=`echo "${b}" | sed -e 's/back-//'`
41827 echo " Add ${bb} ..."
41828 cat >> $BACKENDSC << ENDX
41829 { "${bb}", ${bb}_back_initialize },
41833 cat >> $BACKENDSC << ENDX
41837 /* end of generated file */
41840 OVERLAYSC="servers/slapd/overlays/statover.c"
41841 echo "Making $OVERLAYSC"
41843 cat > $OVERLAYSC << ENDX
41844 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41846 * Copyright 1998-2007 The OpenLDAP Foundation.
41847 * All rights reserved.
41849 * Redistribution and use in source and binary forms, with or without
41850 * modification, are permitted only as authorized by the OpenLDAP
41853 * A copy of this license is available in the file LICENSE in the
41854 * top-level directory of the distribution or, alternatively, at
41855 * <http://www.OpenLDAP.org/license.html>.
41857 /* This file is automatically generated by configure; please do not edit. */
41859 #include "portable.h"
41863 if test "${STATIC_OVERLAYS}"; then
41864 for o in ${STATIC_OVERLAYS}; do
41865 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41866 cat >> $OVERLAYSC << ENDX
41867 extern OV_init ${oo}_initialize;
41872 cat >> $OVERLAYSC << ENDX
41874 OverlayInit slap_oinfo[] = {
41877 if test "${STATIC_OVERLAYS}"; then
41878 for o in ${STATIC_OVERLAYS}; do
41879 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41880 echo " Add ${oo} ..."
41881 cat >> $OVERLAYSC << ENDX
41882 { "${oo}", ${oo}_initialize },
41887 cat >> $OVERLAYSC << ENDX
41891 /* end of generated file */
41894 echo Please run \"make depend\" to build dependencies
41900 cat >>$CONFIG_STATUS <<\_ACEOF
41902 { (exit 0); exit 0; }
41904 chmod +x $CONFIG_STATUS
41905 ac_clean_files=$ac_clean_files_save
41908 # configure is writing to config.log, and then calls config.status.
41909 # config.status does its own redirection, appending to config.log.
41910 # Unfortunately, on DOS this fails, as config.log is still kept open
41911 # by configure, so config.status won't be able to write to it; its
41912 # output is simply discarded. So we exec the FD to /dev/null,
41913 # effectively closing config.log, so it can be properly (re)opened and
41914 # appended to by config.status. When coming back to configure, we
41915 # need to make the FD available again.
41916 if test "$no_create" != yes; then
41918 ac_config_status_args=
41919 test "$silent" = yes &&
41920 ac_config_status_args="$ac_config_status_args --quiet"
41922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41925 # would make configure fail if this is the last instruction.
41926 $ac_cs_success || { (exit 1); exit 1; }