2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.6 2007/08/31 23:13:50 quanah 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 LDAP_LIBS SLAPD_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-memberof Reverse Group Membership overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1061 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1062 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1063 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1064 --enable-valsort Value Sorting overlay no|yes|mod [no]
1066 Library Generation & Linking Options
1067 --enable-static[=PKGS]
1068 build static libraries [default=yes]
1069 --enable-shared[=PKGS]
1070 build shared libraries [default=yes]
1071 --enable-fast-install[=PKGS]
1072 optimize for fast installation [default=yes]
1073 --disable-dependency-tracking speeds up one-time build
1074 --enable-dependency-tracking do not reject slow dependency extractors
1075 --disable-libtool-lock avoid locking (might break parallel builds)
1078 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1079 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1080 --with-subdir=DIR change default subdirectory used for installs
1081 --with-cyrus-sasl with Cyrus SASL support [auto]
1082 --with-fetch with fetch(3) URL support [auto]
1083 --with-threads with threads [auto]
1084 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1085 --with-yielding-select with implicitly yielding select [auto]
1086 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1087 --with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
1088 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1089 --with-pic try to use only PIC/non-PIC objects [default=use
1092 include additional configurations [automatic]
1094 See INSTALL file for further details.
1096 Some influential environment variables:
1097 CC C compiler command
1098 CFLAGS C compiler flags
1099 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1100 nonstandard directory <lib dir>
1101 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1102 headers in a nonstandard directory <include dir>
1105 Use these variables to override the choices made by `configure' or to help
1106 it to find libraries and programs with nonstandard names/locations.
1111 if test "$ac_init_help" = "recursive"; then
1112 # If there are subdirs, report their specific --help.
1114 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1115 test -d $ac_dir || continue
1118 if test "$ac_dir" != .; then
1119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1120 # A "../" for each directory in $ac_dir_suffix.
1121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1123 ac_dir_suffix= ac_top_builddir=
1127 .) # No --srcdir option. We are building in place.
1129 if test -z "$ac_top_builddir"; then
1132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1134 [\\/]* | ?:[\\/]* ) # Absolute path.
1135 ac_srcdir=$srcdir$ac_dir_suffix;
1136 ac_top_srcdir=$srcdir ;;
1138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 # Do not use `cd foo && pwd` to compute absolute paths, because
1143 # the directories may not exist.
1145 .) ac_abs_builddir="$ac_dir";;
1148 .) ac_abs_builddir=`pwd`;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 case ${ac_top_builddir}. in
1157 .) ac_abs_top_builddir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162 case $ac_abs_builddir in
1163 .) ac_abs_srcdir=$ac_srcdir;;
1166 .) ac_abs_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171 case $ac_abs_builddir in
1172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 case $ac_top_srcdir in
1175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182 # Check for guested configure; otherwise get Cygnus style configure.
1183 if test -f $ac_srcdir/configure.gnu; then
1185 $SHELL $ac_srcdir/configure.gnu --help=recursive
1186 elif test -f $ac_srcdir/configure; then
1188 $SHELL $ac_srcdir/configure --help=recursive
1189 elif test -f $ac_srcdir/configure.ac ||
1190 test -f $ac_srcdir/configure.in; then
1192 $ac_configure --help
1194 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200 test -n "$ac_init_help" && exit 0
1201 if $ac_init_version; then
1204 Copyright (C) 2003 Free Software Foundation, Inc.
1205 This configure script is free software; the Free Software Foundation
1206 gives unlimited permission to copy, distribute and modify it.
1208 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1209 Restrictions apply, see COPYRIGHT and LICENSE files.
1215 This file contains any messages produced by compilers while
1216 running configure, to aid debugging if configure makes a mistake.
1218 It was created by $as_me, which was
1219 generated by GNU Autoconf 2.59. Invocation command line was
1230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1237 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1239 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1240 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1242 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1243 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1244 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1245 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 test -z "$as_dir" && as_dir=.
1254 echo "PATH: $as_dir"
1269 # Keep a trace of the command line.
1270 # Strip out --no-create and --no-recursion so they do not pile up.
1271 # Strip out --silent because we don't want to record it for future runs.
1272 # Also quote any args containing shell meta-characters.
1273 # Make two passes to allow for proper duplicate-argument suppression.
1278 ac_must_keep_next=false
1284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1294 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295 if test $ac_must_keep_next = true; then
1296 ac_must_keep_next=false # Got value, back to normal.
1299 *=* | --config-cache | -C | -disable-* | --disable-* \
1300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302 | -with-* | --with-* | -without-* | --without-* | --x)
1303 case "$ac_configure_args0 " in
1304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307 -* ) ac_must_keep_next=true ;;
1310 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311 # Get rid of the leading space.
1317 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1320 # When interrupted or exit'd, cleanup temporary files, and complete
1321 # config.log. We remove comments because anyway the quotes in there
1322 # would cause problems or look ugly.
1323 # WARNING: Be sure not to use single quotes in there, as some shells,
1324 # such as our DU 5.0 friend, will then `close' the trap.
1325 trap 'exit_status=$?
1326 # Save into config.log some information that might help in debugging.
1331 ## ---------------- ##
1332 ## Cache variables. ##
1333 ## ---------------- ##
1336 # The following way of writing the cache mishandles newlines in values,
1339 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1354 ## ----------------- ##
1355 ## Output variables. ##
1356 ## ----------------- ##
1359 for ac_var in $ac_subst_vars
1361 eval ac_val=$`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1366 if test -n "$ac_subst_files"; then
1373 for ac_var in $ac_subst_files
1375 eval ac_val=$`echo $ac_var`
1376 echo "$ac_var='"'"'$ac_val'"'"'"
1381 if test -s confdefs.h; then
1388 sed "/^$/d" confdefs.h | sort
1391 test "$ac_signal" != 0 &&
1392 echo "$as_me: caught signal $ac_signal"
1393 echo "$as_me: exit $exit_status"
1395 rm -f core *.core &&
1396 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399 for ac_signal in 1 2 13 15; do
1400 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1405 rm -rf conftest* confdefs.h
1406 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409 # Predefined preprocessor variables.
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436 # Let the site file select an alternate cache file if it wants to.
1437 # Prefer explicitly selected file to automatically selected ones.
1438 if test -z "$CONFIG_SITE"; then
1439 if test "x$prefix" != xNONE; then
1440 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1442 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445 for ac_site_file in $CONFIG_SITE; do
1446 if test -r "$ac_site_file"; then
1447 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1448 echo "$as_me: loading site script $ac_site_file" >&6;}
1449 sed 's/^/| /' "$ac_site_file" >&5
1455 # Check that the precious variables saved in the cache have kept the same
1457 ac_cache_corrupted=false
1458 for ac_var in `(set) 2>&1 |
1459 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1461 eval ac_new_set=\$ac_env_${ac_var}_set
1462 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1463 eval ac_new_val="\$ac_env_${ac_var}_value"
1464 case $ac_old_set,$ac_new_set in
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1467 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1475 if test "x$ac_old_val" != "x$ac_new_val"; then
1476 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1477 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1478 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1479 echo "$as_me: former value: $ac_old_val" >&2;}
1480 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1481 echo "$as_me: current value: $ac_new_val" >&2;}
1482 ac_cache_corrupted=:
1485 # Pass precious variables to config.status.
1486 if test "$ac_new_set" = set; then
1488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1489 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1490 *) ac_arg=$ac_var=$ac_new_val ;;
1492 case " $ac_configure_args " in
1493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1494 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 if $ac_cache_corrupted; then
1499 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1500 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1501 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1502 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1503 { (exit 1); exit 1; }; }
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 for ac_dir in build $srcdir/build; do
1556 if test -f $ac_dir/install-sh; then
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1560 elif test -f $ac_dir/install.sh; then
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1564 elif test -f $ac_dir/shtool; then
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1570 if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1572 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1573 { (exit 1); exit 1; }; }
1575 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1579 eval `$ac_aux_dir/version.sh`
1580 if test -z "$OL_STRING"; then
1581 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1582 echo "$as_me: error: could not determine version" >&2;}
1583 { (exit 1); exit 1; }; }
1586 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1587 ac_cv_shtool="$ac_aux_dir/shtool"
1589 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1590 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1591 { (exit 1); exit 1; }; }
1594 SHTOOL="$ac_cv_shtool"
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603 if test -d $ac_aux_dir/CVS; then
1604 OPENLDAP_CVS="(from CVS sources) "
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1690 program_prefix=${target_alias}-
1692 am__api_version="1.9"
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 # Account for people who put trailing slashes in PATH elements.
1719 ./ | .// | /cC/* | \
1720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724 # OSF1 and SCO ODT 3.0 have their own names for install.
1725 # Don't use installbsd from OSF since it installs stuff as root
1727 for ac_prog in ginstall scoinst install; do
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730 if test $ac_prog = install &&
1731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # AIX install. It has an incompatible calling convention.
1734 elif test $ac_prog = install &&
1735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # program-specific install script used by HP pwplus--don't use.
1739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1751 if test "${ac_cv_path_install+set}" = set; then
1752 INSTALL=$ac_cv_path_install
1754 # As a last resort, use the slow shell script. We don't cache a
1755 # path for INSTALL within a source directory, because that will
1756 # break other packages using the cache if that directory is
1757 # removed, or if the path is relative.
1758 INSTALL=$ac_install_sh
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments. Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1783 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784 if test "$*" = "X"; then
1786 set X `ls -t $srcdir/configure conftest.file`
1789 if test "$*" != "X $srcdir/configure conftest.file" \
1790 && test "$*" != "X conftest.file $srcdir/configure"; then
1792 # If neither matched, then we have a broken ls. This can happen
1793 # if, for instance, CONFIG_SHELL is bash and it inherits a
1794 # broken ls alias from the environment. This has actually
1795 # happened. Such a system could not be considered "sane".
1796 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&2;}
1800 { (exit 1); exit 1; }; }
1803 test "$2" = conftest.file
1809 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $. echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836 am_missing_run="$MISSING --run "
1839 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844 # We used to keeping the `.' as first argument, in order to
1845 # allow $(mkdir_p) to be used without argument. As in
1846 # $(mkdir_p) $(somedir)
1847 # where $(somedir) is conditionally defined. However this is wrong
1849 # 1. if the package is installed by a user who cannot write `.'
1850 # make install will fail,
1851 # 2. the above comment should most certainly read
1852 # $(mkdir_p) $(DESTDIR)$(somedir)
1853 # so it does not work when $(somedir) is undefined and
1854 # $(DESTDIR) is not.
1855 # To support the latter case, we have to write
1856 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857 # so the `.' trick is pointless.
1858 mkdir_p='mkdir -p --'
1860 # On NextStep and OpenStep, the `mkdir' command does not
1861 # recognize any option. It will interpret all options as
1862 # directories to create, and then abort because `.' already
1864 for d in ./-p ./--version;
1866 test -d $d && rmdir $d
1868 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869 if test -f "$ac_aux_dir/mkinstalldirs"; then
1870 mkdir_p='$(mkinstalldirs)'
1872 mkdir_p='$(install_sh) -d'
1876 for ac_prog in gawk mawk nawk awk
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$AWK"; then
1886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_AWK="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$AWK"; then
1906 echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$AWK" && break
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.make <<\_ACEOF
1924 @echo 'ac_maketemp="$(MAKE)"'
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929 eval ac_cv_prog_make_${ac_make}_set=yes
1931 eval ac_cv_prog_make_${ac_make}_set=no
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936 echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 SET_MAKE="MAKE=${MAKE-make}"
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1952 rmdir .tst 2>/dev/null
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956 test -f $srcdir/config.status; then
1957 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964 if (cygpath --version) >/dev/null 2>/dev/null; then
1965 CYGPATH_W='cygpath -w'
1972 # Define the identity of the package.
1977 # Some tools Automake needs.
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'. However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000 if test -n "$ac_tool_prefix"; then
2001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$STRIP"; then
2009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029 echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2037 if test -z "$ac_cv_prog_STRIP"; then
2039 # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$ac_ct_STRIP"; then
2047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_STRIP="strip"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2077 STRIP="$ac_cv_prog_STRIP"
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083 # We need awk for the "check" target. The system "awk" is bad on
2085 # Always define AMTAR for backward compatibility.
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2140 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2142 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2151 ldap_subdir="/openldap"
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156 withval="$with_subdir"
2163 ldap_subdir="$withval"
2166 ldap_subdir="/$withval"
2172 # OpenLDAP --enable-debug
2174 # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176 enableval="$enable_debug"
2179 for ol_val in no yes traditional ; do
2180 if test "$enableval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187 { (exit 1); exit 1; }; }
2189 ol_enable_debug="$ol_arg"
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2197 # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199 enableval="$enable_dynamic"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210 { (exit 1); exit 1; }; }
2212 ol_enable_dynamic="$ol_arg"
2215 ol_enable_dynamic=no
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2220 # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222 enableval="$enable_syslog"
2225 for ol_val in auto yes no ; do
2226 if test "$enableval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233 { (exit 1); exit 1; }; }
2235 ol_enable_syslog="$ol_arg"
2238 ol_enable_syslog=auto
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2243 # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245 enableval="$enable_proctitle"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256 { (exit 1); exit 1; }; }
2258 ol_enable_proctitle="$ol_arg"
2261 ol_enable_proctitle=yes
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 # OpenLDAP --enable-ipv6
2267 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269 enableval="$enable_ipv6"
2272 for ol_val in auto yes no ; do
2273 if test "$enableval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280 { (exit 1); exit 1; }; }
2282 ol_enable_ipv6="$ol_arg"
2288 # OpenLDAP --enable-local
2290 # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292 enableval="$enable_local"
2295 for ol_val in auto yes no ; do
2296 if test "$enableval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303 { (exit 1); exit 1; }; }
2305 ol_enable_local="$ol_arg"
2308 ol_enable_local=auto
2310 # end --enable-local
2312 # OpenLDAP --with-cyrus_sasl
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316 withval="$with_cyrus_sasl"
2319 for ol_val in auto yes no ; do
2320 if test "$withval" = "$ol_val" ; then
2324 if test "$ol_arg" = "invalid" ; then
2325 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327 { (exit 1); exit 1; }; }
2329 ol_with_cyrus_sasl="$ol_arg"
2332 ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2335 # OpenLDAP --with-fetch
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339 withval="$with_fetch"
2342 for ol_val in auto yes no ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350 { (exit 1); exit 1; }; }
2352 ol_with_fetch="$ol_arg"
2355 ol_with_fetch="auto"
2356 fi; # end --with-fetch
2358 # OpenLDAP --with-threads
2360 # Check whether --with-threads or --without-threads was given.
2361 if test "${with_threads+set}" = set; then
2362 withval="$with_threads"
2365 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2366 if test "$withval" = "$ol_val" ; then
2370 if test "$ol_arg" = "invalid" ; then
2371 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2372 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2373 { (exit 1); exit 1; }; }
2375 ol_with_threads="$ol_arg"
2378 ol_with_threads="auto"
2379 fi; # end --with-threads
2381 # OpenLDAP --with-tls
2383 # Check whether --with-tls or --without-tls was given.
2384 if test "${with_tls+set}" = set; then
2388 for ol_val in auto openssl gnutls yes no ; do
2389 if test "$withval" = "$ol_val" ; then
2393 if test "$ol_arg" = "invalid" ; then
2394 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2395 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2396 { (exit 1); exit 1; }; }
2398 ol_with_tls="$ol_arg"
2402 fi; # end --with-tls
2404 # OpenLDAP --with-yielding_select
2406 # Check whether --with-yielding_select or --without-yielding_select was given.
2407 if test "${with_yielding_select+set}" = set; then
2408 withval="$with_yielding_select"
2411 for ol_val in auto yes no manual ; do
2412 if test "$withval" = "$ol_val" ; then
2416 if test "$ol_arg" = "invalid" ; then
2417 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2418 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2419 { (exit 1); exit 1; }; }
2421 ol_with_yielding_select="$ol_arg"
2424 ol_with_yielding_select="auto"
2425 fi; # end --with-yielding_select
2427 # OpenLDAP --with-mp
2429 # Check whether --with-mp or --without-mp was given.
2430 if test "${with_mp+set}" = set; then
2434 for ol_val in auto longlong long bignum gmp yes no ; do
2435 if test "$withval" = "$ol_val" ; then
2439 if test "$ol_arg" = "invalid" ; then
2440 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2441 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2442 { (exit 1); exit 1; }; }
2444 ol_with_mp="$ol_arg"
2450 # OpenLDAP --with-odbc
2452 # Check whether --with-odbc or --without-odbc was given.
2453 if test "${with_odbc+set}" = set; then
2454 withval="$with_odbc"
2457 for ol_val in auto iodbc unixodbc ; do
2458 if test "$withval" = "$ol_val" ; then
2462 if test "$ol_arg" = "invalid" ; then
2463 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2464 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2465 { (exit 1); exit 1; }; }
2467 ol_with_odbc="$ol_arg"
2471 fi; # end --with-odbc
2475 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2476 if test "${enable_xxslapdoptions+set}" = set; then
2477 enableval="$enable_xxslapdoptions"
2480 # OpenLDAP --enable-slapd
2482 # Check whether --enable-slapd or --disable-slapd was given.
2483 if test "${enable_slapd+set}" = set; then
2484 enableval="$enable_slapd"
2487 for ol_val in auto yes no ; do
2488 if test "$enableval" = "$ol_val" ; then
2492 if test "$ol_arg" = "invalid" ; then
2493 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2494 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2495 { (exit 1); exit 1; }; }
2497 ol_enable_slapd="$ol_arg"
2502 # end --enable-slapd
2503 # OpenLDAP --enable-dynacl
2505 # Check whether --enable-dynacl or --disable-dynacl was given.
2506 if test "${enable_dynacl+set}" = set; then
2507 enableval="$enable_dynacl"
2510 for ol_val in auto yes no ; do
2511 if test "$enableval" = "$ol_val" ; then
2515 if test "$ol_arg" = "invalid" ; then
2516 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2517 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2518 { (exit 1); exit 1; }; }
2520 ol_enable_dynacl="$ol_arg"
2525 # end --enable-dynacl
2526 # OpenLDAP --enable-aci
2528 # Check whether --enable-aci or --disable-aci was given.
2529 if test "${enable_aci+set}" = set; then
2530 enableval="$enable_aci"
2533 for ol_val in no yes mod ; do
2534 if test "$enableval" = "$ol_val" ; then
2538 if test "$ol_arg" = "invalid" ; then
2539 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2540 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2541 { (exit 1); exit 1; }; }
2543 ol_enable_aci="$ol_arg"
2549 # OpenLDAP --enable-cleartext
2551 # Check whether --enable-cleartext or --disable-cleartext was given.
2552 if test "${enable_cleartext+set}" = set; then
2553 enableval="$enable_cleartext"
2556 for ol_val in auto yes no ; do
2557 if test "$enableval" = "$ol_val" ; then
2561 if test "$ol_arg" = "invalid" ; then
2562 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2563 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2564 { (exit 1); exit 1; }; }
2566 ol_enable_cleartext="$ol_arg"
2569 ol_enable_cleartext=yes
2571 # end --enable-cleartext
2572 # OpenLDAP --enable-crypt
2574 # Check whether --enable-crypt or --disable-crypt was given.
2575 if test "${enable_crypt+set}" = set; then
2576 enableval="$enable_crypt"
2579 for ol_val in auto yes no ; do
2580 if test "$enableval" = "$ol_val" ; then
2584 if test "$ol_arg" = "invalid" ; then
2585 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2586 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2587 { (exit 1); exit 1; }; }
2589 ol_enable_crypt="$ol_arg"
2594 # end --enable-crypt
2595 # OpenLDAP --enable-lmpasswd
2597 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2598 if test "${enable_lmpasswd+set}" = set; then
2599 enableval="$enable_lmpasswd"
2602 for ol_val in auto yes no ; do
2603 if test "$enableval" = "$ol_val" ; then
2607 if test "$ol_arg" = "invalid" ; then
2608 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2609 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2610 { (exit 1); exit 1; }; }
2612 ol_enable_lmpasswd="$ol_arg"
2615 ol_enable_lmpasswd=no
2617 # end --enable-lmpasswd
2618 # OpenLDAP --enable-spasswd
2620 # Check whether --enable-spasswd or --disable-spasswd was given.
2621 if test "${enable_spasswd+set}" = set; then
2622 enableval="$enable_spasswd"
2625 for ol_val in auto yes no ; do
2626 if test "$enableval" = "$ol_val" ; then
2630 if test "$ol_arg" = "invalid" ; then
2631 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2632 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2633 { (exit 1); exit 1; }; }
2635 ol_enable_spasswd="$ol_arg"
2638 ol_enable_spasswd=no
2640 # end --enable-spasswd
2641 # OpenLDAP --enable-modules
2643 # Check whether --enable-modules or --disable-modules was given.
2644 if test "${enable_modules+set}" = set; then
2645 enableval="$enable_modules"
2648 for ol_val in auto yes no ; do
2649 if test "$enableval" = "$ol_val" ; then
2653 if test "$ol_arg" = "invalid" ; then
2654 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2655 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2656 { (exit 1); exit 1; }; }
2658 ol_enable_modules="$ol_arg"
2661 ol_enable_modules=no
2663 # end --enable-modules
2664 # OpenLDAP --enable-rewrite
2666 # Check whether --enable-rewrite or --disable-rewrite was given.
2667 if test "${enable_rewrite+set}" = set; then
2668 enableval="$enable_rewrite"
2671 for ol_val in auto yes no ; do
2672 if test "$enableval" = "$ol_val" ; then
2676 if test "$ol_arg" = "invalid" ; then
2677 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2678 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2679 { (exit 1); exit 1; }; }
2681 ol_enable_rewrite="$ol_arg"
2684 ol_enable_rewrite=auto
2686 # end --enable-rewrite
2687 # OpenLDAP --enable-rlookups
2689 # Check whether --enable-rlookups or --disable-rlookups was given.
2690 if test "${enable_rlookups+set}" = set; then
2691 enableval="$enable_rlookups"
2694 for ol_val in auto yes no ; do
2695 if test "$enableval" = "$ol_val" ; then
2699 if test "$ol_arg" = "invalid" ; then
2700 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2701 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2702 { (exit 1); exit 1; }; }
2704 ol_enable_rlookups="$ol_arg"
2707 ol_enable_rlookups=no
2709 # end --enable-rlookups
2710 # OpenLDAP --enable-slapi
2712 # Check whether --enable-slapi or --disable-slapi was given.
2713 if test "${enable_slapi+set}" = set; then
2714 enableval="$enable_slapi"
2717 for ol_val in auto yes no ; do
2718 if test "$enableval" = "$ol_val" ; then
2722 if test "$ol_arg" = "invalid" ; then
2723 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2724 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2725 { (exit 1); exit 1; }; }
2727 ol_enable_slapi="$ol_arg"
2732 # end --enable-slapi
2733 # OpenLDAP --enable-slp
2735 # Check whether --enable-slp or --disable-slp was given.
2736 if test "${enable_slp+set}" = set; then
2737 enableval="$enable_slp"
2740 for ol_val in auto yes no ; do
2741 if test "$enableval" = "$ol_val" ; then
2745 if test "$ol_arg" = "invalid" ; then
2746 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2747 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2748 { (exit 1); exit 1; }; }
2750 ol_enable_slp="$ol_arg"
2756 # OpenLDAP --enable-wrappers
2758 # Check whether --enable-wrappers or --disable-wrappers was given.
2759 if test "${enable_wrappers+set}" = set; then
2760 enableval="$enable_wrappers"
2763 for ol_val in auto yes no ; do
2764 if test "$enableval" = "$ol_val" ; then
2768 if test "$ol_arg" = "invalid" ; then
2769 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2771 { (exit 1); exit 1; }; }
2773 ol_enable_wrappers="$ol_arg"
2776 ol_enable_wrappers=no
2778 # end --enable-wrappers
2793 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2794 if test "${enable_xxslapbackends+set}" = set; then
2795 enableval="$enable_xxslapbackends"
2799 # OpenLDAP --enable-backends
2801 # Check whether --enable-backends or --disable-backends was given.
2802 if test "${enable_backends+set}" = set; then
2803 enableval="$enable_backends"
2806 for ol_val in no yes mod ; do
2807 if test "$enableval" = "$ol_val" ; then
2811 if test "$ol_arg" = "invalid" ; then
2812 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2813 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2814 { (exit 1); exit 1; }; }
2816 ol_enable_backends="$ol_arg"
2819 # end --enable-backends
2820 # OpenLDAP --enable-bdb
2822 # Check whether --enable-bdb or --disable-bdb was given.
2823 if test "${enable_bdb+set}" = set; then
2824 enableval="$enable_bdb"
2827 for ol_val in no yes mod ; do
2828 if test "$enableval" = "$ol_val" ; then
2832 if test "$ol_arg" = "invalid" ; then
2833 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2834 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2835 { (exit 1); exit 1; }; }
2837 ol_enable_bdb="$ol_arg"
2840 ol_enable_bdb=${ol_enable_backends:-yes}
2843 # OpenLDAP --enable-dnssrv
2845 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2846 if test "${enable_dnssrv+set}" = set; then
2847 enableval="$enable_dnssrv"
2850 for ol_val in no yes mod ; do
2851 if test "$enableval" = "$ol_val" ; then
2855 if test "$ol_arg" = "invalid" ; then
2856 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2857 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2858 { (exit 1); exit 1; }; }
2860 ol_enable_dnssrv="$ol_arg"
2863 ol_enable_dnssrv=${ol_enable_backends:-no}
2865 # end --enable-dnssrv
2866 # OpenLDAP --enable-hdb
2868 # Check whether --enable-hdb or --disable-hdb was given.
2869 if test "${enable_hdb+set}" = set; then
2870 enableval="$enable_hdb"
2873 for ol_val in no yes mod ; do
2874 if test "$enableval" = "$ol_val" ; then
2878 if test "$ol_arg" = "invalid" ; then
2879 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2880 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2881 { (exit 1); exit 1; }; }
2883 ol_enable_hdb="$ol_arg"
2886 ol_enable_hdb=${ol_enable_backends:-yes}
2889 # OpenLDAP --enable-ldap
2891 # Check whether --enable-ldap or --disable-ldap was given.
2892 if test "${enable_ldap+set}" = set; then
2893 enableval="$enable_ldap"
2896 for ol_val in no yes mod ; do
2897 if test "$enableval" = "$ol_val" ; then
2901 if test "$ol_arg" = "invalid" ; then
2902 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2903 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2904 { (exit 1); exit 1; }; }
2906 ol_enable_ldap="$ol_arg"
2909 ol_enable_ldap=${ol_enable_backends:-no}
2912 # OpenLDAP --enable-meta
2914 # Check whether --enable-meta or --disable-meta was given.
2915 if test "${enable_meta+set}" = set; then
2916 enableval="$enable_meta"
2919 for ol_val in no yes mod ; do
2920 if test "$enableval" = "$ol_val" ; then
2924 if test "$ol_arg" = "invalid" ; then
2925 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2926 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2927 { (exit 1); exit 1; }; }
2929 ol_enable_meta="$ol_arg"
2932 ol_enable_meta=${ol_enable_backends:-no}
2935 # OpenLDAP --enable-monitor
2937 # Check whether --enable-monitor or --disable-monitor was given.
2938 if test "${enable_monitor+set}" = set; then
2939 enableval="$enable_monitor"
2942 for ol_val in no yes mod ; do
2943 if test "$enableval" = "$ol_val" ; then
2947 if test "$ol_arg" = "invalid" ; then
2948 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2949 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2950 { (exit 1); exit 1; }; }
2952 ol_enable_monitor="$ol_arg"
2955 ol_enable_monitor=${ol_enable_backends:-yes}
2957 # end --enable-monitor
2958 # OpenLDAP --enable-null
2960 # Check whether --enable-null or --disable-null was given.
2961 if test "${enable_null+set}" = set; then
2962 enableval="$enable_null"
2965 for ol_val in no yes mod ; do
2966 if test "$enableval" = "$ol_val" ; then
2970 if test "$ol_arg" = "invalid" ; then
2971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2973 { (exit 1); exit 1; }; }
2975 ol_enable_null="$ol_arg"
2978 ol_enable_null=${ol_enable_backends:-no}
2981 # OpenLDAP --enable-passwd
2983 # Check whether --enable-passwd or --disable-passwd was given.
2984 if test "${enable_passwd+set}" = set; then
2985 enableval="$enable_passwd"
2988 for ol_val in no yes mod ; do
2989 if test "$enableval" = "$ol_val" ; then
2993 if test "$ol_arg" = "invalid" ; then
2994 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2996 { (exit 1); exit 1; }; }
2998 ol_enable_passwd="$ol_arg"
3001 ol_enable_passwd=${ol_enable_backends:-no}
3003 # end --enable-passwd
3004 # OpenLDAP --enable-perl
3006 # Check whether --enable-perl or --disable-perl was given.
3007 if test "${enable_perl+set}" = set; then
3008 enableval="$enable_perl"
3011 for ol_val in no yes mod ; do
3012 if test "$enableval" = "$ol_val" ; then
3016 if test "$ol_arg" = "invalid" ; then
3017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3019 { (exit 1); exit 1; }; }
3021 ol_enable_perl="$ol_arg"
3024 ol_enable_perl=${ol_enable_backends:-no}
3027 # OpenLDAP --enable-relay
3029 # Check whether --enable-relay or --disable-relay was given.
3030 if test "${enable_relay+set}" = set; then
3031 enableval="$enable_relay"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_relay="$ol_arg"
3047 ol_enable_relay=${ol_enable_backends:-yes}
3049 # end --enable-relay
3050 # OpenLDAP --enable-shell
3052 # Check whether --enable-shell or --disable-shell was given.
3053 if test "${enable_shell+set}" = set; then
3054 enableval="$enable_shell"
3057 for ol_val in no yes mod ; do
3058 if test "$enableval" = "$ol_val" ; then
3062 if test "$ol_arg" = "invalid" ; then
3063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3065 { (exit 1); exit 1; }; }
3067 ol_enable_shell="$ol_arg"
3070 ol_enable_shell=${ol_enable_backends:-no}
3072 # end --enable-shell
3073 # OpenLDAP --enable-sql
3075 # Check whether --enable-sql or --disable-sql was given.
3076 if test "${enable_sql+set}" = set; then
3077 enableval="$enable_sql"
3080 for ol_val in no yes mod ; do
3081 if test "$enableval" = "$ol_val" ; then
3085 if test "$ol_arg" = "invalid" ; then
3086 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3088 { (exit 1); exit 1; }; }
3090 ol_enable_sql="$ol_arg"
3093 ol_enable_sql=${ol_enable_backends:-no}
3097 Overlays="accesslog \
3115 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3116 if test "${enable_xxslapoverlays+set}" = set; then
3117 enableval="$enable_xxslapoverlays"
3121 # OpenLDAP --enable-overlays
3123 # Check whether --enable-overlays or --disable-overlays was given.
3124 if test "${enable_overlays+set}" = set; then
3125 enableval="$enable_overlays"
3128 for ol_val in no yes mod ; do
3129 if test "$enableval" = "$ol_val" ; then
3133 if test "$ol_arg" = "invalid" ; then
3134 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_overlays="$ol_arg"
3141 # end --enable-overlays
3142 # OpenLDAP --enable-accesslog
3144 # Check whether --enable-accesslog or --disable-accesslog was given.
3145 if test "${enable_accesslog+set}" = set; then
3146 enableval="$enable_accesslog"
3149 for ol_val in no yes mod ; do
3150 if test "$enableval" = "$ol_val" ; then
3154 if test "$ol_arg" = "invalid" ; then
3155 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3156 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3157 { (exit 1); exit 1; }; }
3159 ol_enable_accesslog="$ol_arg"
3162 ol_enable_accesslog=${ol_enable_overlays:-no}
3164 # end --enable-accesslog
3166 # OpenLDAP --enable-auditlog
3168 # Check whether --enable-auditlog or --disable-auditlog was given.
3169 if test "${enable_auditlog+set}" = set; then
3170 enableval="$enable_auditlog"
3173 for ol_val in no yes mod ; do
3174 if test "$enableval" = "$ol_val" ; then
3178 if test "$ol_arg" = "invalid" ; then
3179 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3181 { (exit 1); exit 1; }; }
3183 ol_enable_auditlog="$ol_arg"
3186 ol_enable_auditlog=${ol_enable_overlays:-no}
3188 # end --enable-auditlog
3190 # OpenLDAP --enable-constraint
3192 # Check whether --enable-constraint or --disable-constraint was given.
3193 if test "${enable_constraint+set}" = set; then
3194 enableval="$enable_constraint"
3197 for ol_val in no yes mod ; do
3198 if test "$enableval" = "$ol_val" ; then
3202 if test "$ol_arg" = "invalid" ; then
3203 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3205 { (exit 1); exit 1; }; }
3207 ol_enable_constraint="$ol_arg"
3210 ol_enable_constraint=${ol_enable_overlays:-no}
3212 # end --enable-constraint
3214 # OpenLDAP --enable-dds
3216 # Check whether --enable-dds or --disable-dds was given.
3217 if test "${enable_dds+set}" = set; then
3218 enableval="$enable_dds"
3221 for ol_val in no yes mod ; do
3222 if test "$enableval" = "$ol_val" ; then
3226 if test "$ol_arg" = "invalid" ; then
3227 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3228 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3229 { (exit 1); exit 1; }; }
3231 ol_enable_dds="$ol_arg"
3234 ol_enable_dds=${ol_enable_overlays:-no}
3238 # OpenLDAP --enable-dyngroup
3240 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3241 if test "${enable_dyngroup+set}" = set; then
3242 enableval="$enable_dyngroup"
3245 for ol_val in no yes mod ; do
3246 if test "$enableval" = "$ol_val" ; then
3250 if test "$ol_arg" = "invalid" ; then
3251 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3253 { (exit 1); exit 1; }; }
3255 ol_enable_dyngroup="$ol_arg"
3258 ol_enable_dyngroup=${ol_enable_overlays:-no}
3260 # end --enable-dyngroup
3262 # OpenLDAP --enable-dynlist
3264 # Check whether --enable-dynlist or --disable-dynlist was given.
3265 if test "${enable_dynlist+set}" = set; then
3266 enableval="$enable_dynlist"
3269 for ol_val in no yes mod ; do
3270 if test "$enableval" = "$ol_val" ; then
3274 if test "$ol_arg" = "invalid" ; then
3275 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3277 { (exit 1); exit 1; }; }
3279 ol_enable_dynlist="$ol_arg"
3282 ol_enable_dynlist=${ol_enable_overlays:-no}
3284 # end --enable-dynlist
3286 # OpenLDAP --enable-memberof
3288 # Check whether --enable-memberof or --disable-memberof was given.
3289 if test "${enable_memberof+set}" = set; then
3290 enableval="$enable_memberof"
3293 for ol_val in no yes mod ; do
3294 if test "$enableval" = "$ol_val" ; then
3298 if test "$ol_arg" = "invalid" ; then
3299 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3300 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3301 { (exit 1); exit 1; }; }
3303 ol_enable_memberof="$ol_arg"
3306 ol_enable_memberof=${ol_enable_overlays:-no}
3308 # end --enable-memberof
3310 # OpenLDAP --enable-ppolicy
3312 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3313 if test "${enable_ppolicy+set}" = set; then
3314 enableval="$enable_ppolicy"
3317 for ol_val in no yes mod ; do
3318 if test "$enableval" = "$ol_val" ; then
3322 if test "$ol_arg" = "invalid" ; then
3323 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3324 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3325 { (exit 1); exit 1; }; }
3327 ol_enable_ppolicy="$ol_arg"
3330 ol_enable_ppolicy=${ol_enable_overlays:-no}
3332 # end --enable-ppolicy
3334 # OpenLDAP --enable-proxycache
3336 # Check whether --enable-proxycache or --disable-proxycache was given.
3337 if test "${enable_proxycache+set}" = set; then
3338 enableval="$enable_proxycache"
3341 for ol_val in no yes mod ; do
3342 if test "$enableval" = "$ol_val" ; then
3346 if test "$ol_arg" = "invalid" ; then
3347 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3348 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3349 { (exit 1); exit 1; }; }
3351 ol_enable_proxycache="$ol_arg"
3354 ol_enable_proxycache=${ol_enable_overlays:-no}
3356 # end --enable-proxycache
3358 # OpenLDAP --enable-refint
3360 # Check whether --enable-refint or --disable-refint was given.
3361 if test "${enable_refint+set}" = set; then
3362 enableval="$enable_refint"
3365 for ol_val in no yes mod ; do
3366 if test "$enableval" = "$ol_val" ; then
3370 if test "$ol_arg" = "invalid" ; then
3371 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3372 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3373 { (exit 1); exit 1; }; }
3375 ol_enable_refint="$ol_arg"
3378 ol_enable_refint=${ol_enable_overlays:-no}
3380 # end --enable-refint
3382 # OpenLDAP --enable-retcode
3384 # Check whether --enable-retcode or --disable-retcode was given.
3385 if test "${enable_retcode+set}" = set; then
3386 enableval="$enable_retcode"
3389 for ol_val in no yes mod ; do
3390 if test "$enableval" = "$ol_val" ; then
3394 if test "$ol_arg" = "invalid" ; then
3395 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3396 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3397 { (exit 1); exit 1; }; }
3399 ol_enable_retcode="$ol_arg"
3402 ol_enable_retcode=${ol_enable_overlays:-no}
3404 # end --enable-retcode
3406 # OpenLDAP --enable-rwm
3408 # Check whether --enable-rwm or --disable-rwm was given.
3409 if test "${enable_rwm+set}" = set; then
3410 enableval="$enable_rwm"
3413 for ol_val in no yes mod ; do
3414 if test "$enableval" = "$ol_val" ; then
3418 if test "$ol_arg" = "invalid" ; then
3419 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3420 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3421 { (exit 1); exit 1; }; }
3423 ol_enable_rwm="$ol_arg"
3426 ol_enable_rwm=${ol_enable_overlays:-no}
3430 # OpenLDAP --enable-seqmod
3432 # Check whether --enable-seqmod or --disable-seqmod was given.
3433 if test "${enable_seqmod+set}" = set; then
3434 enableval="$enable_seqmod"
3437 for ol_val in no yes mod ; do
3438 if test "$enableval" = "$ol_val" ; then
3442 if test "$ol_arg" = "invalid" ; then
3443 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3444 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3445 { (exit 1); exit 1; }; }
3447 ol_enable_seqmod="$ol_arg"
3450 ol_enable_seqmod=${ol_enable_overlays:-yes}
3452 # end --enable-seqmod
3454 # OpenLDAP --enable-syncprov
3456 # Check whether --enable-syncprov or --disable-syncprov was given.
3457 if test "${enable_syncprov+set}" = set; then
3458 enableval="$enable_syncprov"
3461 for ol_val in no yes mod ; do
3462 if test "$enableval" = "$ol_val" ; then
3466 if test "$ol_arg" = "invalid" ; then
3467 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3468 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3469 { (exit 1); exit 1; }; }
3471 ol_enable_syncprov="$ol_arg"
3474 ol_enable_syncprov=${ol_enable_overlays:-yes}
3476 # end --enable-syncprov
3478 # OpenLDAP --enable-translucent
3480 # Check whether --enable-translucent or --disable-translucent was given.
3481 if test "${enable_translucent+set}" = set; then
3482 enableval="$enable_translucent"
3485 for ol_val in no yes mod ; do
3486 if test "$enableval" = "$ol_val" ; then
3490 if test "$ol_arg" = "invalid" ; then
3491 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3492 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3493 { (exit 1); exit 1; }; }
3495 ol_enable_translucent="$ol_arg"
3498 ol_enable_translucent=${ol_enable_overlays:-no}
3500 # end --enable-translucent
3502 # OpenLDAP --enable-unique
3504 # Check whether --enable-unique or --disable-unique was given.
3505 if test "${enable_unique+set}" = set; then
3506 enableval="$enable_unique"
3509 for ol_val in no yes mod ; do
3510 if test "$enableval" = "$ol_val" ; then
3514 if test "$ol_arg" = "invalid" ; then
3515 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3516 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3517 { (exit 1); exit 1; }; }
3519 ol_enable_unique="$ol_arg"
3522 ol_enable_unique=${ol_enable_overlays:-no}
3524 # end --enable-unique
3526 # OpenLDAP --enable-valsort
3528 # Check whether --enable-valsort or --disable-valsort was given.
3529 if test "${enable_valsort+set}" = set; then
3530 enableval="$enable_valsort"
3533 for ol_val in no yes mod ; do
3534 if test "$enableval" = "$ol_val" ; then
3538 if test "$ol_arg" = "invalid" ; then
3539 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3540 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3541 { (exit 1); exit 1; }; }
3543 ol_enable_valsort="$ol_arg"
3546 ol_enable_valsort=${ol_enable_overlays:-no}
3548 # end --enable-valsort
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553 enableval="$enable_xxliboptions"
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558 enableval="$enable_static"
3559 p=${PACKAGE-default}
3561 yes) enable_static=yes ;;
3562 no) enable_static=no ;;
3565 # Look at the argument we got. We use all the common list separators.
3566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582 enableval="$enable_shared"
3583 p=${PACKAGE-default}
3585 yes) enable_shared=yes ;;
3586 no) enable_shared=no ;;
3589 # Look at the argument we got. We use all the common list separators.
3590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591 for pkg in $enableval; do
3593 if test "X$pkg" = "X$p"; then
3607 if test $ol_enable_slapd = no ; then
3608 if test $ol_enable_slapi = yes ; then
3609 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3612 case "$ol_enable_backends" in yes | mod)
3613 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3616 for i in $Backends; do
3617 eval "ol_tmp=\$ol_enable_$i"
3618 if test $ol_tmp != no ; then
3619 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621 eval "ol_enable_$i=no"
3624 if test $ol_enable_modules = yes ; then
3625 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3628 if test $ol_enable_wrappers = yes ; then
3629 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3632 if test $ol_enable_rlookups = yes ; then
3633 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3636 if test $ol_enable_dynacl = yes ; then
3637 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3640 if test $ol_enable_aci != no ; then
3641 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3644 if test $ol_enable_rewrite = yes ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3648 case "$ol_enable_overlays" in yes | mod)
3649 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3652 for i in $Overlays; do
3653 eval "ol_tmp=\$ol_enable_$i"
3654 if test $ol_tmp != no ; then
3655 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3657 eval "ol_enable_$i=no"
3661 # force settings to no
3666 ol_enable_modules=no
3667 ol_enable_rlookups=no
3670 ol_enable_wrappers=no
3672 ol_enable_rewrite=no
3674 elif test $ol_enable_modules != yes &&
3675 test $ol_enable_bdb = no &&
3676 test $ol_enable_dnssrv = no &&
3677 test $ol_enable_hdb = no &&
3678 test $ol_enable_ldap = no &&
3679 test $ol_enable_meta = no &&
3680 test $ol_enable_monitor = no &&
3681 test $ol_enable_null = no &&
3682 test $ol_enable_passwd = no &&
3683 test $ol_enable_perl = no &&
3684 test $ol_enable_relay = no &&
3685 test $ol_enable_shell = no &&
3686 test $ol_enable_sql = no ; then
3688 if test $ol_enable_slapd = yes ; then
3689 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3690 echo "$as_me: error: slapd requires a backend" >&2;}
3691 { (exit 1); exit 1; }; }
3693 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3694 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3699 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3700 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3701 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3702 { (exit 1); exit 1; }; }
3705 if test $ol_enable_lmpasswd = yes ; then
3706 if test $ol_with_tls = no ; then
3707 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3708 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3709 { (exit 1); exit 1; }; }
3713 if test $ol_enable_spasswd = yes ; then
3714 if test $ol_with_cyrus_sasl = no ; then
3715 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3716 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3717 { (exit 1); exit 1; }; }
3719 ol_with_cyrus_sasl=yes
3722 echo "$as_me:$LINENO: result: done" >&5
3723 echo "${ECHO_T}done" >&6
3767 BUILD_TRANSLUCENT=no
3771 SLAPD_STATIC_OVERLAYS=
3772 SLAPD_DYNAMIC_OVERLAYS=
3774 SLAPD_MODULES_LDFLAGS=
3775 SLAPD_MODULES_CPPFLAGS=
3777 SLAPD_STATIC_BACKENDS=back-ldif
3778 SLAPD_DYNAMIC_BACKENDS=
3804 cat >>confdefs.h <<\_ACEOF
3805 #define HAVE_MKVERSION 1
3813 *-*-aix*) if test -z "$CC" ; then
3814 case "$ol_with_threads" in
3815 auto | yes | posix) ol_aix_threads=yes ;;
3821 if test $ol_aix_threads = yes ; then
3822 if test -z "${CC}" ; then
3823 for ac_prog in cc_r xlc_r cc
3825 # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_CC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_CC="$ac_prog"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 if test -n "$CC"; then
3853 echo "$as_me:$LINENO: result: $CC" >&5
3854 echo "${ECHO_T}$CC" >&6
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3860 test -n "$CC" && break
3864 if test "$CC" = cc ; then
3865 if test $ol_with_threads != auto ; then
3866 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3867 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3868 { (exit 1); exit 1; }; }
3870 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3871 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3877 case ${CC} in cc_r | xlc_r)
3878 ol_with_threads=posix
3879 ol_cv_pthread_create=yes
3884 if test -z "${CC}"; then
3885 for ac_prog in cc gcc
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_CC+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_CC="$ac_prog"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 if test -n "$CC"; then
3915 echo "$as_me:$LINENO: result: $CC" >&5
3916 echo "${ECHO_T}$CC" >&6
3918 echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3922 test -n "$CC" && break
3924 test -n "$CC" || CC="missing"
3927 if test "${CC}" = "missing" ; then
3928 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3929 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3930 { (exit 1); exit 1; }; }
3934 if test -z "${AR}"; then
3935 for ac_prog in ar gar
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy $ac_prog; ac_word=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_AR+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 if test -n "$AR"; then
3945 ac_cv_prog_AR="$AR" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_AR="$ac_prog"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 if test -n "$AR"; then
3965 echo "$as_me:$LINENO: result: $AR" >&5
3966 echo "${ECHO_T}$AR" >&6
3968 echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3972 test -n "$AR" && break
3974 test -n "$AR" || AR="missing"
3977 if test "${AR}" = "missing" ; then
3978 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3979 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3980 { (exit 1); exit 1; }; }
3988 # Check whether --enable-fast-install or --disable-fast-install was given.
3989 if test "${enable_fast_install+set}" = set; then
3990 enableval="$enable_fast_install"
3991 p=${PACKAGE-default}
3993 yes) enable_fast_install=yes ;;
3994 no) enable_fast_install=no ;;
3996 enable_fast_install=no
3997 # Look at the argument we got. We use all the common list separators.
3998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3999 for pkg in $enableval; do
4001 if test "X$pkg" = "X$p"; then
4002 enable_fast_install=yes
4009 enable_fast_install=yes
4012 DEPDIR="${am__leading_dot}deps"
4014 ac_config_commands="$ac_config_commands depfiles"
4017 am_make=${MAKE-make}
4018 cat > confinc << 'END'
4023 # If we don't find an include directive, just comment out the code.
4024 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4025 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4029 # First try GNU make style include.
4030 echo "include confinc" > confmf
4031 # We grep out `Entering directory' and `Leaving directory'
4032 # messages which can occur if `w' ends up in MAKEFLAGS.
4033 # In particular we don't look at `^make:' because GNU make might
4034 # be invoked under some other name (usually "gmake"), in which
4035 # case it prints its new name instead of `make'.
4036 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4041 # Now try BSD make style include.
4042 if test "$am__include" = "#"; then
4043 echo '.include "confinc"' > confmf
4044 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4045 am__include=.include
4052 echo "$as_me:$LINENO: result: $_am_result" >&5
4053 echo "${ECHO_T}$_am_result" >&6
4054 rm -f confinc confmf
4056 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4057 if test "${enable_dependency_tracking+set}" = set; then
4058 enableval="$enable_dependency_tracking"
4061 if test "x$enable_dependency_tracking" != xno; then
4062 am_depcomp="$ac_aux_dir/depcomp"
4067 if test "x$enable_dependency_tracking" != xno; then
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_CC+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 if test -n "$CC"; then
4111 echo "$as_me:$LINENO: result: $CC" >&5
4112 echo "${ECHO_T}$CC" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4119 if test -z "$ac_cv_prog_CC"; then
4121 # Extract the first word of "gcc", so it can be a program name with args.
4122 set dummy gcc; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 if test -n "$ac_ct_CC"; then
4129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_ac_ct_CC="gcc"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4150 echo "${ECHO_T}$ac_ct_CC" >&6
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4161 if test -z "$CC"; then
4162 if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}cc; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_CC+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if test -n "$CC"; then
4171 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_CC="${ac_tool_prefix}cc"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 if test -n "$CC"; then
4191 echo "$as_me:$LINENO: result: $CC" >&5
4192 echo "${ECHO_T}$CC" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4199 if test -z "$ac_cv_prog_CC"; then
4201 # Extract the first word of "cc", so it can be a program name with args.
4202 set dummy cc; ac_word=$2
4203 echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test -n "$ac_ct_CC"; then
4209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_ac_ct_CC="cc"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4228 if test -n "$ac_ct_CC"; then
4229 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4230 echo "${ECHO_T}$ac_ct_CC" >&6
4232 echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6
4242 if test -z "$CC"; then
4243 # Extract the first word of "cc", so it can be a program name with args.
4244 set dummy cc; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_prog_CC+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$CC"; then
4251 ac_cv_prog_CC="$CC" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4262 ac_prog_rejected=yes
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 if test $ac_prog_rejected = yes; then
4273 # We found a bogon in the path, so make sure we never use it.
4274 set dummy $ac_cv_prog_CC
4276 if test $# != 0; then
4277 # We chose a different compiler from the bogus one.
4278 # However, it has the same basename, so the bogon will be chosen
4279 # first if we set CC to just the basename; use the full file name.
4281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4287 if test -n "$CC"; then
4288 echo "$as_me:$LINENO: result: $CC" >&5
4289 echo "${ECHO_T}$CC" >&6
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4296 if test -z "$CC"; then
4297 if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4302 echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304 if test "${ac_cv_prog_CC+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 if test -n "$CC"; then
4328 echo "$as_me:$LINENO: result: $CC" >&5
4329 echo "${ECHO_T}$CC" >&6
4331 echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4335 test -n "$CC" && break
4338 if test -z "$CC"; then
4342 # Extract the first word of "$ac_prog", so it can be a program name with args.
4343 set dummy $ac_prog; ac_word=$2
4344 echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$ac_ct_CC"; then
4350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_ac_ct_CC="$ac_prog"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4369 if test -n "$ac_ct_CC"; then
4370 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4371 echo "${ECHO_T}$ac_ct_CC" >&6
4373 echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6
4377 test -n "$ac_ct_CC" && break
4386 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4387 See \`config.log' for more details." >&5
4388 echo "$as_me: error: no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details." >&2;}
4390 { (exit 1); exit 1; }; }
4392 # Provide some information about the compiler.
4393 echo "$as_me:$LINENO:" \
4394 "checking for C compiler version" >&5
4395 ac_compiler=`set X $ac_compile; echo $2`
4396 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4397 (eval $ac_compiler --version </dev/null >&5) 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }
4401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4402 (eval $ac_compiler -v </dev/null >&5) 2>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }
4406 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4407 (eval $ac_compiler -V </dev/null >&5) 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4432 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4433 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4434 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4436 (eval $ac_link_default) 2>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; then
4440 # Find the output, starting from the most likely. This scheme is
4441 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4444 # Be careful to initialize this variable, since it used to be cached.
4445 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4447 # b.out is created by i960 compilers.
4448 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4450 test -f "$ac_file" || continue
4452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4455 # This is the source file.
4458 # We found the default executable, but exeext='' is most
4462 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4463 # FIXME: I believe we export ac_cv_exeext for Libtool,
4464 # but it would be cool to find out if it's true. Does anybody
4465 # maintain Libtool? --akim.
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4477 See \`config.log' for more details." >&5
4478 echo "$as_me: error: C compiler cannot create executables
4479 See \`config.log' for more details." >&2;}
4480 { (exit 77); exit 77; }; }
4483 ac_exeext=$ac_cv_exeext
4484 echo "$as_me:$LINENO: result: $ac_file" >&5
4485 echo "${ECHO_T}$ac_file" >&6
4487 # Check the compiler produces executables we can run. If not, either
4488 # the compiler is broken, or we cross compile.
4489 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4491 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4492 # If not cross compiling, check that we can run a simple program.
4493 if test "$cross_compiling" != yes; then
4494 if { ac_try='./$ac_file'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4502 if test "$cross_compiling" = maybe; then
4505 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4506 If you meant to cross compile, use \`--host'.
4507 See \`config.log' for more details." >&5
4508 echo "$as_me: error: cannot run C compiled programs.
4509 If you meant to cross compile, use \`--host'.
4510 See \`config.log' for more details." >&2;}
4511 { (exit 1); exit 1; }; }
4515 echo "$as_me:$LINENO: result: yes" >&5
4516 echo "${ECHO_T}yes" >&6
4518 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4519 ac_clean_files=$ac_clean_files_save
4520 # Check the compiler produces executables we can run. If not, either
4521 # the compiler is broken, or we cross compile.
4522 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4523 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4524 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4525 echo "${ECHO_T}$cross_compiling" >&6
4527 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4528 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530 (eval $ac_link) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4535 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4536 # work properly (i.e., refer to `conftest.exe'), while it won't with
4538 for ac_file in conftest.exe conftest conftest.*; do
4539 test -f "$ac_file" || continue
4541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4549 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4550 See \`config.log' for more details." >&5
4551 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4552 See \`config.log' for more details." >&2;}
4553 { (exit 1); exit 1; }; }
4556 rm -f conftest$ac_cv_exeext
4557 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4558 echo "${ECHO_T}$ac_cv_exeext" >&6
4560 rm -f conftest.$ac_ext
4561 EXEEXT=$ac_cv_exeext
4563 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4564 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4565 if test "${ac_cv_objext+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4583 rm -f conftest.o conftest.obj
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; then
4589 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4601 See \`config.log' for more details." >&5
4602 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4603 See \`config.log' for more details." >&2;}
4604 { (exit 1); exit 1; }; }
4607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4609 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4610 echo "${ECHO_T}$ac_cv_objext" >&6
4611 OBJEXT=$ac_cv_objext
4613 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4614 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 cat >conftest.$ac_ext <<_ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4669 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4671 GCC=`test $ac_compiler_gnu = yes && echo yes`
4672 ac_test_CFLAGS=${CFLAGS+set}
4673 ac_save_CFLAGS=$CFLAGS
4675 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4677 if test "${ac_cv_prog_cc_g+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest.$ac_objext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4727 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4728 if test "$ac_test_CFLAGS" = set; then
4729 CFLAGS=$ac_save_CFLAGS
4730 elif test $ac_cv_prog_cc_g = yes; then
4731 if test "$GCC" = yes; then
4737 if test "$GCC" = yes; then
4743 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4744 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4745 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 ac_cv_prog_cc_stdc=no
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4758 #include <sys/types.h>
4759 #include <sys/stat.h>
4760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4761 struct buf { int x; };
4762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4763 static char *e (p, i)
4769 static char *f (char * (*g) (char **, int), char **p, ...)
4774 s = g (p, va_arg (v,int));
4779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4780 function prototypes and stuff, but not '\xHH' hex character constants.
4781 These don't provoke an error unfortunately, instead are silently treated
4782 as 'x'. The following induces an error, until -std1 is added to get
4783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4784 array size at least. It's necessary to write '\x00'==0 to get something
4785 that's true only with -std1. */
4786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4788 int test (int i, double x);
4789 struct s1 {int (*f) (int a);};
4790 struct s2 {int (*f) (double a);};
4791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4797 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4802 # Don't try gcc -ansi; that turns off useful extensions and
4803 # breaks some systems' header files.
4804 # AIX -qlanglvl=ansi
4805 # Ultrix and OSF/1 -std1
4806 # HP-UX 10.20 and later -Ae
4807 # HP-UX older versions -Aa -D_HPUX_SOURCE
4808 # SVR4 -Xc -D__EXTENSIONS__
4809 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4811 CC="$ac_save_CC $ac_arg"
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag"
4822 || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_cv_prog_cc_stdc=$ac_arg
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4841 rm -f conftest.err conftest.$ac_objext
4843 rm -f conftest.$ac_ext conftest.$ac_objext
4848 case "x$ac_cv_prog_cc_stdc" in
4850 echo "$as_me:$LINENO: result: none needed" >&5
4851 echo "${ECHO_T}none needed" >&6 ;;
4853 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4854 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4855 CC="$CC $ac_cv_prog_cc_stdc" ;;
4858 # Some people use a C++ compiler to compile C. Since we use `exit',
4859 # in C++ we need to declare it. In case someone uses the same compiler
4860 # for both compiling C and C++ we need to have the C++ compiler decide
4861 # the declaration of exit, since it's the most demanding environment.
4862 cat >conftest.$ac_ext <<_ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4871 grep -v '^ *+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 for ac_declaration in \
4891 'extern "C" void std::exit (int) throw (); using std::exit;' \
4892 'extern "C" void std::exit (int); using std::exit;' \
4893 'extern "C" void exit (int) throw ();' \
4894 'extern "C" void exit (int);' \
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_c_werror_flag"
4923 || test ! -s conftest.err'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4958 rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 if test -n "$ac_declaration"; then
4990 echo '#ifdef __cplusplus' >>confdefs.h
4991 echo $ac_declaration >>confdefs.h
4992 echo '#endif' >>confdefs.h
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007 depcc="$CC" am_compiler_list=
5009 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5010 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5011 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5015 # We make a subdir and do the tests there. Otherwise we can end up
5016 # making bogus files that we don't know about and never remove. For
5017 # instance it was reported that on HP-UX the gcc test will end up
5018 # making a dummy file named `D' -- because `-MD' means `put the output
5021 # Copy depcomp to subdir because otherwise we won't find it if we're
5022 # using a relative directory.
5023 cp "$am_depcomp" conftest.dir
5025 # We will build objects and dependencies in a subdirectory because
5026 # it helps to detect inapplicable dependency modes. For instance
5027 # both Tru64's cc and ICC support -MD to output dependencies as a
5028 # side effect of compilation, but ICC will put the dependencies in
5029 # the current directory while Tru64 will put them in the object
5033 am_cv_CC_dependencies_compiler_type=none
5034 if test "$am_compiler_list" = ""; then
5035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5037 for depmode in $am_compiler_list; do
5038 # Setup a source with many dependencies, because some compilers
5039 # like to wrap large dependency lists on column 80 (with \), and
5040 # we should not choose a depcomp mode which is confused by this.
5042 # We need to recreate these files for each test, as the compiler may
5043 # overwrite some of them when testing with obscure command lines.
5044 # This happens at least with the AIX C compiler.
5046 for i in 1 2 3 4 5 6; do
5047 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5048 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5049 # Solaris 8's {/usr,}/bin/sh.
5050 touch sub/conftst$i.h
5052 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5056 # after this tag, mechanisms are not by side-effect, so they'll
5057 # only be used when explicitly requested
5058 if test "x$enable_dependency_tracking" = xyes; then
5066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5067 # mode. It turns out that the SunPro C++ compiler does not properly
5068 # handle `-M -o', and we need to detect this.
5069 if depmode=$depmode \
5070 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5071 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5072 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5073 >/dev/null 2>conftest.err &&
5074 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5075 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5076 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5077 # icc doesn't choke on unknown options, it will just issue warnings
5078 # or remarks (even with -Werror). So we grep stderr for any message
5079 # that says an option was ignored or not supported.
5080 # When given -MP, icc 7.0 and 7.1 complain thusly:
5081 # icc: Command line warning: ignoring option '-M'; no argument required
5082 # The diagnosis changed in icc 8.0:
5083 # icc: Command line remark: option '-MP' not supported
5084 if (grep 'ignoring option' conftest.err ||
5085 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5086 am_cv_CC_dependencies_compiler_type=$depmode
5095 am_cv_CC_dependencies_compiler_type=none
5099 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5100 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5101 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5106 test "x$enable_dependency_tracking" != xno \
5107 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5109 am__fastdepCC_FALSE='#'
5111 am__fastdepCC_TRUE='#'
5112 am__fastdepCC_FALSE=
5116 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5117 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5118 if test "${lt_cv_path_SED+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 # Loop through the user's path and test for sed and gsed.
5122 # Then use that list of sed's as ones to test for truncation.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for lt_ac_prog in sed gsed; do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5131 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5138 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5139 # along with /bin/sed that truncates output.
5140 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5141 test ! -f $lt_ac_sed && continue
5142 cat /dev/null > conftest.in
5144 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5145 # Check for GNU sed and select it if it is found.
5146 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5147 lt_cv_path_SED=$lt_ac_sed
5151 cat conftest.in conftest.in >conftest.tmp
5152 mv conftest.tmp conftest.in
5153 cp conftest.in conftest.nl
5155 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5156 cmp -s conftest.out conftest.nl || break
5157 # 10000 chars as input seems more than enough
5158 test $lt_ac_count -gt 10 && break
5159 lt_ac_count=`expr $lt_ac_count + 1`
5160 if test $lt_ac_count -gt $lt_ac_max; then
5161 lt_ac_max=$lt_ac_count
5162 lt_cv_path_SED=$lt_ac_sed
5170 echo "$as_me:$LINENO: result: $SED" >&5
5171 echo "${ECHO_T}$SED" >&6
5173 echo "$as_me:$LINENO: checking for egrep" >&5
5174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5175 if test "${ac_cv_prog_egrep+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5179 then ac_cv_prog_egrep='grep -E'
5180 else ac_cv_prog_egrep='egrep'
5183 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5184 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5185 EGREP=$ac_cv_prog_egrep
5189 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5190 if test "${with_gnu_ld+set}" = set; then
5191 withval="$with_gnu_ld"
5192 test "$withval" = no || with_gnu_ld=yes
5197 if test "$GCC" = yes; then
5198 # Check if gcc -print-prog-name=ld gives a path.
5199 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5200 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5203 # gcc leaves a trailing carriage return which upsets mingw
5204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5209 # Accept absolute paths.
5211 re_direlt='/[^/][^/]*/\.\./'
5212 # Canonicalize the pathname of ld
5213 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5214 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5215 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5217 test -z "$LD" && LD="$ac_prog"
5220 # If it fails, then pretend we aren't using GCC.
5224 # If it is relative, then search for the first ld in PATH.
5228 elif test "$with_gnu_ld" = yes; then
5229 echo "$as_me:$LINENO: checking for GNU ld" >&5
5230 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5232 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5233 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5235 if test "${lt_cv_path_LD+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 if test -z "$LD"; then
5239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5240 for ac_dir in $PATH; do
5242 test -z "$ac_dir" && ac_dir=.
5243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5244 lt_cv_path_LD="$ac_dir/$ac_prog"
5245 # Check to see if the program is GNU ld. I'd rather use --version,
5246 # but apparently some variants of GNU ld only accept -v.
5247 # Break only if it was the GNU/non-GNU ld that we prefer.
5248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5249 *GNU* | *'with BFD'*)
5250 test "$with_gnu_ld" != no && break
5253 test "$with_gnu_ld" != yes && break
5260 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5265 if test -n "$LD"; then
5266 echo "$as_me:$LINENO: result: $LD" >&5
5267 echo "${ECHO_T}$LD" >&6
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5272 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5273 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5274 { (exit 1); exit 1; }; }
5275 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5276 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5277 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5281 case `$LD -v 2>&1 </dev/null` in
5282 *GNU* | *'with BFD'*)
5283 lt_cv_prog_gnu_ld=yes
5286 lt_cv_prog_gnu_ld=no
5290 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5291 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5292 with_gnu_ld=$lt_cv_prog_gnu_ld
5295 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5296 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5297 if test "${lt_cv_ld_reload_flag+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 lt_cv_ld_reload_flag='-r'
5302 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5303 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5304 reload_flag=$lt_cv_ld_reload_flag
5305 case $reload_flag in
5307 *) reload_flag=" $reload_flag" ;;
5309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5312 if test "$GCC" = yes; then
5313 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5320 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5321 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5322 if test "${lt_cv_path_NM+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 if test -n "$NM"; then
5326 # Let the user override the test.
5329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5330 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5332 test -z "$ac_dir" && ac_dir=.
5333 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5334 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5335 # Check to see if the nm accepts a BSD-compat flag.
5336 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5337 # nm: unknown option "B" ignored
5338 # Tru64's nm complains that /dev/null is an invalid object file
5339 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5340 */dev/null* | *'Invalid file or object type'*)
5341 lt_cv_path_NM="$tmp_nm -B"
5345 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5347 lt_cv_path_NM="$tmp_nm -p"
5351 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5352 continue # so that we can try to find one that supports BSD flags
5359 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5362 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5363 echo "${ECHO_T}$lt_cv_path_NM" >&6
5366 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5369 if test "$LN_S" = "ln -s"; then
5370 echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5373 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5374 echo "${ECHO_T}no, using $LN_S" >&6
5377 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5378 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5379 if test "${lt_cv_deplibs_check_method+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 lt_cv_file_magic_cmd='$MAGIC_CMD'
5383 lt_cv_file_magic_test_file=
5384 lt_cv_deplibs_check_method='unknown'
5385 # Need to set the preceding variable on all platforms that support
5386 # interlibrary dependencies.
5387 # 'none' -- dependencies not supported.
5388 # `unknown' -- same as none, but documents that we really don't know.
5389 # 'pass_all' -- all dependencies passed with no checks.
5390 # 'test_compile' -- check by making test program.
5391 # 'file_magic [[regex]]' -- check by looking for files in library path
5392 # which responds to the $file_magic_cmd with a given extended regex.
5393 # If you have `file' or equivalent on your system and you're not sure
5394 # whether `pass_all' will *always* work, you probably want this one.
5398 lt_cv_deplibs_check_method=pass_all
5402 lt_cv_deplibs_check_method=pass_all
5406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5407 lt_cv_file_magic_cmd='/usr/bin/file -L'
5408 lt_cv_file_magic_test_file=/shlib/libc.so
5412 # func_win32_libid is a shell function defined in ltmain.sh
5413 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5414 lt_cv_file_magic_cmd='func_win32_libid'
5418 # Base MSYS/MinGW do not provide the 'file' command needed by
5419 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5420 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5421 lt_cv_file_magic_cmd='$OBJDUMP -f'
5424 darwin* | rhapsody*)
5425 lt_cv_deplibs_check_method=pass_all
5428 freebsd* | kfreebsd*-gnu | dragonfly*)
5429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5432 # Not sure whether the presence of OpenBSD here was a mistake.
5433 # Let's accept both of them until this is cleared up.
5434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435 lt_cv_file_magic_cmd=/usr/bin/file
5436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5440 lt_cv_deplibs_check_method=pass_all
5445 lt_cv_deplibs_check_method=pass_all
5448 hpux10.20* | hpux11*)
5449 lt_cv_file_magic_cmd=/usr/bin/file
5452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456 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]'
5457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5466 irix5* | irix6* | nonstopux*)
5468 *-32|*"-32 ") libmagic=32-bit;;
5469 *-n32|*"-n32 ") libmagic=N32;;
5470 *-64|*"-64 ") libmagic=64-bit;;
5471 *) libmagic=never-match;;
5473 lt_cv_deplibs_check_method=pass_all
5476 # This must be Linux ELF.
5478 lt_cv_deplibs_check_method=pass_all
5482 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5491 lt_cv_file_magic_cmd=/usr/bin/file
5492 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5496 lt_cv_deplibs_check_method=unknown
5500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5507 osf3* | osf4* | osf5*)
5508 lt_cv_deplibs_check_method=pass_all
5512 lt_cv_deplibs_check_method=pass_all
5516 lt_cv_deplibs_check_method=pass_all
5519 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5520 case $host_vendor in
5522 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]'
5523 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5526 lt_cv_deplibs_check_method=pass_all
5529 lt_cv_file_magic_cmd='/bin/file'
5530 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5533 lt_cv_file_magic_cmd='/bin/file'
5534 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5535 lt_cv_file_magic_test_file=/lib/libc.so
5538 lt_cv_deplibs_check_method=pass_all
5543 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5544 lt_cv_deplibs_check_method=pass_all
5549 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5551 file_magic_cmd=$lt_cv_file_magic_cmd
5552 deplibs_check_method=$lt_cv_deplibs_check_method
5553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5558 # If no C compiler was specified, use CC.
5561 # Allow CC to be a program name with arguments.
5565 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5566 if test "${enable_libtool_lock+set}" = set; then
5567 enableval="$enable_libtool_lock"
5570 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5572 # Some flags need to be propagated to the compiler or linker for good
5576 # Find out which ABI we are using.
5577 echo 'int i;' > conftest.$ac_ext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579 (eval $ac_compile) 2>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; then
5583 case `/usr/bin/file conftest.$ac_objext` in
5595 # Find out which ABI we are using.
5596 echo '#line 5596 "configure"' > conftest.$ac_ext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; then
5602 if test "$lt_cv_prog_gnu_ld" = yes; then
5603 case `/usr/bin/file conftest.$ac_objext` in
5605 LD="${LD-ld} -melf32bsmip"
5608 LD="${LD-ld} -melf32bmipn32"
5611 LD="${LD-ld} -melf64bmip"
5615 case `/usr/bin/file conftest.$ac_objext` in
5631 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5632 # Find out which ABI we are using.
5633 echo 'int i;' > conftest.$ac_ext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; then
5639 case `/usr/bin/file conftest.o` in
5643 LD="${LD-ld} -m elf_i386"
5645 ppc64-*linux*|powerpc64-*linux*)
5646 LD="${LD-ld} -m elf32ppclinux"
5649 LD="${LD-ld} -m elf_s390"
5652 LD="${LD-ld} -m elf32_sparc"
5659 LD="${LD-ld} -m elf_x86_64"
5661 ppc*-*linux*|powerpc*-*linux*)
5662 LD="${LD-ld} -m elf64ppc"
5665 LD="${LD-ld} -m elf64_s390"
5668 LD="${LD-ld} -m elf64_sparc"
5678 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5679 SAVE_CFLAGS="$CFLAGS"
5680 CFLAGS="$CFLAGS -belf"
5681 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5682 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5683 if test "${lt_cv_cc_needs_belf+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 ac_cpp='$CPP $CPPFLAGS'
5688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5707 rm -f conftest.$ac_objext conftest$ac_exeext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5709 (eval $ac_link) 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try='test -z "$ac_c_werror_flag"
5717 || test ! -s conftest.err'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest$ac_exeext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 lt_cv_cc_needs_belf=yes
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 lt_cv_cc_needs_belf=no
5736 rm -f conftest.err conftest.$ac_objext \
5737 conftest$ac_exeext conftest.$ac_ext
5739 ac_cpp='$CPP $CPPFLAGS'
5740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5746 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5747 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5749 CFLAGS="$SAVE_CFLAGS"
5752 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5753 if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$DLLTOOL"; then
5762 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 DLLTOOL=$ac_cv_prog_DLLTOOL
5781 if test -n "$DLLTOOL"; then
5782 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5783 echo "${ECHO_T}$DLLTOOL" >&6
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5790 if test -z "$ac_cv_prog_DLLTOOL"; then
5791 ac_ct_DLLTOOL=$DLLTOOL
5792 # Extract the first word of "dlltool", so it can be a program name with args.
5793 set dummy dlltool; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 if test -n "$ac_ct_DLLTOOL"; then
5800 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5819 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5820 if test -n "$ac_ct_DLLTOOL"; then
5821 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5822 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5824 echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5828 DLLTOOL=$ac_ct_DLLTOOL
5830 DLLTOOL="$ac_cv_prog_DLLTOOL"
5833 if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5835 set dummy ${ac_tool_prefix}as; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_AS+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 if test -n "$AS"; then
5842 ac_cv_prog_AS="$AS" # Let the user override the test.
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_AS="${ac_tool_prefix}as"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 if test -n "$AS"; then
5862 echo "$as_me:$LINENO: result: $AS" >&5
5863 echo "${ECHO_T}$AS" >&6
5865 echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5870 if test -z "$ac_cv_prog_AS"; then
5872 # Extract the first word of "as", so it can be a program name with args.
5873 set dummy as; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 if test -n "$ac_ct_AS"; then
5880 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_AS="as"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5899 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5900 if test -n "$ac_ct_AS"; then
5901 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5902 echo "${ECHO_T}$ac_ct_AS" >&6
5904 echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5916 echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 if test -n "$OBJDUMP"; then
5922 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 OBJDUMP=$ac_cv_prog_OBJDUMP
5941 if test -n "$OBJDUMP"; then
5942 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5943 echo "${ECHO_T}$OBJDUMP" >&6
5945 echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5950 if test -z "$ac_cv_prog_OBJDUMP"; then
5951 ac_ct_OBJDUMP=$OBJDUMP
5952 # Extract the first word of "objdump", so it can be a program name with args.
5953 set dummy objdump; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 if test -n "$ac_ct_OBJDUMP"; then
5960 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5979 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5980 if test -n "$ac_ct_OBJDUMP"; then
5981 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5982 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5984 echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5988 OBJDUMP=$ac_ct_OBJDUMP
5990 OBJDUMP="$ac_cv_prog_OBJDUMP"
5997 need_locks="$enable_libtool_lock"
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6006 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6007 # On Suns, sometimes $CPP names a directory.
6008 if test -n "$CPP" && test -d "$CPP"; then
6011 if test -z "$CPP"; then
6012 if test "${ac_cv_prog_CPP+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 # Double quotes because CPP needs to be expanded
6016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6019 for ac_c_preproc_warn_flag in '' yes
6021 # Use a header file that comes with gcc, so configuring glibc
6022 # with a fresh cross-compiler works.
6023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6024 # <limits.h> exists even on freestanding compilers.
6025 # On the NeXT, cc -E runs the code through the compiler's parser,
6026 # not just through cpp. "Syntax error" is here to catch this case.
6027 cat >conftest.$ac_ext <<_ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6034 # include <limits.h>
6036 # include <assert.h>
6040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043 grep -v '^ *+' conftest.er1 >conftest.err
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } >/dev/null; then
6048 if test -s conftest.err; then
6049 ac_cpp_err=$ac_c_preproc_warn_flag
6050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6057 if test -z "$ac_cpp_err"; then
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 # Broken: fails on valid input.
6066 rm -f conftest.err conftest.$ac_ext
6068 # OK, works on sane cases. Now check whether non-existent headers
6069 # can be detected and how.
6070 cat >conftest.$ac_ext <<_ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 #include <ac_nonexistent.h>
6078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } >/dev/null; then
6086 if test -s conftest.err; then
6087 ac_cpp_err=$ac_c_preproc_warn_flag
6088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6095 if test -z "$ac_cpp_err"; then
6096 # Broken: success on invalid input.
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 # Passes both tests.
6106 rm -f conftest.err conftest.$ac_ext
6109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6110 rm -f conftest.err conftest.$ac_ext
6111 if $ac_preproc_ok; then
6123 echo "$as_me:$LINENO: result: $CPP" >&5
6124 echo "${ECHO_T}$CPP" >&6
6126 for ac_c_preproc_warn_flag in '' yes
6128 # Use a header file that comes with gcc, so configuring glibc
6129 # with a fresh cross-compiler works.
6130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6131 # <limits.h> exists even on freestanding compilers.
6132 # On the NeXT, cc -E runs the code through the compiler's parser,
6133 # not just through cpp. "Syntax error" is here to catch this case.
6134 cat >conftest.$ac_ext <<_ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6141 # include <limits.h>
6143 # include <assert.h>
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null; then
6155 if test -s conftest.err; then
6156 ac_cpp_err=$ac_c_preproc_warn_flag
6157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164 if test -z "$ac_cpp_err"; then
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 # Broken: fails on valid input.
6173 rm -f conftest.err conftest.$ac_ext
6175 # OK, works on sane cases. Now check whether non-existent headers
6176 # can be detected and how.
6177 cat >conftest.$ac_ext <<_ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 #include <ac_nonexistent.h>
6185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6188 grep -v '^ *+' conftest.er1 >conftest.err
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } >/dev/null; then
6193 if test -s conftest.err; then
6194 ac_cpp_err=$ac_c_preproc_warn_flag
6195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6202 if test -z "$ac_cpp_err"; then
6203 # Broken: success on invalid input.
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 # Passes both tests.
6213 rm -f conftest.err conftest.$ac_ext
6216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6217 rm -f conftest.err conftest.$ac_ext
6218 if $ac_preproc_ok; then
6221 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6222 See \`config.log' for more details." >&5
6223 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6224 See \`config.log' for more details." >&2;}
6225 { (exit 1); exit 1; }; }
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6237 if test "${ac_cv_header_stdc+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6259 rm -f conftest.$ac_objext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>conftest.er1
6263 grep -v '^ *+' conftest.er1 >conftest.err
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest.$ac_objext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_header_stdc=yes
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_cv_header_stdc=no
6288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6290 if test $ac_cv_header_stdc = yes; then
6291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6302 $EGREP "memchr" >/dev/null 2>&1; then
6305 ac_cv_header_stdc=no
6311 if test $ac_cv_header_stdc = yes; then
6312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 $EGREP "free" >/dev/null 2>&1; then
6326 ac_cv_header_stdc=no
6332 if test $ac_cv_header_stdc = yes; then
6333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6334 if test "$cross_compiling" = yes; then
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6344 #if ((' ' & 0x0FF) == 0x020)
6345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6348 # define ISLOWER(c) \
6349 (('a' <= (c) && (c) <= 'i') \
6350 || ('j' <= (c) && (c) <= 'r') \
6351 || ('s' <= (c) && (c) <= 'z'))
6352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6360 for (i = 0; i < 256; i++)
6361 if (XOR (islower (i), ISLOWER (i))
6362 || toupper (i) != TOUPPER (i))
6367 rm -f conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6380 echo "$as_me: program exited with status $ac_status" >&5
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6385 ac_cv_header_stdc=no
6387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6391 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6392 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6393 if test $ac_cv_header_stdc = yes; then
6395 cat >>confdefs.h <<\_ACEOF
6396 #define STDC_HEADERS 1
6401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6412 inttypes.h stdint.h unistd.h
6414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 cat >conftest.$ac_ext <<_ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 $ac_includes_default
6428 #include <$ac_header>
6430 rm -f conftest.$ac_objext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432 (eval $ac_compile) 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -z "$ac_c_werror_flag"
6440 || test ! -s conftest.err'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 eval "$as_ac_Header=yes"
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 eval "$as_ac_Header=no"
6459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6464 cat >>confdefs.h <<_ACEOF
6465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 for ac_header in dlfcn.h
6476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478 echo "$as_me:$LINENO: checking for $ac_header" >&5
6479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6486 # Is the header compilable?
6487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 $ac_includes_default
6496 #include <$ac_header>
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6502 grep -v '^ *+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_header_compiler=yes
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_header_compiler=no
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6529 echo "${ECHO_T}$ac_header_compiler" >&6
6531 # Is the header present?
6532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6534 cat >conftest.$ac_ext <<_ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <$ac_header>
6542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } >/dev/null; then
6550 if test -s conftest.err; then
6551 ac_cpp_err=$ac_c_preproc_warn_flag
6552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6559 if test -z "$ac_cpp_err"; then
6560 ac_header_preproc=yes
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_header_preproc=no
6567 rm -f conftest.err conftest.$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6569 echo "${ECHO_T}$ac_header_preproc" >&6
6571 # So? What about this header?
6572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6578 ac_header_preproc=yes
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6595 ## --------------------------------------------- ##
6596 ## Report this to <http://www.openldap.org/its/> ##
6597 ## --------------------------------------------- ##
6600 sed "s/^/$as_me: WARNING: /" >&2
6603 echo "$as_me:$LINENO: checking for $ac_header" >&5
6604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 eval "$as_ac_Header=\$ac_header_preproc"
6610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6624 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6626 # find the maximum length of command line arguments
6627 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6628 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6629 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 # On DJGPP, this test can blow up pretty badly due to problems in libc
6638 # (any single argument exceeding 2000 bytes causes a buffer overrun
6639 # during glob expansion). Even if it were fixed, the result of this
6640 # check would be larger than it should be.
6641 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6645 # Under GNU Hurd, this test is not required because there is
6646 # no limit to the length of command line arguments.
6647 # Libtool will interpret -1 as no limit whatsoever
6648 lt_cv_sys_max_cmd_len=-1;
6652 # On Win9x/ME, this test blows up -- it succeeds, but takes
6653 # about 5 minutes as the teststring grows exponentially.
6654 # Worse, since 9x/ME are not pre-emptively multitasking,
6655 # you end up with a "frozen" computer, even though with patience
6656 # the test eventually succeeds (with a max line length of 256k).
6657 # Instead, let's just punt: use the minimum linelength reported by
6658 # all of the supported platforms: 8192 (on NT/2K/XP).
6659 lt_cv_sys_max_cmd_len=8192;
6663 # On AmigaOS with pdksh, this test takes hours, literally.
6664 # So we just punt and use a minimum line length of 8192.
6665 lt_cv_sys_max_cmd_len=8192;
6668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6669 # This has been around since 386BSD, at least. Likely further.
6670 if test -x /sbin/sysctl; then
6671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6672 elif test -x /usr/sbin/sysctl; then
6673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6677 # And add a safety zone
6678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6682 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6683 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6684 # nice to cause kernel panics so lets avoid the loop below.
6685 # First set a reasonable default.
6686 lt_cv_sys_max_cmd_len=16384
6688 if test -x /sbin/sysconfig; then
6689 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6690 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6695 # If test is not a shell built-in, we'll probably end up computing a
6696 # maximum length that is only half of the actual maximum length, but
6698 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6699 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6700 = "XX$teststring") >/dev/null 2>&1 &&
6701 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6702 lt_cv_sys_max_cmd_len=$new_result &&
6703 test $i != 17 # 1/2 MB should be enough
6706 teststring=$teststring$teststring
6709 # Add a significant safety factor because C++ compilers can tack on massive
6710 # amounts of additional arguments before passing them to the linker.
6711 # It appears as though 1/2 is a usable value.
6712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6718 if test -n $lt_cv_sys_max_cmd_len ; then
6719 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6720 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6722 echo "$as_me:$LINENO: result: none" >&5
6723 echo "${ECHO_T}none" >&6
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6731 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6732 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745 # Transform an extracted symbol line into a proper C declaration
6746 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6748 # Transform an extracted symbol line into symbol name and symbol address
6749 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'"
6751 # Define system-specific variables.
6756 cygwin* | mingw* | pw32*)
6757 symcode='[ABCDGISTW]'
6759 hpux*) # Its linker distinguishes data from code symbols
6760 if test "$host_cpu" = ia64; then
6761 symcode='[ABCDEGRST]'
6763 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6764 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'"
6767 if test "$host_cpu" = ia64; then
6768 symcode='[ABCDGIRSTW]'
6769 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6770 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'"
6774 symcode='[BCDEGRST]'
6777 symcode='[BCDEGQRST]'
6787 # Handle CRLF in mingw tool chain
6791 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6795 # If we're using GNU nm, then use its standard symbol codes.
6796 case `$NM -V 2>&1` in
6797 *GNU* | *'with BFD'*)
6798 symcode='[ABCDGIRSTW]' ;;
6801 # Try without a prefix undercore, then with it.
6802 for ac_symprfx in "" "_"; do
6804 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6805 symxfrm="\\1 $ac_symprfx\\2 \\2"
6807 # Write the raw and C identifiers.
6808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6810 # Check to see that the pipe works correctly.
6814 cat > conftest.$ac_ext <<EOF
6819 void nm_test_func(){}
6823 int main(){nm_test_var='a';nm_test_func();return(0);}
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; then
6831 # Now try to grab the symbols.
6833 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6834 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && test -s "$nlist"; then
6838 # Try sorting and uniquifying the output.
6839 if sort "$nlist" | uniq > "$nlist"T; then
6840 mv -f "$nlist"T "$nlist"
6845 # Make sure that we snagged all the symbols we need.
6846 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6847 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6848 cat <<EOF > conftest.$ac_ext
6854 # Now generate the symbol file.
6855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6857 cat <<EOF >> conftest.$ac_ext
6858 #if defined (__STDC__) && __STDC__
6859 # define lt_ptr_t void *
6861 # define lt_ptr_t char *
6865 /* The mapping between symbol names and symbols. */
6870 lt_preloaded_symbols[] =
6873 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6874 cat <<\EOF >> conftest.$ac_ext
6882 # Now try linking the two files.
6883 mv conftest.$ac_objext conftstm.$ac_objext
6884 lt_save_LIBS="$LIBS"
6885 lt_save_CFLAGS="$CFLAGS"
6886 LIBS="conftstm.$ac_objext"
6887 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6895 LIBS="$lt_save_LIBS"
6896 CFLAGS="$lt_save_CFLAGS"
6898 echo "cannot find nm_test_func in $nlist" >&5
6901 echo "cannot find nm_test_var in $nlist" >&5
6904 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6907 echo "$progname: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6910 rm -f conftest* conftst*
6912 # Do not use the global_symbol_pipe unless it works.
6913 if test "$pipe_works" = yes; then
6916 lt_cv_sys_global_symbol_pipe=
6922 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6923 lt_cv_sys_global_symbol_to_cdecl=
6925 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6926 echo "$as_me:$LINENO: result: failed" >&5
6927 echo "${ECHO_T}failed" >&6
6929 echo "$as_me:$LINENO: result: ok" >&5
6930 echo "${ECHO_T}ok" >&6
6933 echo "$as_me:$LINENO: checking for objdir" >&5
6934 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6935 if test "${lt_cv_objdir+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 rm -f .libs 2>/dev/null
6939 mkdir .libs 2>/dev/null
6940 if test -d .libs; then
6943 # MS-DOS does not allow filenames that begin with a dot.
6946 rmdir .libs 2>/dev/null
6948 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6949 echo "${ECHO_T}$lt_cv_objdir" >&6
6950 objdir=$lt_cv_objdir
6958 # AIX sometimes has problems with the GCC collect2 program. For some
6959 # reason, if we set the COLLECT_NAMES environment variable, the problems
6960 # vanish in a puff of smoke.
6961 if test "X${COLLECT_NAMES+set}" != Xset; then
6963 export COLLECT_NAMES
6968 # Sed substitution that helps us do robust quoting. It backslashifies
6969 # metacharacters that are still active within double-quoted strings.
6970 Xsed='sed -e 1s/^X//'
6971 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6973 # Same as above, but do not quote variable references.
6974 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6976 # Sed substitution to delay expansion of an escaped shell variable in a
6977 # double_quote_subst'ed string.
6978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6980 # Sed substitution to avoid accidental globbing in evaled expressions
6981 no_glob_subst='s/\*/\\\*/g'
6987 default_ofile=libtool
6988 can_build_shared=yes
6990 # All known linkers require a `.a' archive for static linking (except MSVC,
6991 # which needs '.lib').
6993 ltmain="$ac_aux_dir/ltmain.sh"
6994 ofile="$default_ofile"
6995 with_gnu_ld="$lt_cv_prog_gnu_ld"
6997 if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}ar; ac_word=$2
7000 echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7002 if test "${ac_cv_prog_AR+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 if test -n "$AR"; then
7006 ac_cv_prog_AR="$AR" # Let the user override the test.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_AR="${ac_tool_prefix}ar"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 if test -n "$AR"; then
7026 echo "$as_me:$LINENO: result: $AR" >&5
7027 echo "${ECHO_T}$AR" >&6
7029 echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6
7034 if test -z "$ac_cv_prog_AR"; then
7036 # Extract the first word of "ar", so it can be a program name with args.
7037 set dummy ar; ac_word=$2
7038 echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7040 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 if test -n "$ac_ct_AR"; then
7044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_AR="ar"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7063 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7064 if test -n "$ac_ct_AR"; then
7065 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7066 echo "${ECHO_T}$ac_ct_AR" >&6
7068 echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7080 echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7082 if test "${ac_cv_prog_RANLIB+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 if test -n "$RANLIB"; then
7086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 RANLIB=$ac_cv_prog_RANLIB
7105 if test -n "$RANLIB"; then
7106 echo "$as_me:$LINENO: result: $RANLIB" >&5
7107 echo "${ECHO_T}$RANLIB" >&6
7109 echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7114 if test -z "$ac_cv_prog_RANLIB"; then
7115 ac_ct_RANLIB=$RANLIB
7116 # Extract the first word of "ranlib", so it can be a program name with args.
7117 set dummy ranlib; ac_word=$2
7118 echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 if test -n "$ac_ct_RANLIB"; then
7124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_RANLIB="ranlib"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7144 if test -n "$ac_ct_RANLIB"; then
7145 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7146 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7148 echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6
7152 RANLIB=$ac_ct_RANLIB
7154 RANLIB="$ac_cv_prog_RANLIB"
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}strip; ac_word=$2
7160 echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7162 if test "${ac_cv_prog_STRIP+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 if test -n "$STRIP"; then
7166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 STRIP=$ac_cv_prog_STRIP
7185 if test -n "$STRIP"; then
7186 echo "$as_me:$LINENO: result: $STRIP" >&5
7187 echo "${ECHO_T}$STRIP" >&6
7189 echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6
7194 if test -z "$ac_cv_prog_STRIP"; then
7196 # Extract the first word of "strip", so it can be a program name with args.
7197 set dummy strip; ac_word=$2
7198 echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 if test -n "$ac_ct_STRIP"; then
7204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_ac_ct_STRIP="strip"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7224 if test -n "$ac_ct_STRIP"; then
7225 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7226 echo "${ECHO_T}$ac_ct_STRIP" >&6
7228 echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6
7234 STRIP="$ac_cv_prog_STRIP"
7239 old_CFLAGS="$CFLAGS"
7241 # Set sane defaults for various variables
7242 test -z "$AR" && AR=ar
7243 test -z "$AR_FLAGS" && AR_FLAGS=cru
7244 test -z "$AS" && AS=as
7245 test -z "$CC" && CC=cc
7246 test -z "$LTCC" && LTCC=$CC
7247 test -z "$DLLTOOL" && DLLTOOL=dlltool
7248 test -z "$LD" && LD=ld
7249 test -z "$LN_S" && LN_S="ln -s"
7250 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7251 test -z "$NM" && NM=nm
7252 test -z "$SED" && SED=sed
7253 test -z "$OBJDUMP" && OBJDUMP=objdump
7254 test -z "$RANLIB" && RANLIB=:
7255 test -z "$STRIP" && STRIP=:
7256 test -z "$ac_objext" && ac_objext=o
7258 # Determine commands to create old-style static archives.
7259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7260 old_postinstall_cmds='chmod 644 $oldlib'
7261 old_postuninstall_cmds=
7263 if test -n "$RANLIB"; then
7266 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7269 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7275 for cc_temp in $compiler""; do
7277 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7278 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7283 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7286 # Only perform the check for file, if the check method requires it
7287 case $deplibs_check_method in
7289 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7290 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7291 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7292 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7300 lt_save_MAGIC_CMD="$MAGIC_CMD"
7301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7302 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7303 for ac_dir in $ac_dummy; do
7305 test -z "$ac_dir" && ac_dir=.
7306 if test -f $ac_dir/${ac_tool_prefix}file; then
7307 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7308 if test -n "$file_magic_test_file"; then
7309 case $deplibs_check_method in
7311 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7314 $EGREP "$file_magic_regex" > /dev/null; then
7319 *** Warning: the command libtool uses to detect shared libraries,
7320 *** $file_magic_cmd, produces output that libtool cannot recognize.
7321 *** The result is that libtool may fail to recognize shared libraries
7322 *** as such. This will affect the creation of libtool libraries that
7323 *** depend on shared libraries, but programs linked with such libtool
7324 *** libraries will work regardless of this problem. Nevertheless, you
7325 *** may want to report the problem to your system manager and/or to
7326 *** bug-libtool@gnu.org
7336 MAGIC_CMD="$lt_save_MAGIC_CMD"
7341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342 if test -n "$MAGIC_CMD"; then
7343 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7344 echo "${ECHO_T}$MAGIC_CMD" >&6
7346 echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7350 if test -z "$lt_cv_path_MAGIC_CMD"; then
7351 if test -n "$ac_tool_prefix"; then
7352 echo "$as_me:$LINENO: checking for file" >&5
7353 echo $ECHO_N "checking for file... $ECHO_C" >&6
7354 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7362 lt_save_MAGIC_CMD="$MAGIC_CMD"
7363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7365 for ac_dir in $ac_dummy; do
7367 test -z "$ac_dir" && ac_dir=.
7368 if test -f $ac_dir/file; then
7369 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7370 if test -n "$file_magic_test_file"; then
7371 case $deplibs_check_method in
7373 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7376 $EGREP "$file_magic_regex" > /dev/null; then
7381 *** Warning: the command libtool uses to detect shared libraries,
7382 *** $file_magic_cmd, produces output that libtool cannot recognize.
7383 *** The result is that libtool may fail to recognize shared libraries
7384 *** as such. This will affect the creation of libtool libraries that
7385 *** depend on shared libraries, but programs linked with such libtool
7386 *** libraries will work regardless of this problem. Nevertheless, you
7387 *** may want to report the problem to your system manager and/or to
7388 *** bug-libtool@gnu.org
7398 MAGIC_CMD="$lt_save_MAGIC_CMD"
7403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7404 if test -n "$MAGIC_CMD"; then
7405 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7406 echo "${ECHO_T}$MAGIC_CMD" >&6
7408 echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7422 enable_win32_dll=yes
7424 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7425 if test "${enable_libtool_lock+set}" = set; then
7426 enableval="$enable_libtool_lock"
7429 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7432 # Check whether --with-pic or --without-pic was given.
7433 if test "${with_pic+set}" = set; then
7439 test -z "$pic_mode" && pic_mode=default
7441 # Use C for the default configuration in the libtool script
7445 ac_cpp='$CPP $CPPFLAGS'
7446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451 # Source file extension for C test sources.
7454 # Object file extension for compiled C test sources.
7458 # Code to be used in simple compile tests
7459 lt_simple_compile_test_code="int some_variable = 0;\n"
7461 # Code to be used in simple link tests
7462 lt_simple_link_test_code='int main(){return(0);}\n'
7465 # If no C compiler was specified, use CC.
7468 # Allow CC to be a program name with arguments.
7472 # save warnings/boilerplate of simple test code
7473 ac_outfile=conftest.$ac_objext
7474 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7476 _lt_compiler_boilerplate=`cat conftest.err`
7479 ac_outfile=conftest.$ac_objext
7480 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7482 _lt_linker_boilerplate=`cat conftest.err`
7487 # Check for any special shared library compilation flags.
7490 if test "$GCC" = no; then
7493 lt_prog_cc_shlib='-belf'
7497 if test -n "$lt_prog_cc_shlib"; then
7498 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7499 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7500 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7502 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7503 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7504 lt_cv_prog_cc_can_build_shared=no
7510 # Check to make sure the static flag actually works.
7512 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7513 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7514 if test "${lt_prog_compiler_static_works+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 lt_prog_compiler_static_works=no
7518 save_LDFLAGS="$LDFLAGS"
7519 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7520 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7522 # The linker can only warn and ignore the option if not recognized
7523 # So say no if there are warnings
7524 if test -s conftest.err; then
7525 # Append any errors to the config.log.
7526 cat conftest.err 1>&5
7527 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7528 $SED '/^$/d' conftest.err >conftest.er2
7529 if diff conftest.exp conftest.er2 >/dev/null; then
7530 lt_prog_compiler_static_works=yes
7533 lt_prog_compiler_static_works=yes
7537 LDFLAGS="$save_LDFLAGS"
7540 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7541 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7543 if test x"$lt_prog_compiler_static_works" = xyes; then
7546 lt_prog_compiler_static=
7552 lt_prog_compiler_no_builtin_flag=
7554 if test "$GCC" = yes; then
7555 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7558 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7559 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7560 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 lt_cv_prog_compiler_rtti_exceptions=no
7564 ac_outfile=conftest.$ac_objext
7565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7566 lt_compiler_flag="-fno-rtti -fno-exceptions"
7567 # Insert the option either (1) after the last *FLAGS variable, or
7568 # (2) before a word containing "conftest.", or (3) at the end.
7569 # Note that $ac_compile itself does not contain backslashes and begins
7570 # with a dollar sign (not a hyphen), so the echo should work correctly.
7571 # The option is referenced via a variable to avoid confusing sed.
7572 lt_compile=`echo "$ac_compile" | $SED \
7573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7575 -e 's:$: $lt_compiler_flag:'`
7576 (eval echo "\"\$as_me:7576: $lt_compile\"" >&5)
7577 (eval "$lt_compile" 2>conftest.err)
7579 cat conftest.err >&5
7580 echo "$as_me:7580: \$? = $ac_status" >&5
7581 if (exit $ac_status) && test -s "$ac_outfile"; then
7582 # The compiler can only warn and ignore the option if not recognized
7583 # So say no if there are warnings other than the usual output.
7584 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7585 $SED '/^$/d' conftest.err >conftest.er2
7586 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7587 lt_cv_prog_compiler_rtti_exceptions=yes
7593 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7594 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7596 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7597 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7604 lt_prog_compiler_wl=
7605 lt_prog_compiler_pic=
7606 lt_prog_compiler_static=
7608 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7611 if test "$GCC" = yes; then
7612 lt_prog_compiler_wl='-Wl,'
7613 lt_prog_compiler_static='-static'
7617 # All AIX code is PIC.
7618 if test "$host_cpu" = ia64; then
7619 # AIX 5 now supports IA64 processor
7620 lt_prog_compiler_static='-Bstatic'
7625 # FIXME: we need at least 68020 code to build shared libraries, but
7626 # adding the `-m68020' flag to GCC prevents building anything better,
7628 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7631 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7632 # PIC is the default for these OSes.
7635 mingw* | pw32* | os2*)
7636 # This hack is so that the source file can tell whether it is being
7637 # built for inclusion in a dll (and should export symbols for example).
7638 lt_prog_compiler_pic='-DDLL_EXPORT'
7641 darwin* | rhapsody*)
7642 # PIC is the default on this platform
7643 # Common symbols not allowed in MH_DYLIB files
7644 lt_prog_compiler_pic='-fno-common'
7648 # Just because we use GCC doesn't mean we suddenly get shared libraries
7649 # on systems that don't support them.
7650 lt_prog_compiler_can_build_shared=no
7655 if test -d /usr/nec; then
7656 lt_prog_compiler_pic=-Kconform_pic
7661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7668 lt_prog_compiler_pic='-fPIC'
7674 lt_prog_compiler_pic='-fPIC'
7678 # PORTME Check for flag to pass linker flags through the system compiler.
7681 lt_prog_compiler_wl='-Wl,'
7682 if test "$host_cpu" = ia64; then
7683 # AIX 5 now supports IA64 processor
7684 lt_prog_compiler_static='-Bstatic'
7686 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7690 # PIC is the default on this platform
7691 # Common symbols not allowed in MH_DYLIB files
7692 case $cc_basename in
7694 lt_prog_compiler_pic='-qnocommon'
7695 lt_prog_compiler_wl='-Wl,'
7700 mingw* | pw32* | os2*)
7701 # This hack is so that the source file can tell whether it is being
7702 # built for inclusion in a dll (and should export symbols for example).
7703 lt_prog_compiler_pic='-DDLL_EXPORT'
7706 hpux9* | hpux10* | hpux11*)
7707 lt_prog_compiler_wl='-Wl,'
7708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7715 lt_prog_compiler_pic='+Z'
7718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7719 lt_prog_compiler_static='${wl}-a ${wl}archive'
7722 irix5* | irix6* | nonstopux*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # PIC (with -KPIC) is the default.
7725 lt_prog_compiler_static='-non_shared'
7729 lt_prog_compiler_pic='-KPIC'
7730 lt_prog_compiler_static='-Bstatic'
7734 case $cc_basename in
7736 lt_prog_compiler_wl='-Wl,'
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-static'
7740 pgcc* | pgf77* | pgf90* | pgf95*)
7741 # Portland Group compilers (*not* the Pentium gcc compiler,
7742 # which looks to be a dead project)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-fpic'
7745 lt_prog_compiler_static='-Bstatic'
7748 lt_prog_compiler_wl='-Wl,'
7749 # All Alpha code is PIC.
7750 lt_prog_compiler_static='-non_shared'
7755 osf3* | osf4* | osf5*)
7756 lt_prog_compiler_wl='-Wl,'
7757 # All OSF/1 code is PIC.
7758 lt_prog_compiler_static='-non_shared'
7762 lt_prog_compiler_pic='-Kpic'
7763 lt_prog_compiler_static='-dn'
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 case $cc_basename in
7771 lt_prog_compiler_wl='-Qoption ld ';;
7773 lt_prog_compiler_wl='-Wl,';;
7778 lt_prog_compiler_wl='-Qoption ld '
7779 lt_prog_compiler_pic='-PIC'
7780 lt_prog_compiler_static='-Bstatic'
7783 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7790 if test -d /usr/nec ;then
7791 lt_prog_compiler_pic='-Kconform_pic'
7792 lt_prog_compiler_static='-Bstatic'
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_can_build_shared=no
7802 lt_prog_compiler_pic='-pic'
7803 lt_prog_compiler_static='-Bstatic'
7807 lt_prog_compiler_can_build_shared=no
7812 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7813 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7816 # Check to make sure the PIC flag actually works.
7818 if test -n "$lt_prog_compiler_pic"; then
7820 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7821 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7822 if test "${lt_prog_compiler_pic_works+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 lt_prog_compiler_pic_works=no
7826 ac_outfile=conftest.$ac_objext
7827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7828 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7829 # Insert the option either (1) after the last *FLAGS variable, or
7830 # (2) before a word containing "conftest.", or (3) at the end.
7831 # Note that $ac_compile itself does not contain backslashes and begins
7832 # with a dollar sign (not a hyphen), so the echo should work correctly.
7833 # The option is referenced via a variable to avoid confusing sed.
7834 lt_compile=`echo "$ac_compile" | $SED \
7835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7837 -e 's:$: $lt_compiler_flag:'`
7838 (eval echo "\"\$as_me:7838: $lt_compile\"" >&5)
7839 (eval "$lt_compile" 2>conftest.err)
7841 cat conftest.err >&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
7843 if (exit $ac_status) && test -s "$ac_outfile"; then
7844 # The compiler can only warn and ignore the option if not recognized
7845 # So say no if there are warnings other than the usual output.
7846 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7847 $SED '/^$/d' conftest.err >conftest.er2
7848 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7849 lt_prog_compiler_pic_works=yes
7855 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7856 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7858 if test x"$lt_prog_compiler_pic_works" = xyes; then
7859 case $lt_prog_compiler_pic in
7861 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7864 lt_prog_compiler_pic=
7865 lt_prog_compiler_can_build_shared=no
7870 # For platforms which do not support PIC, -DPIC is meaningless:
7872 lt_prog_compiler_pic=
7875 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7879 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7880 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7881 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 lt_cv_prog_compiler_c_o=no
7885 $rm -r conftest 2>/dev/null
7889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7891 lt_compiler_flag="-o out/conftest2.$ac_objext"
7892 # Insert the option either (1) after the last *FLAGS variable, or
7893 # (2) before a word containing "conftest.", or (3) at the end.
7894 # Note that $ac_compile itself does not contain backslashes and begins
7895 # with a dollar sign (not a hyphen), so the echo should work correctly.
7896 lt_compile=`echo "$ac_compile" | $SED \
7897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899 -e 's:$: $lt_compiler_flag:'`
7900 (eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7901 (eval "$lt_compile" 2>out/conftest.err)
7903 cat out/conftest.err >&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7907 # The compiler can only warn and ignore the option if not recognized
7908 # So say no if there are warnings
7909 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7910 $SED '/^$/d' out/conftest.err >out/conftest.er2
7911 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7912 lt_cv_prog_compiler_c_o=yes
7917 # SGI C++ compiler will create directory out/ii_files/ for
7918 # template instantiation
7919 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7920 $rm out/* && rmdir out
7926 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7930 hard_links="nottested"
7931 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7932 # do not overwrite the value of need_locks provided by the user
7933 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7939 ln conftest.a conftest.b 2>&5 || hard_links=no
7940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7941 echo "$as_me:$LINENO: result: $hard_links" >&5
7942 echo "${ECHO_T}$hard_links" >&6
7943 if test "$hard_links" = no; then
7944 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7952 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7956 allow_undefined_flag=
7957 enable_shared_with_static_runtimes=no
7959 archive_expsym_cmds=
7960 old_archive_From_new_cmds=
7961 old_archive_from_expsyms_cmds=
7962 export_dynamic_flag_spec=
7963 whole_archive_flag_spec=
7964 thread_safe_flag_spec=
7965 hardcode_libdir_flag_spec=
7966 hardcode_libdir_flag_spec_ld=
7967 hardcode_libdir_separator=
7970 hardcode_shlibpath_var=unsupported
7971 link_all_deplibs=unknown
7972 hardcode_automatic=no
7975 always_export_symbols=no
7976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7977 # include_expsyms should be a list of space-separated symbols to be *always*
7978 # included in the symbol list
7980 # exclude_expsyms can be an extended regexp of symbols to exclude
7981 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7982 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7983 # as well as any symbol that contains `d'.
7984 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7985 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7986 # platforms (ab)use it in PIC code, but their linkers get confused if
7987 # the symbol is explicitly referenced. Since portable code cannot
7988 # rely on this symbol name, it's probably fine to never include it in
7989 # preloaded symbol tables.
7990 extract_expsyms_cmds=
7991 # Just being paranoid about ensuring that cc_basename is set.
7992 for cc_temp in $compiler""; do
7994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8003 cygwin* | mingw* | pw32*)
8004 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8005 # When not using gcc, we currently assume that we are using
8006 # Microsoft Visual C++.
8007 if test "$GCC" != yes; then
8017 if test "$with_gnu_ld" = yes; then
8018 # If archive_cmds runs LD, not CC, wlarc should be empty
8021 # Set some defaults for GNU ld with shared library support. These
8022 # are reset later if shared libraries are not supported. Putting them
8023 # here allows them to be overridden if necessary.
8024 runpath_var=LD_RUN_PATH
8025 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8026 export_dynamic_flag_spec='${wl}--export-dynamic'
8027 # ancient GNU ld didn't support --whole-archive et. al.
8028 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8029 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8031 whole_archive_flag_spec=
8033 supports_anon_versioning=no
8034 case `$LD -v 2>/dev/null` in
8035 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8036 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8037 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8038 *\ 2.11.*) ;; # other 2.11 versions
8039 *) supports_anon_versioning=yes ;;
8042 # See if GNU ld supports shared libraries.
8044 aix3* | aix4* | aix5*)
8045 # On AIX/PPC, the GNU linker is very broken
8046 if test "$host_cpu" != ia64; then
8050 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8051 *** to be unable to reliably create shared libraries on AIX.
8052 *** Therefore, libtool is disabling shared libraries support. If you
8053 *** really care for shared libraries, you may want to modify your PATH
8054 *** so that a non-GNU linker is found, and then restart.
8061 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)'
8062 hardcode_libdir_flag_spec='-L$libdir'
8063 hardcode_minus_L=yes
8065 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8066 # that the semantics of dynamic libraries on AmigaOS, at least up
8067 # to version 4, is to share data among multiple programs linked
8068 # with the same dynamic library. Since this doesn't match the
8069 # behavior of shared libraries on other platforms, we can't use
8075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8076 allow_undefined_flag=unsupported
8077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8078 # support --undefined. This deserves some investigation. FIXME
8079 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085 cygwin* | mingw* | pw32*)
8086 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8087 # as there is no search path for DLLs.
8088 hardcode_libdir_flag_spec='-L$libdir'
8089 allow_undefined_flag=unsupported
8090 always_export_symbols=no
8091 enable_shared_with_static_runtimes=yes
8092 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8094 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8096 # If the export-symbols file already is a .def file (1st line
8097 # is EXPORTS), use it as is; otherwise, prepend...
8098 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8099 cp $export_symbols $output_objdir/$soname.def;
8101 echo EXPORTS > $output_objdir/$soname.def;
8102 cat $export_symbols >> $output_objdir/$soname.def;
8104 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8113 case $cc_basename,$host_cpu in
8114 pgcc*) # Portland Group C compiler
8115 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'
8116 tmp_addflag=' $pic_flag'
8118 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8119 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'
8120 tmp_addflag=' $pic_flag -Mnomain' ;;
8121 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8122 tmp_addflag=' -i_dynamic' ;;
8123 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8124 tmp_addflag=' -i_dynamic -nofor_main' ;;
8125 ifc* | ifort*) # Intel Fortran compiler
8126 tmp_addflag=' -nofor_main' ;;
8128 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130 if test $supports_anon_versioning = yes; then
8131 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8133 $echo "local: *; };" >> $output_objdir/$libname.ver~
8134 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8143 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8157 *** create shared libraries on Solaris systems. Therefore, libtool
8158 *** is disabling shared libraries support. We urge you to upgrade GNU
8159 *** binutils to release 2.9.1 or newer. Another option is to modify
8160 *** your PATH or compiler configuration so that the native linker is
8161 *** used, and then restart.
8164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8173 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8176 hardcode_shlibpath_var=no
8180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8189 if test "$ld_shlibs" = no; then
8191 hardcode_libdir_flag_spec=
8192 export_dynamic_flag_spec=
8193 whole_archive_flag_spec=
8196 # PORTME fill in a description of your system's linker (not GNU ld)
8199 allow_undefined_flag=unsupported
8200 always_export_symbols=yes
8201 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'
8202 # Note: this linker hardcodes the directories in LIBPATH if there
8203 # are no directories specified by -L.
8204 hardcode_minus_L=yes
8205 if test "$GCC" = yes && test -z "$link_static_flag"; then
8206 # Neither direct hardcoding nor static linking is supported with a
8208 hardcode_direct=unsupported
8213 if test "$host_cpu" = ia64; then
8214 # On IA64, the linker does run time linking by default, so we don't
8215 # have to do anything special.
8216 aix_use_runtimelinking=no
8217 exp_sym_flag='-Bexport'
8220 # If we're using GNU nm, then we don't want the "-C" option.
8221 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8223 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'
8225 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'
8227 aix_use_runtimelinking=no
8229 # Test if we are trying to use run time linking or normal
8230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8231 # need to do runtime linking.
8232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8233 for ld_flag in $LDFLAGS; do
8234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8235 aix_use_runtimelinking=yes
8241 exp_sym_flag='-bexport'
8242 no_entry_flag='-bnoentry'
8245 # When large executables or shared objects are built, AIX ld can
8246 # have problems creating the table of contents. If linking a library
8247 # or program results in "error TOC overflow" add -mminimal-toc to
8248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8253 hardcode_libdir_separator=':'
8254 link_all_deplibs=yes
8256 if test "$GCC" = yes; then
8257 case $host_os in aix4.[012]|aix4.[012].*)
8258 # We only want to do this on AIX 4.2 and lower, the check
8259 # below for broken collect2 doesn't work under 4.3+
8260 collect2name=`${CC} -print-prog-name=collect2`
8261 if test -f "$collect2name" && \
8262 strings "$collect2name" | grep resolve_lib_name >/dev/null
8264 # We have reworked collect2
8267 # We have old collect2
8268 hardcode_direct=unsupported
8269 # It fails to find uninstalled libraries when the uninstalled
8270 # path is not listed in the libpath. Setting hardcode_minus_L
8271 # to unsupported forces relinking
8272 hardcode_minus_L=yes
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 hardcode_libdir_separator=
8277 shared_flag='-shared'
8278 if test "$aix_use_runtimelinking" = yes; then
8279 shared_flag="$shared_flag "'${wl}-G'
8283 if test "$host_cpu" = ia64; then
8284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8285 # chokes on -Wl,-G. The following line is correct:
8288 if test "$aix_use_runtimelinking" = yes; then
8289 shared_flag='${wl}-G'
8291 shared_flag='${wl}-bM:SRE'
8296 # It seems that -bexpall does not export symbols beginning with
8297 # underscore (_), so it is better to generate a list of symbols to export.
8298 always_export_symbols=yes
8299 if test "$aix_use_runtimelinking" = yes; then
8300 # Warning - without using the other runtime loading flags (-brtl),
8301 # -berok will link without error, but may produce a broken library.
8302 allow_undefined_flag='-berok'
8303 # Determine the default libpath from the value encoded in an empty executable.
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest$ac_exeext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8344 # Check for a 64-bit object if we didn't find anything.
8345 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; }
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8352 rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8357 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"
8359 if test "$host_cpu" = ia64; then
8360 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8361 allow_undefined_flag="-z nodefs"
8362 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"
8364 # Determine the default libpath from the value encoded in an empty executable.
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8382 (eval $ac_link) 2>conftest.er1
8384 grep -v '^ *+' conftest.er1 >conftest.err
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -z "$ac_c_werror_flag"
8390 || test ! -s conftest.err'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest$ac_exeext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8405 # Check for a 64-bit object if we didn't find anything.
8406 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; }
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8413 rm -f conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8417 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8418 # Warning - without using the other run time loading flags,
8419 # -berok will link without error, but may produce a broken library.
8420 no_undefined_flag=' ${wl}-bernotok'
8421 allow_undefined_flag=' ${wl}-berok'
8422 # -bexpall does not export symbols beginning with underscore (_)
8423 always_export_symbols=yes
8424 # Exported symbols can be pulled into shared objects from archives
8425 whole_archive_flag_spec=' '
8426 archive_cmds_need_lc=yes
8427 # This is similar to how AIX traditionally builds its shared libraries.
8428 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'
8434 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)'
8435 hardcode_libdir_flag_spec='-L$libdir'
8436 hardcode_minus_L=yes
8437 # see comment about different semantics on the GNU ld section
8442 export_dynamic_flag_spec=-rdynamic
8445 cygwin* | mingw* | pw32*)
8446 # When not using gcc, we currently assume that we are using
8447 # Microsoft Visual C++.
8448 # hardcode_libdir_flag_spec is actually meaningless, as there is
8449 # no search path for DLLs.
8450 hardcode_libdir_flag_spec=' '
8451 allow_undefined_flag=unsupported
8452 # Tell ltmain to make .lib files, not .a files.
8454 # Tell ltmain to make .dll files, not .so files.
8456 # FIXME: Setting linknames here is a bad hack.
8457 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8458 # The linker will automatically build a .lib file if we build a DLL.
8459 old_archive_From_new_cmds='true'
8460 # FIXME: Should let the user specify the lib program.
8461 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8462 fix_srcfile_path='`cygpath -w "$srcfile"`'
8463 enable_shared_with_static_runtimes=yes
8466 darwin* | rhapsody*)
8468 rhapsody* | darwin1.[012])
8469 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8472 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8473 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8475 case ${MACOSX_DEPLOYMENT_TARGET} in
8477 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8480 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8486 archive_cmds_need_lc=no
8488 hardcode_automatic=yes
8489 hardcode_shlibpath_var=unsupported
8490 whole_archive_flag_spec=''
8491 link_all_deplibs=yes
8492 if test "$GCC" = yes ; then
8493 output_verbose_link_cmd='echo'
8494 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8495 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8497 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}'
8498 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}'
8500 case $cc_basename in
8502 output_verbose_link_cmd='echo'
8503 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8504 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8505 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8506 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}'
8507 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}'
8517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 hardcode_shlibpath_var=no
8526 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8527 # support. Future versions do this automatically, but an explicit c++rt0.o
8528 # does not break anything, and helps significantly (at the cost of a little
8531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8532 hardcode_libdir_flag_spec='-R$libdir'
8534 hardcode_shlibpath_var=no
8537 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_minus_L=yes
8542 hardcode_shlibpath_var=no
8545 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8546 freebsd* | kfreebsd*-gnu | dragonfly*)
8547 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8548 hardcode_libdir_flag_spec='-R$libdir'
8550 hardcode_shlibpath_var=no
8554 if test "$GCC" = yes; then
8555 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'
8557 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'
8559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8560 hardcode_libdir_separator=:
8563 # hardcode_minus_L: Not really in the search PATH,
8564 # but as the default location of the library.
8565 hardcode_minus_L=yes
8566 export_dynamic_flag_spec='${wl}-E'
8570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8573 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8576 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8582 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8589 if test "$with_gnu_ld" = no; then
8592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8593 hardcode_libdir_flag_spec_ld='+b $libdir'
8594 hardcode_libdir_separator=:
8596 hardcode_shlibpath_var=no
8599 hardcode_libdir_flag_spec='-L$libdir'
8601 hardcode_shlibpath_var=no
8603 # hardcode_minus_L: Not really in the search PATH,
8604 # but as the default location of the library.
8605 hardcode_minus_L=yes
8608 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8609 hardcode_libdir_separator=:
8611 export_dynamic_flag_spec='${wl}-E'
8613 # hardcode_minus_L: Not really in the search PATH,
8614 # but as the default location of the library.
8615 hardcode_minus_L=yes
8621 irix5* | irix6* | nonstopux*)
8622 if test "$GCC" = yes; then
8623 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'
8625 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'
8626 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 hardcode_libdir_separator=:
8630 link_all_deplibs=yes
8634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8637 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8639 hardcode_libdir_flag_spec='-R$libdir'
8641 hardcode_shlibpath_var=no
8645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 hardcode_libdir_separator=:
8649 hardcode_shlibpath_var=no
8654 hardcode_shlibpath_var=no
8655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8659 export_dynamic_flag_spec='${wl}-E'
8662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_libdir_flag_spec='-R$libdir'
8667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675 hardcode_libdir_flag_spec='-L$libdir'
8676 hardcode_minus_L=yes
8677 allow_undefined_flag=unsupported
8678 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'
8679 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8683 if test "$GCC" = yes; then
8684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8685 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'
8687 allow_undefined_flag=' -expect_unresolved \*'
8688 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'
8690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8691 hardcode_libdir_separator=:
8694 osf4* | osf5*) # as osf3* with the addition of -msym flag
8695 if test "$GCC" = yes; then
8696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8697 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'
8698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 allow_undefined_flag=' -expect_unresolved \*'
8701 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'
8702 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8703 $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'
8705 # Both c and cxx compiler support -rpath directly
8706 hardcode_libdir_flag_spec='-rpath $libdir'
8708 hardcode_libdir_separator=:
8712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8713 hardcode_shlibpath_var=no
8714 export_dynamic_flag_spec='${wl}-Bexport'
8715 runpath_var=LD_RUN_PATH
8716 hardcode_runpath_var=yes
8720 no_undefined_flag=' -z text'
8721 if test "$GCC" = yes; then
8723 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8725 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8728 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8732 hardcode_libdir_flag_spec='-R$libdir'
8733 hardcode_shlibpath_var=no
8735 solaris2.[0-5] | solaris2.[0-5].*) ;;
8737 # The compiler driver will combine linker options so we
8738 # cannot just pass the convience library names through
8739 # without $wl, iff we do not link with $LD.
8740 # Luckily, gcc supports the same syntax we need for Sun Studio.
8741 # Supported since Solaris 2.6 (maybe 2.5.1?)
8744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8746 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' ;;
8749 link_all_deplibs=yes
8753 if test "x$host_vendor" = xsequent; then
8754 # Use $CC to link under sequent, because it throws in some extra .o
8755 # files that make .init and .fini sections work.
8756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8760 hardcode_libdir_flag_spec='-L$libdir'
8762 hardcode_minus_L=yes
8763 hardcode_shlibpath_var=no
8767 case $host_vendor in
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_direct=yes # is this really true???
8773 ## LD is ld it makes a PLAMLIB
8774 ## CC just makes a GrossModule.
8775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8776 reload_cmds='$CC -r -o $output$reload_objs'
8780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8784 runpath_var='LD_RUN_PATH'
8785 hardcode_shlibpath_var=no
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_shlibpath_var=no
8791 export_dynamic_flag_spec='-Bexport'
8795 if test -d /usr/nec; then
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_shlibpath_var=no
8798 runpath_var=LD_RUN_PATH
8799 hardcode_runpath_var=yes
8805 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_shlibpath_var=no
8809 hardcode_runpath_var=yes
8810 runpath_var=LD_RUN_PATH
8813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8814 no_undefined_flag='${wl}-z ${wl}text'
8815 if test "$GCC" = yes; then
8816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8820 runpath_var='LD_RUN_PATH'
8821 hardcode_shlibpath_var=no
8825 no_undefined_flag=' -z text'
8826 # $CC -shared without GNU ld will not create a library from C++
8827 # object files and a static libstdc++, better avoid it by now
8828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8829 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8831 hardcode_libdir_flag_spec=
8832 hardcode_shlibpath_var=no
8833 runpath_var='LD_RUN_PATH'
8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_shlibpath_var=no
8848 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8849 echo "${ECHO_T}$ld_shlibs" >&6
8850 test "$ld_shlibs" = no && can_build_shared=no
8852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8853 if test "$GCC" = yes; then
8854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8858 # Do we need to explicitly link libc?
8860 case "x$archive_cmds_need_lc" in
8862 # Assume -lc should be added
8863 archive_cmds_need_lc=yes
8865 if test "$enable_shared" = yes && test "$GCC" = yes; then
8866 case $archive_cmds in
8868 # FIXME: we may have to deal with multi-command sequences.
8871 # Test whether the compiler implicitly links with -lc since on some
8872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8873 # to ld, don't add -lc before -lgcc.
8874 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8875 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8880 (eval $ac_compile) 2>&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } 2>conftest.err; then
8886 libobjs=conftest.$ac_objext
8888 wl=$lt_prog_compiler_wl
8894 lt_save_allow_undefined_flag=$allow_undefined_flag
8895 allow_undefined_flag=
8896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }
8902 archive_cmds_need_lc=no
8904 archive_cmds_need_lc=yes
8906 allow_undefined_flag=$lt_save_allow_undefined_flag
8908 cat conftest.err 1>&5
8911 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8912 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8919 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8922 libname_spec='lib$name'
8930 shlibpath_overrides_runpath=unknown
8932 dynamic_linker="$host_os ld.so"
8933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8934 if test "$GCC" = yes; then
8935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8937 # if the path contains ";" then we assume it to be the separator
8938 # otherwise default to the standard path separator (i.e. ":") - it is
8939 # assumed that no part of a normal pathname contains ";" but that should
8940 # okay in the real world where ";" in dirpaths is itself problematic.
8941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8948 need_lib_prefix=unknown
8949 hardcode_into_libs=no
8951 # when you set need_version to no, make sure it does not cause -set_version
8952 # flags to be left without arguments
8953 need_version=unknown
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8959 shlibpath_var=LIBPATH
8961 # AIX 3 has no versioning support, so we append a major version to the name.
8962 soname_spec='${libname}${release}${shared_ext}$major'
8969 hardcode_into_libs=yes
8970 if test "$host_cpu" = ia64; then
8971 # AIX 5 supports IA64
8972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8973 shlibpath_var=LD_LIBRARY_PATH
8975 # With GCC up to 2.95.x, collect2 would create an import file
8976 # for dependence libraries. The import file would start with
8977 # the line `#! .'. This would cause the generated library to
8978 # depend on `.', always an invalid library. This was fixed in
8979 # development snapshots of GCC prior to 3.0.
8981 aix4 | aix4.[01] | aix4.[01].*)
8982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8992 # soname into executable. Probably we can add versioning support to
8993 # collect2, so additional links can be useful in future.
8994 if test "$aix_use_runtimelinking" = yes; then
8995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8996 # instead of lib<name>.a to let people know that these are not
8997 # typical AIX shared libraries.
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 # We preserve .a as extension for shared libraries through AIX4.2
9001 # and later when we are not doing run time linking.
9002 library_names_spec='${libname}${release}.a $libname.a'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LIBPATH
9010 library_names_spec='$libname.ixlibrary $libname.a'
9011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9012 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'
9016 library_names_spec='${libname}${shared_ext}'
9017 dynamic_linker="$host_os ld.so"
9018 shlibpath_var=LIBRARY_PATH
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9030 # the default ld.so.conf also contains /usr/contrib/lib and
9031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9032 # libtool to hard-code these into programs
9035 cygwin* | mingw* | pw32*)
9036 version_type=windows
9041 case $GCC,$host_os in
9042 yes,cygwin* | yes,mingw* | yes,pw32*)
9043 library_names_spec='$libname.dll.a'
9044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9045 postinstall_cmds='base_file=`basename \${file}`~
9046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9047 dldir=$destdir/`dirname \$dlpath`~
9048 test -d \$dldir || mkdir -p \$dldir~
9049 $install_prog $dir/$dlname \$dldir/$dlname~
9050 chmod a+x \$dldir/$dlname'
9051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9052 dlpath=$dir/\$dldll~
9054 shlibpath_overrides_runpath=yes
9058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9063 # MinGW DLLs use traditional 'lib' prefix
9064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9067 # It is most probably a Windows format PATH printed by
9068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9069 # path with ; separators, and with drive letters. We can handle the
9070 # drive letters (cygwin fileutils understands them), so leave them,
9071 # especially as we might pass files found there to a mingw objdump,
9072 # which wouldn't understand a cygwinified path. Ahh.
9073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9079 # pw32 DLLs use 'pw' prefix rather than 'lib'
9080 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9089 dynamic_linker='Win32 ld.exe'
9090 # FIXME: first we should search . and the directory the executable is in
9094 darwin* | rhapsody*)
9095 dynamic_linker="$host_os dyld"
9099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9100 soname_spec='${libname}${release}${major}$shared_ext'
9101 shlibpath_overrides_runpath=yes
9102 shlibpath_var=DYLD_LIBRARY_PATH
9103 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9105 if test "$GCC" = yes; then
9106 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"`
9108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=no
9134 hardcode_into_libs=yes
9135 dynamic_linker='GNU ld.so'
9138 freebsd* | dragonfly*)
9139 # DragonFly does not have aout. When/if they implement a new
9140 # versioning mechanism, adjust this.
9141 if test -x /usr/bin/objformat; then
9142 objformat=`/usr/bin/objformat`
9145 freebsd[123]*) objformat=aout ;;
9149 version_type=freebsd-$objformat
9150 case $version_type in
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9161 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=yes
9166 freebsd3.[01]* | freebsdelf3.[01]*)
9167 shlibpath_overrides_runpath=yes
9168 hardcode_into_libs=yes
9171 shlibpath_overrides_runpath=no
9172 hardcode_into_libs=yes
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 hardcode_into_libs=yes
9187 hpux9* | hpux10* | hpux11*)
9188 # Give a soname corresponding to the major version so that dld.sl refuses to
9189 # link against other versions.
9196 hardcode_into_libs=yes
9197 dynamic_linker="$host_os dld.so"
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 if test "X$HPUX_IA64_MODE" = X32; then
9203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9211 hardcode_into_libs=yes
9212 dynamic_linker="$host_os dld.sl"
9213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9222 dynamic_linker="$host_os dld.sl"
9223 shlibpath_var=SHLIB_PATH
9224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9230 postinstall_cmds='chmod 555 $lib'
9233 irix5* | irix6* | nonstopux*)
9235 nonstopux*) version_type=nonstopux ;;
9237 if test "$lt_cv_prog_gnu_ld" = yes; then
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9248 irix5* | nonstopux*)
9252 case $LD in # libtool.m4 will add one of these switches to LD
9253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9254 libsuff= shlibsuff= libmagic=32-bit;;
9255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9256 libsuff=32 shlibsuff=N32 libmagic=N32;;
9257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9259 *) libsuff= shlibsuff= libmagic=never-match;;
9263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9264 shlibpath_overrides_runpath=no
9265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9267 hardcode_into_libs=yes
9270 # No shared lib support for Linux oldld, aout, or coff.
9271 linux*oldld* | linux*aout* | linux*coff*)
9275 # This must be Linux ELF.
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=no
9285 # This implies no fast_install, which is unacceptable.
9286 # Some rework will be needed to allow for fast_install
9287 # before this can be enabled.
9288 hardcode_into_libs=yes
9290 # Append ld.so.conf contents to the search path
9291 if test -f /etc/ld.so.conf; then
9292 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' ' '`
9293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9296 # We used to test for /lib/ld.so.1 and disable shared libraries on
9297 # powerpc, because MkLinux only supported shared libraries with the
9298 # GNU dynamic linker. Since this was broken with cross compilers,
9299 # most powerpc-linux boxes support dynamic linking these days and
9300 # people can always --disable-shared, the test was removed, and we
9301 # assume the GNU/Linux dynamic linker is in use.
9302 dynamic_linker='GNU/Linux ld.so'
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=no
9313 hardcode_into_libs=yes
9314 dynamic_linker='GNU ld.so'
9321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9324 dynamic_linker='NetBSD (a.out) ld.so'
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 dynamic_linker='NetBSD ld.elf_so'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 shlibpath_overrides_runpath=yes
9332 hardcode_into_libs=yes
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 shlibpath_overrides_runpath=yes
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 shlibpath_var=LD_LIBRARY_PATH
9349 shlibpath_overrides_runpath=yes
9355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9358 *) need_version=no ;;
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9365 openbsd2.[89] | openbsd2.[89].*)
9366 shlibpath_overrides_runpath=no
9369 shlibpath_overrides_runpath=yes
9373 shlibpath_overrides_runpath=yes
9378 libname_spec='$name'
9381 library_names_spec='$libname${shared_ext} $libname.a'
9382 dynamic_linker='OS/2 ld.exe'
9383 shlibpath_var=LIBPATH
9386 osf3* | osf4* | osf5*)
9390 soname_spec='${libname}${release}${shared_ext}$major'
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401 shlibpath_var=LD_LIBRARY_PATH
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 shlibpath_overrides_runpath=yes
9412 hardcode_into_libs=yes
9413 # ldd complains unless libraries are executable
9414 postinstall_cmds='chmod +x $lib'
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 shlibpath_overrides_runpath=yes
9423 if test "$with_gnu_ld" = yes; then
9429 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 case $host_vendor in
9436 shlibpath_overrides_runpath=no
9438 export_dynamic_flag_spec='${wl}-Blargedynsym'
9439 runpath_var=LD_RUN_PATH
9447 shlibpath_overrides_runpath=no
9448 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9454 if test -d /usr/nec ;then
9456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9457 soname_spec='$libname${shared_ext}.$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9473 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9474 echo "${ECHO_T}$dynamic_linker" >&6
9475 test "$dynamic_linker" = no && can_build_shared=no
9477 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9478 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9480 if test -n "$hardcode_libdir_flag_spec" || \
9481 test -n "$runpath_var" || \
9482 test "X$hardcode_automatic" = "Xyes" ; then
9484 # We can hardcode non-existant directories.
9485 if test "$hardcode_direct" != no &&
9486 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9487 # have to relink, otherwise we might link with an installed library
9488 # when we should be linking with a yet-to-be-installed one
9489 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9490 test "$hardcode_minus_L" != no; then
9491 # Linking always hardcodes the temporary library directory.
9492 hardcode_action=relink
9494 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9495 hardcode_action=immediate
9498 # We cannot hardcode anything, or else we can only hardcode existing
9500 hardcode_action=unsupported
9502 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9503 echo "${ECHO_T}$hardcode_action" >&6
9505 if test "$hardcode_action" = relink; then
9506 # Fast installation is not supported
9507 enable_fast_install=no
9508 elif test "$shlibpath_overrides_runpath" = yes ||
9509 test "$enable_shared" = no; then
9510 # Fast installation is not necessary
9511 enable_fast_install=needless
9516 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9517 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9518 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9520 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9521 echo "$as_me:$LINENO: result: yes" >&5
9522 echo "${ECHO_T}yes" >&6
9524 # FIXME - insert some real tests, host_os isn't really good enough
9527 if test -n "$STRIP" ; then
9528 striplib="$STRIP -x"
9529 echo "$as_me:$LINENO: result: yes" >&5
9530 echo "${ECHO_T}yes" >&6
9532 echo "$as_me:$LINENO: result: no" >&5
9533 echo "${ECHO_T}no" >&6
9537 echo "$as_me:$LINENO: result: no" >&5
9538 echo "${ECHO_T}no" >&6
9543 if test "x$enable_dlopen" != xyes; then
9544 enable_dlopen=unknown
9545 enable_dlopen_self=unknown
9546 enable_dlopen_self_static=unknown
9553 lt_cv_dlopen="load_add_on"
9555 lt_cv_dlopen_self=yes
9559 lt_cv_dlopen="LoadLibrary"
9564 lt_cv_dlopen="dlopen"
9569 # if libdl is installed we need to link against it
9570 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9571 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 ac_check_lib_save_LIBS=$LIBS
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 /* Override any gcc2 internal prototype to avoid an error. */
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_dl_dlopen=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_lib_dl_dlopen=no
9628 rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 LIBS=$ac_check_lib_save_LIBS
9632 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9633 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9634 if test $ac_cv_lib_dl_dlopen = yes; then
9635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9640 lt_cv_dlopen_self=yes
9647 echo "$as_me:$LINENO: checking for shl_load" >&5
9648 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9649 if test "${ac_cv_func_shl_load+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9660 #define shl_load innocuous_shl_load
9662 /* System header to define __stub macros and hopefully few prototypes,
9663 which can conflict with char shl_load (); below.
9664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9665 <limits.h> exists even on freestanding compilers. */
9668 # include <limits.h>
9670 # include <assert.h>
9675 /* Override any gcc2 internal prototype to avoid an error. */
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9683 /* The GNU C library defines this for functions which it implements
9684 to always fail with ENOSYS. Some functions are actually named
9685 something starting with __ and the normal name is an alias. */
9686 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9689 char (*f) () = shl_load;
9698 return f != shl_load;
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag"
9713 || test ! -s conftest.err'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest$ac_exeext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_cv_func_shl_load=yes
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9730 ac_cv_func_shl_load=no
9732 rm -f conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9735 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9736 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9737 if test $ac_cv_func_shl_load = yes; then
9738 lt_cv_dlopen="shl_load"
9740 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9741 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 ac_check_lib_save_LIBS=$LIBS
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag"
9779 || test ! -s conftest.err'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_cv_lib_dld_shl_load=yes
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_cv_lib_dld_shl_load=no
9798 rm -f conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_lib_save_LIBS
9802 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9803 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9804 if test $ac_cv_lib_dld_shl_load = yes; then
9805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9807 echo "$as_me:$LINENO: checking for dlopen" >&5
9808 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9809 if test "${ac_cv_func_dlopen+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 cat >conftest.$ac_ext <<_ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9820 #define dlopen innocuous_dlopen
9822 /* System header to define __stub macros and hopefully few prototypes,
9823 which can conflict with char dlopen (); below.
9824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9825 <limits.h> exists even on freestanding compilers. */
9828 # include <limits.h>
9830 # include <assert.h>
9835 /* Override any gcc2 internal prototype to avoid an error. */
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9843 /* The GNU C library defines this for functions which it implements
9844 to always fail with ENOSYS. Some functions are actually named
9845 something starting with __ and the normal name is an alias. */
9846 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9849 char (*f) () = dlopen;
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag"
9873 || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_func_dlopen=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_func_dlopen=no
9892 rm -f conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9895 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9896 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9897 if test $ac_cv_func_dlopen = yes; then
9898 lt_cv_dlopen="dlopen"
9900 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_check_lib_save_LIBS=$LIBS
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9914 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931 (eval $ac_link) 2>conftest.er1
9933 grep -v '^ *+' conftest.er1 >conftest.err
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -z "$ac_c_werror_flag"
9939 || test ! -s conftest.err'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; } &&
9945 { ac_try='test -s conftest$ac_exeext'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_lib_dl_dlopen=yes
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9956 ac_cv_lib_dl_dlopen=no
9958 rm -f conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 LIBS=$ac_check_lib_save_LIBS
9962 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9964 if test $ac_cv_lib_dl_dlopen = yes; then
9965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9967 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9968 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9969 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 ac_check_lib_save_LIBS=$LIBS
9974 cat >conftest.$ac_ext <<_ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9981 /* Override any gcc2 internal prototype to avoid an error. */
9985 /* We use char because int might match the return type of a gcc2
9986 builtin and then its argument prototype would still apply. */
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998 (eval $ac_link) 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -z "$ac_c_werror_flag"
10006 || test ! -s conftest.err'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; } &&
10012 { ac_try='test -s conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_lib_svld_dlopen=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_cv_lib_svld_dlopen=no
10025 rm -f conftest.err conftest.$ac_objext \
10026 conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10029 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10030 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10031 if test $ac_cv_lib_svld_dlopen = yes; then
10032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10034 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10035 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10036 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 ac_check_lib_save_LIBS=$LIBS
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10048 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>conftest.er1
10067 grep -v '^ *+' conftest.er1 >conftest.err
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } &&
10072 { ac_try='test -z "$ac_c_werror_flag"
10073 || test ! -s conftest.err'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_lib_dld_dld_link=yes
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_lib_dld_dld_link=no
10092 rm -f conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10097 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10098 if test $ac_cv_lib_dld_dld_link = yes; then
10099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10120 if test "x$lt_cv_dlopen" != xno; then
10126 case $lt_cv_dlopen in
10128 save_CPPFLAGS="$CPPFLAGS"
10129 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10131 save_LDFLAGS="$LDFLAGS"
10132 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10135 LIBS="$lt_cv_dlopen_libs $LIBS"
10137 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10138 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10139 if test "${lt_cv_dlopen_self+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 if test "$cross_compiling" = yes; then :
10143 lt_cv_dlopen_self=cross
10145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10146 lt_status=$lt_dlunknown
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10148 "configure"
10149 #include "confdefs.h"
10158 # define LT_DLGLOBAL RTLD_GLOBAL
10161 # define LT_DLGLOBAL DL_GLOBAL
10163 # define LT_DLGLOBAL 0
10167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10168 find out it does not work in some platform. */
10169 #ifndef LT_DLLAZY_OR_NOW
10171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10174 # define LT_DLLAZY_OR_NOW DL_LAZY
10177 # define LT_DLLAZY_OR_NOW RTLD_NOW
10180 # define LT_DLLAZY_OR_NOW DL_NOW
10182 # define LT_DLLAZY_OR_NOW 0
10190 extern "C" void exit (int);
10193 void fnord() { int i=42;}
10196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10197 int status = $lt_dlunknown;
10201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10202 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10203 /* dlclose (self); */
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10214 (./conftest; exit; ) >&5 2>/dev/null
10216 case x$lt_status in
10217 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10218 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10219 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10222 # compilation failed
10223 lt_cv_dlopen_self=no
10230 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10231 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10233 if test "x$lt_cv_dlopen_self" = xyes; then
10234 LDFLAGS="$LDFLAGS $link_static_flag"
10235 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10236 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10237 if test "${lt_cv_dlopen_self_static+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 if test "$cross_compiling" = yes; then :
10241 lt_cv_dlopen_self_static=cross
10243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10244 lt_status=$lt_dlunknown
10245 cat > conftest.$ac_ext <<EOF
10246 #line 10246 "configure"
10247 #include "confdefs.h"
10256 # define LT_DLGLOBAL RTLD_GLOBAL
10259 # define LT_DLGLOBAL DL_GLOBAL
10261 # define LT_DLGLOBAL 0
10265 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266 find out it does not work in some platform. */
10267 #ifndef LT_DLLAZY_OR_NOW
10269 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10272 # define LT_DLLAZY_OR_NOW DL_LAZY
10275 # define LT_DLLAZY_OR_NOW RTLD_NOW
10278 # define LT_DLLAZY_OR_NOW DL_NOW
10280 # define LT_DLLAZY_OR_NOW 0
10288 extern "C" void exit (int);
10291 void fnord() { int i=42;}
10294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10295 int status = $lt_dlunknown;
10299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10300 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10301 /* dlclose (self); */
10307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10312 (./conftest; exit; ) >&5 2>/dev/null
10314 case x$lt_status in
10315 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10316 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10317 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10320 # compilation failed
10321 lt_cv_dlopen_self_static=no
10328 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10329 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10332 CPPFLAGS="$save_CPPFLAGS"
10333 LDFLAGS="$save_LDFLAGS"
10338 case $lt_cv_dlopen_self in
10339 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10340 *) enable_dlopen_self=unknown ;;
10343 case $lt_cv_dlopen_self_static in
10344 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10345 *) enable_dlopen_self_static=unknown ;;
10350 # Report which librarie types wil actually be built
10351 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10352 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10353 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10354 echo "${ECHO_T}$can_build_shared" >&6
10356 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10357 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10358 test "$can_build_shared" = "no" && enable_shared=no
10360 # On AIX, shared libraries and static libraries use the same namespace, and
10361 # are all built from PIC.
10364 test "$enable_shared" = yes && enable_static=no
10365 if test -n "$RANLIB"; then
10366 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10367 postinstall_cmds='$RANLIB $lib'
10372 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10373 test "$enable_shared" = yes && enable_static=no
10377 echo "$as_me:$LINENO: result: $enable_shared" >&5
10378 echo "${ECHO_T}$enable_shared" >&6
10380 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10381 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10382 # Make sure either enable_shared or enable_static is yes.
10383 test "$enable_shared" = yes || enable_static=yes
10384 echo "$as_me:$LINENO: result: $enable_static" >&5
10385 echo "${ECHO_T}$enable_static" >&6
10387 # The else clause should only fire when bootstrapping the
10388 # libtool distribution, otherwise you forgot to ship ltmain.sh
10389 # with your package, and you will get complaints that there are
10390 # no rules to generate ltmain.sh.
10391 if test -f "$ltmain"; then
10392 # See if we are running on zsh, and set the options which allow our commands through
10393 # without removal of \ escapes.
10394 if test -n "${ZSH_VERSION+set}" ; then
10395 setopt NO_GLOB_SUBST
10397 # Now quote all the things that may contain metacharacters while being
10398 # careful not to overquote the AC_SUBSTed values. We take copies of the
10399 # variables and quote the copies for generation of the libtool script.
10400 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10402 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10403 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10404 deplibs_check_method reload_flag reload_cmds need_locks \
10405 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10406 lt_cv_sys_global_symbol_to_c_name_address \
10407 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10408 old_postinstall_cmds old_postuninstall_cmds \
10412 lt_prog_compiler_wl \
10413 lt_prog_compiler_pic \
10414 lt_prog_compiler_static \
10415 lt_prog_compiler_no_builtin_flag \
10416 export_dynamic_flag_spec \
10417 thread_safe_flag_spec \
10418 whole_archive_flag_spec \
10419 enable_shared_with_static_runtimes \
10421 old_archive_from_new_cmds \
10426 compiler_lib_search_path \
10428 archive_expsym_cmds \
10430 postuninstall_cmds \
10431 old_archive_from_expsyms_cmds \
10432 allow_undefined_flag \
10433 no_undefined_flag \
10434 export_symbols_cmds \
10435 hardcode_libdir_flag_spec \
10436 hardcode_libdir_flag_spec_ld \
10437 hardcode_libdir_separator \
10438 hardcode_automatic \
10440 module_expsym_cmds \
10441 lt_cv_prog_compiler_c_o \
10443 include_expsyms; do
10446 old_archive_cmds | \
10447 old_archive_from_new_cmds | \
10449 archive_expsym_cmds | \
10451 module_expsym_cmds | \
10452 old_archive_from_expsyms_cmds | \
10453 export_symbols_cmds | \
10454 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10455 postinstall_cmds | postuninstall_cmds | \
10456 old_postinstall_cmds | old_postuninstall_cmds | \
10457 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10458 # Double-quote double-evaled strings.
10459 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10462 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10468 *'\$0 --fallback-echo"')
10469 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10473 cfgfile="${ofile}T"
10474 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10476 { echo "$as_me:$LINENO: creating $ofile" >&5
10477 echo "$as_me: creating $ofile" >&6;}
10479 cat <<__EOF__ >> "$cfgfile"
10482 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10483 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10484 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10486 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10487 # Free Software Foundation, Inc.
10489 # This file is part of GNU Libtool:
10490 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10492 # This program is free software; you can redistribute it and/or modify
10493 # it under the terms of the GNU General Public License as published by
10494 # the Free Software Foundation; either version 2 of the License, or
10495 # (at your option) any later version.
10497 # This program is distributed in the hope that it will be useful, but
10498 # WITHOUT ANY WARRANTY; without even the implied warranty of
10499 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10500 # General Public License for more details.
10502 # You should have received a copy of the GNU General Public License
10503 # along with this program; if not, write to the Free Software
10504 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10506 # As a special exception to the GNU General Public License, if you
10507 # distribute this file as part of a program that contains a
10508 # configuration script generated by Autoconf, you may include it under
10509 # the same distribution terms that you use for the rest of that program.
10511 # A sed program that does not truncate output.
10514 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10515 Xsed="$SED -e 1s/^X//"
10517 # The HP-UX ksh and POSIX shell print the target directory to stdout
10518 # if CDPATH is set.
10519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10521 # The names of the tagged configurations supported by this script.
10524 # ### BEGIN LIBTOOL CONFIG
10526 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10528 # Shell to use when invoking shell scripts.
10531 # Whether or not to build shared libraries.
10532 build_libtool_libs=$enable_shared
10534 # Whether or not to build static libraries.
10535 build_old_libs=$enable_static
10537 # Whether or not to add -lc for building shared libraries.
10538 build_libtool_need_lc=$archive_cmds_need_lc
10540 # Whether or not to disallow shared libs when runtime libs are static
10541 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10543 # Whether or not to optimize for fast installation.
10544 fast_install=$enable_fast_install
10547 host_alias=$host_alias
10551 # The build system.
10552 build_alias=$build_alias
10556 # An echo program that does not interpret backslashes.
10561 AR_FLAGS=$lt_AR_FLAGS
10566 # A language-specific compiler.
10569 # Is the compiler the GNU C compiler?
10575 # The linker used to build libraries.
10578 # Whether we need hard or soft links.
10581 # A BSD-compatible nm program.
10584 # A symbol stripping program
10587 # Used to examine libraries when file_magic_cmd begins "file"
10588 MAGIC_CMD=$MAGIC_CMD
10590 # Used on cygwin: DLL creation program.
10593 # Used on cygwin: object dumper.
10596 # Used on cygwin: assembler.
10599 # The name of the directory that contains temporary libtool files.
10602 # How to create reloadable object files.
10603 reload_flag=$lt_reload_flag
10604 reload_cmds=$lt_reload_cmds
10606 # How to pass a linker flag through the compiler.
10607 wl=$lt_lt_prog_compiler_wl
10609 # Object file suffix (normally "o").
10610 objext="$ac_objext"
10612 # Old archive suffix (normally "a").
10615 # Shared library suffix (normally ".so").
10616 shrext_cmds='$shrext_cmds'
10618 # Executable file suffix (normally "").
10621 # Additional compiler flags for building library objects.
10622 pic_flag=$lt_lt_prog_compiler_pic
10625 # What is the maximum length of a command?
10626 max_cmd_len=$lt_cv_sys_max_cmd_len
10628 # Does compiler simultaneously support -c and -o options?
10629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10631 # Must we lock files when doing compilation?
10632 need_locks=$lt_need_locks
10634 # Do we need the lib prefix for modules?
10635 need_lib_prefix=$need_lib_prefix
10637 # Do we need a version for libraries?
10638 need_version=$need_version
10640 # Whether dlopen is supported.
10641 dlopen_support=$enable_dlopen
10643 # Whether dlopen of programs is supported.
10644 dlopen_self=$enable_dlopen_self
10646 # Whether dlopen of statically linked programs is supported.
10647 dlopen_self_static=$enable_dlopen_self_static
10649 # Compiler flag to prevent dynamic linking.
10650 link_static_flag=$lt_lt_prog_compiler_static
10652 # Compiler flag to turn off builtin functions.
10653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10655 # Compiler flag to allow reflexive dlopens.
10656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10658 # Compiler flag to generate shared objects directly from archives.
10659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10661 # Compiler flag to generate thread-safe objects.
10662 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10664 # Library versioning type.
10665 version_type=$version_type
10667 # Format of library name prefix.
10668 libname_spec=$lt_libname_spec
10670 # List of archive names. First name is the real one, the rest are links.
10671 # The last name is the one that the linker finds with -lNAME.
10672 library_names_spec=$lt_library_names_spec
10674 # The coded name of the library, if different from the real name.
10675 soname_spec=$lt_soname_spec
10677 # Commands used to build and install an old-style archive.
10679 old_archive_cmds=$lt_old_archive_cmds
10680 old_postinstall_cmds=$lt_old_postinstall_cmds
10681 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10683 # Create an old-style archive from a shared archive.
10684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10686 # Create a temporary old-style archive to link instead of a shared archive.
10687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10689 # Commands used to build and install a shared archive.
10690 archive_cmds=$lt_archive_cmds
10691 archive_expsym_cmds=$lt_archive_expsym_cmds
10692 postinstall_cmds=$lt_postinstall_cmds
10693 postuninstall_cmds=$lt_postuninstall_cmds
10695 # Commands used to build a loadable module (assumed same as above if empty)
10696 module_cmds=$lt_module_cmds
10697 module_expsym_cmds=$lt_module_expsym_cmds
10699 # Commands to strip libraries.
10700 old_striplib=$lt_old_striplib
10701 striplib=$lt_striplib
10703 # Dependencies to place before the objects being linked to create a
10705 predep_objects=$lt_predep_objects
10707 # Dependencies to place after the objects being linked to create a
10709 postdep_objects=$lt_postdep_objects
10711 # Dependencies to place before the objects being linked to create a
10713 predeps=$lt_predeps
10715 # Dependencies to place after the objects being linked to create a
10717 postdeps=$lt_postdeps
10719 # The library search path used internally by the compiler when linking
10720 # a shared library.
10721 compiler_lib_search_path=$lt_compiler_lib_search_path
10723 # Method to check whether dependent libraries are shared objects.
10724 deplibs_check_method=$lt_deplibs_check_method
10726 # Command to use when deplibs_check_method == file_magic.
10727 file_magic_cmd=$lt_file_magic_cmd
10729 # Flag that allows shared libraries with undefined symbols to be built.
10730 allow_undefined_flag=$lt_allow_undefined_flag
10732 # Flag that forces no undefined symbols.
10733 no_undefined_flag=$lt_no_undefined_flag
10735 # Commands used to finish a libtool library installation in a directory.
10736 finish_cmds=$lt_finish_cmds
10738 # Same as above, but a single script fragment to be evaled but not shown.
10739 finish_eval=$lt_finish_eval
10741 # Take the output of nm and produce a listing of raw symbols and C names.
10742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10744 # Transform the output of nm in a proper C declaration
10745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10747 # Transform the output of nm in a C name address pair
10748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10750 # This is the shared library runtime path variable.
10751 runpath_var=$runpath_var
10753 # This is the shared library path variable.
10754 shlibpath_var=$shlibpath_var
10756 # Is shlibpath searched before the hard-coded library search path?
10757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10759 # How to hardcode a shared library path into an executable.
10760 hardcode_action=$hardcode_action
10762 # Whether we should hardcode library paths into libraries.
10763 hardcode_into_libs=$hardcode_into_libs
10765 # Flag to hardcode \$libdir into a binary during linking.
10766 # This must work even if \$libdir does not exist.
10767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10769 # If ld is used when linking, flag to hardcode \$libdir into
10770 # a binary during linking. This must work even if \$libdir does
10772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10774 # Whether we need a single -rpath flag with a separated argument.
10775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10777 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10778 # resulting binary.
10779 hardcode_direct=$hardcode_direct
10781 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10782 # resulting binary.
10783 hardcode_minus_L=$hardcode_minus_L
10785 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10786 # the resulting binary.
10787 hardcode_shlibpath_var=$hardcode_shlibpath_var
10789 # Set to yes if building a shared library automatically hardcodes DIR into the library
10790 # and all subsequent libraries and executables linked against it.
10791 hardcode_automatic=$hardcode_automatic
10793 # Variables whose values should be saved in libtool wrapper scripts and
10794 # restored at relink time.
10795 variables_saved_for_relink="$variables_saved_for_relink"
10797 # Whether libtool must link a program against all its dependency libraries.
10798 link_all_deplibs=$link_all_deplibs
10800 # Compile-time system search path for libraries
10801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10803 # Run-time system search path for libraries
10804 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10806 # Fix the shell variable \$srcfile for the compiler.
10807 fix_srcfile_path="$fix_srcfile_path"
10809 # Set to yes if exported symbols are required.
10810 always_export_symbols=$always_export_symbols
10812 # The commands to list exported symbols.
10813 export_symbols_cmds=$lt_export_symbols_cmds
10815 # The commands to extract the exported symbol list from a shared archive.
10816 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10818 # Symbols that should not be listed in the preloaded symbols.
10819 exclude_expsyms=$lt_exclude_expsyms
10821 # Symbols that must always be exported.
10822 include_expsyms=$lt_include_expsyms
10824 # ### END LIBTOOL CONFIG
10831 cat <<\EOF >> "$cfgfile"
10833 # AIX sometimes has problems with the GCC collect2 program. For some
10834 # reason, if we set the COLLECT_NAMES environment variable, the problems
10835 # vanish in a puff of smoke.
10836 if test "X${COLLECT_NAMES+set}" != Xset; then
10838 export COLLECT_NAMES
10844 # We use sed instead of cat because bash on DJGPP gets confused if
10845 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10846 # text mode, it properly converts lines to CR/LF. This bash problem
10847 # is reportedly fixed, but why not run on old versions too?
10848 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10850 mv -f "$cfgfile" "$ofile" || \
10851 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10855 # If there is no Makefile yet, we rely on a make rule to execute
10856 # `config.status --recheck' to rerun these tests and create the
10857 # libtool script then.
10858 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10859 if test -f "$ltmain_in"; then
10860 test -f Makefile && make "$ltmain"
10866 ac_cpp='$CPP $CPPFLAGS'
10867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10874 # Check whether --with-tags or --without-tags was given.
10875 if test "${with_tags+set}" = set; then
10876 withval="$with_tags"
10877 tagnames="$withval"
10880 if test -f "$ltmain" && test -n "$tagnames"; then
10881 if test ! -f "${ofile}"; then
10882 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10883 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10886 if test -z "$LTCC"; then
10887 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10888 if test -z "$LTCC"; then
10889 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10890 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10893 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10897 # Extract list of available tagged configurations in $ofile.
10898 # Note that this assumes the entire list is on one line.
10899 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10902 for tagname in $tagnames; do
10904 # Check whether tagname contains only valid characters
10905 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10907 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10908 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10909 { (exit 1); exit 1; }; }
10913 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10915 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10916 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10917 { (exit 1); exit 1; }; }
10920 # Update the list of available tags.
10921 if test -n "$tagname"; then
10922 echo appending configuration tag \"$tagname\" to $ofile
10926 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10927 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10928 (test "X$CXX" != "Xg++"))) ; then
10936 if test -n "$F77" && test "X$F77" != "Xno"; then
10944 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10955 # Source file extension for RC test sources.
10958 # Object file extension for compiled RC test sources.
10962 # Code to be used in simple compile tests
10963 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10965 # Code to be used in simple link tests
10966 lt_simple_link_test_code="$lt_simple_compile_test_code"
10968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10970 # If no C compiler was specified, use CC.
10973 # Allow CC to be a program name with arguments.
10977 # save warnings/boilerplate of simple test code
10978 ac_outfile=conftest.$ac_objext
10979 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10981 _lt_compiler_boilerplate=`cat conftest.err`
10984 ac_outfile=conftest.$ac_objext
10985 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10987 _lt_linker_boilerplate=`cat conftest.err`
10991 # Allow CC to be a program name with arguments.
10996 for cc_temp in $compiler""; do
10998 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10999 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11004 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11006 lt_cv_prog_compiler_c_o_RC=yes
11008 # The else clause should only fire when bootstrapping the
11009 # libtool distribution, otherwise you forgot to ship ltmain.sh
11010 # with your package, and you will get complaints that there are
11011 # no rules to generate ltmain.sh.
11012 if test -f "$ltmain"; then
11013 # See if we are running on zsh, and set the options which allow our commands through
11014 # without removal of \ escapes.
11015 if test -n "${ZSH_VERSION+set}" ; then
11016 setopt NO_GLOB_SUBST
11018 # Now quote all the things that may contain metacharacters while being
11019 # careful not to overquote the AC_SUBSTed values. We take copies of the
11020 # variables and quote the copies for generation of the libtool script.
11021 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11023 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11024 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11025 deplibs_check_method reload_flag reload_cmds need_locks \
11026 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11027 lt_cv_sys_global_symbol_to_c_name_address \
11028 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11029 old_postinstall_cmds old_postuninstall_cmds \
11033 lt_prog_compiler_wl_RC \
11034 lt_prog_compiler_pic_RC \
11035 lt_prog_compiler_static_RC \
11036 lt_prog_compiler_no_builtin_flag_RC \
11037 export_dynamic_flag_spec_RC \
11038 thread_safe_flag_spec_RC \
11039 whole_archive_flag_spec_RC \
11040 enable_shared_with_static_runtimes_RC \
11041 old_archive_cmds_RC \
11042 old_archive_from_new_cmds_RC \
11043 predep_objects_RC \
11044 postdep_objects_RC \
11047 compiler_lib_search_path_RC \
11049 archive_expsym_cmds_RC \
11050 postinstall_cmds_RC \
11051 postuninstall_cmds_RC \
11052 old_archive_from_expsyms_cmds_RC \
11053 allow_undefined_flag_RC \
11054 no_undefined_flag_RC \
11055 export_symbols_cmds_RC \
11056 hardcode_libdir_flag_spec_RC \
11057 hardcode_libdir_flag_spec_ld_RC \
11058 hardcode_libdir_separator_RC \
11059 hardcode_automatic_RC \
11061 module_expsym_cmds_RC \
11062 lt_cv_prog_compiler_c_o_RC \
11063 exclude_expsyms_RC \
11064 include_expsyms_RC; do
11067 old_archive_cmds_RC | \
11068 old_archive_from_new_cmds_RC | \
11069 archive_cmds_RC | \
11070 archive_expsym_cmds_RC | \
11072 module_expsym_cmds_RC | \
11073 old_archive_from_expsyms_cmds_RC | \
11074 export_symbols_cmds_RC | \
11075 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11076 postinstall_cmds | postuninstall_cmds | \
11077 old_postinstall_cmds | old_postuninstall_cmds | \
11078 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11079 # Double-quote double-evaled strings.
11080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11089 *'\$0 --fallback-echo"')
11090 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11096 cat <<__EOF__ >> "$cfgfile"
11097 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11101 # Shell to use when invoking shell scripts.
11104 # Whether or not to build shared libraries.
11105 build_libtool_libs=$enable_shared
11107 # Whether or not to build static libraries.
11108 build_old_libs=$enable_static
11110 # Whether or not to add -lc for building shared libraries.
11111 build_libtool_need_lc=$archive_cmds_need_lc_RC
11113 # Whether or not to disallow shared libs when runtime libs are static
11114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11116 # Whether or not to optimize for fast installation.
11117 fast_install=$enable_fast_install
11120 host_alias=$host_alias
11124 # The build system.
11125 build_alias=$build_alias
11129 # An echo program that does not interpret backslashes.
11134 AR_FLAGS=$lt_AR_FLAGS
11139 # A language-specific compiler.
11142 # Is the compiler the GNU C compiler?
11148 # The linker used to build libraries.
11151 # Whether we need hard or soft links.
11154 # A BSD-compatible nm program.
11157 # A symbol stripping program
11160 # Used to examine libraries when file_magic_cmd begins "file"
11161 MAGIC_CMD=$MAGIC_CMD
11163 # Used on cygwin: DLL creation program.
11166 # Used on cygwin: object dumper.
11169 # Used on cygwin: assembler.
11172 # The name of the directory that contains temporary libtool files.
11175 # How to create reloadable object files.
11176 reload_flag=$lt_reload_flag
11177 reload_cmds=$lt_reload_cmds
11179 # How to pass a linker flag through the compiler.
11180 wl=$lt_lt_prog_compiler_wl_RC
11182 # Object file suffix (normally "o").
11183 objext="$ac_objext"
11185 # Old archive suffix (normally "a").
11188 # Shared library suffix (normally ".so").
11189 shrext_cmds='$shrext_cmds'
11191 # Executable file suffix (normally "").
11194 # Additional compiler flags for building library objects.
11195 pic_flag=$lt_lt_prog_compiler_pic_RC
11198 # What is the maximum length of a command?
11199 max_cmd_len=$lt_cv_sys_max_cmd_len
11201 # Does compiler simultaneously support -c and -o options?
11202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11204 # Must we lock files when doing compilation?
11205 need_locks=$lt_need_locks
11207 # Do we need the lib prefix for modules?
11208 need_lib_prefix=$need_lib_prefix
11210 # Do we need a version for libraries?
11211 need_version=$need_version
11213 # Whether dlopen is supported.
11214 dlopen_support=$enable_dlopen
11216 # Whether dlopen of programs is supported.
11217 dlopen_self=$enable_dlopen_self
11219 # Whether dlopen of statically linked programs is supported.
11220 dlopen_self_static=$enable_dlopen_self_static
11222 # Compiler flag to prevent dynamic linking.
11223 link_static_flag=$lt_lt_prog_compiler_static_RC
11225 # Compiler flag to turn off builtin functions.
11226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11228 # Compiler flag to allow reflexive dlopens.
11229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11231 # Compiler flag to generate shared objects directly from archives.
11232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11234 # Compiler flag to generate thread-safe objects.
11235 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11237 # Library versioning type.
11238 version_type=$version_type
11240 # Format of library name prefix.
11241 libname_spec=$lt_libname_spec
11243 # List of archive names. First name is the real one, the rest are links.
11244 # The last name is the one that the linker finds with -lNAME.
11245 library_names_spec=$lt_library_names_spec
11247 # The coded name of the library, if different from the real name.
11248 soname_spec=$lt_soname_spec
11250 # Commands used to build and install an old-style archive.
11252 old_archive_cmds=$lt_old_archive_cmds_RC
11253 old_postinstall_cmds=$lt_old_postinstall_cmds
11254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11256 # Create an old-style archive from a shared archive.
11257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11259 # Create a temporary old-style archive to link instead of a shared archive.
11260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11262 # Commands used to build and install a shared archive.
11263 archive_cmds=$lt_archive_cmds_RC
11264 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11265 postinstall_cmds=$lt_postinstall_cmds
11266 postuninstall_cmds=$lt_postuninstall_cmds
11268 # Commands used to build a loadable module (assumed same as above if empty)
11269 module_cmds=$lt_module_cmds_RC
11270 module_expsym_cmds=$lt_module_expsym_cmds_RC
11272 # Commands to strip libraries.
11273 old_striplib=$lt_old_striplib
11274 striplib=$lt_striplib
11276 # Dependencies to place before the objects being linked to create a
11278 predep_objects=$lt_predep_objects_RC
11280 # Dependencies to place after the objects being linked to create a
11282 postdep_objects=$lt_postdep_objects_RC
11284 # Dependencies to place before the objects being linked to create a
11286 predeps=$lt_predeps_RC
11288 # Dependencies to place after the objects being linked to create a
11290 postdeps=$lt_postdeps_RC
11292 # The library search path used internally by the compiler when linking
11293 # a shared library.
11294 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11296 # Method to check whether dependent libraries are shared objects.
11297 deplibs_check_method=$lt_deplibs_check_method
11299 # Command to use when deplibs_check_method == file_magic.
11300 file_magic_cmd=$lt_file_magic_cmd
11302 # Flag that allows shared libraries with undefined symbols to be built.
11303 allow_undefined_flag=$lt_allow_undefined_flag_RC
11305 # Flag that forces no undefined symbols.
11306 no_undefined_flag=$lt_no_undefined_flag_RC
11308 # Commands used to finish a libtool library installation in a directory.
11309 finish_cmds=$lt_finish_cmds
11311 # Same as above, but a single script fragment to be evaled but not shown.
11312 finish_eval=$lt_finish_eval
11314 # Take the output of nm and produce a listing of raw symbols and C names.
11315 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11317 # Transform the output of nm in a proper C declaration
11318 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11320 # Transform the output of nm in a C name address pair
11321 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11323 # This is the shared library runtime path variable.
11324 runpath_var=$runpath_var
11326 # This is the shared library path variable.
11327 shlibpath_var=$shlibpath_var
11329 # Is shlibpath searched before the hard-coded library search path?
11330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11332 # How to hardcode a shared library path into an executable.
11333 hardcode_action=$hardcode_action_RC
11335 # Whether we should hardcode library paths into libraries.
11336 hardcode_into_libs=$hardcode_into_libs
11338 # Flag to hardcode \$libdir into a binary during linking.
11339 # This must work even if \$libdir does not exist.
11340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11342 # If ld is used when linking, flag to hardcode \$libdir into
11343 # a binary during linking. This must work even if \$libdir does
11345 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11347 # Whether we need a single -rpath flag with a separated argument.
11348 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11350 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11351 # resulting binary.
11352 hardcode_direct=$hardcode_direct_RC
11354 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11355 # resulting binary.
11356 hardcode_minus_L=$hardcode_minus_L_RC
11358 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11359 # the resulting binary.
11360 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11362 # Set to yes if building a shared library automatically hardcodes DIR into the library
11363 # and all subsequent libraries and executables linked against it.
11364 hardcode_automatic=$hardcode_automatic_RC
11366 # Variables whose values should be saved in libtool wrapper scripts and
11367 # restored at relink time.
11368 variables_saved_for_relink="$variables_saved_for_relink"
11370 # Whether libtool must link a program against all its dependency libraries.
11371 link_all_deplibs=$link_all_deplibs_RC
11373 # Compile-time system search path for libraries
11374 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11376 # Run-time system search path for libraries
11377 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11379 # Fix the shell variable \$srcfile for the compiler.
11380 fix_srcfile_path="$fix_srcfile_path_RC"
11382 # Set to yes if exported symbols are required.
11383 always_export_symbols=$always_export_symbols_RC
11385 # The commands to list exported symbols.
11386 export_symbols_cmds=$lt_export_symbols_cmds_RC
11388 # The commands to extract the exported symbol list from a shared archive.
11389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11391 # Symbols that should not be listed in the preloaded symbols.
11392 exclude_expsyms=$lt_exclude_expsyms_RC
11394 # Symbols that must always be exported.
11395 include_expsyms=$lt_include_expsyms_RC
11397 # ### END LIBTOOL TAG CONFIG: $tagname
11403 # If there is no Makefile yet, we rely on a make rule to execute
11404 # `config.status --recheck' to rerun these tests and create the
11405 # libtool script then.
11406 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11407 if test -f "$ltmain_in"; then
11408 test -f Makefile && make "$ltmain"
11414 ac_cpp='$CPP $CPPFLAGS'
11415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11424 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11425 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11426 { (exit 1); exit 1; }; }
11430 # Append the new tag name to the list of available tags.
11431 if test -n "$tagname" ; then
11432 available_tags="$available_tags $tagname"
11438 # Now substitute the updated list of available tags.
11439 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11440 mv "${ofile}T" "$ofile"
11444 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11445 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11446 { (exit 1); exit 1; }; }
11452 # This can be used to rebuild libtool when needed
11453 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11455 # Always use our own libtool.
11456 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11458 # Prevent multiple expansion
11470 if test $ol_enable_perl != no ; then
11471 # Extract the first word of "perl", so it can be a program name with args.
11472 set dummy perl; ac_word=$2
11473 echo "$as_me:$LINENO: checking for $ac_word" >&5
11474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11475 if test "${ac_cv_path_PERLBIN+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11501 PERLBIN=$ac_cv_path_PERLBIN
11503 if test -n "$PERLBIN"; then
11504 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11505 echo "${ECHO_T}$PERLBIN" >&6
11507 echo "$as_me:$LINENO: result: no" >&5
11508 echo "${ECHO_T}no" >&6
11512 if test "no$PERLBIN" = "no" ; then
11513 if test $ol_enable_perl = yes ; then
11514 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11515 echo "$as_me: error: could not locate perl" >&2;}
11516 { (exit 1); exit 1; }; }
11520 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11521 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11523 if test x"$ol_enable_perl" = "xyes" ; then
11524 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11526 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11533 ac_cpp='$CPP $CPPFLAGS'
11534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11537 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11539 # On Suns, sometimes $CPP names a directory.
11540 if test -n "$CPP" && test -d "$CPP"; then
11543 if test -z "$CPP"; then
11544 if test "${ac_cv_prog_CPP+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 # Double quotes because CPP needs to be expanded
11548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11550 ac_preproc_ok=false
11551 for ac_c_preproc_warn_flag in '' yes
11553 # Use a header file that comes with gcc, so configuring glibc
11554 # with a fresh cross-compiler works.
11555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 # <limits.h> exists even on freestanding compilers.
11557 # On the NeXT, cc -E runs the code through the compiler's parser,
11558 # not just through cpp. "Syntax error" is here to catch this case.
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11566 # include <limits.h>
11568 # include <assert.h>
11572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11575 grep -v '^ *+' conftest.er1 >conftest.err
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } >/dev/null; then
11580 if test -s conftest.err; then
11581 ac_cpp_err=$ac_c_preproc_warn_flag
11582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11589 if test -z "$ac_cpp_err"; then
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 # Broken: fails on valid input.
11598 rm -f conftest.err conftest.$ac_ext
11600 # OK, works on sane cases. Now check whether non-existent headers
11601 # can be detected and how.
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 #include <ac_nonexistent.h>
11610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11613 grep -v '^ *+' conftest.er1 >conftest.err
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } >/dev/null; then
11618 if test -s conftest.err; then
11619 ac_cpp_err=$ac_c_preproc_warn_flag
11620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11627 if test -z "$ac_cpp_err"; then
11628 # Broken: success on invalid input.
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 # Passes both tests.
11638 rm -f conftest.err conftest.$ac_ext
11641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11642 rm -f conftest.err conftest.$ac_ext
11643 if $ac_preproc_ok; then
11648 ac_cv_prog_CPP=$CPP
11651 CPP=$ac_cv_prog_CPP
11653 ac_cv_prog_CPP=$CPP
11655 echo "$as_me:$LINENO: result: $CPP" >&5
11656 echo "${ECHO_T}$CPP" >&6
11657 ac_preproc_ok=false
11658 for ac_c_preproc_warn_flag in '' yes
11660 # Use a header file that comes with gcc, so configuring glibc
11661 # with a fresh cross-compiler works.
11662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 # <limits.h> exists even on freestanding compilers.
11664 # On the NeXT, cc -E runs the code through the compiler's parser,
11665 # not just through cpp. "Syntax error" is here to catch this case.
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11673 # include <limits.h>
11675 # include <assert.h>
11679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11682 grep -v '^ *+' conftest.er1 >conftest.err
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } >/dev/null; then
11687 if test -s conftest.err; then
11688 ac_cpp_err=$ac_c_preproc_warn_flag
11689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11696 if test -z "$ac_cpp_err"; then
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 # Broken: fails on valid input.
11705 rm -f conftest.err conftest.$ac_ext
11707 # OK, works on sane cases. Now check whether non-existent headers
11708 # can be detected and how.
11709 cat >conftest.$ac_ext <<_ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 #include <ac_nonexistent.h>
11717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } >/dev/null; then
11725 if test -s conftest.err; then
11726 ac_cpp_err=$ac_c_preproc_warn_flag
11727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11734 if test -z "$ac_cpp_err"; then
11735 # Broken: success on invalid input.
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 # Passes both tests.
11745 rm -f conftest.err conftest.$ac_ext
11748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11749 rm -f conftest.err conftest.$ac_ext
11750 if $ac_preproc_ok; then
11753 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11754 See \`config.log' for more details." >&5
11755 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11756 See \`config.log' for more details." >&2;}
11757 { (exit 1); exit 1; }; }
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11768 *mingw32* ) ac_cv_mingw32=yes ;;
11769 *cygwin* ) ac_cv_cygwin=yes ;;
11775 cat >>confdefs.h <<_ACEOF
11776 #define EXEEXT "${EXEEXT}"
11780 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11781 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11782 if test "${ac_cv_lib_be_be_app+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 ac_check_lib_save_LIBS=$LIBS
11786 LIBS="-lbe -lroot -lnet $LIBS"
11787 cat >conftest.$ac_ext <<_ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11794 /* Override any gcc2 internal prototype to avoid an error. */
11798 /* We use char because int might match the return type of a gcc2
11799 builtin and then its argument prototype would still apply. */
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_cv_lib_be_be_app=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_cv_lib_be_be_app=no
11838 rm -f conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_check_lib_save_LIBS
11842 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11843 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11844 if test $ac_cv_lib_be_be_app = yes; then
11845 LIBS="$LIBS -lbe -lroot -lnet"
11852 ac_cpp='$CPP $CPPFLAGS'
11853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11856 if test -n "$ac_tool_prefix"; then
11857 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11858 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11859 echo "$as_me:$LINENO: checking for $ac_word" >&5
11860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11861 if test "${ac_cv_prog_CC+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 if test -n "$CC"; then
11865 ac_cv_prog_CC="$CC" # Let the user override the test.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 if test -n "$CC"; then
11885 echo "$as_me:$LINENO: result: $CC" >&5
11886 echo "${ECHO_T}$CC" >&6
11888 echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6
11893 if test -z "$ac_cv_prog_CC"; then
11895 # Extract the first word of "gcc", so it can be a program name with args.
11896 set dummy gcc; ac_word=$2
11897 echo "$as_me:$LINENO: checking for $ac_word" >&5
11898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 if test -n "$ac_ct_CC"; then
11903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_ac_ct_CC="gcc"
11913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11922 if test -n "$ac_ct_CC"; then
11923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11924 echo "${ECHO_T}$ac_ct_CC" >&6
11926 echo "$as_me:$LINENO: result: no" >&5
11927 echo "${ECHO_T}no" >&6
11932 CC="$ac_cv_prog_CC"
11935 if test -z "$CC"; then
11936 if test -n "$ac_tool_prefix"; then
11937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11938 set dummy ${ac_tool_prefix}cc; ac_word=$2
11939 echo "$as_me:$LINENO: checking for $ac_word" >&5
11940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11941 if test "${ac_cv_prog_CC+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 if test -n "$CC"; then
11945 ac_cv_prog_CC="$CC" # Let the user override the test.
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_CC="${ac_tool_prefix}cc"
11955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 if test -n "$CC"; then
11965 echo "$as_me:$LINENO: result: $CC" >&5
11966 echo "${ECHO_T}$CC" >&6
11968 echo "$as_me:$LINENO: result: no" >&5
11969 echo "${ECHO_T}no" >&6
11973 if test -z "$ac_cv_prog_CC"; then
11975 # Extract the first word of "cc", so it can be a program name with args.
11976 set dummy cc; ac_word=$2
11977 echo "$as_me:$LINENO: checking for $ac_word" >&5
11978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 if test -n "$ac_ct_CC"; then
11983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992 ac_cv_prog_ac_ct_CC="cc"
11993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12002 if test -n "$ac_ct_CC"; then
12003 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12004 echo "${ECHO_T}$ac_ct_CC" >&6
12006 echo "$as_me:$LINENO: result: no" >&5
12007 echo "${ECHO_T}no" >&6
12012 CC="$ac_cv_prog_CC"
12016 if test -z "$CC"; then
12017 # Extract the first word of "cc", so it can be a program name with args.
12018 set dummy cc; ac_word=$2
12019 echo "$as_me:$LINENO: checking for $ac_word" >&5
12020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12021 if test "${ac_cv_prog_CC+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 if test -n "$CC"; then
12025 ac_cv_prog_CC="$CC" # Let the user override the test.
12027 ac_prog_rejected=no
12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029 for as_dir in $PATH
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12036 ac_prog_rejected=yes
12040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 if test $ac_prog_rejected = yes; then
12047 # We found a bogon in the path, so make sure we never use it.
12048 set dummy $ac_cv_prog_CC
12050 if test $# != 0; then
12051 # We chose a different compiler from the bogus one.
12052 # However, it has the same basename, so the bogon will be chosen
12053 # first if we set CC to just the basename; use the full file name.
12055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12061 if test -n "$CC"; then
12062 echo "$as_me:$LINENO: result: $CC" >&5
12063 echo "${ECHO_T}$CC" >&6
12065 echo "$as_me:$LINENO: result: no" >&5
12066 echo "${ECHO_T}no" >&6
12070 if test -z "$CC"; then
12071 if test -n "$ac_tool_prefix"; then
12074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12076 echo "$as_me:$LINENO: checking for $ac_word" >&5
12077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12078 if test "${ac_cv_prog_CC+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 if test -n "$CC"; then
12082 ac_cv_prog_CC="$CC" # Let the user override the test.
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 if test -n "$CC"; then
12102 echo "$as_me:$LINENO: result: $CC" >&5
12103 echo "${ECHO_T}$CC" >&6
12105 echo "$as_me:$LINENO: result: no" >&5
12106 echo "${ECHO_T}no" >&6
12109 test -n "$CC" && break
12112 if test -z "$CC"; then
12116 # Extract the first word of "$ac_prog", so it can be a program name with args.
12117 set dummy $ac_prog; ac_word=$2
12118 echo "$as_me:$LINENO: checking for $ac_word" >&5
12119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 if test -n "$ac_ct_CC"; then
12124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133 ac_cv_prog_ac_ct_CC="$ac_prog"
12134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12143 if test -n "$ac_ct_CC"; then
12144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12145 echo "${ECHO_T}$ac_ct_CC" >&6
12147 echo "$as_me:$LINENO: result: no" >&5
12148 echo "${ECHO_T}no" >&6
12151 test -n "$ac_ct_CC" && break
12160 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12161 See \`config.log' for more details." >&5
12162 echo "$as_me: error: no acceptable C compiler found in \$PATH
12163 See \`config.log' for more details." >&2;}
12164 { (exit 1); exit 1; }; }
12166 # Provide some information about the compiler.
12167 echo "$as_me:$LINENO:" \
12168 "checking for C compiler version" >&5
12169 ac_compiler=`set X $ac_compile; echo $2`
12170 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12171 (eval $ac_compiler --version </dev/null >&5) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }
12175 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12176 (eval $ac_compiler -v </dev/null >&5) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }
12180 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12181 (eval $ac_compiler -V </dev/null >&5) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }
12186 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12209 rm -f conftest.$ac_objext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12211 (eval $ac_compile) 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag"
12219 || test ! -s conftest.err'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_compiler_gnu=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12242 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12244 GCC=`test $ac_compiler_gnu = yes && echo yes`
12245 ac_test_CFLAGS=${CFLAGS+set}
12246 ac_save_CFLAGS=$CFLAGS
12248 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12249 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12250 if test "${ac_cv_prog_cc_g+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>conftest.er1
12272 grep -v '^ *+' conftest.er1 >conftest.err
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_c_werror_flag"
12278 || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest.$ac_objext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_prog_cc_g=yes
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12300 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12301 if test "$ac_test_CFLAGS" = set; then
12302 CFLAGS=$ac_save_CFLAGS
12303 elif test $ac_cv_prog_cc_g = yes; then
12304 if test "$GCC" = yes; then
12310 if test "$GCC" = yes; then
12316 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12317 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12318 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 ac_cv_prog_cc_stdc=no
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <stdarg.h>
12331 #include <sys/types.h>
12332 #include <sys/stat.h>
12333 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12334 struct buf { int x; };
12335 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12336 static char *e (p, i)
12342 static char *f (char * (*g) (char **, int), char **p, ...)
12347 s = g (p, va_arg (v,int));
12352 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12353 function prototypes and stuff, but not '\xHH' hex character constants.
12354 These don't provoke an error unfortunately, instead are silently treated
12355 as 'x'. The following induces an error, until -std1 is added to get
12356 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12357 array size at least. It's necessary to write '\x00'==0 to get something
12358 that's true only with -std1. */
12359 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12361 int test (int i, double x);
12362 struct s1 {int (*f) (int a);};
12363 struct s2 {int (*f) (double a);};
12364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12375 # Don't try gcc -ansi; that turns off useful extensions and
12376 # breaks some systems' header files.
12377 # AIX -qlanglvl=ansi
12378 # Ultrix and OSF/1 -std1
12379 # HP-UX 10.20 and later -Ae
12380 # HP-UX older versions -Aa -D_HPUX_SOURCE
12381 # SVR4 -Xc -D__EXTENSIONS__
12382 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12384 CC="$ac_save_CC $ac_arg"
12385 rm -f conftest.$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_c_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_prog_cc_stdc=$ac_arg
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12414 rm -f conftest.err conftest.$ac_objext
12416 rm -f conftest.$ac_ext conftest.$ac_objext
12421 case "x$ac_cv_prog_cc_stdc" in
12423 echo "$as_me:$LINENO: result: none needed" >&5
12424 echo "${ECHO_T}none needed" >&6 ;;
12426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12427 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12428 CC="$CC $ac_cv_prog_cc_stdc" ;;
12431 # Some people use a C++ compiler to compile C. Since we use `exit',
12432 # in C++ we need to declare it. In case someone uses the same compiler
12433 # for both compiling C and C++ we need to have the C++ compiler decide
12434 # the declaration of exit, since it's the most demanding environment.
12435 cat >conftest.$ac_ext <<_ACEOF
12436 #ifndef __cplusplus
12440 rm -f conftest.$ac_objext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12442 (eval $ac_compile) 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag"
12450 || test ! -s conftest.err'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest.$ac_objext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 for ac_declaration in \
12464 'extern "C" void std::exit (int) throw (); using std::exit;' \
12465 'extern "C" void std::exit (int); using std::exit;' \
12466 'extern "C" void exit (int) throw ();' \
12467 'extern "C" void exit (int);' \
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12477 #include <stdlib.h>
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488 (eval $ac_compile) 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag"
12496 || test ! -s conftest.err'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; } &&
12502 { ac_try='test -s conftest.$ac_objext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516 cat >conftest.$ac_ext <<_ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12531 rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12562 if test -n "$ac_declaration"; then
12563 echo '#ifdef __cplusplus' >>confdefs.h
12564 echo $ac_declaration >>confdefs.h
12565 echo '#endif' >>confdefs.h
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12575 ac_cpp='$CPP $CPPFLAGS'
12576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12580 depcc="$CC" am_compiler_list=
12582 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12583 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12584 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12588 # We make a subdir and do the tests there. Otherwise we can end up
12589 # making bogus files that we don't know about and never remove. For
12590 # instance it was reported that on HP-UX the gcc test will end up
12591 # making a dummy file named `D' -- because `-MD' means `put the output
12594 # Copy depcomp to subdir because otherwise we won't find it if we're
12595 # using a relative directory.
12596 cp "$am_depcomp" conftest.dir
12598 # We will build objects and dependencies in a subdirectory because
12599 # it helps to detect inapplicable dependency modes. For instance
12600 # both Tru64's cc and ICC support -MD to output dependencies as a
12601 # side effect of compilation, but ICC will put the dependencies in
12602 # the current directory while Tru64 will put them in the object
12606 am_cv_CC_dependencies_compiler_type=none
12607 if test "$am_compiler_list" = ""; then
12608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12610 for depmode in $am_compiler_list; do
12611 # Setup a source with many dependencies, because some compilers
12612 # like to wrap large dependency lists on column 80 (with \), and
12613 # we should not choose a depcomp mode which is confused by this.
12615 # We need to recreate these files for each test, as the compiler may
12616 # overwrite some of them when testing with obscure command lines.
12617 # This happens at least with the AIX C compiler.
12619 for i in 1 2 3 4 5 6; do
12620 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12621 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12622 # Solaris 8's {/usr,}/bin/sh.
12623 touch sub/conftst$i.h
12625 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12629 # after this tag, mechanisms are not by side-effect, so they'll
12630 # only be used when explicitly requested
12631 if test "x$enable_dependency_tracking" = xyes; then
12639 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12640 # mode. It turns out that the SunPro C++ compiler does not properly
12641 # handle `-M -o', and we need to detect this.
12642 if depmode=$depmode \
12643 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12644 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12645 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12646 >/dev/null 2>conftest.err &&
12647 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12648 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12649 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12650 # icc doesn't choke on unknown options, it will just issue warnings
12651 # or remarks (even with -Werror). So we grep stderr for any message
12652 # that says an option was ignored or not supported.
12653 # When given -MP, icc 7.0 and 7.1 complain thusly:
12654 # icc: Command line warning: ignoring option '-M'; no argument required
12655 # The diagnosis changed in icc 8.0:
12656 # icc: Command line remark: option '-MP' not supported
12657 if (grep 'ignoring option' conftest.err ||
12658 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12659 am_cv_CC_dependencies_compiler_type=$depmode
12666 rm -rf conftest.dir
12668 am_cv_CC_dependencies_compiler_type=none
12672 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12673 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12674 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12679 test "x$enable_dependency_tracking" != xno \
12680 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12681 am__fastdepCC_TRUE=
12682 am__fastdepCC_FALSE='#'
12684 am__fastdepCC_TRUE='#'
12685 am__fastdepCC_FALSE=
12689 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12690 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12691 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12692 { (exit 1); exit 1; }; }
12695 # test for make depend flag
12698 if test -z "${MKDEP}"; then
12699 OL_MKDEP="${CC-cc}"
12700 if test -z "${MKDEP_FLAGS}"; then
12701 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12702 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12703 if test "${ol_cv_mkdep+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 for flag in "-M" "-xM"; do
12709 cat > conftest.c <<EOF
12712 if { ac_try='$OL_MKDEP $flag conftest.c'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } \
12718 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12720 if test ! -f conftest."${ac_object}" ; then
12722 OL_MKDEP_FLAGS="$flag"
12730 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12731 echo "${ECHO_T}$ol_cv_mkdep" >&6
12732 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12735 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12739 OL_MKDEP="${MKDEP}"
12740 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12745 if test "${ol_cv_mkdep}" = no ; then
12746 # this will soon become an error
12747 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12748 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12751 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12752 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12753 if test "${ac_cv_lib_s_afopen+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 ac_check_lib_save_LIBS=$LIBS
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_lib_s_afopen=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_cv_lib_s_afopen=no
12809 rm -f conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12813 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12814 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12815 if test $ac_cv_lib_s_afopen = yes; then
12819 cat >>confdefs.h <<\_ACEOF
12820 #define HAVE_AIX_SECURITY 1
12829 ac_cv_func_getopt=no
12831 cat >>confdefs.h <<\_ACEOF
12832 #define BOTH_STRINGS_H 1
12839 WITH_MODULES_ENABLED=no
12840 if test $ol_enable_modules != no ; then
12842 for ac_header in ltdl.h
12844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12846 echo "$as_me:$LINENO: checking for $ac_header" >&5
12847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12854 # Is the header compilable?
12855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 $ac_includes_default
12864 #include <$ac_header>
12866 rm -f conftest.$ac_objext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12868 (eval $ac_compile) 2>conftest.er1
12870 grep -v '^ *+' conftest.er1 >conftest.err
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -z "$ac_c_werror_flag"
12876 || test ! -s conftest.err'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; } &&
12882 { ac_try='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 ac_header_compiler=yes
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_header_compiler=no
12895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12897 echo "${ECHO_T}$ac_header_compiler" >&6
12899 # Is the header present?
12900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908 #include <$ac_header>
12910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12913 grep -v '^ *+' conftest.er1 >conftest.err
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } >/dev/null; then
12918 if test -s conftest.err; then
12919 ac_cpp_err=$ac_c_preproc_warn_flag
12920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12927 if test -z "$ac_cpp_err"; then
12928 ac_header_preproc=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_header_preproc=no
12935 rm -f conftest.err conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12937 echo "${ECHO_T}$ac_header_preproc" >&6
12939 # So? What about this header?
12940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12946 ac_header_preproc=yes
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12963 ## --------------------------------------------- ##
12964 ## Report this to <http://www.openldap.org/its/> ##
12965 ## --------------------------------------------- ##
12968 sed "s/^/$as_me: WARNING: /" >&2
12971 echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 eval "$as_ac_Header=\$ac_header_preproc"
12978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12983 cat >>confdefs.h <<_ACEOF
12984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12992 if test $ac_cv_header_ltdl_h = no ; then
12993 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
12994 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
12995 { (exit 1); exit 1; }; }
12998 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12999 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13000 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-lltdl $LIBS"
13005 cat >conftest.$ac_ext <<_ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13012 /* Override any gcc2 internal prototype to avoid an error. */
13016 /* We use char because int might match the return type of a gcc2
13017 builtin and then its argument prototype would still apply. */
13027 rm -f conftest.$ac_objext conftest$ac_exeext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029 (eval $ac_link) 2>conftest.er1
13031 grep -v '^ *+' conftest.er1 >conftest.err
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag"
13037 || test ! -s conftest.err'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 ac_cv_lib_ltdl_lt_dlinit=yes
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ac_cv_lib_ltdl_lt_dlinit=no
13056 rm -f conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13060 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13061 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13062 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13064 MODULES_LIBS=-lltdl
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_LIBLTDL 1
13074 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13075 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13076 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13077 { (exit 1); exit 1; }; }
13079 ol_link_modules=yes
13080 WITH_MODULES_ENABLED=yes
13083 for i in $Backends; do
13084 eval "ol_tmp=\$ol_enable_$i"
13085 if test $ol_tmp = mod ; then
13086 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13087 echo "$as_me: WARNING: building static $i backend" >&2;}
13088 eval "ol_enable_$i=yes"
13091 for i in $Overlays; do
13092 eval "ol_tmp=\$ol_enable_$i"
13093 if test $ol_tmp = mod ; then
13094 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13095 echo "$as_me: WARNING: building static $i overlay" >&2;}
13096 eval "ol_enable_$i=yes"
13102 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13103 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13104 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 cat >conftest.$ac_ext <<_ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13116 #include <__ASCII__/generate_error.h>
13120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } >/dev/null; then
13128 if test -s conftest.err; then
13129 ac_cpp_err=$ac_c_preproc_warn_flag
13130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13137 if test -z "$ac_cpp_err"; then
13138 ol_cv_cpp_ebcdic=yes
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ol_cv_cpp_ebcdic=no
13145 rm -f conftest.err conftest.$ac_ext
13147 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13148 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13149 if test $ol_cv_cpp_ebcdic = yes ; then
13151 cat >>confdefs.h <<\_ACEOF
13152 #define HAVE_EBCDIC 1
13157 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13158 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13159 if test "${ol_cv_header_stdc+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #include <stdlib.h>
13169 #include <stdarg.h>
13170 #include <string.h>
13173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } >/dev/null; then
13181 if test -s conftest.err; then
13182 ac_cpp_err=$ac_c_preproc_warn_flag
13183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13190 if test -z "$ac_cpp_err"; then
13191 ol_cv_header_stdc=yes
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ol_cv_header_stdc=no
13198 rm -f conftest.err conftest.$ac_ext
13200 if test $ol_cv_header_stdc = yes; then
13201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <string.h>
13211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13212 $EGREP "memchr" >/dev/null 2>&1; then
13215 ol_cv_header_stdc=no
13221 if test $ol_cv_header_stdc = yes; then
13222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 #include <stdlib.h>
13232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13233 $EGREP "free" >/dev/null 2>&1; then
13236 ol_cv_header_stdc=no
13242 if test $ol_cv_header_stdc = yes; then
13243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13244 if test "$cross_compiling" = yes; then
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13254 #ifndef HAVE_EBCDIC
13255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13258 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13259 || ('j' <= (c) && (c) <= 'r') \
13260 || ('s' <= (c) && (c) <= 'z'))
13261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13264 int main () { int i; for (i = 0; i < 256; i++)
13265 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13269 rm -f conftest$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13282 echo "$as_me: program exited with status $ac_status" >&5
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ( exit $ac_status )
13287 ol_cv_header_stdc=no
13289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13293 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13294 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13295 if test $ol_cv_header_stdc = yes; then
13296 cat >>confdefs.h <<\_ACEOF
13297 #define STDC_HEADERS 1
13301 ac_cv_header_stdc=disable
13304 if test $ol_cv_header_stdc != yes; then
13305 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13306 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13314 ac_header_dirent=no
13315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13316 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13317 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13318 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 cat >conftest.$ac_ext <<_ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 #include <sys/types.h>
13340 rm -f conftest.$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342 (eval $ac_compile) 2>conftest.er1
13344 grep -v '^ *+' conftest.er1 >conftest.err
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_c_werror_flag"
13350 || test ! -s conftest.err'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; } &&
13356 { ac_try='test -s conftest.$ac_objext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 eval "$as_ac_Header=yes"
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 eval "$as_ac_Header=no"
13369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13378 ac_header_dirent=$ac_hdr; break
13382 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13383 if test $ac_header_dirent = dirent.h; then
13384 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13386 if test "${ac_cv_search_opendir+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 ac_func_search_save_LIBS=$LIBS
13390 ac_cv_search_opendir=no
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 /* Override any gcc2 internal prototype to avoid an error. */
13402 /* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13415 (eval $ac_link) 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag"
13423 || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_search_opendir="none required"
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13441 rm -f conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
13443 if test "$ac_cv_search_opendir" = no; then
13444 for ac_lib in dir; do
13445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13446 cat >conftest.$ac_ext <<_ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13453 /* Override any gcc2 internal prototype to avoid an error. */
13457 /* We use char because int might match the return type of a gcc2
13458 builtin and then its argument prototype would still apply. */
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470 (eval $ac_link) 2>conftest.er1
13472 grep -v '^ *+' conftest.er1 >conftest.err
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_c_werror_flag"
13478 || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest$ac_exeext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_cv_search_opendir="-l$ac_lib"
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13497 rm -f conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13501 LIBS=$ac_func_search_save_LIBS
13503 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13504 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13505 if test "$ac_cv_search_opendir" != no; then
13506 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13511 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13512 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13513 if test "${ac_cv_search_opendir+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 ac_func_search_save_LIBS=$LIBS
13517 ac_cv_search_opendir=no
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13525 /* Override any gcc2 internal prototype to avoid an error. */
13529 /* We use char because int might match the return type of a gcc2
13530 builtin and then its argument prototype would still apply. */
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13544 grep -v '^ *+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_search_opendir="none required"
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13568 rm -f conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 if test "$ac_cv_search_opendir" = no; then
13571 for ac_lib in x; do
13572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13573 cat >conftest.$ac_ext <<_ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13580 /* Override any gcc2 internal prototype to avoid an error. */
13584 /* We use char because int might match the return type of a gcc2
13585 builtin and then its argument prototype would still apply. */
13595 rm -f conftest.$ac_objext conftest$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag"
13605 || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 ac_cv_search_opendir="-l$ac_lib"
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13624 rm -f conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_func_search_save_LIBS
13630 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13631 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13632 if test "$ac_cv_search_opendir" != no; then
13633 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13639 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13640 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13641 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 #include <sys/types.h>
13651 #include <sys/wait.h>
13652 #ifndef WEXITSTATUS
13653 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13656 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13664 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_c_werror_flag"
13679 || test ! -s conftest.err'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_header_sys_wait_h=yes
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_cv_header_sys_wait_h=no
13698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13700 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13701 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13702 if test $ac_cv_header_sys_wait_h = yes; then
13704 cat >>confdefs.h <<\_ACEOF
13705 #define HAVE_SYS_WAIT_H 1
13710 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13711 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13712 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 #include <sys/types.h>
13722 #include <termios.h>
13728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13729 $EGREP "yes" >/dev/null 2>&1; then
13730 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13732 ac_cv_sys_tiocgwinsz_in_termios_h=no
13737 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13738 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13740 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13741 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13742 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13743 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 cat >conftest.$ac_ext <<_ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 #include <sys/types.h>
13753 #include <sys/ioctl.h>
13759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13760 $EGREP "yes" >/dev/null 2>&1; then
13761 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13763 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13768 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13769 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13771 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13773 cat >>confdefs.h <<\_ACEOF
13774 #define GWINSZ_IN_SYS_IOCTL 1
13878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13880 echo "$as_me:$LINENO: checking for $ac_header" >&5
13881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13888 # Is the header compilable?
13889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 $ac_includes_default
13898 #include <$ac_header>
13900 rm -f conftest.$ac_objext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>conftest.er1
13904 grep -v '^ *+' conftest.er1 >conftest.err
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_c_werror_flag"
13910 || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_header_compiler=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_header_compiler=no
13929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13931 echo "${ECHO_T}$ac_header_compiler" >&6
13933 # Is the header present?
13934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13936 cat >conftest.$ac_ext <<_ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 #include <$ac_header>
13944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } >/dev/null; then
13952 if test -s conftest.err; then
13953 ac_cpp_err=$ac_c_preproc_warn_flag
13954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13961 if test -z "$ac_cpp_err"; then
13962 ac_header_preproc=yes
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13967 ac_header_preproc=no
13969 rm -f conftest.err conftest.$ac_ext
13970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6
13973 # So? What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13980 ac_header_preproc=yes
13983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13997 ## --------------------------------------------- ##
13998 ## Report this to <http://www.openldap.org/its/> ##
13999 ## --------------------------------------------- ##
14002 sed "s/^/$as_me: WARNING: /" >&2
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 eval "$as_ac_Header=\$ac_header_preproc"
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017 cat >>confdefs.h <<_ACEOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14026 if test "$ac_cv_mingw32" = yes ; then
14029 for ac_header in winsock.h winsock2.h
14031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo "$as_me:$LINENO: checking for $ac_header" >&5
14034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14041 # Is the header compilable?
14042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 #include <$ac_header>
14053 rm -f conftest.$ac_objext
14054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055 (eval $ac_compile) 2>conftest.er1
14057 grep -v '^ *+' conftest.er1 >conftest.err
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_c_werror_flag"
14063 || test ! -s conftest.err'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_header_compiler=yes
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 ac_header_compiler=no
14082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14084 echo "${ECHO_T}$ac_header_compiler" >&6
14086 # Is the header present?
14087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14089 cat >conftest.$ac_ext <<_ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095 #include <$ac_header>
14097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14100 grep -v '^ *+' conftest.er1 >conftest.err
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } >/dev/null; then
14105 if test -s conftest.err; then
14106 ac_cpp_err=$ac_c_preproc_warn_flag
14107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14114 if test -z "$ac_cpp_err"; then
14115 ac_header_preproc=yes
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_header_preproc=no
14122 rm -f conftest.err conftest.$ac_ext
14123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14124 echo "${ECHO_T}$ac_header_preproc" >&6
14126 # So? What about this header?
14127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14133 ac_header_preproc=yes
14136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14150 ## --------------------------------------------- ##
14151 ## Report this to <http://www.openldap.org/its/> ##
14152 ## --------------------------------------------- ##
14155 sed "s/^/$as_me: WARNING: /" >&2
14158 echo "$as_me:$LINENO: checking for $ac_header" >&5
14159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 eval "$as_ac_Header=\$ac_header_preproc"
14165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14170 cat >>confdefs.h <<_ACEOF
14171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14181 for ac_header in resolv.h
14183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14184 echo "$as_me:$LINENO: checking for $ac_header" >&5
14185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 cat >conftest.$ac_ext <<_ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 $ac_includes_default
14196 #include <netinet/in.h>
14199 #include <$ac_header>
14201 rm -f conftest.$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203 (eval $ac_compile) 2>conftest.er1
14205 grep -v '^ *+' conftest.er1 >conftest.err
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_c_werror_flag"
14211 || test ! -s conftest.err'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 eval "$as_ac_Header=yes"
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 eval "$as_ac_Header=no"
14230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235 cat >>confdefs.h <<_ACEOF
14236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14245 for ac_header in netinet/tcp.h
14247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14248 echo "$as_me:$LINENO: checking for $ac_header" >&5
14249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 $ac_includes_default
14260 #include <netinet/in.h>
14263 #include <$ac_header>
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1 >conftest.err
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 eval "$as_ac_Header=yes"
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 eval "$as_ac_Header=no"
14294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14299 cat >>confdefs.h <<_ACEOF
14300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14309 for ac_header in sys/ucred.h
14311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14312 echo "$as_me:$LINENO: checking for $ac_header" >&5
14313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 cat >conftest.$ac_ext <<_ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 $ac_includes_default
14324 #ifdef HAVE_SYS_PARAM_H
14325 #include <sys/param.h>
14329 #include <$ac_header>
14331 rm -f conftest.$ac_objext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14333 (eval $ac_compile) 2>conftest.er1
14335 grep -v '^ *+' conftest.er1 >conftest.err
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -z "$ac_c_werror_flag"
14341 || test ! -s conftest.err'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 eval "$as_ac_Header=yes"
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 eval "$as_ac_Header=no"
14360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14365 cat >>confdefs.h <<_ACEOF
14366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14377 for ac_func in sigaction sigset
14379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14380 echo "$as_me:$LINENO: checking for $ac_func" >&5
14381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14382 if eval "test \"\${$as_ac_var+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14393 #define $ac_func innocuous_$ac_func
14395 /* System header to define __stub macros and hopefully few prototypes,
14396 which can conflict with char $ac_func (); below.
14397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14398 <limits.h> exists even on freestanding compilers. */
14401 # include <limits.h>
14403 # include <assert.h>
14408 /* Override any gcc2 internal prototype to avoid an error. */
14413 /* We use char because int might match the return type of a gcc2
14414 builtin and then its argument prototype would still apply. */
14416 /* The GNU C library defines this for functions which it implements
14417 to always fail with ENOSYS. Some functions are actually named
14418 something starting with __ and the normal name is an alias. */
14419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14422 char (*f) () = $ac_func;
14431 return f != $ac_func;
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 eval "$as_ac_var=yes"
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 eval "$as_ac_var=no"
14465 rm -f conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14470 if test `eval echo '${'$as_ac_var'}'` = yes; then
14471 cat >>confdefs.h <<_ACEOF
14472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14479 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14481 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14482 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14483 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 ac_check_lib_save_LIBS=$LIBS
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any gcc2 internal prototype to avoid an error. */
14499 /* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest$ac_exeext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_cv_lib_V3_sigset=yes
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 ac_cv_lib_V3_sigset=no
14539 rm -f conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LIBS=$ac_check_lib_save_LIBS
14543 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14544 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14545 if test $ac_cv_lib_V3_sigset = yes; then
14546 cat >>confdefs.h <<_ACEOF
14547 #define HAVE_LIBV3 1
14556 if test "$ac_cv_header_winsock_h" = yes; then
14557 echo "$as_me:$LINENO: checking for winsock" >&5
14558 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14559 if test "${ol_cv_winsock+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 for curlib in ws2_32 wsock32; do
14564 LIBS="$LIBS -l$curlib"
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 #include <winsock.h>
14578 select(0,NULL,NULL,NULL,NULL);
14580 gethostname(NULL,0);
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14588 (eval $ac_link) 2>conftest.er1
14590 grep -v '^ *+' conftest.er1 >conftest.err
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -z "$ac_c_werror_flag"
14596 || test ! -s conftest.err'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest$ac_exeext'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14615 rm -f conftest.err conftest.$ac_objext \
14616 conftest$ac_exeext conftest.$ac_ext
14618 if test $ol_cv_winsock = yes; then
14620 cat >>confdefs.h <<\_ACEOF
14621 #define HAVE_WINSOCK 1
14624 ac_cv_func_socket=yes
14625 ac_cv_func_select=yes
14626 ac_cv_func_closesocket=yes
14627 ac_cv_func_gethostname=yes
14628 if test $curlib = ws2_32; then
14629 ol_cv_winsock=winsock2
14631 cat >>confdefs.h <<\_ACEOF
14632 #define HAVE_WINSOCK2 1
14641 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14642 echo "${ECHO_T}$ol_cv_winsock" >&6
14646 echo "$as_me:$LINENO: checking for socket" >&5
14647 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14648 if test "${ac_cv_func_socket+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 cat >conftest.$ac_ext <<_ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14659 #define socket innocuous_socket
14661 /* System header to define __stub macros and hopefully few prototypes,
14662 which can conflict with char socket (); below.
14663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14664 <limits.h> exists even on freestanding compilers. */
14667 # include <limits.h>
14669 # include <assert.h>
14674 /* Override any gcc2 internal prototype to avoid an error. */
14679 /* We use char because int might match the return type of a gcc2
14680 builtin and then its argument prototype would still apply. */
14682 /* The GNU C library defines this for functions which it implements
14683 to always fail with ENOSYS. Some functions are actually named
14684 something starting with __ and the normal name is an alias. */
14685 #if defined (__stub_socket) || defined (__stub___socket)
14688 char (*f) () = socket;
14697 return f != socket;
14702 rm -f conftest.$ac_objext conftest$ac_exeext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14704 (eval $ac_link) 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag"
14712 || test ! -s conftest.err'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest$ac_exeext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_cv_func_socket=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_cv_func_socket=no
14731 rm -f conftest.err conftest.$ac_objext \
14732 conftest$ac_exeext conftest.$ac_ext
14734 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14735 echo "${ECHO_T}$ac_cv_func_socket" >&6
14736 if test $ac_cv_func_socket = yes; then
14741 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14742 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14743 if test "${ac_cv_lib_socket_main+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 ac_check_lib_save_LIBS=$LIBS
14747 LIBS="-lsocket $LIBS"
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766 (eval $ac_link) 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -z "$ac_c_werror_flag"
14774 || test ! -s conftest.err'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest$ac_exeext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_lib_socket_main=yes
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_lib_socket_main=no
14793 rm -f conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14798 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14799 if test $ac_cv_lib_socket_main = yes; then
14800 cat >>confdefs.h <<_ACEOF
14801 #define HAVE_LIBSOCKET 1
14804 LIBS="-lsocket $LIBS"
14809 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14810 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14811 if test "${ac_cv_lib_net_main+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 ac_check_lib_save_LIBS=$LIBS
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834 (eval $ac_link) 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest$ac_exeext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_lib_net_main=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_lib_net_main=no
14861 rm -f conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14865 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14866 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14867 if test $ac_cv_lib_net_main = yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_LIBNET 1
14877 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14878 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14879 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-lnsl_s $LIBS"
14884 cat >conftest.$ac_ext <<_ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902 (eval $ac_link) 2>conftest.er1
14904 grep -v '^ *+' conftest.er1 >conftest.err
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -z "$ac_c_werror_flag"
14910 || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_lib_nsl_s_main=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_lib_nsl_s_main=no
14929 rm -f conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14934 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14935 if test $ac_cv_lib_nsl_s_main = yes; then
14936 cat >>confdefs.h <<_ACEOF
14937 #define HAVE_LIBNSL_S 1
14940 LIBS="-lnsl_s $LIBS"
14945 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14946 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14947 if test "${ac_cv_lib_nsl_main+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 ac_check_lib_save_LIBS=$LIBS
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>conftest.er1
14972 grep -v '^ *+' conftest.er1 >conftest.err
14974 cat conftest.err >&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -z "$ac_c_werror_flag"
14978 || test ! -s conftest.err'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; } &&
14984 { ac_try='test -s conftest$ac_exeext'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 ac_cv_lib_nsl_main=yes
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_cv_lib_nsl_main=no
14997 rm -f conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15002 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15003 if test $ac_cv_lib_nsl_main = yes; then
15004 cat >>confdefs.h <<_ACEOF
15005 #define HAVE_LIBNSL 1
15013 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15014 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15015 if test "${ac_cv_lib_inet_socket+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 ac_check_lib_save_LIBS=$LIBS
15019 LIBS="-linet $LIBS"
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15027 /* Override any gcc2 internal prototype to avoid an error. */
15031 /* We use char because int might match the return type of a gcc2
15032 builtin and then its argument prototype would still apply. */
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest$ac_exeext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 ac_cv_lib_inet_socket=yes
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 ac_cv_lib_inet_socket=no
15071 rm -f conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15075 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15076 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15077 if test $ac_cv_lib_inet_socket = yes; then
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_LIBINET 1
15082 LIBS="-linet $LIBS"
15087 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15088 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15089 if test "${ac_cv_lib_gen_main+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 ac_check_lib_save_LIBS=$LIBS
15094 cat >conftest.$ac_ext <<_ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>conftest.er1
15114 grep -v '^ *+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag"
15120 || test ! -s conftest.err'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; } &&
15126 { ac_try='test -s conftest$ac_exeext'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 ac_cv_lib_gen_main=yes
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15137 ac_cv_lib_gen_main=no
15139 rm -f conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
15141 LIBS=$ac_check_lib_save_LIBS
15143 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15144 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15145 if test $ac_cv_lib_gen_main = yes; then
15146 cat >>confdefs.h <<_ACEOF
15147 #define HAVE_LIBGEN 1
15158 echo "$as_me:$LINENO: checking for select" >&5
15159 echo $ECHO_N "checking for select... $ECHO_C" >&6
15160 if test "${ac_cv_func_select+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 /* Define select to an innocuous variant, in case <limits.h> declares select.
15170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15171 #define select innocuous_select
15173 /* System header to define __stub macros and hopefully few prototypes,
15174 which can conflict with char select (); below.
15175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15176 <limits.h> exists even on freestanding compilers. */
15179 # include <limits.h>
15181 # include <assert.h>
15186 /* Override any gcc2 internal prototype to avoid an error. */
15191 /* We use char because int might match the return type of a gcc2
15192 builtin and then its argument prototype would still apply. */
15194 /* The GNU C library defines this for functions which it implements
15195 to always fail with ENOSYS. Some functions are actually named
15196 something starting with __ and the normal name is an alias. */
15197 #if defined (__stub_select) || defined (__stub___select)
15200 char (*f) () = select;
15209 return f != select;
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15216 (eval $ac_link) 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } &&
15223 { ac_try='test -z "$ac_c_werror_flag"
15224 || test ! -s conftest.err'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest$ac_exeext'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 ac_cv_func_select=yes
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 ac_cv_func_select=no
15243 rm -f conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15246 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15247 echo "${ECHO_T}$ac_cv_func_select" >&6
15248 if test $ac_cv_func_select = yes; then
15251 { { echo "$as_me:$LINENO: error: select() required." >&5
15252 echo "$as_me: error: select() required." >&2;}
15253 { (exit 1); exit 1; }; }
15257 if test "${ac_cv_header_winsock_h}" != yes; then
15260 for ac_header in sys/select.h sys/socket.h
15262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15264 echo "$as_me:$LINENO: checking for $ac_header" >&5
15265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15272 # Is the header compilable?
15273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15275 cat >conftest.$ac_ext <<_ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15281 $ac_includes_default
15282 #include <$ac_header>
15284 rm -f conftest.$ac_objext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286 (eval $ac_compile) 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag"
15294 || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest.$ac_objext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_header_compiler=yes
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_header_compiler=no
15313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15315 echo "${ECHO_T}$ac_header_compiler" >&6
15317 # Is the header present?
15318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #include <$ac_header>
15328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } >/dev/null; then
15336 if test -s conftest.err; then
15337 ac_cpp_err=$ac_c_preproc_warn_flag
15338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15345 if test -z "$ac_cpp_err"; then
15346 ac_header_preproc=yes
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 ac_header_preproc=no
15353 rm -f conftest.err conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15355 echo "${ECHO_T}$ac_header_preproc" >&6
15357 # So? What about this header?
15358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15364 ac_header_preproc=yes
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15381 ## --------------------------------------------- ##
15382 ## Report this to <http://www.openldap.org/its/> ##
15383 ## --------------------------------------------- ##
15386 sed "s/^/$as_me: WARNING: /" >&2
15389 echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 eval "$as_ac_Header=\$ac_header_preproc"
15396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15409 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15410 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15411 if test "${ac_cv_func_select_args+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15415 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15416 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15424 #if HAVE_SYS_SELECT_H
15425 # include <sys/select.h>
15427 #if HAVE_SYS_SOCKET_H
15428 # include <sys/socket.h>
15434 extern int select ($ac_arg1,
15435 $ac_arg234, $ac_arg234, $ac_arg234,
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15473 # Provide a safe default value.
15474 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15477 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15478 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15479 ac_save_IFS=$IFS; IFS=','
15480 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15484 cat >>confdefs.h <<_ACEOF
15485 #define SELECT_TYPE_ARG1 $1
15489 cat >>confdefs.h <<_ACEOF
15490 #define SELECT_TYPE_ARG234 ($2)
15494 cat >>confdefs.h <<_ACEOF
15495 #define SELECT_TYPE_ARG5 ($3)
15504 for ac_func in poll
15506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15507 echo "$as_me:$LINENO: checking for $ac_func" >&5
15508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15509 if eval "test \"\${$as_ac_var+set}\" = set"; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15520 #define $ac_func innocuous_$ac_func
15522 /* System header to define __stub macros and hopefully few prototypes,
15523 which can conflict with char $ac_func (); below.
15524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15525 <limits.h> exists even on freestanding compilers. */
15528 # include <limits.h>
15530 # include <assert.h>
15535 /* Override any gcc2 internal prototype to avoid an error. */
15540 /* We use char because int might match the return type of a gcc2
15541 builtin and then its argument prototype would still apply. */
15543 /* The GNU C library defines this for functions which it implements
15544 to always fail with ENOSYS. Some functions are actually named
15545 something starting with __ and the normal name is an alias. */
15546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15549 char (*f) () = $ac_func;
15558 return f != $ac_func;
15563 rm -f conftest.$ac_objext conftest$ac_exeext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15565 (eval $ac_link) 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -z "$ac_c_werror_flag"
15573 || test ! -s conftest.err'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest$ac_exeext'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 eval "$as_ac_var=yes"
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 eval "$as_ac_var=no"
15592 rm -f conftest.err conftest.$ac_objext \
15593 conftest$ac_exeext conftest.$ac_ext
15595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15597 if test `eval echo '${'$as_ac_var'}'` = yes; then
15598 cat >>confdefs.h <<_ACEOF
15599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15605 if test $ac_cv_func_poll = yes; then
15608 for ac_header in poll.h sys/poll.h
15610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15612 echo "$as_me:$LINENO: checking for $ac_header" >&5
15613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15620 # Is the header compilable?
15621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15623 cat >conftest.$ac_ext <<_ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 $ac_includes_default
15630 #include <$ac_header>
15632 rm -f conftest.$ac_objext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634 (eval $ac_compile) 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest.$ac_objext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_header_compiler=yes
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_header_compiler=no
15661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15663 echo "${ECHO_T}$ac_header_compiler" >&6
15665 # Is the header present?
15666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 #include <$ac_header>
15676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15679 grep -v '^ *+' conftest.er1 >conftest.err
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } >/dev/null; then
15684 if test -s conftest.err; then
15685 ac_cpp_err=$ac_c_preproc_warn_flag
15686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15693 if test -z "$ac_cpp_err"; then
15694 ac_header_preproc=yes
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 ac_header_preproc=no
15701 rm -f conftest.err conftest.$ac_ext
15702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15703 echo "${ECHO_T}$ac_header_preproc" >&6
15705 # So? What about this header?
15706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15712 ac_header_preproc=yes
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15729 ## --------------------------------------------- ##
15730 ## Report this to <http://www.openldap.org/its/> ##
15731 ## --------------------------------------------- ##
15734 sed "s/^/$as_me: WARNING: /" >&2
15737 echo "$as_me:$LINENO: checking for $ac_header" >&5
15738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 eval "$as_ac_Header=\$ac_header_preproc"
15744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760 for ac_header in sys/epoll.h
15762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15764 echo "$as_me:$LINENO: checking for $ac_header" >&5
15765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15772 # Is the header compilable?
15773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15775 cat >conftest.$ac_ext <<_ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 $ac_includes_default
15782 #include <$ac_header>
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15788 grep -v '^ *+' conftest.er1 >conftest.err
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_header_compiler=yes
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_header_compiler=no
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15815 echo "${ECHO_T}$ac_header_compiler" >&6
15817 # Is the header present?
15818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15820 cat >conftest.$ac_ext <<_ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826 #include <$ac_header>
15828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } >/dev/null; then
15836 if test -s conftest.err; then
15837 ac_cpp_err=$ac_c_preproc_warn_flag
15838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15845 if test -z "$ac_cpp_err"; then
15846 ac_header_preproc=yes
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ac_header_preproc=no
15853 rm -f conftest.err conftest.$ac_ext
15854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855 echo "${ECHO_T}$ac_header_preproc" >&6
15857 # So? What about this header?
15858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864 ac_header_preproc=yes
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15881 ## --------------------------------------------- ##
15882 ## Report this to <http://www.openldap.org/its/> ##
15883 ## --------------------------------------------- ##
15886 sed "s/^/$as_me: WARNING: /" >&2
15889 echo "$as_me:$LINENO: checking for $ac_header" >&5
15890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 eval "$as_ac_Header=\$ac_header_preproc"
15896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15901 cat >>confdefs.h <<_ACEOF
15902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15909 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15910 echo "$as_me:$LINENO: checking for epoll system call" >&5
15911 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15912 if test "$cross_compiling" = yes; then
15913 echo "$as_me:$LINENO: result: no" >&5
15914 echo "${ECHO_T}no" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 int main(int argc, char **argv)
15924 int epfd = epoll_create(256);
15925 exit (epfd == -1 ? 1 : 0);
15928 rm -f conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 echo "$as_me:$LINENO: result: yes" >&5
15940 echo "${ECHO_T}yes" >&6
15942 cat >>confdefs.h <<\_ACEOF
15943 #define HAVE_EPOLL 1
15947 echo "$as_me: program exited with status $ac_status" >&5
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 ( exit $ac_status )
15952 echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15960 for ac_header in sys/devpoll.h
15962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15964 echo "$as_me:$LINENO: checking for $ac_header" >&5
15965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15972 # Is the header compilable?
15973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 $ac_includes_default
15982 #include <$ac_header>
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986 (eval $ac_compile) 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag"
15994 || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest.$ac_objext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ac_header_compiler=yes
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_header_compiler=no
16013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16015 echo "${ECHO_T}$ac_header_compiler" >&6
16017 # Is the header present?
16018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16020 cat >conftest.$ac_ext <<_ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 #include <$ac_header>
16028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16031 grep -v '^ *+' conftest.er1 >conftest.err
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } >/dev/null; then
16036 if test -s conftest.err; then
16037 ac_cpp_err=$ac_c_preproc_warn_flag
16038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16045 if test -z "$ac_cpp_err"; then
16046 ac_header_preproc=yes
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_header_preproc=no
16053 rm -f conftest.err conftest.$ac_ext
16054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16055 echo "${ECHO_T}$ac_header_preproc" >&6
16057 # So? What about this header?
16058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16064 ac_header_preproc=yes
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16081 ## --------------------------------------------- ##
16082 ## Report this to <http://www.openldap.org/its/> ##
16083 ## --------------------------------------------- ##
16086 sed "s/^/$as_me: WARNING: /" >&2
16089 echo "$as_me:$LINENO: checking for $ac_header" >&5
16090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 eval "$as_ac_Header=\$ac_header_preproc"
16096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16101 cat >>confdefs.h <<_ACEOF
16102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16109 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16110 -a "${ac_cv_header_poll_h}" = yes ; \
16112 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16113 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16114 if test "$cross_compiling" = yes; then
16115 echo "$as_me:$LINENO: result: no" >&5
16116 echo "${ECHO_T}no" >&6
16118 cat >conftest.$ac_ext <<_ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 int main(int argc, char **argv)
16126 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16127 exit (devpollfd == -1 ? 1 : 0);
16130 rm -f conftest$ac_exeext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132 (eval $ac_link) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 echo "$as_me:$LINENO: result: yes" >&5
16142 echo "${ECHO_T}yes" >&6
16144 cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_DEVPOLL 1
16149 echo "$as_me: program exited with status $ac_status" >&5
16150 echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16153 ( exit $ac_status )
16154 echo "$as_me:$LINENO: result: no" >&5
16155 echo "${ECHO_T}no" >&6
16157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16162 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16163 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16164 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 cat >conftest.$ac_ext <<_ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16176 #include <sys/types.h>
16179 #include <stdlib.h>
16184 char *c = (char *) *sys_errlist
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>conftest.er1
16193 grep -v '^ *+' conftest.er1 >conftest.err
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -z "$ac_c_werror_flag"
16199 || test ! -s conftest.err'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ol_cv_dcl_sys_errlist=yes
16212 ol_cv_have_sys_errlist=yes
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ol_cv_dcl_sys_errlist=no
16219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16222 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16224 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16225 if test $ol_cv_dcl_sys_errlist = no ; then
16227 cat >>confdefs.h <<\_ACEOF
16228 #define DECL_SYS_ERRLIST 1
16232 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16233 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16234 if test "${ol_cv_have_sys_errlist+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16248 char *c = (char *) *sys_errlist
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16255 (eval $ac_link) 2>conftest.er1
16257 grep -v '^ *+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } &&
16262 { ac_try='test -z "$ac_c_werror_flag"
16263 || test ! -s conftest.err'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
16269 { ac_try='test -s conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ol_cv_have_sys_errlist=yes
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ol_cv_have_sys_errlist=no
16282 rm -f conftest.err conftest.$ac_objext \
16283 conftest$ac_exeext conftest.$ac_ext
16285 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16286 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16288 if test $ol_cv_have_sys_errlist = yes ; then
16290 cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_SYS_ERRLIST 1
16297 for ac_func in strerror strerror_r
16299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16300 echo "$as_me:$LINENO: checking for $ac_func" >&5
16301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16302 if eval "test \"\${$as_ac_var+set}\" = set"; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16313 #define $ac_func innocuous_$ac_func
16315 /* System header to define __stub macros and hopefully few prototypes,
16316 which can conflict with char $ac_func (); below.
16317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16318 <limits.h> exists even on freestanding compilers. */
16321 # include <limits.h>
16323 # include <assert.h>
16328 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16336 /* The GNU C library defines this for functions which it implements
16337 to always fail with ENOSYS. Some functions are actually named
16338 something starting with __ and the normal name is an alias. */
16339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16342 char (*f) () = $ac_func;
16351 return f != $ac_func;
16356 rm -f conftest.$ac_objext conftest$ac_exeext
16357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16358 (eval $ac_link) 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -z "$ac_c_werror_flag"
16366 || test ! -s conftest.err'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest$ac_exeext'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 eval "$as_ac_var=yes"
16380 echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16383 eval "$as_ac_var=no"
16385 rm -f conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16390 if test `eval echo '${'$as_ac_var'}'` = yes; then
16391 cat >>confdefs.h <<_ACEOF
16392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16398 ol_cv_func_strerror_r=no
16399 if test "${ac_cv_func_strerror_r}" = yes ; then
16400 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16401 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16402 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 #include <string.h>
16414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16415 $EGREP "strerror_r" >/dev/null 2>&1; then
16416 ol_decl_strerror_r=yes
16418 ol_decl_strerror_r=no
16422 if test $ol_decl_strerror_r = yes ; then
16423 cat >conftest.$ac_ext <<_ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 #include <string.h>
16433 /* from autoconf 2.59 */
16435 char x = *strerror_r (0, buf, sizeof buf);
16436 char *p = strerror_r (0, buf, sizeof buf);
16442 rm -f conftest.$ac_objext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444 (eval $ac_compile) 2>conftest.er1
16446 grep -v '^ *+' conftest.er1 >conftest.err
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -z "$ac_c_werror_flag"
16452 || test ! -s conftest.err'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest.$ac_objext'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ol_cv_nonposix_strerror_r=yes
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16469 ol_cv_nonposix_strerror_r=no
16471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16473 if test "$cross_compiling" = yes; then
16474 ol_cv_nonposix_strerror=no
16476 cat >conftest.$ac_ext <<_ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16486 strerror_r( 1, buf, sizeof buf );
16487 exit( buf[0] == 0 );
16491 rm -f conftest$ac_exeext
16492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ol_cv_nonposix_strerror_r=yes
16504 echo "$as_me: program exited with status $ac_status" >&5
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16508 ( exit $ac_status )
16509 ol_cv_nonposix_strerror=no
16511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16516 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16517 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16518 if test $ol_cv_nonposix_strerror_r = yes ; then
16520 cat >>confdefs.h <<\_ACEOF
16521 #define HAVE_NONPOSIX_STRERROR_R 1
16526 elif test "${ac_cv_func_strerror}" = no ; then
16527 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16528 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16529 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16541 #include <sys/types.h>
16544 #include <stdlib.h>
16549 char *c = (char *) *sys_errlist
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>conftest.er1
16558 grep -v '^ *+' conftest.er1 >conftest.err
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -z "$ac_c_werror_flag"
16564 || test ! -s conftest.err'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest.$ac_objext'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ol_cv_dcl_sys_errlist=yes
16577 ol_cv_have_sys_errlist=yes
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 ol_cv_dcl_sys_errlist=no
16584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16587 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16589 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16590 if test $ol_cv_dcl_sys_errlist = no ; then
16592 cat >>confdefs.h <<\_ACEOF
16593 #define DECL_SYS_ERRLIST 1
16597 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16598 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16599 if test "${ol_cv_have_sys_errlist+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 cat >conftest.$ac_ext <<_ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16613 char *c = (char *) *sys_errlist
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>conftest.er1
16622 grep -v '^ *+' conftest.er1 >conftest.err
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest$ac_exeext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ol_cv_have_sys_errlist=yes
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ol_cv_have_sys_errlist=no
16647 rm -f conftest.err conftest.$ac_objext \
16648 conftest$ac_exeext conftest.$ac_ext
16650 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16651 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16653 if test $ol_cv_have_sys_errlist = yes ; then
16655 cat >>confdefs.h <<\_ACEOF
16656 #define HAVE_SYS_ERRLIST 1
16665 for ac_header in regex.h
16667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16668 echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 $ac_includes_default
16680 #ifdef HAVE_SYS_TYPES_H
16681 #include <sys/types.h>
16685 #include <$ac_header>
16687 rm -f conftest.$ac_objext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689 (eval $ac_compile) 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag"
16697 || test ! -s conftest.err'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 eval "$as_ac_Header=yes"
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 eval "$as_ac_Header=no"
16716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16721 cat >>confdefs.h <<_ACEOF
16722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16730 if test "$ac_cv_header_regex_h" != yes ; then
16731 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16732 echo "$as_me: error: POSIX regex.h required." >&2;}
16733 { (exit 1); exit 1; }; }
16735 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16736 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16737 if test "${ac_cv_search_regfree+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 ac_func_search_save_LIBS=$LIBS
16741 ac_cv_search_regfree=no
16742 cat >conftest.$ac_ext <<_ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16749 /* Override any gcc2 internal prototype to avoid an error. */
16753 /* We use char because int might match the return type of a gcc2
16754 builtin and then its argument prototype would still apply. */
16764 rm -f conftest.$ac_objext conftest$ac_exeext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16766 (eval $ac_link) 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest$ac_exeext'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_search_regfree="none required"
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16792 rm -f conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 if test "$ac_cv_search_regfree" = no; then
16795 for ac_lib in regex gnuregex; do
16796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16797 cat >conftest.$ac_ext <<_ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16804 /* Override any gcc2 internal prototype to avoid an error. */
16808 /* We use char because int might match the return type of a gcc2
16809 builtin and then its argument prototype would still apply. */
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16821 (eval $ac_link) 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_search_regfree="-l$ac_lib"
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16848 rm -f conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16852 LIBS=$ac_func_search_save_LIBS
16854 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16855 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16856 if test "$ac_cv_search_regfree" != no; then
16857 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16860 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16861 echo "$as_me: error: POSIX regex required." >&2;}
16862 { (exit 1); exit 1; }; }
16867 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16868 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16869 if test "${ol_cv_c_posix_regex+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 if test "$cross_compiling" = yes; then
16874 ol_cv_c_posix_regex=cross
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16883 #include <sys/types.h>
16885 static char *pattern, *string;
16893 if(regcomp(&re, pattern, 0)) {
16897 string = "ALL MATCH";
16899 rc = regexec(&re, string, 0, (void*)0, 0);
16906 rm -f conftest$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908 (eval $ac_link) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ol_cv_c_posix_regex=yes
16919 echo "$as_me: program exited with status $ac_status" >&5
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ( exit $ac_status )
16924 ol_cv_c_posix_regex=no
16926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16929 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16930 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16932 if test "$ol_cv_c_posix_regex" = no ; then
16933 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16934 echo "$as_me: error: broken POSIX regex!" >&2;}
16935 { (exit 1); exit 1; }; }
16941 for ac_header in sys/uuid.h
16943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16945 echo "$as_me:$LINENO: checking for $ac_header" >&5
16946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16953 # Is the header compilable?
16954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 $ac_includes_default
16963 #include <$ac_header>
16965 rm -f conftest.$ac_objext
16966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16967 (eval $ac_compile) 2>conftest.er1
16969 grep -v '^ *+' conftest.er1 >conftest.err
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag"
16975 || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_header_compiler=yes
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_header_compiler=no
16994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16996 echo "${ECHO_T}$ac_header_compiler" >&6
16998 # Is the header present?
16999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17001 cat >conftest.$ac_ext <<_ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 #include <$ac_header>
17009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17012 grep -v '^ *+' conftest.er1 >conftest.err
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } >/dev/null; then
17017 if test -s conftest.err; then
17018 ac_cpp_err=$ac_c_preproc_warn_flag
17019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17026 if test -z "$ac_cpp_err"; then
17027 ac_header_preproc=yes
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 ac_header_preproc=no
17034 rm -f conftest.err conftest.$ac_ext
17035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17036 echo "${ECHO_T}$ac_header_preproc" >&6
17038 # So? What about this header?
17039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17045 ac_header_preproc=yes
17048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17062 ## --------------------------------------------- ##
17063 ## Report this to <http://www.openldap.org/its/> ##
17064 ## --------------------------------------------- ##
17067 sed "s/^/$as_me: WARNING: /" >&2
17070 echo "$as_me:$LINENO: checking for $ac_header" >&5
17071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 eval "$as_ac_Header=\$ac_header_preproc"
17077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17082 cat >>confdefs.h <<_ACEOF
17083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17090 if test $ac_cv_header_sys_uuid_h = yes ; then
17092 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17093 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17094 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 ac_func_search_save_LIBS=$LIBS
17098 ac_cv_search_uuid_to_str=no
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17106 /* Override any gcc2 internal prototype to avoid an error. */
17110 /* We use char because int might match the return type of a gcc2
17111 builtin and then its argument prototype would still apply. */
17112 char uuid_to_str ();
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_search_uuid_to_str="none required"
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17149 rm -f conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17151 if test "$ac_cv_search_uuid_to_str" = no; then
17152 for ac_lib in uuid; do
17153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17154 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17161 /* Override any gcc2 internal prototype to avoid an error. */
17165 /* We use char because int might match the return type of a gcc2
17166 builtin and then its argument prototype would still apply. */
17167 char uuid_to_str ();
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17178 (eval $ac_link) 2>conftest.er1
17180 grep -v '^ *+' conftest.er1 >conftest.err
17182 cat conftest.err >&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } &&
17185 { ac_try='test -z "$ac_c_werror_flag"
17186 || test ! -s conftest.err'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest$ac_exeext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_search_uuid_to_str="-l$ac_lib"
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17205 rm -f conftest.err conftest.$ac_objext \
17206 conftest$ac_exeext conftest.$ac_ext
17209 LIBS=$ac_func_search_save_LIBS
17211 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17212 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17213 if test "$ac_cv_search_uuid_to_str" != no; then
17214 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17222 if test have_uuid = yes ; then
17224 cat >>confdefs.h <<\_ACEOF
17225 #define HAVE_UUID_TO_STR 1
17229 test "$ac_cv_search_uuid_to_str" = "none required" || \
17230 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17234 if test $have_uuid = no ; then
17236 for ac_header in uuid/uuid.h
17238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17240 echo "$as_me:$LINENO: checking for $ac_header" >&5
17241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17248 # Is the header compilable?
17249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 $ac_includes_default
17258 #include <$ac_header>
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag"
17270 || test ! -s conftest.err'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest.$ac_objext'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 ac_header_compiler=yes
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_compiler=no
17289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17291 echo "${ECHO_T}$ac_header_compiler" >&6
17293 # Is the header present?
17294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 #include <$ac_header>
17304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } >/dev/null; then
17312 if test -s conftest.err; then
17313 ac_cpp_err=$ac_c_preproc_warn_flag
17314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17321 if test -z "$ac_cpp_err"; then
17322 ac_header_preproc=yes
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 ac_header_preproc=no
17329 rm -f conftest.err conftest.$ac_ext
17330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331 echo "${ECHO_T}$ac_header_preproc" >&6
17333 # So? What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17340 ac_header_preproc=yes
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17357 ## --------------------------------------------- ##
17358 ## Report this to <http://www.openldap.org/its/> ##
17359 ## --------------------------------------------- ##
17362 sed "s/^/$as_me: WARNING: /" >&2
17365 echo "$as_me:$LINENO: checking for $ac_header" >&5
17366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 eval "$as_ac_Header=\$ac_header_preproc"
17372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17385 if test $ac_cv_header_uuid_uuid_h = yes ; then
17387 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17388 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17389 if test "${ac_cv_search_uuid_generate+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 ac_func_search_save_LIBS=$LIBS
17393 ac_cv_search_uuid_generate=no
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17401 /* Override any gcc2 internal prototype to avoid an error. */
17405 /* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17407 char uuid_generate ();
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest$ac_exeext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_search_uuid_generate="none required"
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17444 rm -f conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446 if test "$ac_cv_search_uuid_generate" = no; then
17447 for ac_lib in uuid; do
17448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 /* Override any gcc2 internal prototype to avoid an error. */
17460 /* We use char because int might match the return type of a gcc2
17461 builtin and then its argument prototype would still apply. */
17462 char uuid_generate ();
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17473 (eval $ac_link) 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_search_uuid_generate="-l$ac_lib"
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17500 rm -f conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17504 LIBS=$ac_func_search_save_LIBS
17506 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17507 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17508 if test "$ac_cv_search_uuid_generate" != no; then
17509 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17517 if test have_uuid = yes ; then
17519 cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_UUID_GENERATE 1
17524 test "$ac_cv_search_uuid_generate" = "none required" || \
17525 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17530 if test $have_uuid = no ; then
17531 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17532 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17534 LIBS="$LIBS -lrpcrt4"
17535 cat >conftest.$ac_ext <<_ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17542 int __stdcall UuidCreate(void *);
17543 int __stdcall UuidToStringA(void *,void **);
17550 UuidToStringA(0,0);
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558 (eval $ac_link) 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag"
17566 || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest$ac_exeext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17585 rm -f conftest.err conftest.$ac_objext \
17586 conftest$ac_exeext conftest.$ac_ext
17587 if test $need_rpcrt = yes; then
17588 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17591 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17592 echo "${ECHO_T}$need_rpcrt" >&6
17595 ol_cv_lib_resolver=no
17596 if test $ol_cv_lib_resolver = no ; then
17597 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17598 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17599 if test "${ol_cv_resolver_none+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 LIBS="$ol_RESOLVER_LIB $LIBS"
17607 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17614 #ifdef HAVE_SYS_TYPES_H
17615 # include <sys/types.h>
17617 #include <netinet/in.h>
17618 #ifdef HAVE_ARPA_NAMESER_H
17619 # include <arpa/nameser.h>
17621 #ifdef HAVE_RESOLV_H
17622 # include <resolv.h>
17630 char *request = NULL;
17631 unsigned char reply[64*1024];
17632 unsigned char host[64*1024];
17636 /* Bind 8/9 interface */
17637 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17639 /* Bind 4 interface */
17643 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17647 /* Bind 8/9 interface */
17649 #elif defined(HFIXEDSZ)
17650 /* Bind 4 interface w/ HFIXEDSZ */
17653 /* Bind 4 interface w/o HFIXEDSZ */
17654 p += sizeof(HEADER);
17656 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17662 rm -f conftest.$ac_objext conftest$ac_exeext
17663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664 (eval $ac_link) 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_c_werror_flag"
17672 || test ! -s conftest.err'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try='test -s conftest$ac_exeext'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ol_cv_resolver_none=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ol_cv_resolver_none=no
17691 rm -f conftest.err conftest.$ac_objext \
17692 conftest$ac_exeext conftest.$ac_ext
17697 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17698 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17700 if test $ol_cv_resolver_none = yes ; then
17701 ol_cv_lib_resolver=yes
17705 if test $ol_cv_lib_resolver = no ; then
17706 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17707 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17708 if test "${ol_cv_resolver_resolv+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 ol_RESOLVER_LIB=-lresolv
17714 LIBS="$ol_RESOLVER_LIB $LIBS"
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17723 #ifdef HAVE_SYS_TYPES_H
17724 # include <sys/types.h>
17726 #include <netinet/in.h>
17727 #ifdef HAVE_ARPA_NAMESER_H
17728 # include <arpa/nameser.h>
17730 #ifdef HAVE_RESOLV_H
17731 # include <resolv.h>
17739 char *request = NULL;
17740 unsigned char reply[64*1024];
17741 unsigned char host[64*1024];
17745 /* Bind 8/9 interface */
17746 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17748 /* Bind 4 interface */
17752 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17756 /* Bind 8/9 interface */
17758 #elif defined(HFIXEDSZ)
17759 /* Bind 4 interface w/ HFIXEDSZ */
17762 /* Bind 4 interface w/o HFIXEDSZ */
17763 p += sizeof(HEADER);
17765 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17773 (eval $ac_link) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest$ac_exeext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ol_cv_resolver_resolv=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ol_cv_resolver_resolv=no
17800 rm -f conftest.err conftest.$ac_objext \
17801 conftest$ac_exeext conftest.$ac_ext
17806 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17807 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17809 if test $ol_cv_resolver_resolv = yes ; then
17810 ol_cv_lib_resolver=-lresolv
17814 if test $ol_cv_lib_resolver = no ; then
17815 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17816 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17817 if test "${ol_cv_resolver_bind+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 ol_RESOLVER_LIB=-lbind
17823 LIBS="$ol_RESOLVER_LIB $LIBS"
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17832 #ifdef HAVE_SYS_TYPES_H
17833 # include <sys/types.h>
17835 #include <netinet/in.h>
17836 #ifdef HAVE_ARPA_NAMESER_H
17837 # include <arpa/nameser.h>
17839 #ifdef HAVE_RESOLV_H
17840 # include <resolv.h>
17848 char *request = NULL;
17849 unsigned char reply[64*1024];
17850 unsigned char host[64*1024];
17854 /* Bind 8/9 interface */
17855 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17857 /* Bind 4 interface */
17861 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17865 /* Bind 8/9 interface */
17867 #elif defined(HFIXEDSZ)
17868 /* Bind 4 interface w/ HFIXEDSZ */
17871 /* Bind 4 interface w/o HFIXEDSZ */
17872 p += sizeof(HEADER);
17874 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17882 (eval $ac_link) 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -z "$ac_c_werror_flag"
17890 || test ! -s conftest.err'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ol_cv_resolver_bind=yes
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ol_cv_resolver_bind=no
17909 rm -f conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17915 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17916 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17918 if test $ol_cv_resolver_bind = yes ; then
17919 ol_cv_lib_resolver=-lbind
17926 if test "$ol_cv_lib_resolver" != no ; then
17928 cat >>confdefs.h <<\_ACEOF
17929 #define HAVE_RES_QUERY 1
17933 if test "$ol_enable_dnssrv" != no ; then
17937 if test "$ol_cv_lib_resolver" != yes ; then
17938 LIBS="$ol_cv_lib_resolver $LIBS"
17942 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17943 if test "$ol_link_dnssrv" = no ; then
17944 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17945 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17946 { (exit 1); exit 1; }; }
17949 ol_enable_dnssrv=no
17953 for ac_func in hstrerror
17955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17956 echo "$as_me:$LINENO: checking for $ac_func" >&5
17957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17958 if eval "test \"\${$as_ac_var+set}\" = set"; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17969 #define $ac_func innocuous_$ac_func
17971 /* System header to define __stub macros and hopefully few prototypes,
17972 which can conflict with char $ac_func (); below.
17973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17974 <limits.h> exists even on freestanding compilers. */
17977 # include <limits.h>
17979 # include <assert.h>
17984 /* Override any gcc2 internal prototype to avoid an error. */
17989 /* We use char because int might match the return type of a gcc2
17990 builtin and then its argument prototype would still apply. */
17992 /* The GNU C library defines this for functions which it implements
17993 to always fail with ENOSYS. Some functions are actually named
17994 something starting with __ and the normal name is an alias. */
17995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17998 char (*f) () = $ac_func;
18007 return f != $ac_func;
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18014 (eval $ac_link) 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag"
18022 || test ! -s conftest.err'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest$ac_exeext'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034 eval "$as_ac_var=yes"
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 eval "$as_ac_var=no"
18041 rm -f conftest.err conftest.$ac_objext \
18042 conftest$ac_exeext conftest.$ac_ext
18044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18046 if test `eval echo '${'$as_ac_var'}'` = yes; then
18047 cat >>confdefs.h <<_ACEOF
18048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18059 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18062 echo "$as_me:$LINENO: checking for $ac_func" >&5
18063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18064 if eval "test \"\${$as_ac_var+set}\" = set"; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 cat >conftest.$ac_ext <<_ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18075 #define $ac_func innocuous_$ac_func
18077 /* System header to define __stub macros and hopefully few prototypes,
18078 which can conflict with char $ac_func (); below.
18079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18080 <limits.h> exists even on freestanding compilers. */
18083 # include <limits.h>
18085 # include <assert.h>
18090 /* Override any gcc2 internal prototype to avoid an error. */
18095 /* We use char because int might match the return type of a gcc2
18096 builtin and then its argument prototype would still apply. */
18098 /* The GNU C library defines this for functions which it implements
18099 to always fail with ENOSYS. Some functions are actually named
18100 something starting with __ and the normal name is an alias. */
18101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18104 char (*f) () = $ac_func;
18113 return f != $ac_func;
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18120 (eval $ac_link) 2>conftest.er1
18122 grep -v '^ *+' conftest.er1 >conftest.err
18124 cat conftest.err >&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } &&
18127 { ac_try='test -z "$ac_c_werror_flag"
18128 || test ! -s conftest.err'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest$ac_exeext'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 eval "$as_ac_var=yes"
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 eval "$as_ac_var=no"
18147 rm -f conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18152 if test `eval echo '${'$as_ac_var'}'` = yes; then
18153 cat >>confdefs.h <<_ACEOF
18154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18162 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18163 if test $ol_enable_ipv6 = yes ; then
18164 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18165 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18166 { (exit 1); exit 1; }; }
18168 elif test $ol_enable_ipv6 != no ; then
18169 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18170 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18171 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18182 # include <netinet/in.h>
18183 # ifdef INET6_ADDRSTRLEN
18184 __has_inet6_addrstrlen__;
18188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18189 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18190 ol_cv_inet6_addrstrlen=yes
18192 ol_cv_inet6_addrstrlen=no
18197 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18198 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18201 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18202 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18203 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 cat >conftest.$ac_ext <<_ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18214 #include <sys/types.h>
18215 #include <sys/socket.h>
18221 struct sockaddr_storage ss;
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ol_cv_struct_sockaddr_storage=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ol_cv_struct_sockaddr_storage=no
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18258 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18259 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18261 if test $ol_cv_inet6_addrstrlen = yes &&
18262 test $ol_cv_struct_sockaddr_storage = yes ; then
18264 elif test $ol_enable_ipv6 = yes &&
18265 test $ol_cv_inet6_addrstrlen = no ; then
18266 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18267 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18268 { (exit 1); exit 1; }; }
18269 elif test $ol_enable_ipv6 = yes &&
18270 test $ol_cv_struct_sockaddr_storage = no ; then
18271 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18272 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18273 { (exit 1); exit 1; }; }
18277 if test $ol_enable_local != no ; then
18279 for ac_header in sys/un.h
18281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18283 echo "$as_me:$LINENO: checking for $ac_header" >&5
18284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18291 # Is the header compilable?
18292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 $ac_includes_default
18301 #include <$ac_header>
18303 rm -f conftest.$ac_objext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18305 (eval $ac_compile) 2>conftest.er1
18307 grep -v '^ *+' conftest.er1 >conftest.err
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -z "$ac_c_werror_flag"
18313 || test ! -s conftest.err'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest.$ac_objext'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 ac_header_compiler=yes
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_header_compiler=no
18332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18334 echo "${ECHO_T}$ac_header_compiler" >&6
18336 # Is the header present?
18337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18339 cat >conftest.$ac_ext <<_ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 #include <$ac_header>
18347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18350 grep -v '^ *+' conftest.er1 >conftest.err
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } >/dev/null; then
18355 if test -s conftest.err; then
18356 ac_cpp_err=$ac_c_preproc_warn_flag
18357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18364 if test -z "$ac_cpp_err"; then
18365 ac_header_preproc=yes
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18370 ac_header_preproc=no
18372 rm -f conftest.err conftest.$ac_ext
18373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18374 echo "${ECHO_T}$ac_header_preproc" >&6
18376 # So? What about this header?
18377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18383 ac_header_preproc=yes
18386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18400 ## --------------------------------------------- ##
18401 ## Report this to <http://www.openldap.org/its/> ##
18402 ## --------------------------------------------- ##
18405 sed "s/^/$as_me: WARNING: /" >&2
18408 echo "$as_me:$LINENO: checking for $ac_header" >&5
18409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 eval "$as_ac_Header=\$ac_header_preproc"
18415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18420 cat >>confdefs.h <<_ACEOF
18421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18429 if test $ol_enable_local = auto ; then
18430 ol_enable_local=$ac_cv_header_sys_un_h
18431 elif test $ac_cv_header_sys_un_h = no ; then
18432 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18433 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18434 { (exit 1); exit 1; }; }
18439 if test $ol_with_tls = yes ; then
18444 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18446 for ac_header in openssl/ssl.h
18448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18450 echo "$as_me:$LINENO: checking for $ac_header" >&5
18451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18458 # Is the header compilable?
18459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18461 cat >conftest.$ac_ext <<_ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18467 $ac_includes_default
18468 #include <$ac_header>
18470 rm -f conftest.$ac_objext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472 (eval $ac_compile) 2>conftest.er1
18474 grep -v '^ *+' conftest.er1 >conftest.err
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
18479 { ac_try='test -z "$ac_c_werror_flag"
18480 || test ! -s conftest.err'
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest.$ac_objext'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_header_compiler=yes
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 ac_header_compiler=no
18499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18501 echo "${ECHO_T}$ac_header_compiler" >&6
18503 # Is the header present?
18504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 #include <$ac_header>
18514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } >/dev/null; then
18522 if test -s conftest.err; then
18523 ac_cpp_err=$ac_c_preproc_warn_flag
18524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18531 if test -z "$ac_cpp_err"; then
18532 ac_header_preproc=yes
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_header_preproc=no
18539 rm -f conftest.err conftest.$ac_ext
18540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18541 echo "${ECHO_T}$ac_header_preproc" >&6
18543 # So? What about this header?
18544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18550 ac_header_preproc=yes
18553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18567 ## --------------------------------------------- ##
18568 ## Report this to <http://www.openldap.org/its/> ##
18569 ## --------------------------------------------- ##
18572 sed "s/^/$as_me: WARNING: /" >&2
18575 echo "$as_me:$LINENO: checking for $ac_header" >&5
18576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 eval "$as_ac_Header=\$ac_header_preproc"
18582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18587 cat >>confdefs.h <<_ACEOF
18588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18596 if test $ac_cv_header_openssl_ssl_h = yes ; then
18597 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18598 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18599 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 ac_check_lib_save_LIBS=$LIBS
18603 LIBS="-lssl -lcrypto $LIBS"
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18611 /* Override any gcc2 internal prototype to avoid an error. */
18615 /* We use char because int might match the return type of a gcc2
18616 builtin and then its argument prototype would still apply. */
18617 char SSL_library_init ();
18621 SSL_library_init ();
18626 rm -f conftest.$ac_objext conftest$ac_exeext
18627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18628 (eval $ac_link) 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } &&
18635 { ac_try='test -z "$ac_c_werror_flag"
18636 || test ! -s conftest.err'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_lib_ssl_SSL_library_init=yes
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 ac_cv_lib_ssl_SSL_library_init=no
18655 rm -f conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18659 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18660 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18661 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18669 if test $have_openssl = no ; then
18670 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18671 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18672 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 ac_check_lib_save_LIBS=$LIBS
18676 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18684 /* Override any gcc2 internal prototype to avoid an error. */
18688 /* We use char because int might match the return type of a gcc2
18689 builtin and then its argument prototype would still apply. */
18690 char ssl3_accept ();
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18701 (eval $ac_link) 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -z "$ac_c_werror_flag"
18709 || test ! -s conftest.err'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; } &&
18715 { ac_try='test -s conftest$ac_exeext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_lib_ssl_ssl3_accept=yes
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 ac_cv_lib_ssl_ssl3_accept=no
18728 rm -f conftest.err conftest.$ac_objext \
18729 conftest$ac_exeext conftest.$ac_ext
18730 LIBS=$ac_check_lib_save_LIBS
18732 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18733 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18734 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18743 if test $have_openssl = yes ; then
18744 ol_with_tls=openssl
18748 cat >>confdefs.h <<\_ACEOF
18749 #define HAVE_OPENSSL 1
18753 if test $need_rsaref = yes; then
18755 cat >>confdefs.h <<\_ACEOF
18756 #define HAVE_RSAREF 1
18760 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18762 TLS_LIBS="-lssl -lcrypto"
18765 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18766 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18767 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18778 #ifdef HAVE_OPENSSL_SSL_H
18779 #include <openssl/ssl.h>
18782 /* Require 0.9.7d+ */
18783 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18784 char *__ssl_compat = "0.9.7d";
18788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18789 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18790 ol_cv_ssl_crl_compat=yes
18792 ol_cv_ssl_crl_compat=no
18797 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18798 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18800 if test $ol_cv_ssl_crl_compat = yes ; then
18802 cat >>confdefs.h <<\_ACEOF
18803 #define HAVE_OPENSSL_CRL 1
18811 if test $ol_link_tls = no ; then
18812 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18814 for ac_header in gnutls/gnutls.h
18816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18818 echo "$as_me:$LINENO: checking for $ac_header" >&5
18819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18826 # Is the header compilable?
18827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 #include <$ac_header>
18838 rm -f conftest.$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18842 grep -v '^ *+' conftest.er1 >conftest.err
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag"
18848 || test ! -s conftest.err'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_header_compiler=yes
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18865 ac_header_compiler=no
18867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869 echo "${ECHO_T}$ac_header_compiler" >&6
18871 # Is the header present?
18872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <$ac_header>
18882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18885 grep -v '^ *+' conftest.er1 >conftest.err
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } >/dev/null; then
18890 if test -s conftest.err; then
18891 ac_cpp_err=$ac_c_preproc_warn_flag
18892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18899 if test -z "$ac_cpp_err"; then
18900 ac_header_preproc=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_header_preproc=no
18907 rm -f conftest.err conftest.$ac_ext
18908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18909 echo "${ECHO_T}$ac_header_preproc" >&6
18911 # So? What about this header?
18912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18918 ac_header_preproc=yes
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18935 ## --------------------------------------------- ##
18936 ## Report this to <http://www.openldap.org/its/> ##
18937 ## --------------------------------------------- ##
18940 sed "s/^/$as_me: WARNING: /" >&2
18943 echo "$as_me:$LINENO: checking for $ac_header" >&5
18944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 eval "$as_ac_Header=\$ac_header_preproc"
18950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18964 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
18965 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
18966 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
18967 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 ac_check_lib_save_LIBS=$LIBS
18971 LIBS="-lgnutls $LIBS"
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18979 /* Override any gcc2 internal prototype to avoid an error. */
18983 /* We use char because int might match the return type of a gcc2
18984 builtin and then its argument prototype would still apply. */
18985 char gnutls_init ();
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18996 (eval $ac_link) 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag"
19004 || test ! -s conftest.err'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest$ac_exeext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 ac_cv_lib_gnutls_gnutls_init=yes
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 ac_cv_lib_gnutls_gnutls_init=no
19023 rm -f conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext conftest.$ac_ext
19025 LIBS=$ac_check_lib_save_LIBS
19027 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19028 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19029 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19036 if test $have_gnutls = yes ; then
19040 TLS_LIBS="-lgnutls"
19043 cat >>confdefs.h <<\_ACEOF
19044 #define HAVE_GNUTLS 1
19053 if test $ol_link_tls = yes ; then
19055 cat >>confdefs.h <<\_ACEOF
19060 elif test $ol_with_tls = auto ; then
19061 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19062 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19063 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19064 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19065 elif test $ol_with_tls != no ; then
19066 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19067 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19068 { (exit 1); exit 1; }; }
19070 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19071 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19074 if test $ol_enable_lmpasswd != no; then
19075 if test $ol_link_tls != yes ; then
19076 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19077 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19078 { (exit 1); exit 1; }; }
19082 cat >>confdefs.h <<\_ACEOF
19083 #define SLAPD_LMHASH 1
19090 case $ol_with_threads in auto | yes | nt)
19093 echo "$as_me:$LINENO: checking for _beginthread" >&5
19094 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19095 if test "${ac_cv_func__beginthread+set}" = set; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19104 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19106 #define _beginthread innocuous__beginthread
19108 /* System header to define __stub macros and hopefully few prototypes,
19109 which can conflict with char _beginthread (); below.
19110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111 <limits.h> exists even on freestanding compilers. */
19114 # include <limits.h>
19116 # include <assert.h>
19119 #undef _beginthread
19121 /* Override any gcc2 internal prototype to avoid an error. */
19126 /* We use char because int might match the return type of a gcc2
19127 builtin and then its argument prototype would still apply. */
19128 char _beginthread ();
19129 /* The GNU C library defines this for functions which it implements
19130 to always fail with ENOSYS. Some functions are actually named
19131 something starting with __ and the normal name is an alias. */
19132 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19135 char (*f) () = _beginthread;
19144 return f != _beginthread;
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag"
19159 || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest$ac_exeext'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 ac_cv_func__beginthread=yes
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_cv_func__beginthread=no
19178 rm -f conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext conftest.$ac_ext
19181 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19182 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19185 if test $ac_cv_func__beginthread = yes ; then
19187 cat >>confdefs.h <<\_ACEOF
19188 #define HAVE_NT_THREADS 1
19191 ol_cv_nt_threads=yes
19195 if test "$ol_cv_nt_threads" = yes ; then
19197 ol_with_threads=found
19198 ol_with_yielding_select=yes
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_NT_SERVICE_MANAGER 1
19206 cat >>confdefs.h <<\_ACEOF
19207 #define HAVE_NT_EVENT_LOG 1
19212 if test $ol_with_threads = nt ; then
19213 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19214 echo "$as_me: error: could not locate NT Threads" >&2;}
19215 { (exit 1); exit 1; }; }
19220 case $ol_with_threads in auto | yes | posix)
19223 for ac_header in pthread.h
19225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19227 echo "$as_me:$LINENO: checking for $ac_header" >&5
19228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19235 # Is the header compilable?
19236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 $ac_includes_default
19245 #include <$ac_header>
19247 rm -f conftest.$ac_objext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249 (eval $ac_compile) 2>conftest.er1
19251 grep -v '^ *+' conftest.er1 >conftest.err
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_c_werror_flag"
19257 || test ! -s conftest.err'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest.$ac_objext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_header_compiler=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ac_header_compiler=no
19276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19278 echo "${ECHO_T}$ac_header_compiler" >&6
19280 # Is the header present?
19281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19289 #include <$ac_header>
19291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } >/dev/null; then
19299 if test -s conftest.err; then
19300 ac_cpp_err=$ac_c_preproc_warn_flag
19301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19308 if test -z "$ac_cpp_err"; then
19309 ac_header_preproc=yes
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_header_preproc=no
19316 rm -f conftest.err conftest.$ac_ext
19317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19318 echo "${ECHO_T}$ac_header_preproc" >&6
19320 # So? What about this header?
19321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19327 ac_header_preproc=yes
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19344 ## --------------------------------------------- ##
19345 ## Report this to <http://www.openldap.org/its/> ##
19346 ## --------------------------------------------- ##
19349 sed "s/^/$as_me: WARNING: /" >&2
19352 echo "$as_me:$LINENO: checking for $ac_header" >&5
19353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 eval "$as_ac_Header=\$ac_header_preproc"
19359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19364 cat >>confdefs.h <<_ACEOF
19365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19373 if test $ac_cv_header_pthread_h = yes ; then
19374 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19375 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19376 if test "${ol_cv_pthread_version+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19387 # include <pthread.h>
19393 int i = PTHREAD_CREATE_JOINABLE;
19399 rm -f conftest.$ac_objext
19400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19401 (eval $ac_compile) 2>conftest.er1
19403 grep -v '^ *+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_c_werror_flag"
19409 || test ! -s conftest.err'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest.$ac_objext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 #include <pthread.h>
19431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19432 $EGREP "pthread_detach" >/dev/null 2>&1; then
19433 ol_cv_pthread_version=10
19435 ol_cv_pthread_version=8
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19444 cat >conftest.$ac_ext <<_ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19451 # include <pthread.h>
19452 # ifdef PTHREAD_CREATE_UNDETACHED
19457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19458 $EGREP "draft7" >/dev/null 2>&1; then
19459 ol_cv_pthread_version=7
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 #include <pthread.h>
19471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19472 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19473 ol_cv_pthread_version=6
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19483 # include <pthread.h>
19484 #ifdef PTHREAD_MUTEX_INITIALIZER
19489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19490 $EGREP "draft5" >/dev/null 2>&1; then
19491 ol_cv_pthread_version=5
19493 ol_cv_pthread_version=4
19504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19507 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19508 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19511 if test $ol_cv_pthread_version != 0 ; then
19513 cat >>confdefs.h <<_ACEOF
19514 #define HAVE_PTHREADS $ol_cv_pthread_version
19518 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19519 echo "$as_me: error: unknown pthread version" >&2;}
19520 { (exit 1); exit 1; }; }
19523 # consider threads found
19524 ol_with_threads=found
19527 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19528 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19529 if test "${ol_cv_header_linux_threads+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 cat >conftest.$ac_ext <<_ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538 #include <pthread.h>
19540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19541 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19542 ol_cv_header_linux_threads=yes
19544 ol_cv_header_linux_threads=no
19550 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19551 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19552 if test $ol_cv_header_linux_threads = yes; then
19554 cat >>confdefs.h <<\_ACEOF
19555 #define HAVE_LINUX_THREADS 1
19561 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19562 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19563 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 cat >conftest.$ac_ext <<_ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19572 #include <pthread.h>
19573 #ifdef _POSIX_THREAD_IS_GNU_PTH
19578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19579 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19580 ol_cv_header_gnu_pth_pthread_h=yes
19582 ol_cv_header_gnu_pth_pthread_h=no
19588 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19589 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19592 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19594 for ac_header in sched.h
19596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo "$as_me:$LINENO: checking for $ac_header" >&5
19599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19606 # Is the header compilable?
19607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19609 cat >conftest.$ac_ext <<_ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615 $ac_includes_default
19616 #include <$ac_header>
19618 rm -f conftest.$ac_objext
19619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620 (eval $ac_compile) 2>conftest.er1
19622 grep -v '^ *+' conftest.er1 >conftest.err
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_header_compiler=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 ac_header_compiler=no
19647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19649 echo "${ECHO_T}$ac_header_compiler" >&6
19651 # Is the header present?
19652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <$ac_header>
19662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } >/dev/null; then
19670 if test -s conftest.err; then
19671 ac_cpp_err=$ac_c_preproc_warn_flag
19672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19679 if test -z "$ac_cpp_err"; then
19680 ac_header_preproc=yes
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ac_header_preproc=no
19687 rm -f conftest.err conftest.$ac_ext
19688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19689 echo "${ECHO_T}$ac_header_preproc" >&6
19691 # So? What about this header?
19692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19698 ac_header_preproc=yes
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19715 ## --------------------------------------------- ##
19716 ## Report this to <http://www.openldap.org/its/> ##
19717 ## --------------------------------------------- ##
19720 sed "s/^/$as_me: WARNING: /" >&2
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 eval "$as_ac_Header=\$ac_header_preproc"
19730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19735 cat >>confdefs.h <<_ACEOF
19736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19746 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19747 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19748 if test "${ol_cv_pthread_create+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 if test "$cross_compiling" = yes; then
19753 cat >conftest.$ac_ext <<_ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19760 /* pthread test headers */
19761 #include <pthread.h>
19762 #if HAVE_PTHREADS < 7
19766 #define NULL (void*)0
19769 static void *task(p)
19772 return (void *) (p == NULL);
19779 /* pthread test function */
19780 #ifndef PTHREAD_CREATE_DETACHED
19781 #define PTHREAD_CREATE_DETACHED 1
19785 int detach = PTHREAD_CREATE_DETACHED;
19787 #if HAVE_PTHREADS > 4
19788 /* Final pthreads */
19789 pthread_attr_t attr;
19791 status = pthread_attr_init(&attr);
19792 if( status ) return status;
19794 #if HAVE_PTHREADS < 7
19795 status = pthread_attr_setdetachstate(&attr, &detach);
19796 if( status < 0 ) status = errno;
19798 status = pthread_attr_setdetachstate(&attr, detach);
19800 if( status ) return status;
19801 status = pthread_create( &t, &attr, task, NULL );
19802 #if HAVE_PTHREADS < 7
19803 if( status < 0 ) status = errno;
19805 if( status ) return status;
19807 /* Draft 4 pthreads */
19808 status = pthread_create( &t, pthread_attr_default, task, NULL );
19809 if( status ) return errno;
19811 /* give thread a chance to complete */
19812 /* it should remain joinable and hence detachable */
19815 status = pthread_detach( &t );
19816 if( status ) return errno;
19819 #ifdef HAVE_LINUX_THREADS
19820 pthread_kill_other_threads_np();
19829 rm -f conftest.$ac_objext conftest$ac_exeext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19831 (eval $ac_link) 2>conftest.er1
19833 grep -v '^ *+' conftest.er1 >conftest.err
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } &&
19838 { ac_try='test -z "$ac_c_werror_flag"
19839 || test ! -s conftest.err'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest$ac_exeext'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; }; then
19851 ol_cv_pthread_create=yes
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 ol_cv_pthread_create=no
19858 rm -f conftest.err conftest.$ac_objext \
19859 conftest$ac_exeext conftest.$ac_ext
19861 cat >conftest.$ac_ext <<_ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19868 /* pthread test headers */
19869 #include <pthread.h>
19870 #if HAVE_PTHREADS < 7
19874 #define NULL (void*)0
19877 static void *task(p)
19880 return (void *) (p == NULL);
19884 int main(argc, argv)
19889 /* pthread test function */
19890 #ifndef PTHREAD_CREATE_DETACHED
19891 #define PTHREAD_CREATE_DETACHED 1
19895 int detach = PTHREAD_CREATE_DETACHED;
19897 #if HAVE_PTHREADS > 4
19898 /* Final pthreads */
19899 pthread_attr_t attr;
19901 status = pthread_attr_init(&attr);
19902 if( status ) return status;
19904 #if HAVE_PTHREADS < 7
19905 status = pthread_attr_setdetachstate(&attr, &detach);
19906 if( status < 0 ) status = errno;
19908 status = pthread_attr_setdetachstate(&attr, detach);
19910 if( status ) return status;
19911 status = pthread_create( &t, &attr, task, NULL );
19912 #if HAVE_PTHREADS < 7
19913 if( status < 0 ) status = errno;
19915 if( status ) return status;
19917 /* Draft 4 pthreads */
19918 status = pthread_create( &t, pthread_attr_default, task, NULL );
19919 if( status ) return errno;
19921 /* give thread a chance to complete */
19922 /* it should remain joinable and hence detachable */
19925 status = pthread_detach( &t );
19926 if( status ) return errno;
19929 #ifdef HAVE_LINUX_THREADS
19930 pthread_kill_other_threads_np();
19938 rm -f conftest$ac_exeext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19940 (eval $ac_link) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ol_cv_pthread_create=yes
19951 echo "$as_me: program exited with status $ac_status" >&5
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 ( exit $ac_status )
19956 ol_cv_pthread_create=no
19958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19961 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19962 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19964 if test $ol_cv_pthread_create != no ; then
19965 ol_link_threads=posix
19966 ol_link_pthreads=""
19969 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19970 if test "$ol_link_threads" = no ; then
19972 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19973 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19974 if test "${ol_cv_pthread_kthread+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 LIBS="-kthread $LIBS"
19982 if test "$cross_compiling" = yes; then
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19990 /* pthread test headers */
19991 #include <pthread.h>
19992 #if HAVE_PTHREADS < 7
19996 #define NULL (void*)0
19999 static void *task(p)
20002 return (void *) (p == NULL);
20009 /* pthread test function */
20010 #ifndef PTHREAD_CREATE_DETACHED
20011 #define PTHREAD_CREATE_DETACHED 1
20015 int detach = PTHREAD_CREATE_DETACHED;
20017 #if HAVE_PTHREADS > 4
20018 /* Final pthreads */
20019 pthread_attr_t attr;
20021 status = pthread_attr_init(&attr);
20022 if( status ) return status;
20024 #if HAVE_PTHREADS < 7
20025 status = pthread_attr_setdetachstate(&attr, &detach);
20026 if( status < 0 ) status = errno;
20028 status = pthread_attr_setdetachstate(&attr, detach);
20030 if( status ) return status;
20031 status = pthread_create( &t, &attr, task, NULL );
20032 #if HAVE_PTHREADS < 7
20033 if( status < 0 ) status = errno;
20035 if( status ) return status;
20037 /* Draft 4 pthreads */
20038 status = pthread_create( &t, pthread_attr_default, task, NULL );
20039 if( status ) return errno;
20041 /* give thread a chance to complete */
20042 /* it should remain joinable and hence detachable */
20045 status = pthread_detach( &t );
20046 if( status ) return errno;
20049 #ifdef HAVE_LINUX_THREADS
20050 pthread_kill_other_threads_np();
20059 rm -f conftest.$ac_objext conftest$ac_exeext
20060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20061 (eval $ac_link) 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -z "$ac_c_werror_flag"
20069 || test ! -s conftest.err'
20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; } &&
20075 { ac_try='test -s conftest$ac_exeext'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 ol_cv_pthread_kthread=yes
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20086 ol_cv_pthread_kthread=no
20088 rm -f conftest.err conftest.$ac_objext \
20089 conftest$ac_exeext conftest.$ac_ext
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20098 /* pthread test headers */
20099 #include <pthread.h>
20100 #if HAVE_PTHREADS < 7
20104 #define NULL (void*)0
20107 static void *task(p)
20110 return (void *) (p == NULL);
20114 int main(argc, argv)
20119 /* pthread test function */
20120 #ifndef PTHREAD_CREATE_DETACHED
20121 #define PTHREAD_CREATE_DETACHED 1
20125 int detach = PTHREAD_CREATE_DETACHED;
20127 #if HAVE_PTHREADS > 4
20128 /* Final pthreads */
20129 pthread_attr_t attr;
20131 status = pthread_attr_init(&attr);
20132 if( status ) return status;
20134 #if HAVE_PTHREADS < 7
20135 status = pthread_attr_setdetachstate(&attr, &detach);
20136 if( status < 0 ) status = errno;
20138 status = pthread_attr_setdetachstate(&attr, detach);
20140 if( status ) return status;
20141 status = pthread_create( &t, &attr, task, NULL );
20142 #if HAVE_PTHREADS < 7
20143 if( status < 0 ) status = errno;
20145 if( status ) return status;
20147 /* Draft 4 pthreads */
20148 status = pthread_create( &t, pthread_attr_default, task, NULL );
20149 if( status ) return errno;
20151 /* give thread a chance to complete */
20152 /* it should remain joinable and hence detachable */
20155 status = pthread_detach( &t );
20156 if( status ) return errno;
20159 #ifdef HAVE_LINUX_THREADS
20160 pthread_kill_other_threads_np();
20168 rm -f conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170 (eval $ac_link) 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 ol_cv_pthread_kthread=yes
20181 echo "$as_me: program exited with status $ac_status" >&5
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20185 ( exit $ac_status )
20186 ol_cv_pthread_kthread=no
20188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20195 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20196 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20198 if test $ol_cv_pthread_kthread = yes ; then
20199 ol_link_pthreads="-kthread"
20200 ol_link_threads=posix
20204 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20205 if test "$ol_link_threads" = no ; then
20207 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20208 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20209 if test "${ol_cv_pthread_pthread+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 LIBS="-pthread $LIBS"
20217 if test "$cross_compiling" = yes; then
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20225 /* pthread test headers */
20226 #include <pthread.h>
20227 #if HAVE_PTHREADS < 7
20231 #define NULL (void*)0
20234 static void *task(p)
20237 return (void *) (p == NULL);
20244 /* pthread test function */
20245 #ifndef PTHREAD_CREATE_DETACHED
20246 #define PTHREAD_CREATE_DETACHED 1
20250 int detach = PTHREAD_CREATE_DETACHED;
20252 #if HAVE_PTHREADS > 4
20253 /* Final pthreads */
20254 pthread_attr_t attr;
20256 status = pthread_attr_init(&attr);
20257 if( status ) return status;
20259 #if HAVE_PTHREADS < 7
20260 status = pthread_attr_setdetachstate(&attr, &detach);
20261 if( status < 0 ) status = errno;
20263 status = pthread_attr_setdetachstate(&attr, detach);
20265 if( status ) return status;
20266 status = pthread_create( &t, &attr, task, NULL );
20267 #if HAVE_PTHREADS < 7
20268 if( status < 0 ) status = errno;
20270 if( status ) return status;
20272 /* Draft 4 pthreads */
20273 status = pthread_create( &t, pthread_attr_default, task, NULL );
20274 if( status ) return errno;
20276 /* give thread a chance to complete */
20277 /* it should remain joinable and hence detachable */
20280 status = pthread_detach( &t );
20281 if( status ) return errno;
20284 #ifdef HAVE_LINUX_THREADS
20285 pthread_kill_other_threads_np();
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296 (eval $ac_link) 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag"
20304 || test ! -s conftest.err'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try='test -s conftest$ac_exeext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 ol_cv_pthread_pthread=yes
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20321 ol_cv_pthread_pthread=no
20323 rm -f conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 /* pthread test headers */
20334 #include <pthread.h>
20335 #if HAVE_PTHREADS < 7
20339 #define NULL (void*)0
20342 static void *task(p)
20345 return (void *) (p == NULL);
20349 int main(argc, argv)
20354 /* pthread test function */
20355 #ifndef PTHREAD_CREATE_DETACHED
20356 #define PTHREAD_CREATE_DETACHED 1
20360 int detach = PTHREAD_CREATE_DETACHED;
20362 #if HAVE_PTHREADS > 4
20363 /* Final pthreads */
20364 pthread_attr_t attr;
20366 status = pthread_attr_init(&attr);
20367 if( status ) return status;
20369 #if HAVE_PTHREADS < 7
20370 status = pthread_attr_setdetachstate(&attr, &detach);
20371 if( status < 0 ) status = errno;
20373 status = pthread_attr_setdetachstate(&attr, detach);
20375 if( status ) return status;
20376 status = pthread_create( &t, &attr, task, NULL );
20377 #if HAVE_PTHREADS < 7
20378 if( status < 0 ) status = errno;
20380 if( status ) return status;
20382 /* Draft 4 pthreads */
20383 status = pthread_create( &t, pthread_attr_default, task, NULL );
20384 if( status ) return errno;
20386 /* give thread a chance to complete */
20387 /* it should remain joinable and hence detachable */
20390 status = pthread_detach( &t );
20391 if( status ) return errno;
20394 #ifdef HAVE_LINUX_THREADS
20395 pthread_kill_other_threads_np();
20403 rm -f conftest$ac_exeext
20404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20405 (eval $ac_link) 2>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ol_cv_pthread_pthread=yes
20416 echo "$as_me: program exited with status $ac_status" >&5
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 ( exit $ac_status )
20421 ol_cv_pthread_pthread=no
20423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20430 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20431 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20433 if test $ol_cv_pthread_pthread = yes ; then
20434 ol_link_pthreads="-pthread"
20435 ol_link_threads=posix
20439 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20440 if test "$ol_link_threads" = no ; then
20442 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20443 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20444 if test "${ol_cv_pthread_pthreads+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 LIBS="-pthreads $LIBS"
20452 if test "$cross_compiling" = yes; then
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20460 /* pthread test headers */
20461 #include <pthread.h>
20462 #if HAVE_PTHREADS < 7
20466 #define NULL (void*)0
20469 static void *task(p)
20472 return (void *) (p == NULL);
20479 /* pthread test function */
20480 #ifndef PTHREAD_CREATE_DETACHED
20481 #define PTHREAD_CREATE_DETACHED 1
20485 int detach = PTHREAD_CREATE_DETACHED;
20487 #if HAVE_PTHREADS > 4
20488 /* Final pthreads */
20489 pthread_attr_t attr;
20491 status = pthread_attr_init(&attr);
20492 if( status ) return status;
20494 #if HAVE_PTHREADS < 7
20495 status = pthread_attr_setdetachstate(&attr, &detach);
20496 if( status < 0 ) status = errno;
20498 status = pthread_attr_setdetachstate(&attr, detach);
20500 if( status ) return status;
20501 status = pthread_create( &t, &attr, task, NULL );
20502 #if HAVE_PTHREADS < 7
20503 if( status < 0 ) status = errno;
20505 if( status ) return status;
20507 /* Draft 4 pthreads */
20508 status = pthread_create( &t, pthread_attr_default, task, NULL );
20509 if( status ) return errno;
20511 /* give thread a chance to complete */
20512 /* it should remain joinable and hence detachable */
20515 status = pthread_detach( &t );
20516 if( status ) return errno;
20519 #ifdef HAVE_LINUX_THREADS
20520 pthread_kill_other_threads_np();
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20531 (eval $ac_link) 2>conftest.er1
20533 grep -v '^ *+' conftest.er1 >conftest.err
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
20538 { ac_try='test -z "$ac_c_werror_flag"
20539 || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest$ac_exeext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ol_cv_pthread_pthreads=yes
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ol_cv_pthread_pthreads=no
20558 rm -f conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20568 /* pthread test headers */
20569 #include <pthread.h>
20570 #if HAVE_PTHREADS < 7
20574 #define NULL (void*)0
20577 static void *task(p)
20580 return (void *) (p == NULL);
20584 int main(argc, argv)
20589 /* pthread test function */
20590 #ifndef PTHREAD_CREATE_DETACHED
20591 #define PTHREAD_CREATE_DETACHED 1
20595 int detach = PTHREAD_CREATE_DETACHED;
20597 #if HAVE_PTHREADS > 4
20598 /* Final pthreads */
20599 pthread_attr_t attr;
20601 status = pthread_attr_init(&attr);
20602 if( status ) return status;
20604 #if HAVE_PTHREADS < 7
20605 status = pthread_attr_setdetachstate(&attr, &detach);
20606 if( status < 0 ) status = errno;
20608 status = pthread_attr_setdetachstate(&attr, detach);
20610 if( status ) return status;
20611 status = pthread_create( &t, &attr, task, NULL );
20612 #if HAVE_PTHREADS < 7
20613 if( status < 0 ) status = errno;
20615 if( status ) return status;
20617 /* Draft 4 pthreads */
20618 status = pthread_create( &t, pthread_attr_default, task, NULL );
20619 if( status ) return errno;
20621 /* give thread a chance to complete */
20622 /* it should remain joinable and hence detachable */
20625 status = pthread_detach( &t );
20626 if( status ) return errno;
20629 #ifdef HAVE_LINUX_THREADS
20630 pthread_kill_other_threads_np();
20638 rm -f conftest$ac_exeext
20639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20640 (eval $ac_link) 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ol_cv_pthread_pthreads=yes
20651 echo "$as_me: program exited with status $ac_status" >&5
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ( exit $ac_status )
20656 ol_cv_pthread_pthreads=no
20658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20665 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20666 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20668 if test $ol_cv_pthread_pthreads = yes ; then
20669 ol_link_pthreads="-pthreads"
20670 ol_link_threads=posix
20674 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20675 if test "$ol_link_threads" = no ; then
20677 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20678 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20679 if test "${ol_cv_pthread_mthreads+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 LIBS="-mthreads $LIBS"
20687 if test "$cross_compiling" = yes; then
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20695 /* pthread test headers */
20696 #include <pthread.h>
20697 #if HAVE_PTHREADS < 7
20701 #define NULL (void*)0
20704 static void *task(p)
20707 return (void *) (p == NULL);
20714 /* pthread test function */
20715 #ifndef PTHREAD_CREATE_DETACHED
20716 #define PTHREAD_CREATE_DETACHED 1
20720 int detach = PTHREAD_CREATE_DETACHED;
20722 #if HAVE_PTHREADS > 4
20723 /* Final pthreads */
20724 pthread_attr_t attr;
20726 status = pthread_attr_init(&attr);
20727 if( status ) return status;
20729 #if HAVE_PTHREADS < 7
20730 status = pthread_attr_setdetachstate(&attr, &detach);
20731 if( status < 0 ) status = errno;
20733 status = pthread_attr_setdetachstate(&attr, detach);
20735 if( status ) return status;
20736 status = pthread_create( &t, &attr, task, NULL );
20737 #if HAVE_PTHREADS < 7
20738 if( status < 0 ) status = errno;
20740 if( status ) return status;
20742 /* Draft 4 pthreads */
20743 status = pthread_create( &t, pthread_attr_default, task, NULL );
20744 if( status ) return errno;
20746 /* give thread a chance to complete */
20747 /* it should remain joinable and hence detachable */
20750 status = pthread_detach( &t );
20751 if( status ) return errno;
20754 #ifdef HAVE_LINUX_THREADS
20755 pthread_kill_other_threads_np();
20764 rm -f conftest.$ac_objext conftest$ac_exeext
20765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20766 (eval $ac_link) 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -z "$ac_c_werror_flag"
20774 || test ! -s conftest.err'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; } &&
20780 { ac_try='test -s conftest$ac_exeext'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; }; then
20786 ol_cv_pthread_mthreads=yes
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ol_cv_pthread_mthreads=no
20793 rm -f conftest.err conftest.$ac_objext \
20794 conftest$ac_exeext conftest.$ac_ext
20796 cat >conftest.$ac_ext <<_ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20803 /* pthread test headers */
20804 #include <pthread.h>
20805 #if HAVE_PTHREADS < 7
20809 #define NULL (void*)0
20812 static void *task(p)
20815 return (void *) (p == NULL);
20819 int main(argc, argv)
20824 /* pthread test function */
20825 #ifndef PTHREAD_CREATE_DETACHED
20826 #define PTHREAD_CREATE_DETACHED 1
20830 int detach = PTHREAD_CREATE_DETACHED;
20832 #if HAVE_PTHREADS > 4
20833 /* Final pthreads */
20834 pthread_attr_t attr;
20836 status = pthread_attr_init(&attr);
20837 if( status ) return status;
20839 #if HAVE_PTHREADS < 7
20840 status = pthread_attr_setdetachstate(&attr, &detach);
20841 if( status < 0 ) status = errno;
20843 status = pthread_attr_setdetachstate(&attr, detach);
20845 if( status ) return status;
20846 status = pthread_create( &t, &attr, task, NULL );
20847 #if HAVE_PTHREADS < 7
20848 if( status < 0 ) status = errno;
20850 if( status ) return status;
20852 /* Draft 4 pthreads */
20853 status = pthread_create( &t, pthread_attr_default, task, NULL );
20854 if( status ) return errno;
20856 /* give thread a chance to complete */
20857 /* it should remain joinable and hence detachable */
20860 status = pthread_detach( &t );
20861 if( status ) return errno;
20864 #ifdef HAVE_LINUX_THREADS
20865 pthread_kill_other_threads_np();
20873 rm -f conftest$ac_exeext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875 (eval $ac_link) 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ol_cv_pthread_mthreads=yes
20886 echo "$as_me: program exited with status $ac_status" >&5
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ( exit $ac_status )
20891 ol_cv_pthread_mthreads=no
20893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20900 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20901 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20903 if test $ol_cv_pthread_mthreads = yes ; then
20904 ol_link_pthreads="-mthreads"
20905 ol_link_threads=posix
20909 # Pthread try link: -thread (ol_cv_pthread_thread)
20910 if test "$ol_link_threads" = no ; then
20912 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20913 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20914 if test "${ol_cv_pthread_thread+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 LIBS="-thread $LIBS"
20922 if test "$cross_compiling" = yes; then
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20930 /* pthread test headers */
20931 #include <pthread.h>
20932 #if HAVE_PTHREADS < 7
20936 #define NULL (void*)0
20939 static void *task(p)
20942 return (void *) (p == NULL);
20949 /* pthread test function */
20950 #ifndef PTHREAD_CREATE_DETACHED
20951 #define PTHREAD_CREATE_DETACHED 1
20955 int detach = PTHREAD_CREATE_DETACHED;
20957 #if HAVE_PTHREADS > 4
20958 /* Final pthreads */
20959 pthread_attr_t attr;
20961 status = pthread_attr_init(&attr);
20962 if( status ) return status;
20964 #if HAVE_PTHREADS < 7
20965 status = pthread_attr_setdetachstate(&attr, &detach);
20966 if( status < 0 ) status = errno;
20968 status = pthread_attr_setdetachstate(&attr, detach);
20970 if( status ) return status;
20971 status = pthread_create( &t, &attr, task, NULL );
20972 #if HAVE_PTHREADS < 7
20973 if( status < 0 ) status = errno;
20975 if( status ) return status;
20977 /* Draft 4 pthreads */
20978 status = pthread_create( &t, pthread_attr_default, task, NULL );
20979 if( status ) return errno;
20981 /* give thread a chance to complete */
20982 /* it should remain joinable and hence detachable */
20985 status = pthread_detach( &t );
20986 if( status ) return errno;
20989 #ifdef HAVE_LINUX_THREADS
20990 pthread_kill_other_threads_np();
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21001 (eval $ac_link) 2>conftest.er1
21003 grep -v '^ *+' conftest.er1 >conftest.err
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_c_werror_flag"
21009 || test ! -s conftest.err'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest$ac_exeext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 ol_cv_pthread_thread=yes
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ol_cv_pthread_thread=no
21028 rm -f conftest.err conftest.$ac_objext \
21029 conftest$ac_exeext conftest.$ac_ext
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21038 /* pthread test headers */
21039 #include <pthread.h>
21040 #if HAVE_PTHREADS < 7
21044 #define NULL (void*)0
21047 static void *task(p)
21050 return (void *) (p == NULL);
21054 int main(argc, argv)
21059 /* pthread test function */
21060 #ifndef PTHREAD_CREATE_DETACHED
21061 #define PTHREAD_CREATE_DETACHED 1
21065 int detach = PTHREAD_CREATE_DETACHED;
21067 #if HAVE_PTHREADS > 4
21068 /* Final pthreads */
21069 pthread_attr_t attr;
21071 status = pthread_attr_init(&attr);
21072 if( status ) return status;
21074 #if HAVE_PTHREADS < 7
21075 status = pthread_attr_setdetachstate(&attr, &detach);
21076 if( status < 0 ) status = errno;
21078 status = pthread_attr_setdetachstate(&attr, detach);
21080 if( status ) return status;
21081 status = pthread_create( &t, &attr, task, NULL );
21082 #if HAVE_PTHREADS < 7
21083 if( status < 0 ) status = errno;
21085 if( status ) return status;
21087 /* Draft 4 pthreads */
21088 status = pthread_create( &t, pthread_attr_default, task, NULL );
21089 if( status ) return errno;
21091 /* give thread a chance to complete */
21092 /* it should remain joinable and hence detachable */
21095 status = pthread_detach( &t );
21096 if( status ) return errno;
21099 #ifdef HAVE_LINUX_THREADS
21100 pthread_kill_other_threads_np();
21108 rm -f conftest$ac_exeext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21110 (eval $ac_link) 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ol_cv_pthread_thread=yes
21121 echo "$as_me: program exited with status $ac_status" >&5
21122 echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21125 ( exit $ac_status )
21126 ol_cv_pthread_thread=no
21128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21135 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21136 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21138 if test $ol_cv_pthread_thread = yes ; then
21139 ol_link_pthreads="-thread"
21140 ol_link_threads=posix
21145 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21146 if test "$ol_link_threads" = no ; then
21147 # try -lpthread -lmach -lexc -lc_r
21148 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21149 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21150 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21158 if test "$cross_compiling" = yes; then
21159 cat >conftest.$ac_ext <<_ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21166 /* pthread test headers */
21167 #include <pthread.h>
21168 #if HAVE_PTHREADS < 7
21172 #define NULL (void*)0
21175 static void *task(p)
21178 return (void *) (p == NULL);
21185 /* pthread test function */
21186 #ifndef PTHREAD_CREATE_DETACHED
21187 #define PTHREAD_CREATE_DETACHED 1
21191 int detach = PTHREAD_CREATE_DETACHED;
21193 #if HAVE_PTHREADS > 4
21194 /* Final pthreads */
21195 pthread_attr_t attr;
21197 status = pthread_attr_init(&attr);
21198 if( status ) return status;
21200 #if HAVE_PTHREADS < 7
21201 status = pthread_attr_setdetachstate(&attr, &detach);
21202 if( status < 0 ) status = errno;
21204 status = pthread_attr_setdetachstate(&attr, detach);
21206 if( status ) return status;
21207 status = pthread_create( &t, &attr, task, NULL );
21208 #if HAVE_PTHREADS < 7
21209 if( status < 0 ) status = errno;
21211 if( status ) return status;
21213 /* Draft 4 pthreads */
21214 status = pthread_create( &t, pthread_attr_default, task, NULL );
21215 if( status ) return errno;
21217 /* give thread a chance to complete */
21218 /* it should remain joinable and hence detachable */
21221 status = pthread_detach( &t );
21222 if( status ) return errno;
21225 #ifdef HAVE_LINUX_THREADS
21226 pthread_kill_other_threads_np();
21235 rm -f conftest.$ac_objext conftest$ac_exeext
21236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21237 (eval $ac_link) 2>conftest.er1
21239 grep -v '^ *+' conftest.er1 >conftest.err
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } &&
21244 { ac_try='test -z "$ac_c_werror_flag"
21245 || test ! -s conftest.err'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest$ac_exeext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21264 rm -f conftest.err conftest.$ac_objext \
21265 conftest$ac_exeext conftest.$ac_ext
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21274 /* pthread test headers */
21275 #include <pthread.h>
21276 #if HAVE_PTHREADS < 7
21280 #define NULL (void*)0
21283 static void *task(p)
21286 return (void *) (p == NULL);
21290 int main(argc, argv)
21295 /* pthread test function */
21296 #ifndef PTHREAD_CREATE_DETACHED
21297 #define PTHREAD_CREATE_DETACHED 1
21301 int detach = PTHREAD_CREATE_DETACHED;
21303 #if HAVE_PTHREADS > 4
21304 /* Final pthreads */
21305 pthread_attr_t attr;
21307 status = pthread_attr_init(&attr);
21308 if( status ) return status;
21310 #if HAVE_PTHREADS < 7
21311 status = pthread_attr_setdetachstate(&attr, &detach);
21312 if( status < 0 ) status = errno;
21314 status = pthread_attr_setdetachstate(&attr, detach);
21316 if( status ) return status;
21317 status = pthread_create( &t, &attr, task, NULL );
21318 #if HAVE_PTHREADS < 7
21319 if( status < 0 ) status = errno;
21321 if( status ) return status;
21323 /* Draft 4 pthreads */
21324 status = pthread_create( &t, pthread_attr_default, task, NULL );
21325 if( status ) return errno;
21327 /* give thread a chance to complete */
21328 /* it should remain joinable and hence detachable */
21331 status = pthread_detach( &t );
21332 if( status ) return errno;
21335 #ifdef HAVE_LINUX_THREADS
21336 pthread_kill_other_threads_np();
21344 rm -f conftest$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21357 echo "$as_me: program exited with status $ac_status" >&5
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ( exit $ac_status )
21362 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21371 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21372 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21374 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21375 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21376 ol_link_threads=posix
21380 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21381 if test "$ol_link_threads" = no ; then
21382 # try -lpthread -lmach -lexc
21383 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21384 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21385 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 LIBS="-lpthread -lmach -lexc $LIBS"
21393 if test "$cross_compiling" = yes; then
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21401 /* pthread test headers */
21402 #include <pthread.h>
21403 #if HAVE_PTHREADS < 7
21407 #define NULL (void*)0
21410 static void *task(p)
21413 return (void *) (p == NULL);
21420 /* pthread test function */
21421 #ifndef PTHREAD_CREATE_DETACHED
21422 #define PTHREAD_CREATE_DETACHED 1
21426 int detach = PTHREAD_CREATE_DETACHED;
21428 #if HAVE_PTHREADS > 4
21429 /* Final pthreads */
21430 pthread_attr_t attr;
21432 status = pthread_attr_init(&attr);
21433 if( status ) return status;
21435 #if HAVE_PTHREADS < 7
21436 status = pthread_attr_setdetachstate(&attr, &detach);
21437 if( status < 0 ) status = errno;
21439 status = pthread_attr_setdetachstate(&attr, detach);
21441 if( status ) return status;
21442 status = pthread_create( &t, &attr, task, NULL );
21443 #if HAVE_PTHREADS < 7
21444 if( status < 0 ) status = errno;
21446 if( status ) return status;
21448 /* Draft 4 pthreads */
21449 status = pthread_create( &t, pthread_attr_default, task, NULL );
21450 if( status ) return errno;
21452 /* give thread a chance to complete */
21453 /* it should remain joinable and hence detachable */
21456 status = pthread_detach( &t );
21457 if( status ) return errno;
21460 #ifdef HAVE_LINUX_THREADS
21461 pthread_kill_other_threads_np();
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21472 (eval $ac_link) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1 >conftest.err
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try='test -z "$ac_c_werror_flag"
21480 || test ! -s conftest.err'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; } &&
21486 { ac_try='test -s conftest$ac_exeext'
21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 ol_cv_pthread_lpthread_lmach_lexc=yes
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 ol_cv_pthread_lpthread_lmach_lexc=no
21499 rm -f conftest.err conftest.$ac_objext \
21500 conftest$ac_exeext conftest.$ac_ext
21502 cat >conftest.$ac_ext <<_ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21509 /* pthread test headers */
21510 #include <pthread.h>
21511 #if HAVE_PTHREADS < 7
21515 #define NULL (void*)0
21518 static void *task(p)
21521 return (void *) (p == NULL);
21525 int main(argc, argv)
21530 /* pthread test function */
21531 #ifndef PTHREAD_CREATE_DETACHED
21532 #define PTHREAD_CREATE_DETACHED 1
21536 int detach = PTHREAD_CREATE_DETACHED;
21538 #if HAVE_PTHREADS > 4
21539 /* Final pthreads */
21540 pthread_attr_t attr;
21542 status = pthread_attr_init(&attr);
21543 if( status ) return status;
21545 #if HAVE_PTHREADS < 7
21546 status = pthread_attr_setdetachstate(&attr, &detach);
21547 if( status < 0 ) status = errno;
21549 status = pthread_attr_setdetachstate(&attr, detach);
21551 if( status ) return status;
21552 status = pthread_create( &t, &attr, task, NULL );
21553 #if HAVE_PTHREADS < 7
21554 if( status < 0 ) status = errno;
21556 if( status ) return status;
21558 /* Draft 4 pthreads */
21559 status = pthread_create( &t, pthread_attr_default, task, NULL );
21560 if( status ) return errno;
21562 /* give thread a chance to complete */
21563 /* it should remain joinable and hence detachable */
21566 status = pthread_detach( &t );
21567 if( status ) return errno;
21570 #ifdef HAVE_LINUX_THREADS
21571 pthread_kill_other_threads_np();
21579 rm -f conftest$ac_exeext
21580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21581 (eval $ac_link) 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; }; then
21590 ol_cv_pthread_lpthread_lmach_lexc=yes
21592 echo "$as_me: program exited with status $ac_status" >&5
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 ( exit $ac_status )
21597 ol_cv_pthread_lpthread_lmach_lexc=no
21599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21606 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21607 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21609 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21610 ol_link_pthreads="-lpthread -lmach -lexc"
21611 ol_link_threads=posix
21616 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21617 if test "$ol_link_threads" = no ; then
21618 # try -lpthread -Wl,-woff,85
21619 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21620 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21621 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21629 if test "$cross_compiling" = yes; then
21630 cat >conftest.$ac_ext <<_ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21637 /* pthread test headers */
21638 #include <pthread.h>
21639 #if HAVE_PTHREADS < 7
21643 #define NULL (void*)0
21646 static void *task(p)
21649 return (void *) (p == NULL);
21656 /* pthread test function */
21657 #ifndef PTHREAD_CREATE_DETACHED
21658 #define PTHREAD_CREATE_DETACHED 1
21662 int detach = PTHREAD_CREATE_DETACHED;
21664 #if HAVE_PTHREADS > 4
21665 /* Final pthreads */
21666 pthread_attr_t attr;
21668 status = pthread_attr_init(&attr);
21669 if( status ) return status;
21671 #if HAVE_PTHREADS < 7
21672 status = pthread_attr_setdetachstate(&attr, &detach);
21673 if( status < 0 ) status = errno;
21675 status = pthread_attr_setdetachstate(&attr, detach);
21677 if( status ) return status;
21678 status = pthread_create( &t, &attr, task, NULL );
21679 #if HAVE_PTHREADS < 7
21680 if( status < 0 ) status = errno;
21682 if( status ) return status;
21684 /* Draft 4 pthreads */
21685 status = pthread_create( &t, pthread_attr_default, task, NULL );
21686 if( status ) return errno;
21688 /* give thread a chance to complete */
21689 /* it should remain joinable and hence detachable */
21692 status = pthread_detach( &t );
21693 if( status ) return errno;
21696 #ifdef HAVE_LINUX_THREADS
21697 pthread_kill_other_threads_np();
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21708 (eval $ac_link) 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -z "$ac_c_werror_flag"
21716 || test ! -s conftest.err'
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest$ac_exeext'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ol_cv_pthread_lib_lpthread_woff=yes
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 ol_cv_pthread_lib_lpthread_woff=no
21735 rm -f conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21738 cat >conftest.$ac_ext <<_ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21745 /* pthread test headers */
21746 #include <pthread.h>
21747 #if HAVE_PTHREADS < 7
21751 #define NULL (void*)0
21754 static void *task(p)
21757 return (void *) (p == NULL);
21761 int main(argc, argv)
21766 /* pthread test function */
21767 #ifndef PTHREAD_CREATE_DETACHED
21768 #define PTHREAD_CREATE_DETACHED 1
21772 int detach = PTHREAD_CREATE_DETACHED;
21774 #if HAVE_PTHREADS > 4
21775 /* Final pthreads */
21776 pthread_attr_t attr;
21778 status = pthread_attr_init(&attr);
21779 if( status ) return status;
21781 #if HAVE_PTHREADS < 7
21782 status = pthread_attr_setdetachstate(&attr, &detach);
21783 if( status < 0 ) status = errno;
21785 status = pthread_attr_setdetachstate(&attr, detach);
21787 if( status ) return status;
21788 status = pthread_create( &t, &attr, task, NULL );
21789 #if HAVE_PTHREADS < 7
21790 if( status < 0 ) status = errno;
21792 if( status ) return status;
21794 /* Draft 4 pthreads */
21795 status = pthread_create( &t, pthread_attr_default, task, NULL );
21796 if( status ) return errno;
21798 /* give thread a chance to complete */
21799 /* it should remain joinable and hence detachable */
21802 status = pthread_detach( &t );
21803 if( status ) return errno;
21806 #ifdef HAVE_LINUX_THREADS
21807 pthread_kill_other_threads_np();
21815 rm -f conftest$ac_exeext
21816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21817 (eval $ac_link) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 ol_cv_pthread_lib_lpthread_woff=yes
21828 echo "$as_me: program exited with status $ac_status" >&5
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21832 ( exit $ac_status )
21833 ol_cv_pthread_lib_lpthread_woff=no
21835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21842 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21843 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21845 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21846 ol_link_pthreads="-lpthread -Wl,-woff,85"
21847 ol_link_threads=posix
21852 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21853 if test "$ol_link_threads" = no ; then
21855 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21856 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21857 if test "${ol_cv_pthread_lpthread+set}" = set; then
21858 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 LIBS="-lpthread $LIBS"
21865 if test "$cross_compiling" = yes; then
21866 cat >conftest.$ac_ext <<_ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21873 /* pthread test headers */
21874 #include <pthread.h>
21875 #if HAVE_PTHREADS < 7
21879 #define NULL (void*)0
21882 static void *task(p)
21885 return (void *) (p == NULL);
21892 /* pthread test function */
21893 #ifndef PTHREAD_CREATE_DETACHED
21894 #define PTHREAD_CREATE_DETACHED 1
21898 int detach = PTHREAD_CREATE_DETACHED;
21900 #if HAVE_PTHREADS > 4
21901 /* Final pthreads */
21902 pthread_attr_t attr;
21904 status = pthread_attr_init(&attr);
21905 if( status ) return status;
21907 #if HAVE_PTHREADS < 7
21908 status = pthread_attr_setdetachstate(&attr, &detach);
21909 if( status < 0 ) status = errno;
21911 status = pthread_attr_setdetachstate(&attr, detach);
21913 if( status ) return status;
21914 status = pthread_create( &t, &attr, task, NULL );
21915 #if HAVE_PTHREADS < 7
21916 if( status < 0 ) status = errno;
21918 if( status ) return status;
21920 /* Draft 4 pthreads */
21921 status = pthread_create( &t, pthread_attr_default, task, NULL );
21922 if( status ) return errno;
21924 /* give thread a chance to complete */
21925 /* it should remain joinable and hence detachable */
21928 status = pthread_detach( &t );
21929 if( status ) return errno;
21932 #ifdef HAVE_LINUX_THREADS
21933 pthread_kill_other_threads_np();
21942 rm -f conftest.$ac_objext conftest$ac_exeext
21943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21944 (eval $ac_link) 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
21951 { ac_try='test -z "$ac_c_werror_flag"
21952 || test ! -s conftest.err'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest$ac_exeext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ol_cv_pthread_lpthread=yes
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ol_cv_pthread_lpthread=no
21971 rm -f conftest.err conftest.$ac_objext \
21972 conftest$ac_exeext conftest.$ac_ext
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21981 /* pthread test headers */
21982 #include <pthread.h>
21983 #if HAVE_PTHREADS < 7
21987 #define NULL (void*)0
21990 static void *task(p)
21993 return (void *) (p == NULL);
21997 int main(argc, argv)
22002 /* pthread test function */
22003 #ifndef PTHREAD_CREATE_DETACHED
22004 #define PTHREAD_CREATE_DETACHED 1
22008 int detach = PTHREAD_CREATE_DETACHED;
22010 #if HAVE_PTHREADS > 4
22011 /* Final pthreads */
22012 pthread_attr_t attr;
22014 status = pthread_attr_init(&attr);
22015 if( status ) return status;
22017 #if HAVE_PTHREADS < 7
22018 status = pthread_attr_setdetachstate(&attr, &detach);
22019 if( status < 0 ) status = errno;
22021 status = pthread_attr_setdetachstate(&attr, detach);
22023 if( status ) return status;
22024 status = pthread_create( &t, &attr, task, NULL );
22025 #if HAVE_PTHREADS < 7
22026 if( status < 0 ) status = errno;
22028 if( status ) return status;
22030 /* Draft 4 pthreads */
22031 status = pthread_create( &t, pthread_attr_default, task, NULL );
22032 if( status ) return errno;
22034 /* give thread a chance to complete */
22035 /* it should remain joinable and hence detachable */
22038 status = pthread_detach( &t );
22039 if( status ) return errno;
22042 #ifdef HAVE_LINUX_THREADS
22043 pthread_kill_other_threads_np();
22051 rm -f conftest$ac_exeext
22052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22053 (eval $ac_link) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
22062 ol_cv_pthread_lpthread=yes
22064 echo "$as_me: program exited with status $ac_status" >&5
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ( exit $ac_status )
22069 ol_cv_pthread_lpthread=no
22071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22078 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22079 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22081 if test $ol_cv_pthread_lpthread = yes ; then
22082 ol_link_pthreads="-lpthread"
22083 ol_link_threads=posix
22087 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22088 if test "$ol_link_threads" = no ; then
22090 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22091 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22092 if test "${ol_cv_pthread_lc_r+set}" = set; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 if test "$cross_compiling" = yes; then
22101 cat >conftest.$ac_ext <<_ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22108 /* pthread test headers */
22109 #include <pthread.h>
22110 #if HAVE_PTHREADS < 7
22114 #define NULL (void*)0
22117 static void *task(p)
22120 return (void *) (p == NULL);
22127 /* pthread test function */
22128 #ifndef PTHREAD_CREATE_DETACHED
22129 #define PTHREAD_CREATE_DETACHED 1
22133 int detach = PTHREAD_CREATE_DETACHED;
22135 #if HAVE_PTHREADS > 4
22136 /* Final pthreads */
22137 pthread_attr_t attr;
22139 status = pthread_attr_init(&attr);
22140 if( status ) return status;
22142 #if HAVE_PTHREADS < 7
22143 status = pthread_attr_setdetachstate(&attr, &detach);
22144 if( status < 0 ) status = errno;
22146 status = pthread_attr_setdetachstate(&attr, detach);
22148 if( status ) return status;
22149 status = pthread_create( &t, &attr, task, NULL );
22150 #if HAVE_PTHREADS < 7
22151 if( status < 0 ) status = errno;
22153 if( status ) return status;
22155 /* Draft 4 pthreads */
22156 status = pthread_create( &t, pthread_attr_default, task, NULL );
22157 if( status ) return errno;
22159 /* give thread a chance to complete */
22160 /* it should remain joinable and hence detachable */
22163 status = pthread_detach( &t );
22164 if( status ) return errno;
22167 #ifdef HAVE_LINUX_THREADS
22168 pthread_kill_other_threads_np();
22177 rm -f conftest.$ac_objext conftest$ac_exeext
22178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22179 (eval $ac_link) 2>conftest.er1
22181 grep -v '^ *+' conftest.er1 >conftest.err
22183 cat conftest.err >&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } &&
22186 { ac_try='test -z "$ac_c_werror_flag"
22187 || test ! -s conftest.err'
22188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189 (eval $ac_try) 2>&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); }; } &&
22193 { ac_try='test -s conftest$ac_exeext'
22194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195 (eval $ac_try) 2>&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; }; then
22199 ol_cv_pthread_lc_r=yes
22201 echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22204 ol_cv_pthread_lc_r=no
22206 rm -f conftest.err conftest.$ac_objext \
22207 conftest$ac_exeext conftest.$ac_ext
22209 cat >conftest.$ac_ext <<_ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h. */
22216 /* pthread test headers */
22217 #include <pthread.h>
22218 #if HAVE_PTHREADS < 7
22222 #define NULL (void*)0
22225 static void *task(p)
22228 return (void *) (p == NULL);
22232 int main(argc, argv)
22237 /* pthread test function */
22238 #ifndef PTHREAD_CREATE_DETACHED
22239 #define PTHREAD_CREATE_DETACHED 1
22243 int detach = PTHREAD_CREATE_DETACHED;
22245 #if HAVE_PTHREADS > 4
22246 /* Final pthreads */
22247 pthread_attr_t attr;
22249 status = pthread_attr_init(&attr);
22250 if( status ) return status;
22252 #if HAVE_PTHREADS < 7
22253 status = pthread_attr_setdetachstate(&attr, &detach);
22254 if( status < 0 ) status = errno;
22256 status = pthread_attr_setdetachstate(&attr, detach);
22258 if( status ) return status;
22259 status = pthread_create( &t, &attr, task, NULL );
22260 #if HAVE_PTHREADS < 7
22261 if( status < 0 ) status = errno;
22263 if( status ) return status;
22265 /* Draft 4 pthreads */
22266 status = pthread_create( &t, pthread_attr_default, task, NULL );
22267 if( status ) return errno;
22269 /* give thread a chance to complete */
22270 /* it should remain joinable and hence detachable */
22273 status = pthread_detach( &t );
22274 if( status ) return errno;
22277 #ifdef HAVE_LINUX_THREADS
22278 pthread_kill_other_threads_np();
22286 rm -f conftest$ac_exeext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288 (eval $ac_link) 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
22297 ol_cv_pthread_lc_r=yes
22299 echo "$as_me: program exited with status $ac_status" >&5
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 ( exit $ac_status )
22304 ol_cv_pthread_lc_r=no
22306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22313 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22314 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22316 if test $ol_cv_pthread_lc_r = yes ; then
22317 ol_link_pthreads="-lc_r"
22318 ol_link_threads=posix
22323 # Pthread try link: -threads (ol_cv_pthread_threads)
22324 if test "$ol_link_threads" = no ; then
22326 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22327 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22328 if test "${ol_cv_pthread_threads+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22334 LIBS="-threads $LIBS"
22336 if test "$cross_compiling" = yes; then
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22344 /* pthread test headers */
22345 #include <pthread.h>
22346 #if HAVE_PTHREADS < 7
22350 #define NULL (void*)0
22353 static void *task(p)
22356 return (void *) (p == NULL);
22363 /* pthread test function */
22364 #ifndef PTHREAD_CREATE_DETACHED
22365 #define PTHREAD_CREATE_DETACHED 1
22369 int detach = PTHREAD_CREATE_DETACHED;
22371 #if HAVE_PTHREADS > 4
22372 /* Final pthreads */
22373 pthread_attr_t attr;
22375 status = pthread_attr_init(&attr);
22376 if( status ) return status;
22378 #if HAVE_PTHREADS < 7
22379 status = pthread_attr_setdetachstate(&attr, &detach);
22380 if( status < 0 ) status = errno;
22382 status = pthread_attr_setdetachstate(&attr, detach);
22384 if( status ) return status;
22385 status = pthread_create( &t, &attr, task, NULL );
22386 #if HAVE_PTHREADS < 7
22387 if( status < 0 ) status = errno;
22389 if( status ) return status;
22391 /* Draft 4 pthreads */
22392 status = pthread_create( &t, pthread_attr_default, task, NULL );
22393 if( status ) return errno;
22395 /* give thread a chance to complete */
22396 /* it should remain joinable and hence detachable */
22399 status = pthread_detach( &t );
22400 if( status ) return errno;
22403 #ifdef HAVE_LINUX_THREADS
22404 pthread_kill_other_threads_np();
22413 rm -f conftest.$ac_objext conftest$ac_exeext
22414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22415 (eval $ac_link) 2>conftest.er1
22417 grep -v '^ *+' conftest.er1 >conftest.err
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
22422 { ac_try='test -z "$ac_c_werror_flag"
22423 || test ! -s conftest.err'
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; } &&
22429 { ac_try='test -s conftest$ac_exeext'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435 ol_cv_pthread_threads=yes
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ol_cv_pthread_threads=no
22442 rm -f conftest.err conftest.$ac_objext \
22443 conftest$ac_exeext conftest.$ac_ext
22445 cat >conftest.$ac_ext <<_ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22452 /* pthread test headers */
22453 #include <pthread.h>
22454 #if HAVE_PTHREADS < 7
22458 #define NULL (void*)0
22461 static void *task(p)
22464 return (void *) (p == NULL);
22468 int main(argc, argv)
22473 /* pthread test function */
22474 #ifndef PTHREAD_CREATE_DETACHED
22475 #define PTHREAD_CREATE_DETACHED 1
22479 int detach = PTHREAD_CREATE_DETACHED;
22481 #if HAVE_PTHREADS > 4
22482 /* Final pthreads */
22483 pthread_attr_t attr;
22485 status = pthread_attr_init(&attr);
22486 if( status ) return status;
22488 #if HAVE_PTHREADS < 7
22489 status = pthread_attr_setdetachstate(&attr, &detach);
22490 if( status < 0 ) status = errno;
22492 status = pthread_attr_setdetachstate(&attr, detach);
22494 if( status ) return status;
22495 status = pthread_create( &t, &attr, task, NULL );
22496 #if HAVE_PTHREADS < 7
22497 if( status < 0 ) status = errno;
22499 if( status ) return status;
22501 /* Draft 4 pthreads */
22502 status = pthread_create( &t, pthread_attr_default, task, NULL );
22503 if( status ) return errno;
22505 /* give thread a chance to complete */
22506 /* it should remain joinable and hence detachable */
22509 status = pthread_detach( &t );
22510 if( status ) return errno;
22513 #ifdef HAVE_LINUX_THREADS
22514 pthread_kill_other_threads_np();
22522 rm -f conftest$ac_exeext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22524 (eval $ac_link) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 ol_cv_pthread_threads=yes
22535 echo "$as_me: program exited with status $ac_status" >&5
22536 echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ( exit $ac_status )
22540 ol_cv_pthread_threads=no
22542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22549 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22550 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22552 if test $ol_cv_pthread_threads = yes ; then
22553 ol_link_pthreads="-threads"
22554 ol_link_threads=posix
22559 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22560 if test "$ol_link_threads" = no ; then
22561 # try -lpthreads -lmach -lexc -lc_r
22562 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22563 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22564 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22572 if test "$cross_compiling" = yes; then
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22580 /* pthread test headers */
22581 #include <pthread.h>
22582 #if HAVE_PTHREADS < 7
22586 #define NULL (void*)0
22589 static void *task(p)
22592 return (void *) (p == NULL);
22599 /* pthread test function */
22600 #ifndef PTHREAD_CREATE_DETACHED
22601 #define PTHREAD_CREATE_DETACHED 1
22605 int detach = PTHREAD_CREATE_DETACHED;
22607 #if HAVE_PTHREADS > 4
22608 /* Final pthreads */
22609 pthread_attr_t attr;
22611 status = pthread_attr_init(&attr);
22612 if( status ) return status;
22614 #if HAVE_PTHREADS < 7
22615 status = pthread_attr_setdetachstate(&attr, &detach);
22616 if( status < 0 ) status = errno;
22618 status = pthread_attr_setdetachstate(&attr, detach);
22620 if( status ) return status;
22621 status = pthread_create( &t, &attr, task, NULL );
22622 #if HAVE_PTHREADS < 7
22623 if( status < 0 ) status = errno;
22625 if( status ) return status;
22627 /* Draft 4 pthreads */
22628 status = pthread_create( &t, pthread_attr_default, task, NULL );
22629 if( status ) return errno;
22631 /* give thread a chance to complete */
22632 /* it should remain joinable and hence detachable */
22635 status = pthread_detach( &t );
22636 if( status ) return errno;
22639 #ifdef HAVE_LINUX_THREADS
22640 pthread_kill_other_threads_np();
22649 rm -f conftest.$ac_objext conftest$ac_exeext
22650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22651 (eval $ac_link) 2>conftest.er1
22653 grep -v '^ *+' conftest.er1 >conftest.err
22655 cat conftest.err >&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } &&
22658 { ac_try='test -z "$ac_c_werror_flag"
22659 || test ! -s conftest.err'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; } &&
22665 { ac_try='test -s conftest$ac_exeext'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; }; then
22671 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22673 echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22676 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22678 rm -f conftest.err conftest.$ac_objext \
22679 conftest$ac_exeext conftest.$ac_ext
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22688 /* pthread test headers */
22689 #include <pthread.h>
22690 #if HAVE_PTHREADS < 7
22694 #define NULL (void*)0
22697 static void *task(p)
22700 return (void *) (p == NULL);
22704 int main(argc, argv)
22709 /* pthread test function */
22710 #ifndef PTHREAD_CREATE_DETACHED
22711 #define PTHREAD_CREATE_DETACHED 1
22715 int detach = PTHREAD_CREATE_DETACHED;
22717 #if HAVE_PTHREADS > 4
22718 /* Final pthreads */
22719 pthread_attr_t attr;
22721 status = pthread_attr_init(&attr);
22722 if( status ) return status;
22724 #if HAVE_PTHREADS < 7
22725 status = pthread_attr_setdetachstate(&attr, &detach);
22726 if( status < 0 ) status = errno;
22728 status = pthread_attr_setdetachstate(&attr, detach);
22730 if( status ) return status;
22731 status = pthread_create( &t, &attr, task, NULL );
22732 #if HAVE_PTHREADS < 7
22733 if( status < 0 ) status = errno;
22735 if( status ) return status;
22737 /* Draft 4 pthreads */
22738 status = pthread_create( &t, pthread_attr_default, task, NULL );
22739 if( status ) return errno;
22741 /* give thread a chance to complete */
22742 /* it should remain joinable and hence detachable */
22745 status = pthread_detach( &t );
22746 if( status ) return errno;
22749 #ifdef HAVE_LINUX_THREADS
22750 pthread_kill_other_threads_np();
22758 rm -f conftest$ac_exeext
22759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22760 (eval $ac_link) 2>&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22765 (eval $ac_try) 2>&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; }; then
22769 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22771 echo "$as_me: program exited with status $ac_status" >&5
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 ( exit $ac_status )
22776 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22785 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22786 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22788 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22789 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22790 ol_link_threads=posix
22794 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22795 if test "$ol_link_threads" = no ; then
22796 # try -lpthreads -lmach -lexc
22797 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22798 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22799 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22805 LIBS="-lpthreads -lmach -lexc $LIBS"
22807 if test "$cross_compiling" = yes; then
22808 cat >conftest.$ac_ext <<_ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22815 /* pthread test headers */
22816 #include <pthread.h>
22817 #if HAVE_PTHREADS < 7
22821 #define NULL (void*)0
22824 static void *task(p)
22827 return (void *) (p == NULL);
22834 /* pthread test function */
22835 #ifndef PTHREAD_CREATE_DETACHED
22836 #define PTHREAD_CREATE_DETACHED 1
22840 int detach = PTHREAD_CREATE_DETACHED;
22842 #if HAVE_PTHREADS > 4
22843 /* Final pthreads */
22844 pthread_attr_t attr;
22846 status = pthread_attr_init(&attr);
22847 if( status ) return status;
22849 #if HAVE_PTHREADS < 7
22850 status = pthread_attr_setdetachstate(&attr, &detach);
22851 if( status < 0 ) status = errno;
22853 status = pthread_attr_setdetachstate(&attr, detach);
22855 if( status ) return status;
22856 status = pthread_create( &t, &attr, task, NULL );
22857 #if HAVE_PTHREADS < 7
22858 if( status < 0 ) status = errno;
22860 if( status ) return status;
22862 /* Draft 4 pthreads */
22863 status = pthread_create( &t, pthread_attr_default, task, NULL );
22864 if( status ) return errno;
22866 /* give thread a chance to complete */
22867 /* it should remain joinable and hence detachable */
22870 status = pthread_detach( &t );
22871 if( status ) return errno;
22874 #ifdef HAVE_LINUX_THREADS
22875 pthread_kill_other_threads_np();
22884 rm -f conftest.$ac_objext conftest$ac_exeext
22885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22886 (eval $ac_link) 2>conftest.er1
22888 grep -v '^ *+' conftest.er1 >conftest.err
22890 cat conftest.err >&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } &&
22893 { ac_try='test -z "$ac_c_werror_flag"
22894 || test ! -s conftest.err'
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; } &&
22900 { ac_try='test -s conftest$ac_exeext'
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; }; then
22906 ol_cv_pthread_lpthreads_lmach_lexc=yes
22908 echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22911 ol_cv_pthread_lpthreads_lmach_lexc=no
22913 rm -f conftest.err conftest.$ac_objext \
22914 conftest$ac_exeext conftest.$ac_ext
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22923 /* pthread test headers */
22924 #include <pthread.h>
22925 #if HAVE_PTHREADS < 7
22929 #define NULL (void*)0
22932 static void *task(p)
22935 return (void *) (p == NULL);
22939 int main(argc, argv)
22944 /* pthread test function */
22945 #ifndef PTHREAD_CREATE_DETACHED
22946 #define PTHREAD_CREATE_DETACHED 1
22950 int detach = PTHREAD_CREATE_DETACHED;
22952 #if HAVE_PTHREADS > 4
22953 /* Final pthreads */
22954 pthread_attr_t attr;
22956 status = pthread_attr_init(&attr);
22957 if( status ) return status;
22959 #if HAVE_PTHREADS < 7
22960 status = pthread_attr_setdetachstate(&attr, &detach);
22961 if( status < 0 ) status = errno;
22963 status = pthread_attr_setdetachstate(&attr, detach);
22965 if( status ) return status;
22966 status = pthread_create( &t, &attr, task, NULL );
22967 #if HAVE_PTHREADS < 7
22968 if( status < 0 ) status = errno;
22970 if( status ) return status;
22972 /* Draft 4 pthreads */
22973 status = pthread_create( &t, pthread_attr_default, task, NULL );
22974 if( status ) return errno;
22976 /* give thread a chance to complete */
22977 /* it should remain joinable and hence detachable */
22980 status = pthread_detach( &t );
22981 if( status ) return errno;
22984 #ifdef HAVE_LINUX_THREADS
22985 pthread_kill_other_threads_np();
22993 rm -f conftest$ac_exeext
22994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22995 (eval $ac_link) 2>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; }; then
23004 ol_cv_pthread_lpthreads_lmach_lexc=yes
23006 echo "$as_me: program exited with status $ac_status" >&5
23007 echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ( exit $ac_status )
23011 ol_cv_pthread_lpthreads_lmach_lexc=no
23013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23020 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23021 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23023 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23024 ol_link_pthreads="-lpthreads -lmach -lexc"
23025 ol_link_threads=posix
23029 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23030 if test "$ol_link_threads" = no ; then
23031 # try -lpthreads -lexc
23032 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23033 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23034 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 LIBS="-lpthreads -lexc $LIBS"
23042 if test "$cross_compiling" = yes; then
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23050 /* pthread test headers */
23051 #include <pthread.h>
23052 #if HAVE_PTHREADS < 7
23056 #define NULL (void*)0
23059 static void *task(p)
23062 return (void *) (p == NULL);
23069 /* pthread test function */
23070 #ifndef PTHREAD_CREATE_DETACHED
23071 #define PTHREAD_CREATE_DETACHED 1
23075 int detach = PTHREAD_CREATE_DETACHED;
23077 #if HAVE_PTHREADS > 4
23078 /* Final pthreads */
23079 pthread_attr_t attr;
23081 status = pthread_attr_init(&attr);
23082 if( status ) return status;
23084 #if HAVE_PTHREADS < 7
23085 status = pthread_attr_setdetachstate(&attr, &detach);
23086 if( status < 0 ) status = errno;
23088 status = pthread_attr_setdetachstate(&attr, detach);
23090 if( status ) return status;
23091 status = pthread_create( &t, &attr, task, NULL );
23092 #if HAVE_PTHREADS < 7
23093 if( status < 0 ) status = errno;
23095 if( status ) return status;
23097 /* Draft 4 pthreads */
23098 status = pthread_create( &t, pthread_attr_default, task, NULL );
23099 if( status ) return errno;
23101 /* give thread a chance to complete */
23102 /* it should remain joinable and hence detachable */
23105 status = pthread_detach( &t );
23106 if( status ) return errno;
23109 #ifdef HAVE_LINUX_THREADS
23110 pthread_kill_other_threads_np();
23119 rm -f conftest.$ac_objext conftest$ac_exeext
23120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23121 (eval $ac_link) 2>conftest.er1
23123 grep -v '^ *+' conftest.er1 >conftest.err
23125 cat conftest.err >&5
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } &&
23128 { ac_try='test -z "$ac_c_werror_flag"
23129 || test ! -s conftest.err'
23130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131 (eval $ac_try) 2>&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); }; } &&
23135 { ac_try='test -s conftest$ac_exeext'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141 ol_cv_pthread_lpthreads_lexc=yes
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 ol_cv_pthread_lpthreads_lexc=no
23148 rm -f conftest.err conftest.$ac_objext \
23149 conftest$ac_exeext conftest.$ac_ext
23151 cat >conftest.$ac_ext <<_ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23158 /* pthread test headers */
23159 #include <pthread.h>
23160 #if HAVE_PTHREADS < 7
23164 #define NULL (void*)0
23167 static void *task(p)
23170 return (void *) (p == NULL);
23174 int main(argc, argv)
23179 /* pthread test function */
23180 #ifndef PTHREAD_CREATE_DETACHED
23181 #define PTHREAD_CREATE_DETACHED 1
23185 int detach = PTHREAD_CREATE_DETACHED;
23187 #if HAVE_PTHREADS > 4
23188 /* Final pthreads */
23189 pthread_attr_t attr;
23191 status = pthread_attr_init(&attr);
23192 if( status ) return status;
23194 #if HAVE_PTHREADS < 7
23195 status = pthread_attr_setdetachstate(&attr, &detach);
23196 if( status < 0 ) status = errno;
23198 status = pthread_attr_setdetachstate(&attr, detach);
23200 if( status ) return status;
23201 status = pthread_create( &t, &attr, task, NULL );
23202 #if HAVE_PTHREADS < 7
23203 if( status < 0 ) status = errno;
23205 if( status ) return status;
23207 /* Draft 4 pthreads */
23208 status = pthread_create( &t, pthread_attr_default, task, NULL );
23209 if( status ) return errno;
23211 /* give thread a chance to complete */
23212 /* it should remain joinable and hence detachable */
23215 status = pthread_detach( &t );
23216 if( status ) return errno;
23219 #ifdef HAVE_LINUX_THREADS
23220 pthread_kill_other_threads_np();
23228 rm -f conftest$ac_exeext
23229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23230 (eval $ac_link) 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; }; then
23239 ol_cv_pthread_lpthreads_lexc=yes
23241 echo "$as_me: program exited with status $ac_status" >&5
23242 echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ( exit $ac_status )
23246 ol_cv_pthread_lpthreads_lexc=no
23248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23255 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23256 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23258 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23259 ol_link_pthreads="-lpthreads -lexc"
23260 ol_link_threads=posix
23265 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23266 if test "$ol_link_threads" = no ; then
23268 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23269 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23270 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23271 echo $ECHO_N "(cached) $ECHO_C" >&6
23276 LIBS="-lpthreads $LIBS"
23278 if test "$cross_compiling" = yes; then
23279 cat >conftest.$ac_ext <<_ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23286 /* pthread test headers */
23287 #include <pthread.h>
23288 #if HAVE_PTHREADS < 7
23292 #define NULL (void*)0
23295 static void *task(p)
23298 return (void *) (p == NULL);
23305 /* pthread test function */
23306 #ifndef PTHREAD_CREATE_DETACHED
23307 #define PTHREAD_CREATE_DETACHED 1
23311 int detach = PTHREAD_CREATE_DETACHED;
23313 #if HAVE_PTHREADS > 4
23314 /* Final pthreads */
23315 pthread_attr_t attr;
23317 status = pthread_attr_init(&attr);
23318 if( status ) return status;
23320 #if HAVE_PTHREADS < 7
23321 status = pthread_attr_setdetachstate(&attr, &detach);
23322 if( status < 0 ) status = errno;
23324 status = pthread_attr_setdetachstate(&attr, detach);
23326 if( status ) return status;
23327 status = pthread_create( &t, &attr, task, NULL );
23328 #if HAVE_PTHREADS < 7
23329 if( status < 0 ) status = errno;
23331 if( status ) return status;
23333 /* Draft 4 pthreads */
23334 status = pthread_create( &t, pthread_attr_default, task, NULL );
23335 if( status ) return errno;
23337 /* give thread a chance to complete */
23338 /* it should remain joinable and hence detachable */
23341 status = pthread_detach( &t );
23342 if( status ) return errno;
23345 #ifdef HAVE_LINUX_THREADS
23346 pthread_kill_other_threads_np();
23355 rm -f conftest.$ac_objext conftest$ac_exeext
23356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23357 (eval $ac_link) 2>conftest.er1
23359 grep -v '^ *+' conftest.er1 >conftest.err
23361 cat conftest.err >&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } &&
23364 { ac_try='test -z "$ac_c_werror_flag"
23365 || test ! -s conftest.err'
23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; } &&
23371 { ac_try='test -s conftest$ac_exeext'
23372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23373 (eval $ac_try) 2>&5
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); }; }; then
23377 ol_cv_pthread_lib_lpthreads=yes
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ol_cv_pthread_lib_lpthreads=no
23384 rm -f conftest.err conftest.$ac_objext \
23385 conftest$ac_exeext conftest.$ac_ext
23387 cat >conftest.$ac_ext <<_ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23394 /* pthread test headers */
23395 #include <pthread.h>
23396 #if HAVE_PTHREADS < 7
23400 #define NULL (void*)0
23403 static void *task(p)
23406 return (void *) (p == NULL);
23410 int main(argc, argv)
23415 /* pthread test function */
23416 #ifndef PTHREAD_CREATE_DETACHED
23417 #define PTHREAD_CREATE_DETACHED 1
23421 int detach = PTHREAD_CREATE_DETACHED;
23423 #if HAVE_PTHREADS > 4
23424 /* Final pthreads */
23425 pthread_attr_t attr;
23427 status = pthread_attr_init(&attr);
23428 if( status ) return status;
23430 #if HAVE_PTHREADS < 7
23431 status = pthread_attr_setdetachstate(&attr, &detach);
23432 if( status < 0 ) status = errno;
23434 status = pthread_attr_setdetachstate(&attr, detach);
23436 if( status ) return status;
23437 status = pthread_create( &t, &attr, task, NULL );
23438 #if HAVE_PTHREADS < 7
23439 if( status < 0 ) status = errno;
23441 if( status ) return status;
23443 /* Draft 4 pthreads */
23444 status = pthread_create( &t, pthread_attr_default, task, NULL );
23445 if( status ) return errno;
23447 /* give thread a chance to complete */
23448 /* it should remain joinable and hence detachable */
23451 status = pthread_detach( &t );
23452 if( status ) return errno;
23455 #ifdef HAVE_LINUX_THREADS
23456 pthread_kill_other_threads_np();
23464 rm -f conftest$ac_exeext
23465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23466 (eval $ac_link) 2>&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 ol_cv_pthread_lib_lpthreads=yes
23477 echo "$as_me: program exited with status $ac_status" >&5
23478 echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23481 ( exit $ac_status )
23482 ol_cv_pthread_lib_lpthreads=no
23484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23491 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23492 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23494 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23495 ol_link_pthreads="-lpthreads"
23496 ol_link_threads=posix
23501 if test $ol_link_threads != no ; then
23502 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23504 save_CPPFLAGS="$CPPFLAGS"
23506 LIBS="$LTHREAD_LIBS $LIBS"
23511 for ac_func in sched_yield pthread_yield thr_yield
23513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23514 echo "$as_me:$LINENO: checking for $ac_func" >&5
23515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23516 if eval "test \"\${$as_ac_var+set}\" = set"; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 cat >conftest.$ac_ext <<_ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23527 #define $ac_func innocuous_$ac_func
23529 /* System header to define __stub macros and hopefully few prototypes,
23530 which can conflict with char $ac_func (); below.
23531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23532 <limits.h> exists even on freestanding compilers. */
23535 # include <limits.h>
23537 # include <assert.h>
23542 /* Override any gcc2 internal prototype to avoid an error. */
23547 /* We use char because int might match the return type of a gcc2
23548 builtin and then its argument prototype would still apply. */
23550 /* The GNU C library defines this for functions which it implements
23551 to always fail with ENOSYS. Some functions are actually named
23552 something starting with __ and the normal name is an alias. */
23553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23556 char (*f) () = $ac_func;
23565 return f != $ac_func;
23570 rm -f conftest.$ac_objext conftest$ac_exeext
23571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23572 (eval $ac_link) 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
23579 { ac_try='test -z "$ac_c_werror_flag"
23580 || test ! -s conftest.err'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest$ac_exeext'
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 eval "$as_ac_var=yes"
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597 eval "$as_ac_var=no"
23599 rm -f conftest.err conftest.$ac_objext \
23600 conftest$ac_exeext conftest.$ac_ext
23602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23604 if test `eval echo '${'$as_ac_var'}'` = yes; then
23605 cat >>confdefs.h <<_ACEOF
23606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23613 if test $ac_cv_func_sched_yield = no &&
23614 test $ac_cv_func_pthread_yield = no &&
23615 test $ac_cv_func_thr_yield = no ; then
23616 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23617 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23618 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23621 ac_check_lib_save_LIBS=$LIBS
23623 cat >conftest.$ac_ext <<_ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23630 /* Override any gcc2 internal prototype to avoid an error. */
23634 /* We use char because int might match the return type of a gcc2
23635 builtin and then its argument prototype would still apply. */
23636 char sched_yield ();
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } &&
23654 { ac_try='test -z "$ac_c_werror_flag"
23655 || test ! -s conftest.err'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; } &&
23661 { ac_try='test -s conftest$ac_exeext'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 ac_cv_lib_rt_sched_yield=yes
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23672 ac_cv_lib_rt_sched_yield=no
23674 rm -f conftest.err conftest.$ac_objext \
23675 conftest$ac_exeext conftest.$ac_ext
23676 LIBS=$ac_check_lib_save_LIBS
23678 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23679 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23680 if test $ac_cv_lib_rt_sched_yield = yes; then
23681 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23683 cat >>confdefs.h <<\_ACEOF
23684 #define HAVE_SCHED_YIELD 1
23687 ac_cv_func_sched_yield=yes
23689 ac_cv_func_sched_yield=no
23693 if test $ac_cv_func_sched_yield = no &&
23694 test $ac_cv_func_pthread_yield = no &&
23695 test "$ac_cv_func_thr_yield" = no ; then
23696 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23697 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23701 for ac_func in pthread_kill
23703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23704 echo "$as_me:$LINENO: checking for $ac_func" >&5
23705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23706 if eval "test \"\${$as_ac_var+set}\" = set"; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23709 cat >conftest.$ac_ext <<_ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23717 #define $ac_func innocuous_$ac_func
23719 /* System header to define __stub macros and hopefully few prototypes,
23720 which can conflict with char $ac_func (); below.
23721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23722 <limits.h> exists even on freestanding compilers. */
23725 # include <limits.h>
23727 # include <assert.h>
23732 /* Override any gcc2 internal prototype to avoid an error. */
23737 /* We use char because int might match the return type of a gcc2
23738 builtin and then its argument prototype would still apply. */
23740 /* The GNU C library defines this for functions which it implements
23741 to always fail with ENOSYS. Some functions are actually named
23742 something starting with __ and the normal name is an alias. */
23743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23746 char (*f) () = $ac_func;
23755 return f != $ac_func;
23760 rm -f conftest.$ac_objext conftest$ac_exeext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23762 (eval $ac_link) 2>conftest.er1
23764 grep -v '^ *+' conftest.er1 >conftest.err
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } &&
23769 { ac_try='test -z "$ac_c_werror_flag"
23770 || test ! -s conftest.err'
23771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23772 (eval $ac_try) 2>&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; } &&
23776 { ac_try='test -s conftest$ac_exeext'
23777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778 (eval $ac_try) 2>&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; }; then
23782 eval "$as_ac_var=yes"
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 eval "$as_ac_var=no"
23789 rm -f conftest.err conftest.$ac_objext \
23790 conftest$ac_exeext conftest.$ac_ext
23792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23794 if test `eval echo '${'$as_ac_var'}'` = yes; then
23795 cat >>confdefs.h <<_ACEOF
23796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23803 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23804 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23805 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23816 #include <pthread.h>
23817 pthread_rwlock_t rwlock;
23822 pthread_rwlock_destroy(&rwlock);
23827 rm -f conftest.$ac_objext conftest$ac_exeext
23828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829 (eval $ac_link) 2>conftest.er1
23831 grep -v '^ *+' conftest.er1 >conftest.err
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
23836 { ac_try='test -z "$ac_c_werror_flag"
23837 || test ! -s conftest.err'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; } &&
23843 { ac_try='test -s conftest$ac_exeext'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 ol_cv_func_pthread_rwlock_destroy=yes
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23854 ol_cv_func_pthread_rwlock_destroy=no
23856 rm -f conftest.err conftest.$ac_objext \
23857 conftest$ac_exeext conftest.$ac_ext
23860 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23861 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23862 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23864 cat >>confdefs.h <<\_ACEOF
23865 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23870 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23871 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23872 if test "${ol_cv_func_pthread_detach+set}" = set; then
23873 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 cat >conftest.$ac_ext <<_ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23883 #include <pthread.h>
23885 #define NULL (void*)0
23891 pthread_detach(NULL);
23896 rm -f conftest.$ac_objext conftest$ac_exeext
23897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23898 (eval $ac_link) 2>conftest.er1
23900 grep -v '^ *+' conftest.er1 >conftest.err
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } &&
23905 { ac_try='test -z "$ac_c_werror_flag"
23906 || test ! -s conftest.err'
23907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; } &&
23912 { ac_try='test -s conftest$ac_exeext'
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; }; then
23918 ol_cv_func_pthread_detach=yes
23920 echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 ol_cv_func_pthread_detach=no
23925 rm -f conftest.err conftest.$ac_objext \
23926 conftest$ac_exeext conftest.$ac_ext
23929 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23930 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23932 if test $ol_cv_func_pthread_detach = no ; then
23933 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23934 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23935 { (exit 1); exit 1; }; }
23939 cat >>confdefs.h <<\_ACEOF
23940 #define HAVE_PTHREAD_DETACH 1
23949 pthread_setconcurrency \
23950 pthread_getconcurrency \
23951 thr_setconcurrency \
23952 thr_getconcurrency \
23955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23956 echo "$as_me:$LINENO: checking for $ac_func" >&5
23957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23958 if eval "test \"\${$as_ac_var+set}\" = set"; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23961 cat >conftest.$ac_ext <<_ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23969 #define $ac_func innocuous_$ac_func
23971 /* System header to define __stub macros and hopefully few prototypes,
23972 which can conflict with char $ac_func (); below.
23973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23974 <limits.h> exists even on freestanding compilers. */
23977 # include <limits.h>
23979 # include <assert.h>
23984 /* Override any gcc2 internal prototype to avoid an error. */
23989 /* We use char because int might match the return type of a gcc2
23990 builtin and then its argument prototype would still apply. */
23992 /* The GNU C library defines this for functions which it implements
23993 to always fail with ENOSYS. Some functions are actually named
23994 something starting with __ and the normal name is an alias. */
23995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23998 char (*f) () = $ac_func;
24007 return f != $ac_func;
24012 rm -f conftest.$ac_objext conftest$ac_exeext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014 (eval $ac_link) 2>conftest.er1
24016 grep -v '^ *+' conftest.er1 >conftest.err
24018 cat conftest.err >&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } &&
24021 { ac_try='test -z "$ac_c_werror_flag"
24022 || test ! -s conftest.err'
24023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024 (eval $ac_try) 2>&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); }; } &&
24028 { ac_try='test -s conftest$ac_exeext'
24029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24030 (eval $ac_try) 2>&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); }; }; then
24034 eval "$as_ac_var=yes"
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 eval "$as_ac_var=no"
24041 rm -f conftest.err conftest.$ac_objext \
24042 conftest$ac_exeext conftest.$ac_ext
24044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24046 if test `eval echo '${'$as_ac_var'}'` = yes; then
24047 cat >>confdefs.h <<_ACEOF
24048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24057 for ac_func in pthread_kill_other_threads_np
24059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24060 echo "$as_me:$LINENO: checking for $ac_func" >&5
24061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24062 if eval "test \"\${$as_ac_var+set}\" = set"; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 cat >conftest.$ac_ext <<_ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24073 #define $ac_func innocuous_$ac_func
24075 /* System header to define __stub macros and hopefully few prototypes,
24076 which can conflict with char $ac_func (); below.
24077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24078 <limits.h> exists even on freestanding compilers. */
24081 # include <limits.h>
24083 # include <assert.h>
24088 /* Override any gcc2 internal prototype to avoid an error. */
24093 /* We use char because int might match the return type of a gcc2
24094 builtin and then its argument prototype would still apply. */
24096 /* The GNU C library defines this for functions which it implements
24097 to always fail with ENOSYS. Some functions are actually named
24098 something starting with __ and the normal name is an alias. */
24099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24102 char (*f) () = $ac_func;
24111 return f != $ac_func;
24116 rm -f conftest.$ac_objext conftest$ac_exeext
24117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24118 (eval $ac_link) 2>conftest.er1
24120 grep -v '^ *+' conftest.er1 >conftest.err
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } &&
24125 { ac_try='test -z "$ac_c_werror_flag"
24126 || test ! -s conftest.err'
24127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24128 (eval $ac_try) 2>&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); }; } &&
24132 { ac_try='test -s conftest$ac_exeext'
24133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134 (eval $ac_try) 2>&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); }; }; then
24138 eval "$as_ac_var=yes"
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24143 eval "$as_ac_var=no"
24145 rm -f conftest.err conftest.$ac_objext \
24146 conftest$ac_exeext conftest.$ac_ext
24148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24150 if test `eval echo '${'$as_ac_var'}'` = yes; then
24151 cat >>confdefs.h <<_ACEOF
24152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24158 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24159 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24160 if test "${ol_cv_sys_linux_threads+set}" = set; then
24161 echo $ECHO_N "(cached) $ECHO_C" >&6
24163 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24165 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24166 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24171 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24172 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24173 if test "${ol_cv_linux_threads+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 if test $ol_cv_header_linux_threads = yes &&
24178 test $ol_cv_sys_linux_threads = yes; then
24179 ol_cv_linux_threads=yes
24180 elif test $ol_cv_header_linux_threads = no &&
24181 test $ol_cv_sys_linux_threads = no; then
24182 ol_cv_linux_threads=no
24184 ol_cv_linux_threads=error
24188 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24189 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24192 if test $ol_cv_linux_threads = error; then
24193 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24194 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24195 { (exit 1); exit 1; }; };
24198 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24199 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24200 if test "${ol_cv_pthread_create_works+set}" = set; then
24201 echo $ECHO_N "(cached) $ECHO_C" >&6
24204 if test "$cross_compiling" = yes; then
24205 ol_cv_pthread_create_works=yes
24207 cat >conftest.$ac_ext <<_ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24214 /* pthread test headers */
24215 #include <pthread.h>
24216 #if HAVE_PTHREADS < 7
24220 #define NULL (void*)0
24223 static void *task(p)
24226 return (void *) (p == NULL);
24230 int main(argc, argv)
24235 /* pthread test function */
24236 #ifndef PTHREAD_CREATE_DETACHED
24237 #define PTHREAD_CREATE_DETACHED 1
24241 int detach = PTHREAD_CREATE_DETACHED;
24243 #if HAVE_PTHREADS > 4
24244 /* Final pthreads */
24245 pthread_attr_t attr;
24247 status = pthread_attr_init(&attr);
24248 if( status ) return status;
24250 #if HAVE_PTHREADS < 7
24251 status = pthread_attr_setdetachstate(&attr, &detach);
24252 if( status < 0 ) status = errno;
24254 status = pthread_attr_setdetachstate(&attr, detach);
24256 if( status ) return status;
24257 status = pthread_create( &t, &attr, task, NULL );
24258 #if HAVE_PTHREADS < 7
24259 if( status < 0 ) status = errno;
24261 if( status ) return status;
24263 /* Draft 4 pthreads */
24264 status = pthread_create( &t, pthread_attr_default, task, NULL );
24265 if( status ) return errno;
24267 /* give thread a chance to complete */
24268 /* it should remain joinable and hence detachable */
24271 status = pthread_detach( &t );
24272 if( status ) return errno;
24275 #ifdef HAVE_LINUX_THREADS
24276 pthread_kill_other_threads_np();
24284 rm -f conftest$ac_exeext
24285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24286 (eval $ac_link) 2>&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291 (eval $ac_try) 2>&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); }; }; then
24295 ol_cv_pthread_create_works=yes
24297 echo "$as_me: program exited with status $ac_status" >&5
24298 echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 ( exit $ac_status )
24302 ol_cv_pthread_create_works=no
24304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24307 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24308 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24310 if test $ol_cv_pthread_create_works = no ; then
24311 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24312 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24313 { (exit 1); exit 1; }; }
24316 ol_replace_broken_yield=no
24318 if test $ol_replace_broken_yield = yes ; then
24320 cat >>confdefs.h <<\_ACEOF
24321 #define REPLACE_BROKEN_YIELD 1
24326 if test $ol_with_yielding_select = auto ; then
24327 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24328 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24329 if test "${ol_cv_pthread_select_yields+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24333 if test "$cross_compiling" = yes; then
24334 ol_cv_pthread_select_yields=cross
24336 cat >conftest.$ac_ext <<_ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24343 #include <sys/types.h>
24344 #include <sys/time.h>
24345 #include <unistd.h>
24346 #include <pthread.h>
24348 #define NULL (void*) 0
24351 static int fildes[2];
24353 static void *task(p)
24365 FD_SET(fildes[0], &rfds);
24367 /* we're not interested in any fds */
24368 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24375 exit(0); /* if we exit here, the select blocked the whole process */
24378 int main(argc, argv)
24384 /* create a pipe to select */
24385 if(pipe(&fildes[0])) {
24390 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24391 (void) pthread_setconcurrency(2);
24393 #ifdef HAVE_THR_SETCONCURRENCY
24394 /* Set Solaris LWP concurrency to 2 */
24395 thr_setconcurrency(2);
24399 #if HAVE_PTHREADS < 6
24400 pthread_create(&t, pthread_attr_default, task, NULL);
24402 pthread_create(&t, NULL, task, NULL);
24405 /* make sure task runs first */
24406 #ifdef HAVE_THR_YIELD
24408 #elif defined( HAVE_SCHED_YIELD )
24410 #elif defined( HAVE_PTHREAD_YIELD )
24417 rm -f conftest$ac_exeext
24418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24419 (eval $ac_link) 2>&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424 (eval $ac_try) 2>&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); }; }; then
24428 ol_cv_pthread_select_yields=no
24430 echo "$as_me: program exited with status $ac_status" >&5
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24434 ( exit $ac_status )
24435 ol_cv_pthread_select_yields=yes
24437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24440 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24441 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24443 if test $ol_cv_pthread_select_yields = cross ; then
24444 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24445 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24446 { (exit 1); exit 1; }; }
24449 if test $ol_cv_pthread_select_yields = yes ; then
24450 ol_with_yielding_select=yes
24454 CPPFLAGS="$save_CPPFLAGS"
24457 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24458 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24459 { (exit 1); exit 1; }; }
24463 if test $ol_with_threads = posix ; then
24464 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24465 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24466 { (exit 1); exit 1; }; }
24471 case $ol_with_threads in auto | yes | mach)
24475 for ac_header in mach/cthreads.h cthreads.h
24477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24479 echo "$as_me:$LINENO: checking for $ac_header" >&5
24480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24482 echo $ECHO_N "(cached) $ECHO_C" >&6
24484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24487 # Is the header compilable?
24488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24490 cat >conftest.$ac_ext <<_ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24496 $ac_includes_default
24497 #include <$ac_header>
24499 rm -f conftest.$ac_objext
24500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24501 (eval $ac_compile) 2>conftest.er1
24503 grep -v '^ *+' conftest.er1 >conftest.err
24505 cat conftest.err >&5
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); } &&
24508 { ac_try='test -z "$ac_c_werror_flag"
24509 || test ! -s conftest.err'
24510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24511 (eval $ac_try) 2>&5
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); }; } &&
24515 { ac_try='test -s conftest.$ac_objext'
24516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24517 (eval $ac_try) 2>&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); }; }; then
24521 ac_header_compiler=yes
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_header_compiler=no
24528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24530 echo "${ECHO_T}$ac_header_compiler" >&6
24532 # Is the header present?
24533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24535 cat >conftest.$ac_ext <<_ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 #include <$ac_header>
24543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24546 grep -v '^ *+' conftest.er1 >conftest.err
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } >/dev/null; then
24551 if test -s conftest.err; then
24552 ac_cpp_err=$ac_c_preproc_warn_flag
24553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24560 if test -z "$ac_cpp_err"; then
24561 ac_header_preproc=yes
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 ac_header_preproc=no
24568 rm -f conftest.err conftest.$ac_ext
24569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24570 echo "${ECHO_T}$ac_header_preproc" >&6
24572 # So? What about this header?
24573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24579 ac_header_preproc=yes
24582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24596 ## --------------------------------------------- ##
24597 ## Report this to <http://www.openldap.org/its/> ##
24598 ## --------------------------------------------- ##
24601 sed "s/^/$as_me: WARNING: /" >&2
24604 echo "$as_me:$LINENO: checking for $ac_header" >&5
24605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 eval "$as_ac_Header=\$ac_header_preproc"
24611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24616 cat >>confdefs.h <<_ACEOF
24617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24624 if test $ac_cv_header_mach_cthreads_h = yes ; then
24625 ol_with_threads=found
24627 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24628 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24629 if test "${ac_cv_func_cthread_fork+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 cat >conftest.$ac_ext <<_ACEOF
24635 cat confdefs.h >>conftest.$ac_ext
24636 cat >>conftest.$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24640 #define cthread_fork innocuous_cthread_fork
24642 /* System header to define __stub macros and hopefully few prototypes,
24643 which can conflict with char cthread_fork (); below.
24644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24645 <limits.h> exists even on freestanding compilers. */
24648 # include <limits.h>
24650 # include <assert.h>
24653 #undef cthread_fork
24655 /* Override any gcc2 internal prototype to avoid an error. */
24660 /* We use char because int might match the return type of a gcc2
24661 builtin and then its argument prototype would still apply. */
24662 char cthread_fork ();
24663 /* The GNU C library defines this for functions which it implements
24664 to always fail with ENOSYS. Some functions are actually named
24665 something starting with __ and the normal name is an alias. */
24666 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24669 char (*f) () = cthread_fork;
24678 return f != cthread_fork;
24683 rm -f conftest.$ac_objext conftest$ac_exeext
24684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24685 (eval $ac_link) 2>conftest.er1
24687 grep -v '^ *+' conftest.er1 >conftest.err
24689 cat conftest.err >&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } &&
24692 { ac_try='test -z "$ac_c_werror_flag"
24693 || test ! -s conftest.err'
24694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; } &&
24699 { ac_try='test -s conftest$ac_exeext'
24700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701 (eval $ac_try) 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ac_cv_func_cthread_fork=yes
24707 echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24710 ac_cv_func_cthread_fork=no
24712 rm -f conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
24715 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24716 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24717 if test $ac_cv_func_cthread_fork = yes; then
24718 ol_link_threads=yes
24722 if test $ol_link_threads = no ; then
24723 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24724 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24725 if test "${ol_cv_cthread_all_load+set}" = set; then
24726 echo $ECHO_N "(cached) $ECHO_C" >&6
24730 LIBS="-all_load $LIBS"
24731 cat >conftest.$ac_ext <<_ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h. */
24737 #include <mach/cthreads.h>
24742 cthread_fork((void *)0, (void *)0);
24748 rm -f conftest.$ac_objext conftest$ac_exeext
24749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24750 (eval $ac_link) 2>conftest.er1
24752 grep -v '^ *+' conftest.er1 >conftest.err
24754 cat conftest.err >&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } &&
24757 { ac_try='test -z "$ac_c_werror_flag"
24758 || test ! -s conftest.err'
24759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24760 (eval $ac_try) 2>&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); }; } &&
24764 { ac_try='test -s conftest$ac_exeext'
24765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766 (eval $ac_try) 2>&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; }; then
24770 ol_cv_cthread_all_load=yes
24772 echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24775 ol_cv_cthread_all_load=no
24777 rm -f conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
24782 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24783 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24785 if test $ol_cv_cthread_all_load = yes ; then
24786 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24787 ol_link_threads=mach
24788 ol_with_threads=found
24792 elif test $ac_cv_header_cthreads_h = yes ; then
24794 ol_with_threads=found
24797 LIBS="$LIBS -lthreads"
24798 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24799 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24800 if test "${ac_cv_func_cthread_fork+set}" = set; then
24801 echo $ECHO_N "(cached) $ECHO_C" >&6
24803 cat >conftest.$ac_ext <<_ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24809 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24811 #define cthread_fork innocuous_cthread_fork
24813 /* System header to define __stub macros and hopefully few prototypes,
24814 which can conflict with char cthread_fork (); below.
24815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24816 <limits.h> exists even on freestanding compilers. */
24819 # include <limits.h>
24821 # include <assert.h>
24824 #undef cthread_fork
24826 /* Override any gcc2 internal prototype to avoid an error. */
24831 /* We use char because int might match the return type of a gcc2
24832 builtin and then its argument prototype would still apply. */
24833 char cthread_fork ();
24834 /* The GNU C library defines this for functions which it implements
24835 to always fail with ENOSYS. Some functions are actually named
24836 something starting with __ and the normal name is an alias. */
24837 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24840 char (*f) () = cthread_fork;
24849 return f != cthread_fork;
24854 rm -f conftest.$ac_objext conftest$ac_exeext
24855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24856 (eval $ac_link) 2>conftest.er1
24858 grep -v '^ *+' conftest.er1 >conftest.err
24860 cat conftest.err >&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } &&
24863 { ac_try='test -z "$ac_c_werror_flag"
24864 || test ! -s conftest.err'
24865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866 (eval $ac_try) 2>&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); }; } &&
24870 { ac_try='test -s conftest$ac_exeext'
24871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24872 (eval $ac_try) 2>&5
24874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); }; }; then
24876 ac_cv_func_cthread_fork=yes
24878 echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24881 ac_cv_func_cthread_fork=no
24883 rm -f conftest.err conftest.$ac_objext \
24884 conftest$ac_exeext conftest.$ac_ext
24886 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24887 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24888 if test $ac_cv_func_cthread_fork = yes; then
24889 ol_link_threads=yes
24894 if test $ol_link_threads = yes ; then
24895 LTHREAD_LIBS="-lthreads"
24896 ol_link_threads=mach
24897 ol_with_threads=found
24899 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24900 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24901 { (exit 1); exit 1; }; }
24904 elif test $ol_with_threads = mach ; then
24905 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24906 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24907 { (exit 1); exit 1; }; }
24910 if test $ol_link_threads = mach ; then
24912 cat >>confdefs.h <<\_ACEOF
24913 #define HAVE_MACH_CTHREADS 1
24916 elif test $ol_with_threads = found ; then
24917 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24918 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24919 { (exit 1); exit 1; }; }
24924 case $ol_with_threads in auto | yes | pth)
24927 for ac_header in pth.h
24929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24931 echo "$as_me:$LINENO: checking for $ac_header" >&5
24932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24939 # Is the header compilable?
24940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24948 $ac_includes_default
24949 #include <$ac_header>
24951 rm -f conftest.$ac_objext
24952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24953 (eval $ac_compile) 2>conftest.er1
24955 grep -v '^ *+' conftest.er1 >conftest.err
24957 cat conftest.err >&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } &&
24960 { ac_try='test -z "$ac_c_werror_flag"
24961 || test ! -s conftest.err'
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; } &&
24967 { ac_try='test -s conftest.$ac_objext'
24968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969 (eval $ac_try) 2>&5
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 ac_header_compiler=yes
24975 echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24978 ac_header_compiler=no
24980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24982 echo "${ECHO_T}$ac_header_compiler" >&6
24984 # Is the header present?
24985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24987 cat >conftest.$ac_ext <<_ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 #include <$ac_header>
24995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24998 grep -v '^ *+' conftest.er1 >conftest.err
25000 cat conftest.err >&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } >/dev/null; then
25003 if test -s conftest.err; then
25004 ac_cpp_err=$ac_c_preproc_warn_flag
25005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25012 if test -z "$ac_cpp_err"; then
25013 ac_header_preproc=yes
25015 echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25018 ac_header_preproc=no
25020 rm -f conftest.err conftest.$ac_ext
25021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25022 echo "${ECHO_T}$ac_header_preproc" >&6
25024 # So? What about this header?
25025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25031 ac_header_preproc=yes
25034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25048 ## --------------------------------------------- ##
25049 ## Report this to <http://www.openldap.org/its/> ##
25050 ## --------------------------------------------- ##
25053 sed "s/^/$as_me: WARNING: /" >&2
25056 echo "$as_me:$LINENO: checking for $ac_header" >&5
25057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25059 echo $ECHO_N "(cached) $ECHO_C" >&6
25061 eval "$as_ac_Header=\$ac_header_preproc"
25063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25068 cat >>confdefs.h <<_ACEOF
25069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25077 if test $ac_cv_header_pth_h = yes ; then
25078 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25079 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25080 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25081 echo $ECHO_N "(cached) $ECHO_C" >&6
25083 ac_check_lib_save_LIBS=$LIBS
25085 cat >conftest.$ac_ext <<_ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h. */
25092 /* Override any gcc2 internal prototype to avoid an error. */
25096 /* We use char because int might match the return type of a gcc2
25097 builtin and then its argument prototype would still apply. */
25098 char pth_version ();
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25109 (eval $ac_link) 2>conftest.er1
25111 grep -v '^ *+' conftest.er1 >conftest.err
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } &&
25116 { ac_try='test -z "$ac_c_werror_flag"
25117 || test ! -s conftest.err'
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; } &&
25123 { ac_try='test -s conftest$ac_exeext'
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; }; then
25129 ac_cv_lib_pth_pth_version=yes
25131 echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25134 ac_cv_lib_pth_pth_version=no
25136 rm -f conftest.err conftest.$ac_objext \
25137 conftest$ac_exeext conftest.$ac_ext
25138 LIBS=$ac_check_lib_save_LIBS
25140 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25141 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25142 if test $ac_cv_lib_pth_pth_version = yes; then
25149 if test $have_pth = yes ; then
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_GNU_PTH 1
25155 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25156 ol_link_threads=pth
25157 ol_with_threads=found
25159 if test $ol_with_yielding_select = auto ; then
25160 ol_with_yielding_select=yes
25167 case $ol_with_threads in auto | yes | lwp)
25171 for ac_header in thread.h synch.h
25173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25175 echo "$as_me:$LINENO: checking for $ac_header" >&5
25176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25178 echo $ECHO_N "(cached) $ECHO_C" >&6
25180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25183 # Is the header compilable?
25184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 $ac_includes_default
25193 #include <$ac_header>
25195 rm -f conftest.$ac_objext
25196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25197 (eval $ac_compile) 2>conftest.er1
25199 grep -v '^ *+' conftest.er1 >conftest.err
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } &&
25204 { ac_try='test -z "$ac_c_werror_flag"
25205 || test ! -s conftest.err'
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; } &&
25211 { ac_try='test -s conftest.$ac_objext'
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; }; then
25217 ac_header_compiler=yes
25219 echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25222 ac_header_compiler=no
25224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25226 echo "${ECHO_T}$ac_header_compiler" >&6
25228 # Is the header present?
25229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25231 cat >conftest.$ac_ext <<_ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h. */
25237 #include <$ac_header>
25239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } >/dev/null; then
25247 if test -s conftest.err; then
25248 ac_cpp_err=$ac_c_preproc_warn_flag
25249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25256 if test -z "$ac_cpp_err"; then
25257 ac_header_preproc=yes
25259 echo "$as_me: failed program was:" >&5
25260 sed 's/^/| /' conftest.$ac_ext >&5
25262 ac_header_preproc=no
25264 rm -f conftest.err conftest.$ac_ext
25265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25266 echo "${ECHO_T}$ac_header_preproc" >&6
25268 # So? What about this header?
25269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25275 ac_header_preproc=yes
25278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25292 ## --------------------------------------------- ##
25293 ## Report this to <http://www.openldap.org/its/> ##
25294 ## --------------------------------------------- ##
25297 sed "s/^/$as_me: WARNING: /" >&2
25300 echo "$as_me:$LINENO: checking for $ac_header" >&5
25301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 eval "$as_ac_Header=\$ac_header_preproc"
25307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25312 cat >>confdefs.h <<_ACEOF
25313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25320 if test $ac_cv_header_thread_h = yes &&
25321 test $ac_cv_header_synch_h = yes ; then
25322 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25323 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25324 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
25327 ac_check_lib_save_LIBS=$LIBS
25328 LIBS="-lthread $LIBS"
25329 cat >conftest.$ac_ext <<_ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25336 /* Override any gcc2 internal prototype to avoid an error. */
25340 /* We use char because int might match the return type of a gcc2
25341 builtin and then its argument prototype would still apply. */
25342 char thr_create ();
25351 rm -f conftest.$ac_objext conftest$ac_exeext
25352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25353 (eval $ac_link) 2>conftest.er1
25355 grep -v '^ *+' conftest.er1 >conftest.err
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } &&
25360 { ac_try='test -z "$ac_c_werror_flag"
25361 || test ! -s conftest.err'
25362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363 (eval $ac_try) 2>&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); }; } &&
25367 { ac_try='test -s conftest$ac_exeext'
25368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369 (eval $ac_try) 2>&5
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); }; }; then
25373 ac_cv_lib_thread_thr_create=yes
25375 echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25378 ac_cv_lib_thread_thr_create=no
25380 rm -f conftest.err conftest.$ac_objext \
25381 conftest$ac_exeext conftest.$ac_ext
25382 LIBS=$ac_check_lib_save_LIBS
25384 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25385 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25386 if test $ac_cv_lib_thread_thr_create = yes; then
25393 if test $have_thr = yes ; then
25395 cat >>confdefs.h <<\_ACEOF
25399 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25400 ol_link_threads=thr
25402 if test $ol_with_yielding_select = auto ; then
25403 ol_with_yielding_select=yes
25409 thr_setconcurrency \
25410 thr_getconcurrency \
25413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25414 echo "$as_me:$LINENO: checking for $ac_func" >&5
25415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25416 if eval "test \"\${$as_ac_var+set}\" = set"; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25419 cat >conftest.$ac_ext <<_ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25427 #define $ac_func innocuous_$ac_func
25429 /* System header to define __stub macros and hopefully few prototypes,
25430 which can conflict with char $ac_func (); below.
25431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25432 <limits.h> exists even on freestanding compilers. */
25435 # include <limits.h>
25437 # include <assert.h>
25442 /* Override any gcc2 internal prototype to avoid an error. */
25447 /* We use char because int might match the return type of a gcc2
25448 builtin and then its argument prototype would still apply. */
25450 /* The GNU C library defines this for functions which it implements
25451 to always fail with ENOSYS. Some functions are actually named
25452 something starting with __ and the normal name is an alias. */
25453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25456 char (*f) () = $ac_func;
25465 return f != $ac_func;
25470 rm -f conftest.$ac_objext conftest$ac_exeext
25471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25472 (eval $ac_link) 2>conftest.er1
25474 grep -v '^ *+' conftest.er1 >conftest.err
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } &&
25479 { ac_try='test -z "$ac_c_werror_flag"
25480 || test ! -s conftest.err'
25481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25482 (eval $ac_try) 2>&5
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); }; } &&
25486 { ac_try='test -s conftest$ac_exeext'
25487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25488 (eval $ac_try) 2>&5
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); }; }; then
25492 eval "$as_ac_var=yes"
25494 echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25497 eval "$as_ac_var=no"
25499 rm -f conftest.err conftest.$ac_objext \
25500 conftest$ac_exeext conftest.$ac_ext
25502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25504 if test `eval echo '${'$as_ac_var'}'` = yes; then
25505 cat >>confdefs.h <<_ACEOF
25506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25516 for ac_header in lwp/lwp.h
25518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25520 echo "$as_me:$LINENO: checking for $ac_header" >&5
25521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25523 echo $ECHO_N "(cached) $ECHO_C" >&6
25525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25528 # Is the header compilable?
25529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25531 cat >conftest.$ac_ext <<_ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h. */
25537 $ac_includes_default
25538 #include <$ac_header>
25540 rm -f conftest.$ac_objext
25541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25542 (eval $ac_compile) 2>conftest.er1
25544 grep -v '^ *+' conftest.er1 >conftest.err
25546 cat conftest.err >&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); } &&
25549 { ac_try='test -z "$ac_c_werror_flag"
25550 || test ! -s conftest.err'
25551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; } &&
25556 { ac_try='test -s conftest.$ac_objext'
25557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558 (eval $ac_try) 2>&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); }; }; then
25562 ac_header_compiler=yes
25564 echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25567 ac_header_compiler=no
25569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25571 echo "${ECHO_T}$ac_header_compiler" >&6
25573 # Is the header present?
25574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25576 cat >conftest.$ac_ext <<_ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h. */
25582 #include <$ac_header>
25584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25587 grep -v '^ *+' conftest.er1 >conftest.err
25589 cat conftest.err >&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } >/dev/null; then
25592 if test -s conftest.err; then
25593 ac_cpp_err=$ac_c_preproc_warn_flag
25594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25601 if test -z "$ac_cpp_err"; then
25602 ac_header_preproc=yes
25604 echo "$as_me: failed program was:" >&5
25605 sed 's/^/| /' conftest.$ac_ext >&5
25607 ac_header_preproc=no
25609 rm -f conftest.err conftest.$ac_ext
25610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25611 echo "${ECHO_T}$ac_header_preproc" >&6
25613 # So? What about this header?
25614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25620 ac_header_preproc=yes
25623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25637 ## --------------------------------------------- ##
25638 ## Report this to <http://www.openldap.org/its/> ##
25639 ## --------------------------------------------- ##
25642 sed "s/^/$as_me: WARNING: /" >&2
25645 echo "$as_me:$LINENO: checking for $ac_header" >&5
25646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25648 echo $ECHO_N "(cached) $ECHO_C" >&6
25650 eval "$as_ac_Header=\$ac_header_preproc"
25652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25657 cat >>confdefs.h <<_ACEOF
25658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25665 if test $ac_cv_header_lwp_lwp_h = yes ; then
25666 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25667 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25668 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25671 ac_check_lib_save_LIBS=$LIBS
25673 cat >conftest.$ac_ext <<_ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25680 /* Override any gcc2 internal prototype to avoid an error. */
25684 /* We use char because int might match the return type of a gcc2
25685 builtin and then its argument prototype would still apply. */
25686 char lwp_create ();
25695 rm -f conftest.$ac_objext conftest$ac_exeext
25696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25697 (eval $ac_link) 2>conftest.er1
25699 grep -v '^ *+' conftest.er1 >conftest.err
25701 cat conftest.err >&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } &&
25704 { ac_try='test -z "$ac_c_werror_flag"
25705 || test ! -s conftest.err'
25706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707 (eval $ac_try) 2>&5
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); }; } &&
25711 { ac_try='test -s conftest$ac_exeext'
25712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25713 (eval $ac_try) 2>&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); }; }; then
25717 ac_cv_lib_lwp_lwp_create=yes
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25722 ac_cv_lib_lwp_lwp_create=no
25724 rm -f conftest.err conftest.$ac_objext \
25725 conftest$ac_exeext conftest.$ac_ext
25726 LIBS=$ac_check_lib_save_LIBS
25728 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25729 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25730 if test $ac_cv_lib_lwp_lwp_create = yes; then
25737 if test $have_lwp = yes ; then
25739 cat >>confdefs.h <<\_ACEOF
25743 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25744 ol_link_threads=lwp
25746 if test $ol_with_yielding_select = auto ; then
25747 ol_with_yielding_select=no
25754 if test $ol_with_yielding_select = yes ; then
25756 cat >>confdefs.h <<\_ACEOF
25757 #define HAVE_YIELDING_SELECT 1
25762 if test $ol_with_threads = manual ; then
25763 ol_link_threads=yes
25765 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25766 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25770 for ac_header in pthread.h sched.h
25772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25774 echo "$as_me:$LINENO: checking for $ac_header" >&5
25775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25782 # Is the header compilable?
25783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25785 cat >conftest.$ac_ext <<_ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h. */
25791 $ac_includes_default
25792 #include <$ac_header>
25794 rm -f conftest.$ac_objext
25795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25796 (eval $ac_compile) 2>conftest.er1
25798 grep -v '^ *+' conftest.er1 >conftest.err
25800 cat conftest.err >&5
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } &&
25803 { ac_try='test -z "$ac_c_werror_flag"
25804 || test ! -s conftest.err'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; } &&
25810 { ac_try='test -s conftest.$ac_objext'
25811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25812 (eval $ac_try) 2>&5
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); }; }; then
25816 ac_header_compiler=yes
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25821 ac_header_compiler=no
25823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25825 echo "${ECHO_T}$ac_header_compiler" >&6
25827 # Is the header present?
25828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25830 cat >conftest.$ac_ext <<_ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 #include <$ac_header>
25838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25841 grep -v '^ *+' conftest.er1 >conftest.err
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } >/dev/null; then
25846 if test -s conftest.err; then
25847 ac_cpp_err=$ac_c_preproc_warn_flag
25848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25855 if test -z "$ac_cpp_err"; then
25856 ac_header_preproc=yes
25858 echo "$as_me: failed program was:" >&5
25859 sed 's/^/| /' conftest.$ac_ext >&5
25861 ac_header_preproc=no
25863 rm -f conftest.err conftest.$ac_ext
25864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25865 echo "${ECHO_T}$ac_header_preproc" >&6
25867 # So? What about this header?
25868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25874 ac_header_preproc=yes
25877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25891 ## --------------------------------------------- ##
25892 ## Report this to <http://www.openldap.org/its/> ##
25893 ## --------------------------------------------- ##
25896 sed "s/^/$as_me: WARNING: /" >&2
25899 echo "$as_me:$LINENO: checking for $ac_header" >&5
25900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25902 echo $ECHO_N "(cached) $ECHO_C" >&6
25904 eval "$as_ac_Header=\$ac_header_preproc"
25906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25911 cat >>confdefs.h <<_ACEOF
25912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25921 for ac_func in sched_yield pthread_yield
25923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25924 echo "$as_me:$LINENO: checking for $ac_func" >&5
25925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25926 if eval "test \"\${$as_ac_var+set}\" = set"; then
25927 echo $ECHO_N "(cached) $ECHO_C" >&6
25929 cat >conftest.$ac_ext <<_ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25937 #define $ac_func innocuous_$ac_func
25939 /* System header to define __stub macros and hopefully few prototypes,
25940 which can conflict with char $ac_func (); below.
25941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25942 <limits.h> exists even on freestanding compilers. */
25945 # include <limits.h>
25947 # include <assert.h>
25952 /* Override any gcc2 internal prototype to avoid an error. */
25957 /* We use char because int might match the return type of a gcc2
25958 builtin and then its argument prototype would still apply. */
25960 /* The GNU C library defines this for functions which it implements
25961 to always fail with ENOSYS. Some functions are actually named
25962 something starting with __ and the normal name is an alias. */
25963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25966 char (*f) () = $ac_func;
25975 return f != $ac_func;
25980 rm -f conftest.$ac_objext conftest$ac_exeext
25981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25982 (eval $ac_link) 2>conftest.er1
25984 grep -v '^ *+' conftest.er1 >conftest.err
25986 cat conftest.err >&5
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } &&
25989 { ac_try='test -z "$ac_c_werror_flag"
25990 || test ! -s conftest.err'
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; } &&
25996 { ac_try='test -s conftest$ac_exeext'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 eval "$as_ac_var=yes"
26004 echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26007 eval "$as_ac_var=no"
26009 rm -f conftest.err conftest.$ac_objext \
26010 conftest$ac_exeext conftest.$ac_ext
26012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26014 if test `eval echo '${'$as_ac_var'}'` = yes; then
26015 cat >>confdefs.h <<_ACEOF
26016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26023 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26024 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26025 if test "${ol_cv_header_linux_threads+set}" = set; then
26026 echo $ECHO_N "(cached) $ECHO_C" >&6
26028 cat >conftest.$ac_ext <<_ACEOF
26031 cat confdefs.h >>conftest.$ac_ext
26032 cat >>conftest.$ac_ext <<_ACEOF
26033 /* end confdefs.h. */
26034 #include <pthread.h>
26036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26037 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26038 ol_cv_header_linux_threads=yes
26040 ol_cv_header_linux_threads=no
26046 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26047 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26048 if test $ol_cv_header_linux_threads = yes; then
26050 cat >>confdefs.h <<\_ACEOF
26051 #define HAVE_LINUX_THREADS 1
26058 for ac_header in mach/cthreads.h
26060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26062 echo "$as_me:$LINENO: checking for $ac_header" >&5
26063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26065 echo $ECHO_N "(cached) $ECHO_C" >&6
26067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26070 # Is the header compilable?
26071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26073 cat >conftest.$ac_ext <<_ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h. */
26079 $ac_includes_default
26080 #include <$ac_header>
26082 rm -f conftest.$ac_objext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084 (eval $ac_compile) 2>conftest.er1
26086 grep -v '^ *+' conftest.er1 >conftest.err
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 ac_header_compiler=yes
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26109 ac_header_compiler=no
26111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26113 echo "${ECHO_T}$ac_header_compiler" >&6
26115 # Is the header present?
26116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26118 cat >conftest.$ac_ext <<_ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 #include <$ac_header>
26126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26129 grep -v '^ *+' conftest.er1 >conftest.err
26131 cat conftest.err >&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); } >/dev/null; then
26134 if test -s conftest.err; then
26135 ac_cpp_err=$ac_c_preproc_warn_flag
26136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26143 if test -z "$ac_cpp_err"; then
26144 ac_header_preproc=yes
26146 echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26149 ac_header_preproc=no
26151 rm -f conftest.err conftest.$ac_ext
26152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26153 echo "${ECHO_T}$ac_header_preproc" >&6
26155 # So? What about this header?
26156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26162 ac_header_preproc=yes
26165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26179 ## --------------------------------------------- ##
26180 ## Report this to <http://www.openldap.org/its/> ##
26181 ## --------------------------------------------- ##
26184 sed "s/^/$as_me: WARNING: /" >&2
26187 echo "$as_me:$LINENO: checking for $ac_header" >&5
26188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26192 eval "$as_ac_Header=\$ac_header_preproc"
26194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26199 cat >>confdefs.h <<_ACEOF
26200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26208 for ac_header in lwp/lwp.h
26210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26212 echo "$as_me:$LINENO: checking for $ac_header" >&5
26213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26220 # Is the header compilable?
26221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26223 cat >conftest.$ac_ext <<_ACEOF
26226 cat confdefs.h >>conftest.$ac_ext
26227 cat >>conftest.$ac_ext <<_ACEOF
26228 /* end confdefs.h. */
26229 $ac_includes_default
26230 #include <$ac_header>
26232 rm -f conftest.$ac_objext
26233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26234 (eval $ac_compile) 2>conftest.er1
26236 grep -v '^ *+' conftest.er1 >conftest.err
26238 cat conftest.err >&5
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); } &&
26241 { ac_try='test -z "$ac_c_werror_flag"
26242 || test ! -s conftest.err'
26243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26244 (eval $ac_try) 2>&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); }; } &&
26248 { ac_try='test -s conftest.$ac_objext'
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; }; then
26254 ac_header_compiler=yes
26256 echo "$as_me: failed program was:" >&5
26257 sed 's/^/| /' conftest.$ac_ext >&5
26259 ac_header_compiler=no
26261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26263 echo "${ECHO_T}$ac_header_compiler" >&6
26265 # Is the header present?
26266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26268 cat >conftest.$ac_ext <<_ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h. */
26274 #include <$ac_header>
26276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26279 grep -v '^ *+' conftest.er1 >conftest.err
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } >/dev/null; then
26284 if test -s conftest.err; then
26285 ac_cpp_err=$ac_c_preproc_warn_flag
26286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26293 if test -z "$ac_cpp_err"; then
26294 ac_header_preproc=yes
26296 echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26299 ac_header_preproc=no
26301 rm -f conftest.err conftest.$ac_ext
26302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26303 echo "${ECHO_T}$ac_header_preproc" >&6
26305 # So? What about this header?
26306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26312 ac_header_preproc=yes
26315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26329 ## --------------------------------------------- ##
26330 ## Report this to <http://www.openldap.org/its/> ##
26331 ## --------------------------------------------- ##
26334 sed "s/^/$as_me: WARNING: /" >&2
26337 echo "$as_me:$LINENO: checking for $ac_header" >&5
26338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26340 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 eval "$as_ac_Header=\$ac_header_preproc"
26344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26349 cat >>confdefs.h <<_ACEOF
26350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26359 for ac_header in thread.h synch.h
26361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26363 echo "$as_me:$LINENO: checking for $ac_header" >&5
26364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26366 echo $ECHO_N "(cached) $ECHO_C" >&6
26368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26371 # Is the header compilable?
26372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26374 cat >conftest.$ac_ext <<_ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26380 $ac_includes_default
26381 #include <$ac_header>
26383 rm -f conftest.$ac_objext
26384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26385 (eval $ac_compile) 2>conftest.er1
26387 grep -v '^ *+' conftest.er1 >conftest.err
26389 cat conftest.err >&5
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); } &&
26392 { ac_try='test -z "$ac_c_werror_flag"
26393 || test ! -s conftest.err'
26394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395 (eval $ac_try) 2>&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); }; } &&
26399 { ac_try='test -s conftest.$ac_objext'
26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 (eval $ac_try) 2>&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; }; then
26405 ac_header_compiler=yes
26407 echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26410 ac_header_compiler=no
26412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26414 echo "${ECHO_T}$ac_header_compiler" >&6
26416 # Is the header present?
26417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 #include <$ac_header>
26427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26430 grep -v '^ *+' conftest.er1 >conftest.err
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } >/dev/null; then
26435 if test -s conftest.err; then
26436 ac_cpp_err=$ac_c_preproc_warn_flag
26437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26444 if test -z "$ac_cpp_err"; then
26445 ac_header_preproc=yes
26447 echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26450 ac_header_preproc=no
26452 rm -f conftest.err conftest.$ac_ext
26453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26454 echo "${ECHO_T}$ac_header_preproc" >&6
26456 # So? What about this header?
26457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26463 ac_header_preproc=yes
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26480 ## --------------------------------------------- ##
26481 ## Report this to <http://www.openldap.org/its/> ##
26482 ## --------------------------------------------- ##
26485 sed "s/^/$as_me: WARNING: /" >&2
26488 echo "$as_me:$LINENO: checking for $ac_header" >&5
26489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26491 echo $ECHO_N "(cached) $ECHO_C" >&6
26493 eval "$as_ac_Header=\$ac_header_preproc"
26495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26500 cat >>confdefs.h <<_ACEOF
26501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26510 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26511 cat >>confdefs.h <<\_ACEOF
26512 #define REENTRANT 1
26515 cat >>confdefs.h <<\_ACEOF
26516 #define _REENTRANT 1
26519 cat >>confdefs.h <<\_ACEOF
26520 #define THREAD_SAFE 1
26523 cat >>confdefs.h <<\_ACEOF
26524 #define _THREAD_SAFE 1
26527 cat >>confdefs.h <<\_ACEOF
26528 #define THREADSAFE 1
26531 cat >>confdefs.h <<\_ACEOF
26532 #define _THREADSAFE 1
26535 cat >>confdefs.h <<\_ACEOF
26536 #define _SGI_MP_SOURCE 1
26540 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26541 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26542 if test "${ol_cv_errno_thread_specific+set}" = set; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26546 cat >conftest.$ac_ext <<_ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26561 rm -f conftest.$ac_objext conftest$ac_exeext
26562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26563 (eval $ac_link) 2>conftest.er1
26565 grep -v '^ *+' conftest.er1 >conftest.err
26567 cat conftest.err >&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); } &&
26570 { ac_try='test -z "$ac_c_werror_flag"
26571 || test ! -s conftest.err'
26572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573 (eval $ac_try) 2>&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); }; } &&
26577 { ac_try='test -s conftest$ac_exeext'
26578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26579 (eval $ac_try) 2>&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); }; }; then
26583 ol_cv_errno_thread_specific=yes
26585 echo "$as_me: failed program was:" >&5
26586 sed 's/^/| /' conftest.$ac_ext >&5
26588 ol_cv_errno_thread_specific=no
26590 rm -f conftest.err conftest.$ac_objext \
26591 conftest$ac_exeext conftest.$ac_ext
26594 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26595 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26597 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26598 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26599 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26603 cat >conftest.$ac_ext <<_ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h. */
26618 rm -f conftest.$ac_objext conftest$ac_exeext
26619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26620 (eval $ac_link) 2>conftest.er1
26622 grep -v '^ *+' conftest.er1 >conftest.err
26624 cat conftest.err >&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } &&
26627 { ac_try='test -z "$ac_c_werror_flag"
26628 || test ! -s conftest.err'
26629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630 (eval $ac_try) 2>&5
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); }; } &&
26634 { ac_try='test -s conftest$ac_exeext'
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; }; then
26640 ol_cv_h_errno_thread_specific=yes
26642 echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26645 ol_cv_h_errno_thread_specific=no
26647 rm -f conftest.err conftest.$ac_objext \
26648 conftest$ac_exeext conftest.$ac_ext
26651 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26652 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26654 if test $ol_cv_errno_thread_specific != yes ||
26655 test $ol_cv_h_errno_thread_specific != yes ; then
26656 LIBS="$LTHREAD_LIBS $LIBS"
26662 if test $ol_link_threads = no ; then
26663 if test $ol_with_threads = yes ; then
26664 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26665 echo "$as_me: error: no suitable thread support" >&2;}
26666 { (exit 1); exit 1; }; }
26669 if test $ol_with_threads = auto ; then
26670 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26671 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26676 cat >>confdefs.h <<\_ACEOF
26677 #define NO_THREADS 1
26686 if test $ol_link_threads != no ; then
26688 cat >>confdefs.h <<\_ACEOF
26689 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26699 gethostbyname_r gethostbyaddr_r \
26702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26703 echo "$as_me:$LINENO: checking for $ac_func" >&5
26704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26705 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26716 #define $ac_func innocuous_$ac_func
26718 /* System header to define __stub macros and hopefully few prototypes,
26719 which can conflict with char $ac_func (); below.
26720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26721 <limits.h> exists even on freestanding compilers. */
26724 # include <limits.h>
26726 # include <assert.h>
26731 /* Override any gcc2 internal prototype to avoid an error. */
26736 /* We use char because int might match the return type of a gcc2
26737 builtin and then its argument prototype would still apply. */
26739 /* The GNU C library defines this for functions which it implements
26740 to always fail with ENOSYS. Some functions are actually named
26741 something starting with __ and the normal name is an alias. */
26742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26745 char (*f) () = $ac_func;
26754 return f != $ac_func;
26759 rm -f conftest.$ac_objext conftest$ac_exeext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26761 (eval $ac_link) 2>conftest.er1
26763 grep -v '^ *+' conftest.er1 >conftest.err
26765 cat conftest.err >&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } &&
26768 { ac_try='test -z "$ac_c_werror_flag"
26769 || test ! -s conftest.err'
26770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26771 (eval $ac_try) 2>&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); }; } &&
26775 { ac_try='test -s conftest$ac_exeext'
26776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777 (eval $ac_try) 2>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; }; then
26781 eval "$as_ac_var=yes"
26783 echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26786 eval "$as_ac_var=no"
26788 rm -f conftest.err conftest.$ac_objext \
26789 conftest$ac_exeext conftest.$ac_ext
26791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26793 if test `eval echo '${'$as_ac_var'}'` = yes; then
26794 cat >>confdefs.h <<_ACEOF
26795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26802 if test "$ac_cv_func_ctime_r" = no ; then
26803 ol_cv_func_ctime_r_nargs=0
26805 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26806 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26807 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26808 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26820 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26825 rm -f conftest.$ac_objext
26826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26827 (eval $ac_compile) 2>conftest.er1
26829 grep -v '^ *+' conftest.er1 >conftest.err
26831 cat conftest.err >&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } &&
26834 { ac_try='test -z "$ac_c_werror_flag"
26835 || test ! -s conftest.err'
26836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837 (eval $ac_try) 2>&5
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; } &&
26841 { ac_try='test -s conftest.$ac_objext'
26842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26843 (eval $ac_try) 2>&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; }; then
26847 ol_cv_func_ctime_r_nargs3=yes
26849 echo "$as_me: failed program was:" >&5
26850 sed 's/^/| /' conftest.$ac_ext >&5
26852 ol_cv_func_ctime_r_nargs3=no
26854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26856 cat >conftest.$ac_ext <<_ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h. */
26866 time_t ti; char *buffer; ctime_r(&ti,buffer);
26871 rm -f conftest.$ac_objext
26872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26873 (eval $ac_compile) 2>conftest.er1
26875 grep -v '^ *+' conftest.er1 >conftest.err
26877 cat conftest.err >&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); } &&
26880 { ac_try='test -z "$ac_c_werror_flag"
26881 || test ! -s conftest.err'
26882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883 (eval $ac_try) 2>&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); }; } &&
26887 { ac_try='test -s conftest.$ac_objext'
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; }; then
26893 ol_cv_func_ctime_r_nargs2=yes
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26898 ol_cv_func_ctime_r_nargs2=no
26900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26902 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26903 test $ol_cv_func_ctime_r_nargs2 = no ; then
26905 ol_cv_func_ctime_r_nargs=3
26907 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26908 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26910 ol_cv_func_ctime_r_nargs=2
26913 ol_cv_func_ctime_r_nargs=0
26917 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26918 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26920 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26922 cat >>confdefs.h <<_ACEOF
26923 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26930 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26931 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26932 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26933 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h. */
26942 #include <sys/types.h>
26943 #include <sys/socket.h>
26944 #include <netinet/in.h>
26946 #define BUFSIZE (sizeof(struct hostent)+10)
26950 struct hostent hent; char buffer[BUFSIZE];
26951 int bufsize=BUFSIZE;int h_errno;
26952 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26953 buffer, bufsize, &h_errno);
26958 rm -f conftest.$ac_objext
26959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26960 (eval $ac_compile) 2>conftest.er1
26962 grep -v '^ *+' conftest.er1 >conftest.err
26964 cat conftest.err >&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } &&
26967 { ac_try='test -z "$ac_c_werror_flag"
26968 || test ! -s conftest.err'
26969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970 (eval $ac_try) 2>&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; } &&
26974 { ac_try='test -s conftest.$ac_objext'
26975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976 (eval $ac_try) 2>&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; }; then
26980 ol_cv_func_gethostbyname_r_nargs5=yes
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26985 ol_cv_func_gethostbyname_r_nargs5=no
26987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26989 cat >conftest.$ac_ext <<_ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h. */
26995 #include <sys/types.h>
26996 #include <sys/socket.h>
26997 #include <netinet/in.h>
26999 #define BUFSIZE (sizeof(struct hostent)+10)
27003 struct hostent hent;struct hostent *rhent;
27004 char buffer[BUFSIZE];
27005 int bufsize=BUFSIZE;int h_errno;
27006 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27012 rm -f conftest.$ac_objext
27013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27014 (eval $ac_compile) 2>conftest.er1
27016 grep -v '^ *+' conftest.er1 >conftest.err
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
27021 { ac_try='test -z "$ac_c_werror_flag"
27022 || test ! -s conftest.err'
27023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024 (eval $ac_try) 2>&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); }; } &&
27028 { ac_try='test -s conftest.$ac_objext'
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; }; then
27034 ol_cv_func_gethostbyname_r_nargs6=yes
27036 echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27039 ol_cv_func_gethostbyname_r_nargs6=no
27041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27043 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27044 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27046 ol_cv_func_gethostbyname_r_nargs=5
27048 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27049 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27051 ol_cv_func_gethostbyname_r_nargs=6
27054 ol_cv_func_gethostbyname_r_nargs=0
27058 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27059 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27060 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27062 cat >>confdefs.h <<_ACEOF
27063 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27069 ol_cv_func_gethostbyname_r_nargs=0
27072 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27073 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27074 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27075 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27076 echo $ECHO_N "(cached) $ECHO_C" >&6
27078 cat >conftest.$ac_ext <<_ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h. */
27084 #include <sys/types.h>
27085 #include <sys/socket.h>
27086 #include <netinet/in.h>
27088 #define BUFSIZE (sizeof(struct hostent)+10)
27092 struct hostent hent; char buffer[BUFSIZE];
27093 struct in_addr add;
27094 size_t alen=sizeof(struct in_addr);
27095 int bufsize=BUFSIZE;int h_errno;
27096 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27097 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27102 rm -f conftest.$ac_objext
27103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27104 (eval $ac_compile) 2>conftest.er1
27106 grep -v '^ *+' conftest.er1 >conftest.err
27108 cat conftest.err >&5
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); } &&
27111 { ac_try='test -z "$ac_c_werror_flag"
27112 || test ! -s conftest.err'
27113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114 (eval $ac_try) 2>&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); }; } &&
27118 { ac_try='test -s conftest.$ac_objext'
27119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120 (eval $ac_try) 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ol_cv_func_gethostbyaddr_r_nargs7=yes
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27129 ol_cv_func_gethostbyaddr_r_nargs7=no
27131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27133 cat >conftest.$ac_ext <<_ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h. */
27139 #include <sys/types.h>
27140 #include <sys/socket.h>
27141 #include <netinet/in.h>
27143 #define BUFSIZE (sizeof(struct hostent)+10)
27147 struct hostent hent;
27148 struct hostent *rhent; char buffer[BUFSIZE];
27149 struct in_addr add;
27150 size_t alen=sizeof(struct in_addr);
27151 int bufsize=BUFSIZE;int h_errno;
27152 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27153 alen, AF_INET, &hent, buffer, bufsize,
27159 rm -f conftest.$ac_objext
27160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27161 (eval $ac_compile) 2>conftest.er1
27163 grep -v '^ *+' conftest.er1 >conftest.err
27165 cat conftest.err >&5
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); } &&
27168 { ac_try='test -z "$ac_c_werror_flag"
27169 || test ! -s conftest.err'
27170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27171 (eval $ac_try) 2>&5
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; } &&
27175 { ac_try='test -s conftest.$ac_objext'
27176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177 (eval $ac_try) 2>&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); }; }; then
27181 ol_cv_func_gethostbyaddr_r_nargs8=yes
27183 echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27186 ol_cv_func_gethostbyaddr_r_nargs8=no
27188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27190 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27191 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27193 ol_cv_func_gethostbyaddr_r_nargs=7
27195 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27196 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27198 ol_cv_func_gethostbyaddr_r_nargs=8
27201 ol_cv_func_gethostbyaddr_r_nargs=0
27205 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27206 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27207 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27209 cat >>confdefs.h <<_ACEOF
27210 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27216 ol_cv_func_gethostbyaddr_r_nargs=0
27221 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27222 ol_cv_berkeley_db=no
27224 for ac_header in db.h
27226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27228 echo "$as_me:$LINENO: checking for $ac_header" >&5
27229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27231 echo $ECHO_N "(cached) $ECHO_C" >&6
27233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27236 # Is the header compilable?
27237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27239 cat >conftest.$ac_ext <<_ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27245 $ac_includes_default
27246 #include <$ac_header>
27248 rm -f conftest.$ac_objext
27249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27250 (eval $ac_compile) 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag"
27258 || test ! -s conftest.err'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; } &&
27264 { ac_try='test -s conftest.$ac_objext'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; }; then
27270 ac_header_compiler=yes
27272 echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27275 ac_header_compiler=no
27277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27279 echo "${ECHO_T}$ac_header_compiler" >&6
27281 # Is the header present?
27282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27284 cat >conftest.$ac_ext <<_ACEOF
27287 cat confdefs.h >>conftest.$ac_ext
27288 cat >>conftest.$ac_ext <<_ACEOF
27289 /* end confdefs.h. */
27290 #include <$ac_header>
27292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27295 grep -v '^ *+' conftest.er1 >conftest.err
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } >/dev/null; then
27300 if test -s conftest.err; then
27301 ac_cpp_err=$ac_c_preproc_warn_flag
27302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27309 if test -z "$ac_cpp_err"; then
27310 ac_header_preproc=yes
27312 echo "$as_me: failed program was:" >&5
27313 sed 's/^/| /' conftest.$ac_ext >&5
27315 ac_header_preproc=no
27317 rm -f conftest.err conftest.$ac_ext
27318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27319 echo "${ECHO_T}$ac_header_preproc" >&6
27321 # So? What about this header?
27322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27328 ac_header_preproc=yes
27331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27345 ## --------------------------------------------- ##
27346 ## Report this to <http://www.openldap.org/its/> ##
27347 ## --------------------------------------------- ##
27350 sed "s/^/$as_me: WARNING: /" >&2
27353 echo "$as_me:$LINENO: checking for $ac_header" >&5
27354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27356 echo $ECHO_N "(cached) $ECHO_C" >&6
27358 eval "$as_ac_Header=\$ac_header_preproc"
27360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27365 cat >>confdefs.h <<_ACEOF
27366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27373 if test $ac_cv_header_db_h = yes; then
27376 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27377 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27378 if test "${ol_cv_bdb_major+set}" = set; then
27379 echo $ECHO_N "(cached) $ECHO_C" >&6
27383 if test $ol_cv_bdb_major = 0 ; then
27384 cat >conftest.$ac_ext <<_ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27392 #ifndef DB_VERSION_MAJOR
27393 # define DB_VERSION_MAJOR 1
27395 #if DB_VERSION_MAJOR == 4
27400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27401 $EGREP "__db_version" >/dev/null 2>&1; then
27409 if test $ol_cv_bdb_major = 0 ; then
27410 cat >conftest.$ac_ext <<_ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h. */
27418 #ifndef DB_VERSION_MAJOR
27419 # define DB_VERSION_MAJOR 1
27421 #if DB_VERSION_MAJOR == 3
27426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27427 $EGREP "__db_version" >/dev/null 2>&1; then
27435 if test $ol_cv_bdb_major = 0 ; then
27436 cat >conftest.$ac_ext <<_ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h. */
27444 #ifndef DB_VERSION_MAJOR
27445 # define DB_VERSION_MAJOR 1
27447 #if DB_VERSION_MAJOR == 2
27452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27453 $EGREP "__db_version" >/dev/null 2>&1; then
27461 if test $ol_cv_bdb_major = 0 ; then
27462 cat >conftest.$ac_ext <<_ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h. */
27470 #ifndef DB_VERSION_MAJOR
27471 # define DB_VERSION_MAJOR 1
27473 #if DB_VERSION_MAJOR == 1
27478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27479 $EGREP "__db_version" >/dev/null 2>&1; then
27488 if test $ol_cv_bdb_major = 0 ; then
27489 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27490 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27491 { (exit 1); exit 1; }; }
27495 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27496 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27498 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27499 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27500 if test "${ol_cv_bdb_minor+set}" = set; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27505 if test $ol_cv_bdb_minor = 0 ; then
27506 cat >conftest.$ac_ext <<_ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h. */
27514 #ifndef DB_VERSION_MINOR
27515 # define DB_VERSION_MINOR 0
27517 #if DB_VERSION_MINOR == 9
27522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27523 $EGREP "__db_version" >/dev/null 2>&1; then
27531 if test $ol_cv_bdb_minor = 0 ; then
27532 cat >conftest.$ac_ext <<_ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27540 #ifndef DB_VERSION_MINOR
27541 # define DB_VERSION_MINOR 0
27543 #if DB_VERSION_MINOR == 8
27548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27549 $EGREP "__db_version" >/dev/null 2>&1; then
27557 if test $ol_cv_bdb_minor = 0 ; then
27558 cat >conftest.$ac_ext <<_ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27566 #ifndef DB_VERSION_MINOR
27567 # define DB_VERSION_MINOR 0
27569 #if DB_VERSION_MINOR == 7
27574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27575 $EGREP "__db_version" >/dev/null 2>&1; then
27583 if test $ol_cv_bdb_minor = 0 ; then
27584 cat >conftest.$ac_ext <<_ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27592 #ifndef DB_VERSION_MINOR
27593 # define DB_VERSION_MINOR 0
27595 #if DB_VERSION_MINOR == 6
27600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27601 $EGREP "__db_version" >/dev/null 2>&1; then
27609 if test $ol_cv_bdb_minor = 0 ; then
27610 cat >conftest.$ac_ext <<_ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27618 #ifndef DB_VERSION_MINOR
27619 # define DB_VERSION_MINOR 0
27621 #if DB_VERSION_MINOR == 5
27626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27627 $EGREP "__db_version" >/dev/null 2>&1; then
27635 if test $ol_cv_bdb_minor = 0 ; then
27636 cat >conftest.$ac_ext <<_ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27644 #ifndef DB_VERSION_MINOR
27645 # define DB_VERSION_MINOR 0
27647 #if DB_VERSION_MINOR == 4
27652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27653 $EGREP "__db_version" >/dev/null 2>&1; then
27661 if test $ol_cv_bdb_minor = 0 ; then
27662 cat >conftest.$ac_ext <<_ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h. */
27670 #ifndef DB_VERSION_MINOR
27671 # define DB_VERSION_MINOR 0
27673 #if DB_VERSION_MINOR == 3
27678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27679 $EGREP "__db_version" >/dev/null 2>&1; then
27687 if test $ol_cv_bdb_minor = 0 ; then
27688 cat >conftest.$ac_ext <<_ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h. */
27696 #ifndef DB_VERSION_MINOR
27697 # define DB_VERSION_MINOR 0
27699 #if DB_VERSION_MINOR == 2
27704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27705 $EGREP "__db_version" >/dev/null 2>&1; then
27713 if test $ol_cv_bdb_minor = 0 ; then
27714 cat >conftest.$ac_ext <<_ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h. */
27722 #ifndef DB_VERSION_MINOR
27723 # define DB_VERSION_MINOR 0
27725 #if DB_VERSION_MINOR == 1
27730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27731 $EGREP "__db_version" >/dev/null 2>&1; then
27741 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27742 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27744 if test $ol_cv_bdb_major = 4 ; then
27745 if test $ol_cv_bdb_minor = 6 ; then
27746 if test $ol_cv_lib_db = no ; then
27747 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.6)" >&5
27748 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.6)... $ECHO_C" >&6
27749 if test "${ol_cv_db_db_4_dot_6+set}" = set; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27757 cat >conftest.$ac_ext <<_ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h. */
27764 #ifdef HAVE_DB_185_H
27765 # include <db_185.h>
27770 #ifndef DB_VERSION_MAJOR
27771 # define DB_VERSION_MAJOR 1
27775 #define NULL ((void*)0)
27782 #if DB_VERSION_MAJOR > 1
27785 int major, minor, patch;
27787 version = db_version( &major, &minor, &patch );
27789 if( major != DB_VERSION_MAJOR ||
27790 minor < DB_VERSION_MINOR )
27792 printf("Berkeley DB version mismatch\n"
27793 "\theader: %s\n\tlibrary: %s\n",
27794 DB_VERSION_STRING, version);
27800 #if DB_VERSION_MAJOR > 2
27801 db_env_create( NULL, 0 );
27802 #elif DB_VERSION_MAJOR > 1
27803 db_appexit( NULL );
27805 (void) dbopen( NULL, 0, 0, 0, NULL);
27812 rm -f conftest.$ac_objext conftest$ac_exeext
27813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27814 (eval $ac_link) 2>conftest.er1
27816 grep -v '^ *+' conftest.er1 >conftest.err
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } &&
27821 { ac_try='test -z "$ac_c_werror_flag"
27822 || test ! -s conftest.err'
27823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; } &&
27828 { ac_try='test -s conftest$ac_exeext'
27829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27830 (eval $ac_try) 2>&5
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); }; }; then
27834 ol_cv_db_db_4_dot_6=yes
27836 echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27839 ol_cv_db_db_4_dot_6=no
27841 rm -f conftest.err conftest.$ac_objext \
27842 conftest$ac_exeext conftest.$ac_ext
27847 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_6" >&5
27848 echo "${ECHO_T}$ol_cv_db_db_4_dot_6" >&6
27850 if test $ol_cv_db_db_4_dot_6 = yes ; then
27851 ol_cv_lib_db=-ldb-4.6
27855 if test $ol_cv_lib_db = no ; then
27856 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb46)" >&5
27857 echo $ECHO_N "checking for Berkeley DB link (-ldb46)... $ECHO_C" >&6
27858 if test "${ol_cv_db_db46+set}" = set; then
27859 echo $ECHO_N "(cached) $ECHO_C" >&6
27864 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27866 cat >conftest.$ac_ext <<_ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h. */
27873 #ifdef HAVE_DB_185_H
27874 # include <db_185.h>
27879 #ifndef DB_VERSION_MAJOR
27880 # define DB_VERSION_MAJOR 1
27884 #define NULL ((void*)0)
27891 #if DB_VERSION_MAJOR > 1
27894 int major, minor, patch;
27896 version = db_version( &major, &minor, &patch );
27898 if( major != DB_VERSION_MAJOR ||
27899 minor < DB_VERSION_MINOR )
27901 printf("Berkeley DB version mismatch\n"
27902 "\theader: %s\n\tlibrary: %s\n",
27903 DB_VERSION_STRING, version);
27909 #if DB_VERSION_MAJOR > 2
27910 db_env_create( NULL, 0 );
27911 #elif DB_VERSION_MAJOR > 1
27912 db_appexit( NULL );
27914 (void) dbopen( NULL, 0, 0, 0, NULL);
27921 rm -f conftest.$ac_objext conftest$ac_exeext
27922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27923 (eval $ac_link) 2>conftest.er1
27925 grep -v '^ *+' conftest.er1 >conftest.err
27927 cat conftest.err >&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); } &&
27930 { ac_try='test -z "$ac_c_werror_flag"
27931 || test ! -s conftest.err'
27932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933 (eval $ac_try) 2>&5
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; } &&
27937 { ac_try='test -s conftest$ac_exeext'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; }; then
27945 echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27950 rm -f conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
27956 echo "$as_me:$LINENO: result: $ol_cv_db_db46" >&5
27957 echo "${ECHO_T}$ol_cv_db_db46" >&6
27959 if test $ol_cv_db_db46 = yes ; then
27960 ol_cv_lib_db=-ldb46
27964 if test $ol_cv_lib_db = no ; then
27965 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-46)" >&5
27966 echo $ECHO_N "checking for Berkeley DB link (-ldb-46)... $ECHO_C" >&6
27967 if test "${ol_cv_db_db_46+set}" = set; then
27968 echo $ECHO_N "(cached) $ECHO_C" >&6
27973 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27975 cat >conftest.$ac_ext <<_ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h. */
27982 #ifdef HAVE_DB_185_H
27983 # include <db_185.h>
27988 #ifndef DB_VERSION_MAJOR
27989 # define DB_VERSION_MAJOR 1
27993 #define NULL ((void*)0)
28000 #if DB_VERSION_MAJOR > 1
28003 int major, minor, patch;
28005 version = db_version( &major, &minor, &patch );
28007 if( major != DB_VERSION_MAJOR ||
28008 minor < DB_VERSION_MINOR )
28010 printf("Berkeley DB version mismatch\n"
28011 "\theader: %s\n\tlibrary: %s\n",
28012 DB_VERSION_STRING, version);
28018 #if DB_VERSION_MAJOR > 2
28019 db_env_create( NULL, 0 );
28020 #elif DB_VERSION_MAJOR > 1
28021 db_appexit( NULL );
28023 (void) dbopen( NULL, 0, 0, 0, NULL);
28030 rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28032 (eval $ac_link) 2>conftest.er1
28034 grep -v '^ *+' conftest.er1 >conftest.err
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
28039 { ac_try='test -z "$ac_c_werror_flag"
28040 || test ! -s conftest.err'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; } &&
28046 { ac_try='test -s conftest$ac_exeext'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; }; then
28054 echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28059 rm -f conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
28065 echo "$as_me:$LINENO: result: $ol_cv_db_db_46" >&5
28066 echo "${ECHO_T}$ol_cv_db_db_46" >&6
28068 if test $ol_cv_db_db_46 = yes ; then
28069 ol_cv_lib_db=-ldb-46
28073 if test $ol_cv_lib_db = no ; then
28074 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-6)" >&5
28075 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-6)... $ECHO_C" >&6
28076 if test "${ol_cv_db_db_4_6+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28082 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28084 cat >conftest.$ac_ext <<_ACEOF
28087 cat confdefs.h >>conftest.$ac_ext
28088 cat >>conftest.$ac_ext <<_ACEOF
28089 /* end confdefs.h. */
28091 #ifdef HAVE_DB_185_H
28092 # include <db_185.h>
28097 #ifndef DB_VERSION_MAJOR
28098 # define DB_VERSION_MAJOR 1
28102 #define NULL ((void*)0)
28109 #if DB_VERSION_MAJOR > 1
28112 int major, minor, patch;
28114 version = db_version( &major, &minor, &patch );
28116 if( major != DB_VERSION_MAJOR ||
28117 minor < DB_VERSION_MINOR )
28119 printf("Berkeley DB version mismatch\n"
28120 "\theader: %s\n\tlibrary: %s\n",
28121 DB_VERSION_STRING, version);
28127 #if DB_VERSION_MAJOR > 2
28128 db_env_create( NULL, 0 );
28129 #elif DB_VERSION_MAJOR > 1
28130 db_appexit( NULL );
28132 (void) dbopen( NULL, 0, 0, 0, NULL);
28139 rm -f conftest.$ac_objext conftest$ac_exeext
28140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28141 (eval $ac_link) 2>conftest.er1
28143 grep -v '^ *+' conftest.er1 >conftest.err
28145 cat conftest.err >&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); } &&
28148 { ac_try='test -z "$ac_c_werror_flag"
28149 || test ! -s conftest.err'
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; } &&
28155 { ac_try='test -s conftest$ac_exeext'
28156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28157 (eval $ac_try) 2>&5
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); }; }; then
28161 ol_cv_db_db_4_6=yes
28163 echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28168 rm -f conftest.err conftest.$ac_objext \
28169 conftest$ac_exeext conftest.$ac_ext
28174 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_6" >&5
28175 echo "${ECHO_T}$ol_cv_db_db_4_6" >&6
28177 if test $ol_cv_db_db_4_6 = yes ; then
28178 ol_cv_lib_db=-ldb-4-6
28182 elif test $ol_cv_bdb_minor = 5 ; then
28183 if test $ol_cv_lib_db = no ; then
28184 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
28185 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
28186 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28192 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28194 cat >conftest.$ac_ext <<_ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28201 #ifdef HAVE_DB_185_H
28202 # include <db_185.h>
28207 #ifndef DB_VERSION_MAJOR
28208 # define DB_VERSION_MAJOR 1
28212 #define NULL ((void*)0)
28219 #if DB_VERSION_MAJOR > 1
28222 int major, minor, patch;
28224 version = db_version( &major, &minor, &patch );
28226 if( major != DB_VERSION_MAJOR ||
28227 minor < DB_VERSION_MINOR )
28229 printf("Berkeley DB version mismatch\n"
28230 "\theader: %s\n\tlibrary: %s\n",
28231 DB_VERSION_STRING, version);
28237 #if DB_VERSION_MAJOR > 2
28238 db_env_create( NULL, 0 );
28239 #elif DB_VERSION_MAJOR > 1
28240 db_appexit( NULL );
28242 (void) dbopen( NULL, 0, 0, 0, NULL);
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251 (eval $ac_link) 2>conftest.er1
28253 grep -v '^ *+' conftest.er1 >conftest.err
28255 cat conftest.err >&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } &&
28258 { ac_try='test -z "$ac_c_werror_flag"
28259 || test ! -s conftest.err'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28271 ol_cv_db_db_4_dot_5=yes
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28276 ol_cv_db_db_4_dot_5=no
28278 rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
28284 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28285 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28287 if test $ol_cv_db_db_4_dot_5 = yes ; then
28288 ol_cv_lib_db=-ldb-4.5
28292 if test $ol_cv_lib_db = no ; then
28293 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
28294 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
28295 if test "${ol_cv_db_db45+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28301 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28310 #ifdef HAVE_DB_185_H
28311 # include <db_185.h>
28316 #ifndef DB_VERSION_MAJOR
28317 # define DB_VERSION_MAJOR 1
28321 #define NULL ((void*)0)
28328 #if DB_VERSION_MAJOR > 1
28331 int major, minor, patch;
28333 version = db_version( &major, &minor, &patch );
28335 if( major != DB_VERSION_MAJOR ||
28336 minor < DB_VERSION_MINOR )
28338 printf("Berkeley DB version mismatch\n"
28339 "\theader: %s\n\tlibrary: %s\n",
28340 DB_VERSION_STRING, version);
28346 #if DB_VERSION_MAJOR > 2
28347 db_env_create( NULL, 0 );
28348 #elif DB_VERSION_MAJOR > 1
28349 db_appexit( NULL );
28351 (void) dbopen( NULL, 0, 0, 0, NULL);
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28360 (eval $ac_link) 2>conftest.er1
28362 grep -v '^ *+' conftest.er1 >conftest.err
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } &&
28367 { ac_try='test -z "$ac_c_werror_flag"
28368 || test ! -s conftest.err'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28387 rm -f conftest.err conftest.$ac_objext \
28388 conftest$ac_exeext conftest.$ac_ext
28393 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
28394 echo "${ECHO_T}$ol_cv_db_db45" >&6
28396 if test $ol_cv_db_db45 = yes ; then
28397 ol_cv_lib_db=-ldb45
28401 if test $ol_cv_lib_db = no ; then
28402 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
28403 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
28404 if test "${ol_cv_db_db_45+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28410 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28412 cat >conftest.$ac_ext <<_ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h. */
28419 #ifdef HAVE_DB_185_H
28420 # include <db_185.h>
28425 #ifndef DB_VERSION_MAJOR
28426 # define DB_VERSION_MAJOR 1
28430 #define NULL ((void*)0)
28437 #if DB_VERSION_MAJOR > 1
28440 int major, minor, patch;
28442 version = db_version( &major, &minor, &patch );
28444 if( major != DB_VERSION_MAJOR ||
28445 minor < DB_VERSION_MINOR )
28447 printf("Berkeley DB version mismatch\n"
28448 "\theader: %s\n\tlibrary: %s\n",
28449 DB_VERSION_STRING, version);
28455 #if DB_VERSION_MAJOR > 2
28456 db_env_create( NULL, 0 );
28457 #elif DB_VERSION_MAJOR > 1
28458 db_appexit( NULL );
28460 (void) dbopen( NULL, 0, 0, 0, NULL);
28467 rm -f conftest.$ac_objext conftest$ac_exeext
28468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28469 (eval $ac_link) 2>conftest.er1
28471 grep -v '^ *+' conftest.er1 >conftest.err
28473 cat conftest.err >&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } &&
28476 { ac_try='test -z "$ac_c_werror_flag"
28477 || test ! -s conftest.err'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; } &&
28483 { ac_try='test -s conftest$ac_exeext'
28484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485 (eval $ac_try) 2>&5
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; }; then
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28496 rm -f conftest.err conftest.$ac_objext \
28497 conftest$ac_exeext conftest.$ac_ext
28502 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
28503 echo "${ECHO_T}$ol_cv_db_db_45" >&6
28505 if test $ol_cv_db_db_45 = yes ; then
28506 ol_cv_lib_db=-ldb-45
28510 if test $ol_cv_lib_db = no ; then
28511 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28512 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28513 if test "${ol_cv_db_db_4_5+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28519 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28528 #ifdef HAVE_DB_185_H
28529 # include <db_185.h>
28534 #ifndef DB_VERSION_MAJOR
28535 # define DB_VERSION_MAJOR 1
28539 #define NULL ((void*)0)
28546 #if DB_VERSION_MAJOR > 1
28549 int major, minor, patch;
28551 version = db_version( &major, &minor, &patch );
28553 if( major != DB_VERSION_MAJOR ||
28554 minor < DB_VERSION_MINOR )
28556 printf("Berkeley DB version mismatch\n"
28557 "\theader: %s\n\tlibrary: %s\n",
28558 DB_VERSION_STRING, version);
28564 #if DB_VERSION_MAJOR > 2
28565 db_env_create( NULL, 0 );
28566 #elif DB_VERSION_MAJOR > 1
28567 db_appexit( NULL );
28569 (void) dbopen( NULL, 0, 0, 0, NULL);
28576 rm -f conftest.$ac_objext conftest$ac_exeext
28577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28578 (eval $ac_link) 2>conftest.er1
28580 grep -v '^ *+' conftest.er1 >conftest.err
28582 cat conftest.err >&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } &&
28585 { ac_try='test -z "$ac_c_werror_flag"
28586 || test ! -s conftest.err'
28587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; } &&
28592 { ac_try='test -s conftest$ac_exeext'
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
28598 ol_cv_db_db_4_5=yes
28600 echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28605 rm -f conftest.err conftest.$ac_objext \
28606 conftest$ac_exeext conftest.$ac_ext
28611 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28612 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28614 if test $ol_cv_db_db_4_5 = yes ; then
28615 ol_cv_lib_db=-ldb-4-5
28619 elif test $ol_cv_bdb_minor = 4 ; then
28620 if test $ol_cv_lib_db = no ; then
28621 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28622 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28623 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28631 cat >conftest.$ac_ext <<_ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h. */
28638 #ifdef HAVE_DB_185_H
28639 # include <db_185.h>
28644 #ifndef DB_VERSION_MAJOR
28645 # define DB_VERSION_MAJOR 1
28649 #define NULL ((void*)0)
28656 #if DB_VERSION_MAJOR > 1
28659 int major, minor, patch;
28661 version = db_version( &major, &minor, &patch );
28663 if( major != DB_VERSION_MAJOR ||
28664 minor < DB_VERSION_MINOR )
28666 printf("Berkeley DB version mismatch\n"
28667 "\theader: %s\n\tlibrary: %s\n",
28668 DB_VERSION_STRING, version);
28674 #if DB_VERSION_MAJOR > 2
28675 db_env_create( NULL, 0 );
28676 #elif DB_VERSION_MAJOR > 1
28677 db_appexit( NULL );
28679 (void) dbopen( NULL, 0, 0, 0, NULL);
28686 rm -f conftest.$ac_objext conftest$ac_exeext
28687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28688 (eval $ac_link) 2>conftest.er1
28690 grep -v '^ *+' conftest.er1 >conftest.err
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } &&
28695 { ac_try='test -z "$ac_c_werror_flag"
28696 || test ! -s conftest.err'
28697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; } &&
28702 { ac_try='test -s conftest$ac_exeext'
28703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28704 (eval $ac_try) 2>&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; }; then
28708 ol_cv_db_db_4_dot_4=yes
28710 echo "$as_me: failed program was:" >&5
28711 sed 's/^/| /' conftest.$ac_ext >&5
28713 ol_cv_db_db_4_dot_4=no
28715 rm -f conftest.err conftest.$ac_objext \
28716 conftest$ac_exeext conftest.$ac_ext
28721 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28722 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28724 if test $ol_cv_db_db_4_dot_4 = yes ; then
28725 ol_cv_lib_db=-ldb-4.4
28729 if test $ol_cv_lib_db = no ; then
28730 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28731 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28732 if test "${ol_cv_db_db44+set}" = set; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28738 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28740 cat >conftest.$ac_ext <<_ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28747 #ifdef HAVE_DB_185_H
28748 # include <db_185.h>
28753 #ifndef DB_VERSION_MAJOR
28754 # define DB_VERSION_MAJOR 1
28758 #define NULL ((void*)0)
28765 #if DB_VERSION_MAJOR > 1
28768 int major, minor, patch;
28770 version = db_version( &major, &minor, &patch );
28772 if( major != DB_VERSION_MAJOR ||
28773 minor < DB_VERSION_MINOR )
28775 printf("Berkeley DB version mismatch\n"
28776 "\theader: %s\n\tlibrary: %s\n",
28777 DB_VERSION_STRING, version);
28783 #if DB_VERSION_MAJOR > 2
28784 db_env_create( NULL, 0 );
28785 #elif DB_VERSION_MAJOR > 1
28786 db_appexit( NULL );
28788 (void) dbopen( NULL, 0, 0, 0, NULL);
28795 rm -f conftest.$ac_objext conftest$ac_exeext
28796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28797 (eval $ac_link) 2>conftest.er1
28799 grep -v '^ *+' conftest.er1 >conftest.err
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } &&
28804 { ac_try='test -z "$ac_c_werror_flag"
28805 || test ! -s conftest.err'
28806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807 (eval $ac_try) 2>&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; } &&
28811 { ac_try='test -s conftest$ac_exeext'
28812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813 (eval $ac_try) 2>&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; }; then
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28824 rm -f conftest.err conftest.$ac_objext \
28825 conftest$ac_exeext conftest.$ac_ext
28830 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28831 echo "${ECHO_T}$ol_cv_db_db44" >&6
28833 if test $ol_cv_db_db44 = yes ; then
28834 ol_cv_lib_db=-ldb44
28838 if test $ol_cv_lib_db = no ; then
28839 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28840 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28841 if test "${ol_cv_db_db_44+set}" = set; then
28842 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28849 cat >conftest.$ac_ext <<_ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28856 #ifdef HAVE_DB_185_H
28857 # include <db_185.h>
28862 #ifndef DB_VERSION_MAJOR
28863 # define DB_VERSION_MAJOR 1
28867 #define NULL ((void*)0)
28874 #if DB_VERSION_MAJOR > 1
28877 int major, minor, patch;
28879 version = db_version( &major, &minor, &patch );
28881 if( major != DB_VERSION_MAJOR ||
28882 minor < DB_VERSION_MINOR )
28884 printf("Berkeley DB version mismatch\n"
28885 "\theader: %s\n\tlibrary: %s\n",
28886 DB_VERSION_STRING, version);
28892 #if DB_VERSION_MAJOR > 2
28893 db_env_create( NULL, 0 );
28894 #elif DB_VERSION_MAJOR > 1
28895 db_appexit( NULL );
28897 (void) dbopen( NULL, 0, 0, 0, NULL);
28904 rm -f conftest.$ac_objext conftest$ac_exeext
28905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28906 (eval $ac_link) 2>conftest.er1
28908 grep -v '^ *+' conftest.er1 >conftest.err
28910 cat conftest.err >&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } &&
28913 { ac_try='test -z "$ac_c_werror_flag"
28914 || test ! -s conftest.err'
28915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916 (eval $ac_try) 2>&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); }; } &&
28920 { ac_try='test -s conftest$ac_exeext'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28933 rm -f conftest.err conftest.$ac_objext \
28934 conftest$ac_exeext conftest.$ac_ext
28939 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28940 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28942 if test $ol_cv_db_db_44 = yes ; then
28943 ol_cv_lib_db=-ldb-44
28947 if test $ol_cv_lib_db = no ; then
28948 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28949 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28950 if test "${ol_cv_db_db_4_4+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28956 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28958 cat >conftest.$ac_ext <<_ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28965 #ifdef HAVE_DB_185_H
28966 # include <db_185.h>
28971 #ifndef DB_VERSION_MAJOR
28972 # define DB_VERSION_MAJOR 1
28976 #define NULL ((void*)0)
28983 #if DB_VERSION_MAJOR > 1
28986 int major, minor, patch;
28988 version = db_version( &major, &minor, &patch );
28990 if( major != DB_VERSION_MAJOR ||
28991 minor < DB_VERSION_MINOR )
28993 printf("Berkeley DB version mismatch\n"
28994 "\theader: %s\n\tlibrary: %s\n",
28995 DB_VERSION_STRING, version);
29001 #if DB_VERSION_MAJOR > 2
29002 db_env_create( NULL, 0 );
29003 #elif DB_VERSION_MAJOR > 1
29004 db_appexit( NULL );
29006 (void) dbopen( NULL, 0, 0, 0, NULL);
29013 rm -f conftest.$ac_objext conftest$ac_exeext
29014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29015 (eval $ac_link) 2>conftest.er1
29017 grep -v '^ *+' conftest.er1 >conftest.err
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } &&
29022 { ac_try='test -z "$ac_c_werror_flag"
29023 || test ! -s conftest.err'
29024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025 (eval $ac_try) 2>&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; } &&
29029 { ac_try='test -s conftest$ac_exeext'
29030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29031 (eval $ac_try) 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 ol_cv_db_db_4_4=yes
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29042 rm -f conftest.err conftest.$ac_objext \
29043 conftest$ac_exeext conftest.$ac_ext
29048 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
29049 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
29051 if test $ol_cv_db_db_4_4 = yes ; then
29052 ol_cv_lib_db=-ldb-4-4
29056 elif test $ol_cv_bdb_minor = 3 ; then
29057 if test $ol_cv_lib_db = no ; then
29058 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29059 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29060 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29066 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29068 cat >conftest.$ac_ext <<_ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h. */
29075 #ifdef HAVE_DB_185_H
29076 # include <db_185.h>
29081 #ifndef DB_VERSION_MAJOR
29082 # define DB_VERSION_MAJOR 1
29086 #define NULL ((void*)0)
29093 #if DB_VERSION_MAJOR > 1
29096 int major, minor, patch;
29098 version = db_version( &major, &minor, &patch );
29100 if( major != DB_VERSION_MAJOR ||
29101 minor < DB_VERSION_MINOR )
29103 printf("Berkeley DB version mismatch\n"
29104 "\theader: %s\n\tlibrary: %s\n",
29105 DB_VERSION_STRING, version);
29111 #if DB_VERSION_MAJOR > 2
29112 db_env_create( NULL, 0 );
29113 #elif DB_VERSION_MAJOR > 1
29114 db_appexit( NULL );
29116 (void) dbopen( NULL, 0, 0, 0, NULL);
29123 rm -f conftest.$ac_objext conftest$ac_exeext
29124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29125 (eval $ac_link) 2>conftest.er1
29127 grep -v '^ *+' conftest.er1 >conftest.err
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } &&
29132 { ac_try='test -z "$ac_c_werror_flag"
29133 || test ! -s conftest.err'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest$ac_exeext'
29140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 ol_cv_db_db_4_dot_3=yes
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 ol_cv_db_db_4_dot_3=no
29152 rm -f conftest.err conftest.$ac_objext \
29153 conftest$ac_exeext conftest.$ac_ext
29158 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29159 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29161 if test $ol_cv_db_db_4_dot_3 = yes ; then
29162 ol_cv_lib_db=-ldb-4.3
29166 if test $ol_cv_lib_db = no ; then
29167 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
29168 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
29169 if test "${ol_cv_db_db43+set}" = set; then
29170 echo $ECHO_N "(cached) $ECHO_C" >&6
29175 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29177 cat >conftest.$ac_ext <<_ACEOF
29180 cat confdefs.h >>conftest.$ac_ext
29181 cat >>conftest.$ac_ext <<_ACEOF
29182 /* end confdefs.h. */
29184 #ifdef HAVE_DB_185_H
29185 # include <db_185.h>
29190 #ifndef DB_VERSION_MAJOR
29191 # define DB_VERSION_MAJOR 1
29195 #define NULL ((void*)0)
29202 #if DB_VERSION_MAJOR > 1
29205 int major, minor, patch;
29207 version = db_version( &major, &minor, &patch );
29209 if( major != DB_VERSION_MAJOR ||
29210 minor < DB_VERSION_MINOR )
29212 printf("Berkeley DB version mismatch\n"
29213 "\theader: %s\n\tlibrary: %s\n",
29214 DB_VERSION_STRING, version);
29220 #if DB_VERSION_MAJOR > 2
29221 db_env_create( NULL, 0 );
29222 #elif DB_VERSION_MAJOR > 1
29223 db_appexit( NULL );
29225 (void) dbopen( NULL, 0, 0, 0, NULL);
29232 rm -f conftest.$ac_objext conftest$ac_exeext
29233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29234 (eval $ac_link) 2>conftest.er1
29236 grep -v '^ *+' conftest.er1 >conftest.err
29238 cat conftest.err >&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); } &&
29241 { ac_try='test -z "$ac_c_werror_flag"
29242 || test ! -s conftest.err'
29243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest$ac_exeext'
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; }; then
29256 echo "$as_me: failed program was:" >&5
29257 sed 's/^/| /' conftest.$ac_ext >&5
29261 rm -f conftest.err conftest.$ac_objext \
29262 conftest$ac_exeext conftest.$ac_ext
29267 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29268 echo "${ECHO_T}$ol_cv_db_db43" >&6
29270 if test $ol_cv_db_db43 = yes ; then
29271 ol_cv_lib_db=-ldb43
29275 if test $ol_cv_lib_db = no ; then
29276 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29277 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29278 if test "${ol_cv_db_db_43+set}" = set; then
29279 echo $ECHO_N "(cached) $ECHO_C" >&6
29284 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29286 cat >conftest.$ac_ext <<_ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29293 #ifdef HAVE_DB_185_H
29294 # include <db_185.h>
29299 #ifndef DB_VERSION_MAJOR
29300 # define DB_VERSION_MAJOR 1
29304 #define NULL ((void*)0)
29311 #if DB_VERSION_MAJOR > 1
29314 int major, minor, patch;
29316 version = db_version( &major, &minor, &patch );
29318 if( major != DB_VERSION_MAJOR ||
29319 minor < DB_VERSION_MINOR )
29321 printf("Berkeley DB version mismatch\n"
29322 "\theader: %s\n\tlibrary: %s\n",
29323 DB_VERSION_STRING, version);
29329 #if DB_VERSION_MAJOR > 2
29330 db_env_create( NULL, 0 );
29331 #elif DB_VERSION_MAJOR > 1
29332 db_appexit( NULL );
29334 (void) dbopen( NULL, 0, 0, 0, NULL);
29341 rm -f conftest.$ac_objext conftest$ac_exeext
29342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29343 (eval $ac_link) 2>conftest.er1
29345 grep -v '^ *+' conftest.er1 >conftest.err
29347 cat conftest.err >&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
29350 { ac_try='test -z "$ac_c_werror_flag"
29351 || test ! -s conftest.err'
29352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353 (eval $ac_try) 2>&5
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); }; } &&
29357 { ac_try='test -s conftest$ac_exeext'
29358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359 (eval $ac_try) 2>&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; }; then
29365 echo "$as_me: failed program was:" >&5
29366 sed 's/^/| /' conftest.$ac_ext >&5
29370 rm -f conftest.err conftest.$ac_objext \
29371 conftest$ac_exeext conftest.$ac_ext
29376 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29377 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29379 if test $ol_cv_db_db_43 = yes ; then
29380 ol_cv_lib_db=-ldb-43
29384 if test $ol_cv_lib_db = no ; then
29385 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29386 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29387 if test "${ol_cv_db_db_4_3+set}" = set; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29393 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29395 cat >conftest.$ac_ext <<_ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h. */
29402 #ifdef HAVE_DB_185_H
29403 # include <db_185.h>
29408 #ifndef DB_VERSION_MAJOR
29409 # define DB_VERSION_MAJOR 1
29413 #define NULL ((void*)0)
29420 #if DB_VERSION_MAJOR > 1
29423 int major, minor, patch;
29425 version = db_version( &major, &minor, &patch );
29427 if( major != DB_VERSION_MAJOR ||
29428 minor < DB_VERSION_MINOR )
29430 printf("Berkeley DB version mismatch\n"
29431 "\theader: %s\n\tlibrary: %s\n",
29432 DB_VERSION_STRING, version);
29438 #if DB_VERSION_MAJOR > 2
29439 db_env_create( NULL, 0 );
29440 #elif DB_VERSION_MAJOR > 1
29441 db_appexit( NULL );
29443 (void) dbopen( NULL, 0, 0, 0, NULL);
29450 rm -f conftest.$ac_objext conftest$ac_exeext
29451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29452 (eval $ac_link) 2>conftest.er1
29454 grep -v '^ *+' conftest.er1 >conftest.err
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } &&
29459 { ac_try='test -z "$ac_c_werror_flag"
29460 || test ! -s conftest.err'
29461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462 (eval $ac_try) 2>&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest$ac_exeext'
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; }; then
29472 ol_cv_db_db_4_3=yes
29474 echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29479 rm -f conftest.err conftest.$ac_objext \
29480 conftest$ac_exeext conftest.$ac_ext
29485 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29486 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29488 if test $ol_cv_db_db_4_3 = yes ; then
29489 ol_cv_lib_db=-ldb-4-3
29493 elif test $ol_cv_bdb_minor = 2 ; then
29494 if test $ol_cv_lib_db = no ; then
29495 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29496 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29497 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29498 echo $ECHO_N "(cached) $ECHO_C" >&6
29503 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29505 cat >conftest.$ac_ext <<_ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h. */
29512 #ifdef HAVE_DB_185_H
29513 # include <db_185.h>
29518 #ifndef DB_VERSION_MAJOR
29519 # define DB_VERSION_MAJOR 1
29523 #define NULL ((void*)0)
29530 #if DB_VERSION_MAJOR > 1
29533 int major, minor, patch;
29535 version = db_version( &major, &minor, &patch );
29537 if( major != DB_VERSION_MAJOR ||
29538 minor < DB_VERSION_MINOR )
29540 printf("Berkeley DB version mismatch\n"
29541 "\theader: %s\n\tlibrary: %s\n",
29542 DB_VERSION_STRING, version);
29548 #if DB_VERSION_MAJOR > 2
29549 db_env_create( NULL, 0 );
29550 #elif DB_VERSION_MAJOR > 1
29551 db_appexit( NULL );
29553 (void) dbopen( NULL, 0, 0, 0, NULL);
29560 rm -f conftest.$ac_objext conftest$ac_exeext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29562 (eval $ac_link) 2>conftest.er1
29564 grep -v '^ *+' conftest.er1 >conftest.err
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
29569 { ac_try='test -z "$ac_c_werror_flag"
29570 || test ! -s conftest.err'
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest$ac_exeext'
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 ol_cv_db_db_4_dot_2=yes
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29587 ol_cv_db_db_4_dot_2=no
29589 rm -f conftest.err conftest.$ac_objext \
29590 conftest$ac_exeext conftest.$ac_ext
29595 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29596 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29598 if test $ol_cv_db_db_4_dot_2 = yes ; then
29599 ol_cv_lib_db=-ldb-4.2
29603 if test $ol_cv_lib_db = no ; then
29604 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29605 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29606 if test "${ol_cv_db_db42+set}" = set; then
29607 echo $ECHO_N "(cached) $ECHO_C" >&6
29612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29621 #ifdef HAVE_DB_185_H
29622 # include <db_185.h>
29627 #ifndef DB_VERSION_MAJOR
29628 # define DB_VERSION_MAJOR 1
29632 #define NULL ((void*)0)
29639 #if DB_VERSION_MAJOR > 1
29642 int major, minor, patch;
29644 version = db_version( &major, &minor, &patch );
29646 if( major != DB_VERSION_MAJOR ||
29647 minor < DB_VERSION_MINOR )
29649 printf("Berkeley DB version mismatch\n"
29650 "\theader: %s\n\tlibrary: %s\n",
29651 DB_VERSION_STRING, version);
29657 #if DB_VERSION_MAJOR > 2
29658 db_env_create( NULL, 0 );
29659 #elif DB_VERSION_MAJOR > 1
29660 db_appexit( NULL );
29662 (void) dbopen( NULL, 0, 0, 0, NULL);
29669 rm -f conftest.$ac_objext conftest$ac_exeext
29670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29671 (eval $ac_link) 2>conftest.er1
29673 grep -v '^ *+' conftest.er1 >conftest.err
29675 cat conftest.err >&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); } &&
29678 { ac_try='test -z "$ac_c_werror_flag"
29679 || test ! -s conftest.err'
29680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29681 (eval $ac_try) 2>&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); }; } &&
29685 { ac_try='test -s conftest$ac_exeext'
29686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687 (eval $ac_try) 2>&5
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; }; then
29693 echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29698 rm -f conftest.err conftest.$ac_objext \
29699 conftest$ac_exeext conftest.$ac_ext
29704 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29705 echo "${ECHO_T}$ol_cv_db_db42" >&6
29707 if test $ol_cv_db_db42 = yes ; then
29708 ol_cv_lib_db=-ldb42
29712 if test $ol_cv_lib_db = no ; then
29713 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29714 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29715 if test "${ol_cv_db_db_42+set}" = set; then
29716 echo $ECHO_N "(cached) $ECHO_C" >&6
29721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29723 cat >conftest.$ac_ext <<_ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h. */
29730 #ifdef HAVE_DB_185_H
29731 # include <db_185.h>
29736 #ifndef DB_VERSION_MAJOR
29737 # define DB_VERSION_MAJOR 1
29741 #define NULL ((void*)0)
29748 #if DB_VERSION_MAJOR > 1
29751 int major, minor, patch;
29753 version = db_version( &major, &minor, &patch );
29755 if( major != DB_VERSION_MAJOR ||
29756 minor < DB_VERSION_MINOR )
29758 printf("Berkeley DB version mismatch\n"
29759 "\theader: %s\n\tlibrary: %s\n",
29760 DB_VERSION_STRING, version);
29766 #if DB_VERSION_MAJOR > 2
29767 db_env_create( NULL, 0 );
29768 #elif DB_VERSION_MAJOR > 1
29769 db_appexit( NULL );
29771 (void) dbopen( NULL, 0, 0, 0, NULL);
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29780 (eval $ac_link) 2>conftest.er1
29782 grep -v '^ *+' conftest.er1 >conftest.err
29784 cat conftest.err >&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } &&
29787 { ac_try='test -z "$ac_c_werror_flag"
29788 || test ! -s conftest.err'
29789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790 (eval $ac_try) 2>&5
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); }; } &&
29794 { ac_try='test -s conftest$ac_exeext'
29795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796 (eval $ac_try) 2>&5
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; }; then
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29807 rm -f conftest.err conftest.$ac_objext \
29808 conftest$ac_exeext conftest.$ac_ext
29813 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29814 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29816 if test $ol_cv_db_db_42 = yes ; then
29817 ol_cv_lib_db=-ldb-42
29821 if test $ol_cv_lib_db = no ; then
29822 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29823 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29824 if test "${ol_cv_db_db_4_2+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29830 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29832 cat >conftest.$ac_ext <<_ACEOF
29835 cat confdefs.h >>conftest.$ac_ext
29836 cat >>conftest.$ac_ext <<_ACEOF
29837 /* end confdefs.h. */
29839 #ifdef HAVE_DB_185_H
29840 # include <db_185.h>
29845 #ifndef DB_VERSION_MAJOR
29846 # define DB_VERSION_MAJOR 1
29850 #define NULL ((void*)0)
29857 #if DB_VERSION_MAJOR > 1
29860 int major, minor, patch;
29862 version = db_version( &major, &minor, &patch );
29864 if( major != DB_VERSION_MAJOR ||
29865 minor < DB_VERSION_MINOR )
29867 printf("Berkeley DB version mismatch\n"
29868 "\theader: %s\n\tlibrary: %s\n",
29869 DB_VERSION_STRING, version);
29875 #if DB_VERSION_MAJOR > 2
29876 db_env_create( NULL, 0 );
29877 #elif DB_VERSION_MAJOR > 1
29878 db_appexit( NULL );
29880 (void) dbopen( NULL, 0, 0, 0, NULL);
29887 rm -f conftest.$ac_objext conftest$ac_exeext
29888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29889 (eval $ac_link) 2>conftest.er1
29891 grep -v '^ *+' conftest.er1 >conftest.err
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } &&
29896 { ac_try='test -z "$ac_c_werror_flag"
29897 || test ! -s conftest.err'
29898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29899 (eval $ac_try) 2>&5
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); }; } &&
29903 { ac_try='test -s conftest$ac_exeext'
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
29909 ol_cv_db_db_4_2=yes
29911 echo "$as_me: failed program was:" >&5
29912 sed 's/^/| /' conftest.$ac_ext >&5
29916 rm -f conftest.err conftest.$ac_objext \
29917 conftest$ac_exeext conftest.$ac_ext
29922 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29923 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29925 if test $ol_cv_db_db_4_2 = yes ; then
29926 ol_cv_lib_db=-ldb-4-2
29931 if test $ol_cv_lib_db = no ; then
29932 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29933 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29934 if test "${ol_cv_db_db_4+set}" = set; then
29935 echo $ECHO_N "(cached) $ECHO_C" >&6
29940 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29942 cat >conftest.$ac_ext <<_ACEOF
29945 cat confdefs.h >>conftest.$ac_ext
29946 cat >>conftest.$ac_ext <<_ACEOF
29947 /* end confdefs.h. */
29949 #ifdef HAVE_DB_185_H
29950 # include <db_185.h>
29955 #ifndef DB_VERSION_MAJOR
29956 # define DB_VERSION_MAJOR 1
29960 #define NULL ((void*)0)
29967 #if DB_VERSION_MAJOR > 1
29970 int major, minor, patch;
29972 version = db_version( &major, &minor, &patch );
29974 if( major != DB_VERSION_MAJOR ||
29975 minor < DB_VERSION_MINOR )
29977 printf("Berkeley DB version mismatch\n"
29978 "\theader: %s\n\tlibrary: %s\n",
29979 DB_VERSION_STRING, version);
29985 #if DB_VERSION_MAJOR > 2
29986 db_env_create( NULL, 0 );
29987 #elif DB_VERSION_MAJOR > 1
29988 db_appexit( NULL );
29990 (void) dbopen( NULL, 0, 0, 0, NULL);
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29999 (eval $ac_link) 2>conftest.er1
30001 grep -v '^ *+' conftest.er1 >conftest.err
30003 cat conftest.err >&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); } &&
30006 { ac_try='test -z "$ac_c_werror_flag"
30007 || test ! -s conftest.err'
30008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009 (eval $ac_try) 2>&5
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; } &&
30013 { ac_try='test -s conftest$ac_exeext'
30014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30015 (eval $ac_try) 2>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30021 echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30026 rm -f conftest.err conftest.$ac_objext \
30027 conftest$ac_exeext conftest.$ac_ext
30032 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30033 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30035 if test $ol_cv_db_db_4 = yes ; then
30036 ol_cv_lib_db=-ldb-4
30040 if test $ol_cv_lib_db = no ; then
30041 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30042 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30043 if test "${ol_cv_db_db4+set}" = set; then
30044 echo $ECHO_N "(cached) $ECHO_C" >&6
30049 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30051 cat >conftest.$ac_ext <<_ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h. */
30058 #ifdef HAVE_DB_185_H
30059 # include <db_185.h>
30064 #ifndef DB_VERSION_MAJOR
30065 # define DB_VERSION_MAJOR 1
30069 #define NULL ((void*)0)
30076 #if DB_VERSION_MAJOR > 1
30079 int major, minor, patch;
30081 version = db_version( &major, &minor, &patch );
30083 if( major != DB_VERSION_MAJOR ||
30084 minor < DB_VERSION_MINOR )
30086 printf("Berkeley DB version mismatch\n"
30087 "\theader: %s\n\tlibrary: %s\n",
30088 DB_VERSION_STRING, version);
30094 #if DB_VERSION_MAJOR > 2
30095 db_env_create( NULL, 0 );
30096 #elif DB_VERSION_MAJOR > 1
30097 db_appexit( NULL );
30099 (void) dbopen( NULL, 0, 0, 0, NULL);
30106 rm -f conftest.$ac_objext conftest$ac_exeext
30107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30108 (eval $ac_link) 2>conftest.er1
30110 grep -v '^ *+' conftest.er1 >conftest.err
30112 cat conftest.err >&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } &&
30115 { ac_try='test -z "$ac_c_werror_flag"
30116 || test ! -s conftest.err'
30117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118 (eval $ac_try) 2>&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; } &&
30122 { ac_try='test -s conftest$ac_exeext'
30123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30124 (eval $ac_try) 2>&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; }; then
30130 echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30135 rm -f conftest.err conftest.$ac_objext \
30136 conftest$ac_exeext conftest.$ac_ext
30141 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30142 echo "${ECHO_T}$ol_cv_db_db4" >&6
30144 if test $ol_cv_db_db4 = yes ; then
30149 if test $ol_cv_lib_db = no ; then
30150 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30151 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30152 if test "${ol_cv_db_db+set}" = set; then
30153 echo $ECHO_N "(cached) $ECHO_C" >&6
30158 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30160 cat >conftest.$ac_ext <<_ACEOF
30163 cat confdefs.h >>conftest.$ac_ext
30164 cat >>conftest.$ac_ext <<_ACEOF
30165 /* end confdefs.h. */
30167 #ifdef HAVE_DB_185_H
30168 # include <db_185.h>
30173 #ifndef DB_VERSION_MAJOR
30174 # define DB_VERSION_MAJOR 1
30178 #define NULL ((void*)0)
30185 #if DB_VERSION_MAJOR > 1
30188 int major, minor, patch;
30190 version = db_version( &major, &minor, &patch );
30192 if( major != DB_VERSION_MAJOR ||
30193 minor < DB_VERSION_MINOR )
30195 printf("Berkeley DB version mismatch\n"
30196 "\theader: %s\n\tlibrary: %s\n",
30197 DB_VERSION_STRING, version);
30203 #if DB_VERSION_MAJOR > 2
30204 db_env_create( NULL, 0 );
30205 #elif DB_VERSION_MAJOR > 1
30206 db_appexit( NULL );
30208 (void) dbopen( NULL, 0, 0, 0, NULL);
30215 rm -f conftest.$ac_objext conftest$ac_exeext
30216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30217 (eval $ac_link) 2>conftest.er1
30219 grep -v '^ *+' conftest.er1 >conftest.err
30221 cat conftest.err >&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); } &&
30224 { ac_try='test -z "$ac_c_werror_flag"
30225 || test ! -s conftest.err'
30226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227 (eval $ac_try) 2>&5
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); }; } &&
30231 { ac_try='test -s conftest$ac_exeext'
30232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233 (eval $ac_try) 2>&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; }; then
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30244 rm -f conftest.err conftest.$ac_objext \
30245 conftest$ac_exeext conftest.$ac_ext
30250 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30251 echo "${ECHO_T}$ol_cv_db_db" >&6
30253 if test $ol_cv_db_db = yes ; then
30259 elif test $ol_cv_bdb_major = 3 ; then
30260 if test $ol_cv_lib_db = no ; then
30261 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30262 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30263 if test "${ol_cv_db_db3+set}" = set; then
30264 echo $ECHO_N "(cached) $ECHO_C" >&6
30269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30271 cat >conftest.$ac_ext <<_ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h. */
30278 #ifdef HAVE_DB_185_H
30279 # include <db_185.h>
30284 #ifndef DB_VERSION_MAJOR
30285 # define DB_VERSION_MAJOR 1
30289 #define NULL ((void*)0)
30296 #if DB_VERSION_MAJOR > 1
30299 int major, minor, patch;
30301 version = db_version( &major, &minor, &patch );
30303 if( major != DB_VERSION_MAJOR ||
30304 minor < DB_VERSION_MINOR )
30306 printf("Berkeley DB version mismatch\n"
30307 "\theader: %s\n\tlibrary: %s\n",
30308 DB_VERSION_STRING, version);
30314 #if DB_VERSION_MAJOR > 2
30315 db_env_create( NULL, 0 );
30316 #elif DB_VERSION_MAJOR > 1
30317 db_appexit( NULL );
30319 (void) dbopen( NULL, 0, 0, 0, NULL);
30326 rm -f conftest.$ac_objext conftest$ac_exeext
30327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30328 (eval $ac_link) 2>conftest.er1
30330 grep -v '^ *+' conftest.er1 >conftest.err
30332 cat conftest.err >&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); } &&
30335 { ac_try='test -z "$ac_c_werror_flag"
30336 || test ! -s conftest.err'
30337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338 (eval $ac_try) 2>&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; } &&
30342 { ac_try='test -s conftest$ac_exeext'
30343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344 (eval $ac_try) 2>&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; }; then
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30355 rm -f conftest.err conftest.$ac_objext \
30356 conftest$ac_exeext conftest.$ac_ext
30361 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30362 echo "${ECHO_T}$ol_cv_db_db3" >&6
30364 if test $ol_cv_db_db3 = yes ; then
30369 if test $ol_cv_lib_db = no ; then
30370 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30371 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30372 if test "${ol_cv_db_db_3+set}" = set; then
30373 echo $ECHO_N "(cached) $ECHO_C" >&6
30378 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30380 cat >conftest.$ac_ext <<_ACEOF
30383 cat confdefs.h >>conftest.$ac_ext
30384 cat >>conftest.$ac_ext <<_ACEOF
30385 /* end confdefs.h. */
30387 #ifdef HAVE_DB_185_H
30388 # include <db_185.h>
30393 #ifndef DB_VERSION_MAJOR
30394 # define DB_VERSION_MAJOR 1
30398 #define NULL ((void*)0)
30405 #if DB_VERSION_MAJOR > 1
30408 int major, minor, patch;
30410 version = db_version( &major, &minor, &patch );
30412 if( major != DB_VERSION_MAJOR ||
30413 minor < DB_VERSION_MINOR )
30415 printf("Berkeley DB version mismatch\n"
30416 "\theader: %s\n\tlibrary: %s\n",
30417 DB_VERSION_STRING, version);
30423 #if DB_VERSION_MAJOR > 2
30424 db_env_create( NULL, 0 );
30425 #elif DB_VERSION_MAJOR > 1
30426 db_appexit( NULL );
30428 (void) dbopen( NULL, 0, 0, 0, NULL);
30435 rm -f conftest.$ac_objext conftest$ac_exeext
30436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30437 (eval $ac_link) 2>conftest.er1
30439 grep -v '^ *+' conftest.er1 >conftest.err
30441 cat conftest.err >&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
30444 { ac_try='test -z "$ac_c_werror_flag"
30445 || test ! -s conftest.err'
30446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30447 (eval $ac_try) 2>&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
30451 { ac_try='test -s conftest$ac_exeext'
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; }; then
30459 echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30464 rm -f conftest.err conftest.$ac_objext \
30465 conftest$ac_exeext conftest.$ac_ext
30470 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30471 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30473 if test $ol_cv_db_db_3 = yes ; then
30474 ol_cv_lib_db=-ldb-3
30479 elif test $ol_cv_bdb_major = 2 ; then
30480 if test $ol_cv_lib_db = no ; then
30481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30482 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30483 if test "${ol_cv_db_db2+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30491 cat >conftest.$ac_ext <<_ACEOF
30494 cat confdefs.h >>conftest.$ac_ext
30495 cat >>conftest.$ac_ext <<_ACEOF
30496 /* end confdefs.h. */
30498 #ifdef HAVE_DB_185_H
30499 # include <db_185.h>
30504 #ifndef DB_VERSION_MAJOR
30505 # define DB_VERSION_MAJOR 1
30509 #define NULL ((void*)0)
30516 #if DB_VERSION_MAJOR > 1
30519 int major, minor, patch;
30521 version = db_version( &major, &minor, &patch );
30523 if( major != DB_VERSION_MAJOR ||
30524 minor < DB_VERSION_MINOR )
30526 printf("Berkeley DB version mismatch\n"
30527 "\theader: %s\n\tlibrary: %s\n",
30528 DB_VERSION_STRING, version);
30534 #if DB_VERSION_MAJOR > 2
30535 db_env_create( NULL, 0 );
30536 #elif DB_VERSION_MAJOR > 1
30537 db_appexit( NULL );
30539 (void) dbopen( NULL, 0, 0, 0, NULL);
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30548 (eval $ac_link) 2>conftest.er1
30550 grep -v '^ *+' conftest.er1 >conftest.err
30552 cat conftest.err >&5
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
30555 { ac_try='test -z "$ac_c_werror_flag"
30556 || test ! -s conftest.err'
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest$ac_exeext'
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30570 echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30575 rm -f conftest.err conftest.$ac_objext \
30576 conftest$ac_exeext conftest.$ac_ext
30581 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30582 echo "${ECHO_T}$ol_cv_db_db2" >&6
30584 if test $ol_cv_db_db2 = yes ; then
30589 if test $ol_cv_lib_db = no ; then
30590 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30591 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30592 if test "${ol_cv_db_db_2+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30600 cat >conftest.$ac_ext <<_ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h. */
30607 #ifdef HAVE_DB_185_H
30608 # include <db_185.h>
30613 #ifndef DB_VERSION_MAJOR
30614 # define DB_VERSION_MAJOR 1
30618 #define NULL ((void*)0)
30625 #if DB_VERSION_MAJOR > 1
30628 int major, minor, patch;
30630 version = db_version( &major, &minor, &patch );
30632 if( major != DB_VERSION_MAJOR ||
30633 minor < DB_VERSION_MINOR )
30635 printf("Berkeley DB version mismatch\n"
30636 "\theader: %s\n\tlibrary: %s\n",
30637 DB_VERSION_STRING, version);
30643 #if DB_VERSION_MAJOR > 2
30644 db_env_create( NULL, 0 );
30645 #elif DB_VERSION_MAJOR > 1
30646 db_appexit( NULL );
30648 (void) dbopen( NULL, 0, 0, 0, NULL);
30655 rm -f conftest.$ac_objext conftest$ac_exeext
30656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30657 (eval $ac_link) 2>conftest.er1
30659 grep -v '^ *+' conftest.er1 >conftest.err
30661 cat conftest.err >&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); } &&
30664 { ac_try='test -z "$ac_c_werror_flag"
30665 || test ! -s conftest.err'
30666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667 (eval $ac_try) 2>&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; } &&
30671 { ac_try='test -s conftest$ac_exeext'
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; }; then
30679 echo "$as_me: failed program was:" >&5
30680 sed 's/^/| /' conftest.$ac_ext >&5
30684 rm -f conftest.err conftest.$ac_objext \
30685 conftest$ac_exeext conftest.$ac_ext
30690 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30691 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30693 if test $ol_cv_db_db_2 = yes ; then
30694 ol_cv_lib_db=-ldb-2
30699 elif test $ol_cv_bdb_major = 1 ; then
30700 if test $ol_cv_lib_db = no ; then
30701 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30702 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30703 if test "${ol_cv_db_db1+set}" = set; then
30704 echo $ECHO_N "(cached) $ECHO_C" >&6
30709 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30711 cat >conftest.$ac_ext <<_ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h. */
30718 #ifdef HAVE_DB_185_H
30719 # include <db_185.h>
30724 #ifndef DB_VERSION_MAJOR
30725 # define DB_VERSION_MAJOR 1
30729 #define NULL ((void*)0)
30736 #if DB_VERSION_MAJOR > 1
30739 int major, minor, patch;
30741 version = db_version( &major, &minor, &patch );
30743 if( major != DB_VERSION_MAJOR ||
30744 minor < DB_VERSION_MINOR )
30746 printf("Berkeley DB version mismatch\n"
30747 "\theader: %s\n\tlibrary: %s\n",
30748 DB_VERSION_STRING, version);
30754 #if DB_VERSION_MAJOR > 2
30755 db_env_create( NULL, 0 );
30756 #elif DB_VERSION_MAJOR > 1
30757 db_appexit( NULL );
30759 (void) dbopen( NULL, 0, 0, 0, NULL);
30766 rm -f conftest.$ac_objext conftest$ac_exeext
30767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30768 (eval $ac_link) 2>conftest.er1
30770 grep -v '^ *+' conftest.er1 >conftest.err
30772 cat conftest.err >&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } &&
30775 { ac_try='test -z "$ac_c_werror_flag"
30776 || test ! -s conftest.err'
30777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778 (eval $ac_try) 2>&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; } &&
30782 { ac_try='test -s conftest$ac_exeext'
30783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30784 (eval $ac_try) 2>&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); }; }; then
30790 echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30795 rm -f conftest.err conftest.$ac_objext \
30796 conftest$ac_exeext conftest.$ac_ext
30801 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30802 echo "${ECHO_T}$ol_cv_db_db1" >&6
30804 if test $ol_cv_db_db1 = yes ; then
30809 if test $ol_cv_lib_db = no ; then
30810 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30811 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30812 if test "${ol_cv_db_db_1+set}" = set; then
30813 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30820 cat >conftest.$ac_ext <<_ACEOF
30823 cat confdefs.h >>conftest.$ac_ext
30824 cat >>conftest.$ac_ext <<_ACEOF
30825 /* end confdefs.h. */
30827 #ifdef HAVE_DB_185_H
30828 # include <db_185.h>
30833 #ifndef DB_VERSION_MAJOR
30834 # define DB_VERSION_MAJOR 1
30838 #define NULL ((void*)0)
30845 #if DB_VERSION_MAJOR > 1
30848 int major, minor, patch;
30850 version = db_version( &major, &minor, &patch );
30852 if( major != DB_VERSION_MAJOR ||
30853 minor < DB_VERSION_MINOR )
30855 printf("Berkeley DB version mismatch\n"
30856 "\theader: %s\n\tlibrary: %s\n",
30857 DB_VERSION_STRING, version);
30863 #if DB_VERSION_MAJOR > 2
30864 db_env_create( NULL, 0 );
30865 #elif DB_VERSION_MAJOR > 1
30866 db_appexit( NULL );
30868 (void) dbopen( NULL, 0, 0, 0, NULL);
30875 rm -f conftest.$ac_objext conftest$ac_exeext
30876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877 (eval $ac_link) 2>conftest.er1
30879 grep -v '^ *+' conftest.er1 >conftest.err
30881 cat conftest.err >&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); } &&
30884 { ac_try='test -z "$ac_c_werror_flag"
30885 || test ! -s conftest.err'
30886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887 (eval $ac_try) 2>&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest$ac_exeext'
30892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30893 (eval $ac_try) 2>&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; }; then
30899 echo "$as_me: failed program was:" >&5
30900 sed 's/^/| /' conftest.$ac_ext >&5
30904 rm -f conftest.err conftest.$ac_objext \
30905 conftest$ac_exeext conftest.$ac_ext
30910 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30911 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30913 if test $ol_cv_db_db_1 = yes ; then
30914 ol_cv_lib_db=-ldb-1
30919 if test $ol_cv_lib_db = no ; then
30920 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30921 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30922 if test "${ol_cv_db_none+set}" = set; then
30923 echo $ECHO_N "(cached) $ECHO_C" >&6
30928 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30937 #ifdef HAVE_DB_185_H
30938 # include <db_185.h>
30943 #ifndef DB_VERSION_MAJOR
30944 # define DB_VERSION_MAJOR 1
30948 #define NULL ((void*)0)
30955 #if DB_VERSION_MAJOR > 1
30958 int major, minor, patch;
30960 version = db_version( &major, &minor, &patch );
30962 if( major != DB_VERSION_MAJOR ||
30963 minor < DB_VERSION_MINOR )
30965 printf("Berkeley DB version mismatch\n"
30966 "\theader: %s\n\tlibrary: %s\n",
30967 DB_VERSION_STRING, version);
30973 #if DB_VERSION_MAJOR > 2
30974 db_env_create( NULL, 0 );
30975 #elif DB_VERSION_MAJOR > 1
30976 db_appexit( NULL );
30978 (void) dbopen( NULL, 0, 0, 0, NULL);
30985 rm -f conftest.$ac_objext conftest$ac_exeext
30986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30987 (eval $ac_link) 2>conftest.er1
30989 grep -v '^ *+' conftest.er1 >conftest.err
30991 cat conftest.err >&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } &&
30994 { ac_try='test -z "$ac_c_werror_flag"
30995 || test ! -s conftest.err'
30996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997 (eval $ac_try) 2>&5
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; } &&
31001 { ac_try='test -s conftest$ac_exeext'
31002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31003 (eval $ac_try) 2>&5
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); }; }; then
31009 echo "$as_me: failed program was:" >&5
31010 sed 's/^/| /' conftest.$ac_ext >&5
31014 rm -f conftest.err conftest.$ac_objext \
31015 conftest$ac_exeext conftest.$ac_ext
31020 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31021 echo "${ECHO_T}$ol_cv_db_none" >&6
31023 if test $ol_cv_db_none = yes ; then
31029 if test "$ol_cv_lib_db" != no ; then
31030 ol_cv_berkeley_db=yes
31031 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31032 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31033 if test "${ol_cv_berkeley_db_version+set}" = set; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31038 LIBS="$LTHREAD_LIBS $LIBS"
31039 if test $ol_cv_lib_db != yes ; then
31040 LIBS="$ol_cv_lib_db $LIBS"
31043 if test "$cross_compiling" = yes; then
31044 ol_cv_berkeley_db_version=cross
31046 cat >conftest.$ac_ext <<_ACEOF
31049 cat confdefs.h >>conftest.$ac_ext
31050 cat >>conftest.$ac_ext <<_ACEOF
31051 /* end confdefs.h. */
31053 #ifdef HAVE_DB_185_H
31058 #ifndef DB_VERSION_MAJOR
31059 # define DB_VERSION_MAJOR 1
31062 #define NULL ((void *)0)
31066 #if DB_VERSION_MAJOR > 1
31068 int major, minor, patch;
31070 version = db_version( &major, &minor, &patch );
31072 if( major != DB_VERSION_MAJOR ||
31073 minor != DB_VERSION_MINOR ||
31074 patch != DB_VERSION_PATCH )
31076 printf("Berkeley DB version mismatch\n"
31077 "\theader: %s\n\tlibrary: %s\n",
31078 DB_VERSION_STRING, version);
31086 rm -f conftest$ac_exeext
31087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31088 (eval $ac_link) 2>&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093 (eval $ac_try) 2>&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; }; then
31097 ol_cv_berkeley_db_version=yes
31099 echo "$as_me: program exited with status $ac_status" >&5
31100 echo "$as_me: failed program was:" >&5
31101 sed 's/^/| /' conftest.$ac_ext >&5
31103 ( exit $ac_status )
31104 ol_cv_berkeley_db_version=no
31106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31112 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31113 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31115 if test $ol_cv_berkeley_db_version = no ; then
31116 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31117 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31118 { (exit 1); exit 1; }; }
31121 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31122 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31123 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31124 echo $ECHO_N "(cached) $ECHO_C" >&6
31128 LIBS="$LTHREAD_LIBS $LIBS"
31129 if test $ol_cv_lib_db != yes ; then
31130 LIBS="$ol_cv_lib_db $LIBS"
31133 if test "$cross_compiling" = yes; then
31134 ol_cv_berkeley_db_thread=cross
31136 cat >conftest.$ac_ext <<_ACEOF
31139 cat confdefs.h >>conftest.$ac_ext
31140 cat >>conftest.$ac_ext <<_ACEOF
31141 /* end confdefs.h. */
31143 #ifdef HAVE_DB_185_H
31149 #define NULL ((void *)0)
31154 u_int32_t flags = DB_CREATE |
31160 #if DB_VERSION_MAJOR > 2
31161 DB_ENV *env = NULL;
31163 rc = db_env_create( &env, 0 );
31165 flags |= DB_INIT_MPOOL;
31166 #ifdef DB_MPOOL_PRIVATE
31167 flags |= DB_MPOOL_PRIVATE;
31171 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31175 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31176 rc = (env->open)( env, NULL, flags, 0 );
31178 rc = (env->open)( env, NULL, NULL, flags, 0 );
31182 rc = env->close( env, 0 );
31186 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31192 memset( &env, '\0', sizeof(env) );
31194 rc = db_appinit( NULL, NULL, &env, flags );
31197 db_appexit( &env );
31200 unlink("__db_mpool.share");
31201 unlink("__db_lock.share");
31207 rm -f conftest$ac_exeext
31208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31209 (eval $ac_link) 2>&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31214 (eval $ac_try) 2>&5
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; }; then
31218 ol_cv_berkeley_db_thread=yes
31220 echo "$as_me: program exited with status $ac_status" >&5
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31224 ( exit $ac_status )
31225 ol_cv_berkeley_db_thread=no
31227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31233 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31234 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31236 if test $ol_cv_berkeley_db_thread != no ; then
31238 cat >>confdefs.h <<\_ACEOF
31239 #define HAVE_BERKELEY_DB_THREAD 1
31248 if test $ol_cv_berkeley_db = no ; then
31249 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31250 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31251 { (exit 1); exit 1; }; }
31255 cat >>confdefs.h <<\_ACEOF
31256 #define HAVE_BERKELEY_DB 1
31260 if test $ol_cv_lib_db != yes ; then
31261 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31264 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31265 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31266 if test "${ol_cv_bdb_compat+set}" = set; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31270 cat >conftest.$ac_ext <<_ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h. */
31279 /* this check could be improved */
31280 #ifndef DB_VERSION_MAJOR
31281 # define DB_VERSION_MAJOR 1
31283 #ifndef DB_VERSION_MINOR
31284 # define DB_VERSION_MINOR 0
31287 /* require 4.2 or later, but exclude 4.3 */
31288 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31289 __db_version_compat
31293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31294 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31295 ol_cv_bdb_compat=yes
31297 ol_cv_bdb_compat=no
31302 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31303 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31306 if test $ol_cv_bdb_compat != yes ; then
31307 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31308 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31309 { (exit 1); exit 1; }; }
31312 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31318 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31319 BUILD_LIBS_DYNAMIC=shared
31321 cat >>confdefs.h <<\_ACEOF
31322 #define LDAP_LIBS_DYNAMIC 1
31327 BUILD_LIBS_DYNAMIC=static
31331 if test $ol_enable_wrappers != no ; then
31333 for ac_header in tcpd.h
31335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31337 echo "$as_me:$LINENO: checking for $ac_header" >&5
31338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31345 # Is the header compilable?
31346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31348 cat >conftest.$ac_ext <<_ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h. */
31354 $ac_includes_default
31355 #include <$ac_header>
31357 rm -f conftest.$ac_objext
31358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31359 (eval $ac_compile) 2>conftest.er1
31361 grep -v '^ *+' conftest.er1 >conftest.err
31363 cat conftest.err >&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); } &&
31366 { ac_try='test -z "$ac_c_werror_flag"
31367 || test ! -s conftest.err'
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; } &&
31373 { ac_try='test -s conftest.$ac_objext'
31374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375 (eval $ac_try) 2>&5
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
31379 ac_header_compiler=yes
31381 echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31384 ac_header_compiler=no
31386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31388 echo "${ECHO_T}$ac_header_compiler" >&6
31390 # Is the header present?
31391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31393 cat >conftest.$ac_ext <<_ACEOF
31396 cat confdefs.h >>conftest.$ac_ext
31397 cat >>conftest.$ac_ext <<_ACEOF
31398 /* end confdefs.h. */
31399 #include <$ac_header>
31401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31404 grep -v '^ *+' conftest.er1 >conftest.err
31406 cat conftest.err >&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); } >/dev/null; then
31409 if test -s conftest.err; then
31410 ac_cpp_err=$ac_c_preproc_warn_flag
31411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31418 if test -z "$ac_cpp_err"; then
31419 ac_header_preproc=yes
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31424 ac_header_preproc=no
31426 rm -f conftest.err conftest.$ac_ext
31427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31428 echo "${ECHO_T}$ac_header_preproc" >&6
31430 # So? What about this header?
31431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31437 ac_header_preproc=yes
31440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31454 ## --------------------------------------------- ##
31455 ## Report this to <http://www.openldap.org/its/> ##
31456 ## --------------------------------------------- ##
31459 sed "s/^/$as_me: WARNING: /" >&2
31462 echo "$as_me:$LINENO: checking for $ac_header" >&5
31463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31467 eval "$as_ac_Header=\$ac_header_preproc"
31469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31474 cat >>confdefs.h <<_ACEOF
31475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31478 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31479 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31481 LIBS="$LIBS -lwrap"
31482 cat >conftest.$ac_ext <<_ACEOF
31485 cat confdefs.h >>conftest.$ac_ext
31486 cat >>conftest.$ac_ext <<_ACEOF
31487 /* end confdefs.h. */
31490 int allow_severity = 0;
31491 int deny_severity = 0;
31493 struct request_info *req;
31505 rm -f conftest.$ac_objext conftest$ac_exeext
31506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31507 (eval $ac_link) 2>conftest.er1
31509 grep -v '^ *+' conftest.er1 >conftest.err
31511 cat conftest.err >&5
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); } &&
31514 { ac_try='test -z "$ac_c_werror_flag"
31515 || test ! -s conftest.err'
31516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31517 (eval $ac_try) 2>&5
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); }; } &&
31521 { ac_try='test -s conftest$ac_exeext'
31522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31523 (eval $ac_try) 2>&5
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); }; }; then
31527 echo "$as_me:$LINENO: result: -lwrap" >&5
31528 echo "${ECHO_T}-lwrap" >&6
31532 echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31537 cat >conftest.$ac_ext <<_ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31545 int allow_severity = 0;
31546 int deny_severity = 0;
31548 struct request_info *req;
31560 rm -f conftest.$ac_objext conftest$ac_exeext
31561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31562 (eval $ac_link) 2>conftest.er1
31564 grep -v '^ *+' conftest.er1 >conftest.err
31566 cat conftest.err >&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } &&
31569 { ac_try='test -z "$ac_c_werror_flag"
31570 || test ! -s conftest.err'
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; } &&
31576 { ac_try='test -s conftest$ac_exeext'
31577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31578 (eval $ac_try) 2>&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); }; }; then
31582 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31583 echo "${ECHO_T}-lwrap -lnsl" >&6
31585 LIBS="$save_LIBS -lnsl"
31587 echo "$as_me: failed program was:" >&5
31588 sed 's/^/| /' conftest.$ac_ext >&5
31591 echo "$as_me:$LINENO: result: no" >&5
31592 echo "${ECHO_T}no" >&6
31596 rm -f conftest.err conftest.$ac_objext \
31597 conftest$ac_exeext conftest.$ac_ext
31599 rm -f conftest.err conftest.$ac_objext \
31600 conftest$ac_exeext conftest.$ac_ext
31608 if test $have_wrappers = yes ; then
31610 cat >>confdefs.h <<\_ACEOF
31611 #define HAVE_TCPD 1
31615 elif test $ol_enable_wrappers = yes ; then
31616 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31617 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31618 { (exit 1); exit 1; }; }
31620 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31621 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31626 if test $ol_enable_syslog != no ; then
31627 echo "$as_me:$LINENO: checking for openlog" >&5
31628 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31629 if test "${ac_cv_func_openlog+set}" = set; then
31630 echo $ECHO_N "(cached) $ECHO_C" >&6
31632 cat >conftest.$ac_ext <<_ACEOF
31635 cat confdefs.h >>conftest.$ac_ext
31636 cat >>conftest.$ac_ext <<_ACEOF
31637 /* end confdefs.h. */
31638 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31640 #define openlog innocuous_openlog
31642 /* System header to define __stub macros and hopefully few prototypes,
31643 which can conflict with char openlog (); below.
31644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31645 <limits.h> exists even on freestanding compilers. */
31648 # include <limits.h>
31650 # include <assert.h>
31655 /* Override any gcc2 internal prototype to avoid an error. */
31660 /* We use char because int might match the return type of a gcc2
31661 builtin and then its argument prototype would still apply. */
31663 /* The GNU C library defines this for functions which it implements
31664 to always fail with ENOSYS. Some functions are actually named
31665 something starting with __ and the normal name is an alias. */
31666 #if defined (__stub_openlog) || defined (__stub___openlog)
31669 char (*f) () = openlog;
31678 return f != openlog;
31683 rm -f conftest.$ac_objext conftest$ac_exeext
31684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31685 (eval $ac_link) 2>conftest.er1
31687 grep -v '^ *+' conftest.er1 >conftest.err
31689 cat conftest.err >&5
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); } &&
31692 { ac_try='test -z "$ac_c_werror_flag"
31693 || test ! -s conftest.err'
31694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31695 (eval $ac_try) 2>&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest$ac_exeext'
31700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31701 (eval $ac_try) 2>&5
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; }; then
31705 ac_cv_func_openlog=yes
31707 echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.$ac_ext >&5
31710 ac_cv_func_openlog=no
31712 rm -f conftest.err conftest.$ac_objext \
31713 conftest$ac_exeext conftest.$ac_ext
31715 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31716 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31718 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31719 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31720 echo "$as_me: error: could not find syslog" >&2;}
31721 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31723 ol_enable_syslog=$ac_cv_func_openlog
31727 if test $ol_enable_sql != no ; then
31730 for ac_header in sql.h sqlext.h
31732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31734 echo "$as_me:$LINENO: checking for $ac_header" >&5
31735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31742 # Is the header compilable?
31743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31745 cat >conftest.$ac_ext <<_ACEOF
31748 cat confdefs.h >>conftest.$ac_ext
31749 cat >>conftest.$ac_ext <<_ACEOF
31750 /* end confdefs.h. */
31751 $ac_includes_default
31752 #include <$ac_header>
31754 rm -f conftest.$ac_objext
31755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31756 (eval $ac_compile) 2>conftest.er1
31758 grep -v '^ *+' conftest.er1 >conftest.err
31760 cat conftest.err >&5
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } &&
31763 { ac_try='test -z "$ac_c_werror_flag"
31764 || test ! -s conftest.err'
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; } &&
31770 { ac_try='test -s conftest.$ac_objext'
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; }; then
31776 ac_header_compiler=yes
31778 echo "$as_me: failed program was:" >&5
31779 sed 's/^/| /' conftest.$ac_ext >&5
31781 ac_header_compiler=no
31783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31785 echo "${ECHO_T}$ac_header_compiler" >&6
31787 # Is the header present?
31788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31790 cat >conftest.$ac_ext <<_ACEOF
31793 cat confdefs.h >>conftest.$ac_ext
31794 cat >>conftest.$ac_ext <<_ACEOF
31795 /* end confdefs.h. */
31796 #include <$ac_header>
31798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31801 grep -v '^ *+' conftest.er1 >conftest.err
31803 cat conftest.err >&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } >/dev/null; then
31806 if test -s conftest.err; then
31807 ac_cpp_err=$ac_c_preproc_warn_flag
31808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31815 if test -z "$ac_cpp_err"; then
31816 ac_header_preproc=yes
31818 echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31821 ac_header_preproc=no
31823 rm -f conftest.err conftest.$ac_ext
31824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31825 echo "${ECHO_T}$ac_header_preproc" >&6
31827 # So? What about this header?
31828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31834 ac_header_preproc=yes
31837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31851 ## --------------------------------------------- ##
31852 ## Report this to <http://www.openldap.org/its/> ##
31853 ## --------------------------------------------- ##
31856 sed "s/^/$as_me: WARNING: /" >&2
31859 echo "$as_me:$LINENO: checking for $ac_header" >&5
31860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31862 echo $ECHO_N "(cached) $ECHO_C" >&6
31864 eval "$as_ac_Header=\$ac_header_preproc"
31866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31871 cat >>confdefs.h <<_ACEOF
31872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31877 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31878 echo "$as_me: error: could not locate SQL headers" >&2;}
31879 { (exit 1); exit 1; }; }
31887 LIBS="$LTHREAD_LIBS"
31889 if test $ol_with_odbc = auto ; then
31890 ol_with_odbc="iodbc unixodbc"
31893 for odbc in $ol_with_odbc ; do
31894 if test $ol_link_sql = no ; then
31897 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31898 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31899 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31902 ac_check_lib_save_LIBS=$LIBS
31903 LIBS="-liodbc $LIBS"
31904 cat >conftest.$ac_ext <<_ACEOF
31907 cat confdefs.h >>conftest.$ac_ext
31908 cat >>conftest.$ac_ext <<_ACEOF
31909 /* end confdefs.h. */
31911 /* Override any gcc2 internal prototype to avoid an error. */
31915 /* We use char because int might match the return type of a gcc2
31916 builtin and then its argument prototype would still apply. */
31917 char SQLDriverConnect ();
31921 SQLDriverConnect ();
31926 rm -f conftest.$ac_objext conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928 (eval $ac_link) 2>conftest.er1
31930 grep -v '^ *+' conftest.er1 >conftest.err
31932 cat conftest.err >&5
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
31935 { ac_try='test -z "$ac_c_werror_flag"
31936 || test ! -s conftest.err'
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; } &&
31942 { ac_try='test -s conftest$ac_exeext'
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }; then
31948 ac_cv_lib_iodbc_SQLDriverConnect=yes
31950 echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31953 ac_cv_lib_iodbc_SQLDriverConnect=no
31955 rm -f conftest.err conftest.$ac_objext \
31956 conftest$ac_exeext conftest.$ac_ext
31957 LIBS=$ac_check_lib_save_LIBS
31959 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31960 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31961 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31967 if test $have_iodbc = yes ; then
31968 ol_link_sql="-liodbc"
31973 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31974 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31975 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31976 echo $ECHO_N "(cached) $ECHO_C" >&6
31978 ac_check_lib_save_LIBS=$LIBS
31979 LIBS="-lodbc $LIBS"
31980 cat >conftest.$ac_ext <<_ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h. */
31987 /* Override any gcc2 internal prototype to avoid an error. */
31991 /* We use char because int might match the return type of a gcc2
31992 builtin and then its argument prototype would still apply. */
31993 char SQLDriverConnect ();
31997 SQLDriverConnect ();
32002 rm -f conftest.$ac_objext conftest$ac_exeext
32003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32004 (eval $ac_link) 2>conftest.er1
32006 grep -v '^ *+' conftest.er1 >conftest.err
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_c_werror_flag"
32012 || test ! -s conftest.err'
32013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32014 (eval $ac_try) 2>&5
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017 (exit $ac_status); }; } &&
32018 { ac_try='test -s conftest$ac_exeext'
32019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32020 (eval $ac_try) 2>&5
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); }; }; then
32024 ac_cv_lib_odbc_SQLDriverConnect=yes
32026 echo "$as_me: failed program was:" >&5
32027 sed 's/^/| /' conftest.$ac_ext >&5
32029 ac_cv_lib_odbc_SQLDriverConnect=no
32031 rm -f conftest.err conftest.$ac_objext \
32032 conftest$ac_exeext conftest.$ac_ext
32033 LIBS=$ac_check_lib_save_LIBS
32035 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32036 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32037 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32043 if test $have_odbc = yes ; then
32044 ol_link_sql="-lodbc"
32049 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32050 echo "$as_me: error: unknown ODBC library" >&2;}
32051 { (exit 1); exit 1; }; }
32059 if test $ol_link_sql != no ; then
32060 SLAPD_SQL_LIBS="$ol_link_sql"
32062 elif test $ol_enable_sql != auto ; then
32063 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32064 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32065 { (exit 1); exit 1; }; }
32071 for ac_header in unicode/utypes.h
32073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32075 echo "$as_me:$LINENO: checking for $ac_header" >&5
32076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32078 echo $ECHO_N "(cached) $ECHO_C" >&6
32080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32083 # Is the header compilable?
32084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32086 cat >conftest.$ac_ext <<_ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h. */
32092 $ac_includes_default
32093 #include <$ac_header>
32095 rm -f conftest.$ac_objext
32096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32097 (eval $ac_compile) 2>conftest.er1
32099 grep -v '^ *+' conftest.er1 >conftest.err
32101 cat conftest.err >&5
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } &&
32104 { ac_try='test -z "$ac_c_werror_flag"
32105 || test ! -s conftest.err'
32106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107 (eval $ac_try) 2>&5
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); }; } &&
32111 { ac_try='test -s conftest.$ac_objext'
32112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113 (eval $ac_try) 2>&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); }; }; then
32117 ac_header_compiler=yes
32119 echo "$as_me: failed program was:" >&5
32120 sed 's/^/| /' conftest.$ac_ext >&5
32122 ac_header_compiler=no
32124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32126 echo "${ECHO_T}$ac_header_compiler" >&6
32128 # Is the header present?
32129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32131 cat >conftest.$ac_ext <<_ACEOF
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h. */
32137 #include <$ac_header>
32139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32142 grep -v '^ *+' conftest.er1 >conftest.err
32144 cat conftest.err >&5
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); } >/dev/null; then
32147 if test -s conftest.err; then
32148 ac_cpp_err=$ac_c_preproc_warn_flag
32149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32156 if test -z "$ac_cpp_err"; then
32157 ac_header_preproc=yes
32159 echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32162 ac_header_preproc=no
32164 rm -f conftest.err conftest.$ac_ext
32165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32166 echo "${ECHO_T}$ac_header_preproc" >&6
32168 # So? What about this header?
32169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32175 ac_header_preproc=yes
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32192 ## --------------------------------------------- ##
32193 ## Report this to <http://www.openldap.org/its/> ##
32194 ## --------------------------------------------- ##
32197 sed "s/^/$as_me: WARNING: /" >&2
32200 echo "$as_me:$LINENO: checking for $ac_header" >&5
32201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32203 echo $ECHO_N "(cached) $ECHO_C" >&6
32205 eval "$as_ac_Header=\$ac_header_preproc"
32207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32212 cat >>confdefs.h <<_ACEOF
32213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32220 if test $ac_cv_header_unicode_utypes_h = yes ; then
32221 OL_ICULIBS="-licuuc -licudata"
32223 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32224 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32225 if test "${ol_cv_lib_icu+set}" = set; then
32226 echo $ECHO_N "(cached) $ECHO_C" >&6
32230 LIBS="$OL_ICULIBS $LIBS"
32231 cat >conftest.$ac_ext <<_ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h. */
32238 #include <unicode/utypes.h>
32244 (void) u_errorName(0);
32250 rm -f conftest.$ac_objext conftest$ac_exeext
32251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32252 (eval $ac_link) 2>conftest.er1
32254 grep -v '^ *+' conftest.er1 >conftest.err
32256 cat conftest.err >&5
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); } &&
32259 { ac_try='test -z "$ac_c_werror_flag"
32260 || test ! -s conftest.err'
32261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32262 (eval $ac_try) 2>&5
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); }; } &&
32266 { ac_try='test -s conftest$ac_exeext'
32267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32268 (eval $ac_try) 2>&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; }; then
32274 echo "$as_me: failed program was:" >&5
32275 sed 's/^/| /' conftest.$ac_ext >&5
32279 rm -f conftest.err conftest.$ac_objext \
32280 conftest$ac_exeext conftest.$ac_ext
32284 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32285 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32287 if test $ol_cv_lib_icu != no ; then
32288 ol_icu="$OL_ICULIBS"
32290 cat >>confdefs.h <<\_ACEOF
32297 if test "$ol_icu" = no ; then
32298 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32299 echo "$as_me: WARNING: ICU not available" >&2;}
32306 if test $ol_with_cyrus_sasl != no ; then
32309 for ac_header in sasl/sasl.h sasl.h
32311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32313 echo "$as_me:$LINENO: checking for $ac_header" >&5
32314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32316 echo $ECHO_N "(cached) $ECHO_C" >&6
32318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32321 # Is the header compilable?
32322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32324 cat >conftest.$ac_ext <<_ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h. */
32330 $ac_includes_default
32331 #include <$ac_header>
32333 rm -f conftest.$ac_objext
32334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32335 (eval $ac_compile) 2>conftest.er1
32337 grep -v '^ *+' conftest.er1 >conftest.err
32339 cat conftest.err >&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); } &&
32342 { ac_try='test -z "$ac_c_werror_flag"
32343 || test ! -s conftest.err'
32344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345 (eval $ac_try) 2>&5
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); }; } &&
32349 { ac_try='test -s conftest.$ac_objext'
32350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32351 (eval $ac_try) 2>&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); }; }; then
32355 ac_header_compiler=yes
32357 echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32360 ac_header_compiler=no
32362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32364 echo "${ECHO_T}$ac_header_compiler" >&6
32366 # Is the header present?
32367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32369 cat >conftest.$ac_ext <<_ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32375 #include <$ac_header>
32377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32380 grep -v '^ *+' conftest.er1 >conftest.err
32382 cat conftest.err >&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); } >/dev/null; then
32385 if test -s conftest.err; then
32386 ac_cpp_err=$ac_c_preproc_warn_flag
32387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32394 if test -z "$ac_cpp_err"; then
32395 ac_header_preproc=yes
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32400 ac_header_preproc=no
32402 rm -f conftest.err conftest.$ac_ext
32403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32404 echo "${ECHO_T}$ac_header_preproc" >&6
32406 # So? What about this header?
32407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32413 ac_header_preproc=yes
32416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32430 ## --------------------------------------------- ##
32431 ## Report this to <http://www.openldap.org/its/> ##
32432 ## --------------------------------------------- ##
32435 sed "s/^/$as_me: WARNING: /" >&2
32438 echo "$as_me:$LINENO: checking for $ac_header" >&5
32439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32441 echo $ECHO_N "(cached) $ECHO_C" >&6
32443 eval "$as_ac_Header=\$ac_header_preproc"
32445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32450 cat >>confdefs.h <<_ACEOF
32451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32459 if test $ac_cv_header_sasl_sasl_h = yes ||
32460 test $ac_cv_header_sasl_h = yes; then
32461 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32462 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32463 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32464 echo $ECHO_N "(cached) $ECHO_C" >&6
32466 ac_check_lib_save_LIBS=$LIBS
32467 LIBS="-lsasl2 $LIBS"
32468 cat >conftest.$ac_ext <<_ACEOF
32471 cat confdefs.h >>conftest.$ac_ext
32472 cat >>conftest.$ac_ext <<_ACEOF
32473 /* end confdefs.h. */
32475 /* Override any gcc2 internal prototype to avoid an error. */
32479 /* We use char because int might match the return type of a gcc2
32480 builtin and then its argument prototype would still apply. */
32481 char sasl_client_init ();
32485 sasl_client_init ();
32490 rm -f conftest.$ac_objext conftest$ac_exeext
32491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32492 (eval $ac_link) 2>conftest.er1
32494 grep -v '^ *+' conftest.er1 >conftest.err
32496 cat conftest.err >&5
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); } &&
32499 { ac_try='test -z "$ac_c_werror_flag"
32500 || test ! -s conftest.err'
32501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502 (eval $ac_try) 2>&5
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; } &&
32506 { ac_try='test -s conftest$ac_exeext'
32507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32508 (eval $ac_try) 2>&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; }; then
32512 ac_cv_lib_sasl2_sasl_client_init=yes
32514 echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32517 ac_cv_lib_sasl2_sasl_client_init=no
32519 rm -f conftest.err conftest.$ac_objext \
32520 conftest$ac_exeext conftest.$ac_ext
32521 LIBS=$ac_check_lib_save_LIBS
32523 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32524 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32525 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32526 ol_link_sasl="-lsasl2"
32528 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32529 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32530 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32531 echo $ECHO_N "(cached) $ECHO_C" >&6
32533 ac_check_lib_save_LIBS=$LIBS
32534 LIBS="-lsasl $LIBS"
32535 cat >conftest.$ac_ext <<_ACEOF
32538 cat confdefs.h >>conftest.$ac_ext
32539 cat >>conftest.$ac_ext <<_ACEOF
32540 /* end confdefs.h. */
32542 /* Override any gcc2 internal prototype to avoid an error. */
32546 /* We use char because int might match the return type of a gcc2
32547 builtin and then its argument prototype would still apply. */
32548 char sasl_client_init ();
32552 sasl_client_init ();
32557 rm -f conftest.$ac_objext conftest$ac_exeext
32558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32559 (eval $ac_link) 2>conftest.er1
32561 grep -v '^ *+' conftest.er1 >conftest.err
32563 cat conftest.err >&5
32564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565 (exit $ac_status); } &&
32566 { ac_try='test -z "$ac_c_werror_flag"
32567 || test ! -s conftest.err'
32568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32569 (eval $ac_try) 2>&5
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572 (exit $ac_status); }; } &&
32573 { ac_try='test -s conftest$ac_exeext'
32574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575 (eval $ac_try) 2>&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; }; then
32579 ac_cv_lib_sasl_sasl_client_init=yes
32581 echo "$as_me: failed program was:" >&5
32582 sed 's/^/| /' conftest.$ac_ext >&5
32584 ac_cv_lib_sasl_sasl_client_init=no
32586 rm -f conftest.err conftest.$ac_objext \
32587 conftest$ac_exeext conftest.$ac_ext
32588 LIBS=$ac_check_lib_save_LIBS
32590 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32591 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32592 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32593 ol_link_sasl="-lsasl"
32600 if test $ol_link_sasl = no ; then
32601 if test $ol_with_cyrus_sasl != auto ; then
32602 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32603 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32604 { (exit 1); exit 1; }; }
32606 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32607 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32608 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32609 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32610 if test $ol_link_tls = no ; then
32611 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32612 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32616 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32617 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32618 if test "${ol_cv_sasl_compat+set}" = set; then
32619 echo $ECHO_N "(cached) $ECHO_C" >&6
32622 cat >conftest.$ac_ext <<_ACEOF
32625 cat confdefs.h >>conftest.$ac_ext
32626 cat >>conftest.$ac_ext <<_ACEOF
32627 /* end confdefs.h. */
32629 #ifdef HAVE_SASL_SASL_H
32630 #include <sasl/sasl.h>
32635 /* Require 2.1.15+ */
32636 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32637 char *__sasl_compat = "2.2+ or better okay (we guess)";
32638 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32639 && SASL_VERSION_STEP >=15
32640 char *__sasl_compat = "2.1.15+ or better okay";
32644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32645 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32646 ol_cv_sasl_compat=yes
32648 ol_cv_sasl_compat=no
32653 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32654 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32656 if test $ol_cv_sasl_compat = no ; then
32658 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32659 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32660 { (exit 1); exit 1; }; }
32664 cat >>confdefs.h <<\_ACEOF
32665 #define HAVE_CYRUS_SASL 1
32668 SASL_LIBS="$ol_link_sasl"
32669 if test $ol_enable_spasswd != no ; then
32670 ol_link_spasswd=yes
32673 ac_save_LIBS="$LIBS"
32674 LIBS="$LIBS $ol_link_sasl"
32675 echo "$as_me:$LINENO: checking for sasl_version" >&5
32676 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32677 if test "${ac_cv_func_sasl_version+set}" = set; then
32678 echo $ECHO_N "(cached) $ECHO_C" >&6
32680 cat >conftest.$ac_ext <<_ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h. */
32686 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32688 #define sasl_version innocuous_sasl_version
32690 /* System header to define __stub macros and hopefully few prototypes,
32691 which can conflict with char sasl_version (); below.
32692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32693 <limits.h> exists even on freestanding compilers. */
32696 # include <limits.h>
32698 # include <assert.h>
32701 #undef sasl_version
32703 /* Override any gcc2 internal prototype to avoid an error. */
32708 /* We use char because int might match the return type of a gcc2
32709 builtin and then its argument prototype would still apply. */
32710 char sasl_version ();
32711 /* The GNU C library defines this for functions which it implements
32712 to always fail with ENOSYS. Some functions are actually named
32713 something starting with __ and the normal name is an alias. */
32714 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32717 char (*f) () = sasl_version;
32726 return f != sasl_version;
32731 rm -f conftest.$ac_objext conftest$ac_exeext
32732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32733 (eval $ac_link) 2>conftest.er1
32735 grep -v '^ *+' conftest.er1 >conftest.err
32737 cat conftest.err >&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); } &&
32740 { ac_try='test -z "$ac_c_werror_flag"
32741 || test ! -s conftest.err'
32742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 (eval $ac_try) 2>&5
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; } &&
32747 { ac_try='test -s conftest$ac_exeext'
32748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32749 (eval $ac_try) 2>&5
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; }; then
32753 ac_cv_func_sasl_version=yes
32755 echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32758 ac_cv_func_sasl_version=no
32760 rm -f conftest.err conftest.$ac_objext \
32761 conftest$ac_exeext conftest.$ac_ext
32763 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32764 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32765 if test $ac_cv_func_sasl_version = yes; then
32767 cat >>confdefs.h <<\_ACEOF
32768 #define HAVE_SASL_VERSION 1
32773 LIBS="$ac_save_LIBS"
32779 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32780 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32781 if test $ol_link_tls = no ; then
32782 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32783 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32787 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32789 if test -r /dev/urandom ; then
32790 dev="/dev/urandom";
32791 elif test -r /idev/urandom ; then
32792 dev="/idev/urandom";
32793 elif test -r /dev/srandom ; then
32794 dev="/dev/srandom";
32795 elif test -r /dev/random ; then
32797 elif test -r /idev/random ; then
32798 dev="/idev/random";
32801 if test $dev != no ; then
32803 cat >>confdefs.h <<_ACEOF
32804 #define URANDOM_DEVICE "$dev"
32811 if test $ol_with_fetch != no ; then
32813 LIBS="-lfetch -lcom_err $LIBS"
32814 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32815 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32816 if test "${ol_cv_lib_fetch+set}" = set; then
32817 echo $ECHO_N "(cached) $ECHO_C" >&6
32820 cat >conftest.$ac_ext <<_ACEOF
32823 cat confdefs.h >>conftest.$ac_ext
32824 cat >>conftest.$ac_ext <<_ACEOF
32825 /* end confdefs.h. */
32827 #include <sys/param.h>
32833 struct url *u = fetchParseURL("file:///");
32838 rm -f conftest.$ac_objext conftest$ac_exeext
32839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32840 (eval $ac_link) 2>conftest.er1
32842 grep -v '^ *+' conftest.er1 >conftest.err
32844 cat conftest.err >&5
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); } &&
32847 { ac_try='test -z "$ac_c_werror_flag"
32848 || test ! -s conftest.err'
32849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32850 (eval $ac_try) 2>&5
32852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32853 (exit $ac_status); }; } &&
32854 { ac_try='test -s conftest$ac_exeext'
32855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32856 (eval $ac_try) 2>&5
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); }; }; then
32860 ol_cv_lib_fetch=yes
32862 echo "$as_me: failed program was:" >&5
32863 sed 's/^/| /' conftest.$ac_ext >&5
32867 rm -f conftest.err conftest.$ac_objext \
32868 conftest$ac_exeext conftest.$ac_ext
32870 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32871 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32873 if test $ol_cv_lib_fetch != no ; then
32874 ol_link_fetch="-lfetch -lcom_err"
32876 cat >>confdefs.h <<\_ACEOF
32877 #define HAVE_FETCH 1
32883 if test $ol_cv_lib_fetch != no ; then
32884 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32885 ol_link_fetch=freebsd
32887 elif test $ol_with_fetch != auto ; then
32888 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32889 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32890 { (exit 1); exit 1; }; }
32894 if test $ol_enable_crypt != no ; then
32896 LIBS="$TLS_LIBS $LIBS"
32898 echo "$as_me:$LINENO: checking for crypt" >&5
32899 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32900 if test "${ac_cv_func_crypt+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32903 cat >conftest.$ac_ext <<_ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32911 #define crypt innocuous_crypt
32913 /* System header to define __stub macros and hopefully few prototypes,
32914 which can conflict with char crypt (); below.
32915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32916 <limits.h> exists even on freestanding compilers. */
32919 # include <limits.h>
32921 # include <assert.h>
32926 /* Override any gcc2 internal prototype to avoid an error. */
32931 /* We use char because int might match the return type of a gcc2
32932 builtin and then its argument prototype would still apply. */
32934 /* The GNU C library defines this for functions which it implements
32935 to always fail with ENOSYS. Some functions are actually named
32936 something starting with __ and the normal name is an alias. */
32937 #if defined (__stub_crypt) || defined (__stub___crypt)
32940 char (*f) () = crypt;
32954 rm -f conftest.$ac_objext conftest$ac_exeext
32955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32956 (eval $ac_link) 2>conftest.er1
32958 grep -v '^ *+' conftest.er1 >conftest.err
32960 cat conftest.err >&5
32961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32962 (exit $ac_status); } &&
32963 { ac_try='test -z "$ac_c_werror_flag"
32964 || test ! -s conftest.err'
32965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966 (eval $ac_try) 2>&5
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); }; } &&
32970 { ac_try='test -s conftest$ac_exeext'
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; }; then
32976 ac_cv_func_crypt=yes
32978 echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32981 ac_cv_func_crypt=no
32983 rm -f conftest.err conftest.$ac_objext \
32984 conftest$ac_exeext conftest.$ac_ext
32986 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32987 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32988 if test $ac_cv_func_crypt = yes; then
32993 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32994 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32995 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32996 echo $ECHO_N "(cached) $ECHO_C" >&6
32998 ac_check_lib_save_LIBS=$LIBS
32999 LIBS="-lcrypt $LIBS"
33000 cat >conftest.$ac_ext <<_ACEOF
33003 cat confdefs.h >>conftest.$ac_ext
33004 cat >>conftest.$ac_ext <<_ACEOF
33005 /* end confdefs.h. */
33007 /* Override any gcc2 internal prototype to avoid an error. */
33011 /* We use char because int might match the return type of a gcc2
33012 builtin and then its argument prototype would still apply. */
33022 rm -f conftest.$ac_objext conftest$ac_exeext
33023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33024 (eval $ac_link) 2>conftest.er1
33026 grep -v '^ *+' conftest.er1 >conftest.err
33028 cat conftest.err >&5
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); } &&
33031 { ac_try='test -z "$ac_c_werror_flag"
33032 || test ! -s conftest.err'
33033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33034 (eval $ac_try) 2>&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; } &&
33038 { ac_try='test -s conftest$ac_exeext'
33039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33040 (eval $ac_try) 2>&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
33044 ac_cv_lib_crypt_crypt=yes
33046 echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33049 ac_cv_lib_crypt_crypt=no
33051 rm -f conftest.err conftest.$ac_objext \
33052 conftest$ac_exeext conftest.$ac_ext
33053 LIBS=$ac_check_lib_save_LIBS
33055 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33056 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33057 if test $ac_cv_lib_crypt_crypt = yes; then
33058 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33069 if test $have_crypt = yes ; then
33071 cat >>confdefs.h <<\_ACEOF
33072 #define HAVE_CRYPT 1
33076 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33077 echo "$as_me: WARNING: could not find crypt" >&2;}
33078 if test $ol_enable_crypt = yes ; then
33079 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33080 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33081 { (exit 1); exit 1; }; }
33084 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33085 echo "$as_me: WARNING: disabling crypt support" >&2;}
33090 if test $ol_enable_proctitle != no ; then
33091 echo "$as_me:$LINENO: checking for setproctitle" >&5
33092 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33093 if test "${ac_cv_func_setproctitle+set}" = set; then
33094 echo $ECHO_N "(cached) $ECHO_C" >&6
33096 cat >conftest.$ac_ext <<_ACEOF
33099 cat confdefs.h >>conftest.$ac_ext
33100 cat >>conftest.$ac_ext <<_ACEOF
33101 /* end confdefs.h. */
33102 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33104 #define setproctitle innocuous_setproctitle
33106 /* System header to define __stub macros and hopefully few prototypes,
33107 which can conflict with char setproctitle (); below.
33108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33109 <limits.h> exists even on freestanding compilers. */
33112 # include <limits.h>
33114 # include <assert.h>
33117 #undef setproctitle
33119 /* Override any gcc2 internal prototype to avoid an error. */
33124 /* We use char because int might match the return type of a gcc2
33125 builtin and then its argument prototype would still apply. */
33126 char setproctitle ();
33127 /* The GNU C library defines this for functions which it implements
33128 to always fail with ENOSYS. Some functions are actually named
33129 something starting with __ and the normal name is an alias. */
33130 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33133 char (*f) () = setproctitle;
33142 return f != setproctitle;
33147 rm -f conftest.$ac_objext conftest$ac_exeext
33148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33149 (eval $ac_link) 2>conftest.er1
33151 grep -v '^ *+' conftest.er1 >conftest.err
33153 cat conftest.err >&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); } &&
33156 { ac_try='test -z "$ac_c_werror_flag"
33157 || test ! -s conftest.err'
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; } &&
33163 { ac_try='test -s conftest$ac_exeext'
33164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33165 (eval $ac_try) 2>&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); }; }; then
33169 ac_cv_func_setproctitle=yes
33171 echo "$as_me: failed program was:" >&5
33172 sed 's/^/| /' conftest.$ac_ext >&5
33174 ac_cv_func_setproctitle=no
33176 rm -f conftest.err conftest.$ac_objext \
33177 conftest$ac_exeext conftest.$ac_ext
33179 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33180 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33181 if test $ac_cv_func_setproctitle = yes; then
33182 have_setproctitle=yes
33185 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33186 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33187 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33188 echo $ECHO_N "(cached) $ECHO_C" >&6
33190 ac_check_lib_save_LIBS=$LIBS
33191 LIBS="-lutil $LIBS"
33192 cat >conftest.$ac_ext <<_ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h. */
33199 /* Override any gcc2 internal prototype to avoid an error. */
33203 /* We use char because int might match the return type of a gcc2
33204 builtin and then its argument prototype would still apply. */
33205 char setproctitle ();
33214 rm -f conftest.$ac_objext conftest$ac_exeext
33215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33216 (eval $ac_link) 2>conftest.er1
33218 grep -v '^ *+' conftest.er1 >conftest.err
33220 cat conftest.err >&5
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
33223 { ac_try='test -z "$ac_c_werror_flag"
33224 || test ! -s conftest.err'
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; } &&
33230 { ac_try='test -s conftest$ac_exeext'
33231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232 (eval $ac_try) 2>&5
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; }; then
33236 ac_cv_lib_util_setproctitle=yes
33238 echo "$as_me: failed program was:" >&5
33239 sed 's/^/| /' conftest.$ac_ext >&5
33241 ac_cv_lib_util_setproctitle=no
33243 rm -f conftest.err conftest.$ac_objext \
33244 conftest$ac_exeext conftest.$ac_ext
33245 LIBS=$ac_check_lib_save_LIBS
33247 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33248 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33249 if test $ac_cv_lib_util_setproctitle = yes; then
33250 have_setproctitle=yes
33251 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33253 have_setproctitle=no
33255 "setproctitle.$ac_objext" | \
33256 *" setproctitle.$ac_objext" | \
33257 "setproctitle.$ac_objext "* | \
33258 *" setproctitle.$ac_objext "* ) ;;
33259 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33262 LIBSRCS="$LIBSRCS setproctitle.c"
33268 if test $have_setproctitle = yes ; then
33270 cat >>confdefs.h <<\_ACEOF
33271 #define HAVE_SETPROCTITLE 1
33277 if test $ol_enable_slp != no ; then
33279 for ac_header in slp.h
33281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33283 echo "$as_me:$LINENO: checking for $ac_header" >&5
33284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33286 echo $ECHO_N "(cached) $ECHO_C" >&6
33288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33291 # Is the header compilable?
33292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33293 echo $ECHO_N "checking $ac_header usability... $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
33301 #include <$ac_header>
33303 rm -f conftest.$ac_objext
33304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33305 (eval $ac_compile) 2>conftest.er1
33307 grep -v '^ *+' conftest.er1 >conftest.err
33309 cat conftest.err >&5
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); } &&
33312 { ac_try='test -z "$ac_c_werror_flag"
33313 || test ! -s conftest.err'
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; } &&
33319 { ac_try='test -s conftest.$ac_objext'
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; }; then
33325 ac_header_compiler=yes
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_header_compiler=no
33332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33334 echo "${ECHO_T}$ac_header_compiler" >&6
33336 # Is the header present?
33337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33339 cat >conftest.$ac_ext <<_ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h. */
33345 #include <$ac_header>
33347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33350 grep -v '^ *+' conftest.er1 >conftest.err
33352 cat conftest.err >&5
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); } >/dev/null; then
33355 if test -s conftest.err; then
33356 ac_cpp_err=$ac_c_preproc_warn_flag
33357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33364 if test -z "$ac_cpp_err"; then
33365 ac_header_preproc=yes
33367 echo "$as_me: failed program was:" >&5
33368 sed 's/^/| /' conftest.$ac_ext >&5
33370 ac_header_preproc=no
33372 rm -f conftest.err conftest.$ac_ext
33373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33374 echo "${ECHO_T}$ac_header_preproc" >&6
33376 # So? What about this header?
33377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33383 ac_header_preproc=yes
33386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33400 ## --------------------------------------------- ##
33401 ## Report this to <http://www.openldap.org/its/> ##
33402 ## --------------------------------------------- ##
33405 sed "s/^/$as_me: WARNING: /" >&2
33408 echo "$as_me:$LINENO: checking for $ac_header" >&5
33409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33411 echo $ECHO_N "(cached) $ECHO_C" >&6
33413 eval "$as_ac_Header=\$ac_header_preproc"
33415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33420 cat >>confdefs.h <<_ACEOF
33421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33429 if test $ac_cv_header_slp_h = yes ; then
33430 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33431 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33432 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33433 echo $ECHO_N "(cached) $ECHO_C" >&6
33435 ac_check_lib_save_LIBS=$LIBS
33437 cat >conftest.$ac_ext <<_ACEOF
33440 cat confdefs.h >>conftest.$ac_ext
33441 cat >>conftest.$ac_ext <<_ACEOF
33442 /* end confdefs.h. */
33444 /* Override any gcc2 internal prototype to avoid an error. */
33448 /* We use char because int might match the return type of a gcc2
33449 builtin and then its argument prototype would still apply. */
33459 rm -f conftest.$ac_objext conftest$ac_exeext
33460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33461 (eval $ac_link) 2>conftest.er1
33463 grep -v '^ *+' conftest.er1 >conftest.err
33465 cat conftest.err >&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } &&
33468 { ac_try='test -z "$ac_c_werror_flag"
33469 || test ! -s conftest.err'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; } &&
33475 { ac_try='test -s conftest$ac_exeext'
33476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33477 (eval $ac_try) 2>&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 ac_cv_lib_slp_SLPOpen=yes
33483 echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33486 ac_cv_lib_slp_SLPOpen=no
33488 rm -f conftest.err conftest.$ac_objext \
33489 conftest$ac_exeext conftest.$ac_ext
33490 LIBS=$ac_check_lib_save_LIBS
33492 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33493 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33494 if test $ac_cv_lib_slp_SLPOpen = yes; then
33500 if test $have_slp = yes ; then
33502 cat >>confdefs.h <<\_ACEOF
33506 SLAPD_SLP_LIBS=-lslp
33509 elif test $ol_enable_slp = yes ; then
33510 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33511 echo "$as_me: error: SLP not found" >&2;}
33512 { (exit 1); exit 1; }; }
33517 echo "$as_me:$LINENO: checking for mode_t" >&5
33518 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33519 if test "${ac_cv_type_mode_t+set}" = set; then
33520 echo $ECHO_N "(cached) $ECHO_C" >&6
33522 cat >conftest.$ac_ext <<_ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h. */
33528 $ac_includes_default
33534 if (sizeof (mode_t))
33540 rm -f conftest.$ac_objext
33541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33542 (eval $ac_compile) 2>conftest.er1
33544 grep -v '^ *+' conftest.er1 >conftest.err
33546 cat conftest.err >&5
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); } &&
33549 { ac_try='test -z "$ac_c_werror_flag"
33550 || test ! -s conftest.err'
33551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33552 (eval $ac_try) 2>&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558 (eval $ac_try) 2>&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 ac_cv_type_mode_t=yes
33564 echo "$as_me: failed program was:" >&5
33565 sed 's/^/| /' conftest.$ac_ext >&5
33567 ac_cv_type_mode_t=no
33569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33571 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33572 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33573 if test $ac_cv_type_mode_t = yes; then
33577 cat >>confdefs.h <<_ACEOF
33583 echo "$as_me:$LINENO: checking for off_t" >&5
33584 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33585 if test "${ac_cv_type_off_t+set}" = set; then
33586 echo $ECHO_N "(cached) $ECHO_C" >&6
33588 cat >conftest.$ac_ext <<_ACEOF
33591 cat confdefs.h >>conftest.$ac_ext
33592 cat >>conftest.$ac_ext <<_ACEOF
33593 /* end confdefs.h. */
33594 $ac_includes_default
33600 if (sizeof (off_t))
33606 rm -f conftest.$ac_objext
33607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33608 (eval $ac_compile) 2>conftest.er1
33610 grep -v '^ *+' conftest.er1 >conftest.err
33612 cat conftest.err >&5
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); } &&
33615 { ac_try='test -z "$ac_c_werror_flag"
33616 || test ! -s conftest.err'
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest.$ac_objext'
33623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33624 (eval $ac_try) 2>&5
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
33628 ac_cv_type_off_t=yes
33630 echo "$as_me: failed program was:" >&5
33631 sed 's/^/| /' conftest.$ac_ext >&5
33633 ac_cv_type_off_t=no
33635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33637 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33638 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33639 if test $ac_cv_type_off_t = yes; then
33643 cat >>confdefs.h <<_ACEOF
33649 echo "$as_me:$LINENO: checking for pid_t" >&5
33650 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33651 if test "${ac_cv_type_pid_t+set}" = set; then
33652 echo $ECHO_N "(cached) $ECHO_C" >&6
33654 cat >conftest.$ac_ext <<_ACEOF
33657 cat confdefs.h >>conftest.$ac_ext
33658 cat >>conftest.$ac_ext <<_ACEOF
33659 /* end confdefs.h. */
33660 $ac_includes_default
33666 if (sizeof (pid_t))
33672 rm -f conftest.$ac_objext
33673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33674 (eval $ac_compile) 2>conftest.er1
33676 grep -v '^ *+' conftest.er1 >conftest.err
33678 cat conftest.err >&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } &&
33681 { ac_try='test -z "$ac_c_werror_flag"
33682 || test ! -s conftest.err'
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; } &&
33688 { ac_try='test -s conftest.$ac_objext'
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; }; then
33694 ac_cv_type_pid_t=yes
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33699 ac_cv_type_pid_t=no
33701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33703 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33705 if test $ac_cv_type_pid_t = yes; then
33709 cat >>confdefs.h <<_ACEOF
33715 echo "$as_me:$LINENO: checking for ssize_t" >&5
33716 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33717 if test "${ac_cv_type_ssize_t+set}" = set; then
33718 echo $ECHO_N "(cached) $ECHO_C" >&6
33720 cat >conftest.$ac_ext <<_ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33726 $ac_includes_default
33732 if (sizeof (ssize_t))
33738 rm -f conftest.$ac_objext
33739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33740 (eval $ac_compile) 2>conftest.er1
33742 grep -v '^ *+' conftest.er1 >conftest.err
33744 cat conftest.err >&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } &&
33747 { ac_try='test -z "$ac_c_werror_flag"
33748 || test ! -s conftest.err'
33749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33750 (eval $ac_try) 2>&5
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); }; } &&
33754 { ac_try='test -s conftest.$ac_objext'
33755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33756 (eval $ac_try) 2>&5
33758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759 (exit $ac_status); }; }; then
33760 ac_cv_type_ssize_t=yes
33762 echo "$as_me: failed program was:" >&5
33763 sed 's/^/| /' conftest.$ac_ext >&5
33765 ac_cv_type_ssize_t=no
33767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33769 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33770 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33771 if test $ac_cv_type_ssize_t = yes; then
33775 cat >>confdefs.h <<_ACEOF
33776 #define ssize_t signed int
33781 echo "$as_me:$LINENO: checking for caddr_t" >&5
33782 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33783 if test "${ac_cv_type_caddr_t+set}" = set; then
33784 echo $ECHO_N "(cached) $ECHO_C" >&6
33786 cat >conftest.$ac_ext <<_ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h. */
33792 $ac_includes_default
33798 if (sizeof (caddr_t))
33804 rm -f conftest.$ac_objext
33805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33806 (eval $ac_compile) 2>conftest.er1
33808 grep -v '^ *+' conftest.er1 >conftest.err
33810 cat conftest.err >&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } &&
33813 { ac_try='test -z "$ac_c_werror_flag"
33814 || test ! -s conftest.err'
33815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33816 (eval $ac_try) 2>&5
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); }; } &&
33820 { ac_try='test -s conftest.$ac_objext'
33821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33822 (eval $ac_try) 2>&5
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; }; then
33826 ac_cv_type_caddr_t=yes
33828 echo "$as_me: failed program was:" >&5
33829 sed 's/^/| /' conftest.$ac_ext >&5
33831 ac_cv_type_caddr_t=no
33833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33835 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33836 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33837 if test $ac_cv_type_caddr_t = yes; then
33841 cat >>confdefs.h <<_ACEOF
33842 #define caddr_t char *
33847 echo "$as_me:$LINENO: checking for size_t" >&5
33848 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33849 if test "${ac_cv_type_size_t+set}" = set; then
33850 echo $ECHO_N "(cached) $ECHO_C" >&6
33852 cat >conftest.$ac_ext <<_ACEOF
33855 cat confdefs.h >>conftest.$ac_ext
33856 cat >>conftest.$ac_ext <<_ACEOF
33857 /* end confdefs.h. */
33858 $ac_includes_default
33864 if (sizeof (size_t))
33870 rm -f conftest.$ac_objext
33871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33872 (eval $ac_compile) 2>conftest.er1
33874 grep -v '^ *+' conftest.er1 >conftest.err
33876 cat conftest.err >&5
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); } &&
33879 { ac_try='test -z "$ac_c_werror_flag"
33880 || test ! -s conftest.err'
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; } &&
33886 { ac_try='test -s conftest.$ac_objext'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; }; then
33892 ac_cv_type_size_t=yes
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33897 ac_cv_type_size_t=no
33899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33901 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33902 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33903 if test $ac_cv_type_size_t = yes; then
33907 cat >>confdefs.h <<_ACEOF
33908 #define size_t unsigned
33914 echo "$as_me:$LINENO: checking for long long" >&5
33915 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33916 if test "${ac_cv_type_long_long+set}" = set; then
33917 echo $ECHO_N "(cached) $ECHO_C" >&6
33919 cat >conftest.$ac_ext <<_ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h. */
33925 $ac_includes_default
33929 if ((long long *) 0)
33931 if (sizeof (long long))
33937 rm -f conftest.$ac_objext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33939 (eval $ac_compile) 2>conftest.er1
33941 grep -v '^ *+' conftest.er1 >conftest.err
33943 cat conftest.err >&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); } &&
33946 { ac_try='test -z "$ac_c_werror_flag"
33947 || test ! -s conftest.err'
33948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949 (eval $ac_try) 2>&5
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); }; } &&
33953 { ac_try='test -s conftest.$ac_objext'
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 ac_cv_type_long_long=yes
33961 echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33964 ac_cv_type_long_long=no
33966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33968 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33969 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33970 if test $ac_cv_type_long_long = yes; then
33972 cat >>confdefs.h <<_ACEOF
33973 #define HAVE_LONG_LONG 1
33979 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33980 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33981 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33982 echo $ECHO_N "(cached) $ECHO_C" >&6
33984 cat >conftest.$ac_ext <<_ACEOF
33987 cat confdefs.h >>conftest.$ac_ext
33988 cat >>conftest.$ac_ext <<_ACEOF
33989 /* end confdefs.h. */
33990 $ac_includes_default
33994 if ((ptrdiff_t *) 0)
33996 if (sizeof (ptrdiff_t))
34002 rm -f conftest.$ac_objext
34003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34004 (eval $ac_compile) 2>conftest.er1
34006 grep -v '^ *+' conftest.er1 >conftest.err
34008 cat conftest.err >&5
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); } &&
34011 { ac_try='test -z "$ac_c_werror_flag"
34012 || test ! -s conftest.err'
34013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34014 (eval $ac_try) 2>&5
34016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); }; } &&
34018 { ac_try='test -s conftest.$ac_objext'
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
34024 ac_cv_type_ptrdiff_t=yes
34026 echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34029 ac_cv_type_ptrdiff_t=no
34031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34033 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34034 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34035 if test $ac_cv_type_ptrdiff_t = yes; then
34037 cat >>confdefs.h <<_ACEOF
34038 #define HAVE_PTRDIFF_T 1
34046 echo "$as_me:$LINENO: checking for socklen_t" >&5
34047 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34048 if test "${ac_cv_type_socklen_t+set}" = set; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34051 cat >conftest.$ac_ext <<_ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h. */
34057 $ac_includes_default
34058 #ifdef HAVE_SYS_SOCKET_H
34059 #include <sys/socket.h>
34065 if ((socklen_t *) 0)
34067 if (sizeof (socklen_t))
34073 rm -f conftest.$ac_objext
34074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34075 (eval $ac_compile) 2>conftest.er1
34077 grep -v '^ *+' conftest.er1 >conftest.err
34079 cat conftest.err >&5
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); } &&
34082 { ac_try='test -z "$ac_c_werror_flag"
34083 || test ! -s conftest.err'
34084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085 (eval $ac_try) 2>&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); }; } &&
34089 { ac_try='test -s conftest.$ac_objext'
34090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091 (eval $ac_try) 2>&5
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); }; }; then
34095 ac_cv_type_socklen_t=yes
34097 echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34100 ac_cv_type_socklen_t=no
34102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34104 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34105 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34108 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
34109 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
34110 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34114 set socklen_t int unsigned "unsigned long" long size_t
34115 test "$ac_cv_type_socklen_t" = yes || shift
34116 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
34117 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
34118 cat >conftest.$ac_ext <<_ACEOF
34121 cat confdefs.h >>conftest.$ac_ext
34122 cat >>conftest.$ac_ext <<_ACEOF
34123 /* end confdefs.h. */
34124 $ac_includes_default
34125 #ifdef HAVE_SYS_SOCKET_H
34126 #include <sys/socket.h>
34128 extern int accept(int s, $addrtype *ap, $lentype *lp);
34134 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
34140 rm -f conftest.$ac_objext
34141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34142 (eval $ac_compile) 2>conftest.er1
34144 grep -v '^ *+' conftest.er1 >conftest.err
34146 cat conftest.err >&5
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); } &&
34149 { ac_try='test -z "$ac_c_werror_flag"
34150 || test ! -s conftest.err'
34151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34152 (eval $ac_try) 2>&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); }; } &&
34156 { ac_try='test -s conftest.$ac_objext'
34157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34158 (eval $ac_try) 2>&5
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); }; }; then
34162 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
34164 echo "$as_me: failed program was:" >&5
34165 sed 's/^/| /' conftest.$ac_ext >&5
34168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34172 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
34173 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
34175 cat >>confdefs.h <<_ACEOF
34176 #define ber_socklen_t $ol_cv_type_ber_socklen_t
34180 if test "$ac_cv_type_socklen_t" != yes; then
34182 cat >>confdefs.h <<_ACEOF
34183 #define socklen_t $ol_cv_type_ber_socklen_t
34189 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34190 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34191 if test "${ac_cv_type_signal+set}" = set; then
34192 echo $ECHO_N "(cached) $ECHO_C" >&6
34194 cat >conftest.$ac_ext <<_ACEOF
34197 cat confdefs.h >>conftest.$ac_ext
34198 cat >>conftest.$ac_ext <<_ACEOF
34199 /* end confdefs.h. */
34200 #include <sys/types.h>
34201 #include <signal.h>
34206 extern "C" void (*signal (int, void (*)(int)))(int);
34208 void (*signal ()) ();
34219 rm -f conftest.$ac_objext
34220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34221 (eval $ac_compile) 2>conftest.er1
34223 grep -v '^ *+' conftest.er1 >conftest.err
34225 cat conftest.err >&5
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); } &&
34228 { ac_try='test -z "$ac_c_werror_flag"
34229 || test ! -s conftest.err'
34230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231 (eval $ac_try) 2>&5
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); }; } &&
34235 { ac_try='test -s conftest.$ac_objext'
34236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34237 (eval $ac_try) 2>&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; }; then
34241 ac_cv_type_signal=void
34243 echo "$as_me: failed program was:" >&5
34244 sed 's/^/| /' conftest.$ac_ext >&5
34246 ac_cv_type_signal=int
34248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34250 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34251 echo "${ECHO_T}$ac_cv_type_signal" >&6
34253 cat >>confdefs.h <<_ACEOF
34254 #define RETSIGTYPE $ac_cv_type_signal
34259 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34260 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34261 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34262 echo $ECHO_N "(cached) $ECHO_C" >&6
34264 cat >conftest.$ac_ext <<_ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h. */
34270 $ac_includes_default
34271 #include <signal.h>
34277 if ((sig_atomic_t *) 0)
34279 if (sizeof (sig_atomic_t))
34285 rm -f conftest.$ac_objext
34286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34287 (eval $ac_compile) 2>conftest.er1
34289 grep -v '^ *+' conftest.er1 >conftest.err
34291 cat conftest.err >&5
34292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293 (exit $ac_status); } &&
34294 { ac_try='test -z "$ac_c_werror_flag"
34295 || test ! -s conftest.err'
34296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34297 (eval $ac_try) 2>&5
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300 (exit $ac_status); }; } &&
34301 { ac_try='test -s conftest.$ac_objext'
34302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34303 (eval $ac_try) 2>&5
34305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); }; }; then
34307 ac_cv_type_sig_atomic_t=yes
34309 echo "$as_me: failed program was:" >&5
34310 sed 's/^/| /' conftest.$ac_ext >&5
34312 ac_cv_type_sig_atomic_t=no
34314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34316 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34317 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34318 if test $ac_cv_type_sig_atomic_t = yes; then
34322 cat >>confdefs.h <<_ACEOF
34323 #define sig_atomic_t int
34329 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34330 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34331 if test "${ac_cv_type_uid_t+set}" = set; then
34332 echo $ECHO_N "(cached) $ECHO_C" >&6
34334 cat >conftest.$ac_ext <<_ACEOF
34337 cat confdefs.h >>conftest.$ac_ext
34338 cat >>conftest.$ac_ext <<_ACEOF
34339 /* end confdefs.h. */
34340 #include <sys/types.h>
34343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34344 $EGREP "uid_t" >/dev/null 2>&1; then
34345 ac_cv_type_uid_t=yes
34347 ac_cv_type_uid_t=no
34352 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34353 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34354 if test $ac_cv_type_uid_t = no; then
34356 cat >>confdefs.h <<\_ACEOF
34361 cat >>confdefs.h <<\_ACEOF
34368 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34370 if test "${ac_cv_header_time+set}" = set; then
34371 echo $ECHO_N "(cached) $ECHO_C" >&6
34373 cat >conftest.$ac_ext <<_ACEOF
34376 cat confdefs.h >>conftest.$ac_ext
34377 cat >>conftest.$ac_ext <<_ACEOF
34378 /* end confdefs.h. */
34379 #include <sys/types.h>
34380 #include <sys/time.h>
34386 if ((struct tm *) 0)
34392 rm -f conftest.$ac_objext
34393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34394 (eval $ac_compile) 2>conftest.er1
34396 grep -v '^ *+' conftest.er1 >conftest.err
34398 cat conftest.err >&5
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); } &&
34401 { ac_try='test -z "$ac_c_werror_flag"
34402 || test ! -s conftest.err'
34403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34404 (eval $ac_try) 2>&5
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); }; } &&
34408 { ac_try='test -s conftest.$ac_objext'
34409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34410 (eval $ac_try) 2>&5
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); }; }; then
34414 ac_cv_header_time=yes
34416 echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.$ac_ext >&5
34419 ac_cv_header_time=no
34421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34423 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34424 echo "${ECHO_T}$ac_cv_header_time" >&6
34425 if test $ac_cv_header_time = yes; then
34427 cat >>confdefs.h <<\_ACEOF
34428 #define TIME_WITH_SYS_TIME 1
34433 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34434 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34435 if test "${ac_cv_struct_tm+set}" = set; then
34436 echo $ECHO_N "(cached) $ECHO_C" >&6
34438 cat >conftest.$ac_ext <<_ACEOF
34441 cat confdefs.h >>conftest.$ac_ext
34442 cat >>conftest.$ac_ext <<_ACEOF
34443 /* end confdefs.h. */
34444 #include <sys/types.h>
34450 struct tm *tp; tp->tm_sec;
34455 rm -f conftest.$ac_objext
34456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34457 (eval $ac_compile) 2>conftest.er1
34459 grep -v '^ *+' conftest.er1 >conftest.err
34461 cat conftest.err >&5
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } &&
34464 { ac_try='test -z "$ac_c_werror_flag"
34465 || test ! -s conftest.err'
34466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34467 (eval $ac_try) 2>&5
34469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470 (exit $ac_status); }; } &&
34471 { ac_try='test -s conftest.$ac_objext'
34472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34473 (eval $ac_try) 2>&5
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); }; }; then
34477 ac_cv_struct_tm=time.h
34479 echo "$as_me: failed program was:" >&5
34480 sed 's/^/| /' conftest.$ac_ext >&5
34482 ac_cv_struct_tm=sys/time.h
34484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34486 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34487 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34488 if test $ac_cv_struct_tm = sys/time.h; then
34490 cat >>confdefs.h <<\_ACEOF
34491 #define TM_IN_SYS_TIME 1
34496 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34497 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34498 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34499 echo $ECHO_N "(cached) $ECHO_C" >&6
34501 cat >conftest.$ac_ext <<_ACEOF
34504 cat confdefs.h >>conftest.$ac_ext
34505 cat >>conftest.$ac_ext <<_ACEOF
34506 /* end confdefs.h. */
34507 $ac_includes_default
34511 static struct stat ac_aggr;
34512 if (ac_aggr.st_blksize)
34518 rm -f conftest.$ac_objext
34519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34520 (eval $ac_compile) 2>conftest.er1
34522 grep -v '^ *+' conftest.er1 >conftest.err
34524 cat conftest.err >&5
34525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); } &&
34527 { ac_try='test -z "$ac_c_werror_flag"
34528 || test ! -s conftest.err'
34529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530 (eval $ac_try) 2>&5
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; } &&
34534 { ac_try='test -s conftest.$ac_objext'
34535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536 (eval $ac_try) 2>&5
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; }; then
34540 ac_cv_member_struct_stat_st_blksize=yes
34542 echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34545 cat >conftest.$ac_ext <<_ACEOF
34548 cat confdefs.h >>conftest.$ac_ext
34549 cat >>conftest.$ac_ext <<_ACEOF
34550 /* end confdefs.h. */
34551 $ac_includes_default
34555 static struct stat ac_aggr;
34556 if (sizeof ac_aggr.st_blksize)
34562 rm -f conftest.$ac_objext
34563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34564 (eval $ac_compile) 2>conftest.er1
34566 grep -v '^ *+' conftest.er1 >conftest.err
34568 cat conftest.err >&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); } &&
34571 { ac_try='test -z "$ac_c_werror_flag"
34572 || test ! -s conftest.err'
34573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574 (eval $ac_try) 2>&5
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); }; } &&
34578 { ac_try='test -s conftest.$ac_objext'
34579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580 (eval $ac_try) 2>&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); }; }; then
34584 ac_cv_member_struct_stat_st_blksize=yes
34586 echo "$as_me: failed program was:" >&5
34587 sed 's/^/| /' conftest.$ac_ext >&5
34589 ac_cv_member_struct_stat_st_blksize=no
34591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34595 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34596 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34597 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34599 cat >>confdefs.h <<_ACEOF
34600 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34606 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34607 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34608 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34609 echo $ECHO_N "(cached) $ECHO_C" >&6
34611 cat >conftest.$ac_ext <<_ACEOF
34614 cat confdefs.h >>conftest.$ac_ext
34615 cat >>conftest.$ac_ext <<_ACEOF
34616 /* end confdefs.h. */
34617 $ac_includes_default
34623 static struct passwd ac_aggr;
34624 if (ac_aggr.pw_gecos)
34630 rm -f conftest.$ac_objext
34631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34632 (eval $ac_compile) 2>conftest.er1
34634 grep -v '^ *+' conftest.er1 >conftest.err
34636 cat conftest.err >&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } &&
34639 { ac_try='test -z "$ac_c_werror_flag"
34640 || test ! -s conftest.err'
34641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34642 (eval $ac_try) 2>&5
34644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34645 (exit $ac_status); }; } &&
34646 { ac_try='test -s conftest.$ac_objext'
34647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34648 (eval $ac_try) 2>&5
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; }; then
34652 ac_cv_member_struct_passwd_pw_gecos=yes
34654 echo "$as_me: failed program was:" >&5
34655 sed 's/^/| /' conftest.$ac_ext >&5
34657 cat >conftest.$ac_ext <<_ACEOF
34660 cat confdefs.h >>conftest.$ac_ext
34661 cat >>conftest.$ac_ext <<_ACEOF
34662 /* end confdefs.h. */
34663 $ac_includes_default
34669 static struct passwd ac_aggr;
34670 if (sizeof ac_aggr.pw_gecos)
34676 rm -f conftest.$ac_objext
34677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34678 (eval $ac_compile) 2>conftest.er1
34680 grep -v '^ *+' conftest.er1 >conftest.err
34682 cat conftest.err >&5
34683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); } &&
34685 { ac_try='test -z "$ac_c_werror_flag"
34686 || test ! -s conftest.err'
34687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688 (eval $ac_try) 2>&5
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); }; } &&
34692 { ac_try='test -s conftest.$ac_objext'
34693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34694 (eval $ac_try) 2>&5
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); }; }; then
34698 ac_cv_member_struct_passwd_pw_gecos=yes
34700 echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34703 ac_cv_member_struct_passwd_pw_gecos=no
34705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34709 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34710 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34711 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34713 cat >>confdefs.h <<_ACEOF
34714 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34720 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34721 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34722 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34723 echo $ECHO_N "(cached) $ECHO_C" >&6
34725 cat >conftest.$ac_ext <<_ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h. */
34731 $ac_includes_default
34737 static struct passwd ac_aggr;
34738 if (ac_aggr.pw_passwd)
34744 rm -f conftest.$ac_objext
34745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34746 (eval $ac_compile) 2>conftest.er1
34748 grep -v '^ *+' conftest.er1 >conftest.err
34750 cat conftest.err >&5
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
34753 { ac_try='test -z "$ac_c_werror_flag"
34754 || test ! -s conftest.err'
34755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34756 (eval $ac_try) 2>&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); }; } &&
34760 { ac_try='test -s conftest.$ac_objext'
34761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762 (eval $ac_try) 2>&5
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); }; }; then
34766 ac_cv_member_struct_passwd_pw_passwd=yes
34768 echo "$as_me: failed program was:" >&5
34769 sed 's/^/| /' conftest.$ac_ext >&5
34771 cat >conftest.$ac_ext <<_ACEOF
34774 cat confdefs.h >>conftest.$ac_ext
34775 cat >>conftest.$ac_ext <<_ACEOF
34776 /* end confdefs.h. */
34777 $ac_includes_default
34783 static struct passwd ac_aggr;
34784 if (sizeof ac_aggr.pw_passwd)
34790 rm -f conftest.$ac_objext
34791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34792 (eval $ac_compile) 2>conftest.er1
34794 grep -v '^ *+' conftest.er1 >conftest.err
34796 cat conftest.err >&5
34797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); } &&
34799 { ac_try='test -z "$ac_c_werror_flag"
34800 || test ! -s conftest.err'
34801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34802 (eval $ac_try) 2>&5
34804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805 (exit $ac_status); }; } &&
34806 { ac_try='test -s conftest.$ac_objext'
34807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34808 (eval $ac_try) 2>&5
34810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811 (exit $ac_status); }; }; then
34812 ac_cv_member_struct_passwd_pw_passwd=yes
34814 echo "$as_me: failed program was:" >&5
34815 sed 's/^/| /' conftest.$ac_ext >&5
34817 ac_cv_member_struct_passwd_pw_passwd=no
34819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34823 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34824 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34825 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34827 cat >>confdefs.h <<_ACEOF
34828 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34835 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34836 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34837 if test "${ol_cv_c_upper_lower+set}" = set; then
34838 echo $ECHO_N "(cached) $ECHO_C" >&6
34841 if test "$cross_compiling" = yes; then
34842 ol_cv_c_upper_lower=safe
34844 cat >conftest.$ac_ext <<_ACEOF
34847 cat confdefs.h >>conftest.$ac_ext
34848 cat >>conftest.$ac_ext <<_ACEOF
34849 /* end confdefs.h. */
34854 if ('C' == toupper('C'))
34860 rm -f conftest$ac_exeext
34861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34862 (eval $ac_link) 2>&5
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34867 (eval $ac_try) 2>&5
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 ol_cv_c_upper_lower=no
34873 echo "$as_me: program exited with status $ac_status" >&5
34874 echo "$as_me: failed program was:" >&5
34875 sed 's/^/| /' conftest.$ac_ext >&5
34877 ( exit $ac_status )
34878 ol_cv_c_upper_lower=yes
34880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34883 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34884 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34885 if test $ol_cv_c_upper_lower != no ; then
34887 cat >>confdefs.h <<\_ACEOF
34888 #define C_UPPER_LOWER 1
34893 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34894 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34895 if test "${ac_cv_c_const+set}" = set; then
34896 echo $ECHO_N "(cached) $ECHO_C" >&6
34898 cat >conftest.$ac_ext <<_ACEOF
34901 cat confdefs.h >>conftest.$ac_ext
34902 cat >>conftest.$ac_ext <<_ACEOF
34903 /* end confdefs.h. */
34908 /* FIXME: Include the comments suggested by Paul. */
34909 #ifndef __cplusplus
34910 /* Ultrix mips cc rejects this. */
34911 typedef int charset[2];
34913 /* SunOS 4.1.1 cc rejects this. */
34914 char const *const *ccp;
34916 /* NEC SVR4.0.2 mips cc rejects this. */
34917 struct point {int x, y;};
34918 static struct point const zero = {0,0};
34919 /* AIX XL C 1.02.0.0 rejects this.
34920 It does not let you subtract one const X* pointer from another in
34921 an arm of an if-expression whose if-part is not a constant
34923 const char *g = "string";
34924 ccp = &g + (g ? g-g : 0);
34925 /* HPUX 7.0 cc rejects these. */
34928 ccp = (char const *const *) p;
34929 { /* SCO 3.2v4 cc rejects this. */
34931 char const *s = 0 ? (char *) 0 : (char const *) 0;
34935 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34936 int x[] = {25, 17};
34937 const int *foo = &x[0];
34940 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34941 typedef const int *iptr;
34945 { /* AIX XL C 1.02.0.0 rejects this saying
34946 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34947 struct s { int j; const int *ap[3]; };
34948 struct s *b; b->j = 5;
34950 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34951 const int foo = 10;
34959 rm -f conftest.$ac_objext
34960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34961 (eval $ac_compile) 2>conftest.er1
34963 grep -v '^ *+' conftest.er1 >conftest.err
34965 cat conftest.err >&5
34966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967 (exit $ac_status); } &&
34968 { ac_try='test -z "$ac_c_werror_flag"
34969 || test ! -s conftest.err'
34970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34971 (eval $ac_try) 2>&5
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; } &&
34975 { ac_try='test -s conftest.$ac_objext'
34976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34977 (eval $ac_try) 2>&5
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); }; }; then
34983 echo "$as_me: failed program was:" >&5
34984 sed 's/^/| /' conftest.$ac_ext >&5
34988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34990 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34991 echo "${ECHO_T}$ac_cv_c_const" >&6
34992 if test $ac_cv_c_const = no; then
34994 cat >>confdefs.h <<\_ACEOF
35000 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35001 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35002 if test "${ol_cv_c_volatile+set}" = set; then
35003 echo $ECHO_N "(cached) $ECHO_C" >&6
35005 cat >conftest.$ac_ext <<_ACEOF
35008 cat confdefs.h >>conftest.$ac_ext
35009 cat >>conftest.$ac_ext <<_ACEOF
35010 /* end confdefs.h. */
35015 volatile int a; int * volatile b = x ? &y : &z;
35016 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35022 rm -f conftest.$ac_objext
35023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35024 (eval $ac_compile) 2>conftest.er1
35026 grep -v '^ *+' conftest.er1 >conftest.err
35028 cat conftest.err >&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } &&
35031 { ac_try='test -z "$ac_c_werror_flag"
35032 || test ! -s conftest.err'
35033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35034 (eval $ac_try) 2>&5
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); }; } &&
35038 { ac_try='test -s conftest.$ac_objext'
35039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040 (eval $ac_try) 2>&5
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); }; }; then
35044 ol_cv_c_volatile=yes
35046 echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35049 ol_cv_c_volatile=no
35051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35053 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35054 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35055 if test $ol_cv_c_volatile = yes; then
35059 cat >>confdefs.h <<\_ACEOF
35066 if test $cross_compiling = yes ; then
35067 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35068 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35070 cat >>confdefs.h <<\_ACEOF
35071 #define CROSS_COMPILING 1
35075 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35076 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35077 if test "${ac_cv_c_bigendian+set}" = set; then
35078 echo $ECHO_N "(cached) $ECHO_C" >&6
35080 # See if sys/param.h defines the BYTE_ORDER macro.
35081 cat >conftest.$ac_ext <<_ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h. */
35087 #include <sys/types.h>
35088 #include <sys/param.h>
35093 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35094 bogus endian macros
35101 rm -f conftest.$ac_objext
35102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35103 (eval $ac_compile) 2>conftest.er1
35105 grep -v '^ *+' conftest.er1 >conftest.err
35107 cat conftest.err >&5
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); } &&
35110 { ac_try='test -z "$ac_c_werror_flag"
35111 || test ! -s conftest.err'
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; } &&
35117 { ac_try='test -s conftest.$ac_objext'
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; }; then
35123 # It does; now see whether it defined to BIG_ENDIAN or not.
35124 cat >conftest.$ac_ext <<_ACEOF
35127 cat confdefs.h >>conftest.$ac_ext
35128 cat >>conftest.$ac_ext <<_ACEOF
35129 /* end confdefs.h. */
35130 #include <sys/types.h>
35131 #include <sys/param.h>
35136 #if BYTE_ORDER != BIG_ENDIAN
35144 rm -f conftest.$ac_objext
35145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35146 (eval $ac_compile) 2>conftest.er1
35148 grep -v '^ *+' conftest.er1 >conftest.err
35150 cat conftest.err >&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } &&
35153 { ac_try='test -z "$ac_c_werror_flag"
35154 || test ! -s conftest.err'
35155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35156 (eval $ac_try) 2>&5
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); }; } &&
35160 { ac_try='test -s conftest.$ac_objext'
35161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162 (eval $ac_try) 2>&5
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); }; }; then
35166 ac_cv_c_bigendian=yes
35168 echo "$as_me: failed program was:" >&5
35169 sed 's/^/| /' conftest.$ac_ext >&5
35171 ac_cv_c_bigendian=no
35173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35175 echo "$as_me: failed program was:" >&5
35176 sed 's/^/| /' conftest.$ac_ext >&5
35178 # It does not; compile a test program.
35179 if test "$cross_compiling" = yes; then
35180 # try to guess the endianness by grepping values into an object file
35181 ac_cv_c_bigendian=unknown
35182 cat >conftest.$ac_ext <<_ACEOF
35185 cat confdefs.h >>conftest.$ac_ext
35186 cat >>conftest.$ac_ext <<_ACEOF
35187 /* end confdefs.h. */
35188 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35189 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35190 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35191 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35192 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35193 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35197 _ascii (); _ebcdic ();
35202 rm -f conftest.$ac_objext
35203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35204 (eval $ac_compile) 2>conftest.er1
35206 grep -v '^ *+' conftest.er1 >conftest.err
35208 cat conftest.err >&5
35209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); } &&
35211 { ac_try='test -z "$ac_c_werror_flag"
35212 || test ! -s conftest.err'
35213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35214 (eval $ac_try) 2>&5
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; } &&
35218 { ac_try='test -s conftest.$ac_objext'
35219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35220 (eval $ac_try) 2>&5
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); }; }; then
35224 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35225 ac_cv_c_bigendian=yes
35227 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35228 if test "$ac_cv_c_bigendian" = unknown; then
35229 ac_cv_c_bigendian=no
35231 # finding both strings is unlikely to happen, but who knows?
35232 ac_cv_c_bigendian=unknown
35236 echo "$as_me: failed program was:" >&5
35237 sed 's/^/| /' conftest.$ac_ext >&5
35240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35242 cat >conftest.$ac_ext <<_ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h. */
35251 /* Are we little or big endian? From Harbison&Steele. */
35255 char c[sizeof (long)];
35258 exit (u.c[sizeof (long) - 1] == 1);
35261 rm -f conftest$ac_exeext
35262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35263 (eval $ac_link) 2>&5
35265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35268 (eval $ac_try) 2>&5
35270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); }; }; then
35272 ac_cv_c_bigendian=no
35274 echo "$as_me: program exited with status $ac_status" >&5
35275 echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35278 ( exit $ac_status )
35279 ac_cv_c_bigendian=yes
35281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35286 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35287 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35288 case $ac_cv_c_bigendian in
35291 cat >>confdefs.h <<\_ACEOF
35292 #define WORDS_BIGENDIAN 1
35298 { { echo "$as_me:$LINENO: error: unknown endianness
35299 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35300 echo "$as_me: error: unknown endianness
35301 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35302 { (exit 1); exit 1; }; } ;;
35307 echo "$as_me:$LINENO: checking for short" >&5
35308 echo $ECHO_N "checking for short... $ECHO_C" >&6
35309 if test "${ac_cv_type_short+set}" = set; then
35310 echo $ECHO_N "(cached) $ECHO_C" >&6
35312 cat >conftest.$ac_ext <<_ACEOF
35315 cat confdefs.h >>conftest.$ac_ext
35316 cat >>conftest.$ac_ext <<_ACEOF
35317 /* end confdefs.h. */
35318 $ac_includes_default
35324 if (sizeof (short))
35330 rm -f conftest.$ac_objext
35331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35332 (eval $ac_compile) 2>conftest.er1
35334 grep -v '^ *+' conftest.er1 >conftest.err
35336 cat conftest.err >&5
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); } &&
35339 { ac_try='test -z "$ac_c_werror_flag"
35340 || test ! -s conftest.err'
35341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35342 (eval $ac_try) 2>&5
35344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345 (exit $ac_status); }; } &&
35346 { ac_try='test -s conftest.$ac_objext'
35347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35348 (eval $ac_try) 2>&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); }; }; then
35352 ac_cv_type_short=yes
35354 echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35357 ac_cv_type_short=no
35359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35361 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35362 echo "${ECHO_T}$ac_cv_type_short" >&6
35364 echo "$as_me:$LINENO: checking size of short" >&5
35365 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35366 if test "${ac_cv_sizeof_short+set}" = set; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35369 if test "$ac_cv_type_short" = yes; then
35370 # The cast to unsigned long works around a bug in the HP C Compiler
35371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35373 # This bug is HP SR number 8606223364.
35374 if test "$cross_compiling" = yes; then
35375 # Depending upon the size, compute the lo and hi bounds.
35376 cat >conftest.$ac_ext <<_ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 $ac_includes_default
35386 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35393 rm -f conftest.$ac_objext
35394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35395 (eval $ac_compile) 2>conftest.er1
35397 grep -v '^ *+' conftest.er1 >conftest.err
35399 cat conftest.err >&5
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); } &&
35402 { ac_try='test -z "$ac_c_werror_flag"
35403 || test ! -s conftest.err'
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; } &&
35409 { ac_try='test -s conftest.$ac_objext'
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; }; then
35417 cat >conftest.$ac_ext <<_ACEOF
35420 cat confdefs.h >>conftest.$ac_ext
35421 cat >>conftest.$ac_ext <<_ACEOF
35422 /* end confdefs.h. */
35423 $ac_includes_default
35427 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35434 rm -f conftest.$ac_objext
35435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35436 (eval $ac_compile) 2>conftest.er1
35438 grep -v '^ *+' conftest.er1 >conftest.err
35440 cat conftest.err >&5
35441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442 (exit $ac_status); } &&
35443 { ac_try='test -z "$ac_c_werror_flag"
35444 || test ! -s conftest.err'
35445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446 (eval $ac_try) 2>&5
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); }; } &&
35450 { ac_try='test -s conftest.$ac_objext'
35451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35452 (eval $ac_try) 2>&5
35454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455 (exit $ac_status); }; }; then
35456 ac_hi=$ac_mid; break
35458 echo "$as_me: failed program was:" >&5
35459 sed 's/^/| /' conftest.$ac_ext >&5
35461 ac_lo=`expr $ac_mid + 1`
35462 if test $ac_lo -le $ac_mid; then
35466 ac_mid=`expr 2 '*' $ac_mid + 1`
35468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35471 echo "$as_me: failed program was:" >&5
35472 sed 's/^/| /' conftest.$ac_ext >&5
35474 cat >conftest.$ac_ext <<_ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h. */
35480 $ac_includes_default
35484 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35491 rm -f conftest.$ac_objext
35492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35493 (eval $ac_compile) 2>conftest.er1
35495 grep -v '^ *+' conftest.er1 >conftest.err
35497 cat conftest.err >&5
35498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499 (exit $ac_status); } &&
35500 { ac_try='test -z "$ac_c_werror_flag"
35501 || test ! -s conftest.err'
35502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35503 (eval $ac_try) 2>&5
35505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); }; } &&
35507 { ac_try='test -s conftest.$ac_objext'
35508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35509 (eval $ac_try) 2>&5
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); }; }; then
35515 cat >conftest.$ac_ext <<_ACEOF
35518 cat confdefs.h >>conftest.$ac_ext
35519 cat >>conftest.$ac_ext <<_ACEOF
35520 /* end confdefs.h. */
35521 $ac_includes_default
35525 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35532 rm -f conftest.$ac_objext
35533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35534 (eval $ac_compile) 2>conftest.er1
35536 grep -v '^ *+' conftest.er1 >conftest.err
35538 cat conftest.err >&5
35539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540 (exit $ac_status); } &&
35541 { ac_try='test -z "$ac_c_werror_flag"
35542 || test ! -s conftest.err'
35543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 (eval $ac_try) 2>&5
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); }; } &&
35548 { ac_try='test -s conftest.$ac_objext'
35549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550 (eval $ac_try) 2>&5
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); }; }; then
35554 ac_lo=$ac_mid; break
35556 echo "$as_me: failed program was:" >&5
35557 sed 's/^/| /' conftest.$ac_ext >&5
35559 ac_hi=`expr '(' $ac_mid ')' - 1`
35560 if test $ac_mid -le $ac_hi; then
35564 ac_mid=`expr 2 '*' $ac_mid`
35566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35569 echo "$as_me: failed program was:" >&5
35570 sed 's/^/| /' conftest.$ac_ext >&5
35574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35577 # Binary search between lo and hi bounds.
35578 while test "x$ac_lo" != "x$ac_hi"; do
35579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35580 cat >conftest.$ac_ext <<_ACEOF
35583 cat confdefs.h >>conftest.$ac_ext
35584 cat >>conftest.$ac_ext <<_ACEOF
35585 /* end confdefs.h. */
35586 $ac_includes_default
35590 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35597 rm -f conftest.$ac_objext
35598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35599 (eval $ac_compile) 2>conftest.er1
35601 grep -v '^ *+' conftest.er1 >conftest.err
35603 cat conftest.err >&5
35604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605 (exit $ac_status); } &&
35606 { ac_try='test -z "$ac_c_werror_flag"
35607 || test ! -s conftest.err'
35608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35609 (eval $ac_try) 2>&5
35611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612 (exit $ac_status); }; } &&
35613 { ac_try='test -s conftest.$ac_objext'
35614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615 (eval $ac_try) 2>&5
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); }; }; then
35621 echo "$as_me: failed program was:" >&5
35622 sed 's/^/| /' conftest.$ac_ext >&5
35624 ac_lo=`expr '(' $ac_mid ')' + 1`
35626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35629 ?*) ac_cv_sizeof_short=$ac_lo;;
35630 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35631 See \`config.log' for more details." >&5
35632 echo "$as_me: error: cannot compute sizeof (short), 77
35633 See \`config.log' for more details." >&2;}
35634 { (exit 1); exit 1; }; } ;;
35637 if test "$cross_compiling" = yes; then
35638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35639 See \`config.log' for more details." >&5
35640 echo "$as_me: error: cannot run test program while cross compiling
35641 See \`config.log' for more details." >&2;}
35642 { (exit 1); exit 1; }; }
35644 cat >conftest.$ac_ext <<_ACEOF
35647 cat confdefs.h >>conftest.$ac_ext
35648 cat >>conftest.$ac_ext <<_ACEOF
35649 /* end confdefs.h. */
35650 $ac_includes_default
35651 long longval () { return (long) (sizeof (short)); }
35652 unsigned long ulongval () { return (long) (sizeof (short)); }
35654 #include <stdlib.h>
35659 FILE *f = fopen ("conftest.val", "w");
35662 if (((long) (sizeof (short))) < 0)
35664 long i = longval ();
35665 if (i != ((long) (sizeof (short))))
35667 fprintf (f, "%ld\n", i);
35671 unsigned long i = ulongval ();
35672 if (i != ((long) (sizeof (short))))
35674 fprintf (f, "%lu\n", i);
35676 exit (ferror (f) || fclose (f) != 0);
35682 rm -f conftest$ac_exeext
35683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35684 (eval $ac_link) 2>&5
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; }; then
35693 ac_cv_sizeof_short=`cat conftest.val`
35695 echo "$as_me: program exited with status $ac_status" >&5
35696 echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35699 ( exit $ac_status )
35700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35701 See \`config.log' for more details." >&5
35702 echo "$as_me: error: cannot compute sizeof (short), 77
35703 See \`config.log' for more details." >&2;}
35704 { (exit 1); exit 1; }; }
35706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35711 ac_cv_sizeof_short=0
35714 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35715 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35716 cat >>confdefs.h <<_ACEOF
35717 #define SIZEOF_SHORT $ac_cv_sizeof_short
35721 echo "$as_me:$LINENO: checking for int" >&5
35722 echo $ECHO_N "checking for int... $ECHO_C" >&6
35723 if test "${ac_cv_type_int+set}" = set; then
35724 echo $ECHO_N "(cached) $ECHO_C" >&6
35726 cat >conftest.$ac_ext <<_ACEOF
35729 cat confdefs.h >>conftest.$ac_ext
35730 cat >>conftest.$ac_ext <<_ACEOF
35731 /* end confdefs.h. */
35732 $ac_includes_default
35744 rm -f conftest.$ac_objext
35745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35746 (eval $ac_compile) 2>conftest.er1
35748 grep -v '^ *+' conftest.er1 >conftest.err
35750 cat conftest.err >&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } &&
35753 { ac_try='test -z "$ac_c_werror_flag"
35754 || test ! -s conftest.err'
35755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756 (eval $ac_try) 2>&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); }; } &&
35760 { ac_try='test -s conftest.$ac_objext'
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; }; then
35768 echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.$ac_ext >&5
35773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35775 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35776 echo "${ECHO_T}$ac_cv_type_int" >&6
35778 echo "$as_me:$LINENO: checking size of int" >&5
35779 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35780 if test "${ac_cv_sizeof_int+set}" = set; then
35781 echo $ECHO_N "(cached) $ECHO_C" >&6
35783 if test "$ac_cv_type_int" = yes; then
35784 # The cast to unsigned long works around a bug in the HP C Compiler
35785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35787 # This bug is HP SR number 8606223364.
35788 if test "$cross_compiling" = yes; then
35789 # Depending upon the size, compute the lo and hi bounds.
35790 cat >conftest.$ac_ext <<_ACEOF
35793 cat confdefs.h >>conftest.$ac_ext
35794 cat >>conftest.$ac_ext <<_ACEOF
35795 /* end confdefs.h. */
35796 $ac_includes_default
35800 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35807 rm -f conftest.$ac_objext
35808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35809 (eval $ac_compile) 2>conftest.er1
35811 grep -v '^ *+' conftest.er1 >conftest.err
35813 cat conftest.err >&5
35814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815 (exit $ac_status); } &&
35816 { ac_try='test -z "$ac_c_werror_flag"
35817 || test ! -s conftest.err'
35818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35819 (eval $ac_try) 2>&5
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); }; } &&
35823 { ac_try='test -s conftest.$ac_objext'
35824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35825 (eval $ac_try) 2>&5
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); }; }; then
35831 cat >conftest.$ac_ext <<_ACEOF
35834 cat confdefs.h >>conftest.$ac_ext
35835 cat >>conftest.$ac_ext <<_ACEOF
35836 /* end confdefs.h. */
35837 $ac_includes_default
35841 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35848 rm -f conftest.$ac_objext
35849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35850 (eval $ac_compile) 2>conftest.er1
35852 grep -v '^ *+' conftest.er1 >conftest.err
35854 cat conftest.err >&5
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); } &&
35857 { ac_try='test -z "$ac_c_werror_flag"
35858 || test ! -s conftest.err'
35859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35860 (eval $ac_try) 2>&5
35862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863 (exit $ac_status); }; } &&
35864 { ac_try='test -s conftest.$ac_objext'
35865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35866 (eval $ac_try) 2>&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); }; }; then
35870 ac_hi=$ac_mid; break
35872 echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35875 ac_lo=`expr $ac_mid + 1`
35876 if test $ac_lo -le $ac_mid; then
35880 ac_mid=`expr 2 '*' $ac_mid + 1`
35882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35885 echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35888 cat >conftest.$ac_ext <<_ACEOF
35891 cat confdefs.h >>conftest.$ac_ext
35892 cat >>conftest.$ac_ext <<_ACEOF
35893 /* end confdefs.h. */
35894 $ac_includes_default
35898 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35905 rm -f conftest.$ac_objext
35906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35907 (eval $ac_compile) 2>conftest.er1
35909 grep -v '^ *+' conftest.er1 >conftest.err
35911 cat conftest.err >&5
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); } &&
35914 { ac_try='test -z "$ac_c_werror_flag"
35915 || test ! -s conftest.err'
35916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35917 (eval $ac_try) 2>&5
35919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920 (exit $ac_status); }; } &&
35921 { ac_try='test -s conftest.$ac_objext'
35922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35923 (eval $ac_try) 2>&5
35925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35926 (exit $ac_status); }; }; then
35929 cat >conftest.$ac_ext <<_ACEOF
35932 cat confdefs.h >>conftest.$ac_ext
35933 cat >>conftest.$ac_ext <<_ACEOF
35934 /* end confdefs.h. */
35935 $ac_includes_default
35939 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35946 rm -f conftest.$ac_objext
35947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35948 (eval $ac_compile) 2>conftest.er1
35950 grep -v '^ *+' conftest.er1 >conftest.err
35952 cat conftest.err >&5
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); } &&
35955 { ac_try='test -z "$ac_c_werror_flag"
35956 || test ! -s conftest.err'
35957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35958 (eval $ac_try) 2>&5
35960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961 (exit $ac_status); }; } &&
35962 { ac_try='test -s conftest.$ac_objext'
35963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35964 (eval $ac_try) 2>&5
35966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); }; }; then
35968 ac_lo=$ac_mid; break
35970 echo "$as_me: failed program was:" >&5
35971 sed 's/^/| /' conftest.$ac_ext >&5
35973 ac_hi=`expr '(' $ac_mid ')' - 1`
35974 if test $ac_mid -le $ac_hi; then
35978 ac_mid=`expr 2 '*' $ac_mid`
35980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35983 echo "$as_me: failed program was:" >&5
35984 sed 's/^/| /' conftest.$ac_ext >&5
35988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35991 # Binary search between lo and hi bounds.
35992 while test "x$ac_lo" != "x$ac_hi"; do
35993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35994 cat >conftest.$ac_ext <<_ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h. */
36000 $ac_includes_default
36004 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36011 rm -f conftest.$ac_objext
36012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36013 (eval $ac_compile) 2>conftest.er1
36015 grep -v '^ *+' conftest.er1 >conftest.err
36017 cat conftest.err >&5
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); } &&
36020 { ac_try='test -z "$ac_c_werror_flag"
36021 || test ! -s conftest.err'
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; } &&
36027 { ac_try='test -s conftest.$ac_objext'
36028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029 (eval $ac_try) 2>&5
36031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032 (exit $ac_status); }; }; then
36035 echo "$as_me: failed program was:" >&5
36036 sed 's/^/| /' conftest.$ac_ext >&5
36038 ac_lo=`expr '(' $ac_mid ')' + 1`
36040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36043 ?*) ac_cv_sizeof_int=$ac_lo;;
36044 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36045 See \`config.log' for more details." >&5
36046 echo "$as_me: error: cannot compute sizeof (int), 77
36047 See \`config.log' for more details." >&2;}
36048 { (exit 1); exit 1; }; } ;;
36051 if test "$cross_compiling" = yes; then
36052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36053 See \`config.log' for more details." >&5
36054 echo "$as_me: error: cannot run test program while cross compiling
36055 See \`config.log' for more details." >&2;}
36056 { (exit 1); exit 1; }; }
36058 cat >conftest.$ac_ext <<_ACEOF
36061 cat confdefs.h >>conftest.$ac_ext
36062 cat >>conftest.$ac_ext <<_ACEOF
36063 /* end confdefs.h. */
36064 $ac_includes_default
36065 long longval () { return (long) (sizeof (int)); }
36066 unsigned long ulongval () { return (long) (sizeof (int)); }
36068 #include <stdlib.h>
36073 FILE *f = fopen ("conftest.val", "w");
36076 if (((long) (sizeof (int))) < 0)
36078 long i = longval ();
36079 if (i != ((long) (sizeof (int))))
36081 fprintf (f, "%ld\n", i);
36085 unsigned long i = ulongval ();
36086 if (i != ((long) (sizeof (int))))
36088 fprintf (f, "%lu\n", i);
36090 exit (ferror (f) || fclose (f) != 0);
36096 rm -f conftest$ac_exeext
36097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36098 (eval $ac_link) 2>&5
36100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36103 (eval $ac_try) 2>&5
36105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106 (exit $ac_status); }; }; then
36107 ac_cv_sizeof_int=`cat conftest.val`
36109 echo "$as_me: program exited with status $ac_status" >&5
36110 echo "$as_me: failed program was:" >&5
36111 sed 's/^/| /' conftest.$ac_ext >&5
36113 ( exit $ac_status )
36114 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36115 See \`config.log' for more details." >&5
36116 echo "$as_me: error: cannot compute sizeof (int), 77
36117 See \`config.log' for more details." >&2;}
36118 { (exit 1); exit 1; }; }
36120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36128 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36129 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36130 cat >>confdefs.h <<_ACEOF
36131 #define SIZEOF_INT $ac_cv_sizeof_int
36135 echo "$as_me:$LINENO: checking for long" >&5
36136 echo $ECHO_N "checking for long... $ECHO_C" >&6
36137 if test "${ac_cv_type_long+set}" = set; then
36138 echo $ECHO_N "(cached) $ECHO_C" >&6
36140 cat >conftest.$ac_ext <<_ACEOF
36143 cat confdefs.h >>conftest.$ac_ext
36144 cat >>conftest.$ac_ext <<_ACEOF
36145 /* end confdefs.h. */
36146 $ac_includes_default
36158 rm -f conftest.$ac_objext
36159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36160 (eval $ac_compile) 2>conftest.er1
36162 grep -v '^ *+' conftest.er1 >conftest.err
36164 cat conftest.err >&5
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); } &&
36167 { ac_try='test -z "$ac_c_werror_flag"
36168 || test ! -s conftest.err'
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; } &&
36174 { ac_try='test -s conftest.$ac_objext'
36175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36176 (eval $ac_try) 2>&5
36178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36179 (exit $ac_status); }; }; then
36180 ac_cv_type_long=yes
36182 echo "$as_me: failed program was:" >&5
36183 sed 's/^/| /' conftest.$ac_ext >&5
36187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36189 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36190 echo "${ECHO_T}$ac_cv_type_long" >&6
36192 echo "$as_me:$LINENO: checking size of long" >&5
36193 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36194 if test "${ac_cv_sizeof_long+set}" = set; then
36195 echo $ECHO_N "(cached) $ECHO_C" >&6
36197 if test "$ac_cv_type_long" = yes; then
36198 # The cast to unsigned long works around a bug in the HP C Compiler
36199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36201 # This bug is HP SR number 8606223364.
36202 if test "$cross_compiling" = yes; then
36203 # Depending upon the size, compute the lo and hi bounds.
36204 cat >conftest.$ac_ext <<_ACEOF
36207 cat confdefs.h >>conftest.$ac_ext
36208 cat >>conftest.$ac_ext <<_ACEOF
36209 /* end confdefs.h. */
36210 $ac_includes_default
36214 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36221 rm -f conftest.$ac_objext
36222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36223 (eval $ac_compile) 2>conftest.er1
36225 grep -v '^ *+' conftest.er1 >conftest.err
36227 cat conftest.err >&5
36228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36229 (exit $ac_status); } &&
36230 { ac_try='test -z "$ac_c_werror_flag"
36231 || test ! -s conftest.err'
36232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36233 (eval $ac_try) 2>&5
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); }; } &&
36237 { ac_try='test -s conftest.$ac_objext'
36238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36239 (eval $ac_try) 2>&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); }; }; then
36245 cat >conftest.$ac_ext <<_ACEOF
36248 cat confdefs.h >>conftest.$ac_ext
36249 cat >>conftest.$ac_ext <<_ACEOF
36250 /* end confdefs.h. */
36251 $ac_includes_default
36255 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36262 rm -f conftest.$ac_objext
36263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36264 (eval $ac_compile) 2>conftest.er1
36266 grep -v '^ *+' conftest.er1 >conftest.err
36268 cat conftest.err >&5
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); } &&
36271 { ac_try='test -z "$ac_c_werror_flag"
36272 || test ! -s conftest.err'
36273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274 (eval $ac_try) 2>&5
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); }; } &&
36278 { ac_try='test -s conftest.$ac_objext'
36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280 (eval $ac_try) 2>&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); }; }; then
36284 ac_hi=$ac_mid; break
36286 echo "$as_me: failed program was:" >&5
36287 sed 's/^/| /' conftest.$ac_ext >&5
36289 ac_lo=`expr $ac_mid + 1`
36290 if test $ac_lo -le $ac_mid; then
36294 ac_mid=`expr 2 '*' $ac_mid + 1`
36296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36299 echo "$as_me: failed program was:" >&5
36300 sed 's/^/| /' conftest.$ac_ext >&5
36302 cat >conftest.$ac_ext <<_ACEOF
36305 cat confdefs.h >>conftest.$ac_ext
36306 cat >>conftest.$ac_ext <<_ACEOF
36307 /* end confdefs.h. */
36308 $ac_includes_default
36312 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36319 rm -f conftest.$ac_objext
36320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36321 (eval $ac_compile) 2>conftest.er1
36323 grep -v '^ *+' conftest.er1 >conftest.err
36325 cat conftest.err >&5
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); } &&
36328 { ac_try='test -z "$ac_c_werror_flag"
36329 || test ! -s conftest.err'
36330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36331 (eval $ac_try) 2>&5
36333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36334 (exit $ac_status); }; } &&
36335 { ac_try='test -s conftest.$ac_objext'
36336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36337 (eval $ac_try) 2>&5
36339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340 (exit $ac_status); }; }; then
36343 cat >conftest.$ac_ext <<_ACEOF
36346 cat confdefs.h >>conftest.$ac_ext
36347 cat >>conftest.$ac_ext <<_ACEOF
36348 /* end confdefs.h. */
36349 $ac_includes_default
36353 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36360 rm -f conftest.$ac_objext
36361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36362 (eval $ac_compile) 2>conftest.er1
36364 grep -v '^ *+' conftest.er1 >conftest.err
36366 cat conftest.err >&5
36367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368 (exit $ac_status); } &&
36369 { ac_try='test -z "$ac_c_werror_flag"
36370 || test ! -s conftest.err'
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; } &&
36376 { ac_try='test -s conftest.$ac_objext'
36377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36378 (eval $ac_try) 2>&5
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); }; }; then
36382 ac_lo=$ac_mid; break
36384 echo "$as_me: failed program was:" >&5
36385 sed 's/^/| /' conftest.$ac_ext >&5
36387 ac_hi=`expr '(' $ac_mid ')' - 1`
36388 if test $ac_mid -le $ac_hi; then
36392 ac_mid=`expr 2 '*' $ac_mid`
36394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36397 echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.$ac_ext >&5
36402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36405 # Binary search between lo and hi bounds.
36406 while test "x$ac_lo" != "x$ac_hi"; do
36407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36408 cat >conftest.$ac_ext <<_ACEOF
36411 cat confdefs.h >>conftest.$ac_ext
36412 cat >>conftest.$ac_ext <<_ACEOF
36413 /* end confdefs.h. */
36414 $ac_includes_default
36418 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36425 rm -f conftest.$ac_objext
36426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36427 (eval $ac_compile) 2>conftest.er1
36429 grep -v '^ *+' conftest.er1 >conftest.err
36431 cat conftest.err >&5
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); } &&
36434 { ac_try='test -z "$ac_c_werror_flag"
36435 || test ! -s conftest.err'
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; } &&
36441 { ac_try='test -s conftest.$ac_objext'
36442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443 (eval $ac_try) 2>&5
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); }; }; then
36449 echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36452 ac_lo=`expr '(' $ac_mid ')' + 1`
36454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36457 ?*) ac_cv_sizeof_long=$ac_lo;;
36458 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36459 See \`config.log' for more details." >&5
36460 echo "$as_me: error: cannot compute sizeof (long), 77
36461 See \`config.log' for more details." >&2;}
36462 { (exit 1); exit 1; }; } ;;
36465 if test "$cross_compiling" = yes; then
36466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36467 See \`config.log' for more details." >&5
36468 echo "$as_me: error: cannot run test program while cross compiling
36469 See \`config.log' for more details." >&2;}
36470 { (exit 1); exit 1; }; }
36472 cat >conftest.$ac_ext <<_ACEOF
36475 cat confdefs.h >>conftest.$ac_ext
36476 cat >>conftest.$ac_ext <<_ACEOF
36477 /* end confdefs.h. */
36478 $ac_includes_default
36479 long longval () { return (long) (sizeof (long)); }
36480 unsigned long ulongval () { return (long) (sizeof (long)); }
36482 #include <stdlib.h>
36487 FILE *f = fopen ("conftest.val", "w");
36490 if (((long) (sizeof (long))) < 0)
36492 long i = longval ();
36493 if (i != ((long) (sizeof (long))))
36495 fprintf (f, "%ld\n", i);
36499 unsigned long i = ulongval ();
36500 if (i != ((long) (sizeof (long))))
36502 fprintf (f, "%lu\n", i);
36504 exit (ferror (f) || fclose (f) != 0);
36510 rm -f conftest$ac_exeext
36511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36512 (eval $ac_link) 2>&5
36514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517 (eval $ac_try) 2>&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); }; }; then
36521 ac_cv_sizeof_long=`cat conftest.val`
36523 echo "$as_me: program exited with status $ac_status" >&5
36524 echo "$as_me: failed program was:" >&5
36525 sed 's/^/| /' conftest.$ac_ext >&5
36527 ( exit $ac_status )
36528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36529 See \`config.log' for more details." >&5
36530 echo "$as_me: error: cannot compute sizeof (long), 77
36531 See \`config.log' for more details." >&2;}
36532 { (exit 1); exit 1; }; }
36534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36539 ac_cv_sizeof_long=0
36542 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36543 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36544 cat >>confdefs.h <<_ACEOF
36545 #define SIZEOF_LONG $ac_cv_sizeof_long
36549 echo "$as_me:$LINENO: checking for long long" >&5
36550 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36551 if test "${ac_cv_type_long_long+set}" = set; then
36552 echo $ECHO_N "(cached) $ECHO_C" >&6
36554 cat >conftest.$ac_ext <<_ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h. */
36560 $ac_includes_default
36564 if ((long long *) 0)
36566 if (sizeof (long long))
36572 rm -f conftest.$ac_objext
36573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36574 (eval $ac_compile) 2>conftest.er1
36576 grep -v '^ *+' conftest.er1 >conftest.err
36578 cat conftest.err >&5
36579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580 (exit $ac_status); } &&
36581 { ac_try='test -z "$ac_c_werror_flag"
36582 || test ! -s conftest.err'
36583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36584 (eval $ac_try) 2>&5
36586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587 (exit $ac_status); }; } &&
36588 { ac_try='test -s conftest.$ac_objext'
36589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36590 (eval $ac_try) 2>&5
36592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36593 (exit $ac_status); }; }; then
36594 ac_cv_type_long_long=yes
36596 echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36599 ac_cv_type_long_long=no
36601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36604 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36606 echo "$as_me:$LINENO: checking size of long long" >&5
36607 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36608 if test "${ac_cv_sizeof_long_long+set}" = set; then
36609 echo $ECHO_N "(cached) $ECHO_C" >&6
36611 if test "$ac_cv_type_long_long" = yes; then
36612 # The cast to unsigned long works around a bug in the HP C Compiler
36613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36615 # This bug is HP SR number 8606223364.
36616 if test "$cross_compiling" = yes; then
36617 # Depending upon the size, compute the lo and hi bounds.
36618 cat >conftest.$ac_ext <<_ACEOF
36621 cat confdefs.h >>conftest.$ac_ext
36622 cat >>conftest.$ac_ext <<_ACEOF
36623 /* end confdefs.h. */
36624 $ac_includes_default
36628 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36635 rm -f conftest.$ac_objext
36636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36637 (eval $ac_compile) 2>conftest.er1
36639 grep -v '^ *+' conftest.er1 >conftest.err
36641 cat conftest.err >&5
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); } &&
36644 { ac_try='test -z "$ac_c_werror_flag"
36645 || test ! -s conftest.err'
36646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36647 (eval $ac_try) 2>&5
36649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 (exit $ac_status); }; } &&
36651 { ac_try='test -s conftest.$ac_objext'
36652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36653 (eval $ac_try) 2>&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); }; }; then
36659 cat >conftest.$ac_ext <<_ACEOF
36662 cat confdefs.h >>conftest.$ac_ext
36663 cat >>conftest.$ac_ext <<_ACEOF
36664 /* end confdefs.h. */
36665 $ac_includes_default
36669 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36676 rm -f conftest.$ac_objext
36677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36678 (eval $ac_compile) 2>conftest.er1
36680 grep -v '^ *+' conftest.er1 >conftest.err
36682 cat conftest.err >&5
36683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); } &&
36685 { ac_try='test -z "$ac_c_werror_flag"
36686 || test ! -s conftest.err'
36687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36688 (eval $ac_try) 2>&5
36690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); }; } &&
36692 { ac_try='test -s conftest.$ac_objext'
36693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694 (eval $ac_try) 2>&5
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); }; }; then
36698 ac_hi=$ac_mid; break
36700 echo "$as_me: failed program was:" >&5
36701 sed 's/^/| /' conftest.$ac_ext >&5
36703 ac_lo=`expr $ac_mid + 1`
36704 if test $ac_lo -le $ac_mid; then
36708 ac_mid=`expr 2 '*' $ac_mid + 1`
36710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36713 echo "$as_me: failed program was:" >&5
36714 sed 's/^/| /' conftest.$ac_ext >&5
36716 cat >conftest.$ac_ext <<_ACEOF
36719 cat confdefs.h >>conftest.$ac_ext
36720 cat >>conftest.$ac_ext <<_ACEOF
36721 /* end confdefs.h. */
36722 $ac_includes_default
36726 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36733 rm -f conftest.$ac_objext
36734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36735 (eval $ac_compile) 2>conftest.er1
36737 grep -v '^ *+' conftest.er1 >conftest.err
36739 cat conftest.err >&5
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); } &&
36742 { ac_try='test -z "$ac_c_werror_flag"
36743 || test ! -s conftest.err'
36744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36745 (eval $ac_try) 2>&5
36747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748 (exit $ac_status); }; } &&
36749 { ac_try='test -s conftest.$ac_objext'
36750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36751 (eval $ac_try) 2>&5
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); }; }; then
36757 cat >conftest.$ac_ext <<_ACEOF
36760 cat confdefs.h >>conftest.$ac_ext
36761 cat >>conftest.$ac_ext <<_ACEOF
36762 /* end confdefs.h. */
36763 $ac_includes_default
36767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36774 rm -f conftest.$ac_objext
36775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36776 (eval $ac_compile) 2>conftest.er1
36778 grep -v '^ *+' conftest.er1 >conftest.err
36780 cat conftest.err >&5
36781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782 (exit $ac_status); } &&
36783 { ac_try='test -z "$ac_c_werror_flag"
36784 || test ! -s conftest.err'
36785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36786 (eval $ac_try) 2>&5
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); }; } &&
36790 { ac_try='test -s conftest.$ac_objext'
36791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36792 (eval $ac_try) 2>&5
36794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36795 (exit $ac_status); }; }; then
36796 ac_lo=$ac_mid; break
36798 echo "$as_me: failed program was:" >&5
36799 sed 's/^/| /' conftest.$ac_ext >&5
36801 ac_hi=`expr '(' $ac_mid ')' - 1`
36802 if test $ac_mid -le $ac_hi; then
36806 ac_mid=`expr 2 '*' $ac_mid`
36808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36811 echo "$as_me: failed program was:" >&5
36812 sed 's/^/| /' conftest.$ac_ext >&5
36816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36819 # Binary search between lo and hi bounds.
36820 while test "x$ac_lo" != "x$ac_hi"; do
36821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36822 cat >conftest.$ac_ext <<_ACEOF
36825 cat confdefs.h >>conftest.$ac_ext
36826 cat >>conftest.$ac_ext <<_ACEOF
36827 /* end confdefs.h. */
36828 $ac_includes_default
36832 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36839 rm -f conftest.$ac_objext
36840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36841 (eval $ac_compile) 2>conftest.er1
36843 grep -v '^ *+' conftest.er1 >conftest.err
36845 cat conftest.err >&5
36846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847 (exit $ac_status); } &&
36848 { ac_try='test -z "$ac_c_werror_flag"
36849 || test ! -s conftest.err'
36850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851 (eval $ac_try) 2>&5
36853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 (exit $ac_status); }; } &&
36855 { ac_try='test -s conftest.$ac_objext'
36856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857 (eval $ac_try) 2>&5
36859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 (exit $ac_status); }; }; then
36863 echo "$as_me: failed program was:" >&5
36864 sed 's/^/| /' conftest.$ac_ext >&5
36866 ac_lo=`expr '(' $ac_mid ')' + 1`
36868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36871 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36873 See \`config.log' for more details." >&5
36874 echo "$as_me: error: cannot compute sizeof (long long), 77
36875 See \`config.log' for more details." >&2;}
36876 { (exit 1); exit 1; }; } ;;
36879 if test "$cross_compiling" = yes; then
36880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36881 See \`config.log' for more details." >&5
36882 echo "$as_me: error: cannot run test program while cross compiling
36883 See \`config.log' for more details." >&2;}
36884 { (exit 1); exit 1; }; }
36886 cat >conftest.$ac_ext <<_ACEOF
36889 cat confdefs.h >>conftest.$ac_ext
36890 cat >>conftest.$ac_ext <<_ACEOF
36891 /* end confdefs.h. */
36892 $ac_includes_default
36893 long longval () { return (long) (sizeof (long long)); }
36894 unsigned long ulongval () { return (long) (sizeof (long long)); }
36896 #include <stdlib.h>
36901 FILE *f = fopen ("conftest.val", "w");
36904 if (((long) (sizeof (long long))) < 0)
36906 long i = longval ();
36907 if (i != ((long) (sizeof (long long))))
36909 fprintf (f, "%ld\n", i);
36913 unsigned long i = ulongval ();
36914 if (i != ((long) (sizeof (long long))))
36916 fprintf (f, "%lu\n", i);
36918 exit (ferror (f) || fclose (f) != 0);
36924 rm -f conftest$ac_exeext
36925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36926 (eval $ac_link) 2>&5
36928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931 (eval $ac_try) 2>&5
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); }; }; then
36935 ac_cv_sizeof_long_long=`cat conftest.val`
36937 echo "$as_me: program exited with status $ac_status" >&5
36938 echo "$as_me: failed program was:" >&5
36939 sed 's/^/| /' conftest.$ac_ext >&5
36941 ( exit $ac_status )
36942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36943 See \`config.log' for more details." >&5
36944 echo "$as_me: error: cannot compute sizeof (long long), 77
36945 See \`config.log' for more details." >&2;}
36946 { (exit 1); exit 1; }; }
36948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36953 ac_cv_sizeof_long_long=0
36956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36957 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36958 cat >>confdefs.h <<_ACEOF
36959 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36963 echo "$as_me:$LINENO: checking for wchar_t" >&5
36964 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36965 if test "${ac_cv_type_wchar_t+set}" = set; then
36966 echo $ECHO_N "(cached) $ECHO_C" >&6
36968 cat >conftest.$ac_ext <<_ACEOF
36971 cat confdefs.h >>conftest.$ac_ext
36972 cat >>conftest.$ac_ext <<_ACEOF
36973 /* end confdefs.h. */
36974 $ac_includes_default
36980 if (sizeof (wchar_t))
36986 rm -f conftest.$ac_objext
36987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36988 (eval $ac_compile) 2>conftest.er1
36990 grep -v '^ *+' conftest.er1 >conftest.err
36992 cat conftest.err >&5
36993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36994 (exit $ac_status); } &&
36995 { ac_try='test -z "$ac_c_werror_flag"
36996 || test ! -s conftest.err'
36997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36998 (eval $ac_try) 2>&5
37000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001 (exit $ac_status); }; } &&
37002 { ac_try='test -s conftest.$ac_objext'
37003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37004 (eval $ac_try) 2>&5
37006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007 (exit $ac_status); }; }; then
37008 ac_cv_type_wchar_t=yes
37010 echo "$as_me: failed program was:" >&5
37011 sed 's/^/| /' conftest.$ac_ext >&5
37013 ac_cv_type_wchar_t=no
37015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37017 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37018 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37020 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37021 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37022 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37023 echo $ECHO_N "(cached) $ECHO_C" >&6
37025 if test "$ac_cv_type_wchar_t" = yes; then
37026 # The cast to unsigned long works around a bug in the HP C Compiler
37027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37029 # This bug is HP SR number 8606223364.
37030 if test "$cross_compiling" = yes; then
37031 # Depending upon the size, compute the lo and hi bounds.
37032 cat >conftest.$ac_ext <<_ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h. */
37038 $ac_includes_default
37042 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37049 rm -f conftest.$ac_objext
37050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37051 (eval $ac_compile) 2>conftest.er1
37053 grep -v '^ *+' conftest.er1 >conftest.err
37055 cat conftest.err >&5
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); } &&
37058 { ac_try='test -z "$ac_c_werror_flag"
37059 || test ! -s conftest.err'
37060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37061 (eval $ac_try) 2>&5
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; } &&
37065 { ac_try='test -s conftest.$ac_objext'
37066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37067 (eval $ac_try) 2>&5
37069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070 (exit $ac_status); }; }; then
37073 cat >conftest.$ac_ext <<_ACEOF
37076 cat confdefs.h >>conftest.$ac_ext
37077 cat >>conftest.$ac_ext <<_ACEOF
37078 /* end confdefs.h. */
37079 $ac_includes_default
37083 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37090 rm -f conftest.$ac_objext
37091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37092 (eval $ac_compile) 2>conftest.er1
37094 grep -v '^ *+' conftest.er1 >conftest.err
37096 cat conftest.err >&5
37097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); } &&
37099 { ac_try='test -z "$ac_c_werror_flag"
37100 || test ! -s conftest.err'
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } &&
37106 { ac_try='test -s conftest.$ac_objext'
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; }; then
37112 ac_hi=$ac_mid; break
37114 echo "$as_me: failed program was:" >&5
37115 sed 's/^/| /' conftest.$ac_ext >&5
37117 ac_lo=`expr $ac_mid + 1`
37118 if test $ac_lo -le $ac_mid; then
37122 ac_mid=`expr 2 '*' $ac_mid + 1`
37124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37127 echo "$as_me: failed program was:" >&5
37128 sed 's/^/| /' conftest.$ac_ext >&5
37130 cat >conftest.$ac_ext <<_ACEOF
37133 cat confdefs.h >>conftest.$ac_ext
37134 cat >>conftest.$ac_ext <<_ACEOF
37135 /* end confdefs.h. */
37136 $ac_includes_default
37140 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37147 rm -f conftest.$ac_objext
37148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37149 (eval $ac_compile) 2>conftest.er1
37151 grep -v '^ *+' conftest.er1 >conftest.err
37153 cat conftest.err >&5
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); } &&
37156 { ac_try='test -z "$ac_c_werror_flag"
37157 || test ! -s conftest.err'
37158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37159 (eval $ac_try) 2>&5
37161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162 (exit $ac_status); }; } &&
37163 { ac_try='test -s conftest.$ac_objext'
37164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37165 (eval $ac_try) 2>&5
37167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); }; }; then
37171 cat >conftest.$ac_ext <<_ACEOF
37174 cat confdefs.h >>conftest.$ac_ext
37175 cat >>conftest.$ac_ext <<_ACEOF
37176 /* end confdefs.h. */
37177 $ac_includes_default
37181 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37188 rm -f conftest.$ac_objext
37189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37190 (eval $ac_compile) 2>conftest.er1
37192 grep -v '^ *+' conftest.er1 >conftest.err
37194 cat conftest.err >&5
37195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196 (exit $ac_status); } &&
37197 { ac_try='test -z "$ac_c_werror_flag"
37198 || test ! -s conftest.err'
37199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37200 (eval $ac_try) 2>&5
37202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203 (exit $ac_status); }; } &&
37204 { ac_try='test -s conftest.$ac_objext'
37205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37206 (eval $ac_try) 2>&5
37208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209 (exit $ac_status); }; }; then
37210 ac_lo=$ac_mid; break
37212 echo "$as_me: failed program was:" >&5
37213 sed 's/^/| /' conftest.$ac_ext >&5
37215 ac_hi=`expr '(' $ac_mid ')' - 1`
37216 if test $ac_mid -le $ac_hi; then
37220 ac_mid=`expr 2 '*' $ac_mid`
37222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37225 echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37233 # Binary search between lo and hi bounds.
37234 while test "x$ac_lo" != "x$ac_hi"; do
37235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37236 cat >conftest.$ac_ext <<_ACEOF
37239 cat confdefs.h >>conftest.$ac_ext
37240 cat >>conftest.$ac_ext <<_ACEOF
37241 /* end confdefs.h. */
37242 $ac_includes_default
37246 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37253 rm -f conftest.$ac_objext
37254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37255 (eval $ac_compile) 2>conftest.er1
37257 grep -v '^ *+' conftest.er1 >conftest.err
37259 cat conftest.err >&5
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); } &&
37262 { ac_try='test -z "$ac_c_werror_flag"
37263 || test ! -s conftest.err'
37264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37265 (eval $ac_try) 2>&5
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); }; } &&
37269 { ac_try='test -s conftest.$ac_objext'
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; }; then
37277 echo "$as_me: failed program was:" >&5
37278 sed 's/^/| /' conftest.$ac_ext >&5
37280 ac_lo=`expr '(' $ac_mid ')' + 1`
37282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37285 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37287 See \`config.log' for more details." >&5
37288 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37289 See \`config.log' for more details." >&2;}
37290 { (exit 1); exit 1; }; } ;;
37293 if test "$cross_compiling" = yes; then
37294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37295 See \`config.log' for more details." >&5
37296 echo "$as_me: error: cannot run test program while cross compiling
37297 See \`config.log' for more details." >&2;}
37298 { (exit 1); exit 1; }; }
37300 cat >conftest.$ac_ext <<_ACEOF
37303 cat confdefs.h >>conftest.$ac_ext
37304 cat >>conftest.$ac_ext <<_ACEOF
37305 /* end confdefs.h. */
37306 $ac_includes_default
37307 long longval () { return (long) (sizeof (wchar_t)); }
37308 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37310 #include <stdlib.h>
37315 FILE *f = fopen ("conftest.val", "w");
37318 if (((long) (sizeof (wchar_t))) < 0)
37320 long i = longval ();
37321 if (i != ((long) (sizeof (wchar_t))))
37323 fprintf (f, "%ld\n", i);
37327 unsigned long i = ulongval ();
37328 if (i != ((long) (sizeof (wchar_t))))
37330 fprintf (f, "%lu\n", i);
37332 exit (ferror (f) || fclose (f) != 0);
37338 rm -f conftest$ac_exeext
37339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37340 (eval $ac_link) 2>&5
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37345 (eval $ac_try) 2>&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); }; }; then
37349 ac_cv_sizeof_wchar_t=`cat conftest.val`
37351 echo "$as_me: program exited with status $ac_status" >&5
37352 echo "$as_me: failed program was:" >&5
37353 sed 's/^/| /' conftest.$ac_ext >&5
37355 ( exit $ac_status )
37356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37357 See \`config.log' for more details." >&5
37358 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37359 See \`config.log' for more details." >&2;}
37360 { (exit 1); exit 1; }; }
37362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37367 ac_cv_sizeof_wchar_t=0
37370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37371 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37372 cat >>confdefs.h <<_ACEOF
37373 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37378 if test "$ac_cv_sizeof_int" -lt 4 ; then
37379 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37380 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37383 cat >>confdefs.h <<\_ACEOF
37384 #define LBER_INT_T long
37389 cat >>confdefs.h <<\_ACEOF
37390 #define LBER_INT_T int
37396 cat >>confdefs.h <<\_ACEOF
37397 #define LBER_LEN_T long
37401 cat >>confdefs.h <<\_ACEOF
37402 #define LBER_SOCKET_T int
37406 cat >>confdefs.h <<\_ACEOF
37407 #define LBER_TAG_T long
37411 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37412 if test $ac_cv_sizeof_long_long -gt 4 ; then
37413 ol_with_mp=longlong
37415 cat >>confdefs.h <<\_ACEOF
37416 #define USE_MP_LONG_LONG 1
37419 elif test $ol_with_mp = longlong ; then
37420 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37421 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37422 { (exit 1); exit 1; }; }
37425 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37426 if test $ac_cv_sizeof_long -gt 4 ; then
37429 cat >>confdefs.h <<\_ACEOF
37430 #define USE_MP_LONG 1
37433 elif test $ol_with_mp = long ; then
37434 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37435 echo "$as_me: error: long unusable for multiple precision" >&2;}
37436 { (exit 1); exit 1; }; }
37439 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37441 for ac_header in openssl/bn.h
37443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37445 echo "$as_me:$LINENO: checking for $ac_header" >&5
37446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37448 echo $ECHO_N "(cached) $ECHO_C" >&6
37450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37453 # Is the header compilable?
37454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37456 cat >conftest.$ac_ext <<_ACEOF
37459 cat confdefs.h >>conftest.$ac_ext
37460 cat >>conftest.$ac_ext <<_ACEOF
37461 /* end confdefs.h. */
37462 $ac_includes_default
37463 #include <$ac_header>
37465 rm -f conftest.$ac_objext
37466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37467 (eval $ac_compile) 2>conftest.er1
37469 grep -v '^ *+' conftest.er1 >conftest.err
37471 cat conftest.err >&5
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); } &&
37474 { ac_try='test -z "$ac_c_werror_flag"
37475 || test ! -s conftest.err'
37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477 (eval $ac_try) 2>&5
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; } &&
37481 { ac_try='test -s conftest.$ac_objext'
37482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37483 (eval $ac_try) 2>&5
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); }; }; then
37487 ac_header_compiler=yes
37489 echo "$as_me: failed program was:" >&5
37490 sed 's/^/| /' conftest.$ac_ext >&5
37492 ac_header_compiler=no
37494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37496 echo "${ECHO_T}$ac_header_compiler" >&6
37498 # Is the header present?
37499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37501 cat >conftest.$ac_ext <<_ACEOF
37504 cat confdefs.h >>conftest.$ac_ext
37505 cat >>conftest.$ac_ext <<_ACEOF
37506 /* end confdefs.h. */
37507 #include <$ac_header>
37509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37512 grep -v '^ *+' conftest.er1 >conftest.err
37514 cat conftest.err >&5
37515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516 (exit $ac_status); } >/dev/null; then
37517 if test -s conftest.err; then
37518 ac_cpp_err=$ac_c_preproc_warn_flag
37519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37526 if test -z "$ac_cpp_err"; then
37527 ac_header_preproc=yes
37529 echo "$as_me: failed program was:" >&5
37530 sed 's/^/| /' conftest.$ac_ext >&5
37532 ac_header_preproc=no
37534 rm -f conftest.err conftest.$ac_ext
37535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37536 echo "${ECHO_T}$ac_header_preproc" >&6
37538 # So? What about this header?
37539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37545 ac_header_preproc=yes
37548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37562 ## --------------------------------------------- ##
37563 ## Report this to <http://www.openldap.org/its/> ##
37564 ## --------------------------------------------- ##
37567 sed "s/^/$as_me: WARNING: /" >&2
37570 echo "$as_me:$LINENO: checking for $ac_header" >&5
37571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37573 echo $ECHO_N "(cached) $ECHO_C" >&6
37575 eval "$as_ac_Header=\$ac_header_preproc"
37577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37582 cat >>confdefs.h <<_ACEOF
37583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37591 for ac_header in openssl/crypto.h
37593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37595 echo "$as_me:$LINENO: checking for $ac_header" >&5
37596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37598 echo $ECHO_N "(cached) $ECHO_C" >&6
37600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37603 # Is the header compilable?
37604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37606 cat >conftest.$ac_ext <<_ACEOF
37609 cat confdefs.h >>conftest.$ac_ext
37610 cat >>conftest.$ac_ext <<_ACEOF
37611 /* end confdefs.h. */
37612 $ac_includes_default
37613 #include <$ac_header>
37615 rm -f conftest.$ac_objext
37616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37617 (eval $ac_compile) 2>conftest.er1
37619 grep -v '^ *+' conftest.er1 >conftest.err
37621 cat conftest.err >&5
37622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623 (exit $ac_status); } &&
37624 { ac_try='test -z "$ac_c_werror_flag"
37625 || test ! -s conftest.err'
37626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37627 (eval $ac_try) 2>&5
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); }; } &&
37631 { ac_try='test -s conftest.$ac_objext'
37632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37633 (eval $ac_try) 2>&5
37635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636 (exit $ac_status); }; }; then
37637 ac_header_compiler=yes
37639 echo "$as_me: failed program was:" >&5
37640 sed 's/^/| /' conftest.$ac_ext >&5
37642 ac_header_compiler=no
37644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37646 echo "${ECHO_T}$ac_header_compiler" >&6
37648 # Is the header present?
37649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37651 cat >conftest.$ac_ext <<_ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h. */
37657 #include <$ac_header>
37659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37662 grep -v '^ *+' conftest.er1 >conftest.err
37664 cat conftest.err >&5
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); } >/dev/null; then
37667 if test -s conftest.err; then
37668 ac_cpp_err=$ac_c_preproc_warn_flag
37669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37676 if test -z "$ac_cpp_err"; then
37677 ac_header_preproc=yes
37679 echo "$as_me: failed program was:" >&5
37680 sed 's/^/| /' conftest.$ac_ext >&5
37682 ac_header_preproc=no
37684 rm -f conftest.err conftest.$ac_ext
37685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37686 echo "${ECHO_T}$ac_header_preproc" >&6
37688 # So? What about this header?
37689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37695 ac_header_preproc=yes
37698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37712 ## --------------------------------------------- ##
37713 ## Report this to <http://www.openldap.org/its/> ##
37714 ## --------------------------------------------- ##
37717 sed "s/^/$as_me: WARNING: /" >&2
37720 echo "$as_me:$LINENO: checking for $ac_header" >&5
37721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37723 echo $ECHO_N "(cached) $ECHO_C" >&6
37725 eval "$as_ac_Header=\$ac_header_preproc"
37727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37732 cat >>confdefs.h <<_ACEOF
37733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37740 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37741 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37742 test "$ol_with_tls" = "found" ; then
37745 cat >>confdefs.h <<\_ACEOF
37746 #define USE_MP_BIGNUM 1
37749 elif test $ol_with_mp = bignum ; then
37750 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37751 echo "$as_me: error: bignum not available" >&2;}
37752 { (exit 1); exit 1; }; }
37755 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37757 for ac_header in gmp.h
37759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37761 echo "$as_me:$LINENO: checking for $ac_header" >&5
37762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37764 echo $ECHO_N "(cached) $ECHO_C" >&6
37766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37769 # Is the header compilable?
37770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37772 cat >conftest.$ac_ext <<_ACEOF
37775 cat confdefs.h >>conftest.$ac_ext
37776 cat >>conftest.$ac_ext <<_ACEOF
37777 /* end confdefs.h. */
37778 $ac_includes_default
37779 #include <$ac_header>
37781 rm -f conftest.$ac_objext
37782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37783 (eval $ac_compile) 2>conftest.er1
37785 grep -v '^ *+' conftest.er1 >conftest.err
37787 cat conftest.err >&5
37788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); } &&
37790 { ac_try='test -z "$ac_c_werror_flag"
37791 || test ! -s conftest.err'
37792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37793 (eval $ac_try) 2>&5
37795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796 (exit $ac_status); }; } &&
37797 { ac_try='test -s conftest.$ac_objext'
37798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799 (eval $ac_try) 2>&5
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); }; }; then
37803 ac_header_compiler=yes
37805 echo "$as_me: failed program was:" >&5
37806 sed 's/^/| /' conftest.$ac_ext >&5
37808 ac_header_compiler=no
37810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37812 echo "${ECHO_T}$ac_header_compiler" >&6
37814 # Is the header present?
37815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37817 cat >conftest.$ac_ext <<_ACEOF
37820 cat confdefs.h >>conftest.$ac_ext
37821 cat >>conftest.$ac_ext <<_ACEOF
37822 /* end confdefs.h. */
37823 #include <$ac_header>
37825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37828 grep -v '^ *+' conftest.er1 >conftest.err
37830 cat conftest.err >&5
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); } >/dev/null; then
37833 if test -s conftest.err; then
37834 ac_cpp_err=$ac_c_preproc_warn_flag
37835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37842 if test -z "$ac_cpp_err"; then
37843 ac_header_preproc=yes
37845 echo "$as_me: failed program was:" >&5
37846 sed 's/^/| /' conftest.$ac_ext >&5
37848 ac_header_preproc=no
37850 rm -f conftest.err conftest.$ac_ext
37851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37852 echo "${ECHO_T}$ac_header_preproc" >&6
37854 # So? What about this header?
37855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37861 ac_header_preproc=yes
37864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37878 ## --------------------------------------------- ##
37879 ## Report this to <http://www.openldap.org/its/> ##
37880 ## --------------------------------------------- ##
37883 sed "s/^/$as_me: WARNING: /" >&2
37886 echo "$as_me:$LINENO: checking for $ac_header" >&5
37887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37889 echo $ECHO_N "(cached) $ECHO_C" >&6
37891 eval "$as_ac_Header=\$ac_header_preproc"
37893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37898 cat >>confdefs.h <<_ACEOF
37899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37907 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37908 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37909 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37910 echo $ECHO_N "(cached) $ECHO_C" >&6
37912 ac_check_lib_save_LIBS=$LIBS
37914 cat >conftest.$ac_ext <<_ACEOF
37917 cat confdefs.h >>conftest.$ac_ext
37918 cat >>conftest.$ac_ext <<_ACEOF
37919 /* end confdefs.h. */
37921 /* Override any gcc2 internal prototype to avoid an error. */
37925 /* We use char because int might match the return type of a gcc2
37926 builtin and then its argument prototype would still apply. */
37927 char __gmpz_add_ui ();
37936 rm -f conftest.$ac_objext conftest$ac_exeext
37937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37938 (eval $ac_link) 2>conftest.er1
37940 grep -v '^ *+' conftest.er1 >conftest.err
37942 cat conftest.err >&5
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); } &&
37945 { ac_try='test -z "$ac_c_werror_flag"
37946 || test ! -s conftest.err'
37947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37948 (eval $ac_try) 2>&5
37950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951 (exit $ac_status); }; } &&
37952 { ac_try='test -s conftest$ac_exeext'
37953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37954 (eval $ac_try) 2>&5
37956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957 (exit $ac_status); }; }; then
37958 ac_cv_lib_gmp___gmpz_add_ui=yes
37960 echo "$as_me: failed program was:" >&5
37961 sed 's/^/| /' conftest.$ac_ext >&5
37963 ac_cv_lib_gmp___gmpz_add_ui=no
37965 rm -f conftest.err conftest.$ac_objext \
37966 conftest$ac_exeext conftest.$ac_ext
37967 LIBS=$ac_check_lib_save_LIBS
37969 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37970 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37971 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37972 cat >>confdefs.h <<_ACEOF
37973 #define HAVE_LIBGMP 1
37980 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37982 cat >>confdefs.h <<\_ACEOF
37983 #define USE_MP_GMP 1
37987 elif test $ol_with_mp = gmp ; then
37988 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37989 echo "$as_me: error: gmp not available" >&2;}
37990 { (exit 1); exit 1; }; }
37993 if test $ol_with_mp = auto ; then
37997 echo "$as_me:$LINENO: checking for working memcmp" >&5
37998 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37999 if test "${ac_cv_func_memcmp_working+set}" = set; then
38000 echo $ECHO_N "(cached) $ECHO_C" >&6
38002 if test "$cross_compiling" = yes; then
38003 ac_cv_func_memcmp_working=no
38005 cat >conftest.$ac_ext <<_ACEOF
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h. */
38011 $ac_includes_default
38016 /* Some versions of memcmp are not 8-bit clean. */
38017 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38018 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38021 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38022 or more and with at least one buffer not starting on a 4-byte boundary.
38023 William Lewis provided this test program. */
38028 for (i = 0; i < 4; i++)
38032 strcpy (a, "--------01111111");
38033 strcpy (b, "--------10000000");
38034 if (memcmp (a, b, 16) >= 0)
38044 rm -f conftest$ac_exeext
38045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38046 (eval $ac_link) 2>&5
38048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38051 (eval $ac_try) 2>&5
38053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38054 (exit $ac_status); }; }; then
38055 ac_cv_func_memcmp_working=yes
38057 echo "$as_me: program exited with status $ac_status" >&5
38058 echo "$as_me: failed program was:" >&5
38059 sed 's/^/| /' conftest.$ac_ext >&5
38061 ( exit $ac_status )
38062 ac_cv_func_memcmp_working=no
38064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38067 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38068 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38069 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38070 "memcmp.$ac_objext" | \
38071 *" memcmp.$ac_objext" | \
38072 "memcmp.$ac_objext "* | \
38073 *" memcmp.$ac_objext "* ) ;;
38074 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38079 if test $ac_cv_func_memcmp_working = no ; then
38081 cat >>confdefs.h <<\_ACEOF
38082 #define NEED_MEMCMP_REPLACEMENT 1
38088 for ac_func in strftime
38090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38091 echo "$as_me:$LINENO: checking for $ac_func" >&5
38092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38093 if eval "test \"\${$as_ac_var+set}\" = set"; then
38094 echo $ECHO_N "(cached) $ECHO_C" >&6
38096 cat >conftest.$ac_ext <<_ACEOF
38099 cat confdefs.h >>conftest.$ac_ext
38100 cat >>conftest.$ac_ext <<_ACEOF
38101 /* end confdefs.h. */
38102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38104 #define $ac_func innocuous_$ac_func
38106 /* System header to define __stub macros and hopefully few prototypes,
38107 which can conflict with char $ac_func (); below.
38108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38109 <limits.h> exists even on freestanding compilers. */
38112 # include <limits.h>
38114 # include <assert.h>
38119 /* Override any gcc2 internal prototype to avoid an error. */
38124 /* We use char because int might match the return type of a gcc2
38125 builtin and then its argument prototype would still apply. */
38127 /* The GNU C library defines this for functions which it implements
38128 to always fail with ENOSYS. Some functions are actually named
38129 something starting with __ and the normal name is an alias. */
38130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38133 char (*f) () = $ac_func;
38142 return f != $ac_func;
38147 rm -f conftest.$ac_objext conftest$ac_exeext
38148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38149 (eval $ac_link) 2>conftest.er1
38151 grep -v '^ *+' conftest.er1 >conftest.err
38153 cat conftest.err >&5
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); } &&
38156 { ac_try='test -z "$ac_c_werror_flag"
38157 || test ! -s conftest.err'
38158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38159 (eval $ac_try) 2>&5
38161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162 (exit $ac_status); }; } &&
38163 { ac_try='test -s conftest$ac_exeext'
38164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38165 (eval $ac_try) 2>&5
38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); }; }; then
38169 eval "$as_ac_var=yes"
38171 echo "$as_me: failed program was:" >&5
38172 sed 's/^/| /' conftest.$ac_ext >&5
38174 eval "$as_ac_var=no"
38176 rm -f conftest.err conftest.$ac_objext \
38177 conftest$ac_exeext conftest.$ac_ext
38179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38181 if test `eval echo '${'$as_ac_var'}'` = yes; then
38182 cat >>confdefs.h <<_ACEOF
38183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38187 # strftime is in -lintl on SCO UNIX.
38188 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38189 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38190 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38191 echo $ECHO_N "(cached) $ECHO_C" >&6
38193 ac_check_lib_save_LIBS=$LIBS
38194 LIBS="-lintl $LIBS"
38195 cat >conftest.$ac_ext <<_ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h. */
38202 /* Override any gcc2 internal prototype to avoid an error. */
38206 /* We use char because int might match the return type of a gcc2
38207 builtin and then its argument prototype would still apply. */
38217 rm -f conftest.$ac_objext conftest$ac_exeext
38218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38219 (eval $ac_link) 2>conftest.er1
38221 grep -v '^ *+' conftest.er1 >conftest.err
38223 cat conftest.err >&5
38224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225 (exit $ac_status); } &&
38226 { ac_try='test -z "$ac_c_werror_flag"
38227 || test ! -s conftest.err'
38228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38229 (eval $ac_try) 2>&5
38231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232 (exit $ac_status); }; } &&
38233 { ac_try='test -s conftest$ac_exeext'
38234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38235 (eval $ac_try) 2>&5
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); }; }; then
38239 ac_cv_lib_intl_strftime=yes
38241 echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38244 ac_cv_lib_intl_strftime=no
38246 rm -f conftest.err conftest.$ac_objext \
38247 conftest$ac_exeext conftest.$ac_ext
38248 LIBS=$ac_check_lib_save_LIBS
38250 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38251 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38252 if test $ac_cv_lib_intl_strftime = yes; then
38253 cat >>confdefs.h <<\_ACEOF
38254 #define HAVE_STRFTIME 1
38257 LIBS="-lintl $LIBS"
38264 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38265 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38266 if test "${ol_cv_func_inet_aton+set}" = set; then
38267 echo $ECHO_N "(cached) $ECHO_C" >&6
38269 cat >conftest.$ac_ext <<_ACEOF
38272 cat confdefs.h >>conftest.$ac_ext
38273 cat >>conftest.$ac_ext <<_ACEOF
38274 /* end confdefs.h. */
38276 #ifdef HAVE_SYS_TYPES_H
38277 # include <sys/types.h>
38279 #ifdef HAVE_SYS_SOCKET_H
38280 # include <sys/socket.h>
38281 # ifdef HAVE_SYS_SELECT_H
38282 # include <sys/select.h>
38284 # include <netinet/in.h>
38285 # ifdef HAVE_ARPA_INET_H
38286 # include <arpa/inet.h>
38294 int rc = inet_aton( "255.255.255.255", &in );
38299 rm -f conftest.$ac_objext conftest$ac_exeext
38300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38301 (eval $ac_link) 2>conftest.er1
38303 grep -v '^ *+' conftest.er1 >conftest.err
38305 cat conftest.err >&5
38306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307 (exit $ac_status); } &&
38308 { ac_try='test -z "$ac_c_werror_flag"
38309 || test ! -s conftest.err'
38310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38311 (eval $ac_try) 2>&5
38313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314 (exit $ac_status); }; } &&
38315 { ac_try='test -s conftest$ac_exeext'
38316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317 (eval $ac_try) 2>&5
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); }; }; then
38321 ol_cv_func_inet_aton=yes
38323 echo "$as_me: failed program was:" >&5
38324 sed 's/^/| /' conftest.$ac_ext >&5
38326 ol_cv_func_inet_aton=no
38328 rm -f conftest.err conftest.$ac_objext \
38329 conftest$ac_exeext conftest.$ac_ext
38331 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38332 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38333 if test $ol_cv_func_inet_aton != no; then
38335 cat >>confdefs.h <<\_ACEOF
38336 #define HAVE_INET_ATON 1
38342 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38343 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38344 if test "${ac_cv_func__spawnlp+set}" = set; then
38345 echo $ECHO_N "(cached) $ECHO_C" >&6
38347 cat >conftest.$ac_ext <<_ACEOF
38350 cat confdefs.h >>conftest.$ac_ext
38351 cat >>conftest.$ac_ext <<_ACEOF
38352 /* end confdefs.h. */
38353 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38355 #define _spawnlp innocuous__spawnlp
38357 /* System header to define __stub macros and hopefully few prototypes,
38358 which can conflict with char _spawnlp (); below.
38359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38360 <limits.h> exists even on freestanding compilers. */
38363 # include <limits.h>
38365 # include <assert.h>
38370 /* Override any gcc2 internal prototype to avoid an error. */
38375 /* We use char because int might match the return type of a gcc2
38376 builtin and then its argument prototype would still apply. */
38378 /* The GNU C library defines this for functions which it implements
38379 to always fail with ENOSYS. Some functions are actually named
38380 something starting with __ and the normal name is an alias. */
38381 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38384 char (*f) () = _spawnlp;
38393 return f != _spawnlp;
38398 rm -f conftest.$ac_objext conftest$ac_exeext
38399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38400 (eval $ac_link) 2>conftest.er1
38402 grep -v '^ *+' conftest.er1 >conftest.err
38404 cat conftest.err >&5
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); } &&
38407 { ac_try='test -z "$ac_c_werror_flag"
38408 || test ! -s conftest.err'
38409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38410 (eval $ac_try) 2>&5
38412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413 (exit $ac_status); }; } &&
38414 { ac_try='test -s conftest$ac_exeext'
38415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416 (eval $ac_try) 2>&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); }; }; then
38420 ac_cv_func__spawnlp=yes
38422 echo "$as_me: failed program was:" >&5
38423 sed 's/^/| /' conftest.$ac_ext >&5
38425 ac_cv_func__spawnlp=no
38427 rm -f conftest.err conftest.$ac_objext \
38428 conftest$ac_exeext conftest.$ac_ext
38430 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38431 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38432 if test $ac_cv_func__spawnlp = yes; then
38434 cat >>confdefs.h <<\_ACEOF
38435 #define HAVE_SPAWNLP 1
38441 echo "$as_me:$LINENO: checking for _snprintf" >&5
38442 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38443 if test "${ac_cv_func__snprintf+set}" = set; then
38444 echo $ECHO_N "(cached) $ECHO_C" >&6
38446 cat >conftest.$ac_ext <<_ACEOF
38449 cat confdefs.h >>conftest.$ac_ext
38450 cat >>conftest.$ac_ext <<_ACEOF
38451 /* end confdefs.h. */
38452 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38454 #define _snprintf innocuous__snprintf
38456 /* System header to define __stub macros and hopefully few prototypes,
38457 which can conflict with char _snprintf (); below.
38458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38459 <limits.h> exists even on freestanding compilers. */
38462 # include <limits.h>
38464 # include <assert.h>
38469 /* Override any gcc2 internal prototype to avoid an error. */
38474 /* We use char because int might match the return type of a gcc2
38475 builtin and then its argument prototype would still apply. */
38477 /* The GNU C library defines this for functions which it implements
38478 to always fail with ENOSYS. Some functions are actually named
38479 something starting with __ and the normal name is an alias. */
38480 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38483 char (*f) () = _snprintf;
38492 return f != _snprintf;
38497 rm -f conftest.$ac_objext conftest$ac_exeext
38498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38499 (eval $ac_link) 2>conftest.er1
38501 grep -v '^ *+' conftest.er1 >conftest.err
38503 cat conftest.err >&5
38504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505 (exit $ac_status); } &&
38506 { ac_try='test -z "$ac_c_werror_flag"
38507 || test ! -s conftest.err'
38508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509 (eval $ac_try) 2>&5
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); }; } &&
38513 { ac_try='test -s conftest$ac_exeext'
38514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515 (eval $ac_try) 2>&5
38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518 (exit $ac_status); }; }; then
38519 ac_cv_func__snprintf=yes
38521 echo "$as_me: failed program was:" >&5
38522 sed 's/^/| /' conftest.$ac_ext >&5
38524 ac_cv_func__snprintf=no
38526 rm -f conftest.err conftest.$ac_objext \
38527 conftest$ac_exeext conftest.$ac_ext
38529 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38530 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38531 if test $ac_cv_func__snprintf = yes; then
38532 ac_cv_func_snprintf=yes
38534 cat >>confdefs.h <<\_ACEOF
38535 #define snprintf _snprintf
38542 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38543 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38544 if test "${ac_cv_func__vsnprintf+set}" = set; then
38545 echo $ECHO_N "(cached) $ECHO_C" >&6
38547 cat >conftest.$ac_ext <<_ACEOF
38550 cat confdefs.h >>conftest.$ac_ext
38551 cat >>conftest.$ac_ext <<_ACEOF
38552 /* end confdefs.h. */
38553 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38555 #define _vsnprintf innocuous__vsnprintf
38557 /* System header to define __stub macros and hopefully few prototypes,
38558 which can conflict with char _vsnprintf (); below.
38559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38560 <limits.h> exists even on freestanding compilers. */
38563 # include <limits.h>
38565 # include <assert.h>
38570 /* Override any gcc2 internal prototype to avoid an error. */
38575 /* We use char because int might match the return type of a gcc2
38576 builtin and then its argument prototype would still apply. */
38577 char _vsnprintf ();
38578 /* The GNU C library defines this for functions which it implements
38579 to always fail with ENOSYS. Some functions are actually named
38580 something starting with __ and the normal name is an alias. */
38581 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38584 char (*f) () = _vsnprintf;
38593 return f != _vsnprintf;
38598 rm -f conftest.$ac_objext conftest$ac_exeext
38599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38600 (eval $ac_link) 2>conftest.er1
38602 grep -v '^ *+' conftest.er1 >conftest.err
38604 cat conftest.err >&5
38605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606 (exit $ac_status); } &&
38607 { ac_try='test -z "$ac_c_werror_flag"
38608 || test ! -s conftest.err'
38609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38610 (eval $ac_try) 2>&5
38612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38613 (exit $ac_status); }; } &&
38614 { ac_try='test -s conftest$ac_exeext'
38615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38616 (eval $ac_try) 2>&5
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); }; }; then
38620 ac_cv_func__vsnprintf=yes
38622 echo "$as_me: failed program was:" >&5
38623 sed 's/^/| /' conftest.$ac_ext >&5
38625 ac_cv_func__vsnprintf=no
38627 rm -f conftest.err conftest.$ac_objext \
38628 conftest$ac_exeext conftest.$ac_ext
38630 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38631 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38632 if test $ac_cv_func__vsnprintf = yes; then
38633 ac_cv_func_vsnprintf=yes
38635 cat >>confdefs.h <<\_ACEOF
38636 #define vsnprintf _vsnprintf
38644 for ac_func in vprintf
38646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38647 echo "$as_me:$LINENO: checking for $ac_func" >&5
38648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38649 if eval "test \"\${$as_ac_var+set}\" = set"; then
38650 echo $ECHO_N "(cached) $ECHO_C" >&6
38652 cat >conftest.$ac_ext <<_ACEOF
38655 cat confdefs.h >>conftest.$ac_ext
38656 cat >>conftest.$ac_ext <<_ACEOF
38657 /* end confdefs.h. */
38658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38660 #define $ac_func innocuous_$ac_func
38662 /* System header to define __stub macros and hopefully few prototypes,
38663 which can conflict with char $ac_func (); below.
38664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38665 <limits.h> exists even on freestanding compilers. */
38668 # include <limits.h>
38670 # include <assert.h>
38675 /* Override any gcc2 internal prototype to avoid an error. */
38680 /* We use char because int might match the return type of a gcc2
38681 builtin and then its argument prototype would still apply. */
38683 /* The GNU C library defines this for functions which it implements
38684 to always fail with ENOSYS. Some functions are actually named
38685 something starting with __ and the normal name is an alias. */
38686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38689 char (*f) () = $ac_func;
38698 return f != $ac_func;
38703 rm -f conftest.$ac_objext conftest$ac_exeext
38704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38705 (eval $ac_link) 2>conftest.er1
38707 grep -v '^ *+' conftest.er1 >conftest.err
38709 cat conftest.err >&5
38710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 (exit $ac_status); } &&
38712 { ac_try='test -z "$ac_c_werror_flag"
38713 || test ! -s conftest.err'
38714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38715 (eval $ac_try) 2>&5
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); }; } &&
38719 { ac_try='test -s conftest$ac_exeext'
38720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38721 (eval $ac_try) 2>&5
38723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724 (exit $ac_status); }; }; then
38725 eval "$as_ac_var=yes"
38727 echo "$as_me: failed program was:" >&5
38728 sed 's/^/| /' conftest.$ac_ext >&5
38730 eval "$as_ac_var=no"
38732 rm -f conftest.err conftest.$ac_objext \
38733 conftest$ac_exeext conftest.$ac_ext
38735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38737 if test `eval echo '${'$as_ac_var'}'` = yes; then
38738 cat >>confdefs.h <<_ACEOF
38739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38742 echo "$as_me:$LINENO: checking for _doprnt" >&5
38743 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38744 if test "${ac_cv_func__doprnt+set}" = set; then
38745 echo $ECHO_N "(cached) $ECHO_C" >&6
38747 cat >conftest.$ac_ext <<_ACEOF
38750 cat confdefs.h >>conftest.$ac_ext
38751 cat >>conftest.$ac_ext <<_ACEOF
38752 /* end confdefs.h. */
38753 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38755 #define _doprnt innocuous__doprnt
38757 /* System header to define __stub macros and hopefully few prototypes,
38758 which can conflict with char _doprnt (); below.
38759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38760 <limits.h> exists even on freestanding compilers. */
38763 # include <limits.h>
38765 # include <assert.h>
38770 /* Override any gcc2 internal prototype to avoid an error. */
38775 /* We use char because int might match the return type of a gcc2
38776 builtin and then its argument prototype would still apply. */
38778 /* The GNU C library defines this for functions which it implements
38779 to always fail with ENOSYS. Some functions are actually named
38780 something starting with __ and the normal name is an alias. */
38781 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38784 char (*f) () = _doprnt;
38793 return f != _doprnt;
38798 rm -f conftest.$ac_objext conftest$ac_exeext
38799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38800 (eval $ac_link) 2>conftest.er1
38802 grep -v '^ *+' conftest.er1 >conftest.err
38804 cat conftest.err >&5
38805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806 (exit $ac_status); } &&
38807 { ac_try='test -z "$ac_c_werror_flag"
38808 || test ! -s conftest.err'
38809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38810 (eval $ac_try) 2>&5
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); }; } &&
38814 { ac_try='test -s conftest$ac_exeext'
38815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38816 (eval $ac_try) 2>&5
38818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819 (exit $ac_status); }; }; then
38820 ac_cv_func__doprnt=yes
38822 echo "$as_me: failed program was:" >&5
38823 sed 's/^/| /' conftest.$ac_ext >&5
38825 ac_cv_func__doprnt=no
38827 rm -f conftest.err conftest.$ac_objext \
38828 conftest$ac_exeext conftest.$ac_ext
38830 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38831 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38832 if test $ac_cv_func__doprnt = yes; then
38834 cat >>confdefs.h <<\_ACEOF
38835 #define HAVE_DOPRNT 1
38845 if test $ac_cv_func_vprintf = yes ; then
38848 for ac_func in snprintf vsnprintf
38850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38851 echo "$as_me:$LINENO: checking for $ac_func" >&5
38852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38853 if eval "test \"\${$as_ac_var+set}\" = set"; then
38854 echo $ECHO_N "(cached) $ECHO_C" >&6
38856 cat >conftest.$ac_ext <<_ACEOF
38859 cat confdefs.h >>conftest.$ac_ext
38860 cat >>conftest.$ac_ext <<_ACEOF
38861 /* end confdefs.h. */
38862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38864 #define $ac_func innocuous_$ac_func
38866 /* System header to define __stub macros and hopefully few prototypes,
38867 which can conflict with char $ac_func (); below.
38868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38869 <limits.h> exists even on freestanding compilers. */
38872 # include <limits.h>
38874 # include <assert.h>
38879 /* Override any gcc2 internal prototype to avoid an error. */
38884 /* We use char because int might match the return type of a gcc2
38885 builtin and then its argument prototype would still apply. */
38887 /* The GNU C library defines this for functions which it implements
38888 to always fail with ENOSYS. Some functions are actually named
38889 something starting with __ and the normal name is an alias. */
38890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38893 char (*f) () = $ac_func;
38902 return f != $ac_func;
38907 rm -f conftest.$ac_objext conftest$ac_exeext
38908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38909 (eval $ac_link) 2>conftest.er1
38911 grep -v '^ *+' conftest.er1 >conftest.err
38913 cat conftest.err >&5
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); } &&
38916 { ac_try='test -z "$ac_c_werror_flag"
38917 || test ! -s conftest.err'
38918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38919 (eval $ac_try) 2>&5
38921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38922 (exit $ac_status); }; } &&
38923 { ac_try='test -s conftest$ac_exeext'
38924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38925 (eval $ac_try) 2>&5
38927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928 (exit $ac_status); }; }; then
38929 eval "$as_ac_var=yes"
38931 echo "$as_me: failed program was:" >&5
38932 sed 's/^/| /' conftest.$ac_ext >&5
38934 eval "$as_ac_var=no"
38936 rm -f conftest.err conftest.$ac_objext \
38937 conftest$ac_exeext conftest.$ac_ext
38939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38941 if test `eval echo '${'$as_ac_var'}'` = yes; then
38942 cat >>confdefs.h <<_ACEOF
38943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39065 echo "$as_me:$LINENO: checking for $ac_func" >&5
39066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39067 if eval "test \"\${$as_ac_var+set}\" = set"; then
39068 echo $ECHO_N "(cached) $ECHO_C" >&6
39070 cat >conftest.$ac_ext <<_ACEOF
39073 cat confdefs.h >>conftest.$ac_ext
39074 cat >>conftest.$ac_ext <<_ACEOF
39075 /* end confdefs.h. */
39076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39078 #define $ac_func innocuous_$ac_func
39080 /* System header to define __stub macros and hopefully few prototypes,
39081 which can conflict with char $ac_func (); below.
39082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39083 <limits.h> exists even on freestanding compilers. */
39086 # include <limits.h>
39088 # include <assert.h>
39093 /* Override any gcc2 internal prototype to avoid an error. */
39098 /* We use char because int might match the return type of a gcc2
39099 builtin and then its argument prototype would still apply. */
39101 /* The GNU C library defines this for functions which it implements
39102 to always fail with ENOSYS. Some functions are actually named
39103 something starting with __ and the normal name is an alias. */
39104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39107 char (*f) () = $ac_func;
39116 return f != $ac_func;
39121 rm -f conftest.$ac_objext conftest$ac_exeext
39122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39123 (eval $ac_link) 2>conftest.er1
39125 grep -v '^ *+' conftest.er1 >conftest.err
39127 cat conftest.err >&5
39128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129 (exit $ac_status); } &&
39130 { ac_try='test -z "$ac_c_werror_flag"
39131 || test ! -s conftest.err'
39132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133 (eval $ac_try) 2>&5
39135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136 (exit $ac_status); }; } &&
39137 { ac_try='test -s conftest$ac_exeext'
39138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39139 (eval $ac_try) 2>&5
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); }; }; then
39143 eval "$as_ac_var=yes"
39145 echo "$as_me: failed program was:" >&5
39146 sed 's/^/| /' conftest.$ac_ext >&5
39148 eval "$as_ac_var=no"
39150 rm -f conftest.err conftest.$ac_objext \
39151 conftest$ac_exeext conftest.$ac_ext
39153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39155 if test `eval echo '${'$as_ac_var'}'` = yes; then
39156 cat >>confdefs.h <<_ACEOF
39157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39166 for ac_func in getopt getpeereid
39168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39169 echo "$as_me:$LINENO: checking for $ac_func" >&5
39170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39171 if eval "test \"\${$as_ac_var+set}\" = set"; then
39172 echo $ECHO_N "(cached) $ECHO_C" >&6
39174 cat >conftest.$ac_ext <<_ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h. */
39180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39182 #define $ac_func innocuous_$ac_func
39184 /* System header to define __stub macros and hopefully few prototypes,
39185 which can conflict with char $ac_func (); below.
39186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39187 <limits.h> exists even on freestanding compilers. */
39190 # include <limits.h>
39192 # include <assert.h>
39197 /* Override any gcc2 internal prototype to avoid an error. */
39202 /* We use char because int might match the return type of a gcc2
39203 builtin and then its argument prototype would still apply. */
39205 /* The GNU C library defines this for functions which it implements
39206 to always fail with ENOSYS. Some functions are actually named
39207 something starting with __ and the normal name is an alias. */
39208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39211 char (*f) () = $ac_func;
39220 return f != $ac_func;
39225 rm -f conftest.$ac_objext conftest$ac_exeext
39226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39227 (eval $ac_link) 2>conftest.er1
39229 grep -v '^ *+' conftest.er1 >conftest.err
39231 cat conftest.err >&5
39232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233 (exit $ac_status); } &&
39234 { ac_try='test -z "$ac_c_werror_flag"
39235 || test ! -s conftest.err'
39236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39237 (eval $ac_try) 2>&5
39239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39240 (exit $ac_status); }; } &&
39241 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
39247 eval "$as_ac_var=yes"
39249 echo "$as_me: failed program was:" >&5
39250 sed 's/^/| /' conftest.$ac_ext >&5
39252 eval "$as_ac_var=no"
39254 rm -f conftest.err conftest.$ac_objext \
39255 conftest$ac_exeext conftest.$ac_ext
39257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39259 if test `eval echo '${'$as_ac_var'}'` = yes; then
39260 cat >>confdefs.h <<_ACEOF
39261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39266 "$ac_func.$ac_objext" | \
39267 *" $ac_func.$ac_objext" | \
39268 "$ac_func.$ac_objext "* | \
39269 *" $ac_func.$ac_objext "* ) ;;
39270 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39278 if test "$ac_cv_func_getopt" != yes; then
39279 LIBSRCS="$LIBSRCS getopt.c"
39282 if test "$ac_cv_func_getpeereid" != yes; then
39284 for ac_func in getpeerucred
39286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39287 echo "$as_me:$LINENO: checking for $ac_func" >&5
39288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39289 if eval "test \"\${$as_ac_var+set}\" = set"; then
39290 echo $ECHO_N "(cached) $ECHO_C" >&6
39292 cat >conftest.$ac_ext <<_ACEOF
39295 cat confdefs.h >>conftest.$ac_ext
39296 cat >>conftest.$ac_ext <<_ACEOF
39297 /* end confdefs.h. */
39298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39300 #define $ac_func innocuous_$ac_func
39302 /* System header to define __stub macros and hopefully few prototypes,
39303 which can conflict with char $ac_func (); below.
39304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39305 <limits.h> exists even on freestanding compilers. */
39308 # include <limits.h>
39310 # include <assert.h>
39315 /* Override any gcc2 internal prototype to avoid an error. */
39320 /* We use char because int might match the return type of a gcc2
39321 builtin and then its argument prototype would still apply. */
39323 /* The GNU C library defines this for functions which it implements
39324 to always fail with ENOSYS. Some functions are actually named
39325 something starting with __ and the normal name is an alias. */
39326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39329 char (*f) () = $ac_func;
39338 return f != $ac_func;
39343 rm -f conftest.$ac_objext conftest$ac_exeext
39344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39345 (eval $ac_link) 2>conftest.er1
39347 grep -v '^ *+' conftest.er1 >conftest.err
39349 cat conftest.err >&5
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); } &&
39352 { ac_try='test -z "$ac_c_werror_flag"
39353 || test ! -s conftest.err'
39354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39355 (eval $ac_try) 2>&5
39357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39358 (exit $ac_status); }; } &&
39359 { ac_try='test -s conftest$ac_exeext'
39360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39361 (eval $ac_try) 2>&5
39363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364 (exit $ac_status); }; }; then
39365 eval "$as_ac_var=yes"
39367 echo "$as_me: failed program was:" >&5
39368 sed 's/^/| /' conftest.$ac_ext >&5
39370 eval "$as_ac_var=no"
39372 rm -f conftest.err conftest.$ac_objext \
39373 conftest$ac_exeext conftest.$ac_ext
39375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39377 if test `eval echo '${'$as_ac_var'}'` = yes; then
39378 cat >>confdefs.h <<_ACEOF
39379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39385 if test "$ac_cv_func_getpeerucred" != yes ; then
39386 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39387 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39388 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39389 echo $ECHO_N "(cached) $ECHO_C" >&6
39391 cat >conftest.$ac_ext <<_ACEOF
39394 cat confdefs.h >>conftest.$ac_ext
39395 cat >>conftest.$ac_ext <<_ACEOF
39396 /* end confdefs.h. */
39397 $ac_includes_default
39398 #ifdef HAVE_SYS_SOCKET_H
39399 #include <sys/socket.h>
39405 static struct msghdr ac_aggr;
39406 if (ac_aggr.msg_accrightslen)
39412 rm -f conftest.$ac_objext
39413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39414 (eval $ac_compile) 2>conftest.er1
39416 grep -v '^ *+' conftest.er1 >conftest.err
39418 cat conftest.err >&5
39419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); } &&
39421 { ac_try='test -z "$ac_c_werror_flag"
39422 || test ! -s conftest.err'
39423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39424 (eval $ac_try) 2>&5
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); }; } &&
39428 { ac_try='test -s conftest.$ac_objext'
39429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39430 (eval $ac_try) 2>&5
39432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433 (exit $ac_status); }; }; then
39434 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39436 echo "$as_me: failed program was:" >&5
39437 sed 's/^/| /' conftest.$ac_ext >&5
39439 cat >conftest.$ac_ext <<_ACEOF
39442 cat confdefs.h >>conftest.$ac_ext
39443 cat >>conftest.$ac_ext <<_ACEOF
39444 /* end confdefs.h. */
39445 $ac_includes_default
39446 #ifdef HAVE_SYS_SOCKET_H
39447 #include <sys/socket.h>
39453 static struct msghdr ac_aggr;
39454 if (sizeof ac_aggr.msg_accrightslen)
39460 rm -f conftest.$ac_objext
39461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39462 (eval $ac_compile) 2>conftest.er1
39464 grep -v '^ *+' conftest.er1 >conftest.err
39466 cat conftest.err >&5
39467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); } &&
39469 { ac_try='test -z "$ac_c_werror_flag"
39470 || test ! -s conftest.err'
39471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472 (eval $ac_try) 2>&5
39474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475 (exit $ac_status); }; } &&
39476 { ac_try='test -s conftest.$ac_objext'
39477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478 (eval $ac_try) 2>&5
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); }; }; then
39482 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39484 echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39487 ac_cv_member_struct_msghdr_msg_accrightslen=no
39489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39493 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39494 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39495 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39497 cat >>confdefs.h <<_ACEOF
39498 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39504 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39505 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39506 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39507 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39508 echo $ECHO_N "(cached) $ECHO_C" >&6
39510 cat >conftest.$ac_ext <<_ACEOF
39513 cat confdefs.h >>conftest.$ac_ext
39514 cat >>conftest.$ac_ext <<_ACEOF
39515 /* end confdefs.h. */
39516 $ac_includes_default
39517 #ifdef HAVE_SYS_SOCKET_H
39518 #include <sys/socket.h>
39524 static struct msghdr ac_aggr;
39525 if (ac_aggr.msg_control)
39531 rm -f conftest.$ac_objext
39532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39533 (eval $ac_compile) 2>conftest.er1
39535 grep -v '^ *+' conftest.er1 >conftest.err
39537 cat conftest.err >&5
39538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539 (exit $ac_status); } &&
39540 { ac_try='test -z "$ac_c_werror_flag"
39541 || test ! -s conftest.err'
39542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39543 (eval $ac_try) 2>&5
39545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546 (exit $ac_status); }; } &&
39547 { ac_try='test -s conftest.$ac_objext'
39548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39549 (eval $ac_try) 2>&5
39551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39552 (exit $ac_status); }; }; then
39553 ac_cv_member_struct_msghdr_msg_control=yes
39555 echo "$as_me: failed program was:" >&5
39556 sed 's/^/| /' conftest.$ac_ext >&5
39558 cat >conftest.$ac_ext <<_ACEOF
39561 cat confdefs.h >>conftest.$ac_ext
39562 cat >>conftest.$ac_ext <<_ACEOF
39563 /* end confdefs.h. */
39564 $ac_includes_default
39565 #ifdef HAVE_SYS_SOCKET_H
39566 #include <sys/socket.h>
39572 static struct msghdr ac_aggr;
39573 if (sizeof ac_aggr.msg_control)
39579 rm -f conftest.$ac_objext
39580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39581 (eval $ac_compile) 2>conftest.er1
39583 grep -v '^ *+' conftest.er1 >conftest.err
39585 cat conftest.err >&5
39586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587 (exit $ac_status); } &&
39588 { ac_try='test -z "$ac_c_werror_flag"
39589 || test ! -s conftest.err'
39590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591 (eval $ac_try) 2>&5
39593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594 (exit $ac_status); }; } &&
39595 { ac_try='test -s conftest.$ac_objext'
39596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39597 (eval $ac_try) 2>&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); }; }; then
39601 ac_cv_member_struct_msghdr_msg_control=yes
39603 echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39606 ac_cv_member_struct_msghdr_msg_control=no
39608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39613 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39614 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39616 cat >>confdefs.h <<_ACEOF
39617 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39624 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39625 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39626 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39627 echo $ECHO_N "(cached) $ECHO_C" >&6
39629 cat >conftest.$ac_ext <<_ACEOF
39632 cat confdefs.h >>conftest.$ac_ext
39633 cat >>conftest.$ac_ext <<_ACEOF
39634 /* end confdefs.h. */
39635 $ac_includes_default
39639 static struct stat ac_aggr;
39640 if (ac_aggr.st_fstype)
39646 rm -f conftest.$ac_objext
39647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39648 (eval $ac_compile) 2>conftest.er1
39650 grep -v '^ *+' conftest.er1 >conftest.err
39652 cat conftest.err >&5
39653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654 (exit $ac_status); } &&
39655 { ac_try='test -z "$ac_c_werror_flag"
39656 || test ! -s conftest.err'
39657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39658 (eval $ac_try) 2>&5
39660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661 (exit $ac_status); }; } &&
39662 { ac_try='test -s conftest.$ac_objext'
39663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39664 (eval $ac_try) 2>&5
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); }; }; then
39668 ac_cv_member_struct_stat_st_fstype=yes
39670 echo "$as_me: failed program was:" >&5
39671 sed 's/^/| /' conftest.$ac_ext >&5
39673 cat >conftest.$ac_ext <<_ACEOF
39676 cat confdefs.h >>conftest.$ac_ext
39677 cat >>conftest.$ac_ext <<_ACEOF
39678 /* end confdefs.h. */
39679 $ac_includes_default
39683 static struct stat ac_aggr;
39684 if (sizeof ac_aggr.st_fstype)
39690 rm -f conftest.$ac_objext
39691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39692 (eval $ac_compile) 2>conftest.er1
39694 grep -v '^ *+' conftest.er1 >conftest.err
39696 cat conftest.err >&5
39697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39698 (exit $ac_status); } &&
39699 { ac_try='test -z "$ac_c_werror_flag"
39700 || test ! -s conftest.err'
39701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39702 (eval $ac_try) 2>&5
39704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705 (exit $ac_status); }; } &&
39706 { ac_try='test -s conftest.$ac_objext'
39707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39708 (eval $ac_try) 2>&5
39710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39711 (exit $ac_status); }; }; then
39712 ac_cv_member_struct_stat_st_fstype=yes
39714 echo "$as_me: failed program was:" >&5
39715 sed 's/^/| /' conftest.$ac_ext >&5
39717 ac_cv_member_struct_stat_st_fstype=no
39719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39723 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39724 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39725 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39727 cat >>confdefs.h <<_ACEOF
39728 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39733 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39734 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39735 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39736 echo $ECHO_N "(cached) $ECHO_C" >&6
39738 cat >conftest.$ac_ext <<_ACEOF
39741 cat confdefs.h >>conftest.$ac_ext
39742 cat >>conftest.$ac_ext <<_ACEOF
39743 /* end confdefs.h. */
39744 $ac_includes_default
39748 static struct stat ac_aggr;
39749 if (ac_aggr.st_vfstype)
39755 rm -f conftest.$ac_objext
39756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39757 (eval $ac_compile) 2>conftest.er1
39759 grep -v '^ *+' conftest.er1 >conftest.err
39761 cat conftest.err >&5
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); } &&
39764 { ac_try='test -z "$ac_c_werror_flag"
39765 || test ! -s conftest.err'
39766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39767 (eval $ac_try) 2>&5
39769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770 (exit $ac_status); }; } &&
39771 { ac_try='test -s conftest.$ac_objext'
39772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39773 (eval $ac_try) 2>&5
39775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776 (exit $ac_status); }; }; then
39777 ac_cv_member_struct_stat_st_vfstype=yes
39779 echo "$as_me: failed program was:" >&5
39780 sed 's/^/| /' conftest.$ac_ext >&5
39782 cat >conftest.$ac_ext <<_ACEOF
39785 cat confdefs.h >>conftest.$ac_ext
39786 cat >>conftest.$ac_ext <<_ACEOF
39787 /* end confdefs.h. */
39788 $ac_includes_default
39792 static struct stat ac_aggr;
39793 if (sizeof ac_aggr.st_vfstype)
39799 rm -f conftest.$ac_objext
39800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39801 (eval $ac_compile) 2>conftest.er1
39803 grep -v '^ *+' conftest.er1 >conftest.err
39805 cat conftest.err >&5
39806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807 (exit $ac_status); } &&
39808 { ac_try='test -z "$ac_c_werror_flag"
39809 || test ! -s conftest.err'
39810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39811 (eval $ac_try) 2>&5
39813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814 (exit $ac_status); }; } &&
39815 { ac_try='test -s conftest.$ac_objext'
39816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39817 (eval $ac_try) 2>&5
39819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39820 (exit $ac_status); }; }; then
39821 ac_cv_member_struct_stat_st_vfstype=yes
39823 echo "$as_me: failed program was:" >&5
39824 sed 's/^/| /' conftest.$ac_ext >&5
39826 ac_cv_member_struct_stat_st_vfstype=no
39828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
39833 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
39834 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
39836 cat >>confdefs.h <<_ACEOF
39837 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
39843 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
39844 cat >conftest.$ac_ext <<_ACEOF
39845 struct stat st; char *ptr=st.st_fstype;
39847 rm -f conftest.$ac_objext
39848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39849 (eval $ac_compile) 2>conftest.er1
39851 grep -v '^ *+' conftest.er1 >conftest.err
39853 cat conftest.err >&5
39854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855 (exit $ac_status); } &&
39856 { ac_try='test -z "$ac_c_werror_flag"
39857 || test ! -s conftest.err'
39858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39859 (eval $ac_try) 2>&5
39861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862 (exit $ac_status); }; } &&
39863 { ac_try='test -s conftest.$ac_objext'
39864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39865 (eval $ac_try) 2>&5
39867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); }; }; then
39870 cat >>confdefs.h <<\_ACEOF
39871 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
39875 echo "$as_me: failed program was:" >&5
39876 sed 's/^/| /' conftest.$ac_ext >&5
39879 cat >>confdefs.h <<\_ACEOF
39880 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
39884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39887 LIBSRCS="$LIBSRCS getpeereid.c"
39890 if test "$ac_cv_func_snprintf" != yes ||
39891 test "$ac_cv_func_vsnprintf" != yes; then
39892 if test "$ac_cv_func_snprintf" != yes; then
39894 cat >>confdefs.h <<\_ACEOF
39895 #define snprintf ber_pvt_snprintf
39899 if test "$ac_cv_func_vsnprintf" != yes; then
39901 cat >>confdefs.h <<\_ACEOF
39902 #define vsnprintf ber_pvt_vsnprintf
39909 if test "$ol_enable_slapi" != no ; then
39911 for ac_header in ltdl.h
39913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39915 echo "$as_me:$LINENO: checking for $ac_header" >&5
39916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39918 echo $ECHO_N "(cached) $ECHO_C" >&6
39920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39923 # Is the header compilable?
39924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39926 cat >conftest.$ac_ext <<_ACEOF
39929 cat confdefs.h >>conftest.$ac_ext
39930 cat >>conftest.$ac_ext <<_ACEOF
39931 /* end confdefs.h. */
39932 $ac_includes_default
39933 #include <$ac_header>
39935 rm -f conftest.$ac_objext
39936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39937 (eval $ac_compile) 2>conftest.er1
39939 grep -v '^ *+' conftest.er1 >conftest.err
39941 cat conftest.err >&5
39942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943 (exit $ac_status); } &&
39944 { ac_try='test -z "$ac_c_werror_flag"
39945 || test ! -s conftest.err'
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; } &&
39951 { ac_try='test -s conftest.$ac_objext'
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; }; then
39957 ac_header_compiler=yes
39959 echo "$as_me: failed program was:" >&5
39960 sed 's/^/| /' conftest.$ac_ext >&5
39962 ac_header_compiler=no
39964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39966 echo "${ECHO_T}$ac_header_compiler" >&6
39968 # Is the header present?
39969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39971 cat >conftest.$ac_ext <<_ACEOF
39974 cat confdefs.h >>conftest.$ac_ext
39975 cat >>conftest.$ac_ext <<_ACEOF
39976 /* end confdefs.h. */
39977 #include <$ac_header>
39979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39982 grep -v '^ *+' conftest.er1 >conftest.err
39984 cat conftest.err >&5
39985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39986 (exit $ac_status); } >/dev/null; then
39987 if test -s conftest.err; then
39988 ac_cpp_err=$ac_c_preproc_warn_flag
39989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39996 if test -z "$ac_cpp_err"; then
39997 ac_header_preproc=yes
39999 echo "$as_me: failed program was:" >&5
40000 sed 's/^/| /' conftest.$ac_ext >&5
40002 ac_header_preproc=no
40004 rm -f conftest.err conftest.$ac_ext
40005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40006 echo "${ECHO_T}$ac_header_preproc" >&6
40008 # So? What about this header?
40009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40015 ac_header_preproc=yes
40018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40032 ## --------------------------------------------- ##
40033 ## Report this to <http://www.openldap.org/its/> ##
40034 ## --------------------------------------------- ##
40037 sed "s/^/$as_me: WARNING: /" >&2
40040 echo "$as_me:$LINENO: checking for $ac_header" >&5
40041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40043 echo $ECHO_N "(cached) $ECHO_C" >&6
40045 eval "$as_ac_Header=\$ac_header_preproc"
40047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40052 cat >>confdefs.h <<_ACEOF
40053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40061 if test $ac_cv_header_ltdl_h != yes ; then
40062 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40063 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40064 { (exit 1); exit 1; }; }
40066 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40067 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40068 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40069 echo $ECHO_N "(cached) $ECHO_C" >&6
40071 ac_check_lib_save_LIBS=$LIBS
40072 LIBS="-lltdl $LIBS"
40073 cat >conftest.$ac_ext <<_ACEOF
40076 cat confdefs.h >>conftest.$ac_ext
40077 cat >>conftest.$ac_ext <<_ACEOF
40078 /* end confdefs.h. */
40080 /* Override any gcc2 internal prototype to avoid an error. */
40084 /* We use char because int might match the return type of a gcc2
40085 builtin and then its argument prototype would still apply. */
40095 rm -f conftest.$ac_objext conftest$ac_exeext
40096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40097 (eval $ac_link) 2>conftest.er1
40099 grep -v '^ *+' conftest.er1 >conftest.err
40101 cat conftest.err >&5
40102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40103 (exit $ac_status); } &&
40104 { ac_try='test -z "$ac_c_werror_flag"
40105 || test ! -s conftest.err'
40106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40107 (eval $ac_try) 2>&5
40109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110 (exit $ac_status); }; } &&
40111 { ac_try='test -s conftest$ac_exeext'
40112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40113 (eval $ac_try) 2>&5
40115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40116 (exit $ac_status); }; }; then
40117 ac_cv_lib_ltdl_lt_dlinit=yes
40119 echo "$as_me: failed program was:" >&5
40120 sed 's/^/| /' conftest.$ac_ext >&5
40122 ac_cv_lib_ltdl_lt_dlinit=no
40124 rm -f conftest.err conftest.$ac_objext \
40125 conftest$ac_exeext conftest.$ac_ext
40126 LIBS=$ac_check_lib_save_LIBS
40128 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40129 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40130 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40133 LIBSLAPI=libslapi.a
40134 LIBSLAPITOOLS=../libslapi.a
40136 cat >>confdefs.h <<\_ACEOF
40137 #define HAVE_LIBLTDL 1
40142 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40143 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40144 { (exit 1); exit 1; }; }
40149 cat >>confdefs.h <<\_ACEOF
40150 #define LDAP_SLAPI 1
40155 if test "$ol_enable_debug" != no ; then
40156 if test "$ol_enable_debug" = traditional; then
40158 cat >>confdefs.h <<\_ACEOF
40159 #define OLD_DEBUG 1
40164 cat >>confdefs.h <<\_ACEOF
40165 #define LDAP_DEBUG 1
40169 if test "$ol_enable_syslog" = yes ; then
40171 cat >>confdefs.h <<\_ACEOF
40172 #define LDAP_SYSLOG 1
40176 if test "$ol_enable_proctitle" != no ; then
40178 cat >>confdefs.h <<\_ACEOF
40179 #define LDAP_PROCTITLE 1
40183 if test "$ol_enable_referrals" != no ; then
40185 cat >>confdefs.h <<\_ACEOF
40186 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40190 if test "$ol_enable_local" != no; then
40192 cat >>confdefs.h <<\_ACEOF
40193 #define LDAP_PF_LOCAL 1
40197 if test "$ol_link_ipv6" != no; then
40199 cat >>confdefs.h <<\_ACEOF
40200 #define LDAP_PF_INET6 1
40204 if test "$ol_enable_cleartext" != no ; then
40206 cat >>confdefs.h <<\_ACEOF
40207 #define SLAPD_CLEARTEXT 1
40211 if test "$ol_enable_crypt" != no ; then
40213 cat >>confdefs.h <<\_ACEOF
40214 #define SLAPD_CRYPT 1
40218 if test "$ol_link_spasswd" != no ; then
40220 cat >>confdefs.h <<\_ACEOF
40221 #define SLAPD_SPASSWD 1
40225 if test "$ol_enable_rlookups" != no ; then
40227 cat >>confdefs.h <<\_ACEOF
40228 #define SLAPD_RLOOKUPS 1
40232 if test "$ol_enable_aci" != no ; then
40233 if test $ol_enable_dynacl = no ; then
40234 ol_enable_dynacl=yes
40235 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40236 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40238 if test "$ol_enable_aci" = mod ; then
40239 MFLAG=SLAPD_MOD_DYNAMIC
40240 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40241 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40242 { (exit 1); exit 1; }; }
40244 MFLAG=SLAPD_MOD_STATIC
40246 WITH_ACI_ENABLED=$ol_enable_aci
40248 cat >>confdefs.h <<_ACEOF
40249 #define SLAPD_ACI_ENABLED $MFLAG
40253 WITH_ACI_ENABLED=no
40255 if test "$ol_enable_dynacl" != no ; then
40257 cat >>confdefs.h <<\_ACEOF
40258 #define SLAP_DYNACL 1
40263 if test "$ol_link_modules" != no ; then
40265 cat >>confdefs.h <<\_ACEOF
40266 #define SLAPD_MODULES 1
40270 SLAPD_MODULES_LDFLAGS="-dlopen self"
40274 cat >>confdefs.h <<\_ACEOF
40275 #define SLAPD_MOD_STATIC 1
40279 cat >>confdefs.h <<\_ACEOF
40280 #define SLAPD_MOD_DYNAMIC 2
40284 if test "$ol_enable_monitor" != no ; then
40286 BUILD_MONITOR=$ol_enable_monitor
40287 if test "$ol_enable_monitor" = mod ; then
40288 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40289 MFLAG=SLAPD_MOD_DYNAMIC
40291 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40292 MFLAG=SLAPD_MOD_STATIC
40295 cat >>confdefs.h <<_ACEOF
40296 #define SLAPD_MONITOR $MFLAG
40301 if test "$ol_enable_bdb" != no ; then
40303 BUILD_BDB=$ol_enable_bdb
40304 if test "$ol_enable_bdb" = mod ; then
40305 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40306 MFLAG=SLAPD_MOD_DYNAMIC
40308 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40309 MFLAG=SLAPD_MOD_STATIC
40312 cat >>confdefs.h <<_ACEOF
40313 #define SLAPD_BDB $MFLAG
40318 if test "$ol_enable_dnssrv" != no ; then
40320 BUILD_DNSSRV=$ol_enable_dnssrv
40321 if test "$ol_enable_dnssrv" = mod ; then
40322 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40323 MFLAG=SLAPD_MOD_DYNAMIC
40325 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40326 MFLAG=SLAPD_MOD_STATIC
40329 cat >>confdefs.h <<_ACEOF
40330 #define SLAPD_DNSSRV $MFLAG
40335 if test "$ol_enable_hdb" != no ; then
40337 BUILD_HDB=$ol_enable_hdb
40338 if test "$ol_enable_hdb" = mod ; then
40339 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40340 MFLAG=SLAPD_MOD_DYNAMIC
40342 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40343 MFLAG=SLAPD_MOD_STATIC
40346 cat >>confdefs.h <<_ACEOF
40347 #define SLAPD_HDB $MFLAG
40352 if test "$ol_enable_ldap" != no ; then
40354 BUILD_LDAP=$ol_enable_ldap
40355 if test "$ol_enable_ldap" = mod ; then
40356 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40357 MFLAG=SLAPD_MOD_DYNAMIC
40359 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40360 MFLAG=SLAPD_MOD_STATIC
40363 cat >>confdefs.h <<_ACEOF
40364 #define SLAPD_LDAP $MFLAG
40369 if test "$ol_enable_meta" != no ; then
40371 BUILD_META=$ol_enable_meta
40373 if test "$ol_enable_meta" = mod ; then
40374 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40375 MFLAG=SLAPD_MOD_DYNAMIC
40377 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40378 MFLAG=SLAPD_MOD_STATIC
40381 cat >>confdefs.h <<_ACEOF
40382 #define SLAPD_META $MFLAG
40387 if test "$ol_enable_null" != no ; then
40389 BUILD_NULL=$ol_enable_null
40390 if test "$ol_enable_null" = mod ; then
40391 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40392 MFLAG=SLAPD_MOD_DYNAMIC
40394 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40395 MFLAG=SLAPD_MOD_STATIC
40398 cat >>confdefs.h <<_ACEOF
40399 #define SLAPD_NULL $MFLAG
40404 if test "$ol_enable_passwd" != no ; then
40406 BUILD_PASSWD=$ol_enable_passwd
40407 if test "$ol_enable_passwd" = mod ; then
40408 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40409 MFLAG=SLAPD_MOD_DYNAMIC
40411 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40412 MFLAG=SLAPD_MOD_STATIC
40415 cat >>confdefs.h <<_ACEOF
40416 #define SLAPD_PASSWD $MFLAG
40421 if test "$ol_link_perl" != no ; then
40423 BUILD_PERL=$ol_enable_perl
40424 if test "$ol_enable_perl" = mod ; then
40425 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40426 MFLAG=SLAPD_MOD_DYNAMIC
40428 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40429 MFLAG=SLAPD_MOD_STATIC
40432 cat >>confdefs.h <<_ACEOF
40433 #define SLAPD_PERL $MFLAG
40438 if test "$ol_enable_relay" != no ; then
40440 BUILD_RELAY=$ol_enable_relay
40441 if test "$ol_enable_relay" = mod ; then
40442 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40443 MFLAG=SLAPD_MOD_DYNAMIC
40445 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40446 MFLAG=SLAPD_MOD_STATIC
40449 cat >>confdefs.h <<_ACEOF
40450 #define SLAPD_RELAY $MFLAG
40455 if test "$ol_enable_shell" != no ; then
40456 if test "$ol_link_threads" != no ; then
40457 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40458 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40461 BUILD_SHELL=$ol_enable_shell
40462 if test "$ol_enable_shell" = mod ; then
40463 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40464 MFLAG=SLAPD_MOD_DYNAMIC
40466 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40467 MFLAG=SLAPD_MOD_STATIC
40470 cat >>confdefs.h <<_ACEOF
40471 #define SLAPD_SHELL $MFLAG
40476 if test "$ol_link_sql" != no ; then
40478 BUILD_SQL=$ol_enable_sql
40479 if test "$ol_enable_sql" = mod; then
40480 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40481 MFLAG=SLAPD_MOD_DYNAMIC
40483 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40484 MFLAG=SLAPD_MOD_STATIC
40487 cat >>confdefs.h <<_ACEOF
40488 #define SLAPD_SQL $MFLAG
40493 if test "$ol_enable_accesslog" != no ; then
40494 BUILD_ACCESSLOG=$ol_enable_accesslog
40495 if test "$ol_enable_accesslog" = mod ; then
40496 MFLAG=SLAPD_MOD_DYNAMIC
40497 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40499 MFLAG=SLAPD_MOD_STATIC
40500 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40503 cat >>confdefs.h <<_ACEOF
40504 #define SLAPD_OVER_ACCESSLOG $MFLAG
40509 if test "$ol_enable_auditlog" != no ; then
40510 BUILD_AUDITLOG=$ol_enable_auditlog
40511 if test "$ol_enable_auditlog" = mod ; then
40512 MFLAG=SLAPD_MOD_DYNAMIC
40513 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40515 MFLAG=SLAPD_MOD_STATIC
40516 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40519 cat >>confdefs.h <<_ACEOF
40520 #define SLAPD_OVER_AUDITLOG $MFLAG
40525 if test "$ol_enable_constraint" != no ; then
40526 BUILD_CONSTRAINT=$ol_enable_constraint
40527 if test "$ol_enable_constraint" = mod ; then
40528 MFLAG=SLAPD_MOD_DYNAMIC
40529 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40531 MFLAG=SLAPD_MOD_STATIC
40532 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40535 cat >>confdefs.h <<_ACEOF
40536 #define SLAPD_OVER_CONSTRAINT $MFLAG
40541 if test "$ol_enable_dds" != no ; then
40542 BUILD_DDS=$ol_enable_dds
40543 if test "$ol_enable_dds" = mod ; then
40544 MFLAG=SLAPD_MOD_DYNAMIC
40545 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40547 MFLAG=SLAPD_MOD_STATIC
40548 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40551 cat >>confdefs.h <<_ACEOF
40552 #define SLAPD_OVER_DDS $MFLAG
40557 if test "$ol_enable_dyngroup" != no ; then
40558 BUILD_DYNGROUP=$ol_enable_dyngroup
40559 if test "$ol_enable_dyngroup" = mod ; then
40560 MFLAG=SLAPD_MOD_DYNAMIC
40561 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40563 MFLAG=SLAPD_MOD_STATIC
40564 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40567 cat >>confdefs.h <<_ACEOF
40568 #define SLAPD_OVER_DYNGROUP $MFLAG
40573 if test "$ol_enable_dynlist" != no ; then
40574 BUILD_DYNLIST=$ol_enable_dynlist
40575 if test "$ol_enable_dynlist" = mod ; then
40576 MFLAG=SLAPD_MOD_DYNAMIC
40577 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40579 MFLAG=SLAPD_MOD_STATIC
40580 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40583 cat >>confdefs.h <<_ACEOF
40584 #define SLAPD_OVER_DYNLIST $MFLAG
40589 if test "$ol_enable_memberof" != no ; then
40590 BUILD_MEMBEROF=$ol_enable_memberof
40591 if test "$ol_enable_memberof" = mod ; then
40592 MFLAG=SLAPD_MOD_DYNAMIC
40593 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
40595 MFLAG=SLAPD_MOD_STATIC
40596 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
40599 cat >>confdefs.h <<_ACEOF
40600 #define SLAPD_OVER_MEMBEROF $MFLAG
40605 if test "$ol_enable_ppolicy" != no ; then
40606 BUILD_PPOLICY=$ol_enable_ppolicy
40607 if test "$ol_enable_ppolicy" = mod ; then
40608 MFLAG=SLAPD_MOD_DYNAMIC
40609 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40611 MFLAG=SLAPD_MOD_STATIC
40612 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40615 cat >>confdefs.h <<_ACEOF
40616 #define SLAPD_OVER_PPOLICY $MFLAG
40621 if test "$ol_enable_proxycache" != no ; then
40622 BUILD_PROXYCACHE=$ol_enable_proxycache
40623 if test "$ol_enable_proxycache" = mod ; then
40624 MFLAG=SLAPD_MOD_DYNAMIC
40625 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40627 MFLAG=SLAPD_MOD_STATIC
40628 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40631 cat >>confdefs.h <<_ACEOF
40632 #define SLAPD_OVER_PROXYCACHE $MFLAG
40637 if test "$ol_enable_refint" != no ; then
40638 BUILD_REFINT=$ol_enable_refint
40639 if test "$ol_enable_refint" = mod ; then
40640 MFLAG=SLAPD_MOD_DYNAMIC
40641 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40643 MFLAG=SLAPD_MOD_STATIC
40644 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40647 cat >>confdefs.h <<_ACEOF
40648 #define SLAPD_OVER_REFINT $MFLAG
40653 if test "$ol_enable_retcode" != no ; then
40654 BUILD_RETCODE=$ol_enable_retcode
40655 if test "$ol_enable_retcode" = mod ; then
40656 MFLAG=SLAPD_MOD_DYNAMIC
40657 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40659 MFLAG=SLAPD_MOD_STATIC
40660 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40663 cat >>confdefs.h <<_ACEOF
40664 #define SLAPD_OVER_RETCODE $MFLAG
40669 if test "$ol_enable_rwm" != no ; then
40671 BUILD_RWM=$ol_enable_rwm
40672 if test "$ol_enable_rwm" = mod ; then
40673 MFLAG=SLAPD_MOD_DYNAMIC
40674 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40676 MFLAG=SLAPD_MOD_STATIC
40677 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40680 cat >>confdefs.h <<_ACEOF
40681 #define SLAPD_OVER_RWM $MFLAG
40686 if test "$ol_enable_seqmod" != no ; then
40687 BUILD_SEQMOD=$ol_enable_seqmod
40688 if test "$ol_enable_seqmod" = mod ; then
40689 MFLAG=SLAPD_MOD_DYNAMIC
40690 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40692 MFLAG=SLAPD_MOD_STATIC
40693 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40696 cat >>confdefs.h <<_ACEOF
40697 #define SLAPD_OVER_SEQMOD $MFLAG
40702 if test "$ol_enable_syncprov" != no ; then
40703 BUILD_SYNCPROV=$ol_enable_syncprov
40704 if test "$ol_enable_syncprov" = mod ; then
40705 MFLAG=SLAPD_MOD_DYNAMIC
40706 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40708 MFLAG=SLAPD_MOD_STATIC
40709 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40712 cat >>confdefs.h <<_ACEOF
40713 #define SLAPD_OVER_SYNCPROV $MFLAG
40718 if test "$ol_enable_translucent" != no ; then
40719 BUILD_TRANSLUCENT=$ol_enable_translucent
40720 if test "$ol_enable_translucent" = mod ; then
40721 MFLAG=SLAPD_MOD_DYNAMIC
40722 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40724 MFLAG=SLAPD_MOD_STATIC
40725 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40728 cat >>confdefs.h <<_ACEOF
40729 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40734 if test "$ol_enable_unique" != no ; then
40735 BUILD_UNIQUE=$ol_enable_unique
40736 if test "$ol_enable_unique" = mod ; then
40737 MFLAG=SLAPD_MOD_DYNAMIC
40738 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40740 MFLAG=SLAPD_MOD_STATIC
40741 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40744 cat >>confdefs.h <<_ACEOF
40745 #define SLAPD_OVER_UNIQUE $MFLAG
40750 if test "$ol_enable_valsort" != no ; then
40751 BUILD_VALSORT=$ol_enable_valsort
40752 if test "$ol_enable_valsort" = mod ; then
40753 MFLAG=SLAPD_MOD_DYNAMIC
40754 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40756 MFLAG=SLAPD_MOD_STATIC
40757 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40760 cat >>confdefs.h <<_ACEOF
40761 #define SLAPD_OVER_VALSORT $MFLAG
40766 if test "$ol_enable_rewrite" != no ; then
40768 cat >>confdefs.h <<\_ACEOF
40769 #define ENABLE_REWRITE 1
40775 if test "$ol_enable_slapi" != no ; then
40777 cat >>confdefs.h <<\_ACEOF
40778 #define ENABLE_SLAPI 1
40782 SLAPD_SLAPI_DEPEND=libslapi.a
40787 if test "$ac_cv_mingw32" = yes ; then
40789 SLAPD_MODULES_LDFLAGS=
40876 # Check whether --with-xxinstall or --without-xxinstall was given.
40877 if test "${with_xxinstall+set}" = set; then
40878 withval="$with_xxinstall"
40883 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 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"
40886 ac_config_commands="$ac_config_commands default"
40890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40891 # Let make expand exec_prefix.
40892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40896 # trailing colons and then remove the whole line if VPATH becomes empty
40897 # (actually we leave an empty line to preserve line numbers).
40898 if test "x$srcdir" = x.; then
40899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40900 s/:*\$(srcdir):*/:/;
40901 s/:*\${srcdir}:*/:/;
40903 s/^\([^=]*=[ ]*\):*/\1/;
40909 DEFS=-DHAVE_CONFIG_H
40913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40914 # 1. Remove the extension, and $U if already installed.
40915 ac_i=`echo "$ac_i" |
40916 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40918 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40919 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40921 LIBOBJS=$ac_libobjs
40923 LTLIBOBJS=$ac_ltlibobjs
40926 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40927 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40928 Usually this means the macro was only invoked conditionally." >&5
40929 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40930 Usually this means the macro was only invoked conditionally." >&2;}
40931 { (exit 1); exit 1; }; }
40933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40934 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40935 Usually this means the macro was only invoked conditionally." >&5
40936 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40937 Usually this means the macro was only invoked conditionally." >&2;}
40938 { (exit 1); exit 1; }; }
40940 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40941 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40942 Usually this means the macro was only invoked conditionally." >&5
40943 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40944 Usually this means the macro was only invoked conditionally." >&2;}
40945 { (exit 1); exit 1; }; }
40948 : ${CONFIG_STATUS=./config.status}
40949 ac_clean_files_save=$ac_clean_files
40950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40953 cat >$CONFIG_STATUS <<_ACEOF
40955 # Generated by $as_me.
40956 # Run this file to recreate the current configuration.
40957 # Compiler output produced by configure, useful for debugging
40958 # configure, is in config.log if it exists.
40961 ac_cs_recheck=false
40963 SHELL=\${CONFIG_SHELL-$SHELL}
40966 cat >>$CONFIG_STATUS <<\_ACEOF
40967 ## --------------------- ##
40968 ## M4sh Initialization. ##
40969 ## --------------------- ##
40971 # Be Bourne compatible
40972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40975 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40976 # is contrary to our usage. Disable this feature.
40977 alias -g '${1+"$@"}'='"$@"'
40978 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40981 DUALCASE=1; export DUALCASE # for MKS sh
40983 # Support unset when possible.
40984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40991 # Work around bugs in pre-3.0 UWIN ksh.
40992 $as_unset ENV MAIL MAILPATH
40999 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41000 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41001 LC_TELEPHONE LC_TIME
41003 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41004 eval $as_var=C; export $as_var
41010 # Required to use basename.
41011 if expr a : '\(a\)' >/dev/null 2>&1; then
41017 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41018 as_basename=basename
41024 # Name of the executable.
41025 as_me=`$as_basename "$0" ||
41026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41027 X"$0" : 'X\(//\)$' \| \
41028 X"$0" : 'X\(/\)$' \| \
41029 . : '\(.\)' 2>/dev/null ||
41031 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41032 /^X\/\(\/\/\)$/{ s//\1/; q; }
41033 /^X\/\(\/\).*/{ s//\1/; q; }
41037 # PATH needs CR, and LINENO needs CR and PATH.
41038 # Avoid depending upon Character Ranges.
41039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41042 as_cr_digits='0123456789'
41043 as_cr_alnum=$as_cr_Letters$as_cr_digits
41045 # The user is always right.
41046 if test "${PATH_SEPARATOR+set}" != set; then
41047 echo "#! /bin/sh" >conf$$.sh
41048 echo "exit 0" >>conf$$.sh
41050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41059 as_lineno_1=$LINENO
41060 as_lineno_2=$LINENO
41061 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41062 test "x$as_lineno_1" != "x$as_lineno_2" &&
41063 test "x$as_lineno_3" = "x$as_lineno_2" || {
41064 # Find who we are. Look in the path if we contain no path at all
41067 *[\\/]* ) as_myself=$0 ;;
41068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41069 for as_dir in $PATH
41072 test -z "$as_dir" && as_dir=.
41073 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41078 # We did not find ourselves, most probably we were run as `sh COMMAND'
41079 # in which case we are not to be found in the path.
41080 if test "x$as_myself" = x; then
41083 if test ! -f "$as_myself"; then
41084 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41085 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41086 { (exit 1); exit 1; }; }
41088 case $CONFIG_SHELL in
41090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41091 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41094 test -z "$as_dir" && as_dir=.
41095 for as_base in sh bash ksh sh5; do
41098 if ("$as_dir/$as_base" -c '
41099 as_lineno_1=$LINENO
41100 as_lineno_2=$LINENO
41101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41102 test "x$as_lineno_1" != "x$as_lineno_2" &&
41103 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41104 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41105 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41106 CONFIG_SHELL=$as_dir/$as_base
41107 export CONFIG_SHELL
41108 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41117 # uniformly replaced by the line number. The first 'sed' inserts a
41118 # line-number line before each line; the second 'sed' does the real
41119 # work. The second script uses 'N' to pair each line-number line
41120 # with the numbered line, and appends trailing '-' during
41121 # substitution so that $LINENO is not a special case at line end.
41122 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41123 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41124 sed '=' <$as_myself |
41129 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41132 s,^['$as_cr_digits']*\n,,
41133 ' >$as_me.lineno &&
41134 chmod +x $as_me.lineno ||
41135 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41136 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41137 { (exit 1); exit 1; }; }
41139 # Don't try to exec as it changes $[0], causing all sort of problems
41140 # (the dirname of $[0] is not the place where we might find the
41141 # original and so on. Autoconf is especially sensible to this).
41143 # Exit status is that of the last command.
41148 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41149 *c*,-n*) ECHO_N= ECHO_C='
41151 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41152 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41155 if expr a : '\(a\)' >/dev/null 2>&1; then
41161 rm -f conf$$ conf$$.exe conf$$.file
41163 if ln -s conf$$.file conf$$ 2>/dev/null; then
41164 # We could just check for DJGPP; but this test a) works b) is more generic
41165 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41166 if test -f conf$$.exe; then
41167 # Don't use ln at all; we don't have any links
41172 elif ln conf$$.file conf$$ 2>/dev/null; then
41177 rm -f conf$$ conf$$.exe conf$$.file
41179 if mkdir -p . 2>/dev/null; then
41182 test -d ./-p && rmdir ./-p
41186 as_executable_p="test -f"
41188 # Sed expression to map a string onto a valid CPP name.
41189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41191 # Sed expression to map a string onto a valid variable name.
41192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41196 # We need space, tab and new line, in precisely that order.
41206 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41207 # report actual input values of CONFIG_FILES etc. instead of their
41208 # values after options handling. Logging --version etc. is OK.
41212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41213 ## Running $as_me. ##
41218 This file was extended by $as_me, which was
41219 generated by GNU Autoconf 2.59. Invocation command line was
41221 CONFIG_FILES = $CONFIG_FILES
41222 CONFIG_HEADERS = $CONFIG_HEADERS
41223 CONFIG_LINKS = $CONFIG_LINKS
41224 CONFIG_COMMANDS = $CONFIG_COMMANDS
41228 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41232 # Files that config.status was made for.
41233 if test -n "$ac_config_files"; then
41234 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41237 if test -n "$ac_config_headers"; then
41238 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41241 if test -n "$ac_config_links"; then
41242 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41245 if test -n "$ac_config_commands"; then
41246 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41249 cat >>$CONFIG_STATUS <<\_ACEOF
41252 \`$as_me' instantiates files from templates according to the
41253 current configuration.
41255 Usage: $0 [OPTIONS] [FILE]...
41257 -h, --help print this help, then exit
41258 -V, --version print version number, then exit
41259 -q, --quiet do not print progress messages
41260 -d, --debug don't remove temporary files
41261 --recheck update $as_me by reconfiguring in the same conditions
41262 --file=FILE[:TEMPLATE]
41263 instantiate the configuration file FILE
41264 --header=FILE[:TEMPLATE]
41265 instantiate the configuration header FILE
41267 Configuration files:
41270 Configuration headers:
41273 Configuration commands:
41276 Report bugs to <bug-autoconf@gnu.org>."
41279 cat >>$CONFIG_STATUS <<_ACEOF
41282 configured by $0, generated by GNU Autoconf 2.59,
41283 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41285 Copyright (C) 2003 Free Software Foundation, Inc.
41286 This config.status script is free software; the Free Software Foundation
41287 gives unlimited permission to copy, distribute and modify it."
41292 cat >>$CONFIG_STATUS <<\_ACEOF
41293 # If no file are specified by the user, then we need to provide default
41294 # value. By we need to know if files were specified by the user.
41300 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41301 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41309 *) # This is not an option, so the user has probably given explicit
41312 ac_need_defaults=false;;
41316 # Handling of the options.
41318 cat >>$CONFIG_STATUS <<\_ACEOF
41319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41321 --version | --vers* | -V )
41322 echo "$ac_cs_version"; exit 0 ;;
41324 # Conflict between --help and --header
41325 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41326 Try \`$0 --help' for more information." >&5
41327 echo "$as_me: error: ambiguous option: $1
41328 Try \`$0 --help' for more information." >&2;}
41329 { (exit 1); exit 1; }; };;
41330 --help | --hel | -h )
41331 echo "$ac_cs_usage"; exit 0 ;;
41332 --debug | --d* | -d )
41334 --file | --fil | --fi | --f )
41336 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41337 ac_need_defaults=false;;
41338 --header | --heade | --head | --hea )
41340 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41341 ac_need_defaults=false;;
41342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41346 # This is an error.
41347 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41348 Try \`$0 --help' for more information." >&5
41349 echo "$as_me: error: unrecognized option: $1
41350 Try \`$0 --help' for more information." >&2;}
41351 { (exit 1); exit 1; }; } ;;
41353 *) ac_config_targets="$ac_config_targets $1" ;;
41359 ac_configure_extra_args=
41361 if $ac_cs_silent; then
41363 ac_configure_extra_args="$ac_configure_extra_args --silent"
41367 cat >>$CONFIG_STATUS <<_ACEOF
41368 if \$ac_cs_recheck; then
41369 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41370 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41375 cat >>$CONFIG_STATUS <<_ACEOF
41377 # INIT-COMMANDS section.
41380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41382 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41383 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41390 cat >>$CONFIG_STATUS <<\_ACEOF
41391 for ac_config_target in $ac_config_targets
41393 case "$ac_config_target" in
41394 # Handling of arguments.
41395 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41396 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41397 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41398 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41399 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41400 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41401 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41402 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41403 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41404 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41405 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41406 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41407 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41408 "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" ;;
41409 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41410 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41411 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41412 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41413 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41414 "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" ;;
41415 "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" ;;
41416 "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" ;;
41417 "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" ;;
41418 "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" ;;
41419 "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" ;;
41420 "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" ;;
41421 "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" ;;
41422 "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" ;;
41423 "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" ;;
41424 "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" ;;
41425 "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" ;;
41426 "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" ;;
41427 "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" ;;
41428 "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" ;;
41429 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41430 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41431 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41432 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41433 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41434 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41435 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41436 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41437 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41438 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41439 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41440 { (exit 1); exit 1; }; };;
41444 # If the user did not use the arguments to specify the items to instantiate,
41445 # then the envvar interface is used. Set only those that are not.
41446 # We use the long form for the default assignment because of an extremely
41447 # bizarre bug on SunOS 4.1.3.
41448 if $ac_need_defaults; then
41449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41454 # Have a temporary directory for convenience. Make it in the build tree
41455 # simply because there is no reason to put it here, and in addition,
41456 # creating and moving files from /tmp can sometimes cause problems.
41457 # Create a temporary directory, and hook for its removal unless debugging.
41460 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41461 trap '{ (exit 1); exit 1; }' 1 2 13 15
41464 # Create a (secure) tmp directory for tmp files.
41467 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41468 test -n "$tmp" && test -d "$tmp"
41471 tmp=./confstat$$-$RANDOM
41472 (umask 077 && mkdir $tmp)
41475 echo "$me: cannot create a temporary directory in ." >&2
41476 { (exit 1); exit 1; }
41481 cat >>$CONFIG_STATUS <<_ACEOF
41484 # CONFIG_FILES section.
41487 # No need to generate the scripts if there are no CONFIG_FILES.
41488 # This happens for instance when ./config.status config.h
41489 if test -n "\$CONFIG_FILES"; then
41490 # Protect against being on the right side of a sed subst in config.status.
41491 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41492 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41493 s,@SHELL@,$SHELL,;t t
41494 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41495 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41496 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41497 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41498 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41499 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41500 s,@exec_prefix@,$exec_prefix,;t t
41501 s,@prefix@,$prefix,;t t
41502 s,@program_transform_name@,$program_transform_name,;t t
41503 s,@bindir@,$bindir,;t t
41504 s,@sbindir@,$sbindir,;t t
41505 s,@libexecdir@,$libexecdir,;t t
41506 s,@datadir@,$datadir,;t t
41507 s,@sysconfdir@,$sysconfdir,;t t
41508 s,@sharedstatedir@,$sharedstatedir,;t t
41509 s,@localstatedir@,$localstatedir,;t t
41510 s,@libdir@,$libdir,;t t
41511 s,@includedir@,$includedir,;t t
41512 s,@oldincludedir@,$oldincludedir,;t t
41513 s,@infodir@,$infodir,;t t
41514 s,@mandir@,$mandir,;t t
41515 s,@build_alias@,$build_alias,;t t
41516 s,@host_alias@,$host_alias,;t t
41517 s,@target_alias@,$target_alias,;t t
41518 s,@DEFS@,$DEFS,;t t
41519 s,@ECHO_C@,$ECHO_C,;t t
41520 s,@ECHO_N@,$ECHO_N,;t t
41521 s,@ECHO_T@,$ECHO_T,;t t
41522 s,@LIBS@,$LIBS,;t t
41523 s,@build@,$build,;t t
41524 s,@build_cpu@,$build_cpu,;t t
41525 s,@build_vendor@,$build_vendor,;t t
41526 s,@build_os@,$build_os,;t t
41527 s,@host@,$host,;t t
41528 s,@host_cpu@,$host_cpu,;t t
41529 s,@host_vendor@,$host_vendor,;t t
41530 s,@host_os@,$host_os,;t t
41531 s,@target@,$target,;t t
41532 s,@target_cpu@,$target_cpu,;t t
41533 s,@target_vendor@,$target_vendor,;t t
41534 s,@target_os@,$target_os,;t t
41535 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41536 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41537 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41538 s,@CYGPATH_W@,$CYGPATH_W,;t t
41539 s,@PACKAGE@,$PACKAGE,;t t
41540 s,@VERSION@,$VERSION,;t t
41541 s,@ACLOCAL@,$ACLOCAL,;t t
41542 s,@AUTOCONF@,$AUTOCONF,;t t
41543 s,@AUTOMAKE@,$AUTOMAKE,;t t
41544 s,@AUTOHEADER@,$AUTOHEADER,;t t
41545 s,@MAKEINFO@,$MAKEINFO,;t t
41546 s,@install_sh@,$install_sh,;t t
41547 s,@STRIP@,$STRIP,;t t
41548 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41549 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41550 s,@mkdir_p@,$mkdir_p,;t t
41552 s,@SET_MAKE@,$SET_MAKE,;t t
41553 s,@am__leading_dot@,$am__leading_dot,;t t
41554 s,@AMTAR@,$AMTAR,;t t
41555 s,@am__tar@,$am__tar,;t t
41556 s,@am__untar@,$am__untar,;t t
41557 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41558 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41559 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41560 s,@top_builddir@,$top_builddir,;t t
41561 s,@ldap_subdir@,$ldap_subdir,;t t
41564 s,@CFLAGS@,$CFLAGS,;t t
41565 s,@LDFLAGS@,$LDFLAGS,;t t
41566 s,@CPPFLAGS@,$CPPFLAGS,;t t
41567 s,@ac_ct_CC@,$ac_ct_CC,;t t
41568 s,@EXEEXT@,$EXEEXT,;t t
41569 s,@OBJEXT@,$OBJEXT,;t t
41570 s,@DEPDIR@,$DEPDIR,;t t
41571 s,@am__include@,$am__include,;t t
41572 s,@am__quote@,$am__quote,;t t
41573 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41574 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41575 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41576 s,@CCDEPMODE@,$CCDEPMODE,;t t
41577 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41578 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41579 s,@EGREP@,$EGREP,;t t
41580 s,@LN_S@,$LN_S,;t t
41581 s,@ECHO@,$ECHO,;t t
41582 s,@ac_ct_AR@,$ac_ct_AR,;t t
41583 s,@RANLIB@,$RANLIB,;t t
41584 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41585 s,@DLLTOOL@,$DLLTOOL,;t t
41586 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41588 s,@ac_ct_AS@,$ac_ct_AS,;t t
41589 s,@OBJDUMP@,$OBJDUMP,;t t
41590 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41592 s,@LIBTOOL@,$LIBTOOL,;t t
41593 s,@PERLBIN@,$PERLBIN,;t t
41594 s,@OL_MKDEP@,$OL_MKDEP,;t t
41595 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41596 s,@LTSTATIC@,$LTSTATIC,;t t
41597 s,@LIBOBJS@,$LIBOBJS,;t t
41598 s,@LIBSRCS@,$LIBSRCS,;t t
41599 s,@PLAT@,$PLAT,;t t
41600 s,@WITH_SASL@,$WITH_SASL,;t t
41601 s,@WITH_TLS@,$WITH_TLS,;t t
41602 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41603 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41604 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41605 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41606 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41607 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41608 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41609 s,@BUILD_BDB@,$BUILD_BDB,;t t
41610 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41611 s,@BUILD_HDB@,$BUILD_HDB,;t t
41612 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41613 s,@BUILD_META@,$BUILD_META,;t t
41614 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41615 s,@BUILD_NULL@,$BUILD_NULL,;t t
41616 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41617 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41618 s,@BUILD_PERL@,$BUILD_PERL,;t t
41619 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41620 s,@BUILD_SQL@,$BUILD_SQL,;t t
41621 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41622 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41623 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41624 s,@BUILD_DDS@,$BUILD_DDS,;t t
41625 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41626 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41627 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41628 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41629 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41630 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41631 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41632 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41633 s,@BUILD_RWM@,$BUILD_RWM,;t t
41634 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41635 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41636 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41637 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41638 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41639 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41640 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41641 s,@BDB_LIBS@,$BDB_LIBS,;t t
41642 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41643 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41644 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41645 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41646 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41647 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41648 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41649 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41650 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41651 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41652 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41653 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41654 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41655 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41656 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41657 s,@SASL_LIBS@,$SASL_LIBS,;t t
41658 s,@TLS_LIBS@,$TLS_LIBS,;t t
41659 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41660 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41661 s,@LIBSLAPI@,$LIBSLAPI,;t t
41662 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41663 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41664 s,@ICU_LIBS@,$ICU_LIBS,;t t
41665 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41666 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41667 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41668 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41669 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41670 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41675 cat >>$CONFIG_STATUS <<\_ACEOF
41676 # Split the substitutions into bite-sized pieces for seds with
41677 # small command number limits, like on Digital OSF/1 and HP-UX.
41678 ac_max_sed_lines=48
41679 ac_sed_frag=1 # Number of current file.
41680 ac_beg=1 # First line for current file.
41681 ac_end=$ac_max_sed_lines # Line after last line for current file.
41684 while $ac_more_lines; do
41685 if test $ac_beg -gt 1; then
41686 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41688 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41690 if test ! -s $tmp/subs.frag; then
41691 ac_more_lines=false
41693 # The purpose of the label and of the branching condition is to
41694 # speed up the sed processing (if there are no `@' at all, there
41695 # is no need to browse any of the substitutions).
41696 # These are the two extra sed commands mentioned above.
41698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41699 if test -z "$ac_sed_cmds"; then
41700 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41702 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41704 ac_sed_frag=`expr $ac_sed_frag + 1`
41706 ac_end=`expr $ac_end + $ac_max_sed_lines`
41709 if test -z "$ac_sed_cmds"; then
41712 fi # test -n "$CONFIG_FILES"
41715 cat >>$CONFIG_STATUS <<\_ACEOF
41716 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41719 - | *:- | *:-:* ) # input from stdin
41721 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41723 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41725 * ) ac_file_in=$ac_file.in ;;
41728 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41729 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41731 X"$ac_file" : 'X\(//\)[^/]' \| \
41732 X"$ac_file" : 'X\(//\)$' \| \
41733 X"$ac_file" : 'X\(/\)' \| \
41734 . : '\(.\)' 2>/dev/null ||
41736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41738 /^X\(\/\/\)$/{ s//\1/; q; }
41739 /^X\(\/\).*/{ s//\1/; q; }
41741 { if $as_mkdir_p; then
41746 while test ! -d "$as_dir"; do
41747 as_dirs="$as_dir $as_dirs"
41748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41750 X"$as_dir" : 'X\(//\)[^/]' \| \
41751 X"$as_dir" : 'X\(//\)$' \| \
41752 X"$as_dir" : 'X\(/\)' \| \
41753 . : '\(.\)' 2>/dev/null ||
41755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41757 /^X\(\/\/\)$/{ s//\1/; q; }
41758 /^X\(\/\).*/{ s//\1/; q; }
41761 test ! -n "$as_dirs" || mkdir $as_dirs
41762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41764 { (exit 1); exit 1; }; }; }
41768 if test "$ac_dir" != .; then
41769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41770 # A "../" for each directory in $ac_dir_suffix.
41771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41773 ac_dir_suffix= ac_top_builddir=
41777 .) # No --srcdir option. We are building in place.
41779 if test -z "$ac_top_builddir"; then
41782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41784 [\\/]* | ?:[\\/]* ) # Absolute path.
41785 ac_srcdir=$srcdir$ac_dir_suffix;
41786 ac_top_srcdir=$srcdir ;;
41787 *) # Relative path.
41788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41792 # Do not use `cd foo && pwd` to compute absolute paths, because
41793 # the directories may not exist.
41795 .) ac_abs_builddir="$ac_dir";;
41798 .) ac_abs_builddir=`pwd`;;
41799 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41800 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41803 case $ac_abs_builddir in
41804 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41806 case ${ac_top_builddir}. in
41807 .) ac_abs_top_builddir=$ac_abs_builddir;;
41808 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41809 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41812 case $ac_abs_builddir in
41813 .) ac_abs_srcdir=$ac_srcdir;;
41816 .) ac_abs_srcdir=$ac_abs_builddir;;
41817 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41818 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41821 case $ac_abs_builddir in
41822 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41824 case $ac_top_srcdir in
41825 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41826 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41827 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41834 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41837 if test x"$ac_file" != x-; then
41838 { echo "$as_me:$LINENO: creating $ac_file" >&5
41839 echo "$as_me: creating $ac_file" >&6;}
41842 # Let's still pretend it is `configure' which instantiates (i.e., don't
41843 # use $as_me), people would be surprised to read:
41844 # /* config.h. Generated by config.status. */
41845 if test x"$ac_file" = x-; then
41848 configure_input="$ac_file. "
41850 configure_input=$configure_input"Generated from `echo $ac_file_in |
41851 sed 's,.*/,,'` by configure."
41853 # First look for the input files in the build tree, otherwise in the
41855 ac_file_inputs=`IFS=:
41856 for f in $ac_file_in; do
41858 -) echo $tmp/stdin ;;
41860 # Absolute (can't be DOS-style, as IFS=:)
41861 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41862 echo "$as_me: error: cannot find input file: $f" >&2;}
41863 { (exit 1); exit 1; }; }
41866 if test -f "$f"; then
41869 elif test -f "$srcdir/$f"; then
41874 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41875 echo "$as_me: error: cannot find input file: $f" >&2;}
41876 { (exit 1); exit 1; }; }
41879 done` || { (exit 1); exit 1; }
41881 cat >>$CONFIG_STATUS <<_ACEOF
41885 cat >>$CONFIG_STATUS <<\_ACEOF
41887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41888 s,@configure_input@,$configure_input,;t t
41889 s,@srcdir@,$ac_srcdir,;t t
41890 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41891 s,@top_srcdir@,$ac_top_srcdir,;t t
41892 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41893 s,@builddir@,$ac_builddir,;t t
41894 s,@abs_builddir@,$ac_abs_builddir,;t t
41895 s,@top_builddir@,$ac_top_builddir,;t t
41896 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41897 s,@INSTALL@,$ac_INSTALL,;t t
41898 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41900 if test x"$ac_file" != x-; then
41901 mv $tmp/out $ac_file
41909 cat >>$CONFIG_STATUS <<\_ACEOF
41912 # CONFIG_HEADER section.
41915 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41916 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41918 # ac_d sets the value in "#define NAME VALUE" lines.
41919 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41920 ac_dB='[ ].*$,\1#\2'
41923 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41924 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41925 ac_uB='$,\1#\2define\3'
41929 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41932 - | *:- | *:-:* ) # input from stdin
41934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41938 * ) ac_file_in=$ac_file.in ;;
41941 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41942 echo "$as_me: creating $ac_file" >&6;}
41944 # First look for the input files in the build tree, otherwise in the
41946 ac_file_inputs=`IFS=:
41947 for f in $ac_file_in; do
41949 -) echo $tmp/stdin ;;
41951 # Absolute (can't be DOS-style, as IFS=:)
41952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41953 echo "$as_me: error: cannot find input file: $f" >&2;}
41954 { (exit 1); exit 1; }; }
41955 # Do quote $f, to prevent DOS paths from being IFS'd.
41958 if test -f "$f"; then
41961 elif test -f "$srcdir/$f"; then
41966 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41967 echo "$as_me: error: cannot find input file: $f" >&2;}
41968 { (exit 1); exit 1; }; }
41971 done` || { (exit 1); exit 1; }
41972 # Remove the trailing spaces.
41973 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41977 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41978 # `conftest.undefs', that substitutes the proper values into
41979 # config.h.in to produce config.h. The first handles `#define'
41980 # templates, and the second `#undef' templates.
41981 # And first: Protect against being on the right side of a sed subst in
41982 # config.status. Protect against being in an unquoted here document
41983 # in config.status.
41984 rm -f conftest.defines conftest.undefs
41985 # Using a here document instead of a string reduces the quoting nightmare.
41986 # Putting comments in sed scripts is not portable.
41988 # `end' is used to avoid that the second main sed command (meant for
41989 # 0-ary CPP macros) applies to n-ary macro definitions.
41990 # See the Autoconf documentation for `clear'.
41991 cat >confdef2sed.sed <<\_ACEOF
41996 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41998 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42001 # If some macros were called several times there might be several times
42002 # the same #defines, which is useless. Nevertheless, we may not want to
42003 # sort them, since we want the *last* AC-DEFINE to be honored.
42004 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42005 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42006 rm -f confdef2sed.sed
42008 # This sed command replaces #undef with comments. This is necessary, for
42009 # example, in the case of _POSIX_SOURCE, which is predefined and required
42010 # on some systems where configure will not decide to define it.
42011 cat >>conftest.undefs <<\_ACEOF
42012 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42015 # Break up conftest.defines because some shells have a limit on the size
42016 # of here documents, and old seds have small limits too (100 cmds).
42017 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42018 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42019 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42020 echo ' :' >>$CONFIG_STATUS
42021 rm -f conftest.tail
42022 while grep . conftest.defines >/dev/null
42024 # Write a limited-size here document to $tmp/defines.sed.
42025 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42026 # Speed up: don't consider the non `#define' lines.
42027 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42028 # Work around the forget-to-reset-the-flag bug.
42029 echo 't clr' >>$CONFIG_STATUS
42030 echo ': clr' >>$CONFIG_STATUS
42031 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42033 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42035 mv $tmp/out $tmp/in
42037 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42038 rm -f conftest.defines
42039 mv conftest.tail conftest.defines
42041 rm -f conftest.defines
42042 echo ' fi # grep' >>$CONFIG_STATUS
42043 echo >>$CONFIG_STATUS
42045 # Break up conftest.undefs because some shells have a limit on the size
42046 # of here documents, and old seds have small limits too (100 cmds).
42047 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42048 rm -f conftest.tail
42049 while grep . conftest.undefs >/dev/null
42051 # Write a limited-size here document to $tmp/undefs.sed.
42052 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42053 # Speed up: don't consider the non `#undef'
42054 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42055 # Work around the forget-to-reset-the-flag bug.
42056 echo 't clr' >>$CONFIG_STATUS
42057 echo ': clr' >>$CONFIG_STATUS
42058 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42060 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42062 mv $tmp/out $tmp/in
42064 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42065 rm -f conftest.undefs
42066 mv conftest.tail conftest.undefs
42068 rm -f conftest.undefs
42070 cat >>$CONFIG_STATUS <<\_ACEOF
42071 # Let's still pretend it is `configure' which instantiates (i.e., don't
42072 # use $as_me), people would be surprised to read:
42073 # /* config.h. Generated by config.status. */
42074 if test x"$ac_file" = x-; then
42075 echo "/* Generated by configure. */" >$tmp/config.h
42077 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42079 cat $tmp/in >>$tmp/config.h
42081 if test x"$ac_file" != x-; then
42082 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42083 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42084 echo "$as_me: $ac_file is unchanged" >&6;}
42086 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42088 X"$ac_file" : 'X\(//\)[^/]' \| \
42089 X"$ac_file" : 'X\(//\)$' \| \
42090 X"$ac_file" : 'X\(/\)' \| \
42091 . : '\(.\)' 2>/dev/null ||
42093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42095 /^X\(\/\/\)$/{ s//\1/; q; }
42096 /^X\(\/\).*/{ s//\1/; q; }
42098 { if $as_mkdir_p; then
42103 while test ! -d "$as_dir"; do
42104 as_dirs="$as_dir $as_dirs"
42105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42107 X"$as_dir" : 'X\(//\)[^/]' \| \
42108 X"$as_dir" : 'X\(//\)$' \| \
42109 X"$as_dir" : 'X\(/\)' \| \
42110 . : '\(.\)' 2>/dev/null ||
42112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42114 /^X\(\/\/\)$/{ s//\1/; q; }
42115 /^X\(\/\).*/{ s//\1/; q; }
42118 test ! -n "$as_dirs" || mkdir $as_dirs
42119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42121 { (exit 1); exit 1; }; }; }
42124 mv $tmp/config.h $ac_file
42128 rm -f $tmp/config.h
42130 # Compute $ac_file's index in $config_headers.
42132 for _am_header in $config_headers :; do
42133 case $_am_header in
42134 $ac_file | $ac_file:* )
42137 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42140 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42141 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42142 X$ac_file : 'X\(//\)[^/]' \| \
42143 X$ac_file : 'X\(//\)$' \| \
42144 X$ac_file : 'X\(/\)' \| \
42145 . : '\(.\)' 2>/dev/null ||
42147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42149 /^X\(\/\/\)$/{ s//\1/; q; }
42150 /^X\(\/\).*/{ s//\1/; q; }
42151 s/.*/./; q'`/stamp-h$_am_stamp_count
42154 cat >>$CONFIG_STATUS <<\_ACEOF
42157 # CONFIG_COMMANDS section.
42159 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42160 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42161 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42162 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42163 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42164 X"$ac_dest" : 'X\(//\)[^/]' \| \
42165 X"$ac_dest" : 'X\(//\)$' \| \
42166 X"$ac_dest" : 'X\(/\)' \| \
42167 . : '\(.\)' 2>/dev/null ||
42169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42171 /^X\(\/\/\)$/{ s//\1/; q; }
42172 /^X\(\/\).*/{ s//\1/; q; }
42174 { if $as_mkdir_p; then
42179 while test ! -d "$as_dir"; do
42180 as_dirs="$as_dir $as_dirs"
42181 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42183 X"$as_dir" : 'X\(//\)[^/]' \| \
42184 X"$as_dir" : 'X\(//\)$' \| \
42185 X"$as_dir" : 'X\(/\)' \| \
42186 . : '\(.\)' 2>/dev/null ||
42188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42190 /^X\(\/\/\)$/{ s//\1/; q; }
42191 /^X\(\/\).*/{ s//\1/; q; }
42194 test ! -n "$as_dirs" || mkdir $as_dirs
42195 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42196 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42197 { (exit 1); exit 1; }; }; }
42201 if test "$ac_dir" != .; then
42202 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42203 # A "../" for each directory in $ac_dir_suffix.
42204 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42206 ac_dir_suffix= ac_top_builddir=
42210 .) # No --srcdir option. We are building in place.
42212 if test -z "$ac_top_builddir"; then
42215 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42217 [\\/]* | ?:[\\/]* ) # Absolute path.
42218 ac_srcdir=$srcdir$ac_dir_suffix;
42219 ac_top_srcdir=$srcdir ;;
42220 *) # Relative path.
42221 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42222 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42225 # Do not use `cd foo && pwd` to compute absolute paths, because
42226 # the directories may not exist.
42228 .) ac_abs_builddir="$ac_dir";;
42231 .) ac_abs_builddir=`pwd`;;
42232 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42233 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42236 case $ac_abs_builddir in
42237 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42239 case ${ac_top_builddir}. in
42240 .) ac_abs_top_builddir=$ac_abs_builddir;;
42241 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42242 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42245 case $ac_abs_builddir in
42246 .) ac_abs_srcdir=$ac_srcdir;;
42249 .) ac_abs_srcdir=$ac_abs_builddir;;
42250 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42251 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42254 case $ac_abs_builddir in
42255 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42257 case $ac_top_srcdir in
42258 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42259 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42260 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42265 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42266 echo "$as_me: executing $ac_dest commands" >&6;}
42268 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42269 # Strip MF so we end up with the name of the file.
42270 mf=`echo "$mf" | sed -e 's/:.*$//'`
42271 # Check whether this is an Automake generated Makefile or not.
42272 # We used to match only the files named `Makefile.in', but
42273 # some people rename them; so instead we look at the file content.
42274 # Grep'ing the first line is not enough: some people post-process
42275 # each Makefile.in and add a new line on top of each file to say so.
42276 # So let's grep whole file.
42277 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42278 dirpart=`(dirname "$mf") 2>/dev/null ||
42279 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42280 X"$mf" : 'X\(//\)[^/]' \| \
42281 X"$mf" : 'X\(//\)$' \| \
42282 X"$mf" : 'X\(/\)' \| \
42283 . : '\(.\)' 2>/dev/null ||
42285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42287 /^X\(\/\/\)$/{ s//\1/; q; }
42288 /^X\(\/\).*/{ s//\1/; q; }
42293 # Extract the definition of DEPDIR, am__include, and am__quote
42294 # from the Makefile without running `make'.
42295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42296 test -z "$DEPDIR" && continue
42297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42298 test -z "am__include" && continue
42299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42300 # When using ansi2knr, U may be empty or an underscore; expand it
42301 U=`sed -n 's/^U = //p' < "$mf"`
42302 # Find all dependency output files, they are included files with
42303 # $(DEPDIR) in their names. We invoke sed twice because it is the
42304 # simplest approach to changing $(DEPDIR) to its actual value in the
42306 for file in `sed -n "
42307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42309 # Make sure the directory exists.
42310 test -f "$dirpart/$file" && continue
42311 fdir=`(dirname "$file") 2>/dev/null ||
42312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42313 X"$file" : 'X\(//\)[^/]' \| \
42314 X"$file" : 'X\(//\)$' \| \
42315 X"$file" : 'X\(/\)' \| \
42316 . : '\(.\)' 2>/dev/null ||
42318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42320 /^X\(\/\/\)$/{ s//\1/; q; }
42321 /^X\(\/\).*/{ s//\1/; q; }
42323 { if $as_mkdir_p; then
42324 mkdir -p $dirpart/$fdir
42326 as_dir=$dirpart/$fdir
42328 while test ! -d "$as_dir"; do
42329 as_dirs="$as_dir $as_dirs"
42330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42332 X"$as_dir" : 'X\(//\)[^/]' \| \
42333 X"$as_dir" : 'X\(//\)$' \| \
42334 X"$as_dir" : 'X\(/\)' \| \
42335 . : '\(.\)' 2>/dev/null ||
42337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42339 /^X\(\/\/\)$/{ s//\1/; q; }
42340 /^X\(\/\).*/{ s//\1/; q; }
42343 test ! -n "$as_dirs" || mkdir $as_dirs
42344 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42345 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42346 { (exit 1); exit 1; }; }; }
42348 # echo "creating $dirpart/$file"
42349 echo '# dummy' > "$dirpart/$file"
42356 BACKENDSC="servers/slapd/backends.c"
42357 echo "Making $BACKENDSC"
42359 cat > $BACKENDSC << ENDX
42360 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42362 * Copyright 1998-2007 The OpenLDAP Foundation.
42363 * All rights reserved.
42365 * Redistribution and use in source and binary forms, with or without
42366 * modification, are permitted only as authorized by the OpenLDAP
42369 * A copy of this license is available in the file LICENSE in the
42370 * top-level directory of the distribution or, alternatively, at
42371 * <http://www.OpenLDAP.org/license.html>.
42373 /* This file is automatically generated by configure; please do not edit. */
42375 #include "portable.h"
42379 if test "${STATIC_BACKENDS}"; then
42380 for b in config ${STATIC_BACKENDS}; do
42381 bb=`echo "${b}" | sed -e 's/back-//'`
42382 cat >> $BACKENDSC << ENDX
42383 extern BI_init ${bb}_back_initialize;
42387 cat >> $BACKENDSC << ENDX
42389 BackendInfo slap_binfo[] = {
42392 for b in config ${STATIC_BACKENDS}; do
42393 bb=`echo "${b}" | sed -e 's/back-//'`
42394 echo " Add ${bb} ..."
42395 cat >> $BACKENDSC << ENDX
42396 { "${bb}", ${bb}_back_initialize },
42400 cat >> $BACKENDSC << ENDX
42404 /* end of generated file */
42407 OVERLAYSC="servers/slapd/overlays/statover.c"
42408 echo "Making $OVERLAYSC"
42410 cat > $OVERLAYSC << ENDX
42411 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42413 * Copyright 1998-2007 The OpenLDAP Foundation.
42414 * All rights reserved.
42416 * Redistribution and use in source and binary forms, with or without
42417 * modification, are permitted only as authorized by the OpenLDAP
42420 * A copy of this license is available in the file LICENSE in the
42421 * top-level directory of the distribution or, alternatively, at
42422 * <http://www.OpenLDAP.org/license.html>.
42424 /* This file is automatically generated by configure; please do not edit. */
42426 #include "portable.h"
42430 if test "${STATIC_OVERLAYS}"; then
42431 for o in ${STATIC_OVERLAYS}; do
42432 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42433 cat >> $OVERLAYSC << ENDX
42434 extern OV_init ${oo}_initialize;
42439 cat >> $OVERLAYSC << ENDX
42441 OverlayInit slap_oinfo[] = {
42444 if test "${STATIC_OVERLAYS}"; then
42445 for o in ${STATIC_OVERLAYS}; do
42446 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42447 echo " Add ${oo} ..."
42448 cat >> $OVERLAYSC << ENDX
42449 { "${oo}", ${oo}_initialize },
42454 cat >> $OVERLAYSC << ENDX
42458 /* end of generated file */
42461 if test "${ol_cv_mkdep}" = no; then
42462 echo '(Do not "make depend"; we do not know how to build dependencies)'
42464 echo 'Please run "make depend" to build dependencies'
42471 cat >>$CONFIG_STATUS <<\_ACEOF
42473 { (exit 0); exit 0; }
42475 chmod +x $CONFIG_STATUS
42476 ac_clean_files=$ac_clean_files_save
42479 # configure is writing to config.log, and then calls config.status.
42480 # config.status does its own redirection, appending to config.log.
42481 # Unfortunately, on DOS this fails, as config.log is still kept open
42482 # by configure, so config.status won't be able to write to it; its
42483 # output is simply discarded. So we exec the FD to /dev/null,
42484 # effectively closing config.log, so it can be properly (re)opened and
42485 # appended to by config.status. When coming back to configure, we
42486 # need to make the FD available again.
42487 if test "$no_create" != yes; then
42489 ac_config_status_args=
42490 test "$silent" = yes &&
42491 ac_config_status_args="$ac_config_status_args --quiet"
42493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42496 # would make configure fail if this is the last instruction.
42497 $ac_cs_success || { (exit 1); exit 1; }