2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.618 2006/01/06 16:12:35 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_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-ldbm enable ldbm backend no|yes|mod [no]
1038 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1039 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1040 --enable-meta enable metadirectory backend no|yes|mod [no]
1041 --enable-monitor enable monitor backend no|yes|mod [yes]
1042 --enable-null enable null backend no|yes|mod [no]
1043 --enable-passwd enable passwd backend no|yes|mod [no]
1044 --enable-perl enable perl backend no|yes|mod [no]
1045 --enable-relay enable relay backend no|yes|mod [yes]
1046 --enable-shell enable shell backend no|yes|mod [no]
1047 --enable-sql enable sql backend no|yes|mod [no]
1049 SLAPD Overlay Options:
1050 --enable-overlays enable all available overlays no|yes|mod
1051 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1052 --enable-denyop Deny Operation overlay no|yes|mod [no]
1053 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1054 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1055 --enable-lastmod Last Modification overlay no|yes|mod [no]
1056 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1057 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1058 --enable-refint Referential Integrity overlay no|yes|mod [no]
1059 --enable-retcode Return Code testing overlay no|yes|mod [no]
1060 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1061 --enable-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 SLURPD (Replication Daemon) Options:
1067 --enable-slurpd enable building slurpd [auto]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-threads with threads [auto]
1087 --with-tls with TLS/SSL support [auto]
1088 --with-yielding-select with implicitly yielding select [auto]
1089 --with-multiple-precision
1090 multiple precision support for statistics
1091 auto|bignum|gmp [auto]
1093 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1094 --with-pic try to use only PIC/non-PIC objects [default=use
1097 include additional configurations [automatic]
1099 See INSTALL file for further details.
1101 Some influential environment variables:
1102 CC C compiler command
1103 CFLAGS C compiler flags
1104 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1105 nonstandard directory <lib dir>
1106 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107 headers in a nonstandard directory <include dir>
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1116 if test "$ac_init_help" = "recursive"; then
1117 # If there are subdirs, report their specific --help.
1119 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120 test -d $ac_dir || continue
1123 if test "$ac_dir" != .; then
1124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125 # A "../" for each directory in $ac_dir_suffix.
1126 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 ac_dir_suffix= ac_top_builddir=
1132 .) # No --srcdir option. We are building in place.
1134 if test -z "$ac_top_builddir"; then
1137 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139 [\\/]* | ?:[\\/]* ) # Absolute path.
1140 ac_srcdir=$srcdir$ac_dir_suffix;
1141 ac_top_srcdir=$srcdir ;;
1143 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1150 .) ac_abs_builddir="$ac_dir";;
1153 .) ac_abs_builddir=`pwd`;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 case ${ac_top_builddir}. in
1162 .) ac_abs_top_builddir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1171 .) ac_abs_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 case $ac_top_srcdir in
1180 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187 # Check for guested configure; otherwise get Cygnus style configure.
1188 if test -f $ac_srcdir/configure.gnu; then
1190 $SHELL $ac_srcdir/configure.gnu --help=recursive
1191 elif test -f $ac_srcdir/configure; then
1193 $SHELL $ac_srcdir/configure --help=recursive
1194 elif test -f $ac_srcdir/configure.ac ||
1195 test -f $ac_srcdir/configure.in; then
1197 $ac_configure --help
1199 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1213 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59. Invocation command line was
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258 test -z "$as_dir" && as_dir=.
1259 echo "PATH: $as_dir"
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1283 ac_must_keep_next=false
1289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1297 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300 if test $ac_must_keep_next = true; then
1301 ac_must_keep_next=false # Got value, back to normal.
1304 *=* | --config-cache | -C | -disable-* | --disable-* \
1305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307 | -with-* | --with-* | -without-* | --without-* | --x)
1308 case "$ac_configure_args0 " in
1309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1312 -* ) ac_must_keep_next=true ;;
1315 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316 # Get rid of the leading space.
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log. We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331 # Save into config.log some information that might help in debugging.
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1341 # The following way of writing the cache mishandles newlines in values,
1344 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1347 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1364 for ac_var in $ac_subst_vars
1366 eval ac_val=$`echo $ac_var`
1367 echo "$ac_var='"'"'$ac_val'"'"'"
1371 if test -n "$ac_subst_files"; then
1378 for ac_var in $ac_subst_files
1380 eval ac_val=$`echo $ac_var`
1381 echo "$ac_var='"'"'$ac_val'"'"'"
1386 if test -s confdefs.h; then
1393 sed "/^$/d" confdefs.h | sort
1396 test "$ac_signal" != 0 &&
1397 echo "$as_me: caught signal $ac_signal"
1398 echo "$as_me: exit $exit_status"
1400 rm -f core *.core &&
1401 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1404 for ac_signal in 1 2 13 15; do
1405 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1414 # Predefined preprocessor variables.
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444 if test "x$prefix" != xNONE; then
1445 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1450 for ac_site_file in $CONFIG_SITE; do
1451 if test -r "$ac_site_file"; then
1452 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454 sed 's/^/| /' "$ac_site_file" >&5
1460 # Check that the precious variables saved in the cache have kept the same
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1484 echo "$as_me: former value: $ac_old_val" >&2;}
1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1486 echo "$as_me: current value: $ac_new_val" >&2;}
1487 ac_cache_corrupted=:
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1559 for ac_dir in build $srcdir/build; do
1560 if test -f $ac_dir/install-sh; then
1562 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 elif test -f $ac_dir/install.sh; then
1566 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 elif test -f $ac_dir/shtool; then
1570 ac_install_sh="$ac_aux_dir/shtool install -c"
1574 if test -z "$ac_aux_dir"; then
1575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1576 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1577 { (exit 1); exit 1; }; }
1579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583 eval `$ac_aux_dir/version.sh`
1584 if test -z "$OL_STRING"; then
1585 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1586 echo "$as_me: error: could not determine version" >&2;}
1587 { (exit 1); exit 1; }; }
1590 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1591 ac_cv_shtool="$ac_aux_dir/shtool"
1593 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1594 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1595 { (exit 1); exit 1; }; }
1598 SHTOOL="$ac_cv_shtool"
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1604 if test -d $ac_aux_dir/CVS; then
1605 OPENLDAP_CVS="(from CVS sources) "
1608 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614 { (exit 1); exit 1; }; }
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623 ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627 { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649 ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664 echo "$as_me:$LINENO: checking target system type" >&5
1665 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1666 if test "${ac_cv_target+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 ac_cv_target_alias=$target_alias
1670 test "x$ac_cv_target_alias" = "x" &&
1671 ac_cv_target_alias=$ac_cv_host_alias
1672 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1673 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1675 { (exit 1); exit 1; }; }
1678 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1679 echo "${ECHO_T}$ac_cv_target" >&6
1680 target=$ac_cv_target
1681 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686 # The aliases save the names the user supplied, while $host etc.
1687 # will get canonicalized.
1688 test -n "$target_alias" &&
1689 test "$program_prefix$program_suffix$program_transform_name" = \
1691 program_prefix=${target_alias}-
1693 am__api_version="1.9"
1694 # Find a good install program. We prefer a C program (faster),
1695 # so one script is as good as another. But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1701 # AmigaOS /C/install, which installs bootblocks on floppy discs
1702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1705 # OS/2's system install, which has a completely different semantic
1706 # ./install, which can be erroneously created by make from ./install.sh.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731 if test $ac_prog = install &&
1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733 # AIX install. It has an incompatible calling convention.
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1752 if test "${ac_cv_path_install+set}" = set; then
1753 INSTALL=$ac_cv_path_install
1755 # As a last resort, use the slow shell script. We don't cache a
1756 # path for INSTALL within a source directory, because that will
1757 # break other packages using the cache if that directory is
1758 # removed, or if the path is relative.
1759 INSTALL=$ac_install_sh
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1774 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 echo timestamp > conftest.file
1778 # Do `set' in a subshell so we don't clobber the current shell's
1779 # arguments. Must try -L first in case configure is actually a
1780 # symlink; some systems play weird games with the mod time of symlinks
1781 # (eg FreeBSD returns the mod time of the symlink's containing
1784 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1785 if test "$*" = "X"; then
1787 set X `ls -t $srcdir/configure conftest.file`
1790 if test "$*" != "X $srcdir/configure conftest.file" \
1791 && test "$*" != "X conftest.file $srcdir/configure"; then
1793 # If neither matched, then we have a broken ls. This can happen
1794 # if, for instance, CONFIG_SHELL is bash and it inherits a
1795 # broken ls alias from the environment. This has actually
1796 # happened. Such a system could not be considered "sane".
1797 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&5
1799 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&2;}
1801 { (exit 1); exit 1; }; }
1804 test "$2" = conftest.file
1810 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1811 Check your system clock" >&5
1812 echo "$as_me: error: newly created file is older than distributed files!
1813 Check your system clock" >&2;}
1814 { (exit 1); exit 1; }; }
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818 test "$program_prefix" != NONE &&
1819 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1820 # Use a double $ so make ignores it.
1821 test "$program_suffix" != NONE &&
1822 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1823 # Double any \ or $. echo might interpret backslashes.
1824 # By default was `s,x,x', remove it if useless.
1825 cat <<\_ACEOF >conftest.sed
1826 s/[\\$]/&&/g;s/;s,x,x,$//
1828 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 # expand $ac_aux_dir to an absolute path
1832 am_aux_dir=`cd $ac_aux_dir && pwd`
1834 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1835 # Use eval to expand $SHELL
1836 if eval "$MISSING --run true"; then
1837 am_missing_run="$MISSING --run "
1840 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1841 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1845 # We used to keeping the `.' as first argument, in order to
1846 # allow $(mkdir_p) to be used without argument. As in
1847 # $(mkdir_p) $(somedir)
1848 # where $(somedir) is conditionally defined. However this is wrong
1850 # 1. if the package is installed by a user who cannot write `.'
1851 # make install will fail,
1852 # 2. the above comment should most certainly read
1853 # $(mkdir_p) $(DESTDIR)$(somedir)
1854 # so it does not work when $(somedir) is undefined and
1855 # $(DESTDIR) is not.
1856 # To support the latter case, we have to write
1857 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1858 # so the `.' trick is pointless.
1859 mkdir_p='mkdir -p --'
1861 # On NextStep and OpenStep, the `mkdir' command does not
1862 # recognize any option. It will interpret all options as
1863 # directories to create, and then abort because `.' already
1865 for d in ./-p ./--version;
1867 test -d $d && rmdir $d
1869 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1870 if test -f "$ac_aux_dir/mkinstalldirs"; then
1871 mkdir_p='$(mkinstalldirs)'
1873 mkdir_p='$(install_sh) -d'
1877 for ac_prog in gawk mawk nawk awk
1879 # Extract the first word of "$ac_prog", so it can be a program name with args.
1880 set dummy $ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_AWK+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$AWK"; then
1887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_AWK="$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$AWK"; then
1907 echo "$as_me:$LINENO: result: $AWK" >&5
1908 echo "${ECHO_T}$AWK" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 test -n "$AWK" && break
1917 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1918 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1919 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1920 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.make <<\_ACEOF
1925 @echo 'ac_maketemp="$(MAKE)"'
1927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1928 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1929 if test -n "$ac_maketemp"; then
1930 eval ac_cv_prog_make_${ac_make}_set=yes
1932 eval ac_cv_prog_make_${ac_make}_set=no
1936 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 SET_MAKE="MAKE=${MAKE-make}"
1946 rm -rf .tst 2>/dev/null
1947 mkdir .tst 2>/dev/null
1948 if test -d .tst; then
1953 rmdir .tst 2>/dev/null
1955 # test to see if srcdir already configured
1956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1957 test -f $srcdir/config.status; then
1958 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1959 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # test whether we have cygpath
1964 if test -z "$CYGPATH_W"; then
1965 if (cygpath --version) >/dev/null 2>/dev/null; then
1966 CYGPATH_W='cygpath -w'
1973 # Define the identity of the package.
1978 # Some tools Automake needs.
1980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1994 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1996 # Installed binaries are usually stripped using `strip' when the user
1997 # run `make install-strip'. However `strip' might not be the right
1998 # tool to use in cross-compilation environments, therefore Automake
1999 # will honor the `STRIP' environment variable to overrule this program.
2000 if test "$cross_compiling" != no; then
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_STRIP+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$STRIP"; then
2010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 STRIP=$ac_cv_prog_STRIP
2029 if test -n "$STRIP"; then
2030 echo "$as_me:$LINENO: result: $STRIP" >&5
2031 echo "${ECHO_T}$STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$ac_cv_prog_STRIP"; then
2040 # Extract the first word of "strip", so it can be a program name with args.
2041 set dummy strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$ac_ct_STRIP"; then
2048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_STRIP="strip"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2068 if test -n "$ac_ct_STRIP"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2070 echo "${ECHO_T}$ac_ct_STRIP" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2078 STRIP="$ac_cv_prog_STRIP"
2082 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2084 # We need awk for the "check" target. The system "awk" is bad on
2086 # Always define AMTAR for backward compatibility.
2088 AMTAR=${AMTAR-"${am_missing_run}tar"}
2090 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_PACKAGE "$PACKAGE"
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_VERSION "$VERSION"
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION $OL_API_INC
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2127 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2129 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2131 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2139 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2141 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2143 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2146 echo "$as_me:$LINENO: checking configure arguments" >&5
2147 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2152 ldap_subdir="/openldap"
2155 # Check whether --with-subdir or --without-subdir was given.
2156 if test "${with_subdir+set}" = set; then
2157 withval="$with_subdir"
2164 ldap_subdir="$withval"
2167 ldap_subdir="/$withval"
2173 # OpenLDAP --enable-debug
2175 # Check whether --enable-debug or --disable-debug was given.
2176 if test "${enable_debug+set}" = set; then
2177 enableval="$enable_debug"
2180 for ol_val in no yes traditional ; do
2181 if test "$enableval" = "$ol_val" ; then
2185 if test "$ol_arg" = "invalid" ; then
2186 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2187 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2188 { (exit 1); exit 1; }; }
2190 ol_enable_debug="$ol_arg"
2195 # end --enable-debug
2196 # OpenLDAP --enable-dynamic
2198 # Check whether --enable-dynamic or --disable-dynamic was given.
2199 if test "${enable_dynamic+set}" = set; then
2200 enableval="$enable_dynamic"
2203 for ol_val in auto yes no ; do
2204 if test "$enableval" = "$ol_val" ; then
2208 if test "$ol_arg" = "invalid" ; then
2209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2210 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2211 { (exit 1); exit 1; }; }
2213 ol_enable_dynamic="$ol_arg"
2216 ol_enable_dynamic=no
2218 # end --enable-dynamic
2219 # OpenLDAP --enable-syslog
2221 # Check whether --enable-syslog or --disable-syslog was given.
2222 if test "${enable_syslog+set}" = set; then
2223 enableval="$enable_syslog"
2226 for ol_val in auto yes no ; do
2227 if test "$enableval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2234 { (exit 1); exit 1; }; }
2236 ol_enable_syslog="$ol_arg"
2239 ol_enable_syslog=auto
2241 # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2244 # Check whether --enable-proctitle or --disable-proctitle was given.
2245 if test "${enable_proctitle+set}" = set; then
2246 enableval="$enable_proctitle"
2249 for ol_val in auto yes no ; do
2250 if test "$enableval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2256 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2257 { (exit 1); exit 1; }; }
2259 ol_enable_proctitle="$ol_arg"
2262 ol_enable_proctitle=yes
2264 # end --enable-proctitle
2265 ol_enable_referrals=${ol_enable_referrals-no}
2266 ol_enable_kbind=${ol_enable_kbind-no}
2267 # OpenLDAP --enable-ipv6
2269 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271 enableval="$enable_ipv6"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282 { (exit 1); exit 1; }; }
2284 ol_enable_ipv6="$ol_arg"
2290 # OpenLDAP --enable-local
2292 # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294 enableval="$enable_local"
2297 for ol_val in auto yes no ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305 { (exit 1); exit 1; }; }
2307 ol_enable_local="$ol_arg"
2310 ol_enable_local=auto
2312 # end --enable-local
2314 # OpenLDAP --with-cyrus_sasl
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318 withval="$with_cyrus_sasl"
2321 for ol_val in auto yes no ; do
2322 if test "$withval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329 { (exit 1); exit 1; }; }
2331 ol_with_cyrus_sasl="$ol_arg"
2334 ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2337 # OpenLDAP --with-fetch
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341 withval="$with_fetch"
2344 for ol_val in auto yes no ; do
2345 if test "$withval" = "$ol_val" ; then
2349 if test "$ol_arg" = "invalid" ; then
2350 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352 { (exit 1); exit 1; }; }
2354 ol_with_fetch="$ol_arg"
2357 ol_with_fetch="auto"
2358 fi; # end --with-fetch
2360 ol_with_kerberos=${ol_with_kerberos-auto}
2361 # OpenLDAP --with-threads
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365 withval="$with_threads"
2368 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2369 if test "$withval" = "$ol_val" ; then
2373 if test "$ol_arg" = "invalid" ; then
2374 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376 { (exit 1); exit 1; }; }
2378 ol_with_threads="$ol_arg"
2381 ol_with_threads="auto"
2382 fi; # end --with-threads
2384 # OpenLDAP --with-tls
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2391 for ol_val in auto openssl yes no ; do
2392 if test "$withval" = "$ol_val" ; then
2396 if test "$ol_arg" = "invalid" ; then
2397 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399 { (exit 1); exit 1; }; }
2401 ol_with_tls="$ol_arg"
2405 fi; # end --with-tls
2407 # OpenLDAP --with-yielding_select
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411 withval="$with_yielding_select"
2414 for ol_val in auto yes no manual ; do
2415 if test "$withval" = "$ol_val" ; then
2419 if test "$ol_arg" = "invalid" ; then
2420 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422 { (exit 1); exit 1; }; }
2424 ol_with_yielding_select="$ol_arg"
2427 ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2430 # OpenLDAP --with-multiple_precision
2432 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2433 if test "${with_multiple_precision+set}" = set; then
2434 withval="$with_multiple_precision"
2437 for ol_val in auto bignum gmp yes no ; do
2438 if test "$withval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2444 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2445 { (exit 1); exit 1; }; }
2447 ol_with_multiple_precision="$ol_arg"
2450 ol_with_multiple_precision="auto"
2451 fi; # end --with-multiple_precision
2455 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2456 if test "${enable_xxslapdoptions+set}" = set; then
2457 enableval="$enable_xxslapdoptions"
2460 # OpenLDAP --enable-slapd
2462 # Check whether --enable-slapd or --disable-slapd was given.
2463 if test "${enable_slapd+set}" = set; then
2464 enableval="$enable_slapd"
2467 for ol_val in auto yes no ; do
2468 if test "$enableval" = "$ol_val" ; then
2472 if test "$ol_arg" = "invalid" ; then
2473 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2474 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2475 { (exit 1); exit 1; }; }
2477 ol_enable_slapd="$ol_arg"
2482 # end --enable-slapd
2483 # OpenLDAP --enable-dynacl
2485 # Check whether --enable-dynacl or --disable-dynacl was given.
2486 if test "${enable_dynacl+set}" = set; then
2487 enableval="$enable_dynacl"
2490 for ol_val in auto yes no ; do
2491 if test "$enableval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2498 { (exit 1); exit 1; }; }
2500 ol_enable_dynacl="$ol_arg"
2505 # end --enable-dynacl
2506 # OpenLDAP --enable-aci
2508 # Check whether --enable-aci or --disable-aci was given.
2509 if test "${enable_aci+set}" = set; then
2510 enableval="$enable_aci"
2513 for ol_val in no yes mod ; do
2514 if test "$enableval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2521 { (exit 1); exit 1; }; }
2523 ol_enable_aci="$ol_arg"
2529 # OpenLDAP --enable-cleartext
2531 # Check whether --enable-cleartext or --disable-cleartext was given.
2532 if test "${enable_cleartext+set}" = set; then
2533 enableval="$enable_cleartext"
2536 for ol_val in auto yes no ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_cleartext="$ol_arg"
2549 ol_enable_cleartext=yes
2551 # end --enable-cleartext
2552 # OpenLDAP --enable-crypt
2554 # Check whether --enable-crypt or --disable-crypt was given.
2555 if test "${enable_crypt+set}" = set; then
2556 enableval="$enable_crypt"
2559 for ol_val in auto yes no ; do
2560 if test "$enableval" = "$ol_val" ; then
2564 if test "$ol_arg" = "invalid" ; then
2565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2567 { (exit 1); exit 1; }; }
2569 ol_enable_crypt="$ol_arg"
2574 # end --enable-crypt
2575 # OpenLDAP --enable-lmpasswd
2577 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2578 if test "${enable_lmpasswd+set}" = set; then
2579 enableval="$enable_lmpasswd"
2582 for ol_val in auto yes no ; do
2583 if test "$enableval" = "$ol_val" ; then
2587 if test "$ol_arg" = "invalid" ; then
2588 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2590 { (exit 1); exit 1; }; }
2592 ol_enable_lmpasswd="$ol_arg"
2595 ol_enable_lmpasswd=no
2597 # end --enable-lmpasswd
2598 # OpenLDAP --enable-spasswd
2600 # Check whether --enable-spasswd or --disable-spasswd was given.
2601 if test "${enable_spasswd+set}" = set; then
2602 enableval="$enable_spasswd"
2605 for ol_val in auto yes no ; do
2606 if test "$enableval" = "$ol_val" ; then
2610 if test "$ol_arg" = "invalid" ; then
2611 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2613 { (exit 1); exit 1; }; }
2615 ol_enable_spasswd="$ol_arg"
2618 ol_enable_spasswd=no
2620 # end --enable-spasswd
2621 # OpenLDAP --enable-modules
2623 # Check whether --enable-modules or --disable-modules was given.
2624 if test "${enable_modules+set}" = set; then
2625 enableval="$enable_modules"
2628 for ol_val in auto yes no ; do
2629 if test "$enableval" = "$ol_val" ; then
2633 if test "$ol_arg" = "invalid" ; then
2634 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2636 { (exit 1); exit 1; }; }
2638 ol_enable_modules="$ol_arg"
2641 ol_enable_modules=no
2643 # end --enable-modules
2644 ol_enable_multimaster=${ol_enable_multimaster-no}
2645 # OpenLDAP --enable-rewrite
2647 # Check whether --enable-rewrite or --disable-rewrite was given.
2648 if test "${enable_rewrite+set}" = set; then
2649 enableval="$enable_rewrite"
2652 for ol_val in auto yes no ; do
2653 if test "$enableval" = "$ol_val" ; then
2657 if test "$ol_arg" = "invalid" ; then
2658 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2660 { (exit 1); exit 1; }; }
2662 ol_enable_rewrite="$ol_arg"
2665 ol_enable_rewrite=auto
2667 # end --enable-rewrite
2668 # OpenLDAP --enable-rlookups
2670 # Check whether --enable-rlookups or --disable-rlookups was given.
2671 if test "${enable_rlookups+set}" = set; then
2672 enableval="$enable_rlookups"
2675 for ol_val in auto yes no ; do
2676 if test "$enableval" = "$ol_val" ; then
2680 if test "$ol_arg" = "invalid" ; then
2681 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2682 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2683 { (exit 1); exit 1; }; }
2685 ol_enable_rlookups="$ol_arg"
2688 ol_enable_rlookups=no
2690 # end --enable-rlookups
2691 # OpenLDAP --enable-slapi
2693 # Check whether --enable-slapi or --disable-slapi was given.
2694 if test "${enable_slapi+set}" = set; then
2695 enableval="$enable_slapi"
2698 for ol_val in auto yes no ; do
2699 if test "$enableval" = "$ol_val" ; then
2703 if test "$ol_arg" = "invalid" ; then
2704 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2705 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2706 { (exit 1); exit 1; }; }
2708 ol_enable_slapi="$ol_arg"
2713 # end --enable-slapi
2714 # OpenLDAP --enable-slp
2716 # Check whether --enable-slp or --disable-slp was given.
2717 if test "${enable_slp+set}" = set; then
2718 enableval="$enable_slp"
2721 for ol_val in auto yes no ; do
2722 if test "$enableval" = "$ol_val" ; then
2726 if test "$ol_arg" = "invalid" ; then
2727 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2728 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2729 { (exit 1); exit 1; }; }
2731 ol_enable_slp="$ol_arg"
2737 # OpenLDAP --enable-wrappers
2739 # Check whether --enable-wrappers or --disable-wrappers was given.
2740 if test "${enable_wrappers+set}" = set; then
2741 enableval="$enable_wrappers"
2744 for ol_val in auto yes no ; do
2745 if test "$enableval" = "$ol_val" ; then
2749 if test "$ol_arg" = "invalid" ; then
2750 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2751 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2752 { (exit 1); exit 1; }; }
2754 ol_enable_wrappers="$ol_arg"
2757 ol_enable_wrappers=no
2759 # end --enable-wrappers
2775 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2776 if test "${enable_xxslapbackends+set}" = set; then
2777 enableval="$enable_xxslapbackends"
2781 # OpenLDAP --enable-backends
2783 # Check whether --enable-backends or --disable-backends was given.
2784 if test "${enable_backends+set}" = set; then
2785 enableval="$enable_backends"
2788 for ol_val in no yes mod ; do
2789 if test "$enableval" = "$ol_val" ; then
2793 if test "$ol_arg" = "invalid" ; then
2794 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2795 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2796 { (exit 1); exit 1; }; }
2798 ol_enable_backends="$ol_arg"
2801 # end --enable-backends
2802 # OpenLDAP --enable-bdb
2804 # Check whether --enable-bdb or --disable-bdb was given.
2805 if test "${enable_bdb+set}" = set; then
2806 enableval="$enable_bdb"
2809 for ol_val in no yes mod ; do
2810 if test "$enableval" = "$ol_val" ; then
2814 if test "$ol_arg" = "invalid" ; then
2815 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2817 { (exit 1); exit 1; }; }
2819 ol_enable_bdb="$ol_arg"
2822 ol_enable_bdb=${ol_enable_backends:-yes}
2825 # OpenLDAP --enable-dnssrv
2827 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2828 if test "${enable_dnssrv+set}" = set; then
2829 enableval="$enable_dnssrv"
2832 for ol_val in no yes mod ; do
2833 if test "$enableval" = "$ol_val" ; then
2837 if test "$ol_arg" = "invalid" ; then
2838 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2839 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2840 { (exit 1); exit 1; }; }
2842 ol_enable_dnssrv="$ol_arg"
2845 ol_enable_dnssrv=${ol_enable_backends:-no}
2847 # end --enable-dnssrv
2848 # OpenLDAP --enable-hdb
2850 # Check whether --enable-hdb or --disable-hdb was given.
2851 if test "${enable_hdb+set}" = set; then
2852 enableval="$enable_hdb"
2855 for ol_val in no yes mod ; do
2856 if test "$enableval" = "$ol_val" ; then
2860 if test "$ol_arg" = "invalid" ; then
2861 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2862 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2863 { (exit 1); exit 1; }; }
2865 ol_enable_hdb="$ol_arg"
2868 ol_enable_hdb=${ol_enable_backends:-yes}
2871 # OpenLDAP --enable-ldap
2873 # Check whether --enable-ldap or --disable-ldap was given.
2874 if test "${enable_ldap+set}" = set; then
2875 enableval="$enable_ldap"
2878 for ol_val in no yes mod ; do
2879 if test "$enableval" = "$ol_val" ; then
2883 if test "$ol_arg" = "invalid" ; then
2884 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2885 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2886 { (exit 1); exit 1; }; }
2888 ol_enable_ldap="$ol_arg"
2891 ol_enable_ldap=${ol_enable_backends:-no}
2894 # OpenLDAP --enable-ldbm
2896 # Check whether --enable-ldbm or --disable-ldbm was given.
2897 if test "${enable_ldbm+set}" = set; then
2898 enableval="$enable_ldbm"
2901 for ol_val in no yes mod ; do
2902 if test "$enableval" = "$ol_val" ; then
2906 if test "$ol_arg" = "invalid" ; then
2907 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2908 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2909 { (exit 1); exit 1; }; }
2911 ol_enable_ldbm="$ol_arg"
2914 ol_enable_ldbm=${ol_enable_backends:-no}
2918 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2919 if test "${with_ldbm_api+set}" = set; then
2920 withval="$with_ldbm_api"
2922 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2923 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2924 enable_ldbm_api="$with_ldbm_api"
2926 # OpenLDAP --enable-ldbm_api
2928 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2929 if test "${enable_ldbm_api+set}" = set; then
2930 enableval="$enable_ldbm_api"
2933 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2934 if test "$enableval" = "$ol_val" ; then
2938 if test "$ol_arg" = "invalid" ; then
2939 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2940 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2941 { (exit 1); exit 1; }; }
2943 ol_enable_ldbm_api="$ol_arg"
2946 ol_enable_ldbm_api=auto
2948 # end --enable-ldbm_api
2951 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2952 if test "${with_ldbm_type+set}" = set; then
2953 withval="$with_ldbm_type"
2955 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2956 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2957 enable_ldbm_type="$with_ldbm_type"
2959 # OpenLDAP --enable-ldbm_type
2961 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2962 if test "${enable_ldbm_type+set}" = set; then
2963 enableval="$enable_ldbm_type"
2966 for ol_val in auto btree hash ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_ldbm_type="$ol_arg"
2979 ol_enable_ldbm_type=auto
2981 # end --enable-ldbm_type
2983 # OpenLDAP --enable-meta
2985 # Check whether --enable-meta or --disable-meta was given.
2986 if test "${enable_meta+set}" = set; then
2987 enableval="$enable_meta"
2990 for ol_val in no yes mod ; do
2991 if test "$enableval" = "$ol_val" ; then
2995 if test "$ol_arg" = "invalid" ; then
2996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2998 { (exit 1); exit 1; }; }
3000 ol_enable_meta="$ol_arg"
3003 ol_enable_meta=${ol_enable_backends:-no}
3006 # OpenLDAP --enable-monitor
3008 # Check whether --enable-monitor or --disable-monitor was given.
3009 if test "${enable_monitor+set}" = set; then
3010 enableval="$enable_monitor"
3013 for ol_val in no yes mod ; do
3014 if test "$enableval" = "$ol_val" ; then
3018 if test "$ol_arg" = "invalid" ; then
3019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3021 { (exit 1); exit 1; }; }
3023 ol_enable_monitor="$ol_arg"
3026 ol_enable_monitor=${ol_enable_backends:-yes}
3028 # end --enable-monitor
3029 # OpenLDAP --enable-null
3031 # Check whether --enable-null or --disable-null was given.
3032 if test "${enable_null+set}" = set; then
3033 enableval="$enable_null"
3036 for ol_val in no yes mod ; do
3037 if test "$enableval" = "$ol_val" ; then
3041 if test "$ol_arg" = "invalid" ; then
3042 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3044 { (exit 1); exit 1; }; }
3046 ol_enable_null="$ol_arg"
3049 ol_enable_null=${ol_enable_backends:-no}
3052 # OpenLDAP --enable-passwd
3054 # Check whether --enable-passwd or --disable-passwd was given.
3055 if test "${enable_passwd+set}" = set; then
3056 enableval="$enable_passwd"
3059 for ol_val in no yes mod ; do
3060 if test "$enableval" = "$ol_val" ; then
3064 if test "$ol_arg" = "invalid" ; then
3065 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3067 { (exit 1); exit 1; }; }
3069 ol_enable_passwd="$ol_arg"
3072 ol_enable_passwd=${ol_enable_backends:-no}
3074 # end --enable-passwd
3075 # OpenLDAP --enable-perl
3077 # Check whether --enable-perl or --disable-perl was given.
3078 if test "${enable_perl+set}" = set; then
3079 enableval="$enable_perl"
3082 for ol_val in no yes mod ; do
3083 if test "$enableval" = "$ol_val" ; then
3087 if test "$ol_arg" = "invalid" ; then
3088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3090 { (exit 1); exit 1; }; }
3092 ol_enable_perl="$ol_arg"
3095 ol_enable_perl=${ol_enable_backends:-no}
3098 # OpenLDAP --enable-relay
3100 # Check whether --enable-relay or --disable-relay was given.
3101 if test "${enable_relay+set}" = set; then
3102 enableval="$enable_relay"
3105 for ol_val in no yes mod ; do
3106 if test "$enableval" = "$ol_val" ; then
3110 if test "$ol_arg" = "invalid" ; then
3111 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_relay="$ol_arg"
3118 ol_enable_relay=${ol_enable_backends:-yes}
3120 # end --enable-relay
3121 # OpenLDAP --enable-shell
3123 # Check whether --enable-shell or --disable-shell was given.
3124 if test "${enable_shell+set}" = set; then
3125 enableval="$enable_shell"
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-shell" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_shell="$ol_arg"
3141 ol_enable_shell=${ol_enable_backends:-no}
3143 # end --enable-shell
3144 # OpenLDAP --enable-sql
3146 # Check whether --enable-sql or --disable-sql was given.
3147 if test "${enable_sql+set}" = set; then
3148 enableval="$enable_sql"
3151 for ol_val in no yes mod ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_sql="$ol_arg"
3164 ol_enable_sql=${ol_enable_backends:-no}
3168 Overlays="accesslog \
3183 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3184 if test "${enable_xxslapoverlays+set}" = set; then
3185 enableval="$enable_xxslapoverlays"
3189 # OpenLDAP --enable-overlays
3191 # Check whether --enable-overlays or --disable-overlays was given.
3192 if test "${enable_overlays+set}" = set; then
3193 enableval="$enable_overlays"
3196 for ol_val in no yes mod ; do
3197 if test "$enableval" = "$ol_val" ; then
3201 if test "$ol_arg" = "invalid" ; then
3202 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3203 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3204 { (exit 1); exit 1; }; }
3206 ol_enable_overlays="$ol_arg"
3209 # end --enable-overlays
3210 # OpenLDAP --enable-accesslog
3212 # Check whether --enable-accesslog or --disable-accesslog was given.
3213 if test "${enable_accesslog+set}" = set; then
3214 enableval="$enable_accesslog"
3217 for ol_val in no yes mod ; do
3218 if test "$enableval" = "$ol_val" ; then
3222 if test "$ol_arg" = "invalid" ; then
3223 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3225 { (exit 1); exit 1; }; }
3227 ol_enable_accesslog="$ol_arg"
3230 ol_enable_accesslog=${ol_enable_overlays:-no}
3232 # end --enable-accesslog
3234 # OpenLDAP --enable-denyop
3236 # Check whether --enable-denyop or --disable-denyop was given.
3237 if test "${enable_denyop+set}" = set; then
3238 enableval="$enable_denyop"
3241 for ol_val in no yes mod ; do
3242 if test "$enableval" = "$ol_val" ; then
3246 if test "$ol_arg" = "invalid" ; then
3247 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3249 { (exit 1); exit 1; }; }
3251 ol_enable_denyop="$ol_arg"
3254 ol_enable_denyop=${ol_enable_overlays:-no}
3256 # end --enable-denyop
3258 # OpenLDAP --enable-dyngroup
3260 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3261 if test "${enable_dyngroup+set}" = set; then
3262 enableval="$enable_dyngroup"
3265 for ol_val in no yes mod ; do
3266 if test "$enableval" = "$ol_val" ; then
3270 if test "$ol_arg" = "invalid" ; then
3271 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3273 { (exit 1); exit 1; }; }
3275 ol_enable_dyngroup="$ol_arg"
3278 ol_enable_dyngroup=${ol_enable_overlays:-no}
3280 # end --enable-dyngroup
3282 # OpenLDAP --enable-dynlist
3284 # Check whether --enable-dynlist or --disable-dynlist was given.
3285 if test "${enable_dynlist+set}" = set; then
3286 enableval="$enable_dynlist"
3289 for ol_val in no yes mod ; do
3290 if test "$enableval" = "$ol_val" ; then
3294 if test "$ol_arg" = "invalid" ; then
3295 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3297 { (exit 1); exit 1; }; }
3299 ol_enable_dynlist="$ol_arg"
3302 ol_enable_dynlist=${ol_enable_overlays:-no}
3304 # end --enable-dynlist
3306 # OpenLDAP --enable-lastmod
3308 # Check whether --enable-lastmod or --disable-lastmod was given.
3309 if test "${enable_lastmod+set}" = set; then
3310 enableval="$enable_lastmod"
3313 for ol_val in no yes mod ; do
3314 if test "$enableval" = "$ol_val" ; then
3318 if test "$ol_arg" = "invalid" ; then
3319 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3321 { (exit 1); exit 1; }; }
3323 ol_enable_lastmod="$ol_arg"
3326 ol_enable_lastmod=${ol_enable_overlays:-no}
3328 # end --enable-lastmod
3330 # OpenLDAP --enable-ppolicy
3332 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3333 if test "${enable_ppolicy+set}" = set; then
3334 enableval="$enable_ppolicy"
3337 for ol_val in no yes mod ; do
3338 if test "$enableval" = "$ol_val" ; then
3342 if test "$ol_arg" = "invalid" ; then
3343 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3345 { (exit 1); exit 1; }; }
3347 ol_enable_ppolicy="$ol_arg"
3350 ol_enable_ppolicy=${ol_enable_overlays:-no}
3352 # end --enable-ppolicy
3354 # OpenLDAP --enable-proxycache
3356 # Check whether --enable-proxycache or --disable-proxycache was given.
3357 if test "${enable_proxycache+set}" = set; then
3358 enableval="$enable_proxycache"
3361 for ol_val in no yes mod ; do
3362 if test "$enableval" = "$ol_val" ; then
3366 if test "$ol_arg" = "invalid" ; then
3367 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3369 { (exit 1); exit 1; }; }
3371 ol_enable_proxycache="$ol_arg"
3374 ol_enable_proxycache=${ol_enable_overlays:-no}
3376 # end --enable-proxycache
3378 # OpenLDAP --enable-refint
3380 # Check whether --enable-refint or --disable-refint was given.
3381 if test "${enable_refint+set}" = set; then
3382 enableval="$enable_refint"
3385 for ol_val in no yes mod ; do
3386 if test "$enableval" = "$ol_val" ; then
3390 if test "$ol_arg" = "invalid" ; then
3391 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3393 { (exit 1); exit 1; }; }
3395 ol_enable_refint="$ol_arg"
3398 ol_enable_refint=${ol_enable_overlays:-no}
3400 # end --enable-refint
3402 # OpenLDAP --enable-retcode
3404 # Check whether --enable-retcode or --disable-retcode was given.
3405 if test "${enable_retcode+set}" = set; then
3406 enableval="$enable_retcode"
3409 for ol_val in no yes mod ; do
3410 if test "$enableval" = "$ol_val" ; then
3414 if test "$ol_arg" = "invalid" ; then
3415 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3417 { (exit 1); exit 1; }; }
3419 ol_enable_retcode="$ol_arg"
3422 ol_enable_retcode=${ol_enable_overlays:-no}
3424 # end --enable-retcode
3426 # OpenLDAP --enable-rwm
3428 # Check whether --enable-rwm or --disable-rwm was given.
3429 if test "${enable_rwm+set}" = set; then
3430 enableval="$enable_rwm"
3433 for ol_val in no yes mod ; do
3434 if test "$enableval" = "$ol_val" ; then
3438 if test "$ol_arg" = "invalid" ; then
3439 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3441 { (exit 1); exit 1; }; }
3443 ol_enable_rwm="$ol_arg"
3446 ol_enable_rwm=${ol_enable_overlays:-no}
3450 # OpenLDAP --enable-syncprov
3452 # Check whether --enable-syncprov or --disable-syncprov was given.
3453 if test "${enable_syncprov+set}" = set; then
3454 enableval="$enable_syncprov"
3457 for ol_val in no yes mod ; do
3458 if test "$enableval" = "$ol_val" ; then
3462 if test "$ol_arg" = "invalid" ; then
3463 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3465 { (exit 1); exit 1; }; }
3467 ol_enable_syncprov="$ol_arg"
3470 ol_enable_syncprov=${ol_enable_overlays:-yes}
3472 # end --enable-syncprov
3474 # OpenLDAP --enable-translucent
3476 # Check whether --enable-translucent or --disable-translucent was given.
3477 if test "${enable_translucent+set}" = set; then
3478 enableval="$enable_translucent"
3481 for ol_val in no yes mod ; do
3482 if test "$enableval" = "$ol_val" ; then
3486 if test "$ol_arg" = "invalid" ; then
3487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3489 { (exit 1); exit 1; }; }
3491 ol_enable_translucent="$ol_arg"
3494 ol_enable_translucent=${ol_enable_overlays:-no}
3496 # end --enable-translucent
3498 # OpenLDAP --enable-unique
3500 # Check whether --enable-unique or --disable-unique was given.
3501 if test "${enable_unique+set}" = set; then
3502 enableval="$enable_unique"
3505 for ol_val in no yes mod ; do
3506 if test "$enableval" = "$ol_val" ; then
3510 if test "$ol_arg" = "invalid" ; then
3511 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3513 { (exit 1); exit 1; }; }
3515 ol_enable_unique="$ol_arg"
3518 ol_enable_unique=${ol_enable_overlays:-no}
3520 # end --enable-unique
3522 # OpenLDAP --enable-valsort
3524 # Check whether --enable-valsort or --disable-valsort was given.
3525 if test "${enable_valsort+set}" = set; then
3526 enableval="$enable_valsort"
3529 for ol_val in no yes mod ; do
3530 if test "$enableval" = "$ol_val" ; then
3534 if test "$ol_arg" = "invalid" ; then
3535 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3536 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3537 { (exit 1); exit 1; }; }
3539 ol_enable_valsort="$ol_arg"
3542 ol_enable_valsort=${ol_enable_overlays:-no}
3544 # end --enable-valsort
3547 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3548 if test "${enable_xxslurpdoptions+set}" = set; then
3549 enableval="$enable_xxslurpdoptions"
3552 # OpenLDAP --enable-slurpd
3554 # Check whether --enable-slurpd or --disable-slurpd was given.
3555 if test "${enable_slurpd+set}" = set; then
3556 enableval="$enable_slurpd"
3559 for ol_val in auto yes no ; do
3560 if test "$enableval" = "$ol_val" ; then
3564 if test "$ol_arg" = "invalid" ; then
3565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3567 { (exit 1); exit 1; }; }
3569 ol_enable_slurpd="$ol_arg"
3572 ol_enable_slurpd=auto
3574 # end --enable-slurpd
3576 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3577 if test "${enable_xxliboptions+set}" = set; then
3578 enableval="$enable_xxliboptions"
3581 # Check whether --enable-static or --disable-static was given.
3582 if test "${enable_static+set}" = set; then
3583 enableval="$enable_static"
3584 p=${PACKAGE-default}
3586 yes) enable_static=yes ;;
3587 no) enable_static=no ;;
3590 # Look at the argument we got. We use all the common list separators.
3591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592 for pkg in $enableval; do
3594 if test "X$pkg" = "X$p"; then
3605 # Check whether --enable-shared or --disable-shared was given.
3606 if test "${enable_shared+set}" = set; then
3607 enableval="$enable_shared"
3608 p=${PACKAGE-default}
3610 yes) enable_shared=yes ;;
3611 no) enable_shared=no ;;
3614 # Look at the argument we got. We use all the common list separators.
3615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3616 for pkg in $enableval; do
3618 if test "X$pkg" = "X$p"; then
3632 if test $ol_enable_slapd = no ; then
3633 if test $ol_enable_slapi = yes ; then
3634 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3637 case "$ol_enable_backends" in yes | mod)
3638 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3641 for i in $Backends; do
3642 eval "ol_tmp=\$ol_enable_$i"
3643 if test $ol_tmp != no ; then
3644 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3646 eval "ol_enable_$i=no"
3649 if test $ol_enable_modules = yes ; then
3650 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3653 if test $ol_enable_multimaster = yes ; then
3654 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3655 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3657 if test $ol_enable_wrappers = yes ; then
3658 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3661 if test $ol_enable_rlookups = yes ; then
3662 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3665 if test $ol_enable_aci = yes ; then
3666 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3669 if test $ol_enable_ldbm_api != auto ; then
3670 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3673 if test $ol_enable_ldbm_type != auto ; then
3674 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3677 if test $ol_enable_slurpd = yes ; then
3678 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3679 echo "$as_me: error: slurpd requires slapd" >&2;}
3680 { (exit 1); exit 1; }; }
3682 if test $ol_enable_rewrite = yes ; then
3683 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3686 case "$ol_enable_overlays" in yes | mod)
3687 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3690 for i in $Overlays; do
3691 eval "ol_tmp=\$ol_enable_$i"
3692 if test $ol_tmp != no ; then
3693 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3695 eval "ol_enable_$i=no"
3699 # force settings to no
3704 ol_enable_modules=no
3705 ol_enable_multimaster=no
3706 ol_enable_rlookups=no
3709 ol_enable_wrappers=no
3711 ol_enable_ldbm_api=no
3712 ol_enable_ldbm_type=no
3716 ol_enable_rewrite=no
3718 elif test $ol_enable_ldbm = no ; then
3720 if test $ol_enable_ldbm_api != auto ; then
3721 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3722 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3725 if test $ol_enable_ldbm_type != auto ; then
3726 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3727 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3730 if test $ol_enable_modules != yes &&
3731 test $ol_enable_bdb = no &&
3732 test $ol_enable_dnssrv = no &&
3733 test $ol_enable_hdb = no &&
3734 test $ol_enable_ldap = no &&
3735 test $ol_enable_meta = no &&
3736 test $ol_enable_monitor = no &&
3737 test $ol_enable_null = no &&
3738 test $ol_enable_passwd = no &&
3739 test $ol_enable_perl = no &&
3740 test $ol_enable_relay = no &&
3741 test $ol_enable_shell = no &&
3742 test $ol_enable_sql = no ; then
3744 if test $ol_enable_slapd = yes ; then
3745 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3746 echo "$as_me: error: slapd requires a backend" >&2;}
3747 { (exit 1); exit 1; }; }
3749 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3750 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3755 ol_enable_ldbm_api=no
3756 ol_enable_ldbm_type=no
3758 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3759 ol_enable_ldbm_api=berkeley
3763 if test $ol_enable_ldbm_api = gdbm &&
3764 test $ol_enable_ldbm_type = btree ; then
3765 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3766 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3767 { (exit 1); exit 1; }; }
3769 if test $ol_enable_ldbm_api = mdbm &&
3770 test $ol_enable_ldbm_type = btree ; then
3771 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3772 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3773 { (exit 1); exit 1; }; }
3775 if test $ol_enable_ldbm_api = ndbm &&
3776 test $ol_enable_ldbm_type = btree ; then
3777 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3778 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3779 { (exit 1); exit 1; }; }
3782 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3783 if test $ol_enable_ldbm_api = auto ; then
3784 ol_enable_ldbm_api=berkeley
3785 elif test $ol_enable_ldbm_api != berkeley ; then
3786 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3787 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3788 { (exit 1); exit 1; }; }
3793 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3794 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3795 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3796 { (exit 1); exit 1; }; }
3799 if test $ol_enable_slurpd = yes ; then
3800 if test $ol_with_threads = no ; then
3801 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3802 echo "$as_me: error: slurpd requires threads" >&2;}
3803 { (exit 1); exit 1; }; }
3807 if test $ol_enable_lmpasswd = yes ; then
3808 if test $ol_with_tls = no ; then
3809 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811 { (exit 1); exit 1; }; }
3815 if test $ol_enable_kbind = yes ; then
3816 if test $ol_with_kerberos = no ; then
3817 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3818 echo "$as_me: error: options require --with-kerberos" >&2;}
3819 { (exit 1); exit 1; }; }
3820 elif test $ol_with_kerberos = auto ; then
3821 ol_with_kerberos=yes
3824 elif test $ol_enable_kbind = no ; then
3825 if test $ol_with_kerberos = auto ; then
3827 elif test $ol_with_kerberos != no ; then
3828 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3829 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3834 if test $ol_enable_spasswd = yes ; then
3835 if test $ol_with_cyrus_sasl = no ; then
3836 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3837 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3838 { (exit 1); exit 1; }; }
3840 ol_with_cyrus_sasl=yes
3843 echo "$as_me:$LINENO: result: done" >&5
3844 echo "${ECHO_T}done" >&6
3887 BUILD_TRANSLUCENT=no
3891 SLAPD_STATIC_OVERLAYS=
3892 SLAPD_DYNAMIC_OVERLAYS=
3894 SLAPD_MODULES_LDFLAGS=
3895 SLAPD_MODULES_CPPFLAGS=
3897 SLAPD_STATIC_BACKENDS=back-ldif
3898 SLAPD_DYNAMIC_BACKENDS=
3924 cat >>confdefs.h <<\_ACEOF
3925 #define HAVE_MKVERSION 1
3933 *-*-aix*) if test -z "$CC" ; then
3934 case "$ol_with_threads" in
3935 auto | yes | posix) ol_aix_threads=yes ;;
3941 if test $ol_aix_threads = yes ; then
3942 if test -z "${CC}" ; then
3943 for ac_prog in cc_r xlc_r cc
3945 # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_CC+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_CC="$ac_prog"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 if test -n "$CC"; then
3973 echo "$as_me:$LINENO: result: $CC" >&5
3974 echo "${ECHO_T}$CC" >&6
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 test -n "$CC" && break
3984 if test "$CC" = cc ; then
3985 if test $ol_with_threads != auto ; then
3986 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3987 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3988 { (exit 1); exit 1; }; }
3990 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3991 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3997 case ${CC} in cc_r | xlc_r)
3998 ol_with_threads=posix
3999 ol_cv_pthread_create=yes
4004 if test -z "${CC}"; then
4005 for ac_prog in cc gcc
4007 # Extract the first word of "$ac_prog", so it can be a program name with args.
4008 set dummy $ac_prog; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_CC+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC="$ac_prog"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 if test -n "$CC"; then
4035 echo "$as_me:$LINENO: result: $CC" >&5
4036 echo "${ECHO_T}$CC" >&6
4038 echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4042 test -n "$CC" && break
4044 test -n "$CC" || CC="missing"
4047 if test "${CC}" = "missing" ; then
4048 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4049 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4050 { (exit 1); exit 1; }; }
4054 if test -z "${AR}"; then
4055 for ac_prog in ar gar
4057 # Extract the first word of "$ac_prog", so it can be a program name with args.
4058 set dummy $ac_prog; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_prog_AR+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 if test -n "$AR"; then
4065 ac_cv_prog_AR="$AR" # Let the user override the test.
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_AR="$ac_prog"
4075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 if test -n "$AR"; then
4085 echo "$as_me:$LINENO: result: $AR" >&5
4086 echo "${ECHO_T}$AR" >&6
4088 echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4092 test -n "$AR" && break
4094 test -n "$AR" || AR="missing"
4097 if test "${AR}" = "missing" ; then
4098 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4099 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4100 { (exit 1); exit 1; }; }
4108 # Check whether --enable-fast-install or --disable-fast-install was given.
4109 if test "${enable_fast_install+set}" = set; then
4110 enableval="$enable_fast_install"
4111 p=${PACKAGE-default}
4113 yes) enable_fast_install=yes ;;
4114 no) enable_fast_install=no ;;
4116 enable_fast_install=no
4117 # Look at the argument we got. We use all the common list separators.
4118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4119 for pkg in $enableval; do
4121 if test "X$pkg" = "X$p"; then
4122 enable_fast_install=yes
4129 enable_fast_install=yes
4132 DEPDIR="${am__leading_dot}deps"
4134 ac_config_commands="$ac_config_commands depfiles"
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4143 # If we don't find an include directive, just comment out the code.
4144 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4145 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # We grep out `Entering directory' and `Leaving directory'
4152 # messages which can occur if `w' ends up in MAKEFLAGS.
4153 # In particular we don't look at `^make:' because GNU make might
4154 # be invoked under some other name (usually "gmake"), in which
4155 # case it prints its new name instead of `make'.
4156 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4161 # Now try BSD make style include.
4162 if test "$am__include" = "#"; then
4163 echo '.include "confinc"' > confmf
4164 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4165 am__include=.include
4172 echo "$as_me:$LINENO: result: $_am_result" >&5
4173 echo "${ECHO_T}$_am_result" >&6
4174 rm -f confinc confmf
4176 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then
4178 enableval="$enable_dependency_tracking"
4181 if test "x$enable_dependency_tracking" != xno; then
4182 am_depcomp="$ac_aux_dir/depcomp"
4187 if test "x$enable_dependency_tracking" != xno; then
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 if test -n "$CC"; then
4231 echo "$as_me:$LINENO: result: $CC" >&5
4232 echo "${ECHO_T}$CC" >&6
4234 echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4239 if test -z "$ac_cv_prog_CC"; then
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$ac_ct_CC"; then
4249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC="gcc"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4270 echo "${ECHO_T}$ac_ct_CC" >&6
4272 echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4281 if test -z "$CC"; then
4282 if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}cc; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_CC="${ac_tool_prefix}cc"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 if test -n "$CC"; then
4311 echo "$as_me:$LINENO: result: $CC" >&5
4312 echo "${ECHO_T}$CC" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4319 if test -z "$ac_cv_prog_CC"; then
4321 # Extract the first word of "cc", so it can be a program name with args.
4322 set dummy cc; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_CC="cc"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4350 echo "${ECHO_T}$ac_ct_CC" >&6
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4362 if test -z "$CC"; then
4363 # Extract the first word of "cc", so it can be a program name with args.
4364 set dummy cc; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_prog_CC+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 if test -n "$CC"; then
4371 ac_cv_prog_CC="$CC" # Let the user override the test.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4382 ac_prog_rejected=yes
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 if test $ac_prog_rejected = yes; then
4393 # We found a bogon in the path, so make sure we never use it.
4394 set dummy $ac_cv_prog_CC
4396 if test $# != 0; then
4397 # We chose a different compiler from the bogus one.
4398 # However, it has the same basename, so the bogon will be chosen
4399 # first if we set CC to just the basename; use the full file name.
4401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4407 if test -n "$CC"; then
4408 echo "$as_me:$LINENO: result: $CC" >&5
4409 echo "${ECHO_T}$CC" >&6
4411 echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4416 if test -z "$CC"; then
4417 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_CC+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 if test -n "$CC"; then
4448 echo "$as_me:$LINENO: result: $CC" >&5
4449 echo "${ECHO_T}$CC" >&6
4451 echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4455 test -n "$CC" && break
4458 if test -z "$CC"; then
4462 # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy $ac_prog; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_ac_ct_CC="$ac_prog"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4489 if test -n "$ac_ct_CC"; then
4490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4491 echo "${ECHO_T}$ac_ct_CC" >&6
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 test -n "$ac_ct_CC" && break
4506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details." >&5
4508 echo "$as_me: error: no acceptable C compiler found in \$PATH
4509 See \`config.log' for more details." >&2;}
4510 { (exit 1); exit 1; }; }
4512 # Provide some information about the compiler.
4513 echo "$as_me:$LINENO:" \
4514 "checking for C compiler version" >&5
4515 ac_compiler=`set X $ac_compile; echo $2`
4516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4517 (eval $ac_compiler --version </dev/null >&5) 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }
4521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4522 (eval $ac_compiler -v </dev/null >&5) 2>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }
4526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4527 (eval $ac_compiler -V </dev/null >&5) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4547 ac_clean_files_save=$ac_clean_files
4548 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4549 # Try to create an executable without -o first, disregard a.out.
4550 # It will help us diagnose broken compilers, and finding out an intuition
4552 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4553 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4554 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4556 (eval $ac_link_default) 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; then
4560 # Find the output, starting from the most likely. This scheme is
4561 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4564 # Be careful to initialize this variable, since it used to be cached.
4565 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4567 # b.out is created by i960 compilers.
4568 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4570 test -f "$ac_file" || continue
4572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4575 # This is the source file.
4578 # We found the default executable, but exeext='' is most
4582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583 # FIXME: I believe we export ac_cv_exeext for Libtool,
4584 # but it would be cool to find out if it's true. Does anybody
4585 # maintain Libtool? --akim.
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4597 See \`config.log' for more details." >&5
4598 echo "$as_me: error: C compiler cannot create executables
4599 See \`config.log' for more details." >&2;}
4600 { (exit 77); exit 77; }; }
4603 ac_exeext=$ac_cv_exeext
4604 echo "$as_me:$LINENO: result: $ac_file" >&5
4605 echo "${ECHO_T}$ac_file" >&6
4607 # Check the compiler produces executables we can run. If not, either
4608 # the compiler is broken, or we cross compile.
4609 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4612 # If not cross compiling, check that we can run a simple program.
4613 if test "$cross_compiling" != yes; then
4614 if { ac_try='./$ac_file'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4622 if test "$cross_compiling" = maybe; then
4625 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4626 If you meant to cross compile, use \`--host'.
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot run C compiled programs.
4629 If you meant to cross compile, use \`--host'.
4630 See \`config.log' for more details." >&2;}
4631 { (exit 1); exit 1; }; }
4635 echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6
4638 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4639 ac_clean_files=$ac_clean_files_save
4640 # Check the compiler produces executables we can run. If not, either
4641 # the compiler is broken, or we cross compile.
4642 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4643 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4644 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4645 echo "${ECHO_T}$cross_compiling" >&6
4647 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4648 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; then
4654 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4655 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4656 # work properly (i.e., refer to `conftest.exe'), while it won't with
4658 for ac_file in conftest.exe conftest conftest.*; do
4659 test -f "$ac_file" || continue
4661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4662 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4669 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4670 See \`config.log' for more details." >&5
4671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4672 See \`config.log' for more details." >&2;}
4673 { (exit 1); exit 1; }; }
4676 rm -f conftest$ac_cv_exeext
4677 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4678 echo "${ECHO_T}$ac_cv_exeext" >&6
4680 rm -f conftest.$ac_ext
4681 EXEEXT=$ac_cv_exeext
4683 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4684 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4685 if test "${ac_cv_objext+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 cat >conftest.$ac_ext <<_ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4703 rm -f conftest.o conftest.obj
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; then
4709 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; }
4727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4730 echo "${ECHO_T}$ac_cv_objext" >&6
4731 OBJEXT=$ac_cv_objext
4733 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 cat >conftest.$ac_ext <<_ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1 >conftest.err
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4791 GCC=`test $ac_compiler_gnu = yes && echo yes`
4792 ac_test_CFLAGS=${CFLAGS+set}
4793 ac_save_CFLAGS=$CFLAGS
4795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4797 if test "${ac_cv_prog_cc_g+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -z "$ac_c_werror_flag"
4825 || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4848 if test "$ac_test_CFLAGS" = set; then
4849 CFLAGS=$ac_save_CFLAGS
4850 elif test $ac_cv_prog_cc_g = yes; then
4851 if test "$GCC" = yes; then
4857 if test "$GCC" = yes; then
4863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 ac_cv_prog_cc_stdc=no
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4878 #include <sys/types.h>
4879 #include <sys/stat.h>
4880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4881 struct buf { int x; };
4882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4883 static char *e (p, i)
4889 static char *f (char * (*g) (char **, int), char **p, ...)
4894 s = g (p, va_arg (v,int));
4899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4900 function prototypes and stuff, but not '\xHH' hex character constants.
4901 These don't provoke an error unfortunately, instead are silently treated
4902 as 'x'. The following induces an error, until -std1 is added to get
4903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4904 array size at least. It's necessary to write '\x00'==0 to get something
4905 that's true only with -std1. */
4906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4908 int test (int i, double x);
4909 struct s1 {int (*f) (int a);};
4910 struct s2 {int (*f) (double a);};
4911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4922 # Don't try gcc -ansi; that turns off useful extensions and
4923 # breaks some systems' header files.
4924 # AIX -qlanglvl=ansi
4925 # Ultrix and OSF/1 -std1
4926 # HP-UX 10.20 and later -Ae
4927 # HP-UX older versions -Aa -D_HPUX_SOURCE
4928 # SVR4 -Xc -D__EXTENSIONS__
4929 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4931 CC="$ac_save_CC $ac_arg"
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_c_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_cv_prog_cc_stdc=$ac_arg
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4961 rm -f conftest.err conftest.$ac_objext
4963 rm -f conftest.$ac_ext conftest.$ac_objext
4968 case "x$ac_cv_prog_cc_stdc" in
4970 echo "$as_me:$LINENO: result: none needed" >&5
4971 echo "${ECHO_T}none needed" >&6 ;;
4973 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4975 CC="$CC $ac_cv_prog_cc_stdc" ;;
4978 # Some people use a C++ compiler to compile C. Since we use `exit',
4979 # in C++ we need to declare it. In case someone uses the same compiler
4980 # for both compiling C and C++ we need to have the C++ compiler decide
4981 # the declaration of exit, since it's the most demanding environment.
4982 cat >conftest.$ac_ext <<_ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try='test -z "$ac_c_werror_flag"
4997 || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 for ac_declaration in \
5011 'extern "C" void std::exit (int) throw (); using std::exit;' \
5012 'extern "C" void std::exit (int); using std::exit;' \
5013 'extern "C" void exit (int) throw ();' \
5014 'extern "C" void exit (int);' \
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag"
5088 || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5109 if test -n "$ac_declaration"; then
5110 echo '#ifdef __cplusplus' >>confdefs.h
5111 echo $ac_declaration >>confdefs.h
5112 echo '#endif' >>confdefs.h
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 ac_cpp='$CPP $CPPFLAGS'
5123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127 depcc="$CC" am_compiler_list=
5129 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5130 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5131 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5135 # We make a subdir and do the tests there. Otherwise we can end up
5136 # making bogus files that we don't know about and never remove. For
5137 # instance it was reported that on HP-UX the gcc test will end up
5138 # making a dummy file named `D' -- because `-MD' means `put the output
5141 # Copy depcomp to subdir because otherwise we won't find it if we're
5142 # using a relative directory.
5143 cp "$am_depcomp" conftest.dir
5145 # We will build objects and dependencies in a subdirectory because
5146 # it helps to detect inapplicable dependency modes. For instance
5147 # both Tru64's cc and ICC support -MD to output dependencies as a
5148 # side effect of compilation, but ICC will put the dependencies in
5149 # the current directory while Tru64 will put them in the object
5153 am_cv_CC_dependencies_compiler_type=none
5154 if test "$am_compiler_list" = ""; then
5155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5157 for depmode in $am_compiler_list; do
5158 # Setup a source with many dependencies, because some compilers
5159 # like to wrap large dependency lists on column 80 (with \), and
5160 # we should not choose a depcomp mode which is confused by this.
5162 # We need to recreate these files for each test, as the compiler may
5163 # overwrite some of them when testing with obscure command lines.
5164 # This happens at least with the AIX C compiler.
5166 for i in 1 2 3 4 5 6; do
5167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5169 # Solaris 8's {/usr,}/bin/sh.
5170 touch sub/conftst$i.h
5172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5176 # after this tag, mechanisms are not by side-effect, so they'll
5177 # only be used when explicitly requested
5178 if test "x$enable_dependency_tracking" = xyes; then
5186 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5187 # mode. It turns out that the SunPro C++ compiler does not properly
5188 # handle `-M -o', and we need to detect this.
5189 if depmode=$depmode \
5190 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5192 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5193 >/dev/null 2>conftest.err &&
5194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5195 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5197 # icc doesn't choke on unknown options, it will just issue warnings
5198 # or remarks (even with -Werror). So we grep stderr for any message
5199 # that says an option was ignored or not supported.
5200 # When given -MP, icc 7.0 and 7.1 complain thusly:
5201 # icc: Command line warning: ignoring option '-M'; no argument required
5202 # The diagnosis changed in icc 8.0:
5203 # icc: Command line remark: option '-MP' not supported
5204 if (grep 'ignoring option' conftest.err ||
5205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5206 am_cv_CC_dependencies_compiler_type=$depmode
5215 am_cv_CC_dependencies_compiler_type=none
5219 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5220 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5226 test "x$enable_dependency_tracking" != xno \
5227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5229 am__fastdepCC_FALSE='#'
5231 am__fastdepCC_TRUE='#'
5232 am__fastdepCC_FALSE=
5236 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5237 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5238 if test "${lt_cv_path_SED+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 # Loop through the user's path and test for sed and gsed.
5242 # Then use that list of sed's as ones to test for truncation.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for lt_ac_prog in sed gsed; do
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5251 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5258 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5259 # along with /bin/sed that truncates output.
5260 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5261 test ! -f $lt_ac_sed && continue
5262 cat /dev/null > conftest.in
5264 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5265 # Check for GNU sed and select it if it is found.
5266 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5267 lt_cv_path_SED=$lt_ac_sed
5271 cat conftest.in conftest.in >conftest.tmp
5272 mv conftest.tmp conftest.in
5273 cp conftest.in conftest.nl
5275 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5276 cmp -s conftest.out conftest.nl || break
5277 # 10000 chars as input seems more than enough
5278 test $lt_ac_count -gt 10 && break
5279 lt_ac_count=`expr $lt_ac_count + 1`
5280 if test $lt_ac_count -gt $lt_ac_max; then
5281 lt_ac_max=$lt_ac_count
5282 lt_cv_path_SED=$lt_ac_sed
5290 echo "$as_me:$LINENO: result: $SED" >&5
5291 echo "${ECHO_T}$SED" >&6
5293 echo "$as_me:$LINENO: checking for egrep" >&5
5294 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5295 if test "${ac_cv_prog_egrep+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5299 then ac_cv_prog_egrep='grep -E'
5300 else ac_cv_prog_egrep='egrep'
5303 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5304 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5305 EGREP=$ac_cv_prog_egrep
5309 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5310 if test "${with_gnu_ld+set}" = set; then
5311 withval="$with_gnu_ld"
5312 test "$withval" = no || with_gnu_ld=yes
5317 if test "$GCC" = yes; then
5318 # Check if gcc -print-prog-name=ld gives a path.
5319 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5320 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5323 # gcc leaves a trailing carriage return which upsets mingw
5324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5329 # Accept absolute paths.
5331 re_direlt='/[^/][^/]*/\.\./'
5332 # Canonicalize the pathname of ld
5333 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5335 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5337 test -z "$LD" && LD="$ac_prog"
5340 # If it fails, then pretend we aren't using GCC.
5344 # If it is relative, then search for the first ld in PATH.
5348 elif test "$with_gnu_ld" = yes; then
5349 echo "$as_me:$LINENO: checking for GNU ld" >&5
5350 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5353 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5355 if test "${lt_cv_path_LD+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 if test -z "$LD"; then
5359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5360 for ac_dir in $PATH; do
5362 test -z "$ac_dir" && ac_dir=.
5363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5364 lt_cv_path_LD="$ac_dir/$ac_prog"
5365 # Check to see if the program is GNU ld. I'd rather use --version,
5366 # but apparently some variants of GNU ld only accept -v.
5367 # Break only if it was the GNU/non-GNU ld that we prefer.
5368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5369 *GNU* | *'with BFD'*)
5370 test "$with_gnu_ld" != no && break
5373 test "$with_gnu_ld" != yes && break
5380 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5385 if test -n "$LD"; then
5386 echo "$as_me:$LINENO: result: $LD" >&5
5387 echo "${ECHO_T}$LD" >&6
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5392 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5393 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5394 { (exit 1); exit 1; }; }
5395 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5396 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5397 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5401 case `$LD -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403 lt_cv_prog_gnu_ld=yes
5406 lt_cv_prog_gnu_ld=no
5410 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5411 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5412 with_gnu_ld=$lt_cv_prog_gnu_ld
5415 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5416 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5417 if test "${lt_cv_ld_reload_flag+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 lt_cv_ld_reload_flag='-r'
5422 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5423 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5424 reload_flag=$lt_cv_ld_reload_flag
5425 case $reload_flag in
5427 *) reload_flag=" $reload_flag" ;;
5429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5432 if test "$GCC" = yes; then
5433 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5440 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5441 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5442 if test "${lt_cv_path_NM+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 if test -n "$NM"; then
5446 # Let the user override the test.
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5452 test -z "$ac_dir" && ac_dir=.
5453 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455 # Check to see if the nm accepts a BSD-compat flag.
5456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457 # nm: unknown option "B" ignored
5458 # Tru64's nm complains that /dev/null is an invalid object file
5459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460 */dev/null* | *'Invalid file or object type'*)
5461 lt_cv_path_NM="$tmp_nm -B"
5465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5467 lt_cv_path_NM="$tmp_nm -p"
5471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472 continue # so that we can try to find one that supports BSD flags
5479 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5482 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5483 echo "${ECHO_T}$lt_cv_path_NM" >&6
5486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5489 if test "$LN_S" = "ln -s"; then
5490 echo "$as_me:$LINENO: result: yes" >&5
5491 echo "${ECHO_T}yes" >&6
5493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5494 echo "${ECHO_T}no, using $LN_S" >&6
5497 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5498 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5499 if test "${lt_cv_deplibs_check_method+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 lt_cv_file_magic_cmd='$MAGIC_CMD'
5503 lt_cv_file_magic_test_file=
5504 lt_cv_deplibs_check_method='unknown'
5505 # Need to set the preceding variable on all platforms that support
5506 # interlibrary dependencies.
5507 # 'none' -- dependencies not supported.
5508 # `unknown' -- same as none, but documents that we really don't know.
5509 # 'pass_all' -- all dependencies passed with no checks.
5510 # 'test_compile' -- check by making test program.
5511 # 'file_magic [[regex]]' -- check by looking for files in library path
5512 # which responds to the $file_magic_cmd with a given extended regex.
5513 # If you have `file' or equivalent on your system and you're not sure
5514 # whether `pass_all' will *always* work, you probably want this one.
5518 lt_cv_deplibs_check_method=pass_all
5522 lt_cv_deplibs_check_method=pass_all
5526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5527 lt_cv_file_magic_cmd='/usr/bin/file -L'
5528 lt_cv_file_magic_test_file=/shlib/libc.so
5532 # func_win32_libid is a shell function defined in ltmain.sh
5533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5534 lt_cv_file_magic_cmd='func_win32_libid'
5538 # Base MSYS/MinGW do not provide the 'file' command needed by
5539 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5540 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5541 lt_cv_file_magic_cmd='$OBJDUMP -f'
5544 darwin* | rhapsody*)
5545 lt_cv_deplibs_check_method=pass_all
5548 freebsd* | kfreebsd*-gnu | dragonfly*)
5549 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5552 # Not sure whether the presence of OpenBSD here was a mistake.
5553 # Let's accept both of them until this is cleared up.
5554 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5555 lt_cv_file_magic_cmd=/usr/bin/file
5556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5560 lt_cv_deplibs_check_method=pass_all
5565 lt_cv_deplibs_check_method=pass_all
5568 hpux10.20* | hpux11*)
5569 lt_cv_file_magic_cmd=/usr/bin/file
5572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5573 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5576 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]'
5577 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5581 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5586 irix5* | irix6* | nonstopux*)
5588 *-32|*"-32 ") libmagic=32-bit;;
5589 *-n32|*"-n32 ") libmagic=N32;;
5590 *-64|*"-64 ") libmagic=64-bit;;
5591 *) libmagic=never-match;;
5593 lt_cv_deplibs_check_method=pass_all
5596 # This must be Linux ELF.
5598 lt_cv_deplibs_check_method=pass_all
5602 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611 lt_cv_file_magic_cmd=/usr/bin/file
5612 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5616 lt_cv_deplibs_check_method=unknown
5620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627 osf3* | osf4* | osf5*)
5628 lt_cv_deplibs_check_method=pass_all
5632 lt_cv_deplibs_check_method=pass_all
5636 lt_cv_deplibs_check_method=pass_all
5639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5640 case $host_vendor in
5642 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]'
5643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5646 lt_cv_deplibs_check_method=pass_all
5649 lt_cv_file_magic_cmd='/bin/file'
5650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5653 lt_cv_file_magic_cmd='/bin/file'
5654 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5655 lt_cv_file_magic_test_file=/lib/libc.so
5658 lt_cv_deplibs_check_method=pass_all
5663 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5664 lt_cv_deplibs_check_method=pass_all
5669 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5671 file_magic_cmd=$lt_cv_file_magic_cmd
5672 deplibs_check_method=$lt_cv_deplibs_check_method
5673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678 # If no C compiler was specified, use CC.
5681 # Allow CC to be a program name with arguments.
5685 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5686 if test "${enable_libtool_lock+set}" = set; then
5687 enableval="$enable_libtool_lock"
5690 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5692 # Some flags need to be propagated to the compiler or linker for good
5696 # Find out which ABI we are using.
5697 echo 'int i;' > conftest.$ac_ext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; then
5703 case `/usr/bin/file conftest.$ac_objext` in
5715 # Find out which ABI we are using.
5716 echo '#line 5716 "configure"' > conftest.$ac_ext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; then
5722 if test "$lt_cv_prog_gnu_ld" = yes; then
5723 case `/usr/bin/file conftest.$ac_objext` in
5725 LD="${LD-ld} -melf32bsmip"
5728 LD="${LD-ld} -melf32bmipn32"
5731 LD="${LD-ld} -melf64bmip"
5735 case `/usr/bin/file conftest.$ac_objext` in
5751 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5752 # Find out which ABI we are using.
5753 echo 'int i;' > conftest.$ac_ext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; then
5759 case `/usr/bin/file conftest.o` in
5763 LD="${LD-ld} -m elf_i386"
5765 ppc64-*linux*|powerpc64-*linux*)
5766 LD="${LD-ld} -m elf32ppclinux"
5769 LD="${LD-ld} -m elf_s390"
5772 LD="${LD-ld} -m elf32_sparc"
5779 LD="${LD-ld} -m elf_x86_64"
5781 ppc*-*linux*|powerpc*-*linux*)
5782 LD="${LD-ld} -m elf64ppc"
5785 LD="${LD-ld} -m elf64_s390"
5788 LD="${LD-ld} -m elf64_sparc"
5798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5799 SAVE_CFLAGS="$CFLAGS"
5800 CFLAGS="$CFLAGS -belf"
5801 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5802 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5803 if test "${lt_cv_cc_needs_belf+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812 cat >conftest.$ac_ext <<_ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 lt_cv_cc_needs_belf=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 lt_cv_cc_needs_belf=no
5856 rm -f conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5866 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5867 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5868 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5869 CFLAGS="$SAVE_CFLAGS"
5872 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$DLLTOOL"; then
5882 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 DLLTOOL=$ac_cv_prog_DLLTOOL
5901 if test -n "$DLLTOOL"; then
5902 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5903 echo "${ECHO_T}$DLLTOOL" >&6
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5910 if test -z "$ac_cv_prog_DLLTOOL"; then
5911 ac_ct_DLLTOOL=$DLLTOOL
5912 # Extract the first word of "dlltool", so it can be a program name with args.
5913 set dummy dlltool; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 if test -n "$ac_ct_DLLTOOL"; then
5920 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5940 if test -n "$ac_ct_DLLTOOL"; then
5941 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5942 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5948 DLLTOOL=$ac_ct_DLLTOOL
5950 DLLTOOL="$ac_cv_prog_DLLTOOL"
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}as; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_AS+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$AS"; then
5962 ac_cv_prog_AS="$AS" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_AS="${ac_tool_prefix}as"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 if test -n "$AS"; then
5982 echo "$as_me:$LINENO: result: $AS" >&5
5983 echo "${ECHO_T}$AS" >&6
5985 echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5990 if test -z "$ac_cv_prog_AS"; then
5992 # Extract the first word of "as", so it can be a program name with args.
5993 set dummy as; ac_word=$2
5994 echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 if test -n "$ac_ct_AS"; then
6000 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_ac_ct_AS="as"
6010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6019 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6020 if test -n "$ac_ct_AS"; then
6021 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6022 echo "${ECHO_T}$ac_ct_AS" >&6
6024 echo "$as_me:$LINENO: result: no" >&5
6025 echo "${ECHO_T}no" >&6
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6036 echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6038 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 if test -n "$OBJDUMP"; then
6042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 OBJDUMP=$ac_cv_prog_OBJDUMP
6061 if test -n "$OBJDUMP"; then
6062 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6063 echo "${ECHO_T}$OBJDUMP" >&6
6065 echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6
6070 if test -z "$ac_cv_prog_OBJDUMP"; then
6071 ac_ct_OBJDUMP=$OBJDUMP
6072 # Extract the first word of "objdump", so it can be a program name with args.
6073 set dummy objdump; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 if test -n "$ac_ct_OBJDUMP"; then
6080 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6100 if test -n "$ac_ct_OBJDUMP"; then
6101 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6102 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6104 echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6
6108 OBJDUMP=$ac_ct_OBJDUMP
6110 OBJDUMP="$ac_cv_prog_OBJDUMP"
6117 need_locks="$enable_libtool_lock"
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6125 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6127 # On Suns, sometimes $CPP names a directory.
6128 if test -n "$CPP" && test -d "$CPP"; then
6131 if test -z "$CPP"; then
6132 if test "${ac_cv_prog_CPP+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 # Double quotes because CPP needs to be expanded
6136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6139 for ac_c_preproc_warn_flag in '' yes
6141 # Use a header file that comes with gcc, so configuring glibc
6142 # with a fresh cross-compiler works.
6143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6144 # <limits.h> exists even on freestanding compilers.
6145 # On the NeXT, cc -E runs the code through the compiler's parser,
6146 # not just through cpp. "Syntax error" is here to catch this case.
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6154 # include <limits.h>
6156 # include <assert.h>
6160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6163 grep -v '^ *+' conftest.er1 >conftest.err
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } >/dev/null; then
6168 if test -s conftest.err; then
6169 ac_cpp_err=$ac_c_preproc_warn_flag
6170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6177 if test -z "$ac_cpp_err"; then
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 # Broken: fails on valid input.
6186 rm -f conftest.err conftest.$ac_ext
6188 # OK, works on sane cases. Now check whether non-existent headers
6189 # can be detected and how.
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <ac_nonexistent.h>
6198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6201 grep -v '^ *+' conftest.er1 >conftest.err
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } >/dev/null; then
6206 if test -s conftest.err; then
6207 ac_cpp_err=$ac_c_preproc_warn_flag
6208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6215 if test -z "$ac_cpp_err"; then
6216 # Broken: success on invalid input.
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 # Passes both tests.
6226 rm -f conftest.err conftest.$ac_ext
6229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6230 rm -f conftest.err conftest.$ac_ext
6231 if $ac_preproc_ok; then
6243 echo "$as_me:$LINENO: result: $CPP" >&5
6244 echo "${ECHO_T}$CPP" >&6
6246 for ac_c_preproc_warn_flag in '' yes
6248 # Use a header file that comes with gcc, so configuring glibc
6249 # with a fresh cross-compiler works.
6250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6251 # <limits.h> exists even on freestanding compilers.
6252 # On the NeXT, cc -E runs the code through the compiler's parser,
6253 # not just through cpp. "Syntax error" is here to catch this case.
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 # include <limits.h>
6263 # include <assert.h>
6267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6270 grep -v '^ *+' conftest.er1 >conftest.err
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } >/dev/null; then
6275 if test -s conftest.err; then
6276 ac_cpp_err=$ac_c_preproc_warn_flag
6277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6284 if test -z "$ac_cpp_err"; then
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 # Broken: fails on valid input.
6293 rm -f conftest.err conftest.$ac_ext
6295 # OK, works on sane cases. Now check whether non-existent headers
6296 # can be detected and how.
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <ac_nonexistent.h>
6305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } >/dev/null; then
6313 if test -s conftest.err; then
6314 ac_cpp_err=$ac_c_preproc_warn_flag
6315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6322 if test -z "$ac_cpp_err"; then
6323 # Broken: success on invalid input.
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 # Passes both tests.
6333 rm -f conftest.err conftest.$ac_ext
6336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6337 rm -f conftest.err conftest.$ac_ext
6338 if $ac_preproc_ok; then
6341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6342 See \`config.log' for more details." >&5
6343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6344 See \`config.log' for more details." >&2;}
6345 { (exit 1); exit 1; }; }
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6355 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6356 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6357 if test "${ac_cv_header_stdc+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381 (eval $ac_compile) 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_c_werror_flag"
6389 || test ! -s conftest.err'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_cv_header_stdc=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_cv_header_stdc=no
6408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410 if test $ac_cv_header_stdc = yes; then
6411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6412 cat >conftest.$ac_ext <<_ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422 $EGREP "memchr" >/dev/null 2>&1; then
6425 ac_cv_header_stdc=no
6431 if test $ac_cv_header_stdc = yes; then
6432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6433 cat >conftest.$ac_ext <<_ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "free" >/dev/null 2>&1; then
6446 ac_cv_header_stdc=no
6452 if test $ac_cv_header_stdc = yes; then
6453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6454 if test "$cross_compiling" = yes; then
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6464 #if ((' ' & 0x0FF) == 0x020)
6465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6468 # define ISLOWER(c) \
6469 (('a' <= (c) && (c) <= 'i') \
6470 || ('j' <= (c) && (c) <= 'r') \
6471 || ('s' <= (c) && (c) <= 'z'))
6472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6480 for (i = 0; i < 256; i++)
6481 if (XOR (islower (i), ISLOWER (i))
6482 || toupper (i) != TOUPPER (i))
6487 rm -f conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6500 echo "$as_me: program exited with status $ac_status" >&5
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_cv_header_stdc=no
6507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6511 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6512 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6513 if test $ac_cv_header_stdc = yes; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define STDC_HEADERS 1
6521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532 inttypes.h stdint.h unistd.h
6534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6548 #include <$ac_header>
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_c_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 eval "$as_ac_Header=yes"
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 eval "$as_ac_Header=no"
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6594 for ac_header in dlfcn.h
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598 echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6606 # Is the header compilable?
6607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 #include <$ac_header>
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6622 grep -v '^ *+' conftest.er1 >conftest.err
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_header_compiler=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_header_compiler=no
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6649 echo "${ECHO_T}$ac_header_compiler" >&6
6651 # Is the header present?
6652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 #include <$ac_header>
6662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665 grep -v '^ *+' conftest.er1 >conftest.err
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } >/dev/null; then
6670 if test -s conftest.err; then
6671 ac_cpp_err=$ac_c_preproc_warn_flag
6672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6679 if test -z "$ac_cpp_err"; then
6680 ac_header_preproc=yes
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 ac_header_preproc=no
6687 rm -f conftest.err conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6689 echo "${ECHO_T}$ac_header_preproc" >&6
6691 # So? What about this header?
6692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6698 ac_header_preproc=yes
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6715 ## ------------------------------------------ ##
6716 ## Report this to the AC_PACKAGE_NAME lists. ##
6717 ## ------------------------------------------ ##
6720 sed "s/^/$as_me: WARNING: /" >&2
6723 echo "$as_me:$LINENO: checking for $ac_header" >&5
6724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 eval "$as_ac_Header=\$ac_header_preproc"
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6746 # find the maximum length of command line arguments
6747 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6748 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6749 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 # On DJGPP, this test can blow up pretty badly due to problems in libc
6758 # (any single argument exceeding 2000 bytes causes a buffer overrun
6759 # during glob expansion). Even if it were fixed, the result of this
6760 # check would be larger than it should be.
6761 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6765 # Under GNU Hurd, this test is not required because there is
6766 # no limit to the length of command line arguments.
6767 # Libtool will interpret -1 as no limit whatsoever
6768 lt_cv_sys_max_cmd_len=-1;
6772 # On Win9x/ME, this test blows up -- it succeeds, but takes
6773 # about 5 minutes as the teststring grows exponentially.
6774 # Worse, since 9x/ME are not pre-emptively multitasking,
6775 # you end up with a "frozen" computer, even though with patience
6776 # the test eventually succeeds (with a max line length of 256k).
6777 # Instead, let's just punt: use the minimum linelength reported by
6778 # all of the supported platforms: 8192 (on NT/2K/XP).
6779 lt_cv_sys_max_cmd_len=8192;
6783 # On AmigaOS with pdksh, this test takes hours, literally.
6784 # So we just punt and use a minimum line length of 8192.
6785 lt_cv_sys_max_cmd_len=8192;
6788 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6789 # This has been around since 386BSD, at least. Likely further.
6790 if test -x /sbin/sysctl; then
6791 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6792 elif test -x /usr/sbin/sysctl; then
6793 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6795 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6797 # And add a safety zone
6798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6802 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6803 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6804 # nice to cause kernel panics so lets avoid the loop below.
6805 # First set a reasonable default.
6806 lt_cv_sys_max_cmd_len=16384
6808 if test -x /sbin/sysconfig; then
6809 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6810 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6815 # If test is not a shell built-in, we'll probably end up computing a
6816 # maximum length that is only half of the actual maximum length, but
6818 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6819 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6820 = "XX$teststring") >/dev/null 2>&1 &&
6821 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6822 lt_cv_sys_max_cmd_len=$new_result &&
6823 test $i != 17 # 1/2 MB should be enough
6826 teststring=$teststring$teststring
6829 # Add a significant safety factor because C++ compilers can tack on massive
6830 # amounts of additional arguments before passing them to the linker.
6831 # It appears as though 1/2 is a usable value.
6832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6838 if test -n $lt_cv_sys_max_cmd_len ; then
6839 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6842 echo "$as_me:$LINENO: result: none" >&5
6843 echo "${ECHO_T}none" >&6
6849 # Check for command to grab the raw symbol name followed by C symbol from nm.
6850 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 # These are sane defaults that work on at least a few old systems.
6857 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6859 # Character class describing NM global symbol codes.
6860 symcode='[BCDEGRST]'
6862 # Regexp to match symbols that can be accessed directly from C.
6863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6865 # Transform an extracted symbol line into a proper C declaration
6866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6868 # Transform an extracted symbol line into symbol name and symbol address
6869 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'"
6871 # Define system-specific variables.
6876 cygwin* | mingw* | pw32*)
6877 symcode='[ABCDGISTW]'
6879 hpux*) # Its linker distinguishes data from code symbols
6880 if test "$host_cpu" = ia64; then
6881 symcode='[ABCDEGRST]'
6883 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6884 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'"
6887 if test "$host_cpu" = ia64; then
6888 symcode='[ABCDGIRSTW]'
6889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6890 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'"
6894 symcode='[BCDEGRST]'
6897 symcode='[BCDEGQRST]'
6907 # Handle CRLF in mingw tool chain
6911 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6915 # If we're using GNU nm, then use its standard symbol codes.
6916 case `$NM -V 2>&1` in
6917 *GNU* | *'with BFD'*)
6918 symcode='[ABCDGIRSTW]' ;;
6921 # Try without a prefix undercore, then with it.
6922 for ac_symprfx in "" "_"; do
6924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6925 symxfrm="\\1 $ac_symprfx\\2 \\2"
6927 # Write the raw and C identifiers.
6928 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6930 # Check to see that the pipe works correctly.
6934 cat > conftest.$ac_ext <<EOF
6939 void nm_test_func(){}
6943 int main(){nm_test_var='a';nm_test_func();return(0);}
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; then
6951 # Now try to grab the symbols.
6953 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6954 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && test -s "$nlist"; then
6958 # Try sorting and uniquifying the output.
6959 if sort "$nlist" | uniq > "$nlist"T; then
6960 mv -f "$nlist"T "$nlist"
6965 # Make sure that we snagged all the symbols we need.
6966 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6967 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6968 cat <<EOF > conftest.$ac_ext
6974 # Now generate the symbol file.
6975 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6977 cat <<EOF >> conftest.$ac_ext
6978 #if defined (__STDC__) && __STDC__
6979 # define lt_ptr_t void *
6981 # define lt_ptr_t char *
6985 /* The mapping between symbol names and symbols. */
6990 lt_preloaded_symbols[] =
6993 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6994 cat <<\EOF >> conftest.$ac_ext
7002 # Now try linking the two files.
7003 mv conftest.$ac_objext conftstm.$ac_objext
7004 lt_save_LIBS="$LIBS"
7005 lt_save_CFLAGS="$CFLAGS"
7006 LIBS="conftstm.$ac_objext"
7007 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7015 LIBS="$lt_save_LIBS"
7016 CFLAGS="$lt_save_CFLAGS"
7018 echo "cannot find nm_test_func in $nlist" >&5
7021 echo "cannot find nm_test_var in $nlist" >&5
7024 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7027 echo "$progname: failed program was:" >&5
7028 cat conftest.$ac_ext >&5
7030 rm -f conftest* conftst*
7032 # Do not use the global_symbol_pipe unless it works.
7033 if test "$pipe_works" = yes; then
7036 lt_cv_sys_global_symbol_pipe=
7042 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7043 lt_cv_sys_global_symbol_to_cdecl=
7045 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7046 echo "$as_me:$LINENO: result: failed" >&5
7047 echo "${ECHO_T}failed" >&6
7049 echo "$as_me:$LINENO: result: ok" >&5
7050 echo "${ECHO_T}ok" >&6
7053 echo "$as_me:$LINENO: checking for objdir" >&5
7054 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7055 if test "${lt_cv_objdir+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 rm -f .libs 2>/dev/null
7059 mkdir .libs 2>/dev/null
7060 if test -d .libs; then
7063 # MS-DOS does not allow filenames that begin with a dot.
7066 rmdir .libs 2>/dev/null
7068 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7069 echo "${ECHO_T}$lt_cv_objdir" >&6
7070 objdir=$lt_cv_objdir
7078 # AIX sometimes has problems with the GCC collect2 program. For some
7079 # reason, if we set the COLLECT_NAMES environment variable, the problems
7080 # vanish in a puff of smoke.
7081 if test "X${COLLECT_NAMES+set}" != Xset; then
7083 export COLLECT_NAMES
7088 # Sed substitution that helps us do robust quoting. It backslashifies
7089 # metacharacters that are still active within double-quoted strings.
7090 Xsed='sed -e 1s/^X//'
7091 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7093 # Same as above, but do not quote variable references.
7094 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7096 # Sed substitution to delay expansion of an escaped shell variable in a
7097 # double_quote_subst'ed string.
7098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7100 # Sed substitution to avoid accidental globbing in evaled expressions
7101 no_glob_subst='s/\*/\\\*/g'
7107 default_ofile=libtool
7108 can_build_shared=yes
7110 # All known linkers require a `.a' archive for static linking (except MSVC,
7111 # which needs '.lib').
7113 ltmain="$ac_aux_dir/ltmain.sh"
7114 ofile="$default_ofile"
7115 with_gnu_ld="$lt_cv_prog_gnu_ld"
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}ar; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_AR+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 if test -n "$AR"; then
7126 ac_cv_prog_AR="$AR" # Let the user override the test.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_AR="${ac_tool_prefix}ar"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 if test -n "$AR"; then
7146 echo "$as_me:$LINENO: result: $AR" >&5
7147 echo "${ECHO_T}$AR" >&6
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7154 if test -z "$ac_cv_prog_AR"; then
7156 # Extract the first word of "ar", so it can be a program name with args.
7157 set dummy ar; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 if test -n "$ac_ct_AR"; then
7164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_AR="ar"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7184 if test -n "$ac_ct_AR"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186 echo "${ECHO_T}$ac_ct_AR" >&6
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7200 echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202 if test "${ac_cv_prog_RANLIB+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 if test -n "$RANLIB"; then
7206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 RANLIB=$ac_cv_prog_RANLIB
7225 if test -n "$RANLIB"; then
7226 echo "$as_me:$LINENO: result: $RANLIB" >&5
7227 echo "${ECHO_T}$RANLIB" >&6
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235 ac_ct_RANLIB=$RANLIB
7236 # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 if test -n "$ac_ct_RANLIB"; then
7244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_ac_ct_RANLIB="ranlib"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7264 if test -n "$ac_ct_RANLIB"; then
7265 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7266 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7272 RANLIB=$ac_ct_RANLIB
7274 RANLIB="$ac_cv_prog_RANLIB"
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}strip; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_prog_STRIP+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 if test -n "$STRIP"; then
7286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 STRIP=$ac_cv_prog_STRIP
7305 if test -n "$STRIP"; then
7306 echo "$as_me:$LINENO: result: $STRIP" >&5
7307 echo "${ECHO_T}$STRIP" >&6
7309 echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7314 if test -z "$ac_cv_prog_STRIP"; then
7316 # Extract the first word of "strip", so it can be a program name with args.
7317 set dummy strip; ac_word=$2
7318 echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 if test -n "$ac_ct_STRIP"; then
7324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_ac_ct_STRIP="strip"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7344 if test -n "$ac_ct_STRIP"; then
7345 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7346 echo "${ECHO_T}$ac_ct_STRIP" >&6
7348 echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7354 STRIP="$ac_cv_prog_STRIP"
7359 old_CFLAGS="$CFLAGS"
7361 # Set sane defaults for various variables
7362 test -z "$AR" && AR=ar
7363 test -z "$AR_FLAGS" && AR_FLAGS=cru
7364 test -z "$AS" && AS=as
7365 test -z "$CC" && CC=cc
7366 test -z "$LTCC" && LTCC=$CC
7367 test -z "$DLLTOOL" && DLLTOOL=dlltool
7368 test -z "$LD" && LD=ld
7369 test -z "$LN_S" && LN_S="ln -s"
7370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7371 test -z "$NM" && NM=nm
7372 test -z "$SED" && SED=sed
7373 test -z "$OBJDUMP" && OBJDUMP=objdump
7374 test -z "$RANLIB" && RANLIB=:
7375 test -z "$STRIP" && STRIP=:
7376 test -z "$ac_objext" && ac_objext=o
7378 # Determine commands to create old-style static archives.
7379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7380 old_postinstall_cmds='chmod 644 $oldlib'
7381 old_postuninstall_cmds=
7383 if test -n "$RANLIB"; then
7386 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7389 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7392 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7395 for cc_temp in $compiler""; do
7397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7406 # Only perform the check for file, if the check method requires it
7407 case $deplibs_check_method in
7409 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7410 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7411 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7412 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7420 lt_save_MAGIC_CMD="$MAGIC_CMD"
7421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7422 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7423 for ac_dir in $ac_dummy; do
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f $ac_dir/${ac_tool_prefix}file; then
7427 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7428 if test -n "$file_magic_test_file"; then
7429 case $deplibs_check_method in
7431 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7434 $EGREP "$file_magic_regex" > /dev/null; then
7439 *** Warning: the command libtool uses to detect shared libraries,
7440 *** $file_magic_cmd, produces output that libtool cannot recognize.
7441 *** The result is that libtool may fail to recognize shared libraries
7442 *** as such. This will affect the creation of libtool libraries that
7443 *** depend on shared libraries, but programs linked with such libtool
7444 *** libraries will work regardless of this problem. Nevertheless, you
7445 *** may want to report the problem to your system manager and/or to
7446 *** bug-libtool@gnu.org
7456 MAGIC_CMD="$lt_save_MAGIC_CMD"
7461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7462 if test -n "$MAGIC_CMD"; then
7463 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7464 echo "${ECHO_T}$MAGIC_CMD" >&6
7466 echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7470 if test -z "$lt_cv_path_MAGIC_CMD"; then
7471 if test -n "$ac_tool_prefix"; then
7472 echo "$as_me:$LINENO: checking for file" >&5
7473 echo $ECHO_N "checking for file... $ECHO_C" >&6
7474 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7482 lt_save_MAGIC_CMD="$MAGIC_CMD"
7483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7484 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7485 for ac_dir in $ac_dummy; do
7487 test -z "$ac_dir" && ac_dir=.
7488 if test -f $ac_dir/file; then
7489 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7490 if test -n "$file_magic_test_file"; then
7491 case $deplibs_check_method in
7493 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7495 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7496 $EGREP "$file_magic_regex" > /dev/null; then
7501 *** Warning: the command libtool uses to detect shared libraries,
7502 *** $file_magic_cmd, produces output that libtool cannot recognize.
7503 *** The result is that libtool may fail to recognize shared libraries
7504 *** as such. This will affect the creation of libtool libraries that
7505 *** depend on shared libraries, but programs linked with such libtool
7506 *** libraries will work regardless of this problem. Nevertheless, you
7507 *** may want to report the problem to your system manager and/or to
7508 *** bug-libtool@gnu.org
7518 MAGIC_CMD="$lt_save_MAGIC_CMD"
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if test -n "$MAGIC_CMD"; then
7525 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7526 echo "${ECHO_T}$MAGIC_CMD" >&6
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7542 enable_win32_dll=yes
7544 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7545 if test "${enable_libtool_lock+set}" = set; then
7546 enableval="$enable_libtool_lock"
7549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7552 # Check whether --with-pic or --without-pic was given.
7553 if test "${with_pic+set}" = set; then
7559 test -z "$pic_mode" && pic_mode=default
7561 # Use C for the default configuration in the libtool script
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571 # Source file extension for C test sources.
7574 # Object file extension for compiled C test sources.
7578 # Code to be used in simple compile tests
7579 lt_simple_compile_test_code="int some_variable = 0;\n"
7581 # Code to be used in simple link tests
7582 lt_simple_link_test_code='int main(){return(0);}\n'
7585 # If no C compiler was specified, use CC.
7588 # Allow CC to be a program name with arguments.
7592 # save warnings/boilerplate of simple test code
7593 ac_outfile=conftest.$ac_objext
7594 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7596 _lt_compiler_boilerplate=`cat conftest.err`
7599 ac_outfile=conftest.$ac_objext
7600 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7602 _lt_linker_boilerplate=`cat conftest.err`
7607 # Check for any special shared library compilation flags.
7610 if test "$GCC" = no; then
7613 lt_prog_cc_shlib='-belf'
7617 if test -n "$lt_prog_cc_shlib"; then
7618 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7619 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7620 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7622 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7623 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7624 lt_cv_prog_cc_can_build_shared=no
7630 # Check to make sure the static flag actually works.
7632 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7633 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7634 if test "${lt_prog_compiler_static_works+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 lt_prog_compiler_static_works=no
7638 save_LDFLAGS="$LDFLAGS"
7639 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7640 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7641 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7642 # The linker can only warn and ignore the option if not recognized
7643 # So say no if there are warnings
7644 if test -s conftest.err; then
7645 # Append any errors to the config.log.
7646 cat conftest.err 1>&5
7647 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7648 $SED '/^$/d' conftest.err >conftest.er2
7649 if diff conftest.exp conftest.er2 >/dev/null; then
7650 lt_prog_compiler_static_works=yes
7653 lt_prog_compiler_static_works=yes
7657 LDFLAGS="$save_LDFLAGS"
7660 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7661 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7663 if test x"$lt_prog_compiler_static_works" = xyes; then
7666 lt_prog_compiler_static=
7672 lt_prog_compiler_no_builtin_flag=
7674 if test "$GCC" = yes; then
7675 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7699 cat conftest.err >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7704 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7705 $SED '/^$/d' conftest.err >conftest.er2
7706 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7713 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7724 lt_prog_compiler_wl=
7725 lt_prog_compiler_pic=
7726 lt_prog_compiler_static=
7728 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7731 if test "$GCC" = yes; then
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_static='-static'
7737 # All AIX code is PIC.
7738 if test "$host_cpu" = ia64; then
7739 # AIX 5 now supports IA64 processor
7740 lt_prog_compiler_static='-Bstatic'
7745 # FIXME: we need at least 68020 code to build shared libraries, but
7746 # adding the `-m68020' flag to GCC prevents building anything better,
7748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7751 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7752 # PIC is the default for these OSes.
7755 mingw* | pw32* | os2*)
7756 # This hack is so that the source file can tell whether it is being
7757 # built for inclusion in a dll (and should export symbols for example).
7758 lt_prog_compiler_pic='-DDLL_EXPORT'
7761 darwin* | rhapsody*)
7762 # PIC is the default on this platform
7763 # Common symbols not allowed in MH_DYLIB files
7764 lt_prog_compiler_pic='-fno-common'
7768 # Just because we use GCC doesn't mean we suddenly get shared libraries
7769 # on systems that don't support them.
7770 lt_prog_compiler_can_build_shared=no
7775 if test -d /usr/nec; then
7776 lt_prog_compiler_pic=-Kconform_pic
7781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7788 lt_prog_compiler_pic='-fPIC'
7794 lt_prog_compiler_pic='-fPIC'
7798 # PORTME Check for flag to pass linker flags through the system compiler.
7801 lt_prog_compiler_wl='-Wl,'
7802 if test "$host_cpu" = ia64; then
7803 # AIX 5 now supports IA64 processor
7804 lt_prog_compiler_static='-Bstatic'
7806 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7810 # PIC is the default on this platform
7811 # Common symbols not allowed in MH_DYLIB files
7812 case $cc_basename in
7814 lt_prog_compiler_pic='-qnocommon'
7815 lt_prog_compiler_wl='-Wl,'
7820 mingw* | pw32* | os2*)
7821 # This hack is so that the source file can tell whether it is being
7822 # built for inclusion in a dll (and should export symbols for example).
7823 lt_prog_compiler_pic='-DDLL_EXPORT'
7826 hpux9* | hpux10* | hpux11*)
7827 lt_prog_compiler_wl='-Wl,'
7828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7835 lt_prog_compiler_pic='+Z'
7838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7839 lt_prog_compiler_static='${wl}-a ${wl}archive'
7842 irix5* | irix6* | nonstopux*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC (with -KPIC) is the default.
7845 lt_prog_compiler_static='-non_shared'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7854 case $cc_basename in
7856 lt_prog_compiler_wl='-Wl,'
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-static'
7860 pgcc* | pgf77* | pgf90* | pgf95*)
7861 # Portland Group compilers (*not* the Pentium gcc compiler,
7862 # which looks to be a dead project)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-fpic'
7865 lt_prog_compiler_static='-Bstatic'
7868 lt_prog_compiler_wl='-Wl,'
7869 # All Alpha code is PIC.
7870 lt_prog_compiler_static='-non_shared'
7875 osf3* | osf4* | osf5*)
7876 lt_prog_compiler_wl='-Wl,'
7877 # All OSF/1 code is PIC.
7878 lt_prog_compiler_static='-non_shared'
7882 lt_prog_compiler_pic='-Kpic'
7883 lt_prog_compiler_static='-dn'
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7889 case $cc_basename in
7891 lt_prog_compiler_wl='-Qoption ld ';;
7893 lt_prog_compiler_wl='-Wl,';;
7898 lt_prog_compiler_wl='-Qoption ld '
7899 lt_prog_compiler_pic='-PIC'
7900 lt_prog_compiler_static='-Bstatic'
7903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_pic='-KPIC'
7906 lt_prog_compiler_static='-Bstatic'
7910 if test -d /usr/nec ;then
7911 lt_prog_compiler_pic='-Kconform_pic'
7912 lt_prog_compiler_static='-Bstatic'
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_can_build_shared=no
7922 lt_prog_compiler_pic='-pic'
7923 lt_prog_compiler_static='-Bstatic'
7927 lt_prog_compiler_can_build_shared=no
7932 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7933 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7936 # Check to make sure the PIC flag actually works.
7938 if test -n "$lt_prog_compiler_pic"; then
7940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7942 if test "${lt_prog_compiler_pic_works+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 lt_prog_compiler_pic_works=no
7946 ac_outfile=conftest.$ac_objext
7947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7948 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 # The option is referenced via a variable to avoid confusing sed.
7954 lt_compile=`echo "$ac_compile" | $SED \
7955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7957 -e 's:$: $lt_compiler_flag:'`
7958 (eval echo "\"\$as_me:7958: $lt_compile\"" >&5)
7959 (eval "$lt_compile" 2>conftest.err)
7961 cat conftest.err >&5
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 if (exit $ac_status) && test -s "$ac_outfile"; then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings other than the usual output.
7966 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7967 $SED '/^$/d' conftest.err >conftest.er2
7968 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7969 lt_prog_compiler_pic_works=yes
7975 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7976 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7978 if test x"$lt_prog_compiler_pic_works" = xyes; then
7979 case $lt_prog_compiler_pic in
7981 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7984 lt_prog_compiler_pic=
7985 lt_prog_compiler_can_build_shared=no
7990 # For platforms which do not support PIC, -DPIC is meaningless:
7992 lt_prog_compiler_pic=
7995 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7999 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 lt_cv_prog_compiler_c_o=no
8005 $rm -r conftest 2>/dev/null
8009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8011 lt_compiler_flag="-o out/conftest2.$ac_objext"
8012 # Insert the option either (1) after the last *FLAGS variable, or
8013 # (2) before a word containing "conftest.", or (3) at the end.
8014 # Note that $ac_compile itself does not contain backslashes and begins
8015 # with a dollar sign (not a hyphen), so the echo should work correctly.
8016 lt_compile=`echo "$ac_compile" | $SED \
8017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019 -e 's:$: $lt_compiler_flag:'`
8020 (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021 (eval "$lt_compile" 2>out/conftest.err)
8023 cat out/conftest.err >&5
8024 echo "$as_me:8024: \$? = $ac_status" >&5
8025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8027 # The compiler can only warn and ignore the option if not recognized
8028 # So say no if there are warnings
8029 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8030 $SED '/^$/d' out/conftest.err >out/conftest.er2
8031 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8032 lt_cv_prog_compiler_c_o=yes
8037 # SGI C++ compiler will create directory out/ii_files/ for
8038 # template instantiation
8039 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8040 $rm out/* && rmdir out
8046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8050 hard_links="nottested"
8051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8052 # do not overwrite the value of need_locks provided by the user
8053 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8059 ln conftest.a conftest.b 2>&5 || hard_links=no
8060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8061 echo "$as_me:$LINENO: result: $hard_links" >&5
8062 echo "${ECHO_T}$hard_links" >&6
8063 if test "$hard_links" = no; then
8064 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8072 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8076 allow_undefined_flag=
8077 enable_shared_with_static_runtimes=no
8079 archive_expsym_cmds=
8080 old_archive_From_new_cmds=
8081 old_archive_from_expsyms_cmds=
8082 export_dynamic_flag_spec=
8083 whole_archive_flag_spec=
8084 thread_safe_flag_spec=
8085 hardcode_libdir_flag_spec=
8086 hardcode_libdir_flag_spec_ld=
8087 hardcode_libdir_separator=
8090 hardcode_shlibpath_var=unsupported
8091 link_all_deplibs=unknown
8092 hardcode_automatic=no
8095 always_export_symbols=no
8096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8097 # include_expsyms should be a list of space-separated symbols to be *always*
8098 # included in the symbol list
8100 # exclude_expsyms can be an extended regexp of symbols to exclude
8101 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8103 # as well as any symbol that contains `d'.
8104 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8106 # platforms (ab)use it in PIC code, but their linkers get confused if
8107 # the symbol is explicitly referenced. Since portable code cannot
8108 # rely on this symbol name, it's probably fine to never include it in
8109 # preloaded symbol tables.
8110 extract_expsyms_cmds=
8111 # Just being paranoid about ensuring that cc_basename is set.
8112 for cc_temp in $compiler""; do
8114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8123 cygwin* | mingw* | pw32*)
8124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125 # When not using gcc, we currently assume that we are using
8126 # Microsoft Visual C++.
8127 if test "$GCC" != yes; then
8137 if test "$with_gnu_ld" = yes; then
8138 # If archive_cmds runs LD, not CC, wlarc should be empty
8141 # Set some defaults for GNU ld with shared library support. These
8142 # are reset later if shared libraries are not supported. Putting them
8143 # here allows them to be overridden if necessary.
8144 runpath_var=LD_RUN_PATH
8145 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8146 export_dynamic_flag_spec='${wl}--export-dynamic'
8147 # ancient GNU ld didn't support --whole-archive et. al.
8148 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8149 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8151 whole_archive_flag_spec=
8153 supports_anon_versioning=no
8154 case `$LD -v 2>/dev/null` in
8155 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8156 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8157 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8158 *\ 2.11.*) ;; # other 2.11 versions
8159 *) supports_anon_versioning=yes ;;
8162 # See if GNU ld supports shared libraries.
8164 aix3* | aix4* | aix5*)
8165 # On AIX/PPC, the GNU linker is very broken
8166 if test "$host_cpu" != ia64; then
8170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8171 *** to be unable to reliably create shared libraries on AIX.
8172 *** Therefore, libtool is disabling shared libraries support. If you
8173 *** really care for shared libraries, you may want to modify your PATH
8174 *** so that a non-GNU linker is found, and then restart.
8181 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)'
8182 hardcode_libdir_flag_spec='-L$libdir'
8183 hardcode_minus_L=yes
8185 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8186 # that the semantics of dynamic libraries on AmigaOS, at least up
8187 # to version 4, is to share data among multiple programs linked
8188 # with the same dynamic library. Since this doesn't match the
8189 # behavior of shared libraries on other platforms, we can't use
8195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8196 allow_undefined_flag=unsupported
8197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8198 # support --undefined. This deserves some investigation. FIXME
8199 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205 cygwin* | mingw* | pw32*)
8206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8207 # as there is no search path for DLLs.
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 allow_undefined_flag=unsupported
8210 always_export_symbols=no
8211 enable_shared_with_static_runtimes=yes
8212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8214 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8216 # If the export-symbols file already is a .def file (1st line
8217 # is EXPORTS), use it as is; otherwise, prepend...
8218 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8219 cp $export_symbols $output_objdir/$soname.def;
8221 echo EXPORTS > $output_objdir/$soname.def;
8222 cat $export_symbols >> $output_objdir/$soname.def;
8224 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8233 case $cc_basename,$host_cpu in
8234 pgcc*) # Portland Group C compiler
8235 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'
8236 tmp_addflag=' $pic_flag'
8238 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8239 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'
8240 tmp_addflag=' $pic_flag -Mnomain' ;;
8241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8242 tmp_addflag=' -i_dynamic' ;;
8243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8244 tmp_addflag=' -i_dynamic -nofor_main' ;;
8245 ifc* | ifort*) # Intel Fortran compiler
8246 tmp_addflag=' -nofor_main' ;;
8248 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250 if test $supports_anon_versioning = yes; then
8251 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8253 $echo "local: *; };" >> $output_objdir/$libname.ver~
8254 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8272 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8277 *** create shared libraries on Solaris systems. Therefore, libtool
8278 *** is disabling shared libraries support. We urge you to upgrade GNU
8279 *** binutils to release 2.9.1 or newer. Another option is to modify
8280 *** your PATH or compiler configuration so that the native linker is
8281 *** used, and then restart.
8284 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8293 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8296 hardcode_shlibpath_var=no
8300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309 if test "$ld_shlibs" = no; then
8311 hardcode_libdir_flag_spec=
8312 export_dynamic_flag_spec=
8313 whole_archive_flag_spec=
8316 # PORTME fill in a description of your system's linker (not GNU ld)
8319 allow_undefined_flag=unsupported
8320 always_export_symbols=yes
8321 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'
8322 # Note: this linker hardcodes the directories in LIBPATH if there
8323 # are no directories specified by -L.
8324 hardcode_minus_L=yes
8325 if test "$GCC" = yes && test -z "$link_static_flag"; then
8326 # Neither direct hardcoding nor static linking is supported with a
8328 hardcode_direct=unsupported
8333 if test "$host_cpu" = ia64; then
8334 # On IA64, the linker does run time linking by default, so we don't
8335 # have to do anything special.
8336 aix_use_runtimelinking=no
8337 exp_sym_flag='-Bexport'
8340 # If we're using GNU nm, then we don't want the "-C" option.
8341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8343 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'
8345 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'
8347 aix_use_runtimelinking=no
8349 # Test if we are trying to use run time linking or normal
8350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8351 # need to do runtime linking.
8352 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8353 for ld_flag in $LDFLAGS; do
8354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8355 aix_use_runtimelinking=yes
8361 exp_sym_flag='-bexport'
8362 no_entry_flag='-bnoentry'
8365 # When large executables or shared objects are built, AIX ld can
8366 # have problems creating the table of contents. If linking a library
8367 # or program results in "error TOC overflow" add -mminimal-toc to
8368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8373 hardcode_libdir_separator=':'
8374 link_all_deplibs=yes
8376 if test "$GCC" = yes; then
8377 case $host_os in aix4.[012]|aix4.[012].*)
8378 # We only want to do this on AIX 4.2 and lower, the check
8379 # below for broken collect2 doesn't work under 4.3+
8380 collect2name=`${CC} -print-prog-name=collect2`
8381 if test -f "$collect2name" && \
8382 strings "$collect2name" | grep resolve_lib_name >/dev/null
8384 # We have reworked collect2
8387 # We have old collect2
8388 hardcode_direct=unsupported
8389 # It fails to find uninstalled libraries when the uninstalled
8390 # path is not listed in the libpath. Setting hardcode_minus_L
8391 # to unsupported forces relinking
8392 hardcode_minus_L=yes
8393 hardcode_libdir_flag_spec='-L$libdir'
8394 hardcode_libdir_separator=
8397 shared_flag='-shared'
8398 if test "$aix_use_runtimelinking" = yes; then
8399 shared_flag="$shared_flag "'${wl}-G'
8403 if test "$host_cpu" = ia64; then
8404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8405 # chokes on -Wl,-G. The following line is correct:
8408 if test "$aix_use_runtimelinking" = yes; then
8409 shared_flag='${wl}-G'
8411 shared_flag='${wl}-bM:SRE'
8416 # It seems that -bexpall does not export symbols beginning with
8417 # underscore (_), so it is better to generate a list of symbols to export.
8418 always_export_symbols=yes
8419 if test "$aix_use_runtimelinking" = yes; then
8420 # Warning - without using the other runtime loading flags (-brtl),
8421 # -berok will link without error, but may produce a broken library.
8422 allow_undefined_flag='-berok'
8423 # Determine the default libpath from the value encoded in an empty executable.
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8464 # Check for a 64-bit object if we didn't find anything.
8465 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; }
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8472 rm -f conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8476 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8477 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"
8479 if test "$host_cpu" = ia64; then
8480 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8481 allow_undefined_flag="-z nodefs"
8482 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"
8484 # Determine the default libpath from the value encoded in an empty executable.
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502 (eval $ac_link) 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -z "$ac_c_werror_flag"
8510 || test ! -s conftest.err'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8525 # Check for a 64-bit object if we didn't find anything.
8526 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; }
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8533 rm -f conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8537 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8538 # Warning - without using the other run time loading flags,
8539 # -berok will link without error, but may produce a broken library.
8540 no_undefined_flag=' ${wl}-bernotok'
8541 allow_undefined_flag=' ${wl}-berok'
8542 # -bexpall does not export symbols beginning with underscore (_)
8543 always_export_symbols=yes
8544 # Exported symbols can be pulled into shared objects from archives
8545 whole_archive_flag_spec=' '
8546 archive_cmds_need_lc=yes
8547 # This is similar to how AIX traditionally builds its shared libraries.
8548 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'
8554 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)'
8555 hardcode_libdir_flag_spec='-L$libdir'
8556 hardcode_minus_L=yes
8557 # see comment about different semantics on the GNU ld section
8562 export_dynamic_flag_spec=-rdynamic
8565 cygwin* | mingw* | pw32*)
8566 # When not using gcc, we currently assume that we are using
8567 # Microsoft Visual C++.
8568 # hardcode_libdir_flag_spec is actually meaningless, as there is
8569 # no search path for DLLs.
8570 hardcode_libdir_flag_spec=' '
8571 allow_undefined_flag=unsupported
8572 # Tell ltmain to make .lib files, not .a files.
8574 # Tell ltmain to make .dll files, not .so files.
8576 # FIXME: Setting linknames here is a bad hack.
8577 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8578 # The linker will automatically build a .lib file if we build a DLL.
8579 old_archive_From_new_cmds='true'
8580 # FIXME: Should let the user specify the lib program.
8581 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8582 fix_srcfile_path='`cygpath -w "$srcfile"`'
8583 enable_shared_with_static_runtimes=yes
8586 darwin* | rhapsody*)
8588 rhapsody* | darwin1.[012])
8589 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8592 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8593 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8595 case ${MACOSX_DEPLOYMENT_TARGET} in
8597 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8606 archive_cmds_need_lc=no
8608 hardcode_automatic=yes
8609 hardcode_shlibpath_var=unsupported
8610 whole_archive_flag_spec=''
8611 link_all_deplibs=yes
8612 if test "$GCC" = yes ; then
8613 output_verbose_link_cmd='echo'
8614 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8615 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8616 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8617 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}'
8618 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}'
8620 case $cc_basename in
8622 output_verbose_link_cmd='echo'
8623 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8624 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8626 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}'
8627 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}'
8637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 hardcode_shlibpath_var=no
8646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8647 # support. Future versions do this automatically, but an explicit c++rt0.o
8648 # does not break anything, and helps significantly (at the cost of a little
8651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8652 hardcode_libdir_flag_spec='-R$libdir'
8654 hardcode_shlibpath_var=no
8657 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_minus_L=yes
8662 hardcode_shlibpath_var=no
8665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8666 freebsd* | kfreebsd*-gnu | dragonfly*)
8667 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8668 hardcode_libdir_flag_spec='-R$libdir'
8670 hardcode_shlibpath_var=no
8674 if test "$GCC" = yes; then
8675 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'
8677 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'
8679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8680 hardcode_libdir_separator=:
8683 # hardcode_minus_L: Not really in the search PATH,
8684 # but as the default location of the library.
8685 hardcode_minus_L=yes
8686 export_dynamic_flag_spec='${wl}-E'
8690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8702 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8709 if test "$with_gnu_ld" = no; then
8712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713 hardcode_libdir_flag_spec_ld='+b $libdir'
8714 hardcode_libdir_separator=:
8716 hardcode_shlibpath_var=no
8719 hardcode_libdir_flag_spec='-L$libdir'
8721 hardcode_shlibpath_var=no
8723 # hardcode_minus_L: Not really in the search PATH,
8724 # but as the default location of the library.
8725 hardcode_minus_L=yes
8728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729 hardcode_libdir_separator=:
8731 export_dynamic_flag_spec='${wl}-E'
8733 # hardcode_minus_L: Not really in the search PATH,
8734 # but as the default location of the library.
8735 hardcode_minus_L=yes
8741 irix5* | irix6* | nonstopux*)
8742 if test "$GCC" = yes; then
8743 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'
8745 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'
8746 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749 hardcode_libdir_separator=:
8750 link_all_deplibs=yes
8754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8759 hardcode_libdir_flag_spec='-R$libdir'
8761 hardcode_shlibpath_var=no
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 hardcode_libdir_separator=:
8769 hardcode_shlibpath_var=no
8774 hardcode_shlibpath_var=no
8775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8779 export_dynamic_flag_spec='${wl}-E'
8782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_libdir_flag_spec='-R$libdir'
8787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_minus_L=yes
8797 allow_undefined_flag=unsupported
8798 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'
8799 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8803 if test "$GCC" = yes; then
8804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805 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'
8807 allow_undefined_flag=' -expect_unresolved \*'
8808 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'
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 hardcode_libdir_separator=:
8814 osf4* | osf5*) # as osf3* with the addition of -msym flag
8815 if test "$GCC" = yes; then
8816 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8817 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'
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820 allow_undefined_flag=' -expect_unresolved \*'
8821 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'
8822 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8823 $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'
8825 # Both c and cxx compiler support -rpath directly
8826 hardcode_libdir_flag_spec='-rpath $libdir'
8828 hardcode_libdir_separator=:
8832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833 hardcode_shlibpath_var=no
8834 export_dynamic_flag_spec='${wl}-Bexport'
8835 runpath_var=LD_RUN_PATH
8836 hardcode_runpath_var=yes
8840 no_undefined_flag=' -z text'
8841 if test "$GCC" = yes; then
8843 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8845 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8848 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8852 hardcode_libdir_flag_spec='-R$libdir'
8853 hardcode_shlibpath_var=no
8855 solaris2.[0-5] | solaris2.[0-5].*) ;;
8857 # The compiler driver will combine linker options so we
8858 # cannot just pass the convience library names through
8859 # without $wl, iff we do not link with $LD.
8860 # Luckily, gcc supports the same syntax we need for Sun Studio.
8861 # Supported since Solaris 2.6 (maybe 2.5.1?)
8864 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8866 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' ;;
8869 link_all_deplibs=yes
8873 if test "x$host_vendor" = xsequent; then
8874 # Use $CC to link under sequent, because it throws in some extra .o
8875 # files that make .init and .fini sections work.
8876 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8878 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8880 hardcode_libdir_flag_spec='-L$libdir'
8882 hardcode_minus_L=yes
8883 hardcode_shlibpath_var=no
8887 case $host_vendor in
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_direct=yes # is this really true???
8893 ## LD is ld it makes a PLAMLIB
8894 ## CC just makes a GrossModule.
8895 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8896 reload_cmds='$CC -r -o $output$reload_objs'
8900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8904 runpath_var='LD_RUN_PATH'
8905 hardcode_shlibpath_var=no
8909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8910 hardcode_shlibpath_var=no
8911 export_dynamic_flag_spec='-Bexport'
8915 if test -d /usr/nec; then
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_shlibpath_var=no
8918 runpath_var=LD_RUN_PATH
8919 hardcode_runpath_var=yes
8925 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_shlibpath_var=no
8929 hardcode_runpath_var=yes
8930 runpath_var=LD_RUN_PATH
8933 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8934 no_undefined_flag='${wl}-z ${wl}text'
8935 if test "$GCC" = yes; then
8936 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8938 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 runpath_var='LD_RUN_PATH'
8941 hardcode_shlibpath_var=no
8945 no_undefined_flag=' -z text'
8946 # $CC -shared without GNU ld will not create a library from C++
8947 # object files and a static libstdc++, better avoid it by now
8948 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8950 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8951 hardcode_libdir_flag_spec=
8952 hardcode_shlibpath_var=no
8953 runpath_var='LD_RUN_PATH'
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_libdir_flag_spec='-L$libdir'
8959 hardcode_shlibpath_var=no
8968 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8969 echo "${ECHO_T}$ld_shlibs" >&6
8970 test "$ld_shlibs" = no && can_build_shared=no
8972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8973 if test "$GCC" = yes; then
8974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8978 # Do we need to explicitly link libc?
8980 case "x$archive_cmds_need_lc" in
8982 # Assume -lc should be added
8983 archive_cmds_need_lc=yes
8985 if test "$enable_shared" = yes && test "$GCC" = yes; then
8986 case $archive_cmds in
8988 # FIXME: we may have to deal with multi-command sequences.
8991 # Test whether the compiler implicitly links with -lc since on some
8992 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8993 # to ld, don't add -lc before -lgcc.
8994 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } 2>conftest.err; then
9006 libobjs=conftest.$ac_objext
9008 wl=$lt_prog_compiler_wl
9014 lt_save_allow_undefined_flag=$allow_undefined_flag
9015 allow_undefined_flag=
9016 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }
9022 archive_cmds_need_lc=no
9024 archive_cmds_need_lc=yes
9026 allow_undefined_flag=$lt_save_allow_undefined_flag
9028 cat conftest.err 1>&5
9031 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9039 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9042 libname_spec='lib$name'
9050 shlibpath_overrides_runpath=unknown
9052 dynamic_linker="$host_os ld.so"
9053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9054 if test "$GCC" = yes; then
9055 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9056 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9057 # if the path contains ";" then we assume it to be the separator
9058 # otherwise default to the standard path separator (i.e. ":") - it is
9059 # assumed that no part of a normal pathname contains ";" but that should
9060 # okay in the real world where ";" in dirpaths is itself problematic.
9061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9068 need_lib_prefix=unknown
9069 hardcode_into_libs=no
9071 # when you set need_version to no, make sure it does not cause -set_version
9072 # flags to be left without arguments
9073 need_version=unknown
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9079 shlibpath_var=LIBPATH
9081 # AIX 3 has no versioning support, so we append a major version to the name.
9082 soname_spec='${libname}${release}${shared_ext}$major'
9089 hardcode_into_libs=yes
9090 if test "$host_cpu" = ia64; then
9091 # AIX 5 supports IA64
9092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9093 shlibpath_var=LD_LIBRARY_PATH
9095 # With GCC up to 2.95.x, collect2 would create an import file
9096 # for dependence libraries. The import file would start with
9097 # the line `#! .'. This would cause the generated library to
9098 # depend on `.', always an invalid library. This was fixed in
9099 # development snapshots of GCC prior to 3.0.
9101 aix4 | aix4.[01] | aix4.[01].*)
9102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9104 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9112 # soname into executable. Probably we can add versioning support to
9113 # collect2, so additional links can be useful in future.
9114 if test "$aix_use_runtimelinking" = yes; then
9115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9116 # instead of lib<name>.a to let people know that these are not
9117 # typical AIX shared libraries.
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 # We preserve .a as extension for shared libraries through AIX4.2
9121 # and later when we are not doing run time linking.
9122 library_names_spec='${libname}${release}.a $libname.a'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LIBPATH
9130 library_names_spec='$libname.ixlibrary $libname.a'
9131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9132 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'
9136 library_names_spec='${libname}${shared_ext}'
9137 dynamic_linker="$host_os ld.so"
9138 shlibpath_var=LIBRARY_PATH
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9149 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9150 # the default ld.so.conf also contains /usr/contrib/lib and
9151 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9152 # libtool to hard-code these into programs
9155 cygwin* | mingw* | pw32*)
9156 version_type=windows
9161 case $GCC,$host_os in
9162 yes,cygwin* | yes,mingw* | yes,pw32*)
9163 library_names_spec='$libname.dll.a'
9164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9165 postinstall_cmds='base_file=`basename \${file}`~
9166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9167 dldir=$destdir/`dirname \$dlpath`~
9168 test -d \$dldir || mkdir -p \$dldir~
9169 $install_prog $dir/$dlname \$dldir/$dlname~
9170 chmod a+x \$dldir/$dlname'
9171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9172 dlpath=$dir/\$dldll~
9174 shlibpath_overrides_runpath=yes
9178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9183 # MinGW DLLs use traditional 'lib' prefix
9184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9187 # It is most probably a Windows format PATH printed by
9188 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9189 # path with ; separators, and with drive letters. We can handle the
9190 # drive letters (cygwin fileutils understands them), so leave them,
9191 # especially as we might pass files found there to a mingw objdump,
9192 # which wouldn't understand a cygwinified path. Ahh.
9193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9199 # pw32 DLLs use 'pw' prefix rather than 'lib'
9200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9209 dynamic_linker='Win32 ld.exe'
9210 # FIXME: first we should search . and the directory the executable is in
9214 darwin* | rhapsody*)
9215 dynamic_linker="$host_os dyld"
9219 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9220 soname_spec='${libname}${release}${major}$shared_ext'
9221 shlibpath_overrides_runpath=yes
9222 shlibpath_var=DYLD_LIBRARY_PATH
9223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9224 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9225 if test "$GCC" = yes; then
9226 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"`
9228 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=no
9254 hardcode_into_libs=yes
9255 dynamic_linker='GNU ld.so'
9258 freebsd* | dragonfly*)
9259 # DragonFly does not have aout. When/if they implement a new
9260 # versioning mechanism, adjust this.
9261 if test -x /usr/bin/objformat; then
9262 objformat=`/usr/bin/objformat`
9265 freebsd[123]*) objformat=aout ;;
9269 version_type=freebsd-$objformat
9270 case $version_type in
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9281 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=yes
9286 freebsd3.[01]* | freebsdelf3.[01]*)
9287 shlibpath_overrides_runpath=yes
9288 hardcode_into_libs=yes
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 hardcode_into_libs=yes
9307 hpux9* | hpux10* | hpux11*)
9308 # Give a soname corresponding to the major version so that dld.sl refuses to
9309 # link against other versions.
9316 hardcode_into_libs=yes
9317 dynamic_linker="$host_os dld.so"
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 if test "X$HPUX_IA64_MODE" = X32; then
9323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9331 hardcode_into_libs=yes
9332 dynamic_linker="$host_os dld.sl"
9333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9342 dynamic_linker="$host_os dld.sl"
9343 shlibpath_var=SHLIB_PATH
9344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9349 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9350 postinstall_cmds='chmod 555 $lib'
9353 irix5* | irix6* | nonstopux*)
9355 nonstopux*) version_type=nonstopux ;;
9357 if test "$lt_cv_prog_gnu_ld" = yes; then
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9368 irix5* | nonstopux*)
9372 case $LD in # libtool.m4 will add one of these switches to LD
9373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9374 libsuff= shlibsuff= libmagic=32-bit;;
9375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9376 libsuff=32 shlibsuff=N32 libmagic=N32;;
9377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9379 *) libsuff= shlibsuff= libmagic=never-match;;
9383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9384 shlibpath_overrides_runpath=no
9385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9387 hardcode_into_libs=yes
9390 # No shared lib support for Linux oldld, aout, or coff.
9391 linux*oldld* | linux*aout* | linux*coff*)
9395 # This must be Linux ELF.
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 # This implies no fast_install, which is unacceptable.
9406 # Some rework will be needed to allow for fast_install
9407 # before this can be enabled.
9408 hardcode_into_libs=yes
9410 # Append ld.so.conf contents to the search path
9411 if test -f /etc/ld.so.conf; then
9412 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' ' '`
9413 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9416 # We used to test for /lib/ld.so.1 and disable shared libraries on
9417 # powerpc, because MkLinux only supported shared libraries with the
9418 # GNU dynamic linker. Since this was broken with cross compilers,
9419 # most powerpc-linux boxes support dynamic linking these days and
9420 # people can always --disable-shared, the test was removed, and we
9421 # assume the GNU/Linux dynamic linker is in use.
9422 dynamic_linker='GNU/Linux ld.so'
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=no
9433 hardcode_into_libs=yes
9434 dynamic_linker='GNU ld.so'
9441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444 dynamic_linker='NetBSD (a.out) ld.so'
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 dynamic_linker='NetBSD ld.elf_so'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 shlibpath_overrides_runpath=yes
9452 hardcode_into_libs=yes
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=yes
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=yes
9475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9478 *) need_version=no ;;
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9485 openbsd2.[89] | openbsd2.[89].*)
9486 shlibpath_overrides_runpath=no
9489 shlibpath_overrides_runpath=yes
9493 shlibpath_overrides_runpath=yes
9498 libname_spec='$name'
9501 library_names_spec='$libname${shared_ext} $libname.a'
9502 dynamic_linker='OS/2 ld.exe'
9503 shlibpath_var=LIBPATH
9506 osf3* | osf4* | osf5*)
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 shlibpath_var=LD_LIBRARY_PATH
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 shlibpath_overrides_runpath=yes
9532 hardcode_into_libs=yes
9533 # ldd complains unless libraries are executable
9534 postinstall_cmds='chmod +x $lib'
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=yes
9543 if test "$with_gnu_ld" = yes; then
9549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 case $host_vendor in
9556 shlibpath_overrides_runpath=no
9558 export_dynamic_flag_spec='${wl}-Blargedynsym'
9559 runpath_var=LD_RUN_PATH
9567 shlibpath_overrides_runpath=no
9568 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9574 if test -d /usr/nec ;then
9576 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9577 soname_spec='$libname${shared_ext}.$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 shlibpath_var=LD_LIBRARY_PATH
9593 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9594 echo "${ECHO_T}$dynamic_linker" >&6
9595 test "$dynamic_linker" = no && can_build_shared=no
9597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601 test -n "$runpath_var" || \
9602 test "X$hardcode_automatic" = "Xyes" ; then
9604 # We can hardcode non-existant directories.
9605 if test "$hardcode_direct" != no &&
9606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607 # have to relink, otherwise we might link with an installed library
9608 # when we should be linking with a yet-to-be-installed one
9609 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610 test "$hardcode_minus_L" != no; then
9611 # Linking always hardcodes the temporary library directory.
9612 hardcode_action=relink
9614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615 hardcode_action=immediate
9618 # We cannot hardcode anything, or else we can only hardcode existing
9620 hardcode_action=unsupported
9622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9623 echo "${ECHO_T}$hardcode_action" >&6
9625 if test "$hardcode_action" = relink; then
9626 # Fast installation is not supported
9627 enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629 test "$enable_shared" = no; then
9630 # Fast installation is not necessary
9631 enable_fast_install=needless
9636 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641 echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6
9644 # FIXME - insert some real tests, host_os isn't really good enough
9647 if test -n "$STRIP" ; then
9648 striplib="$STRIP -x"
9649 echo "$as_me:$LINENO: result: yes" >&5
9650 echo "${ECHO_T}yes" >&6
9652 echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6
9657 echo "$as_me:$LINENO: result: no" >&5
9658 echo "${ECHO_T}no" >&6
9663 if test "x$enable_dlopen" != xyes; then
9664 enable_dlopen=unknown
9665 enable_dlopen_self=unknown
9666 enable_dlopen_self_static=unknown
9673 lt_cv_dlopen="load_add_on"
9675 lt_cv_dlopen_self=yes
9679 lt_cv_dlopen="LoadLibrary"
9684 lt_cv_dlopen="dlopen"
9689 # if libdl is installed we need to link against it
9690 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 ac_check_lib_save_LIBS=$LIBS
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9704 /* Override any gcc2 internal prototype to avoid an error. */
9708 /* We use char because int might match the return type of a gcc2
9709 builtin and then its argument prototype would still apply. */
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721 (eval $ac_link) 2>conftest.er1
9723 grep -v '^ *+' conftest.er1 >conftest.err
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try='test -z "$ac_c_werror_flag"
9729 || test ! -s conftest.err'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_lib_dl_dlopen=yes
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 ac_cv_lib_dl_dlopen=no
9748 rm -f conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9752 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9753 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9754 if test $ac_cv_lib_dl_dlopen = yes; then
9755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9760 lt_cv_dlopen_self=yes
9767 echo "$as_me:$LINENO: checking for shl_load" >&5
9768 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9769 if test "${ac_cv_func_shl_load+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9780 #define shl_load innocuous_shl_load
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char shl_load (); below.
9784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785 <limits.h> exists even on freestanding compilers. */
9788 # include <limits.h>
9790 # include <assert.h>
9795 /* Override any gcc2 internal prototype to avoid an error. */
9800 /* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9803 /* The GNU C library defines this for functions which it implements
9804 to always fail with ENOSYS. Some functions are actually named
9805 something starting with __ and the normal name is an alias. */
9806 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9809 char (*f) () = shl_load;
9818 return f != shl_load;
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag"
9833 || test ! -s conftest.err'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_func_shl_load=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_cv_func_shl_load=no
9852 rm -f conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9857 if test $ac_cv_func_shl_load = yes; then
9858 lt_cv_dlopen="shl_load"
9860 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 ac_check_lib_save_LIBS=$LIBS
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 /* Override any gcc2 internal prototype to avoid an error. */
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_lib_dld_shl_load=yes
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 ac_cv_lib_dld_shl_load=no
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9923 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9924 if test $ac_cv_lib_dld_shl_load = yes; then
9925 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9927 echo "$as_me:$LINENO: checking for dlopen" >&5
9928 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9929 if test "${ac_cv_func_dlopen+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9940 #define dlopen innocuous_dlopen
9942 /* System header to define __stub macros and hopefully few prototypes,
9943 which can conflict with char dlopen (); below.
9944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945 <limits.h> exists even on freestanding compilers. */
9948 # include <limits.h>
9950 # include <assert.h>
9955 /* Override any gcc2 internal prototype to avoid an error. */
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9963 /* The GNU C library defines this for functions which it implements
9964 to always fail with ENOSYS. Some functions are actually named
9965 something starting with __ and the normal name is an alias. */
9966 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9969 char (*f) () = dlopen;
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_c_werror_flag"
9993 || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest$ac_exeext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_func_dlopen=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_func_dlopen=no
10012 rm -f conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10015 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10016 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10017 if test $ac_cv_func_dlopen = yes; then
10018 lt_cv_dlopen="dlopen"
10020 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest$ac_exeext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_lib_dl_dlopen=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_lib_dl_dlopen=no
10078 rm -f conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10082 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10084 if test $ac_cv_lib_dl_dlopen = yes; then
10085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10087 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lsvld $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10101 /* Override any gcc2 internal prototype to avoid an error. */
10105 /* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>conftest.er1
10120 grep -v '^ *+' conftest.er1 >conftest.err
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag"
10126 || test ! -s conftest.err'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest$ac_exeext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_cv_lib_svld_dlopen=yes
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_cv_lib_svld_dlopen=no
10145 rm -f conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10149 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10150 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10151 if test $ac_cv_lib_svld_dlopen = yes; then
10152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10154 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10155 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10156 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 ac_check_lib_save_LIBS=$LIBS
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10168 /* Override any gcc2 internal prototype to avoid an error. */
10172 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_lib_dld_dld_link=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_lib_dld_dld_link=no
10212 rm -f conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10218 if test $ac_cv_lib_dld_dld_link = yes; then
10219 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10240 if test "x$lt_cv_dlopen" != xno; then
10246 case $lt_cv_dlopen in
10248 save_CPPFLAGS="$CPPFLAGS"
10249 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10251 save_LDFLAGS="$LDFLAGS"
10252 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10255 LIBS="$lt_cv_dlopen_libs $LIBS"
10257 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10258 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10259 if test "${lt_cv_dlopen_self+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 if test "$cross_compiling" = yes; then :
10263 lt_cv_dlopen_self=cross
10265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10266 lt_status=$lt_dlunknown
10267 cat > conftest.$ac_ext <<EOF
10268 #line 10268 "configure"
10269 #include "confdefs.h"
10278 # define LT_DLGLOBAL RTLD_GLOBAL
10281 # define LT_DLGLOBAL DL_GLOBAL
10283 # define LT_DLGLOBAL 0
10287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10288 find out it does not work in some platform. */
10289 #ifndef LT_DLLAZY_OR_NOW
10291 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10294 # define LT_DLLAZY_OR_NOW DL_LAZY
10297 # define LT_DLLAZY_OR_NOW RTLD_NOW
10300 # define LT_DLLAZY_OR_NOW DL_NOW
10302 # define LT_DLLAZY_OR_NOW 0
10310 extern "C" void exit (int);
10313 void fnord() { int i=42;}
10316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10317 int status = $lt_dlunknown;
10321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10322 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10323 /* dlclose (self); */
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330 (eval $ac_link) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10334 (./conftest; exit; ) >&5 2>/dev/null
10336 case x$lt_status in
10337 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10338 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10339 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10342 # compilation failed
10343 lt_cv_dlopen_self=no
10350 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10351 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10353 if test "x$lt_cv_dlopen_self" = xyes; then
10354 LDFLAGS="$LDFLAGS $link_static_flag"
10355 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10356 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10357 if test "${lt_cv_dlopen_self_static+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 if test "$cross_compiling" = yes; then :
10361 lt_cv_dlopen_self_static=cross
10363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10364 lt_status=$lt_dlunknown
10365 cat > conftest.$ac_ext <<EOF
10366 #line 10366 "configure"
10367 #include "confdefs.h"
10376 # define LT_DLGLOBAL RTLD_GLOBAL
10379 # define LT_DLGLOBAL DL_GLOBAL
10381 # define LT_DLGLOBAL 0
10385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10386 find out it does not work in some platform. */
10387 #ifndef LT_DLLAZY_OR_NOW
10389 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10392 # define LT_DLLAZY_OR_NOW DL_LAZY
10395 # define LT_DLLAZY_OR_NOW RTLD_NOW
10398 # define LT_DLLAZY_OR_NOW DL_NOW
10400 # define LT_DLLAZY_OR_NOW 0
10408 extern "C" void exit (int);
10411 void fnord() { int i=42;}
10414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10415 int status = $lt_dlunknown;
10419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10420 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10421 /* dlclose (self); */
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432 (./conftest; exit; ) >&5 2>/dev/null
10434 case x$lt_status in
10435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10437 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10440 # compilation failed
10441 lt_cv_dlopen_self_static=no
10448 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10449 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10452 CPPFLAGS="$save_CPPFLAGS"
10453 LDFLAGS="$save_LDFLAGS"
10458 case $lt_cv_dlopen_self in
10459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10460 *) enable_dlopen_self=unknown ;;
10463 case $lt_cv_dlopen_self_static in
10464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10465 *) enable_dlopen_self_static=unknown ;;
10470 # Report which librarie types wil actually be built
10471 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10472 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10473 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10474 echo "${ECHO_T}$can_build_shared" >&6
10476 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10477 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10478 test "$can_build_shared" = "no" && enable_shared=no
10480 # On AIX, shared libraries and static libraries use the same namespace, and
10481 # are all built from PIC.
10484 test "$enable_shared" = yes && enable_static=no
10485 if test -n "$RANLIB"; then
10486 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10487 postinstall_cmds='$RANLIB $lib'
10492 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10493 test "$enable_shared" = yes && enable_static=no
10497 echo "$as_me:$LINENO: result: $enable_shared" >&5
10498 echo "${ECHO_T}$enable_shared" >&6
10500 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10501 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10502 # Make sure either enable_shared or enable_static is yes.
10503 test "$enable_shared" = yes || enable_static=yes
10504 echo "$as_me:$LINENO: result: $enable_static" >&5
10505 echo "${ECHO_T}$enable_static" >&6
10507 # The else clause should only fire when bootstrapping the
10508 # libtool distribution, otherwise you forgot to ship ltmain.sh
10509 # with your package, and you will get complaints that there are
10510 # no rules to generate ltmain.sh.
10511 if test -f "$ltmain"; then
10512 # See if we are running on zsh, and set the options which allow our commands through
10513 # without removal of \ escapes.
10514 if test -n "${ZSH_VERSION+set}" ; then
10515 setopt NO_GLOB_SUBST
10517 # Now quote all the things that may contain metacharacters while being
10518 # careful not to overquote the AC_SUBSTed values. We take copies of the
10519 # variables and quote the copies for generation of the libtool script.
10520 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10522 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10523 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10524 deplibs_check_method reload_flag reload_cmds need_locks \
10525 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10526 lt_cv_sys_global_symbol_to_c_name_address \
10527 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10528 old_postinstall_cmds old_postuninstall_cmds \
10532 lt_prog_compiler_wl \
10533 lt_prog_compiler_pic \
10534 lt_prog_compiler_static \
10535 lt_prog_compiler_no_builtin_flag \
10536 export_dynamic_flag_spec \
10537 thread_safe_flag_spec \
10538 whole_archive_flag_spec \
10539 enable_shared_with_static_runtimes \
10541 old_archive_from_new_cmds \
10546 compiler_lib_search_path \
10548 archive_expsym_cmds \
10550 postuninstall_cmds \
10551 old_archive_from_expsyms_cmds \
10552 allow_undefined_flag \
10553 no_undefined_flag \
10554 export_symbols_cmds \
10555 hardcode_libdir_flag_spec \
10556 hardcode_libdir_flag_spec_ld \
10557 hardcode_libdir_separator \
10558 hardcode_automatic \
10560 module_expsym_cmds \
10561 lt_cv_prog_compiler_c_o \
10563 include_expsyms; do
10566 old_archive_cmds | \
10567 old_archive_from_new_cmds | \
10569 archive_expsym_cmds | \
10571 module_expsym_cmds | \
10572 old_archive_from_expsyms_cmds | \
10573 export_symbols_cmds | \
10574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10575 postinstall_cmds | postuninstall_cmds | \
10576 old_postinstall_cmds | old_postuninstall_cmds | \
10577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10578 # Double-quote double-evaled strings.
10579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10588 *'\$0 --fallback-echo"')
10589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10593 cfgfile="${ofile}T"
10594 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10596 { echo "$as_me:$LINENO: creating $ofile" >&5
10597 echo "$as_me: creating $ofile" >&6;}
10599 cat <<__EOF__ >> "$cfgfile"
10602 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10603 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10607 # Free Software Foundation, Inc.
10609 # This file is part of GNU Libtool:
10610 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10612 # This program is free software; you can redistribute it and/or modify
10613 # it under the terms of the GNU General Public License as published by
10614 # the Free Software Foundation; either version 2 of the License, or
10615 # (at your option) any later version.
10617 # This program is distributed in the hope that it will be useful, but
10618 # WITHOUT ANY WARRANTY; without even the implied warranty of
10619 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10620 # General Public License for more details.
10622 # You should have received a copy of the GNU General Public License
10623 # along with this program; if not, write to the Free Software
10624 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10626 # As a special exception to the GNU General Public License, if you
10627 # distribute this file as part of a program that contains a
10628 # configuration script generated by Autoconf, you may include it under
10629 # the same distribution terms that you use for the rest of that program.
10631 # A sed program that does not truncate output.
10634 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10635 Xsed="$SED -e 1s/^X//"
10637 # The HP-UX ksh and POSIX shell print the target directory to stdout
10638 # if CDPATH is set.
10639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10641 # The names of the tagged configurations supported by this script.
10644 # ### BEGIN LIBTOOL CONFIG
10646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10648 # Shell to use when invoking shell scripts.
10651 # Whether or not to build shared libraries.
10652 build_libtool_libs=$enable_shared
10654 # Whether or not to build static libraries.
10655 build_old_libs=$enable_static
10657 # Whether or not to add -lc for building shared libraries.
10658 build_libtool_need_lc=$archive_cmds_need_lc
10660 # Whether or not to disallow shared libs when runtime libs are static
10661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10663 # Whether or not to optimize for fast installation.
10664 fast_install=$enable_fast_install
10667 host_alias=$host_alias
10671 # The build system.
10672 build_alias=$build_alias
10676 # An echo program that does not interpret backslashes.
10681 AR_FLAGS=$lt_AR_FLAGS
10686 # A language-specific compiler.
10689 # Is the compiler the GNU C compiler?
10695 # The linker used to build libraries.
10698 # Whether we need hard or soft links.
10701 # A BSD-compatible nm program.
10704 # A symbol stripping program
10707 # Used to examine libraries when file_magic_cmd begins "file"
10708 MAGIC_CMD=$MAGIC_CMD
10710 # Used on cygwin: DLL creation program.
10713 # Used on cygwin: object dumper.
10716 # Used on cygwin: assembler.
10719 # The name of the directory that contains temporary libtool files.
10722 # How to create reloadable object files.
10723 reload_flag=$lt_reload_flag
10724 reload_cmds=$lt_reload_cmds
10726 # How to pass a linker flag through the compiler.
10727 wl=$lt_lt_prog_compiler_wl
10729 # Object file suffix (normally "o").
10730 objext="$ac_objext"
10732 # Old archive suffix (normally "a").
10735 # Shared library suffix (normally ".so").
10736 shrext_cmds='$shrext_cmds'
10738 # Executable file suffix (normally "").
10741 # Additional compiler flags for building library objects.
10742 pic_flag=$lt_lt_prog_compiler_pic
10745 # What is the maximum length of a command?
10746 max_cmd_len=$lt_cv_sys_max_cmd_len
10748 # Does compiler simultaneously support -c and -o options?
10749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10751 # Must we lock files when doing compilation?
10752 need_locks=$lt_need_locks
10754 # Do we need the lib prefix for modules?
10755 need_lib_prefix=$need_lib_prefix
10757 # Do we need a version for libraries?
10758 need_version=$need_version
10760 # Whether dlopen is supported.
10761 dlopen_support=$enable_dlopen
10763 # Whether dlopen of programs is supported.
10764 dlopen_self=$enable_dlopen_self
10766 # Whether dlopen of statically linked programs is supported.
10767 dlopen_self_static=$enable_dlopen_self_static
10769 # Compiler flag to prevent dynamic linking.
10770 link_static_flag=$lt_lt_prog_compiler_static
10772 # Compiler flag to turn off builtin functions.
10773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10775 # Compiler flag to allow reflexive dlopens.
10776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10778 # Compiler flag to generate shared objects directly from archives.
10779 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10781 # Compiler flag to generate thread-safe objects.
10782 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10784 # Library versioning type.
10785 version_type=$version_type
10787 # Format of library name prefix.
10788 libname_spec=$lt_libname_spec
10790 # List of archive names. First name is the real one, the rest are links.
10791 # The last name is the one that the linker finds with -lNAME.
10792 library_names_spec=$lt_library_names_spec
10794 # The coded name of the library, if different from the real name.
10795 soname_spec=$lt_soname_spec
10797 # Commands used to build and install an old-style archive.
10799 old_archive_cmds=$lt_old_archive_cmds
10800 old_postinstall_cmds=$lt_old_postinstall_cmds
10801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10803 # Create an old-style archive from a shared archive.
10804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10806 # Create a temporary old-style archive to link instead of a shared archive.
10807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10809 # Commands used to build and install a shared archive.
10810 archive_cmds=$lt_archive_cmds
10811 archive_expsym_cmds=$lt_archive_expsym_cmds
10812 postinstall_cmds=$lt_postinstall_cmds
10813 postuninstall_cmds=$lt_postuninstall_cmds
10815 # Commands used to build a loadable module (assumed same as above if empty)
10816 module_cmds=$lt_module_cmds
10817 module_expsym_cmds=$lt_module_expsym_cmds
10819 # Commands to strip libraries.
10820 old_striplib=$lt_old_striplib
10821 striplib=$lt_striplib
10823 # Dependencies to place before the objects being linked to create a
10825 predep_objects=$lt_predep_objects
10827 # Dependencies to place after the objects being linked to create a
10829 postdep_objects=$lt_postdep_objects
10831 # Dependencies to place before the objects being linked to create a
10833 predeps=$lt_predeps
10835 # Dependencies to place after the objects being linked to create a
10837 postdeps=$lt_postdeps
10839 # The library search path used internally by the compiler when linking
10840 # a shared library.
10841 compiler_lib_search_path=$lt_compiler_lib_search_path
10843 # Method to check whether dependent libraries are shared objects.
10844 deplibs_check_method=$lt_deplibs_check_method
10846 # Command to use when deplibs_check_method == file_magic.
10847 file_magic_cmd=$lt_file_magic_cmd
10849 # Flag that allows shared libraries with undefined symbols to be built.
10850 allow_undefined_flag=$lt_allow_undefined_flag
10852 # Flag that forces no undefined symbols.
10853 no_undefined_flag=$lt_no_undefined_flag
10855 # Commands used to finish a libtool library installation in a directory.
10856 finish_cmds=$lt_finish_cmds
10858 # Same as above, but a single script fragment to be evaled but not shown.
10859 finish_eval=$lt_finish_eval
10861 # Take the output of nm and produce a listing of raw symbols and C names.
10862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10864 # Transform the output of nm in a proper C declaration
10865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10867 # Transform the output of nm in a C name address pair
10868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10870 # This is the shared library runtime path variable.
10871 runpath_var=$runpath_var
10873 # This is the shared library path variable.
10874 shlibpath_var=$shlibpath_var
10876 # Is shlibpath searched before the hard-coded library search path?
10877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10879 # How to hardcode a shared library path into an executable.
10880 hardcode_action=$hardcode_action
10882 # Whether we should hardcode library paths into libraries.
10883 hardcode_into_libs=$hardcode_into_libs
10885 # Flag to hardcode \$libdir into a binary during linking.
10886 # This must work even if \$libdir does not exist.
10887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10889 # If ld is used when linking, flag to hardcode \$libdir into
10890 # a binary during linking. This must work even if \$libdir does
10892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10894 # Whether we need a single -rpath flag with a separated argument.
10895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10898 # resulting binary.
10899 hardcode_direct=$hardcode_direct
10901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10902 # resulting binary.
10903 hardcode_minus_L=$hardcode_minus_L
10905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10906 # the resulting binary.
10907 hardcode_shlibpath_var=$hardcode_shlibpath_var
10909 # Set to yes if building a shared library automatically hardcodes DIR into the library
10910 # and all subsequent libraries and executables linked against it.
10911 hardcode_automatic=$hardcode_automatic
10913 # Variables whose values should be saved in libtool wrapper scripts and
10914 # restored at relink time.
10915 variables_saved_for_relink="$variables_saved_for_relink"
10917 # Whether libtool must link a program against all its dependency libraries.
10918 link_all_deplibs=$link_all_deplibs
10920 # Compile-time system search path for libraries
10921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10923 # Run-time system search path for libraries
10924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10926 # Fix the shell variable \$srcfile for the compiler.
10927 fix_srcfile_path="$fix_srcfile_path"
10929 # Set to yes if exported symbols are required.
10930 always_export_symbols=$always_export_symbols
10932 # The commands to list exported symbols.
10933 export_symbols_cmds=$lt_export_symbols_cmds
10935 # The commands to extract the exported symbol list from a shared archive.
10936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10938 # Symbols that should not be listed in the preloaded symbols.
10939 exclude_expsyms=$lt_exclude_expsyms
10941 # Symbols that must always be exported.
10942 include_expsyms=$lt_include_expsyms
10944 # ### END LIBTOOL CONFIG
10951 cat <<\EOF >> "$cfgfile"
10953 # AIX sometimes has problems with the GCC collect2 program. For some
10954 # reason, if we set the COLLECT_NAMES environment variable, the problems
10955 # vanish in a puff of smoke.
10956 if test "X${COLLECT_NAMES+set}" != Xset; then
10958 export COLLECT_NAMES
10964 # We use sed instead of cat because bash on DJGPP gets confused if
10965 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10966 # text mode, it properly converts lines to CR/LF. This bash problem
10967 # is reportedly fixed, but why not run on old versions too?
10968 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10970 mv -f "$cfgfile" "$ofile" || \
10971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10975 # If there is no Makefile yet, we rely on a make rule to execute
10976 # `config.status --recheck' to rerun these tests and create the
10977 # libtool script then.
10978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10979 if test -f "$ltmain_in"; then
10980 test -f Makefile && make "$ltmain"
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10994 # Check whether --with-tags or --without-tags was given.
10995 if test "${with_tags+set}" = set; then
10996 withval="$with_tags"
10997 tagnames="$withval"
11000 if test -f "$ltmain" && test -n "$tagnames"; then
11001 if test ! -f "${ofile}"; then
11002 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11003 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11006 if test -z "$LTCC"; then
11007 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11008 if test -z "$LTCC"; then
11009 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11010 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11013 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11017 # Extract list of available tagged configurations in $ofile.
11018 # Note that this assumes the entire list is on one line.
11019 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11022 for tagname in $tagnames; do
11024 # Check whether tagname contains only valid characters
11025 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11027 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11028 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11029 { (exit 1); exit 1; }; }
11033 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11035 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11036 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11037 { (exit 1); exit 1; }; }
11040 # Update the list of available tags.
11041 if test -n "$tagname"; then
11042 echo appending configuration tag \"$tagname\" to $ofile
11046 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11047 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11048 (test "X$CXX" != "Xg++"))) ; then
11056 if test -n "$F77" && test "X$F77" != "Xno"; then
11064 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11075 # Source file extension for RC test sources.
11078 # Object file extension for compiled RC test sources.
11082 # Code to be used in simple compile tests
11083 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11085 # Code to be used in simple link tests
11086 lt_simple_link_test_code="$lt_simple_compile_test_code"
11088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11090 # If no C compiler was specified, use CC.
11093 # Allow CC to be a program name with arguments.
11097 # save warnings/boilerplate of simple test code
11098 ac_outfile=conftest.$ac_objext
11099 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11101 _lt_compiler_boilerplate=`cat conftest.err`
11104 ac_outfile=conftest.$ac_objext
11105 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11107 _lt_linker_boilerplate=`cat conftest.err`
11111 # Allow CC to be a program name with arguments.
11116 for cc_temp in $compiler""; do
11118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11126 lt_cv_prog_compiler_c_o_RC=yes
11128 # The else clause should only fire when bootstrapping the
11129 # libtool distribution, otherwise you forgot to ship ltmain.sh
11130 # with your package, and you will get complaints that there are
11131 # no rules to generate ltmain.sh.
11132 if test -f "$ltmain"; then
11133 # See if we are running on zsh, and set the options which allow our commands through
11134 # without removal of \ escapes.
11135 if test -n "${ZSH_VERSION+set}" ; then
11136 setopt NO_GLOB_SUBST
11138 # Now quote all the things that may contain metacharacters while being
11139 # careful not to overquote the AC_SUBSTed values. We take copies of the
11140 # variables and quote the copies for generation of the libtool script.
11141 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11143 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11144 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11145 deplibs_check_method reload_flag reload_cmds need_locks \
11146 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11147 lt_cv_sys_global_symbol_to_c_name_address \
11148 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11149 old_postinstall_cmds old_postuninstall_cmds \
11153 lt_prog_compiler_wl_RC \
11154 lt_prog_compiler_pic_RC \
11155 lt_prog_compiler_static_RC \
11156 lt_prog_compiler_no_builtin_flag_RC \
11157 export_dynamic_flag_spec_RC \
11158 thread_safe_flag_spec_RC \
11159 whole_archive_flag_spec_RC \
11160 enable_shared_with_static_runtimes_RC \
11161 old_archive_cmds_RC \
11162 old_archive_from_new_cmds_RC \
11163 predep_objects_RC \
11164 postdep_objects_RC \
11167 compiler_lib_search_path_RC \
11169 archive_expsym_cmds_RC \
11170 postinstall_cmds_RC \
11171 postuninstall_cmds_RC \
11172 old_archive_from_expsyms_cmds_RC \
11173 allow_undefined_flag_RC \
11174 no_undefined_flag_RC \
11175 export_symbols_cmds_RC \
11176 hardcode_libdir_flag_spec_RC \
11177 hardcode_libdir_flag_spec_ld_RC \
11178 hardcode_libdir_separator_RC \
11179 hardcode_automatic_RC \
11181 module_expsym_cmds_RC \
11182 lt_cv_prog_compiler_c_o_RC \
11183 exclude_expsyms_RC \
11184 include_expsyms_RC; do
11187 old_archive_cmds_RC | \
11188 old_archive_from_new_cmds_RC | \
11189 archive_cmds_RC | \
11190 archive_expsym_cmds_RC | \
11192 module_expsym_cmds_RC | \
11193 old_archive_from_expsyms_cmds_RC | \
11194 export_symbols_cmds_RC | \
11195 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11196 postinstall_cmds | postuninstall_cmds | \
11197 old_postinstall_cmds | old_postuninstall_cmds | \
11198 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11199 # Double-quote double-evaled strings.
11200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11209 *'\$0 --fallback-echo"')
11210 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11216 cat <<__EOF__ >> "$cfgfile"
11217 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11219 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11221 # Shell to use when invoking shell scripts.
11224 # Whether or not to build shared libraries.
11225 build_libtool_libs=$enable_shared
11227 # Whether or not to build static libraries.
11228 build_old_libs=$enable_static
11230 # Whether or not to add -lc for building shared libraries.
11231 build_libtool_need_lc=$archive_cmds_need_lc_RC
11233 # Whether or not to disallow shared libs when runtime libs are static
11234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11236 # Whether or not to optimize for fast installation.
11237 fast_install=$enable_fast_install
11240 host_alias=$host_alias
11244 # The build system.
11245 build_alias=$build_alias
11249 # An echo program that does not interpret backslashes.
11254 AR_FLAGS=$lt_AR_FLAGS
11259 # A language-specific compiler.
11262 # Is the compiler the GNU C compiler?
11268 # The linker used to build libraries.
11271 # Whether we need hard or soft links.
11274 # A BSD-compatible nm program.
11277 # A symbol stripping program
11280 # Used to examine libraries when file_magic_cmd begins "file"
11281 MAGIC_CMD=$MAGIC_CMD
11283 # Used on cygwin: DLL creation program.
11286 # Used on cygwin: object dumper.
11289 # Used on cygwin: assembler.
11292 # The name of the directory that contains temporary libtool files.
11295 # How to create reloadable object files.
11296 reload_flag=$lt_reload_flag
11297 reload_cmds=$lt_reload_cmds
11299 # How to pass a linker flag through the compiler.
11300 wl=$lt_lt_prog_compiler_wl_RC
11302 # Object file suffix (normally "o").
11303 objext="$ac_objext"
11305 # Old archive suffix (normally "a").
11308 # Shared library suffix (normally ".so").
11309 shrext_cmds='$shrext_cmds'
11311 # Executable file suffix (normally "").
11314 # Additional compiler flags for building library objects.
11315 pic_flag=$lt_lt_prog_compiler_pic_RC
11318 # What is the maximum length of a command?
11319 max_cmd_len=$lt_cv_sys_max_cmd_len
11321 # Does compiler simultaneously support -c and -o options?
11322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11324 # Must we lock files when doing compilation?
11325 need_locks=$lt_need_locks
11327 # Do we need the lib prefix for modules?
11328 need_lib_prefix=$need_lib_prefix
11330 # Do we need a version for libraries?
11331 need_version=$need_version
11333 # Whether dlopen is supported.
11334 dlopen_support=$enable_dlopen
11336 # Whether dlopen of programs is supported.
11337 dlopen_self=$enable_dlopen_self
11339 # Whether dlopen of statically linked programs is supported.
11340 dlopen_self_static=$enable_dlopen_self_static
11342 # Compiler flag to prevent dynamic linking.
11343 link_static_flag=$lt_lt_prog_compiler_static_RC
11345 # Compiler flag to turn off builtin functions.
11346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11348 # Compiler flag to allow reflexive dlopens.
11349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11351 # Compiler flag to generate shared objects directly from archives.
11352 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11354 # Compiler flag to generate thread-safe objects.
11355 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11357 # Library versioning type.
11358 version_type=$version_type
11360 # Format of library name prefix.
11361 libname_spec=$lt_libname_spec
11363 # List of archive names. First name is the real one, the rest are links.
11364 # The last name is the one that the linker finds with -lNAME.
11365 library_names_spec=$lt_library_names_spec
11367 # The coded name of the library, if different from the real name.
11368 soname_spec=$lt_soname_spec
11370 # Commands used to build and install an old-style archive.
11372 old_archive_cmds=$lt_old_archive_cmds_RC
11373 old_postinstall_cmds=$lt_old_postinstall_cmds
11374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11376 # Create an old-style archive from a shared archive.
11377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11379 # Create a temporary old-style archive to link instead of a shared archive.
11380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11382 # Commands used to build and install a shared archive.
11383 archive_cmds=$lt_archive_cmds_RC
11384 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11385 postinstall_cmds=$lt_postinstall_cmds
11386 postuninstall_cmds=$lt_postuninstall_cmds
11388 # Commands used to build a loadable module (assumed same as above if empty)
11389 module_cmds=$lt_module_cmds_RC
11390 module_expsym_cmds=$lt_module_expsym_cmds_RC
11392 # Commands to strip libraries.
11393 old_striplib=$lt_old_striplib
11394 striplib=$lt_striplib
11396 # Dependencies to place before the objects being linked to create a
11398 predep_objects=$lt_predep_objects_RC
11400 # Dependencies to place after the objects being linked to create a
11402 postdep_objects=$lt_postdep_objects_RC
11404 # Dependencies to place before the objects being linked to create a
11406 predeps=$lt_predeps_RC
11408 # Dependencies to place after the objects being linked to create a
11410 postdeps=$lt_postdeps_RC
11412 # The library search path used internally by the compiler when linking
11413 # a shared library.
11414 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11416 # Method to check whether dependent libraries are shared objects.
11417 deplibs_check_method=$lt_deplibs_check_method
11419 # Command to use when deplibs_check_method == file_magic.
11420 file_magic_cmd=$lt_file_magic_cmd
11422 # Flag that allows shared libraries with undefined symbols to be built.
11423 allow_undefined_flag=$lt_allow_undefined_flag_RC
11425 # Flag that forces no undefined symbols.
11426 no_undefined_flag=$lt_no_undefined_flag_RC
11428 # Commands used to finish a libtool library installation in a directory.
11429 finish_cmds=$lt_finish_cmds
11431 # Same as above, but a single script fragment to be evaled but not shown.
11432 finish_eval=$lt_finish_eval
11434 # Take the output of nm and produce a listing of raw symbols and C names.
11435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11437 # Transform the output of nm in a proper C declaration
11438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11440 # Transform the output of nm in a C name address pair
11441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11443 # This is the shared library runtime path variable.
11444 runpath_var=$runpath_var
11446 # This is the shared library path variable.
11447 shlibpath_var=$shlibpath_var
11449 # Is shlibpath searched before the hard-coded library search path?
11450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11452 # How to hardcode a shared library path into an executable.
11453 hardcode_action=$hardcode_action_RC
11455 # Whether we should hardcode library paths into libraries.
11456 hardcode_into_libs=$hardcode_into_libs
11458 # Flag to hardcode \$libdir into a binary during linking.
11459 # This must work even if \$libdir does not exist.
11460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11462 # If ld is used when linking, flag to hardcode \$libdir into
11463 # a binary during linking. This must work even if \$libdir does
11465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11467 # Whether we need a single -rpath flag with a separated argument.
11468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11471 # resulting binary.
11472 hardcode_direct=$hardcode_direct_RC
11474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11475 # resulting binary.
11476 hardcode_minus_L=$hardcode_minus_L_RC
11478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11479 # the resulting binary.
11480 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11482 # Set to yes if building a shared library automatically hardcodes DIR into the library
11483 # and all subsequent libraries and executables linked against it.
11484 hardcode_automatic=$hardcode_automatic_RC
11486 # Variables whose values should be saved in libtool wrapper scripts and
11487 # restored at relink time.
11488 variables_saved_for_relink="$variables_saved_for_relink"
11490 # Whether libtool must link a program against all its dependency libraries.
11491 link_all_deplibs=$link_all_deplibs_RC
11493 # Compile-time system search path for libraries
11494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11496 # Run-time system search path for libraries
11497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11499 # Fix the shell variable \$srcfile for the compiler.
11500 fix_srcfile_path="$fix_srcfile_path_RC"
11502 # Set to yes if exported symbols are required.
11503 always_export_symbols=$always_export_symbols_RC
11505 # The commands to list exported symbols.
11506 export_symbols_cmds=$lt_export_symbols_cmds_RC
11508 # The commands to extract the exported symbol list from a shared archive.
11509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11511 # Symbols that should not be listed in the preloaded symbols.
11512 exclude_expsyms=$lt_exclude_expsyms_RC
11514 # Symbols that must always be exported.
11515 include_expsyms=$lt_include_expsyms_RC
11517 # ### END LIBTOOL TAG CONFIG: $tagname
11523 # If there is no Makefile yet, we rely on a make rule to execute
11524 # `config.status --recheck' to rerun these tests and create the
11525 # libtool script then.
11526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11527 if test -f "$ltmain_in"; then
11528 test -f Makefile && make "$ltmain"
11534 ac_cpp='$CPP $CPPFLAGS'
11535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11544 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11545 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11546 { (exit 1); exit 1; }; }
11550 # Append the new tag name to the list of available tags.
11551 if test -n "$tagname" ; then
11552 available_tags="$available_tags $tagname"
11558 # Now substitute the updated list of available tags.
11559 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11560 mv "${ofile}T" "$ofile"
11564 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11565 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11566 { (exit 1); exit 1; }; }
11572 # This can be used to rebuild libtool when needed
11573 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11575 # Always use our own libtool.
11576 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11578 # Prevent multiple expansion
11590 if test $ol_enable_perl != no ; then
11591 # Extract the first word of "perl", so it can be a program name with args.
11592 set dummy perl; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_path_PERLBIN+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11621 PERLBIN=$ac_cv_path_PERLBIN
11623 if test -n "$PERLBIN"; then
11624 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11625 echo "${ECHO_T}$PERLBIN" >&6
11627 echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6
11632 if test "no$PERLBIN" = "no" ; then
11633 if test $ol_enable_perl = yes ; then
11634 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11635 echo "$as_me: error: could not locate perl" >&2;}
11636 { (exit 1); exit 1; }; }
11640 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11641 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11643 if test x"$ol_enable_perl" = "xyes" ; then
11644 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11646 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11658 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11659 # On Suns, sometimes $CPP names a directory.
11660 if test -n "$CPP" && test -d "$CPP"; then
11663 if test -z "$CPP"; then
11664 if test "${ac_cv_prog_CPP+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 # Double quotes because CPP needs to be expanded
11668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11670 ac_preproc_ok=false
11671 for ac_c_preproc_warn_flag in '' yes
11673 # Use a header file that comes with gcc, so configuring glibc
11674 # with a fresh cross-compiler works.
11675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676 # <limits.h> exists even on freestanding compilers.
11677 # On the NeXT, cc -E runs the code through the compiler's parser,
11678 # not just through cpp. "Syntax error" is here to catch this case.
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11686 # include <limits.h>
11688 # include <assert.h>
11692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } >/dev/null; then
11700 if test -s conftest.err; then
11701 ac_cpp_err=$ac_c_preproc_warn_flag
11702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11709 if test -z "$ac_cpp_err"; then
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 # Broken: fails on valid input.
11718 rm -f conftest.err conftest.$ac_ext
11720 # OK, works on sane cases. Now check whether non-existent headers
11721 # can be detected and how.
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <ac_nonexistent.h>
11730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null; then
11738 if test -s conftest.err; then
11739 ac_cpp_err=$ac_c_preproc_warn_flag
11740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11747 if test -z "$ac_cpp_err"; then
11748 # Broken: success on invalid input.
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 # Passes both tests.
11758 rm -f conftest.err conftest.$ac_ext
11761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11762 rm -f conftest.err conftest.$ac_ext
11763 if $ac_preproc_ok; then
11768 ac_cv_prog_CPP=$CPP
11771 CPP=$ac_cv_prog_CPP
11773 ac_cv_prog_CPP=$CPP
11775 echo "$as_me:$LINENO: result: $CPP" >&5
11776 echo "${ECHO_T}$CPP" >&6
11777 ac_preproc_ok=false
11778 for ac_c_preproc_warn_flag in '' yes
11780 # Use a header file that comes with gcc, so configuring glibc
11781 # with a fresh cross-compiler works.
11782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 # <limits.h> exists even on freestanding compilers.
11784 # On the NeXT, cc -E runs the code through the compiler's parser,
11785 # not just through cpp. "Syntax error" is here to catch this case.
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11793 # include <limits.h>
11795 # include <assert.h>
11799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } >/dev/null; then
11807 if test -s conftest.err; then
11808 ac_cpp_err=$ac_c_preproc_warn_flag
11809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11816 if test -z "$ac_cpp_err"; then
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 # Broken: fails on valid input.
11825 rm -f conftest.err conftest.$ac_ext
11827 # OK, works on sane cases. Now check whether non-existent headers
11828 # can be detected and how.
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <ac_nonexistent.h>
11837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } >/dev/null; then
11845 if test -s conftest.err; then
11846 ac_cpp_err=$ac_c_preproc_warn_flag
11847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11854 if test -z "$ac_cpp_err"; then
11855 # Broken: success on invalid input.
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 # Passes both tests.
11865 rm -f conftest.err conftest.$ac_ext
11868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11869 rm -f conftest.err conftest.$ac_ext
11870 if $ac_preproc_ok; then
11873 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11874 See \`config.log' for more details." >&5
11875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11876 See \`config.log' for more details." >&2;}
11877 { (exit 1); exit 1; }; }
11881 ac_cpp='$CPP $CPPFLAGS'
11882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11888 *mingw32* ) ac_cv_mingw32=yes ;;
11889 *cygwin* ) ac_cv_cygwin=yes ;;
11895 cat >>confdefs.h <<_ACEOF
11896 #define EXEEXT "${EXEEXT}"
11900 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11901 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11902 if test "${ac_cv_lib_be_be_app+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lbe -lroot -lnet $LIBS"
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11914 /* Override any gcc2 internal prototype to avoid an error. */
11918 /* We use char because int might match the return type of a gcc2
11919 builtin and then its argument prototype would still apply. */
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931 (eval $ac_link) 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_c_werror_flag"
11939 || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_lib_be_be_app=yes
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ac_cv_lib_be_be_app=no
11958 rm -f conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11962 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11963 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11964 if test $ac_cv_lib_be_be_app = yes; then
11965 LIBS="$LIBS -lbe -lroot -lnet"
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11976 if test -n "$ac_tool_prefix"; then
11977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11979 echo "$as_me:$LINENO: checking for $ac_word" >&5
11980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11981 if test "${ac_cv_prog_CC+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 if test -n "$CC"; then
11985 ac_cv_prog_CC="$CC" # Let the user override the test.
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 if test -n "$CC"; then
12005 echo "$as_me:$LINENO: result: $CC" >&5
12006 echo "${ECHO_T}$CC" >&6
12008 echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6
12013 if test -z "$ac_cv_prog_CC"; then
12015 # Extract the first word of "gcc", so it can be a program name with args.
12016 set dummy gcc; ac_word=$2
12017 echo "$as_me:$LINENO: checking for $ac_word" >&5
12018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 if test -n "$ac_ct_CC"; then
12023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032 ac_cv_prog_ac_ct_CC="gcc"
12033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12042 if test -n "$ac_ct_CC"; then
12043 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12044 echo "${ECHO_T}$ac_ct_CC" >&6
12046 echo "$as_me:$LINENO: result: no" >&5
12047 echo "${ECHO_T}no" >&6
12052 CC="$ac_cv_prog_CC"
12055 if test -z "$CC"; then
12056 if test -n "$ac_tool_prefix"; then
12057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12058 set dummy ${ac_tool_prefix}cc; ac_word=$2
12059 echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061 if test "${ac_cv_prog_CC+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 if test -n "$CC"; then
12065 ac_cv_prog_CC="$CC" # Let the user override the test.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_prog_CC="${ac_tool_prefix}cc"
12075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 if test -n "$CC"; then
12085 echo "$as_me:$LINENO: result: $CC" >&5
12086 echo "${ECHO_T}$CC" >&6
12088 echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6
12093 if test -z "$ac_cv_prog_CC"; then
12095 # Extract the first word of "cc", so it can be a program name with args.
12096 set dummy cc; ac_word=$2
12097 echo "$as_me:$LINENO: checking for $ac_word" >&5
12098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 if test -n "$ac_ct_CC"; then
12103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112 ac_cv_prog_ac_ct_CC="cc"
12113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12122 if test -n "$ac_ct_CC"; then
12123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12124 echo "${ECHO_T}$ac_ct_CC" >&6
12126 echo "$as_me:$LINENO: result: no" >&5
12127 echo "${ECHO_T}no" >&6
12132 CC="$ac_cv_prog_CC"
12136 if test -z "$CC"; then
12137 # Extract the first word of "cc", so it can be a program name with args.
12138 set dummy cc; ac_word=$2
12139 echo "$as_me:$LINENO: checking for $ac_word" >&5
12140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12141 if test "${ac_cv_prog_CC+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 if test -n "$CC"; then
12145 ac_cv_prog_CC="$CC" # Let the user override the test.
12147 ac_prog_rejected=no
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12156 ac_prog_rejected=yes
12160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12166 if test $ac_prog_rejected = yes; then
12167 # We found a bogon in the path, so make sure we never use it.
12168 set dummy $ac_cv_prog_CC
12170 if test $# != 0; then
12171 # We chose a different compiler from the bogus one.
12172 # However, it has the same basename, so the bogon will be chosen
12173 # first if we set CC to just the basename; use the full file name.
12175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12181 if test -n "$CC"; then
12182 echo "$as_me:$LINENO: result: $CC" >&5
12183 echo "${ECHO_T}$CC" >&6
12185 echo "$as_me:$LINENO: result: no" >&5
12186 echo "${ECHO_T}no" >&6
12190 if test -z "$CC"; then
12191 if test -n "$ac_tool_prefix"; then
12194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12196 echo "$as_me:$LINENO: checking for $ac_word" >&5
12197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12198 if test "${ac_cv_prog_CC+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 if test -n "$CC"; then
12202 ac_cv_prog_CC="$CC" # Let the user override the test.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 if test -n "$CC"; then
12222 echo "$as_me:$LINENO: result: $CC" >&5
12223 echo "${ECHO_T}$CC" >&6
12225 echo "$as_me:$LINENO: result: no" >&5
12226 echo "${ECHO_T}no" >&6
12229 test -n "$CC" && break
12232 if test -z "$CC"; then
12236 # Extract the first word of "$ac_prog", so it can be a program name with args.
12237 set dummy $ac_prog; ac_word=$2
12238 echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 if test -n "$ac_ct_CC"; then
12244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_ac_ct_CC="$ac_prog"
12254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12263 if test -n "$ac_ct_CC"; then
12264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12265 echo "${ECHO_T}$ac_ct_CC" >&6
12267 echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12271 test -n "$ac_ct_CC" && break
12280 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12281 See \`config.log' for more details." >&5
12282 echo "$as_me: error: no acceptable C compiler found in \$PATH
12283 See \`config.log' for more details." >&2;}
12284 { (exit 1); exit 1; }; }
12286 # Provide some information about the compiler.
12287 echo "$as_me:$LINENO:" \
12288 "checking for C compiler version" >&5
12289 ac_compiler=`set X $ac_compile; echo $2`
12290 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12291 (eval $ac_compiler --version </dev/null >&5) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }
12295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12296 (eval $ac_compiler -v </dev/null >&5) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }
12300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12301 (eval $ac_compiler -V </dev/null >&5) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }
12306 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12307 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag"
12339 || test ! -s conftest.err'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest.$ac_objext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 ac_compiler_gnu=yes
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12362 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12363 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12364 GCC=`test $ac_compiler_gnu = yes && echo yes`
12365 ac_test_CFLAGS=${CFLAGS+set}
12366 ac_save_CFLAGS=$CFLAGS
12368 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12369 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12370 if test "${ac_cv_prog_cc_g+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>conftest.er1
12392 grep -v '^ *+' conftest.er1 >conftest.err
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_c_werror_flag"
12398 || test ! -s conftest.err'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest.$ac_objext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_prog_cc_g=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12420 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12421 if test "$ac_test_CFLAGS" = set; then
12422 CFLAGS=$ac_save_CFLAGS
12423 elif test $ac_cv_prog_cc_g = yes; then
12424 if test "$GCC" = yes; then
12430 if test "$GCC" = yes; then
12436 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12437 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12438 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 ac_cv_prog_cc_stdc=no
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <stdarg.h>
12451 #include <sys/types.h>
12452 #include <sys/stat.h>
12453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12454 struct buf { int x; };
12455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12456 static char *e (p, i)
12462 static char *f (char * (*g) (char **, int), char **p, ...)
12467 s = g (p, va_arg (v,int));
12472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12473 function prototypes and stuff, but not '\xHH' hex character constants.
12474 These don't provoke an error unfortunately, instead are silently treated
12475 as 'x'. The following induces an error, until -std1 is added to get
12476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12477 array size at least. It's necessary to write '\x00'==0 to get something
12478 that's true only with -std1. */
12479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12481 int test (int i, double x);
12482 struct s1 {int (*f) (int a);};
12483 struct s2 {int (*f) (double a);};
12484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12490 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12495 # Don't try gcc -ansi; that turns off useful extensions and
12496 # breaks some systems' header files.
12497 # AIX -qlanglvl=ansi
12498 # Ultrix and OSF/1 -std1
12499 # HP-UX 10.20 and later -Ae
12500 # HP-UX older versions -Aa -D_HPUX_SOURCE
12501 # SVR4 -Xc -D__EXTENSIONS__
12502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12504 CC="$ac_save_CC $ac_arg"
12505 rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507 (eval $ac_compile) 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag"
12515 || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try='test -s conftest.$ac_objext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_prog_cc_stdc=$ac_arg
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12534 rm -f conftest.err conftest.$ac_objext
12536 rm -f conftest.$ac_ext conftest.$ac_objext
12541 case "x$ac_cv_prog_cc_stdc" in
12543 echo "$as_me:$LINENO: result: none needed" >&5
12544 echo "${ECHO_T}none needed" >&6 ;;
12546 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12547 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12548 CC="$CC $ac_cv_prog_cc_stdc" ;;
12551 # Some people use a C++ compiler to compile C. Since we use `exit',
12552 # in C++ we need to declare it. In case someone uses the same compiler
12553 # for both compiling C and C++ we need to have the C++ compiler decide
12554 # the declaration of exit, since it's the most demanding environment.
12555 cat >conftest.$ac_ext <<_ACEOF
12556 #ifndef __cplusplus
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>conftest.er1
12564 grep -v '^ *+' conftest.er1 >conftest.err
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag"
12570 || test ! -s conftest.err'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 for ac_declaration in \
12584 'extern "C" void std::exit (int) throw (); using std::exit;' \
12585 'extern "C" void std::exit (int); using std::exit;' \
12586 'extern "C" void exit (int) throw ();' \
12587 'extern "C" void exit (int);' \
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12597 #include <stdlib.h>
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -z "$ac_c_werror_flag"
12616 || test ! -s conftest.err'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12682 if test -n "$ac_declaration"; then
12683 echo '#ifdef __cplusplus' >>confdefs.h
12684 echo $ac_declaration >>confdefs.h
12685 echo '#endif' >>confdefs.h
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695 ac_cpp='$CPP $CPPFLAGS'
12696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700 depcc="$CC" am_compiler_list=
12702 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12703 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12708 # We make a subdir and do the tests there. Otherwise we can end up
12709 # making bogus files that we don't know about and never remove. For
12710 # instance it was reported that on HP-UX the gcc test will end up
12711 # making a dummy file named `D' -- because `-MD' means `put the output
12714 # Copy depcomp to subdir because otherwise we won't find it if we're
12715 # using a relative directory.
12716 cp "$am_depcomp" conftest.dir
12718 # We will build objects and dependencies in a subdirectory because
12719 # it helps to detect inapplicable dependency modes. For instance
12720 # both Tru64's cc and ICC support -MD to output dependencies as a
12721 # side effect of compilation, but ICC will put the dependencies in
12722 # the current directory while Tru64 will put them in the object
12726 am_cv_CC_dependencies_compiler_type=none
12727 if test "$am_compiler_list" = ""; then
12728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12730 for depmode in $am_compiler_list; do
12731 # Setup a source with many dependencies, because some compilers
12732 # like to wrap large dependency lists on column 80 (with \), and
12733 # we should not choose a depcomp mode which is confused by this.
12735 # We need to recreate these files for each test, as the compiler may
12736 # overwrite some of them when testing with obscure command lines.
12737 # This happens at least with the AIX C compiler.
12739 for i in 1 2 3 4 5 6; do
12740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12742 # Solaris 8's {/usr,}/bin/sh.
12743 touch sub/conftst$i.h
12745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12749 # after this tag, mechanisms are not by side-effect, so they'll
12750 # only be used when explicitly requested
12751 if test "x$enable_dependency_tracking" = xyes; then
12759 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12760 # mode. It turns out that the SunPro C++ compiler does not properly
12761 # handle `-M -o', and we need to detect this.
12762 if depmode=$depmode \
12763 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12765 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12766 >/dev/null 2>conftest.err &&
12767 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12768 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12769 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12770 # icc doesn't choke on unknown options, it will just issue warnings
12771 # or remarks (even with -Werror). So we grep stderr for any message
12772 # that says an option was ignored or not supported.
12773 # When given -MP, icc 7.0 and 7.1 complain thusly:
12774 # icc: Command line warning: ignoring option '-M'; no argument required
12775 # The diagnosis changed in icc 8.0:
12776 # icc: Command line remark: option '-MP' not supported
12777 if (grep 'ignoring option' conftest.err ||
12778 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12779 am_cv_CC_dependencies_compiler_type=$depmode
12786 rm -rf conftest.dir
12788 am_cv_CC_dependencies_compiler_type=none
12792 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12793 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12799 test "x$enable_dependency_tracking" != xno \
12800 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12801 am__fastdepCC_TRUE=
12802 am__fastdepCC_FALSE='#'
12804 am__fastdepCC_TRUE='#'
12805 am__fastdepCC_FALSE=
12809 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12810 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12811 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12812 { (exit 1); exit 1; }; }
12815 # test for make depend flag
12818 if test -z "${MKDEP}"; then
12819 OL_MKDEP="${CC-cc}"
12820 if test -z "${MKDEP_FLAGS}"; then
12821 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12822 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12823 if test "${ol_cv_mkdep+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 for flag in "-M" "-xM"; do
12829 cat > conftest.c <<EOF
12832 if { ac_try='$OL_MKDEP $flag conftest.c'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } \
12838 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12840 if test ! -f conftest."${ac_object}" ; then
12842 OL_MKDEP_FLAGS="$flag"
12850 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12851 echo "${ECHO_T}$ol_cv_mkdep" >&6
12854 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12858 OL_MKDEP="${MKDEP}"
12859 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12864 if test "${ol_cv_mkdep}" = no ; then
12865 # this will soon become an error
12866 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12867 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12870 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12871 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12872 if test "${ac_cv_lib_s_afopen+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_check_lib_save_LIBS=$LIBS
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12884 /* Override any gcc2 internal prototype to avoid an error. */
12888 /* We use char because int might match the return type of a gcc2
12889 builtin and then its argument prototype would still apply. */
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_lib_s_afopen=yes
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 ac_cv_lib_s_afopen=no
12928 rm -f conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12932 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12933 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12934 if test $ac_cv_lib_s_afopen = yes; then
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_AIX_SECURITY 1
12948 ac_cv_func_getopt=no
12950 cat >>confdefs.h <<\_ACEOF
12951 #define BOTH_STRINGS_H 1
12958 WITH_MODULES_ENABLED=no
12959 if test $ol_enable_modules != no ; then
12961 for ac_header in ltdl.h
12963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12965 echo "$as_me:$LINENO: checking for $ac_header" >&5
12966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12973 # Is the header compilable?
12974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982 $ac_includes_default
12983 #include <$ac_header>
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest.$ac_objext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_header_compiler=yes
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 ac_header_compiler=no
13014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13016 echo "${ECHO_T}$ac_header_compiler" >&6
13018 # Is the header present?
13019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13021 cat >conftest.$ac_ext <<_ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 #include <$ac_header>
13029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } >/dev/null; then
13037 if test -s conftest.err; then
13038 ac_cpp_err=$ac_c_preproc_warn_flag
13039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13046 if test -z "$ac_cpp_err"; then
13047 ac_header_preproc=yes
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 ac_header_preproc=no
13054 rm -f conftest.err conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13056 echo "${ECHO_T}$ac_header_preproc" >&6
13058 # So? What about this header?
13059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13065 ac_header_preproc=yes
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13082 ## ------------------------------------------ ##
13083 ## Report this to the AC_PACKAGE_NAME lists. ##
13084 ## ------------------------------------------ ##
13087 sed "s/^/$as_me: WARNING: /" >&2
13090 echo "$as_me:$LINENO: checking for $ac_header" >&5
13091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 eval "$as_ac_Header=\$ac_header_preproc"
13097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13102 cat >>confdefs.h <<_ACEOF
13103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13111 if test $ac_cv_header_ltdl_h = no ; then
13112 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13113 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13114 { (exit 1); exit 1; }; }
13117 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13118 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13119 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-lltdl $LIBS"
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13131 /* Override any gcc2 internal prototype to avoid an error. */
13135 /* We use char because int might match the return type of a gcc2
13136 builtin and then its argument prototype would still apply. */
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_cv_lib_ltdl_lt_dlinit=yes
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_cv_lib_ltdl_lt_dlinit=no
13175 rm -f conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13179 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13180 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13181 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13183 MODULES_LIBS=-lltdl
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_LIBLTDL 1
13193 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13194 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13195 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13196 { (exit 1); exit 1; }; }
13198 ol_link_modules=yes
13199 WITH_MODULES_ENABLED=yes
13202 for i in $Backends; do
13203 eval "ol_tmp=\$ol_enable_$i"
13204 if test $ol_tmp = mod ; then
13205 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13206 echo "$as_me: WARNING: building static $i backend" >&2;}
13207 eval "ol_enable_$i=yes"
13210 for i in $Overlays; do
13211 eval "ol_tmp=\$ol_enable_$i"
13212 if test $ol_tmp = mod ; then
13213 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13214 echo "$as_me: WARNING: building static $i overlay" >&2;}
13215 eval "ol_enable_$i=yes"
13221 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13222 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13223 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13235 #include <__ASCII__/generate_error.h>
13239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev/null; then
13247 if test -s conftest.err; then
13248 ac_cpp_err=$ac_c_preproc_warn_flag
13249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13256 if test -z "$ac_cpp_err"; then
13257 ol_cv_cpp_ebcdic=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ol_cv_cpp_ebcdic=no
13264 rm -f conftest.err conftest.$ac_ext
13266 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13267 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13268 if test $ol_cv_cpp_ebcdic = yes ; then
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_EBCDIC 1
13276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13278 if test "${ol_cv_header_stdc+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <stdlib.h>
13288 #include <stdarg.h>
13289 #include <string.h>
13292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13295 grep -v '^ *+' conftest.er1 >conftest.err
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } >/dev/null; then
13300 if test -s conftest.err; then
13301 ac_cpp_err=$ac_c_preproc_warn_flag
13302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13309 if test -z "$ac_cpp_err"; then
13310 ol_cv_header_stdc=yes
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ol_cv_header_stdc=no
13317 rm -f conftest.err conftest.$ac_ext
13319 if test $ol_cv_header_stdc = yes; then
13320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <string.h>
13330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13331 $EGREP "memchr" >/dev/null 2>&1; then
13334 ol_cv_header_stdc=no
13340 if test $ol_cv_header_stdc = yes; then
13341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 #include <stdlib.h>
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352 $EGREP "free" >/dev/null 2>&1; then
13355 ol_cv_header_stdc=no
13361 if test $ol_cv_header_stdc = yes; then
13362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13363 if test "$cross_compiling" = yes; then
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13373 #ifndef HAVE_EBCDIC
13374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13377 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13378 || ('j' <= (c) && (c) <= 'r') \
13379 || ('s' <= (c) && (c) <= 'z'))
13380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13383 int main () { int i; for (i = 0; i < 256; i++)
13384 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13388 rm -f conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13401 echo "$as_me: program exited with status $ac_status" >&5
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ( exit $ac_status )
13406 ol_cv_header_stdc=no
13408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13412 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13413 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13414 if test $ol_cv_header_stdc = yes; then
13415 cat >>confdefs.h <<\_ACEOF
13416 #define STDC_HEADERS 1
13420 ac_cv_header_stdc=disable
13423 if test $ol_cv_header_stdc != yes; then
13424 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13425 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13433 ac_header_dirent=no
13434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13435 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13436 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 cat >conftest.$ac_ext <<_ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13447 #include <sys/types.h>
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag"
13469 || test ! -s conftest.err'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 eval "$as_ac_Header=yes"
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 eval "$as_ac_Header=no"
13488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13493 cat >>confdefs.h <<_ACEOF
13494 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13497 ac_header_dirent=$ac_hdr; break
13501 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13502 if test $ac_header_dirent = dirent.h; then
13503 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13504 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13505 if test "${ac_cv_search_opendir+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 ac_func_search_save_LIBS=$LIBS
13509 ac_cv_search_opendir=no
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13517 /* Override any gcc2 internal prototype to avoid an error. */
13521 /* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534 (eval $ac_link) 2>conftest.er1
13536 grep -v '^ *+' conftest.er1 >conftest.err
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_search_opendir="none required"
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13560 rm -f conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562 if test "$ac_cv_search_opendir" = no; then
13563 for ac_lib in dir; do
13564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13572 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589 (eval $ac_link) 2>conftest.er1
13591 grep -v '^ *+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag"
13597 || test ! -s conftest.err'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_search_opendir="-l$ac_lib"
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13616 rm -f conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13620 LIBS=$ac_func_search_save_LIBS
13622 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13623 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13624 if test "$ac_cv_search_opendir" != no; then
13625 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13630 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13631 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13632 if test "${ac_cv_search_opendir+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 ac_func_search_save_LIBS=$LIBS
13636 ac_cv_search_opendir=no
13637 cat >conftest.$ac_ext <<_ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13644 /* Override any gcc2 internal prototype to avoid an error. */
13648 /* We use char because int might match the return type of a gcc2
13649 builtin and then its argument prototype would still apply. */
13659 rm -f conftest.$ac_objext conftest$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661 (eval $ac_link) 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_search_opendir="none required"
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13687 rm -f conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689 if test "$ac_cv_search_opendir" = no; then
13690 for ac_lib in x; do
13691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13692 cat >conftest.$ac_ext <<_ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13699 /* Override any gcc2 internal prototype to avoid an error. */
13703 /* We use char because int might match the return type of a gcc2
13704 builtin and then its argument prototype would still apply. */
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716 (eval $ac_link) 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag"
13724 || test ! -s conftest.err'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try='test -s conftest$ac_exeext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_search_opendir="-l$ac_lib"
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13743 rm -f conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13747 LIBS=$ac_func_search_save_LIBS
13749 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13750 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13751 if test "$ac_cv_search_opendir" != no; then
13752 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13758 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13759 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13760 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <sys/types.h>
13770 #include <sys/wait.h>
13771 #ifndef WEXITSTATUS
13772 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13775 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13783 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790 (eval $ac_compile) 2>conftest.er1
13792 grep -v '^ *+' conftest.er1 >conftest.err
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try='test -z "$ac_c_werror_flag"
13798 || test ! -s conftest.err'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_header_sys_wait_h=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_cv_header_sys_wait_h=no
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13820 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13821 if test $ac_cv_header_sys_wait_h = yes; then
13823 cat >>confdefs.h <<\_ACEOF
13824 #define HAVE_SYS_WAIT_H 1
13829 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13830 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13831 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 #include <sys/types.h>
13841 #include <termios.h>
13847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13848 $EGREP "yes" >/dev/null 2>&1; then
13849 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13851 ac_cv_sys_tiocgwinsz_in_termios_h=no
13856 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13857 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13859 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13860 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13861 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13862 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 #include <sys/types.h>
13872 #include <sys/ioctl.h>
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879 $EGREP "yes" >/dev/null 2>&1; then
13880 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13882 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13887 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13888 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13890 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13892 cat >>confdefs.h <<\_ACEOF
13893 #define GWINSZ_IN_SYS_IOCTL 1
13997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo "$as_me:$LINENO: checking for $ac_header" >&5
14000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14007 # Is the header compilable?
14008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 $ac_includes_default
14017 #include <$ac_header>
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_header_compiler=yes
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_compiler=no
14048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050 echo "${ECHO_T}$ac_header_compiler" >&6
14052 # Is the header present?
14053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <$ac_header>
14063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14066 grep -v '^ *+' conftest.er1 >conftest.err
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null; then
14071 if test -s conftest.err; then
14072 ac_cpp_err=$ac_c_preproc_warn_flag
14073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14080 if test -z "$ac_cpp_err"; then
14081 ac_header_preproc=yes
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_header_preproc=no
14088 rm -f conftest.err conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090 echo "${ECHO_T}$ac_header_preproc" >&6
14092 # So? What about this header?
14093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14116 ## ------------------------------------------ ##
14117 ## Report this to the AC_PACKAGE_NAME lists. ##
14118 ## ------------------------------------------ ##
14121 sed "s/^/$as_me: WARNING: /" >&2
14124 echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 eval "$as_ac_Header=\$ac_header_preproc"
14131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14136 cat >>confdefs.h <<_ACEOF
14137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14146 for ac_header in resolv.h
14148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14149 echo "$as_me:$LINENO: checking for $ac_header" >&5
14150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14161 #include <netinet/in.h>
14164 #include <$ac_header>
14166 rm -f conftest.$ac_objext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14168 (eval $ac_compile) 2>conftest.er1
14170 grep -v '^ *+' conftest.er1 >conftest.err
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 eval "$as_ac_Header=yes"
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 eval "$as_ac_Header=no"
14195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14200 cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14210 for ac_header in sys/ucred.h
14212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14213 echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 cat >conftest.$ac_ext <<_ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14225 #ifdef HAVE_SYS_PARAM_H
14226 #include <sys/param.h>
14230 #include <$ac_header>
14232 rm -f conftest.$ac_objext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14234 (eval $ac_compile) 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag"
14242 || test ! -s conftest.err'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 eval "$as_ac_Header=yes"
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 eval "$as_ac_Header=no"
14261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14266 cat >>confdefs.h <<_ACEOF
14267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14278 for ac_func in sigaction sigset
14280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281 echo "$as_me:$LINENO: checking for $ac_func" >&5
14282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14283 if eval "test \"\${$as_ac_var+set}\" = set"; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14294 #define $ac_func innocuous_$ac_func
14296 /* System header to define __stub macros and hopefully few prototypes,
14297 which can conflict with char $ac_func (); below.
14298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14299 <limits.h> exists even on freestanding compilers. */
14302 # include <limits.h>
14304 # include <assert.h>
14309 /* Override any gcc2 internal prototype to avoid an error. */
14314 /* We use char because int might match the return type of a gcc2
14315 builtin and then its argument prototype would still apply. */
14317 /* The GNU C library defines this for functions which it implements
14318 to always fail with ENOSYS. Some functions are actually named
14319 something starting with __ and the normal name is an alias. */
14320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14323 char (*f) () = $ac_func;
14332 return f != $ac_func;
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>conftest.er1
14341 grep -v '^ *+' conftest.er1 >conftest.err
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
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); }; } &&
14353 { ac_try='test -s conftest$ac_exeext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 eval "$as_ac_var=yes"
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 eval "$as_ac_var=no"
14366 rm -f conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14371 if test `eval echo '${'$as_ac_var'}'` = yes; then
14372 cat >>confdefs.h <<_ACEOF
14373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14380 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14382 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14383 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14384 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 ac_check_lib_save_LIBS=$LIBS
14389 cat >conftest.$ac_ext <<_ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14396 /* Override any gcc2 internal prototype to avoid an error. */
14400 /* We use char because int might match the return type of a gcc2
14401 builtin and then its argument prototype would still apply. */
14411 rm -f conftest.$ac_objext conftest$ac_exeext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413 (eval $ac_link) 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest$ac_exeext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_lib_V3_sigset=yes
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14438 ac_cv_lib_V3_sigset=no
14440 rm -f conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14442 LIBS=$ac_check_lib_save_LIBS
14444 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14445 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14446 if test $ac_cv_lib_V3_sigset = yes; then
14447 cat >>confdefs.h <<_ACEOF
14448 #define HAVE_LIBV3 1
14457 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14458 echo "$as_me:$LINENO: checking for winsock" >&5
14459 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14460 if test "${ol_cv_winsock+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 for curlib in ws2_32 wsock32; do
14465 LIBS="$LIBS -l$curlib"
14466 cat >conftest.$ac_ext <<_ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <winsock.h>
14479 select(0,NULL,NULL,NULL,NULL);
14481 gethostname(NULL,0);
14487 rm -f conftest.$ac_objext conftest$ac_exeext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489 (eval $ac_link) 2>conftest.er1
14491 grep -v '^ *+' conftest.er1 >conftest.err
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -z "$ac_c_werror_flag"
14497 || test ! -s conftest.err'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest$ac_exeext'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14516 rm -f conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext conftest.$ac_ext
14519 if test $ol_cv_winsock = yes; then
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_WINSOCK 1
14525 ac_cv_func_socket=yes
14526 ac_cv_func_select=yes
14527 ac_cv_func_closesocket=yes
14528 ac_cv_func_gethostname=yes
14529 if test $curlib = ws2_32; then
14530 ol_cv_winsock=winsock2
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_WINSOCK2 1
14542 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14543 echo "${ECHO_T}$ol_cv_winsock" >&6
14547 echo "$as_me:$LINENO: checking for socket" >&5
14548 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14549 if test "${ac_cv_func_socket+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 cat >conftest.$ac_ext <<_ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14560 #define socket innocuous_socket
14562 /* System header to define __stub macros and hopefully few prototypes,
14563 which can conflict with char socket (); below.
14564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14565 <limits.h> exists even on freestanding compilers. */
14568 # include <limits.h>
14570 # include <assert.h>
14575 /* Override any gcc2 internal prototype to avoid an error. */
14580 /* We use char because int might match the return type of a gcc2
14581 builtin and then its argument prototype would still apply. */
14583 /* The GNU C library defines this for functions which it implements
14584 to always fail with ENOSYS. Some functions are actually named
14585 something starting with __ and the normal name is an alias. */
14586 #if defined (__stub_socket) || defined (__stub___socket)
14589 char (*f) () = socket;
14598 return f != socket;
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag"
14613 || test ! -s conftest.err'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest$ac_exeext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_cv_func_socket=yes
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14630 ac_cv_func_socket=no
14632 rm -f conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14635 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14636 echo "${ECHO_T}$ac_cv_func_socket" >&6
14637 if test $ac_cv_func_socket = yes; then
14642 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14643 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14644 if test "${ac_cv_lib_socket_main+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 ac_check_lib_save_LIBS=$LIBS
14648 LIBS="-lsocket $LIBS"
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -z "$ac_c_werror_flag"
14675 || test ! -s conftest.err'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest$ac_exeext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_lib_socket_main=yes
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_cv_lib_socket_main=no
14694 rm -f conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext conftest.$ac_ext
14696 LIBS=$ac_check_lib_save_LIBS
14698 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14699 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14700 if test $ac_cv_lib_socket_main = yes; then
14701 cat >>confdefs.h <<_ACEOF
14702 #define HAVE_LIBSOCKET 1
14705 LIBS="-lsocket $LIBS"
14710 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14711 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14712 if test "${ac_cv_lib_net_main+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 ac_check_lib_save_LIBS=$LIBS
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14733 rm -f conftest.$ac_objext conftest$ac_exeext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14735 (eval $ac_link) 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_c_werror_flag"
14743 || test ! -s conftest.err'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest$ac_exeext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_cv_lib_net_main=yes
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_cv_lib_net_main=no
14762 rm -f conftest.err conftest.$ac_objext \
14763 conftest$ac_exeext conftest.$ac_ext
14764 LIBS=$ac_check_lib_save_LIBS
14766 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14767 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14768 if test $ac_cv_lib_net_main = yes; then
14769 cat >>confdefs.h <<_ACEOF
14770 #define HAVE_LIBNET 1
14778 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14779 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14780 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 ac_check_lib_save_LIBS=$LIBS
14784 LIBS="-lnsl_s $LIBS"
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14803 (eval $ac_link) 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -z "$ac_c_werror_flag"
14811 || test ! -s conftest.err'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest$ac_exeext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 ac_cv_lib_nsl_s_main=yes
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 ac_cv_lib_nsl_s_main=no
14830 rm -f conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
14832 LIBS=$ac_check_lib_save_LIBS
14834 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14835 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14836 if test $ac_cv_lib_nsl_s_main = yes; then
14837 cat >>confdefs.h <<_ACEOF
14838 #define HAVE_LIBNSL_S 1
14841 LIBS="-lnsl_s $LIBS"
14846 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14847 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14848 if test "${ac_cv_lib_nsl_main+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 ac_check_lib_save_LIBS=$LIBS
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14871 (eval $ac_link) 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try='test -z "$ac_c_werror_flag"
14879 || test ! -s conftest.err'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest$ac_exeext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_lib_nsl_main=yes
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14896 ac_cv_lib_nsl_main=no
14898 rm -f conftest.err conftest.$ac_objext \
14899 conftest$ac_exeext conftest.$ac_ext
14900 LIBS=$ac_check_lib_save_LIBS
14902 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14903 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14904 if test $ac_cv_lib_nsl_main = yes; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define HAVE_LIBNSL 1
14914 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14915 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14916 if test "${ac_cv_lib_inet_socket+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 ac_check_lib_save_LIBS=$LIBS
14920 LIBS="-linet $LIBS"
14921 cat >conftest.$ac_ext <<_ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14928 /* Override any gcc2 internal prototype to avoid an error. */
14932 /* We use char because int might match the return type of a gcc2
14933 builtin and then its argument prototype would still apply. */
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14945 (eval $ac_link) 2>conftest.er1
14947 grep -v '^ *+' conftest.er1 >conftest.err
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try='test -z "$ac_c_werror_flag"
14953 || test ! -s conftest.err'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest$ac_exeext'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_cv_lib_inet_socket=yes
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_cv_lib_inet_socket=no
14972 rm -f conftest.err conftest.$ac_objext \
14973 conftest$ac_exeext conftest.$ac_ext
14974 LIBS=$ac_check_lib_save_LIBS
14976 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14977 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14978 if test $ac_cv_lib_inet_socket = yes; then
14979 cat >>confdefs.h <<_ACEOF
14980 #define HAVE_LIBINET 1
14983 LIBS="-linet $LIBS"
14988 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14989 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14990 if test "${ac_cv_lib_gen_main+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 ac_check_lib_save_LIBS=$LIBS
14995 cat >conftest.$ac_ext <<_ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15011 rm -f conftest.$ac_objext conftest$ac_exeext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_c_werror_flag"
15021 || test ! -s conftest.err'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest$ac_exeext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 ac_cv_lib_gen_main=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_cv_lib_gen_main=no
15040 rm -f conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15042 LIBS=$ac_check_lib_save_LIBS
15044 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15045 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15046 if test $ac_cv_lib_gen_main = yes; then
15047 cat >>confdefs.h <<_ACEOF
15048 #define HAVE_LIBGEN 1
15059 echo "$as_me:$LINENO: checking for select" >&5
15060 echo $ECHO_N "checking for select... $ECHO_C" >&6
15061 if test "${ac_cv_func_select+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 /* Define select to an innocuous variant, in case <limits.h> declares select.
15071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15072 #define select innocuous_select
15074 /* System header to define __stub macros and hopefully few prototypes,
15075 which can conflict with char select (); below.
15076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15077 <limits.h> exists even on freestanding compilers. */
15080 # include <limits.h>
15082 # include <assert.h>
15087 /* Override any gcc2 internal prototype to avoid an error. */
15092 /* We use char because int might match the return type of a gcc2
15093 builtin and then its argument prototype would still apply. */
15095 /* The GNU C library defines this for functions which it implements
15096 to always fail with ENOSYS. Some functions are actually named
15097 something starting with __ and the normal name is an alias. */
15098 #if defined (__stub_select) || defined (__stub___select)
15101 char (*f) () = select;
15110 return f != select;
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117 (eval $ac_link) 2>conftest.er1
15119 grep -v '^ *+' conftest.er1 >conftest.err
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
15124 { ac_try='test -z "$ac_c_werror_flag"
15125 || test ! -s conftest.err'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest$ac_exeext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_cv_func_select=yes
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_func_select=no
15144 rm -f conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15147 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15148 echo "${ECHO_T}$ac_cv_func_select" >&6
15149 if test $ac_cv_func_select = yes; then
15152 { { echo "$as_me:$LINENO: error: select() required." >&5
15153 echo "$as_me: error: select() required." >&2;}
15154 { (exit 1); exit 1; }; }
15158 if test "${ac_cv_header_winsock_h}" != yes; then
15161 for ac_header in sys/select.h sys/socket.h
15163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15165 echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15173 # Is the header compilable?
15174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 $ac_includes_default
15183 #include <$ac_header>
15185 rm -f conftest.$ac_objext
15186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15187 (eval $ac_compile) 2>conftest.er1
15189 grep -v '^ *+' conftest.er1 >conftest.err
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } &&
15194 { ac_try='test -z "$ac_c_werror_flag"
15195 || test ! -s conftest.err'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; } &&
15201 { ac_try='test -s conftest.$ac_objext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_header_compiler=yes
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 ac_header_compiler=no
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15216 echo "${ECHO_T}$ac_header_compiler" >&6
15218 # Is the header present?
15219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15221 cat >conftest.$ac_ext <<_ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 #include <$ac_header>
15229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15232 grep -v '^ *+' conftest.er1 >conftest.err
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } >/dev/null; then
15237 if test -s conftest.err; then
15238 ac_cpp_err=$ac_c_preproc_warn_flag
15239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15246 if test -z "$ac_cpp_err"; then
15247 ac_header_preproc=yes
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 ac_header_preproc=no
15254 rm -f conftest.err conftest.$ac_ext
15255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15256 echo "${ECHO_T}$ac_header_preproc" >&6
15258 # So? What about this header?
15259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15265 ac_header_preproc=yes
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15282 ## ------------------------------------------ ##
15283 ## Report this to the AC_PACKAGE_NAME lists. ##
15284 ## ------------------------------------------ ##
15287 sed "s/^/$as_me: WARNING: /" >&2
15290 echo "$as_me:$LINENO: checking for $ac_header" >&5
15291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 eval "$as_ac_Header=\$ac_header_preproc"
15297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15302 cat >>confdefs.h <<_ACEOF
15303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15310 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15311 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15312 if test "${ac_cv_func_select_args+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15316 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15317 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15318 cat >conftest.$ac_ext <<_ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 $ac_includes_default
15325 #if HAVE_SYS_SELECT_H
15326 # include <sys/select.h>
15328 #if HAVE_SYS_SOCKET_H
15329 # include <sys/socket.h>
15335 extern int select ($ac_arg1,
15336 $ac_arg234, $ac_arg234, $ac_arg234,
15342 rm -f conftest.$ac_objext
15343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15344 (eval $ac_compile) 2>conftest.er1
15346 grep -v '^ *+' conftest.er1 >conftest.err
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } &&
15351 { ac_try='test -z "$ac_c_werror_flag"
15352 || test ! -s conftest.err'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; } &&
15358 { ac_try='test -s conftest.$ac_objext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374 # Provide a safe default value.
15375 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15378 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15379 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15380 ac_save_IFS=$IFS; IFS=','
15381 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15385 cat >>confdefs.h <<_ACEOF
15386 #define SELECT_TYPE_ARG1 $1
15390 cat >>confdefs.h <<_ACEOF
15391 #define SELECT_TYPE_ARG234 ($2)
15395 cat >>confdefs.h <<_ACEOF
15396 #define SELECT_TYPE_ARG5 ($3)
15405 for ac_func in poll
15407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408 echo "$as_me:$LINENO: checking for $ac_func" >&5
15409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15410 if eval "test \"\${$as_ac_var+set}\" = set"; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 cat >conftest.$ac_ext <<_ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15421 #define $ac_func innocuous_$ac_func
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func (); below.
15425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426 <limits.h> exists even on freestanding compilers. */
15429 # include <limits.h>
15431 # include <assert.h>
15436 /* Override any gcc2 internal prototype to avoid an error. */
15441 /* We use char because int might match the return type of a gcc2
15442 builtin and then its argument prototype would still apply. */
15444 /* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15450 char (*f) () = $ac_func;
15459 return f != $ac_func;
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466 (eval $ac_link) 2>conftest.er1
15468 grep -v '^ *+' conftest.er1 >conftest.err
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest$ac_exeext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 eval "$as_ac_var=yes"
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 eval "$as_ac_var=no"
15493 rm -f conftest.err conftest.$ac_objext \
15494 conftest$ac_exeext conftest.$ac_ext
15496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15498 if test `eval echo '${'$as_ac_var'}'` = yes; then
15499 cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15507 for ac_header in poll.h
15509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15511 echo "$as_me:$LINENO: checking for $ac_header" >&5
15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15519 # Is the header compilable?
15520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15529 #include <$ac_header>
15531 rm -f conftest.$ac_objext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15533 (eval $ac_compile) 2>conftest.er1
15535 grep -v '^ *+' conftest.er1 >conftest.err
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag"
15541 || test ! -s conftest.err'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; } &&
15547 { ac_try='test -s conftest.$ac_objext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_header_compiler=yes
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_header_compiler=no
15560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15562 echo "${ECHO_T}$ac_header_compiler" >&6
15564 # Is the header present?
15565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 #include <$ac_header>
15575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15578 grep -v '^ *+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } >/dev/null; then
15583 if test -s conftest.err; then
15584 ac_cpp_err=$ac_c_preproc_warn_flag
15585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15592 if test -z "$ac_cpp_err"; then
15593 ac_header_preproc=yes
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15598 ac_header_preproc=no
15600 rm -f conftest.err conftest.$ac_ext
15601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15602 echo "${ECHO_T}$ac_header_preproc" >&6
15604 # So? What about this header?
15605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15611 ac_header_preproc=yes
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15628 ## ------------------------------------------ ##
15629 ## Report this to the AC_PACKAGE_NAME lists. ##
15630 ## ------------------------------------------ ##
15633 sed "s/^/$as_me: WARNING: /" >&2
15636 echo "$as_me:$LINENO: checking for $ac_header" >&5
15637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 eval "$as_ac_Header=\$ac_header_preproc"
15643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15648 cat >>confdefs.h <<_ACEOF
15649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15658 for ac_header in sys/epoll.h
15660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15662 echo "$as_me:$LINENO: checking for $ac_header" >&5
15663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15670 # Is the header compilable?
15671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 $ac_includes_default
15680 #include <$ac_header>
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag"
15692 || test ! -s conftest.err'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest.$ac_objext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_header_compiler=yes
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_header_compiler=no
15711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6
15715 # Is the header present?
15716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <$ac_header>
15726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } >/dev/null; then
15734 if test -s conftest.err; then
15735 ac_cpp_err=$ac_c_preproc_warn_flag
15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743 if test -z "$ac_cpp_err"; then
15744 ac_header_preproc=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_header_preproc=no
15751 rm -f conftest.err conftest.$ac_ext
15752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6
15755 # So? What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15762 ac_header_preproc=yes
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15779 ## ------------------------------------------ ##
15780 ## Report this to the AC_PACKAGE_NAME lists. ##
15781 ## ------------------------------------------ ##
15784 sed "s/^/$as_me: WARNING: /" >&2
15787 echo "$as_me:$LINENO: checking for $ac_header" >&5
15788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 eval "$as_ac_Header=\$ac_header_preproc"
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15807 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15808 echo "$as_me:$LINENO: checking for epoll system call" >&5
15809 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15810 if test "$cross_compiling" = yes; then
15811 echo "$as_me:$LINENO: result: no" >&5
15812 echo "${ECHO_T}no" >&6
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 int main(int argc, char *argv)
15822 int epfd = epoll_create(256);
15823 exit (epfd == -1 ? 1 : 0);
15826 rm -f conftest$ac_exeext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15828 (eval $ac_link) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 echo "$as_me:$LINENO: result: yes" >&5
15838 echo "${ECHO_T}yes" >&6
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE_EPOLL 1
15845 echo "$as_me: program exited with status $ac_status" >&5
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 ( exit $ac_status )
15850 echo "$as_me:$LINENO: result: no" >&5
15851 echo "${ECHO_T}no" >&6
15853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15858 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15859 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15860 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 cat >conftest.$ac_ext <<_ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15872 #include <sys/types.h>
15875 #include <stdlib.h>
15880 char *c = (char *) *sys_errlist
15885 rm -f conftest.$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ol_cv_dcl_sys_errlist=yes
15908 ol_cv_have_sys_errlist=yes
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 ol_cv_dcl_sys_errlist=no
15915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15917 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15918 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15920 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15921 if test $ol_cv_dcl_sys_errlist = no ; then
15923 cat >>confdefs.h <<\_ACEOF
15924 #define DECL_SYS_ERRLIST 1
15928 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15929 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15930 if test "${ol_cv_have_sys_errlist+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15944 char *c = (char *) *sys_errlist
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ol_cv_have_sys_errlist=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ol_cv_have_sys_errlist=no
15978 rm -f conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15981 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15982 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15984 if test $ol_cv_have_sys_errlist = yes ; then
15986 cat >>confdefs.h <<\_ACEOF
15987 #define HAVE_SYS_ERRLIST 1
15993 for ac_func in strerror strerror_r
15995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996 echo "$as_me:$LINENO: checking for $ac_func" >&5
15997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15998 if eval "test \"\${$as_ac_var+set}\" = set"; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 cat >conftest.$ac_ext <<_ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16009 #define $ac_func innocuous_$ac_func
16011 /* System header to define __stub macros and hopefully few prototypes,
16012 which can conflict with char $ac_func (); below.
16013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16014 <limits.h> exists even on freestanding compilers. */
16017 # include <limits.h>
16019 # include <assert.h>
16024 /* Override any gcc2 internal prototype to avoid an error. */
16029 /* We use char because int might match the return type of a gcc2
16030 builtin and then its argument prototype would still apply. */
16032 /* The GNU C library defines this for functions which it implements
16033 to always fail with ENOSYS. Some functions are actually named
16034 something starting with __ and the normal name is an alias. */
16035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16038 char (*f) () = $ac_func;
16047 return f != $ac_func;
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054 (eval $ac_link) 2>conftest.er1
16056 grep -v '^ *+' conftest.er1 >conftest.err
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try='test -z "$ac_c_werror_flag"
16062 || test ! -s conftest.err'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest$ac_exeext'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 eval "$as_ac_var=yes"
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 eval "$as_ac_var=no"
16081 rm -f conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16086 if test `eval echo '${'$as_ac_var'}'` = yes; then
16087 cat >>confdefs.h <<_ACEOF
16088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16094 ol_cv_func_strerror_r=no
16095 if test "${ac_cv_func_strerror_r}" = yes ; then
16096 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16097 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16098 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 cat >conftest.$ac_ext <<_ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 #include <string.h>
16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16111 $EGREP "strerror_r" >/dev/null 2>&1; then
16112 ol_decl_strerror_r=yes
16114 ol_decl_strerror_r=no
16118 if test $ol_decl_strerror_r = yes ; then
16119 cat >conftest.$ac_ext <<_ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 #include <string.h>
16129 /* from autoconf 2.59 */
16131 char x = *strerror_r (0, buf, sizeof buf);
16132 char *p = strerror_r (0, buf, sizeof buf);
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag"
16148 || test ! -s conftest.err'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest.$ac_objext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ol_cv_nonposix_strerror_r=yes
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ol_cv_nonposix_strerror_r=no
16167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16169 if test "$cross_compiling" = yes; then
16170 ol_cv_nonposix_strerror=no
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16182 strerror_r( 1, buf, sizeof buf );
16183 exit( buf[0] == 0 );
16187 rm -f conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ol_cv_nonposix_strerror_r=yes
16200 echo "$as_me: program exited with status $ac_status" >&5
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ( exit $ac_status )
16205 ol_cv_nonposix_strerror=no
16207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16212 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16213 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16214 if test $ol_cv_nonposix_strerror_r = yes ; then
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE_NONPOSIX_STRERROR_R 1
16222 elif test "${ac_cv_func_strerror}" = no ; then
16223 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16224 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16225 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 cat >conftest.$ac_ext <<_ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16237 #include <sys/types.h>
16240 #include <stdlib.h>
16245 char *c = (char *) *sys_errlist
16250 rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252 (eval $ac_compile) 2>conftest.er1
16254 grep -v '^ *+' conftest.er1 >conftest.err
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
16259 { ac_try='test -z "$ac_c_werror_flag"
16260 || test ! -s conftest.err'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ol_cv_dcl_sys_errlist=yes
16273 ol_cv_have_sys_errlist=yes
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 ol_cv_dcl_sys_errlist=no
16280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16282 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16283 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16285 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16286 if test $ol_cv_dcl_sys_errlist = no ; then
16288 cat >>confdefs.h <<\_ACEOF
16289 #define DECL_SYS_ERRLIST 1
16293 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16294 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16295 if test "${ol_cv_have_sys_errlist+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 cat >conftest.$ac_ext <<_ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16309 char *c = (char *) *sys_errlist
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16316 (eval $ac_link) 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag"
16324 || test ! -s conftest.err'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; } &&
16330 { ac_try='test -s conftest$ac_exeext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 ol_cv_have_sys_errlist=yes
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 ol_cv_have_sys_errlist=no
16343 rm -f conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16346 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16347 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16349 if test $ol_cv_have_sys_errlist = yes ; then
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_SYS_ERRLIST 1
16361 for ac_header in regex.h
16363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16365 echo "$as_me:$LINENO: checking for $ac_header" >&5
16366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16373 # Is the header compilable?
16374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16376 cat >conftest.$ac_ext <<_ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 $ac_includes_default
16383 #include <$ac_header>
16385 rm -f conftest.$ac_objext
16386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16387 (eval $ac_compile) 2>conftest.er1
16389 grep -v '^ *+' conftest.er1 >conftest.err
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } &&
16394 { ac_try='test -z "$ac_c_werror_flag"
16395 || test ! -s conftest.err'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; } &&
16401 { ac_try='test -s conftest.$ac_objext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_header_compiler=yes
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 ac_header_compiler=no
16414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16416 echo "${ECHO_T}$ac_header_compiler" >&6
16418 # Is the header present?
16419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 #include <$ac_header>
16429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } >/dev/null; then
16437 if test -s conftest.err; then
16438 ac_cpp_err=$ac_c_preproc_warn_flag
16439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16446 if test -z "$ac_cpp_err"; then
16447 ac_header_preproc=yes
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16452 ac_header_preproc=no
16454 rm -f conftest.err conftest.$ac_ext
16455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16456 echo "${ECHO_T}$ac_header_preproc" >&6
16458 # So? What about this header?
16459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16465 ac_header_preproc=yes
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16482 ## ------------------------------------------ ##
16483 ## Report this to the AC_PACKAGE_NAME lists. ##
16484 ## ------------------------------------------ ##
16487 sed "s/^/$as_me: WARNING: /" >&2
16490 echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 eval "$as_ac_Header=\$ac_header_preproc"
16497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16502 cat >>confdefs.h <<_ACEOF
16503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16510 if test "$ac_cv_header_regex_h" != yes ; then
16511 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16512 echo "$as_me: error: POSIX regex.h required." >&2;}
16513 { (exit 1); exit 1; }; }
16515 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16516 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16517 if test "${ac_cv_search_regfree+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 ac_func_search_save_LIBS=$LIBS
16521 ac_cv_search_regfree=no
16522 cat >conftest.$ac_ext <<_ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16529 /* Override any gcc2 internal prototype to avoid an error. */
16533 /* We use char because int might match the return type of a gcc2
16534 builtin and then its argument prototype would still apply. */
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546 (eval $ac_link) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest$ac_exeext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_search_regfree="none required"
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16572 rm -f conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16574 if test "$ac_cv_search_regfree" = no; then
16575 for ac_lib in regex gnuregex; do
16576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16584 /* Override any gcc2 internal prototype to avoid an error. */
16588 /* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16599 rm -f conftest.$ac_objext conftest$ac_exeext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601 (eval $ac_link) 2>conftest.er1
16603 grep -v '^ *+' conftest.er1 >conftest.err
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_c_werror_flag"
16609 || test ! -s conftest.err'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest$ac_exeext'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_cv_search_regfree="-l$ac_lib"
16624 echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16628 rm -f conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16632 LIBS=$ac_func_search_save_LIBS
16634 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16635 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16636 if test "$ac_cv_search_regfree" != no; then
16637 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16640 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16641 echo "$as_me: error: POSIX regex required." >&2;}
16642 { (exit 1); exit 1; }; }
16647 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16648 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16649 if test "${ol_cv_c_posix_regex+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 if test "$cross_compiling" = yes; then
16654 ol_cv_c_posix_regex=cross
16656 cat >conftest.$ac_ext <<_ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16663 #include <sys/types.h>
16665 static char *pattern, *string;
16673 if(regcomp(&re, pattern, 0)) {
16677 string = "ALL MATCH";
16679 rc = regexec(&re, string, 0, (void*)0, 0);
16686 rm -f conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ol_cv_c_posix_regex=yes
16699 echo "$as_me: program exited with status $ac_status" >&5
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ( exit $ac_status )
16704 ol_cv_c_posix_regex=no
16706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16709 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16710 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16712 if test "$ol_cv_c_posix_regex" = no ; then
16713 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16714 echo "$as_me: error: broken POSIX regex!" >&2;}
16715 { (exit 1); exit 1; }; }
16721 for ac_header in sys/uuid.h
16723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16725 echo "$as_me:$LINENO: checking for $ac_header" >&5
16726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16733 # Is the header compilable?
16734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 $ac_includes_default
16743 #include <$ac_header>
16745 rm -f conftest.$ac_objext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16747 (eval $ac_compile) 2>conftest.er1
16749 grep -v '^ *+' conftest.er1 >conftest.err
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag"
16755 || test ! -s conftest.err'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_header_compiler=yes
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 ac_header_compiler=no
16774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16776 echo "${ECHO_T}$ac_header_compiler" >&6
16778 # Is the header present?
16779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <$ac_header>
16789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16792 grep -v '^ *+' conftest.er1 >conftest.err
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } >/dev/null; then
16797 if test -s conftest.err; then
16798 ac_cpp_err=$ac_c_preproc_warn_flag
16799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16806 if test -z "$ac_cpp_err"; then
16807 ac_header_preproc=yes
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ac_header_preproc=no
16814 rm -f conftest.err conftest.$ac_ext
16815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16816 echo "${ECHO_T}$ac_header_preproc" >&6
16818 # So? What about this header?
16819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16825 ac_header_preproc=yes
16828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16842 ## ------------------------------------------ ##
16843 ## Report this to the AC_PACKAGE_NAME lists. ##
16844 ## ------------------------------------------ ##
16847 sed "s/^/$as_me: WARNING: /" >&2
16850 echo "$as_me:$LINENO: checking for $ac_header" >&5
16851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 eval "$as_ac_Header=\$ac_header_preproc"
16857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16862 cat >>confdefs.h <<_ACEOF
16863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16870 if test $ac_cv_header_sys_uuid_h = yes ; then
16872 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16873 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16874 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 ac_func_search_save_LIBS=$LIBS
16878 ac_cv_search_uuid_to_str=no
16879 cat >conftest.$ac_ext <<_ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16886 /* Override any gcc2 internal prototype to avoid an error. */
16890 /* We use char because int might match the return type of a gcc2
16891 builtin and then its argument prototype would still apply. */
16892 char uuid_to_str ();
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903 (eval $ac_link) 2>conftest.er1
16905 grep -v '^ *+' conftest.er1 >conftest.err
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
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); }; } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_search_uuid_to_str="none required"
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16929 rm -f conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16931 if test "$ac_cv_search_uuid_to_str" = no; then
16932 for ac_lib in uuid; do
16933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16934 cat >conftest.$ac_ext <<_ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16941 /* Override any gcc2 internal prototype to avoid an error. */
16945 /* We use char because int might match the return type of a gcc2
16946 builtin and then its argument prototype would still apply. */
16947 char uuid_to_str ();
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958 (eval $ac_link) 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag"
16966 || test ! -s conftest.err'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest$ac_exeext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_search_uuid_to_str="-l$ac_lib"
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16985 rm -f conftest.err conftest.$ac_objext \
16986 conftest$ac_exeext conftest.$ac_ext
16989 LIBS=$ac_func_search_save_LIBS
16991 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16992 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16993 if test "$ac_cv_search_uuid_to_str" != no; then
16994 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17002 if test have_uuid = yes ; then
17004 cat >>confdefs.h <<\_ACEOF
17005 #define HAVE_UUID_TO_STR 1
17009 test "$ac_cv_search_uuid_to_str" = "none required" || \
17010 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17014 if test $have_uuid = no ; then
17015 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17016 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17018 LIBS="$LIBS -lrpcrt4"
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 int __stdcall UuidCreate(void *);
17027 int __stdcall UuidToStringA(void *,void **);
17034 UuidToStringA(0,0);
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>conftest.er1
17044 grep -v '^ *+' conftest.er1 >conftest.err
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag"
17050 || test ! -s conftest.err'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest$ac_exeext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17069 rm -f conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17071 if test $need_rpcrt = yes; then
17072 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17075 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17076 echo "${ECHO_T}$need_rpcrt" >&6
17079 ol_cv_lib_resolver=no
17080 if test $ol_cv_lib_resolver = no ; then
17081 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17082 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17083 if test "${ol_cv_resolver_none+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 LIBS="$ol_RESOLVER_LIB $LIBS"
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17098 #ifdef HAVE_SYS_TYPES_H
17099 # include <sys/types.h>
17101 #include <netinet/in.h>
17102 #ifdef HAVE_ARPA_NAMESER_H
17103 # include <arpa/nameser.h>
17105 #ifdef HAVE_RESOLV_H
17106 # include <resolv.h>
17114 char *request = NULL;
17115 unsigned char reply[64*1024];
17116 unsigned char host[64*1024];
17120 /* Bind 8/9 interface */
17121 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17123 /* Bind 4 interface */
17127 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17131 /* Bind 8/9 interface */
17133 #elif defined(HFIXEDSZ)
17134 /* Bind 4 interface w/ HFIXEDSZ */
17137 /* Bind 4 interface w/o HFIXEDSZ */
17138 p += sizeof(HEADER);
17140 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17148 (eval $ac_link) 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest$ac_exeext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ol_cv_resolver_none=yes
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ol_cv_resolver_none=no
17175 rm -f conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17181 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17182 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17184 if test $ol_cv_resolver_none = yes ; then
17185 ol_cv_lib_resolver=yes
17189 if test $ol_cv_lib_resolver = no ; then
17190 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17191 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17192 if test "${ol_cv_resolver_resolv+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 ol_RESOLVER_LIB=-lresolv
17198 LIBS="$ol_RESOLVER_LIB $LIBS"
17200 cat >conftest.$ac_ext <<_ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17207 #ifdef HAVE_SYS_TYPES_H
17208 # include <sys/types.h>
17210 #include <netinet/in.h>
17211 #ifdef HAVE_ARPA_NAMESER_H
17212 # include <arpa/nameser.h>
17214 #ifdef HAVE_RESOLV_H
17215 # include <resolv.h>
17223 char *request = NULL;
17224 unsigned char reply[64*1024];
17225 unsigned char host[64*1024];
17229 /* Bind 8/9 interface */
17230 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17232 /* Bind 4 interface */
17236 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17240 /* Bind 8/9 interface */
17242 #elif defined(HFIXEDSZ)
17243 /* Bind 4 interface w/ HFIXEDSZ */
17246 /* Bind 4 interface w/o HFIXEDSZ */
17247 p += sizeof(HEADER);
17249 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest$ac_exeext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ol_cv_resolver_resolv=yes
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ol_cv_resolver_resolv=no
17284 rm -f conftest.err conftest.$ac_objext \
17285 conftest$ac_exeext conftest.$ac_ext
17290 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17291 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17293 if test $ol_cv_resolver_resolv = yes ; then
17294 ol_cv_lib_resolver=-lresolv
17298 if test $ol_cv_lib_resolver = no ; then
17299 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17300 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17301 if test "${ol_cv_resolver_bind+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 ol_RESOLVER_LIB=-lbind
17307 LIBS="$ol_RESOLVER_LIB $LIBS"
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17316 #ifdef HAVE_SYS_TYPES_H
17317 # include <sys/types.h>
17319 #include <netinet/in.h>
17320 #ifdef HAVE_ARPA_NAMESER_H
17321 # include <arpa/nameser.h>
17323 #ifdef HAVE_RESOLV_H
17324 # include <resolv.h>
17332 char *request = NULL;
17333 unsigned char reply[64*1024];
17334 unsigned char host[64*1024];
17338 /* Bind 8/9 interface */
17339 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17341 /* Bind 4 interface */
17345 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17349 /* Bind 8/9 interface */
17351 #elif defined(HFIXEDSZ)
17352 /* Bind 4 interface w/ HFIXEDSZ */
17355 /* Bind 4 interface w/o HFIXEDSZ */
17356 p += sizeof(HEADER);
17358 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17366 (eval $ac_link) 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag"
17374 || test ! -s conftest.err'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; } &&
17380 { ac_try='test -s conftest$ac_exeext'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ol_cv_resolver_bind=yes
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ol_cv_resolver_bind=no
17393 rm -f conftest.err conftest.$ac_objext \
17394 conftest$ac_exeext conftest.$ac_ext
17399 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17400 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17402 if test $ol_cv_resolver_bind = yes ; then
17403 ol_cv_lib_resolver=-lbind
17410 if test "$ol_cv_lib_resolver" != no ; then
17412 cat >>confdefs.h <<\_ACEOF
17413 #define HAVE_RES_QUERY 1
17417 if test "$ol_enable_dnssrv" != no ; then
17421 if test "$ol_cv_lib_resolver" != yes ; then
17422 LIBS="$ol_cv_lib_resolver $LIBS"
17426 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17427 if test "$ol_link_dnssrv" = no ; then
17428 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17429 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17430 { (exit 1); exit 1; }; }
17433 ol_enable_dnssrv=no
17437 for ac_func in hstrerror
17439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17440 echo "$as_me:$LINENO: checking for $ac_func" >&5
17441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17442 if eval "test \"\${$as_ac_var+set}\" = set"; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17453 #define $ac_func innocuous_$ac_func
17455 /* System header to define __stub macros and hopefully few prototypes,
17456 which can conflict with char $ac_func (); below.
17457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17458 <limits.h> exists even on freestanding compilers. */
17461 # include <limits.h>
17463 # include <assert.h>
17468 /* Override any gcc2 internal prototype to avoid an error. */
17473 /* We use char because int might match the return type of a gcc2
17474 builtin and then its argument prototype would still apply. */
17476 /* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17482 char (*f) () = $ac_func;
17491 return f != $ac_func;
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498 (eval $ac_link) 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag"
17506 || test ! -s conftest.err'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest$ac_exeext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 eval "$as_ac_var=yes"
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 eval "$as_ac_var=no"
17525 rm -f conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17530 if test `eval echo '${'$as_ac_var'}'` = yes; then
17531 cat >>confdefs.h <<_ACEOF
17532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17543 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17546 echo "$as_me:$LINENO: checking for $ac_func" >&5
17547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17548 if eval "test \"\${$as_ac_var+set}\" = set"; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 cat >conftest.$ac_ext <<_ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17559 #define $ac_func innocuous_$ac_func
17561 /* System header to define __stub macros and hopefully few prototypes,
17562 which can conflict with char $ac_func (); below.
17563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17564 <limits.h> exists even on freestanding compilers. */
17567 # include <limits.h>
17569 # include <assert.h>
17574 /* Override any gcc2 internal prototype to avoid an error. */
17579 /* We use char because int might match the return type of a gcc2
17580 builtin and then its argument prototype would still apply. */
17582 /* The GNU C library defines this for functions which it implements
17583 to always fail with ENOSYS. Some functions are actually named
17584 something starting with __ and the normal name is an alias. */
17585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17588 char (*f) () = $ac_func;
17597 return f != $ac_func;
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17604 (eval $ac_link) 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -z "$ac_c_werror_flag"
17612 || test ! -s conftest.err'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest$ac_exeext'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 eval "$as_ac_var=yes"
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 eval "$as_ac_var=no"
17631 rm -f conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17636 if test `eval echo '${'$as_ac_var'}'` = yes; then
17637 cat >>confdefs.h <<_ACEOF
17638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17646 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17647 if test $ol_enable_ipv6 = yes ; then
17648 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17649 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17650 { (exit 1); exit 1; }; }
17652 elif test $ol_enable_ipv6 != no ; then
17653 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17654 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17655 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17666 # include <netinet/in.h>
17667 # ifdef INET6_ADDRSTRLEN
17668 __has_inet6_addrstrlen__;
17672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17673 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17674 ol_cv_inet6_addrstrlen=yes
17676 ol_cv_inet6_addrstrlen=no
17681 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17682 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17685 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17686 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17687 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17698 #include <sys/types.h>
17699 #include <sys/socket.h>
17705 struct sockaddr_storage ss;
17711 rm -f conftest.$ac_objext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713 (eval $ac_compile) 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -z "$ac_c_werror_flag"
17721 || test ! -s conftest.err'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } &&
17727 { ac_try='test -s conftest.$ac_objext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 ol_cv_struct_sockaddr_storage=yes
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 ol_cv_struct_sockaddr_storage=no
17740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17742 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17743 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17745 if test $ol_cv_inet6_addrstrlen = yes &&
17746 test $ol_cv_struct_sockaddr_storage = yes ; then
17748 elif test $ol_enable_ipv6 = yes &&
17749 test $ol_cv_inet6_addrstrlen = no ; then
17750 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17751 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17752 { (exit 1); exit 1; }; }
17753 elif test $ol_enable_ipv6 = yes &&
17754 test $ol_cv_struct_sockaddr_storage = no ; then
17755 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17756 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17757 { (exit 1); exit 1; }; }
17761 if test $ol_enable_local != no ; then
17763 for ac_header in sys/un.h
17765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17767 echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17775 # Is the header compilable?
17776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 $ac_includes_default
17785 #include <$ac_header>
17787 rm -f conftest.$ac_objext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17789 (eval $ac_compile) 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -z "$ac_c_werror_flag"
17797 || test ! -s conftest.err'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; } &&
17803 { ac_try='test -s conftest.$ac_objext'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17809 ac_header_compiler=yes
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 ac_header_compiler=no
17816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17818 echo "${ECHO_T}$ac_header_compiler" >&6
17820 # Is the header present?
17821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 #include <$ac_header>
17831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } >/dev/null; then
17839 if test -s conftest.err; then
17840 ac_cpp_err=$ac_c_preproc_warn_flag
17841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17848 if test -z "$ac_cpp_err"; then
17849 ac_header_preproc=yes
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 ac_header_preproc=no
17856 rm -f conftest.err conftest.$ac_ext
17857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17858 echo "${ECHO_T}$ac_header_preproc" >&6
17860 # So? What about this header?
17861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17867 ac_header_preproc=yes
17870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17884 ## ------------------------------------------ ##
17885 ## Report this to the AC_PACKAGE_NAME lists. ##
17886 ## ------------------------------------------ ##
17889 sed "s/^/$as_me: WARNING: /" >&2
17892 echo "$as_me:$LINENO: checking for $ac_header" >&5
17893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 eval "$as_ac_Header=\$ac_header_preproc"
17899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17904 cat >>confdefs.h <<_ACEOF
17905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17913 if test $ol_enable_local = auto ; then
17914 ol_enable_local=$ac_cv_header_sys_un_h
17915 elif test $ac_cv_header_sys_un_h = no ; then
17916 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17917 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17918 { (exit 1); exit 1; }; }
17926 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17929 for ac_header in krb5.h
17931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17933 echo "$as_me:$LINENO: checking for $ac_header" >&5
17934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17941 # Is the header compilable?
17942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 $ac_includes_default
17951 #include <$ac_header>
17953 rm -f conftest.$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955 (eval $ac_compile) 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_header_compiler=yes
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_header_compiler=no
17982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17984 echo "${ECHO_T}$ac_header_compiler" >&6
17986 # Is the header present?
17987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17989 cat >conftest.$ac_ext <<_ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 #include <$ac_header>
17997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18000 grep -v '^ *+' conftest.er1 >conftest.err
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } >/dev/null; then
18005 if test -s conftest.err; then
18006 ac_cpp_err=$ac_c_preproc_warn_flag
18007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18014 if test -z "$ac_cpp_err"; then
18015 ac_header_preproc=yes
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 ac_header_preproc=no
18022 rm -f conftest.err conftest.$ac_ext
18023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18024 echo "${ECHO_T}$ac_header_preproc" >&6
18026 # So? What about this header?
18027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18033 ac_header_preproc=yes
18036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18050 ## ------------------------------------------ ##
18051 ## Report this to the AC_PACKAGE_NAME lists. ##
18052 ## ------------------------------------------ ##
18055 sed "s/^/$as_me: WARNING: /" >&2
18058 echo "$as_me:$LINENO: checking for $ac_header" >&5
18059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 eval "$as_ac_Header=\$ac_header_preproc"
18065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18070 cat >>confdefs.h <<_ACEOF
18071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18079 if test $ac_cv_header_krb5_h = yes ; then
18081 for ac_header in heim_err.h
18083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18085 echo "$as_me:$LINENO: checking for $ac_header" >&5
18086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18093 # Is the header compilable?
18094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18096 cat >conftest.$ac_ext <<_ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 $ac_includes_default
18103 #include <$ac_header>
18105 rm -f conftest.$ac_objext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107 (eval $ac_compile) 2>conftest.er1
18109 grep -v '^ *+' conftest.er1 >conftest.err
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_header_compiler=yes
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18132 ac_header_compiler=no
18134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18136 echo "${ECHO_T}$ac_header_compiler" >&6
18138 # Is the header present?
18139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18141 cat >conftest.$ac_ext <<_ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18147 #include <$ac_header>
18149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } >/dev/null; then
18157 if test -s conftest.err; then
18158 ac_cpp_err=$ac_c_preproc_warn_flag
18159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18166 if test -z "$ac_cpp_err"; then
18167 ac_header_preproc=yes
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 ac_header_preproc=no
18174 rm -f conftest.err conftest.$ac_ext
18175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18176 echo "${ECHO_T}$ac_header_preproc" >&6
18178 # So? What about this header?
18179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18185 ac_header_preproc=yes
18188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18202 ## ------------------------------------------ ##
18203 ## Report this to the AC_PACKAGE_NAME lists. ##
18204 ## ------------------------------------------ ##
18207 sed "s/^/$as_me: WARNING: /" >&2
18210 echo "$as_me:$LINENO: checking for $ac_header" >&5
18211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18215 eval "$as_ac_Header=\$ac_header_preproc"
18217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18222 cat >>confdefs.h <<_ACEOF
18223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18230 if test $ac_cv_header_heim_err_h = yes ; then
18236 if test $krb5_impl = mit; then
18237 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18238 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18239 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 ac_check_lib_save_LIBS=$LIBS
18243 LIBS="-lk5crypto $LIBS"
18244 cat >conftest.$ac_ext <<_ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>conftest.er1
18264 grep -v '^ *+' conftest.er1 >conftest.err
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag"
18270 || test ! -s conftest.err'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest$ac_exeext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 ac_cv_lib_k5crypto_main=yes
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18287 ac_cv_lib_k5crypto_main=no
18289 rm -f conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18294 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18295 if test $ac_cv_lib_k5crypto_main = yes; then
18296 krb5crypto=k5crypto
18302 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18303 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18304 if test "${ac_cv_lib_krb5_main+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327 (eval $ac_link) 2>conftest.er1
18329 grep -v '^ *+' conftest.er1 >conftest.err
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -z "$ac_c_werror_flag"
18335 || test ! -s conftest.err'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest$ac_exeext'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_lib_krb5_main=yes
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 ac_cv_lib_krb5_main=no
18354 rm -f conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
18356 LIBS=$ac_check_lib_save_LIBS
18358 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18359 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18360 if test $ac_cv_lib_krb5_main = yes; then
18362 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18368 elif test $krb5_impl = heimdal; then
18369 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18370 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18371 if test "${ac_cv_lib_des_main+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 ac_check_lib_save_LIBS=$LIBS
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18394 (eval $ac_link) 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag"
18402 || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 ac_cv_lib_des_main=yes
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18419 ac_cv_lib_des_main=no
18421 rm -f conftest.err conftest.$ac_objext \
18422 conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18425 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18426 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18427 if test $ac_cv_lib_des_main = yes; then
18434 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18435 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18436 if test "${ac_cv_lib_krb5_main+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 ac_check_lib_save_LIBS=$LIBS
18440 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18441 cat >conftest.$ac_ext <<_ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18459 (eval $ac_link) 2>conftest.er1
18461 grep -v '^ *+' conftest.er1 >conftest.err
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try='test -z "$ac_c_werror_flag"
18467 || test ! -s conftest.err'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 ac_cv_lib_krb5_main=yes
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_cv_lib_krb5_main=no
18486 rm -f conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
18488 LIBS=$ac_check_lib_save_LIBS
18490 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18491 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18492 if test $ac_cv_lib_krb5_main = yes; then
18494 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_HEIMDAL_KERBEROS 1
18508 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18509 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18512 if test $have_krb5 = yes ; then
18516 cat >>confdefs.h <<\_ACEOF
18517 #define HAVE_KRB5 1
18521 if test $ol_with_kerberos = k5only ; then
18522 ol_with_kerberos=found
18525 elif test $ol_with_kerberos != auto ; then
18526 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18527 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18528 { (exit 1); exit 1; }; }
18535 if test $ol_link_krb5 = yes &&
18536 { test $ol_with_kerberos = yes ||
18537 test $ol_with_kerberos = auto ||
18538 test $ol_with_kerberos = k425; }; then
18542 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18546 echo "$as_me:$LINENO: checking for $ac_header" >&5
18547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18554 # Is the header compilable?
18555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 $ac_includes_default
18564 #include <$ac_header>
18566 rm -f conftest.$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568 (eval $ac_compile) 2>conftest.er1
18570 grep -v '^ *+' conftest.er1 >conftest.err
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -z "$ac_c_werror_flag"
18576 || test ! -s conftest.err'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest.$ac_objext'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 ac_header_compiler=yes
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 ac_header_compiler=no
18595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18597 echo "${ECHO_T}$ac_header_compiler" >&6
18599 # Is the header present?
18600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18602 cat >conftest.$ac_ext <<_ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 #include <$ac_header>
18610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18613 grep -v '^ *+' conftest.er1 >conftest.err
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } >/dev/null; then
18618 if test -s conftest.err; then
18619 ac_cpp_err=$ac_c_preproc_warn_flag
18620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18627 if test -z "$ac_cpp_err"; then
18628 ac_header_preproc=yes
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ac_header_preproc=no
18635 rm -f conftest.err conftest.$ac_ext
18636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18637 echo "${ECHO_T}$ac_header_preproc" >&6
18639 # So? What about this header?
18640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18646 ac_header_preproc=yes
18649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18663 ## ------------------------------------------ ##
18664 ## Report this to the AC_PACKAGE_NAME lists. ##
18665 ## ------------------------------------------ ##
18668 sed "s/^/$as_me: WARNING: /" >&2
18671 echo "$as_me:$LINENO: checking for $ac_header" >&5
18672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 eval "$as_ac_Header=\$ac_header_preproc"
18678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18692 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18693 if test $krb5_impl = mit; then
18694 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18695 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18696 if test "${ac_cv_lib_krb4_main+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18701 cat >conftest.$ac_ext <<_ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18719 (eval $ac_link) 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest$ac_exeext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_lib_krb4_main=yes
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 ac_cv_lib_krb4_main=no
18746 rm -f conftest.err conftest.$ac_objext \
18747 conftest$ac_exeext conftest.$ac_ext
18748 LIBS=$ac_check_lib_save_LIBS
18750 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18751 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18752 if test $ac_cv_lib_krb4_main = yes; then
18754 KRB4_LIBS="-lkrb4 -ldes425"
18760 elif test $krb5_impl = heimdal; then
18761 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18762 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18763 if test "${ac_cv_lib_krb4_main+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 ac_check_lib_save_LIBS=$LIBS
18767 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18768 cat >conftest.$ac_ext <<_ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18786 (eval $ac_link) 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag"
18794 || test ! -s conftest.err'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_cv_lib_krb4_main=yes
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_lib_krb4_main=no
18813 rm -f conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18817 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18818 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18819 if test $ac_cv_lib_krb4_main = yes; then
18829 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18830 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18833 if test $have_k425 = yes ; then
18834 ol_with_kerberos=found
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_KRB425 1
18843 cat >>confdefs.h <<\_ACEOF
18844 #define HAVE_KRB4 1
18848 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18849 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18850 if test "${ol_cv_var_des_debug+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18863 #include <kerberosIV/krb.h>
18864 #include <kerberosIV/des.h>
18865 extern int des_debug;
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879 (eval $ac_link) 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ol_cv_var_des_debug=yes
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ol_cv_var_des_debug=no
18906 rm -f conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18911 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18912 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18914 if test $ol_cv_var_des_debug = yes ; then
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_DES_DEBUG 1
18927 if test $ol_link_krb5 = yes ; then
18928 ol_with_kerberos=found
18931 case $ol_with_kerberos in yes | auto | k4 | kth)
18936 for ac_header in krb.h des.h krb-archaeology.h
18938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940 echo "$as_me:$LINENO: checking for $ac_header" >&5
18941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18948 # Is the header compilable?
18949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 $ac_includes_default
18958 #include <$ac_header>
18960 rm -f conftest.$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>conftest.er1
18964 grep -v '^ *+' conftest.er1 >conftest.err
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_c_werror_flag"
18970 || test ! -s conftest.err'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; } &&
18976 { ac_try='test -s conftest.$ac_objext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_header_compiler=yes
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 ac_header_compiler=no
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18991 echo "${ECHO_T}$ac_header_compiler" >&6
18993 # Is the header present?
18994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 #include <$ac_header>
19004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19007 grep -v '^ *+' conftest.er1 >conftest.err
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } >/dev/null; then
19012 if test -s conftest.err; then
19013 ac_cpp_err=$ac_c_preproc_warn_flag
19014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19021 if test -z "$ac_cpp_err"; then
19022 ac_header_preproc=yes
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 ac_header_preproc=no
19029 rm -f conftest.err conftest.$ac_ext
19030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19031 echo "${ECHO_T}$ac_header_preproc" >&6
19033 # So? What about this header?
19034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19040 ac_header_preproc=yes
19043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19057 ## ------------------------------------------ ##
19058 ## Report this to the AC_PACKAGE_NAME lists. ##
19059 ## ------------------------------------------ ##
19062 sed "s/^/$as_me: WARNING: /" >&2
19065 echo "$as_me:$LINENO: checking for $ac_header" >&5
19066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 eval "$as_ac_Header=\$ac_header_preproc"
19072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19077 cat >>confdefs.h <<_ACEOF
19078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19086 if test $ac_cv_header_krb_h = yes ; then
19087 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19088 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19089 if test "${ac_cv_lib_krb_main+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-lkrb -ldes $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112 (eval $ac_link) 2>conftest.er1
19114 grep -v '^ *+' conftest.er1 >conftest.err
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest$ac_exeext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_lib_krb_main=yes
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 ac_cv_lib_krb_main=no
19139 rm -f conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19141 LIBS=$ac_check_lib_save_LIBS
19143 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19144 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19145 if test $ac_cv_lib_krb_main = yes; then
19152 if test $have_k4 = yes ; then
19153 ol_with_kerberos=found
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_KRB4 1
19162 KRB4_LIBS="-lkrb -ldes"
19164 if test $ac_cv_header_krb_archaeology_h = yes ; then
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE_KTH_KERBEROS 1
19176 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19179 elif test $ol_enable_kbind = yes ; then
19180 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19181 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19182 { (exit 1); exit 1; }; }
19185 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19187 cat >>confdefs.h <<\_ACEOF
19188 #define HAVE_KERBEROS 1
19192 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19193 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19194 echo "$as_me: error: Kerberos detection failed" >&2;}
19195 { (exit 1); exit 1; }; }
19200 if test $ol_with_tls != no ; then
19202 for ac_header in openssl/ssl.h
19204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19206 echo "$as_me:$LINENO: checking for $ac_header" >&5
19207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19214 # Is the header compilable?
19215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 $ac_includes_default
19224 #include <$ac_header>
19226 rm -f conftest.$ac_objext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228 (eval $ac_compile) 2>conftest.er1
19230 grep -v '^ *+' conftest.er1 >conftest.err
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -z "$ac_c_werror_flag"
19236 || test ! -s conftest.err'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_header_compiler=yes
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ac_header_compiler=no
19255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19257 echo "${ECHO_T}$ac_header_compiler" >&6
19259 # Is the header present?
19260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19262 cat >conftest.$ac_ext <<_ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 #include <$ac_header>
19270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } >/dev/null; then
19278 if test -s conftest.err; then
19279 ac_cpp_err=$ac_c_preproc_warn_flag
19280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19287 if test -z "$ac_cpp_err"; then
19288 ac_header_preproc=yes
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_header_preproc=no
19295 rm -f conftest.err conftest.$ac_ext
19296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19297 echo "${ECHO_T}$ac_header_preproc" >&6
19299 # So? What about this header?
19300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19306 ac_header_preproc=yes
19309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19323 ## ------------------------------------------ ##
19324 ## Report this to the AC_PACKAGE_NAME lists. ##
19325 ## ------------------------------------------ ##
19328 sed "s/^/$as_me: WARNING: /" >&2
19331 echo "$as_me:$LINENO: checking for $ac_header" >&5
19332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 eval "$as_ac_Header=\$ac_header_preproc"
19338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19343 cat >>confdefs.h <<_ACEOF
19344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19352 if test $ac_cv_header_openssl_ssl_h = yes ; then
19353 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19354 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19355 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 ac_check_lib_save_LIBS=$LIBS
19359 LIBS="-lssl -lcrypto $LIBS"
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19367 /* Override any gcc2 internal prototype to avoid an error. */
19371 /* We use char because int might match the return type of a gcc2
19372 builtin and then its argument prototype would still apply. */
19373 char SSL_library_init ();
19377 SSL_library_init ();
19382 rm -f conftest.$ac_objext conftest$ac_exeext
19383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19384 (eval $ac_link) 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
19391 { ac_try='test -z "$ac_c_werror_flag"
19392 || test ! -s conftest.err'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest$ac_exeext'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; }; then
19404 ac_cv_lib_ssl_SSL_library_init=yes
19406 echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19409 ac_cv_lib_ssl_SSL_library_init=no
19411 rm -f conftest.err conftest.$ac_objext \
19412 conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19415 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19416 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19417 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19425 if test $have_openssl = no ; then
19426 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19427 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19428 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 ac_check_lib_save_LIBS=$LIBS
19432 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19433 cat >conftest.$ac_ext <<_ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19440 /* Override any gcc2 internal prototype to avoid an error. */
19444 /* We use char because int might match the return type of a gcc2
19445 builtin and then its argument prototype would still apply. */
19446 char ssl3_accept ();
19455 rm -f conftest.$ac_objext conftest$ac_exeext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19457 (eval $ac_link) 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_c_werror_flag"
19465 || test ! -s conftest.err'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest$ac_exeext'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 ac_cv_lib_ssl_ssl3_accept=yes
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_cv_lib_ssl_ssl3_accept=no
19484 rm -f conftest.err conftest.$ac_objext \
19485 conftest$ac_exeext conftest.$ac_ext
19486 LIBS=$ac_check_lib_save_LIBS
19488 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19489 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19490 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19499 if test $have_openssl = yes ; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_OPENSSL 1
19509 if test $need_rsaref = yes; then
19511 cat >>confdefs.h <<\_ACEOF
19512 #define HAVE_RSAREF 1
19516 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19518 TLS_LIBS="-lssl -lcrypto"
19521 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19522 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19523 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 #ifdef HAVE_OPENSSL_SSL_H
19535 #include <openssl/ssl.h>
19540 /* Require 0.9.7d+ */
19541 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19542 char *__ssl_compat = "0.9.7d";
19546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19547 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19548 ol_cv_ssl_crl_compat=yes
19550 ol_cv_ssl_crl_compat=no
19555 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19556 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19558 if test $ol_cv_ssl_crl_compat = no ; then
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_OPENSSL_CRL 1
19570 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19571 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19575 if test $ol_link_tls = yes ; then
19577 cat >>confdefs.h <<\_ACEOF
19583 elif test $ol_with_tls = auto ; then
19584 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19585 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19587 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19589 elif test $ol_with_tls != no ; then
19590 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19591 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19592 { (exit 1); exit 1; }; }
19595 if test $ol_enable_lmpasswd != no; then
19596 if test $ol_link_tls != yes ; then
19597 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19598 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19599 { (exit 1); exit 1; }; }
19603 cat >>confdefs.h <<\_ACEOF
19604 #define SLAPD_LMHASH 1
19611 case $ol_with_threads in auto | yes | nt)
19614 echo "$as_me:$LINENO: checking for _beginthread" >&5
19615 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19616 if test "${ac_cv_func__beginthread+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19627 #define _beginthread innocuous__beginthread
19629 /* System header to define __stub macros and hopefully few prototypes,
19630 which can conflict with char _beginthread (); below.
19631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19632 <limits.h> exists even on freestanding compilers. */
19635 # include <limits.h>
19637 # include <assert.h>
19640 #undef _beginthread
19642 /* Override any gcc2 internal prototype to avoid an error. */
19647 /* We use char because int might match the return type of a gcc2
19648 builtin and then its argument prototype would still apply. */
19649 char _beginthread ();
19650 /* The GNU C library defines this for functions which it implements
19651 to always fail with ENOSYS. Some functions are actually named
19652 something starting with __ and the normal name is an alias. */
19653 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19656 char (*f) () = _beginthread;
19665 return f != _beginthread;
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19672 (eval $ac_link) 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag"
19680 || test ! -s conftest.err'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest$ac_exeext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_func__beginthread=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_cv_func__beginthread=no
19699 rm -f conftest.err conftest.$ac_objext \
19700 conftest$ac_exeext conftest.$ac_ext
19702 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19703 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19706 if test $ac_cv_func__beginthread = yes ; then
19708 cat >>confdefs.h <<\_ACEOF
19709 #define HAVE_NT_THREADS 1
19712 ol_cv_nt_threads=yes
19716 if test "$ol_cv_nt_threads" = yes ; then
19718 ol_with_threads=found
19719 ol_with_yielding_select=yes
19722 cat >>confdefs.h <<\_ACEOF
19723 #define HAVE_NT_SERVICE_MANAGER 1
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_NT_EVENT_LOG 1
19733 if test $ol_with_threads = nt ; then
19734 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19735 echo "$as_me: error: could not locate NT Threads" >&2;}
19736 { (exit 1); exit 1; }; }
19741 case $ol_with_threads in auto | yes | posix)
19744 for ac_header in pthread.h
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19748 echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19756 # Is the header compilable?
19757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 $ac_includes_default
19766 #include <$ac_header>
19768 rm -f conftest.$ac_objext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19770 (eval $ac_compile) 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_header_compiler=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_header_compiler=no
19797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19799 echo "${ECHO_T}$ac_header_compiler" >&6
19801 # Is the header present?
19802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 #include <$ac_header>
19812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19815 grep -v '^ *+' conftest.er1 >conftest.err
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } >/dev/null; then
19820 if test -s conftest.err; then
19821 ac_cpp_err=$ac_c_preproc_warn_flag
19822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19829 if test -z "$ac_cpp_err"; then
19830 ac_header_preproc=yes
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_preproc=no
19837 rm -f conftest.err conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19839 echo "${ECHO_T}$ac_header_preproc" >&6
19841 # So? What about this header?
19842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19848 ac_header_preproc=yes
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19865 ## ------------------------------------------ ##
19866 ## Report this to the AC_PACKAGE_NAME lists. ##
19867 ## ------------------------------------------ ##
19870 sed "s/^/$as_me: WARNING: /" >&2
19873 echo "$as_me:$LINENO: checking for $ac_header" >&5
19874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 eval "$as_ac_Header=\$ac_header_preproc"
19880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19885 cat >>confdefs.h <<_ACEOF
19886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19894 if test $ac_cv_header_pthread_h = yes ; then
19895 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19896 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19897 if test "${ol_cv_pthread_version+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 cat >conftest.$ac_ext <<_ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19908 # include <pthread.h>
19914 int i = PTHREAD_CREATE_JOINABLE;
19920 rm -f conftest.$ac_objext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19922 (eval $ac_compile) 2>conftest.er1
19924 grep -v '^ *+' conftest.er1 >conftest.err
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
19929 { ac_try='test -z "$ac_c_werror_flag"
19930 || test ! -s conftest.err'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest.$ac_objext'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 #include <pthread.h>
19952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19953 $EGREP "pthread_detach" >/dev/null 2>&1; then
19954 ol_cv_pthread_version=10
19956 ol_cv_pthread_version=8
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19972 # include <pthread.h>
19973 # ifdef PTHREAD_CREATE_UNDETACHED
19978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19979 $EGREP "draft7" >/dev/null 2>&1; then
19980 ol_cv_pthread_version=7
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #include <pthread.h>
19992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19994 ol_cv_pthread_version=6
19997 cat >conftest.$ac_ext <<_ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20004 # include <pthread.h>
20005 #ifdef PTHREAD_MUTEX_INITIALIZER
20010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20011 $EGREP "draft5" >/dev/null 2>&1; then
20012 ol_cv_pthread_version=5
20014 ol_cv_pthread_version=4
20025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20029 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20032 if test $ol_cv_pthread_version != 0 ; then
20034 cat >>confdefs.h <<_ACEOF
20035 #define HAVE_PTHREADS $ol_cv_pthread_version
20039 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20040 echo "$as_me: error: unknown pthread version" >&2;}
20041 { (exit 1); exit 1; }; }
20044 # consider threads found
20045 ol_with_threads=found
20048 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20049 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20050 if test "${ol_cv_header_linux_threads+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #include <pthread.h>
20061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20062 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20063 ol_cv_header_linux_threads=yes
20065 ol_cv_header_linux_threads=no
20071 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20072 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20073 if test $ol_cv_header_linux_threads = yes; then
20075 cat >>confdefs.h <<\_ACEOF
20076 #define HAVE_LINUX_THREADS 1
20082 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20083 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20084 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 cat >conftest.$ac_ext <<_ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 #include <pthread.h>
20094 #ifdef _POSIX_THREAD_IS_GNU_PTH
20099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20100 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20101 ol_cv_header_gnu_pth_pthread_h=yes
20103 ol_cv_header_gnu_pth_pthread_h=no
20109 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20110 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20113 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20115 for ac_header in sched.h
20117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20119 echo "$as_me:$LINENO: checking for $ac_header" >&5
20120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20127 # Is the header compilable?
20128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20137 #include <$ac_header>
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>conftest.er1
20143 grep -v '^ *+' conftest.er1 >conftest.err
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
20148 { ac_try='test -z "$ac_c_werror_flag"
20149 || test ! -s conftest.err'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_header_compiler=yes
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ac_header_compiler=no
20168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6
20172 # Is the header present?
20173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 #include <$ac_header>
20183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } >/dev/null; then
20191 if test -s conftest.err; then
20192 ac_cpp_err=$ac_c_preproc_warn_flag
20193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20200 if test -z "$ac_cpp_err"; then
20201 ac_header_preproc=yes
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_header_preproc=no
20208 rm -f conftest.err conftest.$ac_ext
20209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20210 echo "${ECHO_T}$ac_header_preproc" >&6
20212 # So? What about this header?
20213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20219 ac_header_preproc=yes
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20236 ## ------------------------------------------ ##
20237 ## Report this to the AC_PACKAGE_NAME lists. ##
20238 ## ------------------------------------------ ##
20241 sed "s/^/$as_me: WARNING: /" >&2
20244 echo "$as_me:$LINENO: checking for $ac_header" >&5
20245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 eval "$as_ac_Header=\$ac_header_preproc"
20251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20256 cat >>confdefs.h <<_ACEOF
20257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20267 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20268 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20269 if test "${ol_cv_pthread_create+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 if test "$cross_compiling" = yes; then
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 /* pthread test headers */
20282 #include <pthread.h>
20283 #if HAVE_PTHREADS < 7
20287 #define NULL (void*)0
20290 static void *task(p)
20293 return (void *) (p == NULL);
20300 /* pthread test function */
20301 #ifndef PTHREAD_CREATE_DETACHED
20302 #define PTHREAD_CREATE_DETACHED 1
20306 int detach = PTHREAD_CREATE_DETACHED;
20308 #if HAVE_PTHREADS > 4
20309 /* Final pthreads */
20310 pthread_attr_t attr;
20312 status = pthread_attr_init(&attr);
20313 if( status ) return status;
20315 #if HAVE_PTHREADS < 7
20316 status = pthread_attr_setdetachstate(&attr, &detach);
20317 if( status < 0 ) status = errno;
20319 status = pthread_attr_setdetachstate(&attr, detach);
20321 if( status ) return status;
20322 status = pthread_create( &t, &attr, task, NULL );
20323 #if HAVE_PTHREADS < 7
20324 if( status < 0 ) status = errno;
20326 if( status ) return status;
20328 /* Draft 4 pthreads */
20329 status = pthread_create( &t, pthread_attr_default, task, NULL );
20330 if( status ) return errno;
20332 /* give thread a chance to complete */
20333 /* it should remain joinable and hence detachable */
20336 status = pthread_detach( &t );
20337 if( status ) return errno;
20340 #ifdef HAVE_LINUX_THREADS
20341 pthread_kill_other_threads_np();
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20352 (eval $ac_link) 2>conftest.er1
20354 grep -v '^ *+' conftest.er1 >conftest.err
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
20359 { ac_try='test -z "$ac_c_werror_flag"
20360 || test ! -s conftest.err'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; } &&
20366 { ac_try='test -s conftest$ac_exeext'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 ol_cv_pthread_create=yes
20374 echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20377 ol_cv_pthread_create=no
20379 rm -f conftest.err conftest.$ac_objext \
20380 conftest$ac_exeext conftest.$ac_ext
20382 cat >conftest.$ac_ext <<_ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20389 /* pthread test headers */
20390 #include <pthread.h>
20391 #if HAVE_PTHREADS < 7
20395 #define NULL (void*)0
20398 static void *task(p)
20401 return (void *) (p == NULL);
20405 int main(argc, argv)
20410 /* pthread test function */
20411 #ifndef PTHREAD_CREATE_DETACHED
20412 #define PTHREAD_CREATE_DETACHED 1
20416 int detach = PTHREAD_CREATE_DETACHED;
20418 #if HAVE_PTHREADS > 4
20419 /* Final pthreads */
20420 pthread_attr_t attr;
20422 status = pthread_attr_init(&attr);
20423 if( status ) return status;
20425 #if HAVE_PTHREADS < 7
20426 status = pthread_attr_setdetachstate(&attr, &detach);
20427 if( status < 0 ) status = errno;
20429 status = pthread_attr_setdetachstate(&attr, detach);
20431 if( status ) return status;
20432 status = pthread_create( &t, &attr, task, NULL );
20433 #if HAVE_PTHREADS < 7
20434 if( status < 0 ) status = errno;
20436 if( status ) return status;
20438 /* Draft 4 pthreads */
20439 status = pthread_create( &t, pthread_attr_default, task, NULL );
20440 if( status ) return errno;
20442 /* give thread a chance to complete */
20443 /* it should remain joinable and hence detachable */
20446 status = pthread_detach( &t );
20447 if( status ) return errno;
20450 #ifdef HAVE_LINUX_THREADS
20451 pthread_kill_other_threads_np();
20459 rm -f conftest$ac_exeext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20461 (eval $ac_link) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ol_cv_pthread_create=yes
20472 echo "$as_me: program exited with status $ac_status" >&5
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ( exit $ac_status )
20477 ol_cv_pthread_create=no
20479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20483 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20485 if test $ol_cv_pthread_create != no ; then
20486 ol_link_threads=posix
20487 ol_link_pthreads=""
20490 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20491 if test "$ol_link_threads" = no ; then
20493 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20494 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20495 if test "${ol_cv_pthread_kthread+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 LIBS="-kthread $LIBS"
20503 if test "$cross_compiling" = yes; then
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20511 /* pthread test headers */
20512 #include <pthread.h>
20513 #if HAVE_PTHREADS < 7
20517 #define NULL (void*)0
20520 static void *task(p)
20523 return (void *) (p == NULL);
20530 /* pthread test function */
20531 #ifndef PTHREAD_CREATE_DETACHED
20532 #define PTHREAD_CREATE_DETACHED 1
20536 int detach = PTHREAD_CREATE_DETACHED;
20538 #if HAVE_PTHREADS > 4
20539 /* Final pthreads */
20540 pthread_attr_t attr;
20542 status = pthread_attr_init(&attr);
20543 if( status ) return status;
20545 #if HAVE_PTHREADS < 7
20546 status = pthread_attr_setdetachstate(&attr, &detach);
20547 if( status < 0 ) status = errno;
20549 status = pthread_attr_setdetachstate(&attr, detach);
20551 if( status ) return status;
20552 status = pthread_create( &t, &attr, task, NULL );
20553 #if HAVE_PTHREADS < 7
20554 if( status < 0 ) status = errno;
20556 if( status ) return status;
20558 /* Draft 4 pthreads */
20559 status = pthread_create( &t, pthread_attr_default, task, NULL );
20560 if( status ) return errno;
20562 /* give thread a chance to complete */
20563 /* it should remain joinable and hence detachable */
20566 status = pthread_detach( &t );
20567 if( status ) return errno;
20570 #ifdef HAVE_LINUX_THREADS
20571 pthread_kill_other_threads_np();
20580 rm -f conftest.$ac_objext conftest$ac_exeext
20581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20582 (eval $ac_link) 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try='test -z "$ac_c_werror_flag"
20590 || test ! -s conftest.err'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; } &&
20596 { ac_try='test -s conftest$ac_exeext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 ol_cv_pthread_kthread=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ol_cv_pthread_kthread=no
20609 rm -f conftest.err conftest.$ac_objext \
20610 conftest$ac_exeext conftest.$ac_ext
20612 cat >conftest.$ac_ext <<_ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20619 /* pthread test headers */
20620 #include <pthread.h>
20621 #if HAVE_PTHREADS < 7
20625 #define NULL (void*)0
20628 static void *task(p)
20631 return (void *) (p == NULL);
20635 int main(argc, argv)
20640 /* pthread test function */
20641 #ifndef PTHREAD_CREATE_DETACHED
20642 #define PTHREAD_CREATE_DETACHED 1
20646 int detach = PTHREAD_CREATE_DETACHED;
20648 #if HAVE_PTHREADS > 4
20649 /* Final pthreads */
20650 pthread_attr_t attr;
20652 status = pthread_attr_init(&attr);
20653 if( status ) return status;
20655 #if HAVE_PTHREADS < 7
20656 status = pthread_attr_setdetachstate(&attr, &detach);
20657 if( status < 0 ) status = errno;
20659 status = pthread_attr_setdetachstate(&attr, detach);
20661 if( status ) return status;
20662 status = pthread_create( &t, &attr, task, NULL );
20663 #if HAVE_PTHREADS < 7
20664 if( status < 0 ) status = errno;
20666 if( status ) return status;
20668 /* Draft 4 pthreads */
20669 status = pthread_create( &t, pthread_attr_default, task, NULL );
20670 if( status ) return errno;
20672 /* give thread a chance to complete */
20673 /* it should remain joinable and hence detachable */
20676 status = pthread_detach( &t );
20677 if( status ) return errno;
20680 #ifdef HAVE_LINUX_THREADS
20681 pthread_kill_other_threads_np();
20689 rm -f conftest$ac_exeext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691 (eval $ac_link) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ol_cv_pthread_kthread=yes
20702 echo "$as_me: program exited with status $ac_status" >&5
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ( exit $ac_status )
20707 ol_cv_pthread_kthread=no
20709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20716 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20717 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20719 if test $ol_cv_pthread_kthread = yes ; then
20720 ol_link_pthreads="-kthread"
20721 ol_link_threads=posix
20725 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20726 if test "$ol_link_threads" = no ; then
20728 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20729 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20730 if test "${ol_cv_pthread_pthread+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 LIBS="-pthread $LIBS"
20738 if test "$cross_compiling" = yes; then
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20746 /* pthread test headers */
20747 #include <pthread.h>
20748 #if HAVE_PTHREADS < 7
20752 #define NULL (void*)0
20755 static void *task(p)
20758 return (void *) (p == NULL);
20765 /* pthread test function */
20766 #ifndef PTHREAD_CREATE_DETACHED
20767 #define PTHREAD_CREATE_DETACHED 1
20771 int detach = PTHREAD_CREATE_DETACHED;
20773 #if HAVE_PTHREADS > 4
20774 /* Final pthreads */
20775 pthread_attr_t attr;
20777 status = pthread_attr_init(&attr);
20778 if( status ) return status;
20780 #if HAVE_PTHREADS < 7
20781 status = pthread_attr_setdetachstate(&attr, &detach);
20782 if( status < 0 ) status = errno;
20784 status = pthread_attr_setdetachstate(&attr, detach);
20786 if( status ) return status;
20787 status = pthread_create( &t, &attr, task, NULL );
20788 #if HAVE_PTHREADS < 7
20789 if( status < 0 ) status = errno;
20791 if( status ) return status;
20793 /* Draft 4 pthreads */
20794 status = pthread_create( &t, pthread_attr_default, task, NULL );
20795 if( status ) return errno;
20797 /* give thread a chance to complete */
20798 /* it should remain joinable and hence detachable */
20801 status = pthread_detach( &t );
20802 if( status ) return errno;
20805 #ifdef HAVE_LINUX_THREADS
20806 pthread_kill_other_threads_np();
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20817 (eval $ac_link) 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } &&
20824 { ac_try='test -z "$ac_c_werror_flag"
20825 || test ! -s conftest.err'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; } &&
20831 { ac_try='test -s conftest$ac_exeext'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ol_cv_pthread_pthread=yes
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ol_cv_pthread_pthread=no
20844 rm -f conftest.err conftest.$ac_objext \
20845 conftest$ac_exeext conftest.$ac_ext
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20854 /* pthread test headers */
20855 #include <pthread.h>
20856 #if HAVE_PTHREADS < 7
20860 #define NULL (void*)0
20863 static void *task(p)
20866 return (void *) (p == NULL);
20870 int main(argc, argv)
20875 /* pthread test function */
20876 #ifndef PTHREAD_CREATE_DETACHED
20877 #define PTHREAD_CREATE_DETACHED 1
20881 int detach = PTHREAD_CREATE_DETACHED;
20883 #if HAVE_PTHREADS > 4
20884 /* Final pthreads */
20885 pthread_attr_t attr;
20887 status = pthread_attr_init(&attr);
20888 if( status ) return status;
20890 #if HAVE_PTHREADS < 7
20891 status = pthread_attr_setdetachstate(&attr, &detach);
20892 if( status < 0 ) status = errno;
20894 status = pthread_attr_setdetachstate(&attr, detach);
20896 if( status ) return status;
20897 status = pthread_create( &t, &attr, task, NULL );
20898 #if HAVE_PTHREADS < 7
20899 if( status < 0 ) status = errno;
20901 if( status ) return status;
20903 /* Draft 4 pthreads */
20904 status = pthread_create( &t, pthread_attr_default, task, NULL );
20905 if( status ) return errno;
20907 /* give thread a chance to complete */
20908 /* it should remain joinable and hence detachable */
20911 status = pthread_detach( &t );
20912 if( status ) return errno;
20915 #ifdef HAVE_LINUX_THREADS
20916 pthread_kill_other_threads_np();
20924 rm -f conftest$ac_exeext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20926 (eval $ac_link) 2>&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ol_cv_pthread_pthread=yes
20937 echo "$as_me: program exited with status $ac_status" >&5
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 ( exit $ac_status )
20942 ol_cv_pthread_pthread=no
20944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20951 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20952 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20954 if test $ol_cv_pthread_pthread = yes ; then
20955 ol_link_pthreads="-pthread"
20956 ol_link_threads=posix
20960 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20961 if test "$ol_link_threads" = no ; then
20963 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20964 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20965 if test "${ol_cv_pthread_pthreads+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 LIBS="-pthreads $LIBS"
20973 if test "$cross_compiling" = yes; then
20974 cat >conftest.$ac_ext <<_ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20981 /* pthread test headers */
20982 #include <pthread.h>
20983 #if HAVE_PTHREADS < 7
20987 #define NULL (void*)0
20990 static void *task(p)
20993 return (void *) (p == NULL);
21000 /* pthread test function */
21001 #ifndef PTHREAD_CREATE_DETACHED
21002 #define PTHREAD_CREATE_DETACHED 1
21006 int detach = PTHREAD_CREATE_DETACHED;
21008 #if HAVE_PTHREADS > 4
21009 /* Final pthreads */
21010 pthread_attr_t attr;
21012 status = pthread_attr_init(&attr);
21013 if( status ) return status;
21015 #if HAVE_PTHREADS < 7
21016 status = pthread_attr_setdetachstate(&attr, &detach);
21017 if( status < 0 ) status = errno;
21019 status = pthread_attr_setdetachstate(&attr, detach);
21021 if( status ) return status;
21022 status = pthread_create( &t, &attr, task, NULL );
21023 #if HAVE_PTHREADS < 7
21024 if( status < 0 ) status = errno;
21026 if( status ) return status;
21028 /* Draft 4 pthreads */
21029 status = pthread_create( &t, pthread_attr_default, task, NULL );
21030 if( status ) return errno;
21032 /* give thread a chance to complete */
21033 /* it should remain joinable and hence detachable */
21036 status = pthread_detach( &t );
21037 if( status ) return errno;
21040 #ifdef HAVE_LINUX_THREADS
21041 pthread_kill_other_threads_np();
21050 rm -f conftest.$ac_objext conftest$ac_exeext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21052 (eval $ac_link) 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
21059 { ac_try='test -z "$ac_c_werror_flag"
21060 || test ! -s conftest.err'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; } &&
21066 { ac_try='test -s conftest$ac_exeext'
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; }; then
21072 ol_cv_pthread_pthreads=yes
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21077 ol_cv_pthread_pthreads=no
21079 rm -f conftest.err conftest.$ac_objext \
21080 conftest$ac_exeext conftest.$ac_ext
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21089 /* pthread test headers */
21090 #include <pthread.h>
21091 #if HAVE_PTHREADS < 7
21095 #define NULL (void*)0
21098 static void *task(p)
21101 return (void *) (p == NULL);
21105 int main(argc, argv)
21110 /* pthread test function */
21111 #ifndef PTHREAD_CREATE_DETACHED
21112 #define PTHREAD_CREATE_DETACHED 1
21116 int detach = PTHREAD_CREATE_DETACHED;
21118 #if HAVE_PTHREADS > 4
21119 /* Final pthreads */
21120 pthread_attr_t attr;
21122 status = pthread_attr_init(&attr);
21123 if( status ) return status;
21125 #if HAVE_PTHREADS < 7
21126 status = pthread_attr_setdetachstate(&attr, &detach);
21127 if( status < 0 ) status = errno;
21129 status = pthread_attr_setdetachstate(&attr, detach);
21131 if( status ) return status;
21132 status = pthread_create( &t, &attr, task, NULL );
21133 #if HAVE_PTHREADS < 7
21134 if( status < 0 ) status = errno;
21136 if( status ) return status;
21138 /* Draft 4 pthreads */
21139 status = pthread_create( &t, pthread_attr_default, task, NULL );
21140 if( status ) return errno;
21142 /* give thread a chance to complete */
21143 /* it should remain joinable and hence detachable */
21146 status = pthread_detach( &t );
21147 if( status ) return errno;
21150 #ifdef HAVE_LINUX_THREADS
21151 pthread_kill_other_threads_np();
21159 rm -f conftest$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161 (eval $ac_link) 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ol_cv_pthread_pthreads=yes
21172 echo "$as_me: program exited with status $ac_status" >&5
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 ( exit $ac_status )
21177 ol_cv_pthread_pthreads=no
21179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21186 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21187 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21189 if test $ol_cv_pthread_pthreads = yes ; then
21190 ol_link_pthreads="-pthreads"
21191 ol_link_threads=posix
21195 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21196 if test "$ol_link_threads" = no ; then
21198 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21199 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21200 if test "${ol_cv_pthread_mthreads+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 LIBS="-mthreads $LIBS"
21208 if test "$cross_compiling" = yes; then
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21216 /* pthread test headers */
21217 #include <pthread.h>
21218 #if HAVE_PTHREADS < 7
21222 #define NULL (void*)0
21225 static void *task(p)
21228 return (void *) (p == NULL);
21235 /* pthread test function */
21236 #ifndef PTHREAD_CREATE_DETACHED
21237 #define PTHREAD_CREATE_DETACHED 1
21241 int detach = PTHREAD_CREATE_DETACHED;
21243 #if HAVE_PTHREADS > 4
21244 /* Final pthreads */
21245 pthread_attr_t attr;
21247 status = pthread_attr_init(&attr);
21248 if( status ) return status;
21250 #if HAVE_PTHREADS < 7
21251 status = pthread_attr_setdetachstate(&attr, &detach);
21252 if( status < 0 ) status = errno;
21254 status = pthread_attr_setdetachstate(&attr, detach);
21256 if( status ) return status;
21257 status = pthread_create( &t, &attr, task, NULL );
21258 #if HAVE_PTHREADS < 7
21259 if( status < 0 ) status = errno;
21261 if( status ) return status;
21263 /* Draft 4 pthreads */
21264 status = pthread_create( &t, pthread_attr_default, task, NULL );
21265 if( status ) return errno;
21267 /* give thread a chance to complete */
21268 /* it should remain joinable and hence detachable */
21271 status = pthread_detach( &t );
21272 if( status ) return errno;
21275 #ifdef HAVE_LINUX_THREADS
21276 pthread_kill_other_threads_np();
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21287 (eval $ac_link) 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
21294 { ac_try='test -z "$ac_c_werror_flag"
21295 || test ! -s conftest.err'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest$ac_exeext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ol_cv_pthread_mthreads=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ol_cv_pthread_mthreads=no
21314 rm -f conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
21317 cat >conftest.$ac_ext <<_ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21324 /* pthread test headers */
21325 #include <pthread.h>
21326 #if HAVE_PTHREADS < 7
21330 #define NULL (void*)0
21333 static void *task(p)
21336 return (void *) (p == NULL);
21340 int main(argc, argv)
21345 /* pthread test function */
21346 #ifndef PTHREAD_CREATE_DETACHED
21347 #define PTHREAD_CREATE_DETACHED 1
21351 int detach = PTHREAD_CREATE_DETACHED;
21353 #if HAVE_PTHREADS > 4
21354 /* Final pthreads */
21355 pthread_attr_t attr;
21357 status = pthread_attr_init(&attr);
21358 if( status ) return status;
21360 #if HAVE_PTHREADS < 7
21361 status = pthread_attr_setdetachstate(&attr, &detach);
21362 if( status < 0 ) status = errno;
21364 status = pthread_attr_setdetachstate(&attr, detach);
21366 if( status ) return status;
21367 status = pthread_create( &t, &attr, task, NULL );
21368 #if HAVE_PTHREADS < 7
21369 if( status < 0 ) status = errno;
21371 if( status ) return status;
21373 /* Draft 4 pthreads */
21374 status = pthread_create( &t, pthread_attr_default, task, NULL );
21375 if( status ) return errno;
21377 /* give thread a chance to complete */
21378 /* it should remain joinable and hence detachable */
21381 status = pthread_detach( &t );
21382 if( status ) return errno;
21385 #ifdef HAVE_LINUX_THREADS
21386 pthread_kill_other_threads_np();
21394 rm -f conftest$ac_exeext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21396 (eval $ac_link) 2>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; }; then
21405 ol_cv_pthread_mthreads=yes
21407 echo "$as_me: program exited with status $ac_status" >&5
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ( exit $ac_status )
21412 ol_cv_pthread_mthreads=no
21414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21421 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21422 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21424 if test $ol_cv_pthread_mthreads = yes ; then
21425 ol_link_pthreads="-mthreads"
21426 ol_link_threads=posix
21430 # Pthread try link: -thread (ol_cv_pthread_thread)
21431 if test "$ol_link_threads" = no ; then
21433 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21434 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21435 if test "${ol_cv_pthread_thread+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 LIBS="-thread $LIBS"
21443 if test "$cross_compiling" = yes; then
21444 cat >conftest.$ac_ext <<_ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h. */
21451 /* pthread test headers */
21452 #include <pthread.h>
21453 #if HAVE_PTHREADS < 7
21457 #define NULL (void*)0
21460 static void *task(p)
21463 return (void *) (p == NULL);
21470 /* pthread test function */
21471 #ifndef PTHREAD_CREATE_DETACHED
21472 #define PTHREAD_CREATE_DETACHED 1
21476 int detach = PTHREAD_CREATE_DETACHED;
21478 #if HAVE_PTHREADS > 4
21479 /* Final pthreads */
21480 pthread_attr_t attr;
21482 status = pthread_attr_init(&attr);
21483 if( status ) return status;
21485 #if HAVE_PTHREADS < 7
21486 status = pthread_attr_setdetachstate(&attr, &detach);
21487 if( status < 0 ) status = errno;
21489 status = pthread_attr_setdetachstate(&attr, detach);
21491 if( status ) return status;
21492 status = pthread_create( &t, &attr, task, NULL );
21493 #if HAVE_PTHREADS < 7
21494 if( status < 0 ) status = errno;
21496 if( status ) return status;
21498 /* Draft 4 pthreads */
21499 status = pthread_create( &t, pthread_attr_default, task, NULL );
21500 if( status ) return errno;
21502 /* give thread a chance to complete */
21503 /* it should remain joinable and hence detachable */
21506 status = pthread_detach( &t );
21507 if( status ) return errno;
21510 #ifdef HAVE_LINUX_THREADS
21511 pthread_kill_other_threads_np();
21520 rm -f conftest.$ac_objext conftest$ac_exeext
21521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21522 (eval $ac_link) 2>conftest.er1
21524 grep -v '^ *+' conftest.er1 >conftest.err
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } &&
21529 { ac_try='test -z "$ac_c_werror_flag"
21530 || test ! -s conftest.err'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest$ac_exeext'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; }; then
21542 ol_cv_pthread_thread=yes
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ol_cv_pthread_thread=no
21549 rm -f conftest.err conftest.$ac_objext \
21550 conftest$ac_exeext conftest.$ac_ext
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21559 /* pthread test headers */
21560 #include <pthread.h>
21561 #if HAVE_PTHREADS < 7
21565 #define NULL (void*)0
21568 static void *task(p)
21571 return (void *) (p == NULL);
21575 int main(argc, argv)
21580 /* pthread test function */
21581 #ifndef PTHREAD_CREATE_DETACHED
21582 #define PTHREAD_CREATE_DETACHED 1
21586 int detach = PTHREAD_CREATE_DETACHED;
21588 #if HAVE_PTHREADS > 4
21589 /* Final pthreads */
21590 pthread_attr_t attr;
21592 status = pthread_attr_init(&attr);
21593 if( status ) return status;
21595 #if HAVE_PTHREADS < 7
21596 status = pthread_attr_setdetachstate(&attr, &detach);
21597 if( status < 0 ) status = errno;
21599 status = pthread_attr_setdetachstate(&attr, detach);
21601 if( status ) return status;
21602 status = pthread_create( &t, &attr, task, NULL );
21603 #if HAVE_PTHREADS < 7
21604 if( status < 0 ) status = errno;
21606 if( status ) return status;
21608 /* Draft 4 pthreads */
21609 status = pthread_create( &t, pthread_attr_default, task, NULL );
21610 if( status ) return errno;
21612 /* give thread a chance to complete */
21613 /* it should remain joinable and hence detachable */
21616 status = pthread_detach( &t );
21617 if( status ) return errno;
21620 #ifdef HAVE_LINUX_THREADS
21621 pthread_kill_other_threads_np();
21629 rm -f conftest$ac_exeext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21631 (eval $ac_link) 2>&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 ol_cv_pthread_thread=yes
21642 echo "$as_me: program exited with status $ac_status" >&5
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 ( exit $ac_status )
21647 ol_cv_pthread_thread=no
21649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21656 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21657 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21659 if test $ol_cv_pthread_thread = yes ; then
21660 ol_link_pthreads="-thread"
21661 ol_link_threads=posix
21666 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21667 if test "$ol_link_threads" = no ; then
21668 # try -lpthread -lmach -lexc -lc_r
21669 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21670 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21671 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21679 if test "$cross_compiling" = yes; then
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21687 /* pthread test headers */
21688 #include <pthread.h>
21689 #if HAVE_PTHREADS < 7
21693 #define NULL (void*)0
21696 static void *task(p)
21699 return (void *) (p == NULL);
21706 /* pthread test function */
21707 #ifndef PTHREAD_CREATE_DETACHED
21708 #define PTHREAD_CREATE_DETACHED 1
21712 int detach = PTHREAD_CREATE_DETACHED;
21714 #if HAVE_PTHREADS > 4
21715 /* Final pthreads */
21716 pthread_attr_t attr;
21718 status = pthread_attr_init(&attr);
21719 if( status ) return status;
21721 #if HAVE_PTHREADS < 7
21722 status = pthread_attr_setdetachstate(&attr, &detach);
21723 if( status < 0 ) status = errno;
21725 status = pthread_attr_setdetachstate(&attr, detach);
21727 if( status ) return status;
21728 status = pthread_create( &t, &attr, task, NULL );
21729 #if HAVE_PTHREADS < 7
21730 if( status < 0 ) status = errno;
21732 if( status ) return status;
21734 /* Draft 4 pthreads */
21735 status = pthread_create( &t, pthread_attr_default, task, NULL );
21736 if( status ) return errno;
21738 /* give thread a chance to complete */
21739 /* it should remain joinable and hence detachable */
21742 status = pthread_detach( &t );
21743 if( status ) return errno;
21746 #ifdef HAVE_LINUX_THREADS
21747 pthread_kill_other_threads_np();
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21758 (eval $ac_link) 2>conftest.er1
21760 grep -v '^ *+' conftest.er1 >conftest.err
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } &&
21765 { ac_try='test -z "$ac_c_werror_flag"
21766 || test ! -s conftest.err'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; } &&
21772 { ac_try='test -s conftest$ac_exeext'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21785 rm -f conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21795 /* pthread test headers */
21796 #include <pthread.h>
21797 #if HAVE_PTHREADS < 7
21801 #define NULL (void*)0
21804 static void *task(p)
21807 return (void *) (p == NULL);
21811 int main(argc, argv)
21816 /* pthread test function */
21817 #ifndef PTHREAD_CREATE_DETACHED
21818 #define PTHREAD_CREATE_DETACHED 1
21822 int detach = PTHREAD_CREATE_DETACHED;
21824 #if HAVE_PTHREADS > 4
21825 /* Final pthreads */
21826 pthread_attr_t attr;
21828 status = pthread_attr_init(&attr);
21829 if( status ) return status;
21831 #if HAVE_PTHREADS < 7
21832 status = pthread_attr_setdetachstate(&attr, &detach);
21833 if( status < 0 ) status = errno;
21835 status = pthread_attr_setdetachstate(&attr, detach);
21837 if( status ) return status;
21838 status = pthread_create( &t, &attr, task, NULL );
21839 #if HAVE_PTHREADS < 7
21840 if( status < 0 ) status = errno;
21842 if( status ) return status;
21844 /* Draft 4 pthreads */
21845 status = pthread_create( &t, pthread_attr_default, task, NULL );
21846 if( status ) return errno;
21848 /* give thread a chance to complete */
21849 /* it should remain joinable and hence detachable */
21852 status = pthread_detach( &t );
21853 if( status ) return errno;
21856 #ifdef HAVE_LINUX_THREADS
21857 pthread_kill_other_threads_np();
21865 rm -f conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867 (eval $ac_link) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21876 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21878 echo "$as_me: program exited with status $ac_status" >&5
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ( exit $ac_status )
21883 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21893 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21895 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21896 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21897 ol_link_threads=posix
21901 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21902 if test "$ol_link_threads" = no ; then
21903 # try -lpthread -lmach -lexc
21904 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21905 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21906 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 LIBS="-lpthread -lmach -lexc $LIBS"
21914 if test "$cross_compiling" = yes; then
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21922 /* pthread test headers */
21923 #include <pthread.h>
21924 #if HAVE_PTHREADS < 7
21928 #define NULL (void*)0
21931 static void *task(p)
21934 return (void *) (p == NULL);
21941 /* pthread test function */
21942 #ifndef PTHREAD_CREATE_DETACHED
21943 #define PTHREAD_CREATE_DETACHED 1
21947 int detach = PTHREAD_CREATE_DETACHED;
21949 #if HAVE_PTHREADS > 4
21950 /* Final pthreads */
21951 pthread_attr_t attr;
21953 status = pthread_attr_init(&attr);
21954 if( status ) return status;
21956 #if HAVE_PTHREADS < 7
21957 status = pthread_attr_setdetachstate(&attr, &detach);
21958 if( status < 0 ) status = errno;
21960 status = pthread_attr_setdetachstate(&attr, detach);
21962 if( status ) return status;
21963 status = pthread_create( &t, &attr, task, NULL );
21964 #if HAVE_PTHREADS < 7
21965 if( status < 0 ) status = errno;
21967 if( status ) return status;
21969 /* Draft 4 pthreads */
21970 status = pthread_create( &t, pthread_attr_default, task, NULL );
21971 if( status ) return errno;
21973 /* give thread a chance to complete */
21974 /* it should remain joinable and hence detachable */
21977 status = pthread_detach( &t );
21978 if( status ) return errno;
21981 #ifdef HAVE_LINUX_THREADS
21982 pthread_kill_other_threads_np();
21991 rm -f conftest.$ac_objext conftest$ac_exeext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21993 (eval $ac_link) 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag"
22001 || test ! -s conftest.err'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest$ac_exeext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 ol_cv_pthread_lpthread_lmach_lexc=yes
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ol_cv_pthread_lpthread_lmach_lexc=no
22020 rm -f conftest.err conftest.$ac_objext \
22021 conftest$ac_exeext conftest.$ac_ext
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22030 /* pthread test headers */
22031 #include <pthread.h>
22032 #if HAVE_PTHREADS < 7
22036 #define NULL (void*)0
22039 static void *task(p)
22042 return (void *) (p == NULL);
22046 int main(argc, argv)
22051 /* pthread test function */
22052 #ifndef PTHREAD_CREATE_DETACHED
22053 #define PTHREAD_CREATE_DETACHED 1
22057 int detach = PTHREAD_CREATE_DETACHED;
22059 #if HAVE_PTHREADS > 4
22060 /* Final pthreads */
22061 pthread_attr_t attr;
22063 status = pthread_attr_init(&attr);
22064 if( status ) return status;
22066 #if HAVE_PTHREADS < 7
22067 status = pthread_attr_setdetachstate(&attr, &detach);
22068 if( status < 0 ) status = errno;
22070 status = pthread_attr_setdetachstate(&attr, detach);
22072 if( status ) return status;
22073 status = pthread_create( &t, &attr, task, NULL );
22074 #if HAVE_PTHREADS < 7
22075 if( status < 0 ) status = errno;
22077 if( status ) return status;
22079 /* Draft 4 pthreads */
22080 status = pthread_create( &t, pthread_attr_default, task, NULL );
22081 if( status ) return errno;
22083 /* give thread a chance to complete */
22084 /* it should remain joinable and hence detachable */
22087 status = pthread_detach( &t );
22088 if( status ) return errno;
22091 #ifdef HAVE_LINUX_THREADS
22092 pthread_kill_other_threads_np();
22100 rm -f conftest$ac_exeext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22102 (eval $ac_link) 2>&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107 (eval $ac_try) 2>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); }; }; then
22111 ol_cv_pthread_lpthread_lmach_lexc=yes
22113 echo "$as_me: program exited with status $ac_status" >&5
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ( exit $ac_status )
22118 ol_cv_pthread_lpthread_lmach_lexc=no
22120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22127 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22128 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22130 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22131 ol_link_pthreads="-lpthread -lmach -lexc"
22132 ol_link_threads=posix
22137 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22138 if test "$ol_link_threads" = no ; then
22139 # try -lpthread -Wl,-woff,85
22140 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22141 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22142 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22148 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22150 if test "$cross_compiling" = yes; then
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22158 /* pthread test headers */
22159 #include <pthread.h>
22160 #if HAVE_PTHREADS < 7
22164 #define NULL (void*)0
22167 static void *task(p)
22170 return (void *) (p == NULL);
22177 /* pthread test function */
22178 #ifndef PTHREAD_CREATE_DETACHED
22179 #define PTHREAD_CREATE_DETACHED 1
22183 int detach = PTHREAD_CREATE_DETACHED;
22185 #if HAVE_PTHREADS > 4
22186 /* Final pthreads */
22187 pthread_attr_t attr;
22189 status = pthread_attr_init(&attr);
22190 if( status ) return status;
22192 #if HAVE_PTHREADS < 7
22193 status = pthread_attr_setdetachstate(&attr, &detach);
22194 if( status < 0 ) status = errno;
22196 status = pthread_attr_setdetachstate(&attr, detach);
22198 if( status ) return status;
22199 status = pthread_create( &t, &attr, task, NULL );
22200 #if HAVE_PTHREADS < 7
22201 if( status < 0 ) status = errno;
22203 if( status ) return status;
22205 /* Draft 4 pthreads */
22206 status = pthread_create( &t, pthread_attr_default, task, NULL );
22207 if( status ) return errno;
22209 /* give thread a chance to complete */
22210 /* it should remain joinable and hence detachable */
22213 status = pthread_detach( &t );
22214 if( status ) return errno;
22217 #ifdef HAVE_LINUX_THREADS
22218 pthread_kill_other_threads_np();
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229 (eval $ac_link) 2>conftest.er1
22231 grep -v '^ *+' conftest.er1 >conftest.err
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } &&
22236 { ac_try='test -z "$ac_c_werror_flag"
22237 || test ! -s conftest.err'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; } &&
22243 { ac_try='test -s conftest$ac_exeext'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 ol_cv_pthread_lib_lpthread_woff=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ol_cv_pthread_lib_lpthread_woff=no
22256 rm -f conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22259 cat >conftest.$ac_ext <<_ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22266 /* pthread test headers */
22267 #include <pthread.h>
22268 #if HAVE_PTHREADS < 7
22272 #define NULL (void*)0
22275 static void *task(p)
22278 return (void *) (p == NULL);
22282 int main(argc, argv)
22287 /* pthread test function */
22288 #ifndef PTHREAD_CREATE_DETACHED
22289 #define PTHREAD_CREATE_DETACHED 1
22293 int detach = PTHREAD_CREATE_DETACHED;
22295 #if HAVE_PTHREADS > 4
22296 /* Final pthreads */
22297 pthread_attr_t attr;
22299 status = pthread_attr_init(&attr);
22300 if( status ) return status;
22302 #if HAVE_PTHREADS < 7
22303 status = pthread_attr_setdetachstate(&attr, &detach);
22304 if( status < 0 ) status = errno;
22306 status = pthread_attr_setdetachstate(&attr, detach);
22308 if( status ) return status;
22309 status = pthread_create( &t, &attr, task, NULL );
22310 #if HAVE_PTHREADS < 7
22311 if( status < 0 ) status = errno;
22313 if( status ) return status;
22315 /* Draft 4 pthreads */
22316 status = pthread_create( &t, pthread_attr_default, task, NULL );
22317 if( status ) return errno;
22319 /* give thread a chance to complete */
22320 /* it should remain joinable and hence detachable */
22323 status = pthread_detach( &t );
22324 if( status ) return errno;
22327 #ifdef HAVE_LINUX_THREADS
22328 pthread_kill_other_threads_np();
22336 rm -f conftest$ac_exeext
22337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22338 (eval $ac_link) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22347 ol_cv_pthread_lib_lpthread_woff=yes
22349 echo "$as_me: program exited with status $ac_status" >&5
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ( exit $ac_status )
22354 ol_cv_pthread_lib_lpthread_woff=no
22356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22363 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22364 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22366 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22367 ol_link_pthreads="-lpthread -Wl,-woff,85"
22368 ol_link_threads=posix
22373 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22374 if test "$ol_link_threads" = no ; then
22376 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22377 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22378 if test "${ol_cv_pthread_lpthread+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 LIBS="-lpthread $LIBS"
22386 if test "$cross_compiling" = yes; then
22387 cat >conftest.$ac_ext <<_ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22394 /* pthread test headers */
22395 #include <pthread.h>
22396 #if HAVE_PTHREADS < 7
22400 #define NULL (void*)0
22403 static void *task(p)
22406 return (void *) (p == NULL);
22413 /* pthread test function */
22414 #ifndef PTHREAD_CREATE_DETACHED
22415 #define PTHREAD_CREATE_DETACHED 1
22419 int detach = PTHREAD_CREATE_DETACHED;
22421 #if HAVE_PTHREADS > 4
22422 /* Final pthreads */
22423 pthread_attr_t attr;
22425 status = pthread_attr_init(&attr);
22426 if( status ) return status;
22428 #if HAVE_PTHREADS < 7
22429 status = pthread_attr_setdetachstate(&attr, &detach);
22430 if( status < 0 ) status = errno;
22432 status = pthread_attr_setdetachstate(&attr, detach);
22434 if( status ) return status;
22435 status = pthread_create( &t, &attr, task, NULL );
22436 #if HAVE_PTHREADS < 7
22437 if( status < 0 ) status = errno;
22439 if( status ) return status;
22441 /* Draft 4 pthreads */
22442 status = pthread_create( &t, pthread_attr_default, task, NULL );
22443 if( status ) return errno;
22445 /* give thread a chance to complete */
22446 /* it should remain joinable and hence detachable */
22449 status = pthread_detach( &t );
22450 if( status ) return errno;
22453 #ifdef HAVE_LINUX_THREADS
22454 pthread_kill_other_threads_np();
22463 rm -f conftest.$ac_objext conftest$ac_exeext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22465 (eval $ac_link) 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest$ac_exeext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ol_cv_pthread_lpthread=yes
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ol_cv_pthread_lpthread=no
22492 rm -f conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* pthread test headers */
22503 #include <pthread.h>
22504 #if HAVE_PTHREADS < 7
22508 #define NULL (void*)0
22511 static void *task(p)
22514 return (void *) (p == NULL);
22518 int main(argc, argv)
22523 /* pthread test function */
22524 #ifndef PTHREAD_CREATE_DETACHED
22525 #define PTHREAD_CREATE_DETACHED 1
22529 int detach = PTHREAD_CREATE_DETACHED;
22531 #if HAVE_PTHREADS > 4
22532 /* Final pthreads */
22533 pthread_attr_t attr;
22535 status = pthread_attr_init(&attr);
22536 if( status ) return status;
22538 #if HAVE_PTHREADS < 7
22539 status = pthread_attr_setdetachstate(&attr, &detach);
22540 if( status < 0 ) status = errno;
22542 status = pthread_attr_setdetachstate(&attr, detach);
22544 if( status ) return status;
22545 status = pthread_create( &t, &attr, task, NULL );
22546 #if HAVE_PTHREADS < 7
22547 if( status < 0 ) status = errno;
22549 if( status ) return status;
22551 /* Draft 4 pthreads */
22552 status = pthread_create( &t, pthread_attr_default, task, NULL );
22553 if( status ) return errno;
22555 /* give thread a chance to complete */
22556 /* it should remain joinable and hence detachable */
22559 status = pthread_detach( &t );
22560 if( status ) return errno;
22563 #ifdef HAVE_LINUX_THREADS
22564 pthread_kill_other_threads_np();
22572 rm -f conftest$ac_exeext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574 (eval $ac_link) 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ol_cv_pthread_lpthread=yes
22585 echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ( exit $ac_status )
22590 ol_cv_pthread_lpthread=no
22592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22599 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22600 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22602 if test $ol_cv_pthread_lpthread = yes ; then
22603 ol_link_pthreads="-lpthread"
22604 ol_link_threads=posix
22608 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22609 if test "$ol_link_threads" = no ; then
22611 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22612 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22613 if test "${ol_cv_pthread_lc_r+set}" = set; then
22614 echo $ECHO_N "(cached) $ECHO_C" >&6
22621 if test "$cross_compiling" = yes; then
22622 cat >conftest.$ac_ext <<_ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22629 /* pthread test headers */
22630 #include <pthread.h>
22631 #if HAVE_PTHREADS < 7
22635 #define NULL (void*)0
22638 static void *task(p)
22641 return (void *) (p == NULL);
22648 /* pthread test function */
22649 #ifndef PTHREAD_CREATE_DETACHED
22650 #define PTHREAD_CREATE_DETACHED 1
22654 int detach = PTHREAD_CREATE_DETACHED;
22656 #if HAVE_PTHREADS > 4
22657 /* Final pthreads */
22658 pthread_attr_t attr;
22660 status = pthread_attr_init(&attr);
22661 if( status ) return status;
22663 #if HAVE_PTHREADS < 7
22664 status = pthread_attr_setdetachstate(&attr, &detach);
22665 if( status < 0 ) status = errno;
22667 status = pthread_attr_setdetachstate(&attr, detach);
22669 if( status ) return status;
22670 status = pthread_create( &t, &attr, task, NULL );
22671 #if HAVE_PTHREADS < 7
22672 if( status < 0 ) status = errno;
22674 if( status ) return status;
22676 /* Draft 4 pthreads */
22677 status = pthread_create( &t, pthread_attr_default, task, NULL );
22678 if( status ) return errno;
22680 /* give thread a chance to complete */
22681 /* it should remain joinable and hence detachable */
22684 status = pthread_detach( &t );
22685 if( status ) return errno;
22688 #ifdef HAVE_LINUX_THREADS
22689 pthread_kill_other_threads_np();
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700 (eval $ac_link) 2>conftest.er1
22702 grep -v '^ *+' conftest.er1 >conftest.err
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
22707 { ac_try='test -z "$ac_c_werror_flag"
22708 || test ! -s conftest.err'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ol_cv_pthread_lc_r=yes
22722 echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22725 ol_cv_pthread_lc_r=no
22727 rm -f conftest.err conftest.$ac_objext \
22728 conftest$ac_exeext conftest.$ac_ext
22730 cat >conftest.$ac_ext <<_ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22737 /* pthread test headers */
22738 #include <pthread.h>
22739 #if HAVE_PTHREADS < 7
22743 #define NULL (void*)0
22746 static void *task(p)
22749 return (void *) (p == NULL);
22753 int main(argc, argv)
22758 /* pthread test function */
22759 #ifndef PTHREAD_CREATE_DETACHED
22760 #define PTHREAD_CREATE_DETACHED 1
22764 int detach = PTHREAD_CREATE_DETACHED;
22766 #if HAVE_PTHREADS > 4
22767 /* Final pthreads */
22768 pthread_attr_t attr;
22770 status = pthread_attr_init(&attr);
22771 if( status ) return status;
22773 #if HAVE_PTHREADS < 7
22774 status = pthread_attr_setdetachstate(&attr, &detach);
22775 if( status < 0 ) status = errno;
22777 status = pthread_attr_setdetachstate(&attr, detach);
22779 if( status ) return status;
22780 status = pthread_create( &t, &attr, task, NULL );
22781 #if HAVE_PTHREADS < 7
22782 if( status < 0 ) status = errno;
22784 if( status ) return status;
22786 /* Draft 4 pthreads */
22787 status = pthread_create( &t, pthread_attr_default, task, NULL );
22788 if( status ) return errno;
22790 /* give thread a chance to complete */
22791 /* it should remain joinable and hence detachable */
22794 status = pthread_detach( &t );
22795 if( status ) return errno;
22798 #ifdef HAVE_LINUX_THREADS
22799 pthread_kill_other_threads_np();
22807 rm -f conftest$ac_exeext
22808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22809 (eval $ac_link) 2>&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; }; then
22818 ol_cv_pthread_lc_r=yes
22820 echo "$as_me: program exited with status $ac_status" >&5
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 ( exit $ac_status )
22825 ol_cv_pthread_lc_r=no
22827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22834 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22835 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22837 if test $ol_cv_pthread_lc_r = yes ; then
22838 ol_link_pthreads="-lc_r"
22839 ol_link_threads=posix
22844 # Pthread try link: -threads (ol_cv_pthread_threads)
22845 if test "$ol_link_threads" = no ; then
22847 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22848 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22849 if test "${ol_cv_pthread_threads+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 LIBS="-threads $LIBS"
22857 if test "$cross_compiling" = yes; then
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22865 /* pthread test headers */
22866 #include <pthread.h>
22867 #if HAVE_PTHREADS < 7
22871 #define NULL (void*)0
22874 static void *task(p)
22877 return (void *) (p == NULL);
22884 /* pthread test function */
22885 #ifndef PTHREAD_CREATE_DETACHED
22886 #define PTHREAD_CREATE_DETACHED 1
22890 int detach = PTHREAD_CREATE_DETACHED;
22892 #if HAVE_PTHREADS > 4
22893 /* Final pthreads */
22894 pthread_attr_t attr;
22896 status = pthread_attr_init(&attr);
22897 if( status ) return status;
22899 #if HAVE_PTHREADS < 7
22900 status = pthread_attr_setdetachstate(&attr, &detach);
22901 if( status < 0 ) status = errno;
22903 status = pthread_attr_setdetachstate(&attr, detach);
22905 if( status ) return status;
22906 status = pthread_create( &t, &attr, task, NULL );
22907 #if HAVE_PTHREADS < 7
22908 if( status < 0 ) status = errno;
22910 if( status ) return status;
22912 /* Draft 4 pthreads */
22913 status = pthread_create( &t, pthread_attr_default, task, NULL );
22914 if( status ) return errno;
22916 /* give thread a chance to complete */
22917 /* it should remain joinable and hence detachable */
22920 status = pthread_detach( &t );
22921 if( status ) return errno;
22924 #ifdef HAVE_LINUX_THREADS
22925 pthread_kill_other_threads_np();
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag"
22944 || test ! -s conftest.err'
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest$ac_exeext'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ol_cv_pthread_threads=yes
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ol_cv_pthread_threads=no
22963 rm -f conftest.err conftest.$ac_objext \
22964 conftest$ac_exeext conftest.$ac_ext
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22973 /* pthread test headers */
22974 #include <pthread.h>
22975 #if HAVE_PTHREADS < 7
22979 #define NULL (void*)0
22982 static void *task(p)
22985 return (void *) (p == NULL);
22989 int main(argc, argv)
22994 /* pthread test function */
22995 #ifndef PTHREAD_CREATE_DETACHED
22996 #define PTHREAD_CREATE_DETACHED 1
23000 int detach = PTHREAD_CREATE_DETACHED;
23002 #if HAVE_PTHREADS > 4
23003 /* Final pthreads */
23004 pthread_attr_t attr;
23006 status = pthread_attr_init(&attr);
23007 if( status ) return status;
23009 #if HAVE_PTHREADS < 7
23010 status = pthread_attr_setdetachstate(&attr, &detach);
23011 if( status < 0 ) status = errno;
23013 status = pthread_attr_setdetachstate(&attr, detach);
23015 if( status ) return status;
23016 status = pthread_create( &t, &attr, task, NULL );
23017 #if HAVE_PTHREADS < 7
23018 if( status < 0 ) status = errno;
23020 if( status ) return status;
23022 /* Draft 4 pthreads */
23023 status = pthread_create( &t, pthread_attr_default, task, NULL );
23024 if( status ) return errno;
23026 /* give thread a chance to complete */
23027 /* it should remain joinable and hence detachable */
23030 status = pthread_detach( &t );
23031 if( status ) return errno;
23034 #ifdef HAVE_LINUX_THREADS
23035 pthread_kill_other_threads_np();
23043 rm -f conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045 (eval $ac_link) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23054 ol_cv_pthread_threads=yes
23056 echo "$as_me: program exited with status $ac_status" >&5
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 ( exit $ac_status )
23061 ol_cv_pthread_threads=no
23063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23070 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23071 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23073 if test $ol_cv_pthread_threads = yes ; then
23074 ol_link_pthreads="-threads"
23075 ol_link_threads=posix
23080 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23081 if test "$ol_link_threads" = no ; then
23082 # try -lpthreads -lmach -lexc -lc_r
23083 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23084 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23085 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23093 if test "$cross_compiling" = yes; then
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23101 /* pthread test headers */
23102 #include <pthread.h>
23103 #if HAVE_PTHREADS < 7
23107 #define NULL (void*)0
23110 static void *task(p)
23113 return (void *) (p == NULL);
23120 /* pthread test function */
23121 #ifndef PTHREAD_CREATE_DETACHED
23122 #define PTHREAD_CREATE_DETACHED 1
23126 int detach = PTHREAD_CREATE_DETACHED;
23128 #if HAVE_PTHREADS > 4
23129 /* Final pthreads */
23130 pthread_attr_t attr;
23132 status = pthread_attr_init(&attr);
23133 if( status ) return status;
23135 #if HAVE_PTHREADS < 7
23136 status = pthread_attr_setdetachstate(&attr, &detach);
23137 if( status < 0 ) status = errno;
23139 status = pthread_attr_setdetachstate(&attr, detach);
23141 if( status ) return status;
23142 status = pthread_create( &t, &attr, task, NULL );
23143 #if HAVE_PTHREADS < 7
23144 if( status < 0 ) status = errno;
23146 if( status ) return status;
23148 /* Draft 4 pthreads */
23149 status = pthread_create( &t, pthread_attr_default, task, NULL );
23150 if( status ) return errno;
23152 /* give thread a chance to complete */
23153 /* it should remain joinable and hence detachable */
23156 status = pthread_detach( &t );
23157 if( status ) return errno;
23160 #ifdef HAVE_LINUX_THREADS
23161 pthread_kill_other_threads_np();
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } &&
23179 { ac_try='test -z "$ac_c_werror_flag"
23180 || test ! -s conftest.err'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; } &&
23186 { ac_try='test -s conftest$ac_exeext'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23199 rm -f conftest.err conftest.$ac_objext \
23200 conftest$ac_exeext conftest.$ac_ext
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23209 /* pthread test headers */
23210 #include <pthread.h>
23211 #if HAVE_PTHREADS < 7
23215 #define NULL (void*)0
23218 static void *task(p)
23221 return (void *) (p == NULL);
23225 int main(argc, argv)
23230 /* pthread test function */
23231 #ifndef PTHREAD_CREATE_DETACHED
23232 #define PTHREAD_CREATE_DETACHED 1
23236 int detach = PTHREAD_CREATE_DETACHED;
23238 #if HAVE_PTHREADS > 4
23239 /* Final pthreads */
23240 pthread_attr_t attr;
23242 status = pthread_attr_init(&attr);
23243 if( status ) return status;
23245 #if HAVE_PTHREADS < 7
23246 status = pthread_attr_setdetachstate(&attr, &detach);
23247 if( status < 0 ) status = errno;
23249 status = pthread_attr_setdetachstate(&attr, detach);
23251 if( status ) return status;
23252 status = pthread_create( &t, &attr, task, NULL );
23253 #if HAVE_PTHREADS < 7
23254 if( status < 0 ) status = errno;
23256 if( status ) return status;
23258 /* Draft 4 pthreads */
23259 status = pthread_create( &t, pthread_attr_default, task, NULL );
23260 if( status ) return errno;
23262 /* give thread a chance to complete */
23263 /* it should remain joinable and hence detachable */
23266 status = pthread_detach( &t );
23267 if( status ) return errno;
23270 #ifdef HAVE_LINUX_THREADS
23271 pthread_kill_other_threads_np();
23279 rm -f conftest$ac_exeext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23281 (eval $ac_link) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23292 echo "$as_me: program exited with status $ac_status" >&5
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ( exit $ac_status )
23297 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23306 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23307 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23309 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23310 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23311 ol_link_threads=posix
23315 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23316 if test "$ol_link_threads" = no ; then
23317 # try -lpthreads -lmach -lexc
23318 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23319 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23320 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23321 echo $ECHO_N "(cached) $ECHO_C" >&6
23326 LIBS="-lpthreads -lmach -lexc $LIBS"
23328 if test "$cross_compiling" = yes; then
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23336 /* pthread test headers */
23337 #include <pthread.h>
23338 #if HAVE_PTHREADS < 7
23342 #define NULL (void*)0
23345 static void *task(p)
23348 return (void *) (p == NULL);
23355 /* pthread test function */
23356 #ifndef PTHREAD_CREATE_DETACHED
23357 #define PTHREAD_CREATE_DETACHED 1
23361 int detach = PTHREAD_CREATE_DETACHED;
23363 #if HAVE_PTHREADS > 4
23364 /* Final pthreads */
23365 pthread_attr_t attr;
23367 status = pthread_attr_init(&attr);
23368 if( status ) return status;
23370 #if HAVE_PTHREADS < 7
23371 status = pthread_attr_setdetachstate(&attr, &detach);
23372 if( status < 0 ) status = errno;
23374 status = pthread_attr_setdetachstate(&attr, detach);
23376 if( status ) return status;
23377 status = pthread_create( &t, &attr, task, NULL );
23378 #if HAVE_PTHREADS < 7
23379 if( status < 0 ) status = errno;
23381 if( status ) return status;
23383 /* Draft 4 pthreads */
23384 status = pthread_create( &t, pthread_attr_default, task, NULL );
23385 if( status ) return errno;
23387 /* give thread a chance to complete */
23388 /* it should remain joinable and hence detachable */
23391 status = pthread_detach( &t );
23392 if( status ) return errno;
23395 #ifdef HAVE_LINUX_THREADS
23396 pthread_kill_other_threads_np();
23405 rm -f conftest.$ac_objext conftest$ac_exeext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23407 (eval $ac_link) 2>conftest.er1
23409 grep -v '^ *+' conftest.er1 >conftest.err
23411 cat conftest.err >&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } &&
23414 { ac_try='test -z "$ac_c_werror_flag"
23415 || test ! -s conftest.err'
23416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417 (eval $ac_try) 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; } &&
23421 { ac_try='test -s conftest$ac_exeext'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ol_cv_pthread_lpthreads_lmach_lexc=yes
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ol_cv_pthread_lpthreads_lmach_lexc=no
23434 rm -f conftest.err conftest.$ac_objext \
23435 conftest$ac_exeext conftest.$ac_ext
23437 cat >conftest.$ac_ext <<_ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23444 /* pthread test headers */
23445 #include <pthread.h>
23446 #if HAVE_PTHREADS < 7
23450 #define NULL (void*)0
23453 static void *task(p)
23456 return (void *) (p == NULL);
23460 int main(argc, argv)
23465 /* pthread test function */
23466 #ifndef PTHREAD_CREATE_DETACHED
23467 #define PTHREAD_CREATE_DETACHED 1
23471 int detach = PTHREAD_CREATE_DETACHED;
23473 #if HAVE_PTHREADS > 4
23474 /* Final pthreads */
23475 pthread_attr_t attr;
23477 status = pthread_attr_init(&attr);
23478 if( status ) return status;
23480 #if HAVE_PTHREADS < 7
23481 status = pthread_attr_setdetachstate(&attr, &detach);
23482 if( status < 0 ) status = errno;
23484 status = pthread_attr_setdetachstate(&attr, detach);
23486 if( status ) return status;
23487 status = pthread_create( &t, &attr, task, NULL );
23488 #if HAVE_PTHREADS < 7
23489 if( status < 0 ) status = errno;
23491 if( status ) return status;
23493 /* Draft 4 pthreads */
23494 status = pthread_create( &t, pthread_attr_default, task, NULL );
23495 if( status ) return errno;
23497 /* give thread a chance to complete */
23498 /* it should remain joinable and hence detachable */
23501 status = pthread_detach( &t );
23502 if( status ) return errno;
23505 #ifdef HAVE_LINUX_THREADS
23506 pthread_kill_other_threads_np();
23514 rm -f conftest$ac_exeext
23515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23516 (eval $ac_link) 2>&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521 (eval $ac_try) 2>&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); }; }; then
23525 ol_cv_pthread_lpthreads_lmach_lexc=yes
23527 echo "$as_me: program exited with status $ac_status" >&5
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ( exit $ac_status )
23532 ol_cv_pthread_lpthreads_lmach_lexc=no
23534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23541 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23542 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23544 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23545 ol_link_pthreads="-lpthreads -lmach -lexc"
23546 ol_link_threads=posix
23550 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23551 if test "$ol_link_threads" = no ; then
23552 # try -lpthreads -lexc
23553 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23554 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23555 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23556 echo $ECHO_N "(cached) $ECHO_C" >&6
23561 LIBS="-lpthreads -lexc $LIBS"
23563 if test "$cross_compiling" = yes; then
23564 cat >conftest.$ac_ext <<_ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23571 /* pthread test headers */
23572 #include <pthread.h>
23573 #if HAVE_PTHREADS < 7
23577 #define NULL (void*)0
23580 static void *task(p)
23583 return (void *) (p == NULL);
23590 /* pthread test function */
23591 #ifndef PTHREAD_CREATE_DETACHED
23592 #define PTHREAD_CREATE_DETACHED 1
23596 int detach = PTHREAD_CREATE_DETACHED;
23598 #if HAVE_PTHREADS > 4
23599 /* Final pthreads */
23600 pthread_attr_t attr;
23602 status = pthread_attr_init(&attr);
23603 if( status ) return status;
23605 #if HAVE_PTHREADS < 7
23606 status = pthread_attr_setdetachstate(&attr, &detach);
23607 if( status < 0 ) status = errno;
23609 status = pthread_attr_setdetachstate(&attr, detach);
23611 if( status ) return status;
23612 status = pthread_create( &t, &attr, task, NULL );
23613 #if HAVE_PTHREADS < 7
23614 if( status < 0 ) status = errno;
23616 if( status ) return status;
23618 /* Draft 4 pthreads */
23619 status = pthread_create( &t, pthread_attr_default, task, NULL );
23620 if( status ) return errno;
23622 /* give thread a chance to complete */
23623 /* it should remain joinable and hence detachable */
23626 status = pthread_detach( &t );
23627 if( status ) return errno;
23630 #ifdef HAVE_LINUX_THREADS
23631 pthread_kill_other_threads_np();
23640 rm -f conftest.$ac_objext conftest$ac_exeext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23642 (eval $ac_link) 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } &&
23649 { ac_try='test -z "$ac_c_werror_flag"
23650 || test ! -s conftest.err'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest$ac_exeext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ol_cv_pthread_lpthreads_lexc=yes
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23667 ol_cv_pthread_lpthreads_lexc=no
23669 rm -f conftest.err conftest.$ac_objext \
23670 conftest$ac_exeext conftest.$ac_ext
23672 cat >conftest.$ac_ext <<_ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23679 /* pthread test headers */
23680 #include <pthread.h>
23681 #if HAVE_PTHREADS < 7
23685 #define NULL (void*)0
23688 static void *task(p)
23691 return (void *) (p == NULL);
23695 int main(argc, argv)
23700 /* pthread test function */
23701 #ifndef PTHREAD_CREATE_DETACHED
23702 #define PTHREAD_CREATE_DETACHED 1
23706 int detach = PTHREAD_CREATE_DETACHED;
23708 #if HAVE_PTHREADS > 4
23709 /* Final pthreads */
23710 pthread_attr_t attr;
23712 status = pthread_attr_init(&attr);
23713 if( status ) return status;
23715 #if HAVE_PTHREADS < 7
23716 status = pthread_attr_setdetachstate(&attr, &detach);
23717 if( status < 0 ) status = errno;
23719 status = pthread_attr_setdetachstate(&attr, detach);
23721 if( status ) return status;
23722 status = pthread_create( &t, &attr, task, NULL );
23723 #if HAVE_PTHREADS < 7
23724 if( status < 0 ) status = errno;
23726 if( status ) return status;
23728 /* Draft 4 pthreads */
23729 status = pthread_create( &t, pthread_attr_default, task, NULL );
23730 if( status ) return errno;
23732 /* give thread a chance to complete */
23733 /* it should remain joinable and hence detachable */
23736 status = pthread_detach( &t );
23737 if( status ) return errno;
23740 #ifdef HAVE_LINUX_THREADS
23741 pthread_kill_other_threads_np();
23749 rm -f conftest$ac_exeext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751 (eval $ac_link) 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; }; then
23760 ol_cv_pthread_lpthreads_lexc=yes
23762 echo "$as_me: program exited with status $ac_status" >&5
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ( exit $ac_status )
23767 ol_cv_pthread_lpthreads_lexc=no
23769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23776 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23777 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23779 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23780 ol_link_pthreads="-lpthreads -lexc"
23781 ol_link_threads=posix
23786 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23787 if test "$ol_link_threads" = no ; then
23789 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23790 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23791 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23797 LIBS="-lpthreads $LIBS"
23799 if test "$cross_compiling" = yes; then
23800 cat >conftest.$ac_ext <<_ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23807 /* pthread test headers */
23808 #include <pthread.h>
23809 #if HAVE_PTHREADS < 7
23813 #define NULL (void*)0
23816 static void *task(p)
23819 return (void *) (p == NULL);
23826 /* pthread test function */
23827 #ifndef PTHREAD_CREATE_DETACHED
23828 #define PTHREAD_CREATE_DETACHED 1
23832 int detach = PTHREAD_CREATE_DETACHED;
23834 #if HAVE_PTHREADS > 4
23835 /* Final pthreads */
23836 pthread_attr_t attr;
23838 status = pthread_attr_init(&attr);
23839 if( status ) return status;
23841 #if HAVE_PTHREADS < 7
23842 status = pthread_attr_setdetachstate(&attr, &detach);
23843 if( status < 0 ) status = errno;
23845 status = pthread_attr_setdetachstate(&attr, detach);
23847 if( status ) return status;
23848 status = pthread_create( &t, &attr, task, NULL );
23849 #if HAVE_PTHREADS < 7
23850 if( status < 0 ) status = errno;
23852 if( status ) return status;
23854 /* Draft 4 pthreads */
23855 status = pthread_create( &t, pthread_attr_default, task, NULL );
23856 if( status ) return errno;
23858 /* give thread a chance to complete */
23859 /* it should remain joinable and hence detachable */
23862 status = pthread_detach( &t );
23863 if( status ) return errno;
23866 #ifdef HAVE_LINUX_THREADS
23867 pthread_kill_other_threads_np();
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23878 (eval $ac_link) 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
23885 { ac_try='test -z "$ac_c_werror_flag"
23886 || test ! -s conftest.err'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest$ac_exeext'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 ol_cv_pthread_lib_lpthreads=yes
23900 echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23903 ol_cv_pthread_lib_lpthreads=no
23905 rm -f conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23915 /* pthread test headers */
23916 #include <pthread.h>
23917 #if HAVE_PTHREADS < 7
23921 #define NULL (void*)0
23924 static void *task(p)
23927 return (void *) (p == NULL);
23931 int main(argc, argv)
23936 /* pthread test function */
23937 #ifndef PTHREAD_CREATE_DETACHED
23938 #define PTHREAD_CREATE_DETACHED 1
23942 int detach = PTHREAD_CREATE_DETACHED;
23944 #if HAVE_PTHREADS > 4
23945 /* Final pthreads */
23946 pthread_attr_t attr;
23948 status = pthread_attr_init(&attr);
23949 if( status ) return status;
23951 #if HAVE_PTHREADS < 7
23952 status = pthread_attr_setdetachstate(&attr, &detach);
23953 if( status < 0 ) status = errno;
23955 status = pthread_attr_setdetachstate(&attr, detach);
23957 if( status ) return status;
23958 status = pthread_create( &t, &attr, task, NULL );
23959 #if HAVE_PTHREADS < 7
23960 if( status < 0 ) status = errno;
23962 if( status ) return status;
23964 /* Draft 4 pthreads */
23965 status = pthread_create( &t, pthread_attr_default, task, NULL );
23966 if( status ) return errno;
23968 /* give thread a chance to complete */
23969 /* it should remain joinable and hence detachable */
23972 status = pthread_detach( &t );
23973 if( status ) return errno;
23976 #ifdef HAVE_LINUX_THREADS
23977 pthread_kill_other_threads_np();
23985 rm -f conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987 (eval $ac_link) 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ol_cv_pthread_lib_lpthreads=yes
23998 echo "$as_me: program exited with status $ac_status" >&5
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24002 ( exit $ac_status )
24003 ol_cv_pthread_lib_lpthreads=no
24005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24012 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24013 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24015 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24016 ol_link_pthreads="-lpthreads"
24017 ol_link_threads=posix
24022 if test $ol_link_threads != no ; then
24023 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24025 save_CPPFLAGS="$CPPFLAGS"
24027 LIBS="$LTHREAD_LIBS $LIBS"
24032 for ac_func in sched_yield pthread_yield thr_yield
24034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24035 echo "$as_me:$LINENO: checking for $ac_func" >&5
24036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24037 if eval "test \"\${$as_ac_var+set}\" = set"; then
24038 echo $ECHO_N "(cached) $ECHO_C" >&6
24040 cat >conftest.$ac_ext <<_ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h. */
24046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24048 #define $ac_func innocuous_$ac_func
24050 /* System header to define __stub macros and hopefully few prototypes,
24051 which can conflict with char $ac_func (); below.
24052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24053 <limits.h> exists even on freestanding compilers. */
24056 # include <limits.h>
24058 # include <assert.h>
24063 /* Override any gcc2 internal prototype to avoid an error. */
24068 /* We use char because int might match the return type of a gcc2
24069 builtin and then its argument prototype would still apply. */
24071 /* The GNU C library defines this for functions which it implements
24072 to always fail with ENOSYS. Some functions are actually named
24073 something starting with __ and the normal name is an alias. */
24074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24077 char (*f) () = $ac_func;
24086 return f != $ac_func;
24091 rm -f conftest.$ac_objext conftest$ac_exeext
24092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24093 (eval $ac_link) 2>conftest.er1
24095 grep -v '^ *+' conftest.er1 >conftest.err
24097 cat conftest.err >&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } &&
24100 { ac_try='test -z "$ac_c_werror_flag"
24101 || test ! -s conftest.err'
24102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103 (eval $ac_try) 2>&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); }; } &&
24107 { ac_try='test -s conftest$ac_exeext'
24108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24109 (eval $ac_try) 2>&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); }; }; then
24113 eval "$as_ac_var=yes"
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 eval "$as_ac_var=no"
24120 rm -f conftest.err conftest.$ac_objext \
24121 conftest$ac_exeext conftest.$ac_ext
24123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24125 if test `eval echo '${'$as_ac_var'}'` = yes; then
24126 cat >>confdefs.h <<_ACEOF
24127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24134 if test $ac_cv_func_sched_yield = no &&
24135 test $ac_cv_func_pthread_yield = no &&
24136 test $ac_cv_func_thr_yield = no ; then
24137 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24138 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24139 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24142 ac_check_lib_save_LIBS=$LIBS
24144 cat >conftest.$ac_ext <<_ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24151 /* Override any gcc2 internal prototype to avoid an error. */
24155 /* We use char because int might match the return type of a gcc2
24156 builtin and then its argument prototype would still apply. */
24157 char sched_yield ();
24166 rm -f conftest.$ac_objext conftest$ac_exeext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24168 (eval $ac_link) 2>conftest.er1
24170 grep -v '^ *+' conftest.er1 >conftest.err
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } &&
24175 { ac_try='test -z "$ac_c_werror_flag"
24176 || test ! -s conftest.err'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; } &&
24182 { ac_try='test -s conftest$ac_exeext'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; }; then
24188 ac_cv_lib_rt_sched_yield=yes
24190 echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24193 ac_cv_lib_rt_sched_yield=no
24195 rm -f conftest.err conftest.$ac_objext \
24196 conftest$ac_exeext conftest.$ac_ext
24197 LIBS=$ac_check_lib_save_LIBS
24199 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24200 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24201 if test $ac_cv_lib_rt_sched_yield = yes; then
24202 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24204 cat >>confdefs.h <<\_ACEOF
24205 #define HAVE_SCHED_YIELD 1
24208 ac_cv_func_sched_yield=yes
24210 ac_cv_func_sched_yield=no
24214 if test $ac_cv_func_sched_yield = no &&
24215 test $ac_cv_func_pthread_yield = no &&
24216 test "$ac_cv_func_thr_yield" = no ; then
24217 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24218 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24223 for ac_func in pthread_kill pthread_rwlock_destroy
24225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24226 echo "$as_me:$LINENO: checking for $ac_func" >&5
24227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24228 if eval "test \"\${$as_ac_var+set}\" = set"; then
24229 echo $ECHO_N "(cached) $ECHO_C" >&6
24231 cat >conftest.$ac_ext <<_ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h. */
24237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24239 #define $ac_func innocuous_$ac_func
24241 /* System header to define __stub macros and hopefully few prototypes,
24242 which can conflict with char $ac_func (); below.
24243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24244 <limits.h> exists even on freestanding compilers. */
24247 # include <limits.h>
24249 # include <assert.h>
24254 /* Override any gcc2 internal prototype to avoid an error. */
24259 /* We use char because int might match the return type of a gcc2
24260 builtin and then its argument prototype would still apply. */
24262 /* The GNU C library defines this for functions which it implements
24263 to always fail with ENOSYS. Some functions are actually named
24264 something starting with __ and the normal name is an alias. */
24265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24268 char (*f) () = $ac_func;
24277 return f != $ac_func;
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24284 (eval $ac_link) 2>conftest.er1
24286 grep -v '^ *+' conftest.er1 >conftest.err
24288 cat conftest.err >&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
24291 { ac_try='test -z "$ac_c_werror_flag"
24292 || test ! -s conftest.err'
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; } &&
24298 { ac_try='test -s conftest$ac_exeext'
24299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300 (eval $ac_try) 2>&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; }; then
24304 eval "$as_ac_var=yes"
24306 echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.$ac_ext >&5
24309 eval "$as_ac_var=no"
24311 rm -f conftest.err conftest.$ac_objext \
24312 conftest$ac_exeext conftest.$ac_ext
24314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24316 if test `eval echo '${'$as_ac_var'}'` = yes; then
24317 cat >>confdefs.h <<_ACEOF
24318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24325 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24326 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24327 if test "${ol_cv_func_pthread_detach+set}" = set; then
24328 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 cat >conftest.$ac_ext <<_ACEOF
24334 cat confdefs.h >>conftest.$ac_ext
24335 cat >>conftest.$ac_ext <<_ACEOF
24336 /* end confdefs.h. */
24338 #include <pthread.h>
24340 #define NULL (void*)0
24346 pthread_detach(NULL);
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24353 (eval $ac_link) 2>conftest.er1
24355 grep -v '^ *+' conftest.er1 >conftest.err
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } &&
24360 { ac_try='test -z "$ac_c_werror_flag"
24361 || test ! -s conftest.err'
24362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363 (eval $ac_try) 2>&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; } &&
24367 { ac_try='test -s conftest$ac_exeext'
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373 ol_cv_func_pthread_detach=yes
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 ol_cv_func_pthread_detach=no
24380 rm -f conftest.err conftest.$ac_objext \
24381 conftest$ac_exeext conftest.$ac_ext
24384 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24385 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24387 if test $ol_cv_func_pthread_detach = no ; then
24388 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24389 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24390 { (exit 1); exit 1; }; }
24394 cat >>confdefs.h <<\_ACEOF
24395 #define HAVE_PTHREAD_DETACH 1
24404 pthread_setconcurrency \
24405 pthread_getconcurrency \
24406 thr_setconcurrency \
24407 thr_getconcurrency \
24410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24411 echo "$as_me:$LINENO: checking for $ac_func" >&5
24412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24413 if eval "test \"\${$as_ac_var+set}\" = set"; then
24414 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 cat >conftest.$ac_ext <<_ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h. */
24422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24424 #define $ac_func innocuous_$ac_func
24426 /* System header to define __stub macros and hopefully few prototypes,
24427 which can conflict with char $ac_func (); below.
24428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24429 <limits.h> exists even on freestanding compilers. */
24432 # include <limits.h>
24434 # include <assert.h>
24439 /* Override any gcc2 internal prototype to avoid an error. */
24444 /* We use char because int might match the return type of a gcc2
24445 builtin and then its argument prototype would still apply. */
24447 /* The GNU C library defines this for functions which it implements
24448 to always fail with ENOSYS. Some functions are actually named
24449 something starting with __ and the normal name is an alias. */
24450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24453 char (*f) () = $ac_func;
24462 return f != $ac_func;
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469 (eval $ac_link) 2>conftest.er1
24471 grep -v '^ *+' conftest.er1 >conftest.err
24473 cat conftest.err >&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } &&
24476 { ac_try='test -z "$ac_c_werror_flag"
24477 || test ! -s conftest.err'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489 eval "$as_ac_var=yes"
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 eval "$as_ac_var=no"
24496 rm -f conftest.err conftest.$ac_objext \
24497 conftest$ac_exeext conftest.$ac_ext
24499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24501 if test `eval echo '${'$as_ac_var'}'` = yes; then
24502 cat >>confdefs.h <<_ACEOF
24503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24512 for ac_func in pthread_kill_other_threads_np
24514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24515 echo "$as_me:$LINENO: checking for $ac_func" >&5
24516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24517 if eval "test \"\${$as_ac_var+set}\" = set"; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24528 #define $ac_func innocuous_$ac_func
24530 /* System header to define __stub macros and hopefully few prototypes,
24531 which can conflict with char $ac_func (); below.
24532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24533 <limits.h> exists even on freestanding compilers. */
24536 # include <limits.h>
24538 # include <assert.h>
24543 /* Override any gcc2 internal prototype to avoid an error. */
24548 /* We use char because int might match the return type of a gcc2
24549 builtin and then its argument prototype would still apply. */
24551 /* The GNU C library defines this for functions which it implements
24552 to always fail with ENOSYS. Some functions are actually named
24553 something starting with __ and the normal name is an alias. */
24554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24557 char (*f) () = $ac_func;
24566 return f != $ac_func;
24571 rm -f conftest.$ac_objext conftest$ac_exeext
24572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24573 (eval $ac_link) 2>conftest.er1
24575 grep -v '^ *+' conftest.er1 >conftest.err
24577 cat conftest.err >&5
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); } &&
24580 { ac_try='test -z "$ac_c_werror_flag"
24581 || test ! -s conftest.err'
24582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; } &&
24587 { ac_try='test -s conftest$ac_exeext'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; }; then
24593 eval "$as_ac_var=yes"
24595 echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24598 eval "$as_ac_var=no"
24600 rm -f conftest.err conftest.$ac_objext \
24601 conftest$ac_exeext conftest.$ac_ext
24603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24605 if test `eval echo '${'$as_ac_var'}'` = yes; then
24606 cat >>confdefs.h <<_ACEOF
24607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24613 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24614 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24615 if test "${ol_cv_sys_linux_threads+set}" = set; then
24616 echo $ECHO_N "(cached) $ECHO_C" >&6
24618 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24620 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24621 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24626 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24627 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24628 if test "${ol_cv_linux_threads+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 if test $ol_cv_header_linux_threads = yes &&
24633 test $ol_cv_sys_linux_threads = yes; then
24634 ol_cv_linux_threads=yes
24635 elif test $ol_cv_header_linux_threads = no &&
24636 test $ol_cv_sys_linux_threads = no; then
24637 ol_cv_linux_threads=no
24639 ol_cv_linux_threads=error
24643 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24644 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24647 if test $ol_cv_linux_threads = error; then
24648 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24649 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24650 { (exit 1); exit 1; }; };
24653 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24654 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24655 if test "${ol_cv_pthread_create_works+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24659 if test "$cross_compiling" = yes; then
24660 ol_cv_pthread_create_works=yes
24662 cat >conftest.$ac_ext <<_ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24669 /* pthread test headers */
24670 #include <pthread.h>
24671 #if HAVE_PTHREADS < 7
24675 #define NULL (void*)0
24678 static void *task(p)
24681 return (void *) (p == NULL);
24685 int main(argc, argv)
24690 /* pthread test function */
24691 #ifndef PTHREAD_CREATE_DETACHED
24692 #define PTHREAD_CREATE_DETACHED 1
24696 int detach = PTHREAD_CREATE_DETACHED;
24698 #if HAVE_PTHREADS > 4
24699 /* Final pthreads */
24700 pthread_attr_t attr;
24702 status = pthread_attr_init(&attr);
24703 if( status ) return status;
24705 #if HAVE_PTHREADS < 7
24706 status = pthread_attr_setdetachstate(&attr, &detach);
24707 if( status < 0 ) status = errno;
24709 status = pthread_attr_setdetachstate(&attr, detach);
24711 if( status ) return status;
24712 status = pthread_create( &t, &attr, task, NULL );
24713 #if HAVE_PTHREADS < 7
24714 if( status < 0 ) status = errno;
24716 if( status ) return status;
24718 /* Draft 4 pthreads */
24719 status = pthread_create( &t, pthread_attr_default, task, NULL );
24720 if( status ) return errno;
24722 /* give thread a chance to complete */
24723 /* it should remain joinable and hence detachable */
24726 status = pthread_detach( &t );
24727 if( status ) return errno;
24730 #ifdef HAVE_LINUX_THREADS
24731 pthread_kill_other_threads_np();
24739 rm -f conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741 (eval $ac_link) 2>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
24750 ol_cv_pthread_create_works=yes
24752 echo "$as_me: program exited with status $ac_status" >&5
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ( exit $ac_status )
24757 ol_cv_pthread_create_works=no
24759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24762 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24763 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24765 if test $ol_cv_pthread_create_works = no ; then
24766 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24767 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24768 { (exit 1); exit 1; }; }
24771 ol_replace_broken_yield=no
24774 ol_replace_broken_yield=yes
24778 if test $ol_replace_broken_yield = yes ; then
24780 cat >>confdefs.h <<\_ACEOF
24781 #define REPLACE_BROKEN_YIELD 1
24786 if test $ol_with_yielding_select = auto ; then
24787 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24788 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24789 if test "${ol_cv_pthread_select_yields+set}" = set; then
24790 echo $ECHO_N "(cached) $ECHO_C" >&6
24793 if test "$cross_compiling" = yes; then
24794 ol_cv_pthread_select_yields=cross
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24803 #include <sys/types.h>
24804 #include <sys/time.h>
24805 #include <unistd.h>
24806 #include <pthread.h>
24808 #define NULL (void*) 0
24811 static int fildes[2];
24813 static void *task(p)
24825 FD_SET(fildes[0], &rfds);
24827 /* we're not interested in any fds */
24828 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24835 exit(0); /* if we exit here, the select blocked the whole process */
24838 int main(argc, argv)
24844 /* create a pipe to select */
24845 if(pipe(&fildes[0])) {
24850 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24851 (void) pthread_setconcurrency(2);
24853 #ifdef HAVE_THR_SETCONCURRENCY
24854 /* Set Solaris LWP concurrency to 2 */
24855 thr_setconcurrency(2);
24859 #if HAVE_PTHREADS < 6
24860 pthread_create(&t, pthread_attr_default, task, NULL);
24862 pthread_create(&t, NULL, task, NULL);
24865 /* make sure task runs first */
24868 #elif defined( HAVE_SCHED_YIELD )
24870 #elif defined( HAVE_PTHREAD_YIELD )
24877 rm -f conftest$ac_exeext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24879 (eval $ac_link) 2>&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 ol_cv_pthread_select_yields=no
24890 echo "$as_me: program exited with status $ac_status" >&5
24891 echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24894 ( exit $ac_status )
24895 ol_cv_pthread_select_yields=yes
24897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24900 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24901 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24903 if test $ol_cv_pthread_select_yields = cross ; then
24904 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24905 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24906 { (exit 1); exit 1; }; }
24909 if test $ol_cv_pthread_select_yields = yes ; then
24910 ol_with_yielding_select=yes
24914 CPPFLAGS="$save_CPPFLAGS"
24917 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24918 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24919 { (exit 1); exit 1; }; }
24923 if test $ol_with_threads = posix ; then
24924 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24925 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24926 { (exit 1); exit 1; }; }
24931 case $ol_with_threads in auto | yes | mach)
24935 for ac_header in mach/cthreads.h cthreads.h
24937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24939 echo "$as_me:$LINENO: checking for $ac_header" >&5
24940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24942 echo $ECHO_N "(cached) $ECHO_C" >&6
24944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24947 # Is the header compilable?
24948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24956 $ac_includes_default
24957 #include <$ac_header>
24959 rm -f conftest.$ac_objext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24961 (eval $ac_compile) 2>conftest.er1
24963 grep -v '^ *+' conftest.er1 >conftest.err
24965 cat conftest.err >&5
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } &&
24968 { ac_try='test -z "$ac_c_werror_flag"
24969 || test ! -s conftest.err'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; } &&
24975 { ac_try='test -s conftest.$ac_objext'
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
24981 ac_header_compiler=yes
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24986 ac_header_compiler=no
24988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24990 echo "${ECHO_T}$ac_header_compiler" >&6
24992 # Is the header present?
24993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 #include <$ac_header>
25003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } >/dev/null; then
25011 if test -s conftest.err; then
25012 ac_cpp_err=$ac_c_preproc_warn_flag
25013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25020 if test -z "$ac_cpp_err"; then
25021 ac_header_preproc=yes
25023 echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 ac_header_preproc=no
25028 rm -f conftest.err conftest.$ac_ext
25029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25030 echo "${ECHO_T}$ac_header_preproc" >&6
25032 # So? What about this header?
25033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25039 ac_header_preproc=yes
25042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25056 ## ------------------------------------------ ##
25057 ## Report this to the AC_PACKAGE_NAME lists. ##
25058 ## ------------------------------------------ ##
25061 sed "s/^/$as_me: WARNING: /" >&2
25064 echo "$as_me:$LINENO: checking for $ac_header" >&5
25065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25069 eval "$as_ac_Header=\$ac_header_preproc"
25071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25076 cat >>confdefs.h <<_ACEOF
25077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25084 if test $ac_cv_header_mach_cthreads_h = yes ; then
25085 ol_with_threads=found
25087 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25088 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25089 if test "${ac_cv_func_cthread_fork+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 cat >conftest.$ac_ext <<_ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h. */
25098 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25100 #define cthread_fork innocuous_cthread_fork
25102 /* System header to define __stub macros and hopefully few prototypes,
25103 which can conflict with char cthread_fork (); below.
25104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25105 <limits.h> exists even on freestanding compilers. */
25108 # include <limits.h>
25110 # include <assert.h>
25113 #undef cthread_fork
25115 /* Override any gcc2 internal prototype to avoid an error. */
25120 /* We use char because int might match the return type of a gcc2
25121 builtin and then its argument prototype would still apply. */
25122 char cthread_fork ();
25123 /* The GNU C library defines this for functions which it implements
25124 to always fail with ENOSYS. Some functions are actually named
25125 something starting with __ and the normal name is an alias. */
25126 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25129 char (*f) () = cthread_fork;
25138 return f != cthread_fork;
25143 rm -f conftest.$ac_objext conftest$ac_exeext
25144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25145 (eval $ac_link) 2>conftest.er1
25147 grep -v '^ *+' conftest.er1 >conftest.err
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } &&
25152 { ac_try='test -z "$ac_c_werror_flag"
25153 || test ! -s conftest.err'
25154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155 (eval $ac_try) 2>&5
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); }; } &&
25159 { ac_try='test -s conftest$ac_exeext'
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; }; then
25165 ac_cv_func_cthread_fork=yes
25167 echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25170 ac_cv_func_cthread_fork=no
25172 rm -f conftest.err conftest.$ac_objext \
25173 conftest$ac_exeext conftest.$ac_ext
25175 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25176 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25177 if test $ac_cv_func_cthread_fork = yes; then
25178 ol_link_threads=yes
25182 if test $ol_link_threads = no ; then
25183 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25184 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25185 if test "${ol_cv_cthread_all_load+set}" = set; then
25186 echo $ECHO_N "(cached) $ECHO_C" >&6
25190 LIBS="-all_load $LIBS"
25191 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 #include <mach/cthreads.h>
25202 cthread_fork((void *)0, (void *)0);
25208 rm -f conftest.$ac_objext conftest$ac_exeext
25209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25210 (eval $ac_link) 2>conftest.er1
25212 grep -v '^ *+' conftest.er1 >conftest.err
25214 cat conftest.err >&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } &&
25217 { ac_try='test -z "$ac_c_werror_flag"
25218 || test ! -s conftest.err'
25219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220 (eval $ac_try) 2>&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; } &&
25224 { ac_try='test -s conftest$ac_exeext'
25225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226 (eval $ac_try) 2>&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); }; }; then
25230 ol_cv_cthread_all_load=yes
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ol_cv_cthread_all_load=no
25237 rm -f conftest.err conftest.$ac_objext \
25238 conftest$ac_exeext conftest.$ac_ext
25242 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25243 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25245 if test $ol_cv_cthread_all_load = yes ; then
25246 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25247 ol_link_threads=mach
25248 ol_with_threads=found
25252 elif test $ac_cv_header_cthreads_h = yes ; then
25254 ol_with_threads=found
25257 LIBS="$LIBS -lthreads"
25258 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25259 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25260 if test "${ac_cv_func_cthread_fork+set}" = set; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
25263 cat >conftest.$ac_ext <<_ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25269 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25271 #define cthread_fork innocuous_cthread_fork
25273 /* System header to define __stub macros and hopefully few prototypes,
25274 which can conflict with char cthread_fork (); below.
25275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25276 <limits.h> exists even on freestanding compilers. */
25279 # include <limits.h>
25281 # include <assert.h>
25284 #undef cthread_fork
25286 /* Override any gcc2 internal prototype to avoid an error. */
25291 /* We use char because int might match the return type of a gcc2
25292 builtin and then its argument prototype would still apply. */
25293 char cthread_fork ();
25294 /* The GNU C library defines this for functions which it implements
25295 to always fail with ENOSYS. Some functions are actually named
25296 something starting with __ and the normal name is an alias. */
25297 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25300 char (*f) () = cthread_fork;
25309 return f != cthread_fork;
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25316 (eval $ac_link) 2>conftest.er1
25318 grep -v '^ *+' conftest.er1 >conftest.err
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } &&
25323 { ac_try='test -z "$ac_c_werror_flag"
25324 || test ! -s conftest.err'
25325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326 (eval $ac_try) 2>&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; } &&
25330 { ac_try='test -s conftest$ac_exeext'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; }; then
25336 ac_cv_func_cthread_fork=yes
25338 echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25341 ac_cv_func_cthread_fork=no
25343 rm -f conftest.err conftest.$ac_objext \
25344 conftest$ac_exeext conftest.$ac_ext
25346 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25347 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25348 if test $ac_cv_func_cthread_fork = yes; then
25349 ol_link_threads=yes
25354 if test $ol_link_threads = yes ; then
25355 LTHREAD_LIBS="-lthreads"
25356 ol_link_threads=mach
25357 ol_with_threads=found
25359 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25360 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25361 { (exit 1); exit 1; }; }
25364 elif test $ol_with_threads = mach ; then
25365 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25366 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25367 { (exit 1); exit 1; }; }
25370 if test $ol_link_threads = mach ; then
25372 cat >>confdefs.h <<\_ACEOF
25373 #define HAVE_MACH_CTHREADS 1
25376 elif test $ol_with_threads = found ; then
25377 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25378 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25379 { (exit 1); exit 1; }; }
25384 case $ol_with_threads in auto | yes | pth)
25387 for ac_header in pth.h
25389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25391 echo "$as_me:$LINENO: checking for $ac_header" >&5
25392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25394 echo $ECHO_N "(cached) $ECHO_C" >&6
25396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25399 # Is the header compilable?
25400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 $ac_includes_default
25409 #include <$ac_header>
25411 rm -f conftest.$ac_objext
25412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25413 (eval $ac_compile) 2>conftest.er1
25415 grep -v '^ *+' conftest.er1 >conftest.err
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } &&
25420 { ac_try='test -z "$ac_c_werror_flag"
25421 || test ! -s conftest.err'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; } &&
25427 { ac_try='test -s conftest.$ac_objext'
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; }; then
25433 ac_header_compiler=yes
25435 echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25438 ac_header_compiler=no
25440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25442 echo "${ECHO_T}$ac_header_compiler" >&6
25444 # Is the header present?
25445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 #include <$ac_header>
25455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } >/dev/null; then
25463 if test -s conftest.err; then
25464 ac_cpp_err=$ac_c_preproc_warn_flag
25465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25472 if test -z "$ac_cpp_err"; then
25473 ac_header_preproc=yes
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 ac_header_preproc=no
25480 rm -f conftest.err conftest.$ac_ext
25481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25482 echo "${ECHO_T}$ac_header_preproc" >&6
25484 # So? What about this header?
25485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25491 ac_header_preproc=yes
25494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25508 ## ------------------------------------------ ##
25509 ## Report this to the AC_PACKAGE_NAME lists. ##
25510 ## ------------------------------------------ ##
25513 sed "s/^/$as_me: WARNING: /" >&2
25516 echo "$as_me:$LINENO: checking for $ac_header" >&5
25517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
25521 eval "$as_ac_Header=\$ac_header_preproc"
25523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25528 cat >>confdefs.h <<_ACEOF
25529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25537 if test $ac_cv_header_pth_h = yes ; then
25538 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25539 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25540 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 ac_check_lib_save_LIBS=$LIBS
25545 cat >conftest.$ac_ext <<_ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25552 /* Override any gcc2 internal prototype to avoid an error. */
25556 /* We use char because int might match the return type of a gcc2
25557 builtin and then its argument prototype would still apply. */
25558 char pth_version ();
25567 rm -f conftest.$ac_objext conftest$ac_exeext
25568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25569 (eval $ac_link) 2>conftest.er1
25571 grep -v '^ *+' conftest.er1 >conftest.err
25573 cat conftest.err >&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } &&
25576 { ac_try='test -z "$ac_c_werror_flag"
25577 || test ! -s conftest.err'
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; } &&
25583 { ac_try='test -s conftest$ac_exeext'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589 ac_cv_lib_pth_pth_version=yes
25591 echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25594 ac_cv_lib_pth_pth_version=no
25596 rm -f conftest.err conftest.$ac_objext \
25597 conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25600 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25601 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25602 if test $ac_cv_lib_pth_pth_version = yes; then
25609 if test $have_pth = yes ; then
25611 cat >>confdefs.h <<\_ACEOF
25612 #define HAVE_GNU_PTH 1
25615 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25616 ol_link_threads=pth
25617 ol_with_threads=found
25619 if test $ol_with_yielding_select = auto ; then
25620 ol_with_yielding_select=yes
25627 case $ol_with_threads in auto | yes | lwp)
25631 for ac_header in thread.h synch.h
25633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25635 echo "$as_me:$LINENO: checking for $ac_header" >&5
25636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25643 # Is the header compilable?
25644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25646 cat >conftest.$ac_ext <<_ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h. */
25652 $ac_includes_default
25653 #include <$ac_header>
25655 rm -f conftest.$ac_objext
25656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25657 (eval $ac_compile) 2>conftest.er1
25659 grep -v '^ *+' conftest.er1 >conftest.err
25661 cat conftest.err >&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); } &&
25664 { ac_try='test -z "$ac_c_werror_flag"
25665 || test ! -s conftest.err'
25666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667 (eval $ac_try) 2>&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; } &&
25671 { ac_try='test -s conftest.$ac_objext'
25672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673 (eval $ac_try) 2>&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; }; then
25677 ac_header_compiler=yes
25679 echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25682 ac_header_compiler=no
25684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25686 echo "${ECHO_T}$ac_header_compiler" >&6
25688 # Is the header present?
25689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25691 cat >conftest.$ac_ext <<_ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h. */
25697 #include <$ac_header>
25699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } >/dev/null; then
25707 if test -s conftest.err; then
25708 ac_cpp_err=$ac_c_preproc_warn_flag
25709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25716 if test -z "$ac_cpp_err"; then
25717 ac_header_preproc=yes
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25722 ac_header_preproc=no
25724 rm -f conftest.err conftest.$ac_ext
25725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25726 echo "${ECHO_T}$ac_header_preproc" >&6
25728 # So? What about this header?
25729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25735 ac_header_preproc=yes
25738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25752 ## ------------------------------------------ ##
25753 ## Report this to the AC_PACKAGE_NAME lists. ##
25754 ## ------------------------------------------ ##
25757 sed "s/^/$as_me: WARNING: /" >&2
25760 echo "$as_me:$LINENO: checking for $ac_header" >&5
25761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25763 echo $ECHO_N "(cached) $ECHO_C" >&6
25765 eval "$as_ac_Header=\$ac_header_preproc"
25767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25772 cat >>confdefs.h <<_ACEOF
25773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25780 if test $ac_cv_header_thread_h = yes &&
25781 test $ac_cv_header_synch_h = yes ; then
25782 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25783 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25784 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25787 ac_check_lib_save_LIBS=$LIBS
25788 LIBS="-lthread $LIBS"
25789 cat >conftest.$ac_ext <<_ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25796 /* Override any gcc2 internal prototype to avoid an error. */
25800 /* We use char because int might match the return type of a gcc2
25801 builtin and then its argument prototype would still apply. */
25802 char thr_create ();
25811 rm -f conftest.$ac_objext conftest$ac_exeext
25812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25813 (eval $ac_link) 2>conftest.er1
25815 grep -v '^ *+' conftest.er1 >conftest.err
25817 cat conftest.err >&5
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); } &&
25820 { ac_try='test -z "$ac_c_werror_flag"
25821 || test ! -s conftest.err'
25822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823 (eval $ac_try) 2>&5
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); }; } &&
25827 { ac_try='test -s conftest$ac_exeext'
25828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25829 (eval $ac_try) 2>&5
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); }; }; then
25833 ac_cv_lib_thread_thr_create=yes
25835 echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25838 ac_cv_lib_thread_thr_create=no
25840 rm -f conftest.err conftest.$ac_objext \
25841 conftest$ac_exeext conftest.$ac_ext
25842 LIBS=$ac_check_lib_save_LIBS
25844 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25845 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25846 if test $ac_cv_lib_thread_thr_create = yes; then
25853 if test $have_thr = yes ; then
25855 cat >>confdefs.h <<\_ACEOF
25859 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25860 ol_link_threads=thr
25862 if test $ol_with_yielding_select = auto ; then
25863 ol_with_yielding_select=yes
25869 thr_setconcurrency \
25870 thr_getconcurrency \
25873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25874 echo "$as_me:$LINENO: checking for $ac_func" >&5
25875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25876 if eval "test \"\${$as_ac_var+set}\" = set"; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25887 #define $ac_func innocuous_$ac_func
25889 /* System header to define __stub macros and hopefully few prototypes,
25890 which can conflict with char $ac_func (); below.
25891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25892 <limits.h> exists even on freestanding compilers. */
25895 # include <limits.h>
25897 # include <assert.h>
25902 /* Override any gcc2 internal prototype to avoid an error. */
25907 /* We use char because int might match the return type of a gcc2
25908 builtin and then its argument prototype would still apply. */
25910 /* The GNU C library defines this for functions which it implements
25911 to always fail with ENOSYS. Some functions are actually named
25912 something starting with __ and the normal name is an alias. */
25913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25916 char (*f) () = $ac_func;
25925 return f != $ac_func;
25930 rm -f conftest.$ac_objext conftest$ac_exeext
25931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25932 (eval $ac_link) 2>conftest.er1
25934 grep -v '^ *+' conftest.er1 >conftest.err
25936 cat conftest.err >&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } &&
25939 { ac_try='test -z "$ac_c_werror_flag"
25940 || test ! -s conftest.err'
25941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; } &&
25946 { ac_try='test -s conftest$ac_exeext'
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; }; then
25952 eval "$as_ac_var=yes"
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 eval "$as_ac_var=no"
25959 rm -f conftest.err conftest.$ac_objext \
25960 conftest$ac_exeext conftest.$ac_ext
25962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25964 if test `eval echo '${'$as_ac_var'}'` = yes; then
25965 cat >>confdefs.h <<_ACEOF
25966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25976 for ac_header in lwp/lwp.h
25978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25980 echo "$as_me:$LINENO: checking for $ac_header" >&5
25981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25983 echo $ECHO_N "(cached) $ECHO_C" >&6
25985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25988 # Is the header compilable?
25989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 $ac_includes_default
25998 #include <$ac_header>
26000 rm -f conftest.$ac_objext
26001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26002 (eval $ac_compile) 2>conftest.er1
26004 grep -v '^ *+' conftest.er1 >conftest.err
26006 cat conftest.err >&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } &&
26009 { ac_try='test -z "$ac_c_werror_flag"
26010 || test ! -s conftest.err'
26011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012 (eval $ac_try) 2>&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); }; } &&
26016 { ac_try='test -s conftest.$ac_objext'
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; }; then
26022 ac_header_compiler=yes
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027 ac_header_compiler=no
26029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26031 echo "${ECHO_T}$ac_header_compiler" >&6
26033 # Is the header present?
26034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26036 cat >conftest.$ac_ext <<_ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h. */
26042 #include <$ac_header>
26044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26047 grep -v '^ *+' conftest.er1 >conftest.err
26049 cat conftest.err >&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } >/dev/null; then
26052 if test -s conftest.err; then
26053 ac_cpp_err=$ac_c_preproc_warn_flag
26054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26061 if test -z "$ac_cpp_err"; then
26062 ac_header_preproc=yes
26064 echo "$as_me: failed program was:" >&5
26065 sed 's/^/| /' conftest.$ac_ext >&5
26067 ac_header_preproc=no
26069 rm -f conftest.err conftest.$ac_ext
26070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26071 echo "${ECHO_T}$ac_header_preproc" >&6
26073 # So? What about this header?
26074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26080 ac_header_preproc=yes
26083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26097 ## ------------------------------------------ ##
26098 ## Report this to the AC_PACKAGE_NAME lists. ##
26099 ## ------------------------------------------ ##
26102 sed "s/^/$as_me: WARNING: /" >&2
26105 echo "$as_me:$LINENO: checking for $ac_header" >&5
26106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26108 echo $ECHO_N "(cached) $ECHO_C" >&6
26110 eval "$as_ac_Header=\$ac_header_preproc"
26112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26117 cat >>confdefs.h <<_ACEOF
26118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26125 if test $ac_cv_header_lwp_lwp_h = yes ; then
26126 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26127 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26128 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26129 echo $ECHO_N "(cached) $ECHO_C" >&6
26131 ac_check_lib_save_LIBS=$LIBS
26133 cat >conftest.$ac_ext <<_ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h. */
26140 /* Override any gcc2 internal prototype to avoid an error. */
26144 /* We use char because int might match the return type of a gcc2
26145 builtin and then its argument prototype would still apply. */
26146 char lwp_create ();
26155 rm -f conftest.$ac_objext conftest$ac_exeext
26156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26157 (eval $ac_link) 2>conftest.er1
26159 grep -v '^ *+' conftest.er1 >conftest.err
26161 cat conftest.err >&5
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); } &&
26164 { ac_try='test -z "$ac_c_werror_flag"
26165 || test ! -s conftest.err'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; } &&
26171 { ac_try='test -s conftest$ac_exeext'
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; }; then
26177 ac_cv_lib_lwp_lwp_create=yes
26179 echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26182 ac_cv_lib_lwp_lwp_create=no
26184 rm -f conftest.err conftest.$ac_objext \
26185 conftest$ac_exeext conftest.$ac_ext
26186 LIBS=$ac_check_lib_save_LIBS
26188 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26189 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26190 if test $ac_cv_lib_lwp_lwp_create = yes; then
26197 if test $have_lwp = yes ; then
26199 cat >>confdefs.h <<\_ACEOF
26203 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26204 ol_link_threads=lwp
26206 if test $ol_with_yielding_select = auto ; then
26207 ol_with_yielding_select=no
26214 if test $ol_with_yielding_select = yes ; then
26216 cat >>confdefs.h <<\_ACEOF
26217 #define HAVE_YIELDING_SELECT 1
26222 if test $ol_with_threads = manual ; then
26223 ol_link_threads=yes
26225 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26226 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26230 for ac_header in pthread.h sched.h
26232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26234 echo "$as_me:$LINENO: checking for $ac_header" >&5
26235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26237 echo $ECHO_N "(cached) $ECHO_C" >&6
26239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26242 # Is the header compilable?
26243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 $ac_includes_default
26252 #include <$ac_header>
26254 rm -f conftest.$ac_objext
26255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26256 (eval $ac_compile) 2>conftest.er1
26258 grep -v '^ *+' conftest.er1 >conftest.err
26260 cat conftest.err >&5
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); } &&
26263 { ac_try='test -z "$ac_c_werror_flag"
26264 || test ! -s conftest.err'
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; } &&
26270 { ac_try='test -s conftest.$ac_objext'
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26276 ac_header_compiler=yes
26278 echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26281 ac_header_compiler=no
26283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26285 echo "${ECHO_T}$ac_header_compiler" >&6
26287 # Is the header present?
26288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 #include <$ac_header>
26298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26301 grep -v '^ *+' conftest.er1 >conftest.err
26303 cat conftest.err >&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } >/dev/null; then
26306 if test -s conftest.err; then
26307 ac_cpp_err=$ac_c_preproc_warn_flag
26308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26315 if test -z "$ac_cpp_err"; then
26316 ac_header_preproc=yes
26318 echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26321 ac_header_preproc=no
26323 rm -f conftest.err conftest.$ac_ext
26324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26325 echo "${ECHO_T}$ac_header_preproc" >&6
26327 # So? What about this header?
26328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26334 ac_header_preproc=yes
26337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26351 ## ------------------------------------------ ##
26352 ## Report this to the AC_PACKAGE_NAME lists. ##
26353 ## ------------------------------------------ ##
26356 sed "s/^/$as_me: WARNING: /" >&2
26359 echo "$as_me:$LINENO: checking for $ac_header" >&5
26360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 eval "$as_ac_Header=\$ac_header_preproc"
26366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26371 cat >>confdefs.h <<_ACEOF
26372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26381 for ac_func in sched_yield pthread_yield
26383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26384 echo "$as_me:$LINENO: checking for $ac_func" >&5
26385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26386 if eval "test \"\${$as_ac_var+set}\" = set"; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26389 cat >conftest.$ac_ext <<_ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26397 #define $ac_func innocuous_$ac_func
26399 /* System header to define __stub macros and hopefully few prototypes,
26400 which can conflict with char $ac_func (); below.
26401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26402 <limits.h> exists even on freestanding compilers. */
26405 # include <limits.h>
26407 # include <assert.h>
26412 /* Override any gcc2 internal prototype to avoid an error. */
26417 /* We use char because int might match the return type of a gcc2
26418 builtin and then its argument prototype would still apply. */
26420 /* The GNU C library defines this for functions which it implements
26421 to always fail with ENOSYS. Some functions are actually named
26422 something starting with __ and the normal name is an alias. */
26423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26426 char (*f) () = $ac_func;
26435 return f != $ac_func;
26440 rm -f conftest.$ac_objext conftest$ac_exeext
26441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26442 (eval $ac_link) 2>conftest.er1
26444 grep -v '^ *+' conftest.er1 >conftest.err
26446 cat conftest.err >&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } &&
26449 { ac_try='test -z "$ac_c_werror_flag"
26450 || test ! -s conftest.err'
26451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452 (eval $ac_try) 2>&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); }; } &&
26456 { ac_try='test -s conftest$ac_exeext'
26457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26458 (eval $ac_try) 2>&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); }; }; then
26462 eval "$as_ac_var=yes"
26464 echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26467 eval "$as_ac_var=no"
26469 rm -f conftest.err conftest.$ac_objext \
26470 conftest$ac_exeext conftest.$ac_ext
26472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26474 if test `eval echo '${'$as_ac_var'}'` = yes; then
26475 cat >>confdefs.h <<_ACEOF
26476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26483 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26484 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26485 if test "${ol_cv_header_linux_threads+set}" = set; then
26486 echo $ECHO_N "(cached) $ECHO_C" >&6
26488 cat >conftest.$ac_ext <<_ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h. */
26494 #include <pthread.h>
26496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26497 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26498 ol_cv_header_linux_threads=yes
26500 ol_cv_header_linux_threads=no
26506 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26507 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26508 if test $ol_cv_header_linux_threads = yes; then
26510 cat >>confdefs.h <<\_ACEOF
26511 #define HAVE_LINUX_THREADS 1
26518 for ac_header in mach/cthreads.h
26520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26522 echo "$as_me:$LINENO: checking for $ac_header" >&5
26523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26525 echo $ECHO_N "(cached) $ECHO_C" >&6
26527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26530 # Is the header compilable?
26531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26533 cat >conftest.$ac_ext <<_ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 $ac_includes_default
26540 #include <$ac_header>
26542 rm -f conftest.$ac_objext
26543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26544 (eval $ac_compile) 2>conftest.er1
26546 grep -v '^ *+' conftest.er1 >conftest.err
26548 cat conftest.err >&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } &&
26551 { ac_try='test -z "$ac_c_werror_flag"
26552 || test ! -s conftest.err'
26553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554 (eval $ac_try) 2>&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; } &&
26558 { ac_try='test -s conftest.$ac_objext'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }; then
26564 ac_header_compiler=yes
26566 echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26569 ac_header_compiler=no
26571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26573 echo "${ECHO_T}$ac_header_compiler" >&6
26575 # Is the header present?
26576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26578 cat >conftest.$ac_ext <<_ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h. */
26584 #include <$ac_header>
26586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26589 grep -v '^ *+' conftest.er1 >conftest.err
26591 cat conftest.err >&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); } >/dev/null; then
26594 if test -s conftest.err; then
26595 ac_cpp_err=$ac_c_preproc_warn_flag
26596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26603 if test -z "$ac_cpp_err"; then
26604 ac_header_preproc=yes
26606 echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26609 ac_header_preproc=no
26611 rm -f conftest.err conftest.$ac_ext
26612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26613 echo "${ECHO_T}$ac_header_preproc" >&6
26615 # So? What about this header?
26616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26622 ac_header_preproc=yes
26625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26639 ## ------------------------------------------ ##
26640 ## Report this to the AC_PACKAGE_NAME lists. ##
26641 ## ------------------------------------------ ##
26644 sed "s/^/$as_me: WARNING: /" >&2
26647 echo "$as_me:$LINENO: checking for $ac_header" >&5
26648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26650 echo $ECHO_N "(cached) $ECHO_C" >&6
26652 eval "$as_ac_Header=\$ac_header_preproc"
26654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26659 cat >>confdefs.h <<_ACEOF
26660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26668 for ac_header in lwp/lwp.h
26670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26672 echo "$as_me:$LINENO: checking for $ac_header" >&5
26673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26680 # Is the header compilable?
26681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26683 cat >conftest.$ac_ext <<_ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h. */
26689 $ac_includes_default
26690 #include <$ac_header>
26692 rm -f conftest.$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694 (eval $ac_compile) 2>conftest.er1
26696 grep -v '^ *+' conftest.er1 >conftest.err
26698 cat conftest.err >&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } &&
26701 { ac_try='test -z "$ac_c_werror_flag"
26702 || test ! -s conftest.err'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; } &&
26708 { ac_try='test -s conftest.$ac_objext'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; }; then
26714 ac_header_compiler=yes
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 ac_header_compiler=no
26721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26723 echo "${ECHO_T}$ac_header_compiler" >&6
26725 # Is the header present?
26726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26728 cat >conftest.$ac_ext <<_ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h. */
26734 #include <$ac_header>
26736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26739 grep -v '^ *+' conftest.er1 >conftest.err
26741 cat conftest.err >&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } >/dev/null; then
26744 if test -s conftest.err; then
26745 ac_cpp_err=$ac_c_preproc_warn_flag
26746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26753 if test -z "$ac_cpp_err"; then
26754 ac_header_preproc=yes
26756 echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26759 ac_header_preproc=no
26761 rm -f conftest.err conftest.$ac_ext
26762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26763 echo "${ECHO_T}$ac_header_preproc" >&6
26765 # So? What about this header?
26766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26772 ac_header_preproc=yes
26775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26789 ## ------------------------------------------ ##
26790 ## Report this to the AC_PACKAGE_NAME lists. ##
26791 ## ------------------------------------------ ##
26794 sed "s/^/$as_me: WARNING: /" >&2
26797 echo "$as_me:$LINENO: checking for $ac_header" >&5
26798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26800 echo $ECHO_N "(cached) $ECHO_C" >&6
26802 eval "$as_ac_Header=\$ac_header_preproc"
26804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26809 cat >>confdefs.h <<_ACEOF
26810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26819 for ac_header in thread.h synch.h
26821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26823 echo "$as_me:$LINENO: checking for $ac_header" >&5
26824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26831 # Is the header compilable?
26832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26834 cat >conftest.$ac_ext <<_ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h. */
26840 $ac_includes_default
26841 #include <$ac_header>
26843 rm -f conftest.$ac_objext
26844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26845 (eval $ac_compile) 2>conftest.er1
26847 grep -v '^ *+' conftest.er1 >conftest.err
26849 cat conftest.err >&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } &&
26852 { ac_try='test -z "$ac_c_werror_flag"
26853 || test ! -s conftest.err'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; } &&
26859 { ac_try='test -s conftest.$ac_objext'
26860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; }; then
26865 ac_header_compiler=yes
26867 echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26870 ac_header_compiler=no
26872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26874 echo "${ECHO_T}$ac_header_compiler" >&6
26876 # Is the header present?
26877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26879 cat >conftest.$ac_ext <<_ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26885 #include <$ac_header>
26887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26890 grep -v '^ *+' conftest.er1 >conftest.err
26892 cat conftest.err >&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); } >/dev/null; then
26895 if test -s conftest.err; then
26896 ac_cpp_err=$ac_c_preproc_warn_flag
26897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26904 if test -z "$ac_cpp_err"; then
26905 ac_header_preproc=yes
26907 echo "$as_me: failed program was:" >&5
26908 sed 's/^/| /' conftest.$ac_ext >&5
26910 ac_header_preproc=no
26912 rm -f conftest.err conftest.$ac_ext
26913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26914 echo "${ECHO_T}$ac_header_preproc" >&6
26916 # So? What about this header?
26917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26923 ac_header_preproc=yes
26926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26940 ## ------------------------------------------ ##
26941 ## Report this to the AC_PACKAGE_NAME lists. ##
26942 ## ------------------------------------------ ##
26945 sed "s/^/$as_me: WARNING: /" >&2
26948 echo "$as_me:$LINENO: checking for $ac_header" >&5
26949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26951 echo $ECHO_N "(cached) $ECHO_C" >&6
26953 eval "$as_ac_Header=\$ac_header_preproc"
26955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26960 cat >>confdefs.h <<_ACEOF
26961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26970 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26971 cat >>confdefs.h <<\_ACEOF
26972 #define REENTRANT 1
26975 cat >>confdefs.h <<\_ACEOF
26976 #define _REENTRANT 1
26979 cat >>confdefs.h <<\_ACEOF
26980 #define THREAD_SAFE 1
26983 cat >>confdefs.h <<\_ACEOF
26984 #define _THREAD_SAFE 1
26987 cat >>confdefs.h <<\_ACEOF
26988 #define THREADSAFE 1
26991 cat >>confdefs.h <<\_ACEOF
26992 #define _THREADSAFE 1
26995 cat >>confdefs.h <<\_ACEOF
26996 #define _SGI_MP_SOURCE 1
27000 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27001 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27002 if test "${ol_cv_errno_thread_specific+set}" = set; then
27003 echo $ECHO_N "(cached) $ECHO_C" >&6
27006 cat >conftest.$ac_ext <<_ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h. */
27021 rm -f conftest.$ac_objext conftest$ac_exeext
27022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27023 (eval $ac_link) 2>conftest.er1
27025 grep -v '^ *+' conftest.er1 >conftest.err
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } &&
27030 { ac_try='test -z "$ac_c_werror_flag"
27031 || test ! -s conftest.err'
27032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033 (eval $ac_try) 2>&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; } &&
27037 { ac_try='test -s conftest$ac_exeext'
27038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039 (eval $ac_try) 2>&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); }; }; then
27043 ol_cv_errno_thread_specific=yes
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27048 ol_cv_errno_thread_specific=no
27050 rm -f conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
27054 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27055 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27057 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27058 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27059 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27060 echo $ECHO_N "(cached) $ECHO_C" >&6
27063 cat >conftest.$ac_ext <<_ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h. */
27078 rm -f conftest.$ac_objext conftest$ac_exeext
27079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27080 (eval $ac_link) 2>conftest.er1
27082 grep -v '^ *+' conftest.er1 >conftest.err
27084 cat conftest.err >&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } &&
27087 { ac_try='test -z "$ac_c_werror_flag"
27088 || test ! -s conftest.err'
27089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090 (eval $ac_try) 2>&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); }; } &&
27094 { ac_try='test -s conftest$ac_exeext'
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; }; then
27100 ol_cv_h_errno_thread_specific=yes
27102 echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27105 ol_cv_h_errno_thread_specific=no
27107 rm -f conftest.err conftest.$ac_objext \
27108 conftest$ac_exeext conftest.$ac_ext
27111 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27112 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27114 if test $ol_cv_errno_thread_specific != yes ||
27115 test $ol_cv_h_errno_thread_specific != yes ; then
27116 LIBS="$LTHREAD_LIBS $LIBS"
27122 if test $ol_link_threads = no ; then
27123 if test $ol_with_threads = yes ; then
27124 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27125 echo "$as_me: error: no suitable thread support" >&2;}
27126 { (exit 1); exit 1; }; }
27129 if test $ol_with_threads = auto ; then
27130 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27131 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27136 cat >>confdefs.h <<\_ACEOF
27137 #define NO_THREADS 1
27146 if test $ol_link_threads != no ; then
27148 cat >>confdefs.h <<\_ACEOF
27149 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27159 gethostbyname_r gethostbyaddr_r \
27162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27163 echo "$as_me:$LINENO: checking for $ac_func" >&5
27164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27165 if eval "test \"\${$as_ac_var+set}\" = set"; then
27166 echo $ECHO_N "(cached) $ECHO_C" >&6
27168 cat >conftest.$ac_ext <<_ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h. */
27174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27176 #define $ac_func innocuous_$ac_func
27178 /* System header to define __stub macros and hopefully few prototypes,
27179 which can conflict with char $ac_func (); below.
27180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27181 <limits.h> exists even on freestanding compilers. */
27184 # include <limits.h>
27186 # include <assert.h>
27191 /* Override any gcc2 internal prototype to avoid an error. */
27196 /* We use char because int might match the return type of a gcc2
27197 builtin and then its argument prototype would still apply. */
27199 /* The GNU C library defines this for functions which it implements
27200 to always fail with ENOSYS. Some functions are actually named
27201 something starting with __ and the normal name is an alias. */
27202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27205 char (*f) () = $ac_func;
27214 return f != $ac_func;
27219 rm -f conftest.$ac_objext conftest$ac_exeext
27220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27221 (eval $ac_link) 2>conftest.er1
27223 grep -v '^ *+' conftest.er1 >conftest.err
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag"
27229 || test ! -s conftest.err'
27230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231 (eval $ac_try) 2>&5
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; } &&
27235 { ac_try='test -s conftest$ac_exeext'
27236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237 (eval $ac_try) 2>&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; }; then
27241 eval "$as_ac_var=yes"
27243 echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27246 eval "$as_ac_var=no"
27248 rm -f conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
27251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27253 if test `eval echo '${'$as_ac_var'}'` = yes; then
27254 cat >>confdefs.h <<_ACEOF
27255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27262 if test "$ac_cv_func_ctime_r" = no ; then
27263 ol_cv_func_ctime_r_nargs=0
27265 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27266 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27267 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27268 echo $ECHO_N "(cached) $ECHO_C" >&6
27270 cat >conftest.$ac_ext <<_ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h. */
27280 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27285 rm -f conftest.$ac_objext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27287 (eval $ac_compile) 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag"
27295 || test ! -s conftest.err'
27296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297 (eval $ac_try) 2>&5
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); }; } &&
27301 { ac_try='test -s conftest.$ac_objext'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27307 ol_cv_func_ctime_r_nargs3=yes
27309 echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27312 ol_cv_func_ctime_r_nargs3=no
27314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27316 cat >conftest.$ac_ext <<_ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h. */
27326 time_t ti; char *buffer; ctime_r(&ti,buffer);
27331 rm -f conftest.$ac_objext
27332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27333 (eval $ac_compile) 2>conftest.er1
27335 grep -v '^ *+' conftest.er1 >conftest.err
27337 cat conftest.err >&5
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } &&
27340 { ac_try='test -z "$ac_c_werror_flag"
27341 || test ! -s conftest.err'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; } &&
27347 { ac_try='test -s conftest.$ac_objext'
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; }; then
27353 ol_cv_func_ctime_r_nargs2=yes
27355 echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27358 ol_cv_func_ctime_r_nargs2=no
27360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27362 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27363 test $ol_cv_func_ctime_r_nargs2 = no ; then
27365 ol_cv_func_ctime_r_nargs=3
27367 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27368 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27370 ol_cv_func_ctime_r_nargs=2
27373 ol_cv_func_ctime_r_nargs=0
27377 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27378 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27380 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27382 cat >>confdefs.h <<_ACEOF
27383 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27390 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27391 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27392 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27393 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 cat >conftest.$ac_ext <<_ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h. */
27402 #include <sys/types.h>
27403 #include <sys/socket.h>
27404 #include <netinet/in.h>
27406 #define BUFSIZE (sizeof(struct hostent)+10)
27410 struct hostent hent; char buffer[BUFSIZE];
27411 int bufsize=BUFSIZE;int h_errno;
27412 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27413 buffer, bufsize, &h_errno);
27418 rm -f conftest.$ac_objext
27419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27420 (eval $ac_compile) 2>conftest.er1
27422 grep -v '^ *+' conftest.er1 >conftest.err
27424 cat conftest.err >&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } &&
27427 { ac_try='test -z "$ac_c_werror_flag"
27428 || test ! -s conftest.err'
27429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430 (eval $ac_try) 2>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); }; } &&
27434 { ac_try='test -s conftest.$ac_objext'
27435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436 (eval $ac_try) 2>&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; }; then
27440 ol_cv_func_gethostbyname_r_nargs5=yes
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27445 ol_cv_func_gethostbyname_r_nargs5=no
27447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27449 cat >conftest.$ac_ext <<_ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27455 #include <sys/types.h>
27456 #include <sys/socket.h>
27457 #include <netinet/in.h>
27459 #define BUFSIZE (sizeof(struct hostent)+10)
27463 struct hostent hent;struct hostent *rhent;
27464 char buffer[BUFSIZE];
27465 int bufsize=BUFSIZE;int h_errno;
27466 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27472 rm -f conftest.$ac_objext
27473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27474 (eval $ac_compile) 2>conftest.er1
27476 grep -v '^ *+' conftest.er1 >conftest.err
27478 cat conftest.err >&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); } &&
27481 { ac_try='test -z "$ac_c_werror_flag"
27482 || test ! -s conftest.err'
27483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484 (eval $ac_try) 2>&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; } &&
27488 { ac_try='test -s conftest.$ac_objext'
27489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27490 (eval $ac_try) 2>&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; }; then
27494 ol_cv_func_gethostbyname_r_nargs6=yes
27496 echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27499 ol_cv_func_gethostbyname_r_nargs6=no
27501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27503 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27504 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27506 ol_cv_func_gethostbyname_r_nargs=5
27508 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27509 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27511 ol_cv_func_gethostbyname_r_nargs=6
27514 ol_cv_func_gethostbyname_r_nargs=0
27518 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27519 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27520 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27522 cat >>confdefs.h <<_ACEOF
27523 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27529 ol_cv_func_gethostbyname_r_nargs=0
27532 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27533 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27534 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27535 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 cat >conftest.$ac_ext <<_ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h. */
27544 #include <sys/types.h>
27545 #include <sys/socket.h>
27546 #include <netinet/in.h>
27548 #define BUFSIZE (sizeof(struct hostent)+10)
27552 struct hostent hent; char buffer[BUFSIZE];
27553 struct in_addr add;
27554 size_t alen=sizeof(struct in_addr);
27555 int bufsize=BUFSIZE;int h_errno;
27556 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27557 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27562 rm -f conftest.$ac_objext
27563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27564 (eval $ac_compile) 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag"
27572 || test ! -s conftest.err'
27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574 (eval $ac_try) 2>&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; } &&
27578 { ac_try='test -s conftest.$ac_objext'
27579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580 (eval $ac_try) 2>&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; }; then
27584 ol_cv_func_gethostbyaddr_r_nargs7=yes
27586 echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27589 ol_cv_func_gethostbyaddr_r_nargs7=no
27591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27593 cat >conftest.$ac_ext <<_ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h. */
27599 #include <sys/types.h>
27600 #include <sys/socket.h>
27601 #include <netinet/in.h>
27603 #define BUFSIZE (sizeof(struct hostent)+10)
27607 struct hostent hent;
27608 struct hostent *rhent; char buffer[BUFSIZE];
27609 struct in_addr add;
27610 size_t alen=sizeof(struct in_addr);
27611 int bufsize=BUFSIZE;int h_errno;
27612 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27613 alen, AF_INET, &hent, buffer, bufsize,
27619 rm -f conftest.$ac_objext
27620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27621 (eval $ac_compile) 2>conftest.er1
27623 grep -v '^ *+' conftest.er1 >conftest.err
27625 cat conftest.err >&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } &&
27628 { ac_try='test -z "$ac_c_werror_flag"
27629 || test ! -s conftest.err'
27630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; } &&
27635 { ac_try='test -s conftest.$ac_objext'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; }; then
27641 ol_cv_func_gethostbyaddr_r_nargs8=yes
27643 echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27646 ol_cv_func_gethostbyaddr_r_nargs8=no
27648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27650 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27651 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27653 ol_cv_func_gethostbyaddr_r_nargs=7
27655 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27656 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27658 ol_cv_func_gethostbyaddr_r_nargs=8
27661 ol_cv_func_gethostbyaddr_r_nargs=0
27665 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27666 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27667 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27669 cat >>confdefs.h <<_ACEOF
27670 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27676 ol_cv_func_gethostbyaddr_r_nargs=0
27681 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27683 if test $ol_enable_ldbm_api = bcompat; then \
27686 for ac_header in db_185.h db.h
27688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27690 echo "$as_me:$LINENO: checking for $ac_header" >&5
27691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
27695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27698 # Is the header compilable?
27699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27701 cat >conftest.$ac_ext <<_ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h. */
27707 $ac_includes_default
27708 #include <$ac_header>
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712 (eval $ac_compile) 2>conftest.er1
27714 grep -v '^ *+' conftest.er1 >conftest.err
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest.$ac_objext'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732 ac_header_compiler=yes
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27737 ac_header_compiler=no
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27741 echo "${ECHO_T}$ac_header_compiler" >&6
27743 # Is the header present?
27744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27746 cat >conftest.$ac_ext <<_ACEOF
27749 cat confdefs.h >>conftest.$ac_ext
27750 cat >>conftest.$ac_ext <<_ACEOF
27751 /* end confdefs.h. */
27752 #include <$ac_header>
27754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } >/dev/null; then
27762 if test -s conftest.err; then
27763 ac_cpp_err=$ac_c_preproc_warn_flag
27764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27771 if test -z "$ac_cpp_err"; then
27772 ac_header_preproc=yes
27774 echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27777 ac_header_preproc=no
27779 rm -f conftest.err conftest.$ac_ext
27780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27781 echo "${ECHO_T}$ac_header_preproc" >&6
27783 # So? What about this header?
27784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27790 ac_header_preproc=yes
27793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27807 ## ------------------------------------------ ##
27808 ## Report this to the AC_PACKAGE_NAME lists. ##
27809 ## ------------------------------------------ ##
27812 sed "s/^/$as_me: WARNING: /" >&2
27815 echo "$as_me:$LINENO: checking for $ac_header" >&5
27816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27820 eval "$as_ac_Header=\$ac_header_preproc"
27822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27827 cat >>confdefs.h <<_ACEOF
27828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27835 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27836 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27837 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27838 if test "${ol_cv_header_db1+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27842 cat >conftest.$ac_ext <<_ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h. */
27850 # include <db_185.h>
27855 /* this check could be improved */
27856 #ifndef DB_VERSION_MAJOR
27857 # define DB_VERSION_MAJOR 1
27860 #if DB_VERSION_MAJOR == 1
27865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27866 $EGREP "__db_version_1" >/dev/null 2>&1; then
27867 ol_cv_header_db1=yes
27869 ol_cv_header_db1=no
27874 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27875 echo "${ECHO_T}$ol_cv_header_db1" >&6
27877 if test $ol_cv_header_db1 = yes ; then
27880 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27881 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27882 if test "${ol_cv_bdb_major+set}" = set; then
27883 echo $ECHO_N "(cached) $ECHO_C" >&6
27887 if test $ol_cv_bdb_major = 0 ; then
27888 cat >conftest.$ac_ext <<_ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27896 #ifndef DB_VERSION_MAJOR
27897 # define DB_VERSION_MAJOR 1
27899 #if DB_VERSION_MAJOR == 4
27904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27905 $EGREP "__db_version" >/dev/null 2>&1; then
27913 if test $ol_cv_bdb_major = 0 ; then
27914 cat >conftest.$ac_ext <<_ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h. */
27922 #ifndef DB_VERSION_MAJOR
27923 # define DB_VERSION_MAJOR 1
27925 #if DB_VERSION_MAJOR == 3
27930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27931 $EGREP "__db_version" >/dev/null 2>&1; then
27939 if test $ol_cv_bdb_major = 0 ; then
27940 cat >conftest.$ac_ext <<_ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h. */
27948 #ifndef DB_VERSION_MAJOR
27949 # define DB_VERSION_MAJOR 1
27951 #if DB_VERSION_MAJOR == 2
27956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27957 $EGREP "__db_version" >/dev/null 2>&1; then
27965 if test $ol_cv_bdb_major = 0 ; then
27966 cat >conftest.$ac_ext <<_ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h. */
27974 #ifndef DB_VERSION_MAJOR
27975 # define DB_VERSION_MAJOR 1
27977 #if DB_VERSION_MAJOR == 1
27982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27983 $EGREP "__db_version" >/dev/null 2>&1; then
27992 if test $ol_cv_bdb_major = 0 ; then
27993 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27994 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27995 { (exit 1); exit 1; }; }
27999 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28000 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28002 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28003 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28004 if test "${ol_cv_bdb_minor+set}" = set; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28009 if test $ol_cv_bdb_minor = 0 ; then
28010 cat >conftest.$ac_ext <<_ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h. */
28018 #ifndef DB_VERSION_MINOR
28019 # define DB_VERSION_MINOR 0
28021 #if DB_VERSION_MINOR == 9
28026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28027 $EGREP "__db_version" >/dev/null 2>&1; then
28035 if test $ol_cv_bdb_minor = 0 ; then
28036 cat >conftest.$ac_ext <<_ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h. */
28044 #ifndef DB_VERSION_MINOR
28045 # define DB_VERSION_MINOR 0
28047 #if DB_VERSION_MINOR == 8
28052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28053 $EGREP "__db_version" >/dev/null 2>&1; then
28061 if test $ol_cv_bdb_minor = 0 ; then
28062 cat >conftest.$ac_ext <<_ACEOF
28065 cat confdefs.h >>conftest.$ac_ext
28066 cat >>conftest.$ac_ext <<_ACEOF
28067 /* end confdefs.h. */
28070 #ifndef DB_VERSION_MINOR
28071 # define DB_VERSION_MINOR 0
28073 #if DB_VERSION_MINOR == 7
28078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28079 $EGREP "__db_version" >/dev/null 2>&1; then
28087 if test $ol_cv_bdb_minor = 0 ; then
28088 cat >conftest.$ac_ext <<_ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h. */
28096 #ifndef DB_VERSION_MINOR
28097 # define DB_VERSION_MINOR 0
28099 #if DB_VERSION_MINOR == 6
28104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28105 $EGREP "__db_version" >/dev/null 2>&1; then
28113 if test $ol_cv_bdb_minor = 0 ; then
28114 cat >conftest.$ac_ext <<_ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h. */
28122 #ifndef DB_VERSION_MINOR
28123 # define DB_VERSION_MINOR 0
28125 #if DB_VERSION_MINOR == 5
28130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28131 $EGREP "__db_version" >/dev/null 2>&1; then
28139 if test $ol_cv_bdb_minor = 0 ; then
28140 cat >conftest.$ac_ext <<_ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28148 #ifndef DB_VERSION_MINOR
28149 # define DB_VERSION_MINOR 0
28151 #if DB_VERSION_MINOR == 4
28156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28157 $EGREP "__db_version" >/dev/null 2>&1; then
28165 if test $ol_cv_bdb_minor = 0 ; then
28166 cat >conftest.$ac_ext <<_ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28174 #ifndef DB_VERSION_MINOR
28175 # define DB_VERSION_MINOR 0
28177 #if DB_VERSION_MINOR == 3
28182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28183 $EGREP "__db_version" >/dev/null 2>&1; then
28191 if test $ol_cv_bdb_minor = 0 ; then
28192 cat >conftest.$ac_ext <<_ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h. */
28200 #ifndef DB_VERSION_MINOR
28201 # define DB_VERSION_MINOR 0
28203 #if DB_VERSION_MINOR == 2
28208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28209 $EGREP "__db_version" >/dev/null 2>&1; then
28217 if test $ol_cv_bdb_minor = 0 ; then
28218 cat >conftest.$ac_ext <<_ACEOF
28221 cat confdefs.h >>conftest.$ac_ext
28222 cat >>conftest.$ac_ext <<_ACEOF
28223 /* end confdefs.h. */
28226 #ifndef DB_VERSION_MINOR
28227 # define DB_VERSION_MINOR 0
28229 #if DB_VERSION_MINOR == 1
28234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28235 $EGREP "__db_version" >/dev/null 2>&1; then
28245 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28246 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28248 if test $ol_cv_bdb_major = 4 ; then
28249 if test $ol_cv_bdb_minor = 4 ; then
28250 if test $ol_cv_lib_db = no ; then
28251 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28252 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28253 if test "${ol_cv_db_db44+set}" = set; then
28254 echo $ECHO_N "(cached) $ECHO_C" >&6
28259 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28261 cat >conftest.$ac_ext <<_ACEOF
28264 cat confdefs.h >>conftest.$ac_ext
28265 cat >>conftest.$ac_ext <<_ACEOF
28266 /* end confdefs.h. */
28268 #ifdef HAVE_DB_185_H
28269 # include <db_185.h>
28274 #ifndef DB_VERSION_MAJOR
28275 # define DB_VERSION_MAJOR 1
28279 #define NULL ((void*)0)
28286 #if DB_VERSION_MAJOR > 1
28289 int major, minor, patch;
28291 version = db_version( &major, &minor, &patch );
28293 if( major != DB_VERSION_MAJOR ||
28294 minor < DB_VERSION_MINOR )
28296 printf("Berkeley DB version mismatch\n"
28297 "\theader: %s\n\tlibrary: %s\n",
28298 DB_VERSION_STRING, version);
28304 #if DB_VERSION_MAJOR > 2
28305 db_env_create( NULL, 0 );
28306 #elif DB_VERSION_MAJOR > 1
28307 db_appexit( NULL );
28309 (void) dbopen( NULL, 0, 0, 0, NULL);
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28318 (eval $ac_link) 2>conftest.er1
28320 grep -v '^ *+' conftest.er1 >conftest.err
28322 cat conftest.err >&5
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); } &&
28325 { ac_try='test -z "$ac_c_werror_flag"
28326 || test ! -s conftest.err'
28327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328 (eval $ac_try) 2>&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; } &&
28332 { ac_try='test -s conftest$ac_exeext'
28333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334 (eval $ac_try) 2>&5
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; }; then
28340 echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28345 rm -f conftest.err conftest.$ac_objext \
28346 conftest$ac_exeext conftest.$ac_ext
28351 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28352 echo "${ECHO_T}$ol_cv_db_db44" >&6
28354 if test $ol_cv_db_db44 = yes ; then
28355 ol_cv_lib_db=-ldb44
28359 if test $ol_cv_lib_db = no ; then
28360 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28361 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28362 if test "${ol_cv_db_db_44+set}" = set; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28368 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28370 cat >conftest.$ac_ext <<_ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h. */
28377 #ifdef HAVE_DB_185_H
28378 # include <db_185.h>
28383 #ifndef DB_VERSION_MAJOR
28384 # define DB_VERSION_MAJOR 1
28388 #define NULL ((void*)0)
28395 #if DB_VERSION_MAJOR > 1
28398 int major, minor, patch;
28400 version = db_version( &major, &minor, &patch );
28402 if( major != DB_VERSION_MAJOR ||
28403 minor < DB_VERSION_MINOR )
28405 printf("Berkeley DB version mismatch\n"
28406 "\theader: %s\n\tlibrary: %s\n",
28407 DB_VERSION_STRING, version);
28413 #if DB_VERSION_MAJOR > 2
28414 db_env_create( NULL, 0 );
28415 #elif DB_VERSION_MAJOR > 1
28416 db_appexit( NULL );
28418 (void) dbopen( NULL, 0, 0, 0, NULL);
28425 rm -f conftest.$ac_objext conftest$ac_exeext
28426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28427 (eval $ac_link) 2>conftest.er1
28429 grep -v '^ *+' conftest.er1 >conftest.err
28431 cat conftest.err >&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } &&
28434 { ac_try='test -z "$ac_c_werror_flag"
28435 || test ! -s conftest.err'
28436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28437 (eval $ac_try) 2>&5
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); }; } &&
28441 { ac_try='test -s conftest$ac_exeext'
28442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443 (eval $ac_try) 2>&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; }; then
28449 echo "$as_me: failed program was:" >&5
28450 sed 's/^/| /' conftest.$ac_ext >&5
28454 rm -f conftest.err conftest.$ac_objext \
28455 conftest$ac_exeext conftest.$ac_ext
28460 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28461 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28463 if test $ol_cv_db_db_44 = yes ; then
28464 ol_cv_lib_db=-ldb-44
28468 if test $ol_cv_lib_db = no ; then
28469 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28470 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28471 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28479 cat >conftest.$ac_ext <<_ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h. */
28486 #ifdef HAVE_DB_185_H
28487 # include <db_185.h>
28492 #ifndef DB_VERSION_MAJOR
28493 # define DB_VERSION_MAJOR 1
28497 #define NULL ((void*)0)
28504 #if DB_VERSION_MAJOR > 1
28507 int major, minor, patch;
28509 version = db_version( &major, &minor, &patch );
28511 if( major != DB_VERSION_MAJOR ||
28512 minor < DB_VERSION_MINOR )
28514 printf("Berkeley DB version mismatch\n"
28515 "\theader: %s\n\tlibrary: %s\n",
28516 DB_VERSION_STRING, version);
28522 #if DB_VERSION_MAJOR > 2
28523 db_env_create( NULL, 0 );
28524 #elif DB_VERSION_MAJOR > 1
28525 db_appexit( NULL );
28527 (void) dbopen( NULL, 0, 0, 0, NULL);
28534 rm -f conftest.$ac_objext conftest$ac_exeext
28535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28536 (eval $ac_link) 2>conftest.er1
28538 grep -v '^ *+' conftest.er1 >conftest.err
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
28543 { ac_try='test -z "$ac_c_werror_flag"
28544 || test ! -s conftest.err'
28545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546 (eval $ac_try) 2>&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; } &&
28550 { ac_try='test -s conftest$ac_exeext'
28551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552 (eval $ac_try) 2>&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); }; }; then
28556 ol_cv_db_db_4_dot_4=yes
28558 echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28561 ol_cv_db_db_4_dot_4=no
28563 rm -f conftest.err conftest.$ac_objext \
28564 conftest$ac_exeext conftest.$ac_ext
28569 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28570 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28572 if test $ol_cv_db_db_4_dot_4 = yes ; then
28573 ol_cv_lib_db=-ldb-4.4
28577 if test $ol_cv_lib_db = no ; then
28578 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28579 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28580 if test "${ol_cv_db_db_4_4+set}" = set; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28586 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28588 cat >conftest.$ac_ext <<_ACEOF
28591 cat confdefs.h >>conftest.$ac_ext
28592 cat >>conftest.$ac_ext <<_ACEOF
28593 /* end confdefs.h. */
28595 #ifdef HAVE_DB_185_H
28596 # include <db_185.h>
28601 #ifndef DB_VERSION_MAJOR
28602 # define DB_VERSION_MAJOR 1
28606 #define NULL ((void*)0)
28613 #if DB_VERSION_MAJOR > 1
28616 int major, minor, patch;
28618 version = db_version( &major, &minor, &patch );
28620 if( major != DB_VERSION_MAJOR ||
28621 minor < DB_VERSION_MINOR )
28623 printf("Berkeley DB version mismatch\n"
28624 "\theader: %s\n\tlibrary: %s\n",
28625 DB_VERSION_STRING, version);
28631 #if DB_VERSION_MAJOR > 2
28632 db_env_create( NULL, 0 );
28633 #elif DB_VERSION_MAJOR > 1
28634 db_appexit( NULL );
28636 (void) dbopen( NULL, 0, 0, 0, NULL);
28643 rm -f conftest.$ac_objext conftest$ac_exeext
28644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28645 (eval $ac_link) 2>conftest.er1
28647 grep -v '^ *+' conftest.er1 >conftest.err
28649 cat conftest.err >&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } &&
28652 { ac_try='test -z "$ac_c_werror_flag"
28653 || test ! -s conftest.err'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; } &&
28659 { ac_try='test -s conftest$ac_exeext'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; }; then
28665 ol_cv_db_db_4_4=yes
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28672 rm -f conftest.err conftest.$ac_objext \
28673 conftest$ac_exeext conftest.$ac_ext
28678 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28679 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28681 if test $ol_cv_db_db_4_4 = yes ; then
28682 ol_cv_lib_db=-ldb-4-4
28686 elif test $ol_cv_bdb_minor = 3 ; then
28687 if test $ol_cv_lib_db = no ; then
28688 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28689 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28690 if test "${ol_cv_db_db43+set}" = set; then
28691 echo $ECHO_N "(cached) $ECHO_C" >&6
28696 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28698 cat >conftest.$ac_ext <<_ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28705 #ifdef HAVE_DB_185_H
28706 # include <db_185.h>
28711 #ifndef DB_VERSION_MAJOR
28712 # define DB_VERSION_MAJOR 1
28716 #define NULL ((void*)0)
28723 #if DB_VERSION_MAJOR > 1
28726 int major, minor, patch;
28728 version = db_version( &major, &minor, &patch );
28730 if( major != DB_VERSION_MAJOR ||
28731 minor < DB_VERSION_MINOR )
28733 printf("Berkeley DB version mismatch\n"
28734 "\theader: %s\n\tlibrary: %s\n",
28735 DB_VERSION_STRING, version);
28741 #if DB_VERSION_MAJOR > 2
28742 db_env_create( NULL, 0 );
28743 #elif DB_VERSION_MAJOR > 1
28744 db_appexit( NULL );
28746 (void) dbopen( NULL, 0, 0, 0, NULL);
28753 rm -f conftest.$ac_objext conftest$ac_exeext
28754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28755 (eval $ac_link) 2>conftest.er1
28757 grep -v '^ *+' conftest.er1 >conftest.err
28759 cat conftest.err >&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); } &&
28762 { ac_try='test -z "$ac_c_werror_flag"
28763 || test ! -s conftest.err'
28764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765 (eval $ac_try) 2>&5
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); }; } &&
28769 { ac_try='test -s conftest$ac_exeext'
28770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771 (eval $ac_try) 2>&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; }; then
28777 echo "$as_me: failed program was:" >&5
28778 sed 's/^/| /' conftest.$ac_ext >&5
28782 rm -f conftest.err conftest.$ac_objext \
28783 conftest$ac_exeext conftest.$ac_ext
28788 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28789 echo "${ECHO_T}$ol_cv_db_db43" >&6
28791 if test $ol_cv_db_db43 = yes ; then
28792 ol_cv_lib_db=-ldb43
28796 if test $ol_cv_lib_db = no ; then
28797 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28798 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28799 if test "${ol_cv_db_db_43+set}" = set; then
28800 echo $ECHO_N "(cached) $ECHO_C" >&6
28805 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28807 cat >conftest.$ac_ext <<_ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28814 #ifdef HAVE_DB_185_H
28815 # include <db_185.h>
28820 #ifndef DB_VERSION_MAJOR
28821 # define DB_VERSION_MAJOR 1
28825 #define NULL ((void*)0)
28832 #if DB_VERSION_MAJOR > 1
28835 int major, minor, patch;
28837 version = db_version( &major, &minor, &patch );
28839 if( major != DB_VERSION_MAJOR ||
28840 minor < DB_VERSION_MINOR )
28842 printf("Berkeley DB version mismatch\n"
28843 "\theader: %s\n\tlibrary: %s\n",
28844 DB_VERSION_STRING, version);
28850 #if DB_VERSION_MAJOR > 2
28851 db_env_create( NULL, 0 );
28852 #elif DB_VERSION_MAJOR > 1
28853 db_appexit( NULL );
28855 (void) dbopen( NULL, 0, 0, 0, NULL);
28862 rm -f conftest.$ac_objext conftest$ac_exeext
28863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28864 (eval $ac_link) 2>conftest.er1
28866 grep -v '^ *+' conftest.er1 >conftest.err
28868 cat conftest.err >&5
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); } &&
28871 { ac_try='test -z "$ac_c_werror_flag"
28872 || test ! -s conftest.err'
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest$ac_exeext'
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28886 echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28891 rm -f conftest.err conftest.$ac_objext \
28892 conftest$ac_exeext conftest.$ac_ext
28897 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28898 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28900 if test $ol_cv_db_db_43 = yes ; then
28901 ol_cv_lib_db=-ldb-43
28905 if test $ol_cv_lib_db = no ; then
28906 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28907 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28908 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28914 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28916 cat >conftest.$ac_ext <<_ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28923 #ifdef HAVE_DB_185_H
28924 # include <db_185.h>
28929 #ifndef DB_VERSION_MAJOR
28930 # define DB_VERSION_MAJOR 1
28934 #define NULL ((void*)0)
28941 #if DB_VERSION_MAJOR > 1
28944 int major, minor, patch;
28946 version = db_version( &major, &minor, &patch );
28948 if( major != DB_VERSION_MAJOR ||
28949 minor < DB_VERSION_MINOR )
28951 printf("Berkeley DB version mismatch\n"
28952 "\theader: %s\n\tlibrary: %s\n",
28953 DB_VERSION_STRING, version);
28959 #if DB_VERSION_MAJOR > 2
28960 db_env_create( NULL, 0 );
28961 #elif DB_VERSION_MAJOR > 1
28962 db_appexit( NULL );
28964 (void) dbopen( NULL, 0, 0, 0, NULL);
28971 rm -f conftest.$ac_objext conftest$ac_exeext
28972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28973 (eval $ac_link) 2>conftest.er1
28975 grep -v '^ *+' conftest.er1 >conftest.err
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } &&
28980 { ac_try='test -z "$ac_c_werror_flag"
28981 || test ! -s conftest.err'
28982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 (eval $ac_try) 2>&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); }; } &&
28987 { ac_try='test -s conftest$ac_exeext'
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; }; then
28993 ol_cv_db_db_4_dot_3=yes
28995 echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28998 ol_cv_db_db_4_dot_3=no
29000 rm -f conftest.err conftest.$ac_objext \
29001 conftest$ac_exeext conftest.$ac_ext
29006 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29007 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29009 if test $ol_cv_db_db_4_dot_3 = yes ; then
29010 ol_cv_lib_db=-ldb-4.3
29014 if test $ol_cv_lib_db = no ; then
29015 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29016 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29017 if test "${ol_cv_db_db_4_3+set}" = set; then
29018 echo $ECHO_N "(cached) $ECHO_C" >&6
29023 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29025 cat >conftest.$ac_ext <<_ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29032 #ifdef HAVE_DB_185_H
29033 # include <db_185.h>
29038 #ifndef DB_VERSION_MAJOR
29039 # define DB_VERSION_MAJOR 1
29043 #define NULL ((void*)0)
29050 #if DB_VERSION_MAJOR > 1
29053 int major, minor, patch;
29055 version = db_version( &major, &minor, &patch );
29057 if( major != DB_VERSION_MAJOR ||
29058 minor < DB_VERSION_MINOR )
29060 printf("Berkeley DB version mismatch\n"
29061 "\theader: %s\n\tlibrary: %s\n",
29062 DB_VERSION_STRING, version);
29068 #if DB_VERSION_MAJOR > 2
29069 db_env_create( NULL, 0 );
29070 #elif DB_VERSION_MAJOR > 1
29071 db_appexit( NULL );
29073 (void) dbopen( NULL, 0, 0, 0, NULL);
29080 rm -f conftest.$ac_objext conftest$ac_exeext
29081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29082 (eval $ac_link) 2>conftest.er1
29084 grep -v '^ *+' conftest.er1 >conftest.err
29086 cat conftest.err >&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); } &&
29089 { ac_try='test -z "$ac_c_werror_flag"
29090 || test ! -s conftest.err'
29091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29092 (eval $ac_try) 2>&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; } &&
29096 { ac_try='test -s conftest$ac_exeext'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
29102 ol_cv_db_db_4_3=yes
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29109 rm -f conftest.err conftest.$ac_objext \
29110 conftest$ac_exeext conftest.$ac_ext
29115 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29116 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29118 if test $ol_cv_db_db_4_3 = yes ; then
29119 ol_cv_lib_db=-ldb-4-3
29123 elif test $ol_cv_bdb_minor = 2 ; then
29124 if test $ol_cv_lib_db = no ; then
29125 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29126 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29127 if test "${ol_cv_db_db42+set}" = set; then
29128 echo $ECHO_N "(cached) $ECHO_C" >&6
29133 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29135 cat >conftest.$ac_ext <<_ACEOF
29138 cat confdefs.h >>conftest.$ac_ext
29139 cat >>conftest.$ac_ext <<_ACEOF
29140 /* end confdefs.h. */
29142 #ifdef HAVE_DB_185_H
29143 # include <db_185.h>
29148 #ifndef DB_VERSION_MAJOR
29149 # define DB_VERSION_MAJOR 1
29153 #define NULL ((void*)0)
29160 #if DB_VERSION_MAJOR > 1
29163 int major, minor, patch;
29165 version = db_version( &major, &minor, &patch );
29167 if( major != DB_VERSION_MAJOR ||
29168 minor < DB_VERSION_MINOR )
29170 printf("Berkeley DB version mismatch\n"
29171 "\theader: %s\n\tlibrary: %s\n",
29172 DB_VERSION_STRING, version);
29178 #if DB_VERSION_MAJOR > 2
29179 db_env_create( NULL, 0 );
29180 #elif DB_VERSION_MAJOR > 1
29181 db_appexit( NULL );
29183 (void) dbopen( NULL, 0, 0, 0, NULL);
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192 (eval $ac_link) 2>conftest.er1
29194 grep -v '^ *+' conftest.er1 >conftest.err
29196 cat conftest.err >&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } &&
29199 { ac_try='test -z "$ac_c_werror_flag"
29200 || test ! -s conftest.err'
29201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202 (eval $ac_try) 2>&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; } &&
29206 { ac_try='test -s conftest$ac_exeext'
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; }; then
29214 echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29219 rm -f conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
29225 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29226 echo "${ECHO_T}$ol_cv_db_db42" >&6
29228 if test $ol_cv_db_db42 = yes ; then
29229 ol_cv_lib_db=-ldb42
29233 if test $ol_cv_lib_db = no ; then
29234 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29235 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29236 if test "${ol_cv_db_db_42+set}" = set; then
29237 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29244 cat >conftest.$ac_ext <<_ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h. */
29251 #ifdef HAVE_DB_185_H
29252 # include <db_185.h>
29257 #ifndef DB_VERSION_MAJOR
29258 # define DB_VERSION_MAJOR 1
29262 #define NULL ((void*)0)
29269 #if DB_VERSION_MAJOR > 1
29272 int major, minor, patch;
29274 version = db_version( &major, &minor, &patch );
29276 if( major != DB_VERSION_MAJOR ||
29277 minor < DB_VERSION_MINOR )
29279 printf("Berkeley DB version mismatch\n"
29280 "\theader: %s\n\tlibrary: %s\n",
29281 DB_VERSION_STRING, version);
29287 #if DB_VERSION_MAJOR > 2
29288 db_env_create( NULL, 0 );
29289 #elif DB_VERSION_MAJOR > 1
29290 db_appexit( NULL );
29292 (void) dbopen( NULL, 0, 0, 0, NULL);
29299 rm -f conftest.$ac_objext conftest$ac_exeext
29300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29301 (eval $ac_link) 2>conftest.er1
29303 grep -v '^ *+' conftest.er1 >conftest.err
29305 cat conftest.err >&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); } &&
29308 { ac_try='test -z "$ac_c_werror_flag"
29309 || test ! -s conftest.err'
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; } &&
29315 { ac_try='test -s conftest$ac_exeext'
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; }; then
29323 echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29328 rm -f conftest.err conftest.$ac_objext \
29329 conftest$ac_exeext conftest.$ac_ext
29334 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29335 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29337 if test $ol_cv_db_db_42 = yes ; then
29338 ol_cv_lib_db=-ldb-42
29342 if test $ol_cv_lib_db = no ; then
29343 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29344 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29345 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29351 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29353 cat >conftest.$ac_ext <<_ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h. */
29360 #ifdef HAVE_DB_185_H
29361 # include <db_185.h>
29366 #ifndef DB_VERSION_MAJOR
29367 # define DB_VERSION_MAJOR 1
29371 #define NULL ((void*)0)
29378 #if DB_VERSION_MAJOR > 1
29381 int major, minor, patch;
29383 version = db_version( &major, &minor, &patch );
29385 if( major != DB_VERSION_MAJOR ||
29386 minor < DB_VERSION_MINOR )
29388 printf("Berkeley DB version mismatch\n"
29389 "\theader: %s\n\tlibrary: %s\n",
29390 DB_VERSION_STRING, version);
29396 #if DB_VERSION_MAJOR > 2
29397 db_env_create( NULL, 0 );
29398 #elif DB_VERSION_MAJOR > 1
29399 db_appexit( NULL );
29401 (void) dbopen( NULL, 0, 0, 0, NULL);
29408 rm -f conftest.$ac_objext conftest$ac_exeext
29409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29410 (eval $ac_link) 2>conftest.er1
29412 grep -v '^ *+' conftest.er1 >conftest.err
29414 cat conftest.err >&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); } &&
29417 { ac_try='test -z "$ac_c_werror_flag"
29418 || test ! -s conftest.err'
29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420 (eval $ac_try) 2>&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; } &&
29424 { ac_try='test -s conftest$ac_exeext'
29425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29426 (eval $ac_try) 2>&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); }; }; then
29430 ol_cv_db_db_4_dot_2=yes
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 ol_cv_db_db_4_dot_2=no
29437 rm -f conftest.err conftest.$ac_objext \
29438 conftest$ac_exeext conftest.$ac_ext
29443 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29444 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29446 if test $ol_cv_db_db_4_dot_2 = yes ; then
29447 ol_cv_lib_db=-ldb-4.2
29451 if test $ol_cv_lib_db = no ; then
29452 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29453 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29454 if test "${ol_cv_db_db_4_2+set}" = set; then
29455 echo $ECHO_N "(cached) $ECHO_C" >&6
29460 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29462 cat >conftest.$ac_ext <<_ACEOF
29465 cat confdefs.h >>conftest.$ac_ext
29466 cat >>conftest.$ac_ext <<_ACEOF
29467 /* end confdefs.h. */
29469 #ifdef HAVE_DB_185_H
29470 # include <db_185.h>
29475 #ifndef DB_VERSION_MAJOR
29476 # define DB_VERSION_MAJOR 1
29480 #define NULL ((void*)0)
29487 #if DB_VERSION_MAJOR > 1
29490 int major, minor, patch;
29492 version = db_version( &major, &minor, &patch );
29494 if( major != DB_VERSION_MAJOR ||
29495 minor < DB_VERSION_MINOR )
29497 printf("Berkeley DB version mismatch\n"
29498 "\theader: %s\n\tlibrary: %s\n",
29499 DB_VERSION_STRING, version);
29505 #if DB_VERSION_MAJOR > 2
29506 db_env_create( NULL, 0 );
29507 #elif DB_VERSION_MAJOR > 1
29508 db_appexit( NULL );
29510 (void) dbopen( NULL, 0, 0, 0, NULL);
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519 (eval $ac_link) 2>conftest.er1
29521 grep -v '^ *+' conftest.er1 >conftest.err
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); } &&
29526 { ac_try='test -z "$ac_c_werror_flag"
29527 || test ! -s conftest.err'
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; } &&
29533 { ac_try='test -s conftest$ac_exeext'
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ol_cv_db_db_4_2=yes
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29546 rm -f conftest.err conftest.$ac_objext \
29547 conftest$ac_exeext conftest.$ac_ext
29552 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29553 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29555 if test $ol_cv_db_db_4_2 = yes ; then
29556 ol_cv_lib_db=-ldb-4-2
29560 elif test $ol_cv_bdb_minor = 1 ; then
29561 if test $ol_cv_lib_db = no ; then
29562 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29563 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29564 if test "${ol_cv_db_db41+set}" = set; then
29565 echo $ECHO_N "(cached) $ECHO_C" >&6
29570 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29572 cat >conftest.$ac_ext <<_ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29579 #ifdef HAVE_DB_185_H
29580 # include <db_185.h>
29585 #ifndef DB_VERSION_MAJOR
29586 # define DB_VERSION_MAJOR 1
29590 #define NULL ((void*)0)
29597 #if DB_VERSION_MAJOR > 1
29600 int major, minor, patch;
29602 version = db_version( &major, &minor, &patch );
29604 if( major != DB_VERSION_MAJOR ||
29605 minor < DB_VERSION_MINOR )
29607 printf("Berkeley DB version mismatch\n"
29608 "\theader: %s\n\tlibrary: %s\n",
29609 DB_VERSION_STRING, version);
29615 #if DB_VERSION_MAJOR > 2
29616 db_env_create( NULL, 0 );
29617 #elif DB_VERSION_MAJOR > 1
29618 db_appexit( NULL );
29620 (void) dbopen( NULL, 0, 0, 0, NULL);
29627 rm -f conftest.$ac_objext conftest$ac_exeext
29628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29629 (eval $ac_link) 2>conftest.er1
29631 grep -v '^ *+' conftest.er1 >conftest.err
29633 cat conftest.err >&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } &&
29636 { ac_try='test -z "$ac_c_werror_flag"
29637 || test ! -s conftest.err'
29638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639 (eval $ac_try) 2>&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); }; } &&
29643 { ac_try='test -s conftest$ac_exeext'
29644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29645 (eval $ac_try) 2>&5
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); }; }; then
29651 echo "$as_me: failed program was:" >&5
29652 sed 's/^/| /' conftest.$ac_ext >&5
29656 rm -f conftest.err conftest.$ac_objext \
29657 conftest$ac_exeext conftest.$ac_ext
29662 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29663 echo "${ECHO_T}$ol_cv_db_db41" >&6
29665 if test $ol_cv_db_db41 = yes ; then
29666 ol_cv_lib_db=-ldb41
29670 if test $ol_cv_lib_db = no ; then
29671 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29672 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29673 if test "${ol_cv_db_db_41+set}" = set; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29679 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29681 cat >conftest.$ac_ext <<_ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h. */
29688 #ifdef HAVE_DB_185_H
29689 # include <db_185.h>
29694 #ifndef DB_VERSION_MAJOR
29695 # define DB_VERSION_MAJOR 1
29699 #define NULL ((void*)0)
29706 #if DB_VERSION_MAJOR > 1
29709 int major, minor, patch;
29711 version = db_version( &major, &minor, &patch );
29713 if( major != DB_VERSION_MAJOR ||
29714 minor < DB_VERSION_MINOR )
29716 printf("Berkeley DB version mismatch\n"
29717 "\theader: %s\n\tlibrary: %s\n",
29718 DB_VERSION_STRING, version);
29724 #if DB_VERSION_MAJOR > 2
29725 db_env_create( NULL, 0 );
29726 #elif DB_VERSION_MAJOR > 1
29727 db_appexit( NULL );
29729 (void) dbopen( NULL, 0, 0, 0, NULL);
29736 rm -f conftest.$ac_objext conftest$ac_exeext
29737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29738 (eval $ac_link) 2>conftest.er1
29740 grep -v '^ *+' conftest.er1 >conftest.err
29742 cat conftest.err >&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } &&
29745 { ac_try='test -z "$ac_c_werror_flag"
29746 || test ! -s conftest.err'
29747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748 (eval $ac_try) 2>&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; } &&
29752 { ac_try='test -s conftest$ac_exeext'
29753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754 (eval $ac_try) 2>&5
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; }; then
29760 echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29765 rm -f conftest.err conftest.$ac_objext \
29766 conftest$ac_exeext conftest.$ac_ext
29771 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29772 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29774 if test $ol_cv_db_db_41 = yes ; then
29775 ol_cv_lib_db=-ldb-41
29779 if test $ol_cv_lib_db = no ; then
29780 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29781 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29782 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29783 echo $ECHO_N "(cached) $ECHO_C" >&6
29788 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29790 cat >conftest.$ac_ext <<_ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h. */
29797 #ifdef HAVE_DB_185_H
29798 # include <db_185.h>
29803 #ifndef DB_VERSION_MAJOR
29804 # define DB_VERSION_MAJOR 1
29808 #define NULL ((void*)0)
29815 #if DB_VERSION_MAJOR > 1
29818 int major, minor, patch;
29820 version = db_version( &major, &minor, &patch );
29822 if( major != DB_VERSION_MAJOR ||
29823 minor < DB_VERSION_MINOR )
29825 printf("Berkeley DB version mismatch\n"
29826 "\theader: %s\n\tlibrary: %s\n",
29827 DB_VERSION_STRING, version);
29833 #if DB_VERSION_MAJOR > 2
29834 db_env_create( NULL, 0 );
29835 #elif DB_VERSION_MAJOR > 1
29836 db_appexit( NULL );
29838 (void) dbopen( NULL, 0, 0, 0, NULL);
29845 rm -f conftest.$ac_objext conftest$ac_exeext
29846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29847 (eval $ac_link) 2>conftest.er1
29849 grep -v '^ *+' conftest.er1 >conftest.err
29851 cat conftest.err >&5
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); } &&
29854 { ac_try='test -z "$ac_c_werror_flag"
29855 || test ! -s conftest.err'
29856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29857 (eval $ac_try) 2>&5
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest$ac_exeext'
29862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29863 (eval $ac_try) 2>&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; }; then
29867 ol_cv_db_db_4_dot_1=yes
29869 echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29872 ol_cv_db_db_4_dot_1=no
29874 rm -f conftest.err conftest.$ac_objext \
29875 conftest$ac_exeext conftest.$ac_ext
29880 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29881 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29883 if test $ol_cv_db_db_4_dot_1 = yes ; then
29884 ol_cv_lib_db=-ldb-4.1
29888 if test $ol_cv_lib_db = no ; then
29889 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29890 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29891 if test "${ol_cv_db_db_4_1+set}" = set; then
29892 echo $ECHO_N "(cached) $ECHO_C" >&6
29897 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29899 cat >conftest.$ac_ext <<_ACEOF
29902 cat confdefs.h >>conftest.$ac_ext
29903 cat >>conftest.$ac_ext <<_ACEOF
29904 /* end confdefs.h. */
29906 #ifdef HAVE_DB_185_H
29907 # include <db_185.h>
29912 #ifndef DB_VERSION_MAJOR
29913 # define DB_VERSION_MAJOR 1
29917 #define NULL ((void*)0)
29924 #if DB_VERSION_MAJOR > 1
29927 int major, minor, patch;
29929 version = db_version( &major, &minor, &patch );
29931 if( major != DB_VERSION_MAJOR ||
29932 minor < DB_VERSION_MINOR )
29934 printf("Berkeley DB version mismatch\n"
29935 "\theader: %s\n\tlibrary: %s\n",
29936 DB_VERSION_STRING, version);
29942 #if DB_VERSION_MAJOR > 2
29943 db_env_create( NULL, 0 );
29944 #elif DB_VERSION_MAJOR > 1
29945 db_appexit( NULL );
29947 (void) dbopen( NULL, 0, 0, 0, NULL);
29954 rm -f conftest.$ac_objext conftest$ac_exeext
29955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29956 (eval $ac_link) 2>conftest.er1
29958 grep -v '^ *+' conftest.er1 >conftest.err
29960 cat conftest.err >&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } &&
29963 { ac_try='test -z "$ac_c_werror_flag"
29964 || test ! -s conftest.err'
29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966 (eval $ac_try) 2>&5
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); }; } &&
29970 { ac_try='test -s conftest$ac_exeext'
29971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972 (eval $ac_try) 2>&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; }; then
29976 ol_cv_db_db_4_1=yes
29978 echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29983 rm -f conftest.err conftest.$ac_objext \
29984 conftest$ac_exeext conftest.$ac_ext
29989 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29990 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29992 if test $ol_cv_db_db_4_1 = yes ; then
29993 ol_cv_lib_db=-ldb-4-1
29998 if test $ol_cv_lib_db = no ; then
29999 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30000 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30001 if test "${ol_cv_db_db_4+set}" = set; then
30002 echo $ECHO_N "(cached) $ECHO_C" >&6
30007 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30009 cat >conftest.$ac_ext <<_ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h. */
30016 #ifdef HAVE_DB_185_H
30017 # include <db_185.h>
30022 #ifndef DB_VERSION_MAJOR
30023 # define DB_VERSION_MAJOR 1
30027 #define NULL ((void*)0)
30034 #if DB_VERSION_MAJOR > 1
30037 int major, minor, patch;
30039 version = db_version( &major, &minor, &patch );
30041 if( major != DB_VERSION_MAJOR ||
30042 minor < DB_VERSION_MINOR )
30044 printf("Berkeley DB version mismatch\n"
30045 "\theader: %s\n\tlibrary: %s\n",
30046 DB_VERSION_STRING, version);
30052 #if DB_VERSION_MAJOR > 2
30053 db_env_create( NULL, 0 );
30054 #elif DB_VERSION_MAJOR > 1
30055 db_appexit( NULL );
30057 (void) dbopen( NULL, 0, 0, 0, NULL);
30064 rm -f conftest.$ac_objext conftest$ac_exeext
30065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30066 (eval $ac_link) 2>conftest.er1
30068 grep -v '^ *+' conftest.er1 >conftest.err
30070 cat conftest.err >&5
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); } &&
30073 { ac_try='test -z "$ac_c_werror_flag"
30074 || test ! -s conftest.err'
30075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076 (eval $ac_try) 2>&5
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; } &&
30080 { ac_try='test -s conftest$ac_exeext'
30081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30082 (eval $ac_try) 2>&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); }; }; then
30088 echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30093 rm -f conftest.err conftest.$ac_objext \
30094 conftest$ac_exeext conftest.$ac_ext
30099 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30100 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30102 if test $ol_cv_db_db_4 = yes ; then
30103 ol_cv_lib_db=-ldb-4
30107 if test $ol_cv_lib_db = no ; then
30108 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30109 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30110 if test "${ol_cv_db_db4+set}" = set; then
30111 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30118 cat >conftest.$ac_ext <<_ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h. */
30125 #ifdef HAVE_DB_185_H
30126 # include <db_185.h>
30131 #ifndef DB_VERSION_MAJOR
30132 # define DB_VERSION_MAJOR 1
30136 #define NULL ((void*)0)
30143 #if DB_VERSION_MAJOR > 1
30146 int major, minor, patch;
30148 version = db_version( &major, &minor, &patch );
30150 if( major != DB_VERSION_MAJOR ||
30151 minor < DB_VERSION_MINOR )
30153 printf("Berkeley DB version mismatch\n"
30154 "\theader: %s\n\tlibrary: %s\n",
30155 DB_VERSION_STRING, version);
30161 #if DB_VERSION_MAJOR > 2
30162 db_env_create( NULL, 0 );
30163 #elif DB_VERSION_MAJOR > 1
30164 db_appexit( NULL );
30166 (void) dbopen( NULL, 0, 0, 0, NULL);
30173 rm -f conftest.$ac_objext conftest$ac_exeext
30174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30175 (eval $ac_link) 2>conftest.er1
30177 grep -v '^ *+' conftest.er1 >conftest.err
30179 cat conftest.err >&5
30180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181 (exit $ac_status); } &&
30182 { ac_try='test -z "$ac_c_werror_flag"
30183 || test ! -s conftest.err'
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; } &&
30189 { ac_try='test -s conftest$ac_exeext'
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30197 echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30202 rm -f conftest.err conftest.$ac_objext \
30203 conftest$ac_exeext conftest.$ac_ext
30208 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30209 echo "${ECHO_T}$ol_cv_db_db4" >&6
30211 if test $ol_cv_db_db4 = yes ; then
30216 if test $ol_cv_lib_db = no ; then
30217 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30218 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30219 if test "${ol_cv_db_db+set}" = set; then
30220 echo $ECHO_N "(cached) $ECHO_C" >&6
30225 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30227 cat >conftest.$ac_ext <<_ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h. */
30234 #ifdef HAVE_DB_185_H
30235 # include <db_185.h>
30240 #ifndef DB_VERSION_MAJOR
30241 # define DB_VERSION_MAJOR 1
30245 #define NULL ((void*)0)
30252 #if DB_VERSION_MAJOR > 1
30255 int major, minor, patch;
30257 version = db_version( &major, &minor, &patch );
30259 if( major != DB_VERSION_MAJOR ||
30260 minor < DB_VERSION_MINOR )
30262 printf("Berkeley DB version mismatch\n"
30263 "\theader: %s\n\tlibrary: %s\n",
30264 DB_VERSION_STRING, version);
30270 #if DB_VERSION_MAJOR > 2
30271 db_env_create( NULL, 0 );
30272 #elif DB_VERSION_MAJOR > 1
30273 db_appexit( NULL );
30275 (void) dbopen( NULL, 0, 0, 0, NULL);
30282 rm -f conftest.$ac_objext conftest$ac_exeext
30283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30284 (eval $ac_link) 2>conftest.er1
30286 grep -v '^ *+' conftest.er1 >conftest.err
30288 cat conftest.err >&5
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); } &&
30291 { ac_try='test -z "$ac_c_werror_flag"
30292 || test ! -s conftest.err'
30293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294 (eval $ac_try) 2>&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; } &&
30298 { ac_try='test -s conftest$ac_exeext'
30299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300 (eval $ac_try) 2>&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); }; }; then
30306 echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30311 rm -f conftest.err conftest.$ac_objext \
30312 conftest$ac_exeext conftest.$ac_ext
30317 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30318 echo "${ECHO_T}$ol_cv_db_db" >&6
30320 if test $ol_cv_db_db = yes ; then
30326 elif test $ol_cv_bdb_major = 3 ; then
30327 if test $ol_cv_lib_db = no ; then
30328 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30329 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30330 if test "${ol_cv_db_db3+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30336 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30338 cat >conftest.$ac_ext <<_ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h. */
30345 #ifdef HAVE_DB_185_H
30346 # include <db_185.h>
30351 #ifndef DB_VERSION_MAJOR
30352 # define DB_VERSION_MAJOR 1
30356 #define NULL ((void*)0)
30363 #if DB_VERSION_MAJOR > 1
30366 int major, minor, patch;
30368 version = db_version( &major, &minor, &patch );
30370 if( major != DB_VERSION_MAJOR ||
30371 minor < DB_VERSION_MINOR )
30373 printf("Berkeley DB version mismatch\n"
30374 "\theader: %s\n\tlibrary: %s\n",
30375 DB_VERSION_STRING, version);
30381 #if DB_VERSION_MAJOR > 2
30382 db_env_create( NULL, 0 );
30383 #elif DB_VERSION_MAJOR > 1
30384 db_appexit( NULL );
30386 (void) dbopen( NULL, 0, 0, 0, NULL);
30393 rm -f conftest.$ac_objext conftest$ac_exeext
30394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30395 (eval $ac_link) 2>conftest.er1
30397 grep -v '^ *+' conftest.er1 >conftest.err
30399 cat conftest.err >&5
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); } &&
30402 { ac_try='test -z "$ac_c_werror_flag"
30403 || test ! -s conftest.err'
30404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405 (eval $ac_try) 2>&5
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; } &&
30409 { ac_try='test -s conftest$ac_exeext'
30410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30411 (eval $ac_try) 2>&5
30413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414 (exit $ac_status); }; }; then
30417 echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30422 rm -f conftest.err conftest.$ac_objext \
30423 conftest$ac_exeext conftest.$ac_ext
30428 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30429 echo "${ECHO_T}$ol_cv_db_db3" >&6
30431 if test $ol_cv_db_db3 = yes ; then
30436 if test $ol_cv_lib_db = no ; then
30437 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30438 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30439 if test "${ol_cv_db_db_3+set}" = set; then
30440 echo $ECHO_N "(cached) $ECHO_C" >&6
30445 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30447 cat >conftest.$ac_ext <<_ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h. */
30454 #ifdef HAVE_DB_185_H
30455 # include <db_185.h>
30460 #ifndef DB_VERSION_MAJOR
30461 # define DB_VERSION_MAJOR 1
30465 #define NULL ((void*)0)
30472 #if DB_VERSION_MAJOR > 1
30475 int major, minor, patch;
30477 version = db_version( &major, &minor, &patch );
30479 if( major != DB_VERSION_MAJOR ||
30480 minor < DB_VERSION_MINOR )
30482 printf("Berkeley DB version mismatch\n"
30483 "\theader: %s\n\tlibrary: %s\n",
30484 DB_VERSION_STRING, version);
30490 #if DB_VERSION_MAJOR > 2
30491 db_env_create( NULL, 0 );
30492 #elif DB_VERSION_MAJOR > 1
30493 db_appexit( NULL );
30495 (void) dbopen( NULL, 0, 0, 0, NULL);
30502 rm -f conftest.$ac_objext conftest$ac_exeext
30503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30504 (eval $ac_link) 2>conftest.er1
30506 grep -v '^ *+' conftest.er1 >conftest.err
30508 cat conftest.err >&5
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); } &&
30511 { ac_try='test -z "$ac_c_werror_flag"
30512 || test ! -s conftest.err'
30513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30514 (eval $ac_try) 2>&5
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; } &&
30518 { ac_try='test -s conftest$ac_exeext'
30519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 (eval $ac_try) 2>&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); }; }; then
30526 echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30531 rm -f conftest.err conftest.$ac_objext \
30532 conftest$ac_exeext conftest.$ac_ext
30537 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30538 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30540 if test $ol_cv_db_db_3 = yes ; then
30541 ol_cv_lib_db=-ldb-3
30546 elif test $ol_cv_bdb_major = 2 ; then
30547 if test $ol_cv_lib_db = no ; then
30548 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30549 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30550 if test "${ol_cv_db_db2+set}" = set; then
30551 echo $ECHO_N "(cached) $ECHO_C" >&6
30556 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30558 cat >conftest.$ac_ext <<_ACEOF
30561 cat confdefs.h >>conftest.$ac_ext
30562 cat >>conftest.$ac_ext <<_ACEOF
30563 /* end confdefs.h. */
30565 #ifdef HAVE_DB_185_H
30566 # include <db_185.h>
30571 #ifndef DB_VERSION_MAJOR
30572 # define DB_VERSION_MAJOR 1
30576 #define NULL ((void*)0)
30583 #if DB_VERSION_MAJOR > 1
30586 int major, minor, patch;
30588 version = db_version( &major, &minor, &patch );
30590 if( major != DB_VERSION_MAJOR ||
30591 minor < DB_VERSION_MINOR )
30593 printf("Berkeley DB version mismatch\n"
30594 "\theader: %s\n\tlibrary: %s\n",
30595 DB_VERSION_STRING, version);
30601 #if DB_VERSION_MAJOR > 2
30602 db_env_create( NULL, 0 );
30603 #elif DB_VERSION_MAJOR > 1
30604 db_appexit( NULL );
30606 (void) dbopen( NULL, 0, 0, 0, NULL);
30613 rm -f conftest.$ac_objext conftest$ac_exeext
30614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30615 (eval $ac_link) 2>conftest.er1
30617 grep -v '^ *+' conftest.er1 >conftest.err
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); } &&
30622 { ac_try='test -z "$ac_c_werror_flag"
30623 || test ! -s conftest.err'
30624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625 (eval $ac_try) 2>&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; } &&
30629 { ac_try='test -s conftest$ac_exeext'
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; }; then
30637 echo "$as_me: failed program was:" >&5
30638 sed 's/^/| /' conftest.$ac_ext >&5
30642 rm -f conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
30648 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30649 echo "${ECHO_T}$ol_cv_db_db2" >&6
30651 if test $ol_cv_db_db2 = yes ; then
30656 if test $ol_cv_lib_db = no ; then
30657 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30658 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30659 if test "${ol_cv_db_db_2+set}" = set; then
30660 echo $ECHO_N "(cached) $ECHO_C" >&6
30665 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30667 cat >conftest.$ac_ext <<_ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h. */
30674 #ifdef HAVE_DB_185_H
30675 # include <db_185.h>
30680 #ifndef DB_VERSION_MAJOR
30681 # define DB_VERSION_MAJOR 1
30685 #define NULL ((void*)0)
30692 #if DB_VERSION_MAJOR > 1
30695 int major, minor, patch;
30697 version = db_version( &major, &minor, &patch );
30699 if( major != DB_VERSION_MAJOR ||
30700 minor < DB_VERSION_MINOR )
30702 printf("Berkeley DB version mismatch\n"
30703 "\theader: %s\n\tlibrary: %s\n",
30704 DB_VERSION_STRING, version);
30710 #if DB_VERSION_MAJOR > 2
30711 db_env_create( NULL, 0 );
30712 #elif DB_VERSION_MAJOR > 1
30713 db_appexit( NULL );
30715 (void) dbopen( NULL, 0, 0, 0, NULL);
30722 rm -f conftest.$ac_objext conftest$ac_exeext
30723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30724 (eval $ac_link) 2>conftest.er1
30726 grep -v '^ *+' conftest.er1 >conftest.err
30728 cat conftest.err >&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); } &&
30731 { ac_try='test -z "$ac_c_werror_flag"
30732 || test ! -s conftest.err'
30733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734 (eval $ac_try) 2>&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; } &&
30738 { ac_try='test -s conftest$ac_exeext'
30739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740 (eval $ac_try) 2>&5
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
30746 echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.$ac_ext >&5
30751 rm -f conftest.err conftest.$ac_objext \
30752 conftest$ac_exeext conftest.$ac_ext
30757 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30758 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30760 if test $ol_cv_db_db_2 = yes ; then
30761 ol_cv_lib_db=-ldb-2
30766 elif test $ol_cv_bdb_major = 1 ; then
30767 if test $ol_cv_lib_db = no ; then
30768 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30769 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30770 if test "${ol_cv_db_db1+set}" = set; then
30771 echo $ECHO_N "(cached) $ECHO_C" >&6
30776 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30778 cat >conftest.$ac_ext <<_ACEOF
30781 cat confdefs.h >>conftest.$ac_ext
30782 cat >>conftest.$ac_ext <<_ACEOF
30783 /* end confdefs.h. */
30785 #ifdef HAVE_DB_185_H
30786 # include <db_185.h>
30791 #ifndef DB_VERSION_MAJOR
30792 # define DB_VERSION_MAJOR 1
30796 #define NULL ((void*)0)
30803 #if DB_VERSION_MAJOR > 1
30806 int major, minor, patch;
30808 version = db_version( &major, &minor, &patch );
30810 if( major != DB_VERSION_MAJOR ||
30811 minor < DB_VERSION_MINOR )
30813 printf("Berkeley DB version mismatch\n"
30814 "\theader: %s\n\tlibrary: %s\n",
30815 DB_VERSION_STRING, version);
30821 #if DB_VERSION_MAJOR > 2
30822 db_env_create( NULL, 0 );
30823 #elif DB_VERSION_MAJOR > 1
30824 db_appexit( NULL );
30826 (void) dbopen( NULL, 0, 0, 0, NULL);
30833 rm -f conftest.$ac_objext conftest$ac_exeext
30834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30835 (eval $ac_link) 2>conftest.er1
30837 grep -v '^ *+' conftest.er1 >conftest.err
30839 cat conftest.err >&5
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); } &&
30842 { ac_try='test -z "$ac_c_werror_flag"
30843 || test ! -s conftest.err'
30844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30845 (eval $ac_try) 2>&5
30847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848 (exit $ac_status); }; } &&
30849 { ac_try='test -s conftest$ac_exeext'
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; }; then
30857 echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30862 rm -f conftest.err conftest.$ac_objext \
30863 conftest$ac_exeext conftest.$ac_ext
30868 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30869 echo "${ECHO_T}$ol_cv_db_db1" >&6
30871 if test $ol_cv_db_db1 = yes ; then
30876 if test $ol_cv_lib_db = no ; then
30877 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30878 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30879 if test "${ol_cv_db_db_1+set}" = set; then
30880 echo $ECHO_N "(cached) $ECHO_C" >&6
30885 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30887 cat >conftest.$ac_ext <<_ACEOF
30890 cat confdefs.h >>conftest.$ac_ext
30891 cat >>conftest.$ac_ext <<_ACEOF
30892 /* end confdefs.h. */
30894 #ifdef HAVE_DB_185_H
30895 # include <db_185.h>
30900 #ifndef DB_VERSION_MAJOR
30901 # define DB_VERSION_MAJOR 1
30905 #define NULL ((void*)0)
30912 #if DB_VERSION_MAJOR > 1
30915 int major, minor, patch;
30917 version = db_version( &major, &minor, &patch );
30919 if( major != DB_VERSION_MAJOR ||
30920 minor < DB_VERSION_MINOR )
30922 printf("Berkeley DB version mismatch\n"
30923 "\theader: %s\n\tlibrary: %s\n",
30924 DB_VERSION_STRING, version);
30930 #if DB_VERSION_MAJOR > 2
30931 db_env_create( NULL, 0 );
30932 #elif DB_VERSION_MAJOR > 1
30933 db_appexit( NULL );
30935 (void) dbopen( NULL, 0, 0, 0, NULL);
30942 rm -f conftest.$ac_objext conftest$ac_exeext
30943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30944 (eval $ac_link) 2>conftest.er1
30946 grep -v '^ *+' conftest.er1 >conftest.err
30948 cat conftest.err >&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); } &&
30951 { ac_try='test -z "$ac_c_werror_flag"
30952 || test ! -s conftest.err'
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest$ac_exeext'
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
30966 echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30971 rm -f conftest.err conftest.$ac_objext \
30972 conftest$ac_exeext conftest.$ac_ext
30977 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30978 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30980 if test $ol_cv_db_db_1 = yes ; then
30981 ol_cv_lib_db=-ldb-1
30986 if test $ol_cv_lib_db = no ; then
30987 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30988 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30989 if test "${ol_cv_db_none+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30995 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30997 cat >conftest.$ac_ext <<_ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31004 #ifdef HAVE_DB_185_H
31005 # include <db_185.h>
31010 #ifndef DB_VERSION_MAJOR
31011 # define DB_VERSION_MAJOR 1
31015 #define NULL ((void*)0)
31022 #if DB_VERSION_MAJOR > 1
31025 int major, minor, patch;
31027 version = db_version( &major, &minor, &patch );
31029 if( major != DB_VERSION_MAJOR ||
31030 minor < DB_VERSION_MINOR )
31032 printf("Berkeley DB version mismatch\n"
31033 "\theader: %s\n\tlibrary: %s\n",
31034 DB_VERSION_STRING, version);
31040 #if DB_VERSION_MAJOR > 2
31041 db_env_create( NULL, 0 );
31042 #elif DB_VERSION_MAJOR > 1
31043 db_appexit( NULL );
31045 (void) dbopen( NULL, 0, 0, 0, NULL);
31052 rm -f conftest.$ac_objext conftest$ac_exeext
31053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31054 (eval $ac_link) 2>conftest.er1
31056 grep -v '^ *+' conftest.er1 >conftest.err
31058 cat conftest.err >&5
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } &&
31061 { ac_try='test -z "$ac_c_werror_flag"
31062 || test ! -s conftest.err'
31063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064 (eval $ac_try) 2>&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; } &&
31068 { ac_try='test -s conftest$ac_exeext'
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; }; then
31076 echo "$as_me: failed program was:" >&5
31077 sed 's/^/| /' conftest.$ac_ext >&5
31081 rm -f conftest.err conftest.$ac_objext \
31082 conftest$ac_exeext conftest.$ac_ext
31087 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31088 echo "${ECHO_T}$ol_cv_db_none" >&6
31090 if test $ol_cv_db_none = yes ; then
31096 if test "$ol_cv_lib_db" != no ; then
31097 ol_cv_berkeley_db=yes
31103 ol_cv_berkeley_db=no
31105 for ac_header in db.h
31107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31109 echo "$as_me:$LINENO: checking for $ac_header" >&5
31110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31112 echo $ECHO_N "(cached) $ECHO_C" >&6
31114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31117 # Is the header compilable?
31118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31120 cat >conftest.$ac_ext <<_ACEOF
31123 cat confdefs.h >>conftest.$ac_ext
31124 cat >>conftest.$ac_ext <<_ACEOF
31125 /* end confdefs.h. */
31126 $ac_includes_default
31127 #include <$ac_header>
31129 rm -f conftest.$ac_objext
31130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31131 (eval $ac_compile) 2>conftest.er1
31133 grep -v '^ *+' conftest.er1 >conftest.err
31135 cat conftest.err >&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); } &&
31138 { ac_try='test -z "$ac_c_werror_flag"
31139 || test ! -s conftest.err'
31140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141 (eval $ac_try) 2>&5
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; } &&
31145 { ac_try='test -s conftest.$ac_objext'
31146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147 (eval $ac_try) 2>&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
31151 ac_header_compiler=yes
31153 echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31156 ac_header_compiler=no
31158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31160 echo "${ECHO_T}$ac_header_compiler" >&6
31162 # Is the header present?
31163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31165 cat >conftest.$ac_ext <<_ACEOF
31168 cat confdefs.h >>conftest.$ac_ext
31169 cat >>conftest.$ac_ext <<_ACEOF
31170 /* end confdefs.h. */
31171 #include <$ac_header>
31173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31176 grep -v '^ *+' conftest.er1 >conftest.err
31178 cat conftest.err >&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); } >/dev/null; then
31181 if test -s conftest.err; then
31182 ac_cpp_err=$ac_c_preproc_warn_flag
31183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31190 if test -z "$ac_cpp_err"; then
31191 ac_header_preproc=yes
31193 echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31196 ac_header_preproc=no
31198 rm -f conftest.err conftest.$ac_ext
31199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31200 echo "${ECHO_T}$ac_header_preproc" >&6
31202 # So? What about this header?
31203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31209 ac_header_preproc=yes
31212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31226 ## ------------------------------------------ ##
31227 ## Report this to the AC_PACKAGE_NAME lists. ##
31228 ## ------------------------------------------ ##
31231 sed "s/^/$as_me: WARNING: /" >&2
31234 echo "$as_me:$LINENO: checking for $ac_header" >&5
31235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31237 echo $ECHO_N "(cached) $ECHO_C" >&6
31239 eval "$as_ac_Header=\$ac_header_preproc"
31241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31246 cat >>confdefs.h <<_ACEOF
31247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31254 if test $ac_cv_header_db_h = yes; then
31257 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31258 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31259 if test "${ol_cv_bdb_major+set}" = set; then
31260 echo $ECHO_N "(cached) $ECHO_C" >&6
31264 if test $ol_cv_bdb_major = 0 ; then
31265 cat >conftest.$ac_ext <<_ACEOF
31268 cat confdefs.h >>conftest.$ac_ext
31269 cat >>conftest.$ac_ext <<_ACEOF
31270 /* end confdefs.h. */
31273 #ifndef DB_VERSION_MAJOR
31274 # define DB_VERSION_MAJOR 1
31276 #if DB_VERSION_MAJOR == 4
31281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31282 $EGREP "__db_version" >/dev/null 2>&1; then
31290 if test $ol_cv_bdb_major = 0 ; then
31291 cat >conftest.$ac_ext <<_ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h. */
31299 #ifndef DB_VERSION_MAJOR
31300 # define DB_VERSION_MAJOR 1
31302 #if DB_VERSION_MAJOR == 3
31307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31308 $EGREP "__db_version" >/dev/null 2>&1; then
31316 if test $ol_cv_bdb_major = 0 ; then
31317 cat >conftest.$ac_ext <<_ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31325 #ifndef DB_VERSION_MAJOR
31326 # define DB_VERSION_MAJOR 1
31328 #if DB_VERSION_MAJOR == 2
31333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31334 $EGREP "__db_version" >/dev/null 2>&1; then
31342 if test $ol_cv_bdb_major = 0 ; then
31343 cat >conftest.$ac_ext <<_ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h. */
31351 #ifndef DB_VERSION_MAJOR
31352 # define DB_VERSION_MAJOR 1
31354 #if DB_VERSION_MAJOR == 1
31359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31360 $EGREP "__db_version" >/dev/null 2>&1; then
31369 if test $ol_cv_bdb_major = 0 ; then
31370 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31371 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31372 { (exit 1); exit 1; }; }
31376 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31377 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31379 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31380 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31381 if test "${ol_cv_bdb_minor+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31386 if test $ol_cv_bdb_minor = 0 ; then
31387 cat >conftest.$ac_ext <<_ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h. */
31395 #ifndef DB_VERSION_MINOR
31396 # define DB_VERSION_MINOR 0
31398 #if DB_VERSION_MINOR == 9
31403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31404 $EGREP "__db_version" >/dev/null 2>&1; then
31412 if test $ol_cv_bdb_minor = 0 ; then
31413 cat >conftest.$ac_ext <<_ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h. */
31421 #ifndef DB_VERSION_MINOR
31422 # define DB_VERSION_MINOR 0
31424 #if DB_VERSION_MINOR == 8
31429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31430 $EGREP "__db_version" >/dev/null 2>&1; then
31438 if test $ol_cv_bdb_minor = 0 ; then
31439 cat >conftest.$ac_ext <<_ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31447 #ifndef DB_VERSION_MINOR
31448 # define DB_VERSION_MINOR 0
31450 #if DB_VERSION_MINOR == 7
31455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31456 $EGREP "__db_version" >/dev/null 2>&1; then
31464 if test $ol_cv_bdb_minor = 0 ; then
31465 cat >conftest.$ac_ext <<_ACEOF
31468 cat confdefs.h >>conftest.$ac_ext
31469 cat >>conftest.$ac_ext <<_ACEOF
31470 /* end confdefs.h. */
31473 #ifndef DB_VERSION_MINOR
31474 # define DB_VERSION_MINOR 0
31476 #if DB_VERSION_MINOR == 6
31481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31482 $EGREP "__db_version" >/dev/null 2>&1; then
31490 if test $ol_cv_bdb_minor = 0 ; then
31491 cat >conftest.$ac_ext <<_ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31499 #ifndef DB_VERSION_MINOR
31500 # define DB_VERSION_MINOR 0
31502 #if DB_VERSION_MINOR == 5
31507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31508 $EGREP "__db_version" >/dev/null 2>&1; then
31516 if test $ol_cv_bdb_minor = 0 ; then
31517 cat >conftest.$ac_ext <<_ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h. */
31525 #ifndef DB_VERSION_MINOR
31526 # define DB_VERSION_MINOR 0
31528 #if DB_VERSION_MINOR == 4
31533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31534 $EGREP "__db_version" >/dev/null 2>&1; then
31542 if test $ol_cv_bdb_minor = 0 ; then
31543 cat >conftest.$ac_ext <<_ACEOF
31546 cat confdefs.h >>conftest.$ac_ext
31547 cat >>conftest.$ac_ext <<_ACEOF
31548 /* end confdefs.h. */
31551 #ifndef DB_VERSION_MINOR
31552 # define DB_VERSION_MINOR 0
31554 #if DB_VERSION_MINOR == 3
31559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31560 $EGREP "__db_version" >/dev/null 2>&1; then
31568 if test $ol_cv_bdb_minor = 0 ; then
31569 cat >conftest.$ac_ext <<_ACEOF
31572 cat confdefs.h >>conftest.$ac_ext
31573 cat >>conftest.$ac_ext <<_ACEOF
31574 /* end confdefs.h. */
31577 #ifndef DB_VERSION_MINOR
31578 # define DB_VERSION_MINOR 0
31580 #if DB_VERSION_MINOR == 2
31585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31586 $EGREP "__db_version" >/dev/null 2>&1; then
31594 if test $ol_cv_bdb_minor = 0 ; then
31595 cat >conftest.$ac_ext <<_ACEOF
31598 cat confdefs.h >>conftest.$ac_ext
31599 cat >>conftest.$ac_ext <<_ACEOF
31600 /* end confdefs.h. */
31603 #ifndef DB_VERSION_MINOR
31604 # define DB_VERSION_MINOR 0
31606 #if DB_VERSION_MINOR == 1
31611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31612 $EGREP "__db_version" >/dev/null 2>&1; then
31622 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31623 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31625 if test $ol_cv_bdb_major = 4 ; then
31626 if test $ol_cv_bdb_minor = 4 ; then
31627 if test $ol_cv_lib_db = no ; then
31628 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31629 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31630 if test "${ol_cv_db_db44+set}" = set; then
31631 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31638 cat >conftest.$ac_ext <<_ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h. */
31645 #ifdef HAVE_DB_185_H
31646 # include <db_185.h>
31651 #ifndef DB_VERSION_MAJOR
31652 # define DB_VERSION_MAJOR 1
31656 #define NULL ((void*)0)
31663 #if DB_VERSION_MAJOR > 1
31666 int major, minor, patch;
31668 version = db_version( &major, &minor, &patch );
31670 if( major != DB_VERSION_MAJOR ||
31671 minor < DB_VERSION_MINOR )
31673 printf("Berkeley DB version mismatch\n"
31674 "\theader: %s\n\tlibrary: %s\n",
31675 DB_VERSION_STRING, version);
31681 #if DB_VERSION_MAJOR > 2
31682 db_env_create( NULL, 0 );
31683 #elif DB_VERSION_MAJOR > 1
31684 db_appexit( NULL );
31686 (void) dbopen( NULL, 0, 0, 0, NULL);
31693 rm -f conftest.$ac_objext conftest$ac_exeext
31694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31695 (eval $ac_link) 2>conftest.er1
31697 grep -v '^ *+' conftest.er1 >conftest.err
31699 cat conftest.err >&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); } &&
31702 { ac_try='test -z "$ac_c_werror_flag"
31703 || test ! -s conftest.err'
31704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31705 (eval $ac_try) 2>&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; } &&
31709 { ac_try='test -s conftest$ac_exeext'
31710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711 (eval $ac_try) 2>&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31722 rm -f conftest.err conftest.$ac_objext \
31723 conftest$ac_exeext conftest.$ac_ext
31728 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31729 echo "${ECHO_T}$ol_cv_db_db44" >&6
31731 if test $ol_cv_db_db44 = yes ; then
31732 ol_cv_lib_db=-ldb44
31736 if test $ol_cv_lib_db = no ; then
31737 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31738 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31739 if test "${ol_cv_db_db_44+set}" = set; then
31740 echo $ECHO_N "(cached) $ECHO_C" >&6
31745 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31747 cat >conftest.$ac_ext <<_ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h. */
31754 #ifdef HAVE_DB_185_H
31755 # include <db_185.h>
31760 #ifndef DB_VERSION_MAJOR
31761 # define DB_VERSION_MAJOR 1
31765 #define NULL ((void*)0)
31772 #if DB_VERSION_MAJOR > 1
31775 int major, minor, patch;
31777 version = db_version( &major, &minor, &patch );
31779 if( major != DB_VERSION_MAJOR ||
31780 minor < DB_VERSION_MINOR )
31782 printf("Berkeley DB version mismatch\n"
31783 "\theader: %s\n\tlibrary: %s\n",
31784 DB_VERSION_STRING, version);
31790 #if DB_VERSION_MAJOR > 2
31791 db_env_create( NULL, 0 );
31792 #elif DB_VERSION_MAJOR > 1
31793 db_appexit( NULL );
31795 (void) dbopen( NULL, 0, 0, 0, NULL);
31802 rm -f conftest.$ac_objext conftest$ac_exeext
31803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31804 (eval $ac_link) 2>conftest.er1
31806 grep -v '^ *+' conftest.er1 >conftest.err
31808 cat conftest.err >&5
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); } &&
31811 { ac_try='test -z "$ac_c_werror_flag"
31812 || test ! -s conftest.err'
31813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31814 (eval $ac_try) 2>&5
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; } &&
31818 { ac_try='test -s conftest$ac_exeext'
31819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31820 (eval $ac_try) 2>&5
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; }; then
31826 echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31831 rm -f conftest.err conftest.$ac_objext \
31832 conftest$ac_exeext conftest.$ac_ext
31837 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31838 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31840 if test $ol_cv_db_db_44 = yes ; then
31841 ol_cv_lib_db=-ldb-44
31845 if test $ol_cv_lib_db = no ; then
31846 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31847 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31848 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31849 echo $ECHO_N "(cached) $ECHO_C" >&6
31854 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31856 cat >conftest.$ac_ext <<_ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31863 #ifdef HAVE_DB_185_H
31864 # include <db_185.h>
31869 #ifndef DB_VERSION_MAJOR
31870 # define DB_VERSION_MAJOR 1
31874 #define NULL ((void*)0)
31881 #if DB_VERSION_MAJOR > 1
31884 int major, minor, patch;
31886 version = db_version( &major, &minor, &patch );
31888 if( major != DB_VERSION_MAJOR ||
31889 minor < DB_VERSION_MINOR )
31891 printf("Berkeley DB version mismatch\n"
31892 "\theader: %s\n\tlibrary: %s\n",
31893 DB_VERSION_STRING, version);
31899 #if DB_VERSION_MAJOR > 2
31900 db_env_create( NULL, 0 );
31901 #elif DB_VERSION_MAJOR > 1
31902 db_appexit( NULL );
31904 (void) dbopen( NULL, 0, 0, 0, NULL);
31911 rm -f conftest.$ac_objext conftest$ac_exeext
31912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31913 (eval $ac_link) 2>conftest.er1
31915 grep -v '^ *+' conftest.er1 >conftest.err
31917 cat conftest.err >&5
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); } &&
31920 { ac_try='test -z "$ac_c_werror_flag"
31921 || test ! -s conftest.err'
31922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31923 (eval $ac_try) 2>&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); }; } &&
31927 { ac_try='test -s conftest$ac_exeext'
31928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929 (eval $ac_try) 2>&5
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); }; }; then
31933 ol_cv_db_db_4_dot_4=yes
31935 echo "$as_me: failed program was:" >&5
31936 sed 's/^/| /' conftest.$ac_ext >&5
31938 ol_cv_db_db_4_dot_4=no
31940 rm -f conftest.err conftest.$ac_objext \
31941 conftest$ac_exeext conftest.$ac_ext
31946 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31947 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31949 if test $ol_cv_db_db_4_dot_4 = yes ; then
31950 ol_cv_lib_db=-ldb-4.4
31954 if test $ol_cv_lib_db = no ; then
31955 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31956 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31957 if test "${ol_cv_db_db_4_4+set}" = set; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31965 cat >conftest.$ac_ext <<_ACEOF
31968 cat confdefs.h >>conftest.$ac_ext
31969 cat >>conftest.$ac_ext <<_ACEOF
31970 /* end confdefs.h. */
31972 #ifdef HAVE_DB_185_H
31973 # include <db_185.h>
31978 #ifndef DB_VERSION_MAJOR
31979 # define DB_VERSION_MAJOR 1
31983 #define NULL ((void*)0)
31990 #if DB_VERSION_MAJOR > 1
31993 int major, minor, patch;
31995 version = db_version( &major, &minor, &patch );
31997 if( major != DB_VERSION_MAJOR ||
31998 minor < DB_VERSION_MINOR )
32000 printf("Berkeley DB version mismatch\n"
32001 "\theader: %s\n\tlibrary: %s\n",
32002 DB_VERSION_STRING, version);
32008 #if DB_VERSION_MAJOR > 2
32009 db_env_create( NULL, 0 );
32010 #elif DB_VERSION_MAJOR > 1
32011 db_appexit( NULL );
32013 (void) dbopen( NULL, 0, 0, 0, NULL);
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022 (eval $ac_link) 2>conftest.er1
32024 grep -v '^ *+' conftest.er1 >conftest.err
32026 cat conftest.err >&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); } &&
32029 { ac_try='test -z "$ac_c_werror_flag"
32030 || test ! -s conftest.err'
32031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032 (eval $ac_try) 2>&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; } &&
32036 { ac_try='test -s conftest$ac_exeext'
32037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32038 (eval $ac_try) 2>&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); }; }; then
32042 ol_cv_db_db_4_4=yes
32044 echo "$as_me: failed program was:" >&5
32045 sed 's/^/| /' conftest.$ac_ext >&5
32049 rm -f conftest.err conftest.$ac_objext \
32050 conftest$ac_exeext conftest.$ac_ext
32055 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32056 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32058 if test $ol_cv_db_db_4_4 = yes ; then
32059 ol_cv_lib_db=-ldb-4-4
32063 elif test $ol_cv_bdb_minor = 3 ; then
32064 if test $ol_cv_lib_db = no ; then
32065 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32066 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32067 if test "${ol_cv_db_db43+set}" = set; then
32068 echo $ECHO_N "(cached) $ECHO_C" >&6
32073 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32075 cat >conftest.$ac_ext <<_ACEOF
32078 cat confdefs.h >>conftest.$ac_ext
32079 cat >>conftest.$ac_ext <<_ACEOF
32080 /* end confdefs.h. */
32082 #ifdef HAVE_DB_185_H
32083 # include <db_185.h>
32088 #ifndef DB_VERSION_MAJOR
32089 # define DB_VERSION_MAJOR 1
32093 #define NULL ((void*)0)
32100 #if DB_VERSION_MAJOR > 1
32103 int major, minor, patch;
32105 version = db_version( &major, &minor, &patch );
32107 if( major != DB_VERSION_MAJOR ||
32108 minor < DB_VERSION_MINOR )
32110 printf("Berkeley DB version mismatch\n"
32111 "\theader: %s\n\tlibrary: %s\n",
32112 DB_VERSION_STRING, version);
32118 #if DB_VERSION_MAJOR > 2
32119 db_env_create( NULL, 0 );
32120 #elif DB_VERSION_MAJOR > 1
32121 db_appexit( NULL );
32123 (void) dbopen( NULL, 0, 0, 0, NULL);
32130 rm -f conftest.$ac_objext conftest$ac_exeext
32131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32132 (eval $ac_link) 2>conftest.er1
32134 grep -v '^ *+' conftest.er1 >conftest.err
32136 cat conftest.err >&5
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); } &&
32139 { ac_try='test -z "$ac_c_werror_flag"
32140 || test ! -s conftest.err'
32141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32142 (eval $ac_try) 2>&5
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); }; } &&
32146 { ac_try='test -s conftest$ac_exeext'
32147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32148 (eval $ac_try) 2>&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); }; }; then
32154 echo "$as_me: failed program was:" >&5
32155 sed 's/^/| /' conftest.$ac_ext >&5
32159 rm -f conftest.err conftest.$ac_objext \
32160 conftest$ac_exeext conftest.$ac_ext
32165 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32166 echo "${ECHO_T}$ol_cv_db_db43" >&6
32168 if test $ol_cv_db_db43 = yes ; then
32169 ol_cv_lib_db=-ldb43
32173 if test $ol_cv_lib_db = no ; then
32174 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32175 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32176 if test "${ol_cv_db_db_43+set}" = set; then
32177 echo $ECHO_N "(cached) $ECHO_C" >&6
32182 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32184 cat >conftest.$ac_ext <<_ACEOF
32187 cat confdefs.h >>conftest.$ac_ext
32188 cat >>conftest.$ac_ext <<_ACEOF
32189 /* end confdefs.h. */
32191 #ifdef HAVE_DB_185_H
32192 # include <db_185.h>
32197 #ifndef DB_VERSION_MAJOR
32198 # define DB_VERSION_MAJOR 1
32202 #define NULL ((void*)0)
32209 #if DB_VERSION_MAJOR > 1
32212 int major, minor, patch;
32214 version = db_version( &major, &minor, &patch );
32216 if( major != DB_VERSION_MAJOR ||
32217 minor < DB_VERSION_MINOR )
32219 printf("Berkeley DB version mismatch\n"
32220 "\theader: %s\n\tlibrary: %s\n",
32221 DB_VERSION_STRING, version);
32227 #if DB_VERSION_MAJOR > 2
32228 db_env_create( NULL, 0 );
32229 #elif DB_VERSION_MAJOR > 1
32230 db_appexit( NULL );
32232 (void) dbopen( NULL, 0, 0, 0, NULL);
32239 rm -f conftest.$ac_objext conftest$ac_exeext
32240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32241 (eval $ac_link) 2>conftest.er1
32243 grep -v '^ *+' conftest.er1 >conftest.err
32245 cat conftest.err >&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } &&
32248 { ac_try='test -z "$ac_c_werror_flag"
32249 || test ! -s conftest.err'
32250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32251 (eval $ac_try) 2>&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; } &&
32255 { ac_try='test -s conftest$ac_exeext'
32256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32257 (eval $ac_try) 2>&5
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; }; then
32263 echo "$as_me: failed program was:" >&5
32264 sed 's/^/| /' conftest.$ac_ext >&5
32268 rm -f conftest.err conftest.$ac_objext \
32269 conftest$ac_exeext conftest.$ac_ext
32274 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32275 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32277 if test $ol_cv_db_db_43 = yes ; then
32278 ol_cv_lib_db=-ldb-43
32282 if test $ol_cv_lib_db = no ; then
32283 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32284 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32285 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32286 echo $ECHO_N "(cached) $ECHO_C" >&6
32291 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32293 cat >conftest.$ac_ext <<_ACEOF
32296 cat confdefs.h >>conftest.$ac_ext
32297 cat >>conftest.$ac_ext <<_ACEOF
32298 /* end confdefs.h. */
32300 #ifdef HAVE_DB_185_H
32301 # include <db_185.h>
32306 #ifndef DB_VERSION_MAJOR
32307 # define DB_VERSION_MAJOR 1
32311 #define NULL ((void*)0)
32318 #if DB_VERSION_MAJOR > 1
32321 int major, minor, patch;
32323 version = db_version( &major, &minor, &patch );
32325 if( major != DB_VERSION_MAJOR ||
32326 minor < DB_VERSION_MINOR )
32328 printf("Berkeley DB version mismatch\n"
32329 "\theader: %s\n\tlibrary: %s\n",
32330 DB_VERSION_STRING, version);
32336 #if DB_VERSION_MAJOR > 2
32337 db_env_create( NULL, 0 );
32338 #elif DB_VERSION_MAJOR > 1
32339 db_appexit( NULL );
32341 (void) dbopen( NULL, 0, 0, 0, NULL);
32348 rm -f conftest.$ac_objext conftest$ac_exeext
32349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32350 (eval $ac_link) 2>conftest.er1
32352 grep -v '^ *+' conftest.er1 >conftest.err
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
32357 { ac_try='test -z "$ac_c_werror_flag"
32358 || test ! -s conftest.err'
32359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32360 (eval $ac_try) 2>&5
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; } &&
32364 { ac_try='test -s conftest$ac_exeext'
32365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32366 (eval $ac_try) 2>&5
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; }; then
32370 ol_cv_db_db_4_dot_3=yes
32372 echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32375 ol_cv_db_db_4_dot_3=no
32377 rm -f conftest.err conftest.$ac_objext \
32378 conftest$ac_exeext conftest.$ac_ext
32383 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32384 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32386 if test $ol_cv_db_db_4_dot_3 = yes ; then
32387 ol_cv_lib_db=-ldb-4.3
32391 if test $ol_cv_lib_db = no ; then
32392 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32393 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32394 if test "${ol_cv_db_db_4_3+set}" = set; then
32395 echo $ECHO_N "(cached) $ECHO_C" >&6
32400 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32402 cat >conftest.$ac_ext <<_ACEOF
32405 cat confdefs.h >>conftest.$ac_ext
32406 cat >>conftest.$ac_ext <<_ACEOF
32407 /* end confdefs.h. */
32409 #ifdef HAVE_DB_185_H
32410 # include <db_185.h>
32415 #ifndef DB_VERSION_MAJOR
32416 # define DB_VERSION_MAJOR 1
32420 #define NULL ((void*)0)
32427 #if DB_VERSION_MAJOR > 1
32430 int major, minor, patch;
32432 version = db_version( &major, &minor, &patch );
32434 if( major != DB_VERSION_MAJOR ||
32435 minor < DB_VERSION_MINOR )
32437 printf("Berkeley DB version mismatch\n"
32438 "\theader: %s\n\tlibrary: %s\n",
32439 DB_VERSION_STRING, version);
32445 #if DB_VERSION_MAJOR > 2
32446 db_env_create( NULL, 0 );
32447 #elif DB_VERSION_MAJOR > 1
32448 db_appexit( NULL );
32450 (void) dbopen( NULL, 0, 0, 0, NULL);
32457 rm -f conftest.$ac_objext conftest$ac_exeext
32458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32459 (eval $ac_link) 2>conftest.er1
32461 grep -v '^ *+' conftest.er1 >conftest.err
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
32466 { ac_try='test -z "$ac_c_werror_flag"
32467 || test ! -s conftest.err'
32468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32469 (eval $ac_try) 2>&5
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; } &&
32473 { ac_try='test -s conftest$ac_exeext'
32474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475 (eval $ac_try) 2>&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; }; then
32479 ol_cv_db_db_4_3=yes
32481 echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32486 rm -f conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
32492 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32493 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32495 if test $ol_cv_db_db_4_3 = yes ; then
32496 ol_cv_lib_db=-ldb-4-3
32500 elif test $ol_cv_bdb_minor = 2 ; then
32501 if test $ol_cv_lib_db = no ; then
32502 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32503 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32504 if test "${ol_cv_db_db42+set}" = set; then
32505 echo $ECHO_N "(cached) $ECHO_C" >&6
32510 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32512 cat >conftest.$ac_ext <<_ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h. */
32519 #ifdef HAVE_DB_185_H
32520 # include <db_185.h>
32525 #ifndef DB_VERSION_MAJOR
32526 # define DB_VERSION_MAJOR 1
32530 #define NULL ((void*)0)
32537 #if DB_VERSION_MAJOR > 1
32540 int major, minor, patch;
32542 version = db_version( &major, &minor, &patch );
32544 if( major != DB_VERSION_MAJOR ||
32545 minor < DB_VERSION_MINOR )
32547 printf("Berkeley DB version mismatch\n"
32548 "\theader: %s\n\tlibrary: %s\n",
32549 DB_VERSION_STRING, version);
32555 #if DB_VERSION_MAJOR > 2
32556 db_env_create( NULL, 0 );
32557 #elif DB_VERSION_MAJOR > 1
32558 db_appexit( NULL );
32560 (void) dbopen( NULL, 0, 0, 0, NULL);
32567 rm -f conftest.$ac_objext conftest$ac_exeext
32568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32569 (eval $ac_link) 2>conftest.er1
32571 grep -v '^ *+' conftest.er1 >conftest.err
32573 cat conftest.err >&5
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); } &&
32576 { ac_try='test -z "$ac_c_werror_flag"
32577 || test ! -s conftest.err'
32578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579 (eval $ac_try) 2>&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); }; } &&
32583 { ac_try='test -s conftest$ac_exeext'
32584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585 (eval $ac_try) 2>&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; }; then
32591 echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32596 rm -f conftest.err conftest.$ac_objext \
32597 conftest$ac_exeext conftest.$ac_ext
32602 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32603 echo "${ECHO_T}$ol_cv_db_db42" >&6
32605 if test $ol_cv_db_db42 = yes ; then
32606 ol_cv_lib_db=-ldb42
32610 if test $ol_cv_lib_db = no ; then
32611 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32612 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32613 if test "${ol_cv_db_db_42+set}" = set; then
32614 echo $ECHO_N "(cached) $ECHO_C" >&6
32619 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32621 cat >conftest.$ac_ext <<_ACEOF
32624 cat confdefs.h >>conftest.$ac_ext
32625 cat >>conftest.$ac_ext <<_ACEOF
32626 /* end confdefs.h. */
32628 #ifdef HAVE_DB_185_H
32629 # include <db_185.h>
32634 #ifndef DB_VERSION_MAJOR
32635 # define DB_VERSION_MAJOR 1
32639 #define NULL ((void*)0)
32646 #if DB_VERSION_MAJOR > 1
32649 int major, minor, patch;
32651 version = db_version( &major, &minor, &patch );
32653 if( major != DB_VERSION_MAJOR ||
32654 minor < DB_VERSION_MINOR )
32656 printf("Berkeley DB version mismatch\n"
32657 "\theader: %s\n\tlibrary: %s\n",
32658 DB_VERSION_STRING, version);
32664 #if DB_VERSION_MAJOR > 2
32665 db_env_create( NULL, 0 );
32666 #elif DB_VERSION_MAJOR > 1
32667 db_appexit( NULL );
32669 (void) dbopen( NULL, 0, 0, 0, NULL);
32676 rm -f conftest.$ac_objext conftest$ac_exeext
32677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32678 (eval $ac_link) 2>conftest.er1
32680 grep -v '^ *+' conftest.er1 >conftest.err
32682 cat conftest.err >&5
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); } &&
32685 { ac_try='test -z "$ac_c_werror_flag"
32686 || test ! -s conftest.err'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; } &&
32692 { ac_try='test -s conftest$ac_exeext'
32693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694 (eval $ac_try) 2>&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); }; }; then
32700 echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32705 rm -f conftest.err conftest.$ac_objext \
32706 conftest$ac_exeext conftest.$ac_ext
32711 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32712 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32714 if test $ol_cv_db_db_42 = yes ; then
32715 ol_cv_lib_db=-ldb-42
32719 if test $ol_cv_lib_db = no ; then
32720 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32721 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32722 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32723 echo $ECHO_N "(cached) $ECHO_C" >&6
32728 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32730 cat >conftest.$ac_ext <<_ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h. */
32737 #ifdef HAVE_DB_185_H
32738 # include <db_185.h>
32743 #ifndef DB_VERSION_MAJOR
32744 # define DB_VERSION_MAJOR 1
32748 #define NULL ((void*)0)
32755 #if DB_VERSION_MAJOR > 1
32758 int major, minor, patch;
32760 version = db_version( &major, &minor, &patch );
32762 if( major != DB_VERSION_MAJOR ||
32763 minor < DB_VERSION_MINOR )
32765 printf("Berkeley DB version mismatch\n"
32766 "\theader: %s\n\tlibrary: %s\n",
32767 DB_VERSION_STRING, version);
32773 #if DB_VERSION_MAJOR > 2
32774 db_env_create( NULL, 0 );
32775 #elif DB_VERSION_MAJOR > 1
32776 db_appexit( NULL );
32778 (void) dbopen( NULL, 0, 0, 0, NULL);
32785 rm -f conftest.$ac_objext conftest$ac_exeext
32786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32787 (eval $ac_link) 2>conftest.er1
32789 grep -v '^ *+' conftest.er1 >conftest.err
32791 cat conftest.err >&5
32792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793 (exit $ac_status); } &&
32794 { ac_try='test -z "$ac_c_werror_flag"
32795 || test ! -s conftest.err'
32796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32797 (eval $ac_try) 2>&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; } &&
32801 { ac_try='test -s conftest$ac_exeext'
32802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803 (eval $ac_try) 2>&5
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; }; then
32807 ol_cv_db_db_4_dot_2=yes
32809 echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32812 ol_cv_db_db_4_dot_2=no
32814 rm -f conftest.err conftest.$ac_objext \
32815 conftest$ac_exeext conftest.$ac_ext
32820 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32821 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32823 if test $ol_cv_db_db_4_dot_2 = yes ; then
32824 ol_cv_lib_db=-ldb-4.2
32828 if test $ol_cv_lib_db = no ; then
32829 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32830 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32831 if test "${ol_cv_db_db_4_2+set}" = set; then
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32837 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32839 cat >conftest.$ac_ext <<_ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h. */
32846 #ifdef HAVE_DB_185_H
32847 # include <db_185.h>
32852 #ifndef DB_VERSION_MAJOR
32853 # define DB_VERSION_MAJOR 1
32857 #define NULL ((void*)0)
32864 #if DB_VERSION_MAJOR > 1
32867 int major, minor, patch;
32869 version = db_version( &major, &minor, &patch );
32871 if( major != DB_VERSION_MAJOR ||
32872 minor < DB_VERSION_MINOR )
32874 printf("Berkeley DB version mismatch\n"
32875 "\theader: %s\n\tlibrary: %s\n",
32876 DB_VERSION_STRING, version);
32882 #if DB_VERSION_MAJOR > 2
32883 db_env_create( NULL, 0 );
32884 #elif DB_VERSION_MAJOR > 1
32885 db_appexit( NULL );
32887 (void) dbopen( NULL, 0, 0, 0, NULL);
32894 rm -f conftest.$ac_objext conftest$ac_exeext
32895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32896 (eval $ac_link) 2>conftest.er1
32898 grep -v '^ *+' conftest.er1 >conftest.err
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } &&
32903 { ac_try='test -z "$ac_c_werror_flag"
32904 || test ! -s conftest.err'
32905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906 (eval $ac_try) 2>&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); }; } &&
32910 { ac_try='test -s conftest$ac_exeext'
32911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 (eval $ac_try) 2>&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; }; then
32916 ol_cv_db_db_4_2=yes
32918 echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32923 rm -f conftest.err conftest.$ac_objext \
32924 conftest$ac_exeext conftest.$ac_ext
32929 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32930 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32932 if test $ol_cv_db_db_4_2 = yes ; then
32933 ol_cv_lib_db=-ldb-4-2
32937 elif test $ol_cv_bdb_minor = 1 ; then
32938 if test $ol_cv_lib_db = no ; then
32939 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32940 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32941 if test "${ol_cv_db_db41+set}" = set; then
32942 echo $ECHO_N "(cached) $ECHO_C" >&6
32947 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32949 cat >conftest.$ac_ext <<_ACEOF
32952 cat confdefs.h >>conftest.$ac_ext
32953 cat >>conftest.$ac_ext <<_ACEOF
32954 /* end confdefs.h. */
32956 #ifdef HAVE_DB_185_H
32957 # include <db_185.h>
32962 #ifndef DB_VERSION_MAJOR
32963 # define DB_VERSION_MAJOR 1
32967 #define NULL ((void*)0)
32974 #if DB_VERSION_MAJOR > 1
32977 int major, minor, patch;
32979 version = db_version( &major, &minor, &patch );
32981 if( major != DB_VERSION_MAJOR ||
32982 minor < DB_VERSION_MINOR )
32984 printf("Berkeley DB version mismatch\n"
32985 "\theader: %s\n\tlibrary: %s\n",
32986 DB_VERSION_STRING, version);
32992 #if DB_VERSION_MAJOR > 2
32993 db_env_create( NULL, 0 );
32994 #elif DB_VERSION_MAJOR > 1
32995 db_appexit( NULL );
32997 (void) dbopen( NULL, 0, 0, 0, NULL);
33004 rm -f conftest.$ac_objext conftest$ac_exeext
33005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33006 (eval $ac_link) 2>conftest.er1
33008 grep -v '^ *+' conftest.er1 >conftest.err
33010 cat conftest.err >&5
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); } &&
33013 { ac_try='test -z "$ac_c_werror_flag"
33014 || test ! -s conftest.err'
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; } &&
33020 { ac_try='test -s conftest$ac_exeext'
33021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33022 (eval $ac_try) 2>&5
33024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); }; }; then
33028 echo "$as_me: failed program was:" >&5
33029 sed 's/^/| /' conftest.$ac_ext >&5
33033 rm -f conftest.err conftest.$ac_objext \
33034 conftest$ac_exeext conftest.$ac_ext
33039 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33040 echo "${ECHO_T}$ol_cv_db_db41" >&6
33042 if test $ol_cv_db_db41 = yes ; then
33043 ol_cv_lib_db=-ldb41
33047 if test $ol_cv_lib_db = no ; then
33048 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33049 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33050 if test "${ol_cv_db_db_41+set}" = set; then
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33056 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33058 cat >conftest.$ac_ext <<_ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h. */
33065 #ifdef HAVE_DB_185_H
33066 # include <db_185.h>
33071 #ifndef DB_VERSION_MAJOR
33072 # define DB_VERSION_MAJOR 1
33076 #define NULL ((void*)0)
33083 #if DB_VERSION_MAJOR > 1
33086 int major, minor, patch;
33088 version = db_version( &major, &minor, &patch );
33090 if( major != DB_VERSION_MAJOR ||
33091 minor < DB_VERSION_MINOR )
33093 printf("Berkeley DB version mismatch\n"
33094 "\theader: %s\n\tlibrary: %s\n",
33095 DB_VERSION_STRING, version);
33101 #if DB_VERSION_MAJOR > 2
33102 db_env_create( NULL, 0 );
33103 #elif DB_VERSION_MAJOR > 1
33104 db_appexit( NULL );
33106 (void) dbopen( NULL, 0, 0, 0, NULL);
33113 rm -f conftest.$ac_objext conftest$ac_exeext
33114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33115 (eval $ac_link) 2>conftest.er1
33117 grep -v '^ *+' conftest.er1 >conftest.err
33119 cat conftest.err >&5
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); } &&
33122 { ac_try='test -z "$ac_c_werror_flag"
33123 || test ! -s conftest.err'
33124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33125 (eval $ac_try) 2>&5
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; } &&
33129 { ac_try='test -s conftest$ac_exeext'
33130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33131 (eval $ac_try) 2>&5
33133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134 (exit $ac_status); }; }; then
33137 echo "$as_me: failed program was:" >&5
33138 sed 's/^/| /' conftest.$ac_ext >&5
33142 rm -f conftest.err conftest.$ac_objext \
33143 conftest$ac_exeext conftest.$ac_ext
33148 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33149 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33151 if test $ol_cv_db_db_41 = yes ; then
33152 ol_cv_lib_db=-ldb-41
33156 if test $ol_cv_lib_db = no ; then
33157 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33158 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33159 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33165 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33167 cat >conftest.$ac_ext <<_ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h. */
33174 #ifdef HAVE_DB_185_H
33175 # include <db_185.h>
33180 #ifndef DB_VERSION_MAJOR
33181 # define DB_VERSION_MAJOR 1
33185 #define NULL ((void*)0)
33192 #if DB_VERSION_MAJOR > 1
33195 int major, minor, patch;
33197 version = db_version( &major, &minor, &patch );
33199 if( major != DB_VERSION_MAJOR ||
33200 minor < DB_VERSION_MINOR )
33202 printf("Berkeley DB version mismatch\n"
33203 "\theader: %s\n\tlibrary: %s\n",
33204 DB_VERSION_STRING, version);
33210 #if DB_VERSION_MAJOR > 2
33211 db_env_create( NULL, 0 );
33212 #elif DB_VERSION_MAJOR > 1
33213 db_appexit( NULL );
33215 (void) dbopen( NULL, 0, 0, 0, NULL);
33222 rm -f conftest.$ac_objext conftest$ac_exeext
33223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33224 (eval $ac_link) 2>conftest.er1
33226 grep -v '^ *+' conftest.er1 >conftest.err
33228 cat conftest.err >&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); } &&
33231 { ac_try='test -z "$ac_c_werror_flag"
33232 || test ! -s conftest.err'
33233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 (eval $ac_try) 2>&5
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; } &&
33238 { ac_try='test -s conftest$ac_exeext'
33239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33240 (eval $ac_try) 2>&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; }; then
33244 ol_cv_db_db_4_dot_1=yes
33246 echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33249 ol_cv_db_db_4_dot_1=no
33251 rm -f conftest.err conftest.$ac_objext \
33252 conftest$ac_exeext conftest.$ac_ext
33257 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33258 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33260 if test $ol_cv_db_db_4_dot_1 = yes ; then
33261 ol_cv_lib_db=-ldb-4.1
33265 if test $ol_cv_lib_db = no ; then
33266 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33267 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33268 if test "${ol_cv_db_db_4_1+set}" = set; then
33269 echo $ECHO_N "(cached) $ECHO_C" >&6
33274 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33276 cat >conftest.$ac_ext <<_ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h. */
33283 #ifdef HAVE_DB_185_H
33284 # include <db_185.h>
33289 #ifndef DB_VERSION_MAJOR
33290 # define DB_VERSION_MAJOR 1
33294 #define NULL ((void*)0)
33301 #if DB_VERSION_MAJOR > 1
33304 int major, minor, patch;
33306 version = db_version( &major, &minor, &patch );
33308 if( major != DB_VERSION_MAJOR ||
33309 minor < DB_VERSION_MINOR )
33311 printf("Berkeley DB version mismatch\n"
33312 "\theader: %s\n\tlibrary: %s\n",
33313 DB_VERSION_STRING, version);
33319 #if DB_VERSION_MAJOR > 2
33320 db_env_create( NULL, 0 );
33321 #elif DB_VERSION_MAJOR > 1
33322 db_appexit( NULL );
33324 (void) dbopen( NULL, 0, 0, 0, NULL);
33331 rm -f conftest.$ac_objext conftest$ac_exeext
33332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33333 (eval $ac_link) 2>conftest.er1
33335 grep -v '^ *+' conftest.er1 >conftest.err
33337 cat conftest.err >&5
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); } &&
33340 { ac_try='test -z "$ac_c_werror_flag"
33341 || test ! -s conftest.err'
33342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343 (eval $ac_try) 2>&5
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; } &&
33347 { ac_try='test -s conftest$ac_exeext'
33348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33349 (eval $ac_try) 2>&5
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); }; }; then
33353 ol_cv_db_db_4_1=yes
33355 echo "$as_me: failed program was:" >&5
33356 sed 's/^/| /' conftest.$ac_ext >&5
33360 rm -f conftest.err conftest.$ac_objext \
33361 conftest$ac_exeext conftest.$ac_ext
33366 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33367 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33369 if test $ol_cv_db_db_4_1 = yes ; then
33370 ol_cv_lib_db=-ldb-4-1
33375 if test $ol_cv_lib_db = no ; then
33376 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33377 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33378 if test "${ol_cv_db_db_4+set}" = set; then
33379 echo $ECHO_N "(cached) $ECHO_C" >&6
33384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33386 cat >conftest.$ac_ext <<_ACEOF
33389 cat confdefs.h >>conftest.$ac_ext
33390 cat >>conftest.$ac_ext <<_ACEOF
33391 /* end confdefs.h. */
33393 #ifdef HAVE_DB_185_H
33394 # include <db_185.h>
33399 #ifndef DB_VERSION_MAJOR
33400 # define DB_VERSION_MAJOR 1
33404 #define NULL ((void*)0)
33411 #if DB_VERSION_MAJOR > 1
33414 int major, minor, patch;
33416 version = db_version( &major, &minor, &patch );
33418 if( major != DB_VERSION_MAJOR ||
33419 minor < DB_VERSION_MINOR )
33421 printf("Berkeley DB version mismatch\n"
33422 "\theader: %s\n\tlibrary: %s\n",
33423 DB_VERSION_STRING, version);
33429 #if DB_VERSION_MAJOR > 2
33430 db_env_create( NULL, 0 );
33431 #elif DB_VERSION_MAJOR > 1
33432 db_appexit( NULL );
33434 (void) dbopen( NULL, 0, 0, 0, NULL);
33441 rm -f conftest.$ac_objext conftest$ac_exeext
33442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33443 (eval $ac_link) 2>conftest.er1
33445 grep -v '^ *+' conftest.er1 >conftest.err
33447 cat conftest.err >&5
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); } &&
33450 { ac_try='test -z "$ac_c_werror_flag"
33451 || test ! -s conftest.err'
33452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453 (eval $ac_try) 2>&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; } &&
33457 { ac_try='test -s conftest$ac_exeext'
33458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459 (eval $ac_try) 2>&5
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); }; }; then
33465 echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.$ac_ext >&5
33470 rm -f conftest.err conftest.$ac_objext \
33471 conftest$ac_exeext conftest.$ac_ext
33476 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33477 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33479 if test $ol_cv_db_db_4 = yes ; then
33480 ol_cv_lib_db=-ldb-4
33484 if test $ol_cv_lib_db = no ; then
33485 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33486 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33487 if test "${ol_cv_db_db4+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33495 cat >conftest.$ac_ext <<_ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h. */
33502 #ifdef HAVE_DB_185_H
33503 # include <db_185.h>
33508 #ifndef DB_VERSION_MAJOR
33509 # define DB_VERSION_MAJOR 1
33513 #define NULL ((void*)0)
33520 #if DB_VERSION_MAJOR > 1
33523 int major, minor, patch;
33525 version = db_version( &major, &minor, &patch );
33527 if( major != DB_VERSION_MAJOR ||
33528 minor < DB_VERSION_MINOR )
33530 printf("Berkeley DB version mismatch\n"
33531 "\theader: %s\n\tlibrary: %s\n",
33532 DB_VERSION_STRING, version);
33538 #if DB_VERSION_MAJOR > 2
33539 db_env_create( NULL, 0 );
33540 #elif DB_VERSION_MAJOR > 1
33541 db_appexit( NULL );
33543 (void) dbopen( NULL, 0, 0, 0, NULL);
33550 rm -f conftest.$ac_objext conftest$ac_exeext
33551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33552 (eval $ac_link) 2>conftest.er1
33554 grep -v '^ *+' conftest.er1 >conftest.err
33556 cat conftest.err >&5
33557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558 (exit $ac_status); } &&
33559 { ac_try='test -z "$ac_c_werror_flag"
33560 || test ! -s conftest.err'
33561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33562 (eval $ac_try) 2>&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; } &&
33566 { ac_try='test -s conftest$ac_exeext'
33567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568 (eval $ac_try) 2>&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; }; then
33574 echo "$as_me: failed program was:" >&5
33575 sed 's/^/| /' conftest.$ac_ext >&5
33579 rm -f conftest.err conftest.$ac_objext \
33580 conftest$ac_exeext conftest.$ac_ext
33585 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33586 echo "${ECHO_T}$ol_cv_db_db4" >&6
33588 if test $ol_cv_db_db4 = yes ; then
33593 if test $ol_cv_lib_db = no ; then
33594 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33595 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33596 if test "${ol_cv_db_db+set}" = set; then
33597 echo $ECHO_N "(cached) $ECHO_C" >&6
33602 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33604 cat >conftest.$ac_ext <<_ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h. */
33611 #ifdef HAVE_DB_185_H
33612 # include <db_185.h>
33617 #ifndef DB_VERSION_MAJOR
33618 # define DB_VERSION_MAJOR 1
33622 #define NULL ((void*)0)
33629 #if DB_VERSION_MAJOR > 1
33632 int major, minor, patch;
33634 version = db_version( &major, &minor, &patch );
33636 if( major != DB_VERSION_MAJOR ||
33637 minor < DB_VERSION_MINOR )
33639 printf("Berkeley DB version mismatch\n"
33640 "\theader: %s\n\tlibrary: %s\n",
33641 DB_VERSION_STRING, version);
33647 #if DB_VERSION_MAJOR > 2
33648 db_env_create( NULL, 0 );
33649 #elif DB_VERSION_MAJOR > 1
33650 db_appexit( NULL );
33652 (void) dbopen( NULL, 0, 0, 0, NULL);
33659 rm -f conftest.$ac_objext conftest$ac_exeext
33660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33661 (eval $ac_link) 2>conftest.er1
33663 grep -v '^ *+' conftest.er1 >conftest.err
33665 cat conftest.err >&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); } &&
33668 { ac_try='test -z "$ac_c_werror_flag"
33669 || test ! -s conftest.err'
33670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33671 (eval $ac_try) 2>&5
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); }; } &&
33675 { ac_try='test -s conftest$ac_exeext'
33676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33677 (eval $ac_try) 2>&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); }; }; then
33683 echo "$as_me: failed program was:" >&5
33684 sed 's/^/| /' conftest.$ac_ext >&5
33688 rm -f conftest.err conftest.$ac_objext \
33689 conftest$ac_exeext conftest.$ac_ext
33694 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33695 echo "${ECHO_T}$ol_cv_db_db" >&6
33697 if test $ol_cv_db_db = yes ; then
33703 elif test $ol_cv_bdb_major = 3 ; then
33704 if test $ol_cv_lib_db = no ; then
33705 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33706 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33707 if test "${ol_cv_db_db3+set}" = set; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33713 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33715 cat >conftest.$ac_ext <<_ACEOF
33718 cat confdefs.h >>conftest.$ac_ext
33719 cat >>conftest.$ac_ext <<_ACEOF
33720 /* end confdefs.h. */
33722 #ifdef HAVE_DB_185_H
33723 # include <db_185.h>
33728 #ifndef DB_VERSION_MAJOR
33729 # define DB_VERSION_MAJOR 1
33733 #define NULL ((void*)0)
33740 #if DB_VERSION_MAJOR > 1
33743 int major, minor, patch;
33745 version = db_version( &major, &minor, &patch );
33747 if( major != DB_VERSION_MAJOR ||
33748 minor < DB_VERSION_MINOR )
33750 printf("Berkeley DB version mismatch\n"
33751 "\theader: %s\n\tlibrary: %s\n",
33752 DB_VERSION_STRING, version);
33758 #if DB_VERSION_MAJOR > 2
33759 db_env_create( NULL, 0 );
33760 #elif DB_VERSION_MAJOR > 1
33761 db_appexit( NULL );
33763 (void) dbopen( NULL, 0, 0, 0, NULL);
33770 rm -f conftest.$ac_objext conftest$ac_exeext
33771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33772 (eval $ac_link) 2>conftest.er1
33774 grep -v '^ *+' conftest.er1 >conftest.err
33776 cat conftest.err >&5
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); } &&
33779 { ac_try='test -z "$ac_c_werror_flag"
33780 || test ! -s conftest.err'
33781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33782 (eval $ac_try) 2>&5
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; } &&
33786 { ac_try='test -s conftest$ac_exeext'
33787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33788 (eval $ac_try) 2>&5
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); }; }; then
33794 echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33799 rm -f conftest.err conftest.$ac_objext \
33800 conftest$ac_exeext conftest.$ac_ext
33805 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33806 echo "${ECHO_T}$ol_cv_db_db3" >&6
33808 if test $ol_cv_db_db3 = yes ; then
33813 if test $ol_cv_lib_db = no ; then
33814 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33815 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33816 if test "${ol_cv_db_db_3+set}" = set; then
33817 echo $ECHO_N "(cached) $ECHO_C" >&6
33822 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33824 cat >conftest.$ac_ext <<_ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h. */
33831 #ifdef HAVE_DB_185_H
33832 # include <db_185.h>
33837 #ifndef DB_VERSION_MAJOR
33838 # define DB_VERSION_MAJOR 1
33842 #define NULL ((void*)0)
33849 #if DB_VERSION_MAJOR > 1
33852 int major, minor, patch;
33854 version = db_version( &major, &minor, &patch );
33856 if( major != DB_VERSION_MAJOR ||
33857 minor < DB_VERSION_MINOR )
33859 printf("Berkeley DB version mismatch\n"
33860 "\theader: %s\n\tlibrary: %s\n",
33861 DB_VERSION_STRING, version);
33867 #if DB_VERSION_MAJOR > 2
33868 db_env_create( NULL, 0 );
33869 #elif DB_VERSION_MAJOR > 1
33870 db_appexit( NULL );
33872 (void) dbopen( NULL, 0, 0, 0, NULL);
33879 rm -f conftest.$ac_objext conftest$ac_exeext
33880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33881 (eval $ac_link) 2>conftest.er1
33883 grep -v '^ *+' conftest.er1 >conftest.err
33885 cat conftest.err >&5
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); } &&
33888 { ac_try='test -z "$ac_c_werror_flag"
33889 || test ! -s conftest.err'
33890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891 (eval $ac_try) 2>&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; } &&
33895 { ac_try='test -s conftest$ac_exeext'
33896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33897 (eval $ac_try) 2>&5
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); }; }; then
33903 echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.$ac_ext >&5
33908 rm -f conftest.err conftest.$ac_objext \
33909 conftest$ac_exeext conftest.$ac_ext
33914 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33915 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33917 if test $ol_cv_db_db_3 = yes ; then
33918 ol_cv_lib_db=-ldb-3
33923 elif test $ol_cv_bdb_major = 2 ; then
33924 if test $ol_cv_lib_db = no ; then
33925 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33926 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33927 if test "${ol_cv_db_db2+set}" = set; then
33928 echo $ECHO_N "(cached) $ECHO_C" >&6
33933 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33935 cat >conftest.$ac_ext <<_ACEOF
33938 cat confdefs.h >>conftest.$ac_ext
33939 cat >>conftest.$ac_ext <<_ACEOF
33940 /* end confdefs.h. */
33942 #ifdef HAVE_DB_185_H
33943 # include <db_185.h>
33948 #ifndef DB_VERSION_MAJOR
33949 # define DB_VERSION_MAJOR 1
33953 #define NULL ((void*)0)
33960 #if DB_VERSION_MAJOR > 1
33963 int major, minor, patch;
33965 version = db_version( &major, &minor, &patch );
33967 if( major != DB_VERSION_MAJOR ||
33968 minor < DB_VERSION_MINOR )
33970 printf("Berkeley DB version mismatch\n"
33971 "\theader: %s\n\tlibrary: %s\n",
33972 DB_VERSION_STRING, version);
33978 #if DB_VERSION_MAJOR > 2
33979 db_env_create( NULL, 0 );
33980 #elif DB_VERSION_MAJOR > 1
33981 db_appexit( NULL );
33983 (void) dbopen( NULL, 0, 0, 0, NULL);
33990 rm -f conftest.$ac_objext conftest$ac_exeext
33991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33992 (eval $ac_link) 2>conftest.er1
33994 grep -v '^ *+' conftest.er1 >conftest.err
33996 cat conftest.err >&5
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); } &&
33999 { ac_try='test -z "$ac_c_werror_flag"
34000 || test ! -s conftest.err'
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; } &&
34006 { ac_try='test -s conftest$ac_exeext'
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34014 echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34019 rm -f conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
34025 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34026 echo "${ECHO_T}$ol_cv_db_db2" >&6
34028 if test $ol_cv_db_db2 = yes ; then
34033 if test $ol_cv_lib_db = no ; then
34034 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34035 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34036 if test "${ol_cv_db_db_2+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34042 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34044 cat >conftest.$ac_ext <<_ACEOF
34047 cat confdefs.h >>conftest.$ac_ext
34048 cat >>conftest.$ac_ext <<_ACEOF
34049 /* end confdefs.h. */
34051 #ifdef HAVE_DB_185_H
34052 # include <db_185.h>
34057 #ifndef DB_VERSION_MAJOR
34058 # define DB_VERSION_MAJOR 1
34062 #define NULL ((void*)0)
34069 #if DB_VERSION_MAJOR > 1
34072 int major, minor, patch;
34074 version = db_version( &major, &minor, &patch );
34076 if( major != DB_VERSION_MAJOR ||
34077 minor < DB_VERSION_MINOR )
34079 printf("Berkeley DB version mismatch\n"
34080 "\theader: %s\n\tlibrary: %s\n",
34081 DB_VERSION_STRING, version);
34087 #if DB_VERSION_MAJOR > 2
34088 db_env_create( NULL, 0 );
34089 #elif DB_VERSION_MAJOR > 1
34090 db_appexit( NULL );
34092 (void) dbopen( NULL, 0, 0, 0, NULL);
34099 rm -f conftest.$ac_objext conftest$ac_exeext
34100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34101 (eval $ac_link) 2>conftest.er1
34103 grep -v '^ *+' conftest.er1 >conftest.err
34105 cat conftest.err >&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
34108 { ac_try='test -z "$ac_c_werror_flag"
34109 || test ! -s conftest.err'
34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111 (eval $ac_try) 2>&5
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; } &&
34115 { ac_try='test -s conftest$ac_exeext'
34116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117 (eval $ac_try) 2>&5
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); }; }; then
34123 echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34128 rm -f conftest.err conftest.$ac_objext \
34129 conftest$ac_exeext conftest.$ac_ext
34134 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34135 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34137 if test $ol_cv_db_db_2 = yes ; then
34138 ol_cv_lib_db=-ldb-2
34143 elif test $ol_cv_bdb_major = 1 ; then
34144 if test $ol_cv_lib_db = no ; then
34145 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34146 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34147 if test "${ol_cv_db_db1+set}" = set; then
34148 echo $ECHO_N "(cached) $ECHO_C" >&6
34153 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34155 cat >conftest.$ac_ext <<_ACEOF
34158 cat confdefs.h >>conftest.$ac_ext
34159 cat >>conftest.$ac_ext <<_ACEOF
34160 /* end confdefs.h. */
34162 #ifdef HAVE_DB_185_H
34163 # include <db_185.h>
34168 #ifndef DB_VERSION_MAJOR
34169 # define DB_VERSION_MAJOR 1
34173 #define NULL ((void*)0)
34180 #if DB_VERSION_MAJOR > 1
34183 int major, minor, patch;
34185 version = db_version( &major, &minor, &patch );
34187 if( major != DB_VERSION_MAJOR ||
34188 minor < DB_VERSION_MINOR )
34190 printf("Berkeley DB version mismatch\n"
34191 "\theader: %s\n\tlibrary: %s\n",
34192 DB_VERSION_STRING, version);
34198 #if DB_VERSION_MAJOR > 2
34199 db_env_create( NULL, 0 );
34200 #elif DB_VERSION_MAJOR > 1
34201 db_appexit( NULL );
34203 (void) dbopen( NULL, 0, 0, 0, NULL);
34210 rm -f conftest.$ac_objext conftest$ac_exeext
34211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34212 (eval $ac_link) 2>conftest.er1
34214 grep -v '^ *+' conftest.er1 >conftest.err
34216 cat conftest.err >&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); } &&
34219 { ac_try='test -z "$ac_c_werror_flag"
34220 || test ! -s conftest.err'
34221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 (eval $ac_try) 2>&5
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; } &&
34226 { ac_try='test -s conftest$ac_exeext'
34227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228 (eval $ac_try) 2>&5
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; }; then
34234 echo "$as_me: failed program was:" >&5
34235 sed 's/^/| /' conftest.$ac_ext >&5
34239 rm -f conftest.err conftest.$ac_objext \
34240 conftest$ac_exeext conftest.$ac_ext
34245 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34246 echo "${ECHO_T}$ol_cv_db_db1" >&6
34248 if test $ol_cv_db_db1 = yes ; then
34253 if test $ol_cv_lib_db = no ; then
34254 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34255 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34256 if test "${ol_cv_db_db_1+set}" = set; then
34257 echo $ECHO_N "(cached) $ECHO_C" >&6
34262 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34264 cat >conftest.$ac_ext <<_ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h. */
34271 #ifdef HAVE_DB_185_H
34272 # include <db_185.h>
34277 #ifndef DB_VERSION_MAJOR
34278 # define DB_VERSION_MAJOR 1
34282 #define NULL ((void*)0)
34289 #if DB_VERSION_MAJOR > 1
34292 int major, minor, patch;
34294 version = db_version( &major, &minor, &patch );
34296 if( major != DB_VERSION_MAJOR ||
34297 minor < DB_VERSION_MINOR )
34299 printf("Berkeley DB version mismatch\n"
34300 "\theader: %s\n\tlibrary: %s\n",
34301 DB_VERSION_STRING, version);
34307 #if DB_VERSION_MAJOR > 2
34308 db_env_create( NULL, 0 );
34309 #elif DB_VERSION_MAJOR > 1
34310 db_appexit( NULL );
34312 (void) dbopen( NULL, 0, 0, 0, NULL);
34319 rm -f conftest.$ac_objext conftest$ac_exeext
34320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34321 (eval $ac_link) 2>conftest.er1
34323 grep -v '^ *+' conftest.er1 >conftest.err
34325 cat conftest.err >&5
34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 (exit $ac_status); } &&
34328 { ac_try='test -z "$ac_c_werror_flag"
34329 || test ! -s conftest.err'
34330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331 (eval $ac_try) 2>&5
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; } &&
34335 { ac_try='test -s conftest$ac_exeext'
34336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34337 (eval $ac_try) 2>&5
34339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340 (exit $ac_status); }; }; then
34343 echo "$as_me: failed program was:" >&5
34344 sed 's/^/| /' conftest.$ac_ext >&5
34348 rm -f conftest.err conftest.$ac_objext \
34349 conftest$ac_exeext conftest.$ac_ext
34354 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34355 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34357 if test $ol_cv_db_db_1 = yes ; then
34358 ol_cv_lib_db=-ldb-1
34363 if test $ol_cv_lib_db = no ; then
34364 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34365 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34366 if test "${ol_cv_db_none+set}" = set; then
34367 echo $ECHO_N "(cached) $ECHO_C" >&6
34372 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34374 cat >conftest.$ac_ext <<_ACEOF
34377 cat confdefs.h >>conftest.$ac_ext
34378 cat >>conftest.$ac_ext <<_ACEOF
34379 /* end confdefs.h. */
34381 #ifdef HAVE_DB_185_H
34382 # include <db_185.h>
34387 #ifndef DB_VERSION_MAJOR
34388 # define DB_VERSION_MAJOR 1
34392 #define NULL ((void*)0)
34399 #if DB_VERSION_MAJOR > 1
34402 int major, minor, patch;
34404 version = db_version( &major, &minor, &patch );
34406 if( major != DB_VERSION_MAJOR ||
34407 minor < DB_VERSION_MINOR )
34409 printf("Berkeley DB version mismatch\n"
34410 "\theader: %s\n\tlibrary: %s\n",
34411 DB_VERSION_STRING, version);
34417 #if DB_VERSION_MAJOR > 2
34418 db_env_create( NULL, 0 );
34419 #elif DB_VERSION_MAJOR > 1
34420 db_appexit( NULL );
34422 (void) dbopen( NULL, 0, 0, 0, NULL);
34429 rm -f conftest.$ac_objext conftest$ac_exeext
34430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34431 (eval $ac_link) 2>conftest.er1
34433 grep -v '^ *+' conftest.er1 >conftest.err
34435 cat conftest.err >&5
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); } &&
34438 { ac_try='test -z "$ac_c_werror_flag"
34439 || test ! -s conftest.err'
34440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441 (eval $ac_try) 2>&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); }; } &&
34445 { ac_try='test -s conftest$ac_exeext'
34446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447 (eval $ac_try) 2>&5
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); }; }; then
34453 echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34458 rm -f conftest.err conftest.$ac_objext \
34459 conftest$ac_exeext conftest.$ac_ext
34464 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34465 echo "${ECHO_T}$ol_cv_db_none" >&6
34467 if test $ol_cv_db_none = yes ; then
34473 if test "$ol_cv_lib_db" != no ; then
34474 ol_cv_berkeley_db=yes
34475 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34476 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34477 if test "${ol_cv_berkeley_db_version+set}" = set; then
34478 echo $ECHO_N "(cached) $ECHO_C" >&6
34482 LIBS="$LTHREAD_LIBS $LIBS"
34483 if test $ol_cv_lib_db != yes ; then
34484 LIBS="$ol_cv_lib_db $LIBS"
34487 if test "$cross_compiling" = yes; then
34488 ol_cv_berkeley_db_version=cross
34490 cat >conftest.$ac_ext <<_ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h. */
34497 #ifdef HAVE_DB_185_H
34502 #ifndef DB_VERSION_MAJOR
34503 # define DB_VERSION_MAJOR 1
34506 #define NULL ((void *)0)
34510 #if DB_VERSION_MAJOR > 1
34512 int major, minor, patch;
34514 version = db_version( &major, &minor, &patch );
34516 if( major != DB_VERSION_MAJOR ||
34517 minor != DB_VERSION_MINOR ||
34518 patch != DB_VERSION_PATCH )
34520 printf("Berkeley DB version mismatch\n"
34521 "\theader: %s\n\tlibrary: %s\n",
34522 DB_VERSION_STRING, version);
34530 rm -f conftest$ac_exeext
34531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34532 (eval $ac_link) 2>&5
34534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34537 (eval $ac_try) 2>&5
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); }; }; then
34541 ol_cv_berkeley_db_version=yes
34543 echo "$as_me: program exited with status $ac_status" >&5
34544 echo "$as_me: failed program was:" >&5
34545 sed 's/^/| /' conftest.$ac_ext >&5
34547 ( exit $ac_status )
34548 ol_cv_berkeley_db_version=no
34550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34556 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34557 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34559 if test $ol_cv_berkeley_db_version = no ; then
34560 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34561 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34562 { (exit 1); exit 1; }; }
34565 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34566 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34567 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34568 echo $ECHO_N "(cached) $ECHO_C" >&6
34572 LIBS="$LTHREAD_LIBS $LIBS"
34573 if test $ol_cv_lib_db != yes ; then
34574 LIBS="$ol_cv_lib_db $LIBS"
34577 if test "$cross_compiling" = yes; then
34578 ol_cv_berkeley_db_thread=cross
34580 cat >conftest.$ac_ext <<_ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h. */
34587 #ifdef HAVE_DB_185_H
34593 #define NULL ((void *)0)
34598 u_int32_t flags = DB_CREATE |
34604 #if DB_VERSION_MAJOR > 2
34605 DB_ENV *env = NULL;
34607 rc = db_env_create( &env, 0 );
34609 flags |= DB_INIT_MPOOL;
34610 #ifdef DB_MPOOL_PRIVATE
34611 flags |= DB_MPOOL_PRIVATE;
34615 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34619 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34620 rc = env->open( env, NULL, flags, 0 );
34622 rc = env->open( env, NULL, NULL, flags, 0 );
34626 rc = env->close( env, 0 );
34630 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34636 memset( &env, '\0', sizeof(env) );
34638 rc = db_appinit( NULL, NULL, &env, flags );
34641 db_appexit( &env );
34644 unlink("__db_mpool.share");
34645 unlink("__db_lock.share");
34651 rm -f conftest$ac_exeext
34652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34653 (eval $ac_link) 2>&5
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34658 (eval $ac_try) 2>&5
34660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661 (exit $ac_status); }; }; then
34662 ol_cv_berkeley_db_thread=yes
34664 echo "$as_me: program exited with status $ac_status" >&5
34665 echo "$as_me: failed program was:" >&5
34666 sed 's/^/| /' conftest.$ac_ext >&5
34668 ( exit $ac_status )
34669 ol_cv_berkeley_db_thread=no
34671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34677 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34678 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34680 if test $ol_cv_berkeley_db_thread != no ; then
34682 cat >>confdefs.h <<\_ACEOF
34683 #define HAVE_BERKELEY_DB_THREAD 1
34693 if test $ol_cv_berkeley_db != no ; then
34695 cat >>confdefs.h <<\_ACEOF
34696 #define HAVE_BERKELEY_DB 1
34700 ol_link_ldbm=berkeley
34701 ol_enable_ldbm_api=berkeley
34703 if test $ol_enable_ldbm_type = hash ; then
34705 cat >>confdefs.h <<\_ACEOF
34706 #define LDBM_USE_DBHASH 1
34711 cat >>confdefs.h <<\_ACEOF
34712 #define LDBM_USE_DBBTREE 1
34717 if test $ol_cv_lib_db != yes ; then
34718 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34724 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34725 if test $ol_link_ldbm != berkeley ; then
34726 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34727 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34728 { (exit 1); exit 1; }; }
34730 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34731 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34732 if test "${ol_cv_bdb_compat+set}" = set; then
34733 echo $ECHO_N "(cached) $ECHO_C" >&6
34736 cat >conftest.$ac_ext <<_ACEOF
34739 cat confdefs.h >>conftest.$ac_ext
34740 cat >>conftest.$ac_ext <<_ACEOF
34741 /* end confdefs.h. */
34745 /* this check could be improved */
34746 #ifndef DB_VERSION_MAJOR
34747 # define DB_VERSION_MAJOR 1
34749 #ifndef DB_VERSION_MINOR
34750 # define DB_VERSION_MINOR 0
34753 /* require 4.2 or later */
34754 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34755 __db_version_compat
34759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34760 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34761 ol_cv_bdb_compat=yes
34763 ol_cv_bdb_compat=no
34768 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34769 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34772 if test $ol_cv_bdb_compat != yes ; then
34773 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34774 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34775 { (exit 1); exit 1; }; }
34780 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34781 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34782 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34783 ol_enable_ldbm_api=none
34786 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34787 echo "$as_me:$LINENO: checking for MDBM library" >&5
34788 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34789 if test "${ol_cv_lib_mdbm+set}" = set; then
34790 echo $ECHO_N "(cached) $ECHO_C" >&6
34793 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34794 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34795 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34796 echo $ECHO_N "(cached) $ECHO_C" >&6
34798 cat >conftest.$ac_ext <<_ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h. */
34804 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34806 #define mdbm_set_chain innocuous_mdbm_set_chain
34808 /* System header to define __stub macros and hopefully few prototypes,
34809 which can conflict with char mdbm_set_chain (); below.
34810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34811 <limits.h> exists even on freestanding compilers. */
34814 # include <limits.h>
34816 # include <assert.h>
34819 #undef mdbm_set_chain
34821 /* Override any gcc2 internal prototype to avoid an error. */
34826 /* We use char because int might match the return type of a gcc2
34827 builtin and then its argument prototype would still apply. */
34828 char mdbm_set_chain ();
34829 /* The GNU C library defines this for functions which it implements
34830 to always fail with ENOSYS. Some functions are actually named
34831 something starting with __ and the normal name is an alias. */
34832 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34835 char (*f) () = mdbm_set_chain;
34844 return f != mdbm_set_chain;
34849 rm -f conftest.$ac_objext conftest$ac_exeext
34850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34851 (eval $ac_link) 2>conftest.er1
34853 grep -v '^ *+' conftest.er1 >conftest.err
34855 cat conftest.err >&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } &&
34858 { ac_try='test -z "$ac_c_werror_flag"
34859 || test ! -s conftest.err'
34860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34861 (eval $ac_try) 2>&5
34863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864 (exit $ac_status); }; } &&
34865 { ac_try='test -s 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 ac_cv_func_mdbm_set_chain=yes
34873 echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34876 ac_cv_func_mdbm_set_chain=no
34878 rm -f conftest.err conftest.$ac_objext \
34879 conftest$ac_exeext conftest.$ac_ext
34881 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34882 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34883 if test $ac_cv_func_mdbm_set_chain = yes; then
34887 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34888 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34889 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34890 echo $ECHO_N "(cached) $ECHO_C" >&6
34892 ac_check_lib_save_LIBS=$LIBS
34893 LIBS="-lmdbm $LIBS"
34894 cat >conftest.$ac_ext <<_ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h. */
34901 /* Override any gcc2 internal prototype to avoid an error. */
34905 /* We use char because int might match the return type of a gcc2
34906 builtin and then its argument prototype would still apply. */
34907 char mdbm_set_chain ();
34916 rm -f conftest.$ac_objext conftest$ac_exeext
34917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34918 (eval $ac_link) 2>conftest.er1
34920 grep -v '^ *+' conftest.er1 >conftest.err
34922 cat conftest.err >&5
34923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924 (exit $ac_status); } &&
34925 { ac_try='test -z "$ac_c_werror_flag"
34926 || test ! -s conftest.err'
34927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928 (eval $ac_try) 2>&5
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); }; } &&
34932 { ac_try='test -s conftest$ac_exeext'
34933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934 (eval $ac_try) 2>&5
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); }; }; then
34938 ac_cv_lib_mdbm_mdbm_set_chain=yes
34940 echo "$as_me: failed program was:" >&5
34941 sed 's/^/| /' conftest.$ac_ext >&5
34943 ac_cv_lib_mdbm_mdbm_set_chain=no
34945 rm -f conftest.err conftest.$ac_objext \
34946 conftest$ac_exeext conftest.$ac_ext
34947 LIBS=$ac_check_lib_save_LIBS
34949 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34950 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34951 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34952 ol_cv_lib_mdbm=-lmdbm
34963 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34964 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34968 for ac_header in mdbm.h
34970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34972 echo "$as_me:$LINENO: checking for $ac_header" >&5
34973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34975 echo $ECHO_N "(cached) $ECHO_C" >&6
34977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34980 # Is the header compilable?
34981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34983 cat >conftest.$ac_ext <<_ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h. */
34989 $ac_includes_default
34990 #include <$ac_header>
34992 rm -f conftest.$ac_objext
34993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34994 (eval $ac_compile) 2>conftest.er1
34996 grep -v '^ *+' conftest.er1 >conftest.err
34998 cat conftest.err >&5
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); } &&
35001 { ac_try='test -z "$ac_c_werror_flag"
35002 || test ! -s conftest.err'
35003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004 (eval $ac_try) 2>&5
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); }; } &&
35008 { ac_try='test -s conftest.$ac_objext'
35009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35010 (eval $ac_try) 2>&5
35012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013 (exit $ac_status); }; }; then
35014 ac_header_compiler=yes
35016 echo "$as_me: failed program was:" >&5
35017 sed 's/^/| /' conftest.$ac_ext >&5
35019 ac_header_compiler=no
35021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35023 echo "${ECHO_T}$ac_header_compiler" >&6
35025 # Is the header present?
35026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35028 cat >conftest.$ac_ext <<_ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h. */
35034 #include <$ac_header>
35036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35039 grep -v '^ *+' conftest.er1 >conftest.err
35041 cat conftest.err >&5
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); } >/dev/null; then
35044 if test -s conftest.err; then
35045 ac_cpp_err=$ac_c_preproc_warn_flag
35046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35053 if test -z "$ac_cpp_err"; then
35054 ac_header_preproc=yes
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35059 ac_header_preproc=no
35061 rm -f conftest.err conftest.$ac_ext
35062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35063 echo "${ECHO_T}$ac_header_preproc" >&6
35065 # So? What about this header?
35066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35072 ac_header_preproc=yes
35075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35089 ## ------------------------------------------ ##
35090 ## Report this to the AC_PACKAGE_NAME lists. ##
35091 ## ------------------------------------------ ##
35094 sed "s/^/$as_me: WARNING: /" >&2
35097 echo "$as_me:$LINENO: checking for $ac_header" >&5
35098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35100 echo $ECHO_N "(cached) $ECHO_C" >&6
35102 eval "$as_ac_Header=\$ac_header_preproc"
35104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35109 cat >>confdefs.h <<_ACEOF
35110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35117 echo "$as_me:$LINENO: checking for db" >&5
35118 echo $ECHO_N "checking for db... $ECHO_C" >&6
35119 if test "${ol_cv_mdbm+set}" = set; then
35120 echo $ECHO_N "(cached) $ECHO_C" >&6
35123 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35130 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35131 echo "${ECHO_T}$ol_cv_mdbm" >&6
35132 if test $ol_cv_mdbm = yes ; then
35134 cat >>confdefs.h <<\_ACEOF
35135 #define HAVE_MDBM 1
35141 if test $ol_cv_mdbm = yes ; then
35143 ol_enable_ldbm_api=mdbm
35144 if test $ol_cv_lib_mdbm != yes ; then
35145 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35150 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35151 echo "$as_me:$LINENO: checking for GDBM library" >&5
35152 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35153 if test "${ol_cv_lib_gdbm+set}" = set; then
35154 echo $ECHO_N "(cached) $ECHO_C" >&6
35157 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35158 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35159 if test "${ac_cv_func_gdbm_open+set}" = set; then
35160 echo $ECHO_N "(cached) $ECHO_C" >&6
35162 cat >conftest.$ac_ext <<_ACEOF
35165 cat confdefs.h >>conftest.$ac_ext
35166 cat >>conftest.$ac_ext <<_ACEOF
35167 /* end confdefs.h. */
35168 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35170 #define gdbm_open innocuous_gdbm_open
35172 /* System header to define __stub macros and hopefully few prototypes,
35173 which can conflict with char gdbm_open (); below.
35174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35175 <limits.h> exists even on freestanding compilers. */
35178 # include <limits.h>
35180 # include <assert.h>
35185 /* Override any gcc2 internal prototype to avoid an error. */
35190 /* We use char because int might match the return type of a gcc2
35191 builtin and then its argument prototype would still apply. */
35193 /* The GNU C library defines this for functions which it implements
35194 to always fail with ENOSYS. Some functions are actually named
35195 something starting with __ and the normal name is an alias. */
35196 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35199 char (*f) () = gdbm_open;
35208 return f != gdbm_open;
35213 rm -f conftest.$ac_objext conftest$ac_exeext
35214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35215 (eval $ac_link) 2>conftest.er1
35217 grep -v '^ *+' conftest.er1 >conftest.err
35219 cat conftest.err >&5
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); } &&
35222 { ac_try='test -z "$ac_c_werror_flag"
35223 || test ! -s conftest.err'
35224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225 (eval $ac_try) 2>&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); }; } &&
35229 { ac_try='test -s conftest$ac_exeext'
35230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231 (eval $ac_try) 2>&5
35233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234 (exit $ac_status); }; }; then
35235 ac_cv_func_gdbm_open=yes
35237 echo "$as_me: failed program was:" >&5
35238 sed 's/^/| /' conftest.$ac_ext >&5
35240 ac_cv_func_gdbm_open=no
35242 rm -f conftest.err conftest.$ac_objext \
35243 conftest$ac_exeext conftest.$ac_ext
35245 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35246 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35247 if test $ac_cv_func_gdbm_open = yes; then
35251 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35252 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35253 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35254 echo $ECHO_N "(cached) $ECHO_C" >&6
35256 ac_check_lib_save_LIBS=$LIBS
35257 LIBS="-lgdbm $LIBS"
35258 cat >conftest.$ac_ext <<_ACEOF
35261 cat confdefs.h >>conftest.$ac_ext
35262 cat >>conftest.$ac_ext <<_ACEOF
35263 /* end confdefs.h. */
35265 /* Override any gcc2 internal prototype to avoid an error. */
35269 /* We use char because int might match the return type of a gcc2
35270 builtin and then its argument prototype would still apply. */
35280 rm -f conftest.$ac_objext conftest$ac_exeext
35281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35282 (eval $ac_link) 2>conftest.er1
35284 grep -v '^ *+' conftest.er1 >conftest.err
35286 cat conftest.err >&5
35287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288 (exit $ac_status); } &&
35289 { ac_try='test -z "$ac_c_werror_flag"
35290 || test ! -s conftest.err'
35291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292 (eval $ac_try) 2>&5
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); }; } &&
35296 { ac_try='test -s conftest$ac_exeext'
35297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298 (eval $ac_try) 2>&5
35300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301 (exit $ac_status); }; }; then
35302 ac_cv_lib_gdbm_gdbm_open=yes
35304 echo "$as_me: failed program was:" >&5
35305 sed 's/^/| /' conftest.$ac_ext >&5
35307 ac_cv_lib_gdbm_gdbm_open=no
35309 rm -f conftest.err conftest.$ac_objext \
35310 conftest$ac_exeext conftest.$ac_ext
35311 LIBS=$ac_check_lib_save_LIBS
35313 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35314 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35315 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35316 ol_cv_lib_gdbm=-lgdbm
35327 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35328 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35332 for ac_header in gdbm.h
35334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35336 echo "$as_me:$LINENO: checking for $ac_header" >&5
35337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35339 echo $ECHO_N "(cached) $ECHO_C" >&6
35341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35344 # Is the header compilable?
35345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35347 cat >conftest.$ac_ext <<_ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h. */
35353 $ac_includes_default
35354 #include <$ac_header>
35356 rm -f conftest.$ac_objext
35357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35358 (eval $ac_compile) 2>conftest.er1
35360 grep -v '^ *+' conftest.er1 >conftest.err
35362 cat conftest.err >&5
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); } &&
35365 { ac_try='test -z "$ac_c_werror_flag"
35366 || test ! -s conftest.err'
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; } &&
35372 { ac_try='test -s conftest.$ac_objext'
35373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35374 (eval $ac_try) 2>&5
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); }; }; then
35378 ac_header_compiler=yes
35380 echo "$as_me: failed program was:" >&5
35381 sed 's/^/| /' conftest.$ac_ext >&5
35383 ac_header_compiler=no
35385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35387 echo "${ECHO_T}$ac_header_compiler" >&6
35389 # Is the header present?
35390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35392 cat >conftest.$ac_ext <<_ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h. */
35398 #include <$ac_header>
35400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35403 grep -v '^ *+' conftest.er1 >conftest.err
35405 cat conftest.err >&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } >/dev/null; then
35408 if test -s conftest.err; then
35409 ac_cpp_err=$ac_c_preproc_warn_flag
35410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35417 if test -z "$ac_cpp_err"; then
35418 ac_header_preproc=yes
35420 echo "$as_me: failed program was:" >&5
35421 sed 's/^/| /' conftest.$ac_ext >&5
35423 ac_header_preproc=no
35425 rm -f conftest.err conftest.$ac_ext
35426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35427 echo "${ECHO_T}$ac_header_preproc" >&6
35429 # So? What about this header?
35430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35436 ac_header_preproc=yes
35439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35453 ## ------------------------------------------ ##
35454 ## Report this to the AC_PACKAGE_NAME lists. ##
35455 ## ------------------------------------------ ##
35458 sed "s/^/$as_me: WARNING: /" >&2
35461 echo "$as_me:$LINENO: checking for $ac_header" >&5
35462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35464 echo $ECHO_N "(cached) $ECHO_C" >&6
35466 eval "$as_ac_Header=\$ac_header_preproc"
35468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35473 cat >>confdefs.h <<_ACEOF
35474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35481 echo "$as_me:$LINENO: checking for db" >&5
35482 echo $ECHO_N "checking for db... $ECHO_C" >&6
35483 if test "${ol_cv_gdbm+set}" = set; then
35484 echo $ECHO_N "(cached) $ECHO_C" >&6
35487 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35494 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35495 echo "${ECHO_T}$ol_cv_gdbm" >&6
35496 if test $ol_cv_gdbm = yes ; then
35498 cat >>confdefs.h <<\_ACEOF
35499 #define HAVE_GDBM 1
35505 if test $ol_cv_gdbm = yes ; then
35507 ol_enable_ldbm_api=gdbm
35509 if test $ol_cv_lib_gdbm != yes ; then
35510 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35515 if test $ol_enable_ldbm_api = ndbm ; then
35516 echo "$as_me:$LINENO: checking for NDBM library" >&5
35517 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35518 if test "${ol_cv_lib_ndbm+set}" = set; then
35519 echo $ECHO_N "(cached) $ECHO_C" >&6
35522 echo "$as_me:$LINENO: checking for dbm_open" >&5
35523 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35524 if test "${ac_cv_func_dbm_open+set}" = set; then
35525 echo $ECHO_N "(cached) $ECHO_C" >&6
35527 cat >conftest.$ac_ext <<_ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h. */
35533 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35535 #define dbm_open innocuous_dbm_open
35537 /* System header to define __stub macros and hopefully few prototypes,
35538 which can conflict with char dbm_open (); below.
35539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35540 <limits.h> exists even on freestanding compilers. */
35543 # include <limits.h>
35545 # include <assert.h>
35550 /* Override any gcc2 internal prototype to avoid an error. */
35555 /* We use char because int might match the return type of a gcc2
35556 builtin and then its argument prototype would still apply. */
35558 /* The GNU C library defines this for functions which it implements
35559 to always fail with ENOSYS. Some functions are actually named
35560 something starting with __ and the normal name is an alias. */
35561 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35564 char (*f) () = dbm_open;
35573 return f != dbm_open;
35578 rm -f conftest.$ac_objext conftest$ac_exeext
35579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35580 (eval $ac_link) 2>conftest.er1
35582 grep -v '^ *+' conftest.er1 >conftest.err
35584 cat conftest.err >&5
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); } &&
35587 { ac_try='test -z "$ac_c_werror_flag"
35588 || test ! -s conftest.err'
35589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590 (eval $ac_try) 2>&5
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }; } &&
35594 { ac_try='test -s conftest$ac_exeext'
35595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35596 (eval $ac_try) 2>&5
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); }; }; then
35600 ac_cv_func_dbm_open=yes
35602 echo "$as_me: failed program was:" >&5
35603 sed 's/^/| /' conftest.$ac_ext >&5
35605 ac_cv_func_dbm_open=no
35607 rm -f conftest.err conftest.$ac_objext \
35608 conftest$ac_exeext conftest.$ac_ext
35610 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35611 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35612 if test $ac_cv_func_dbm_open = yes; then
35616 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35617 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35618 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35619 echo $ECHO_N "(cached) $ECHO_C" >&6
35621 ac_check_lib_save_LIBS=$LIBS
35622 LIBS="-lndbm $LIBS"
35623 cat >conftest.$ac_ext <<_ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h. */
35630 /* Override any gcc2 internal prototype to avoid an error. */
35634 /* We use char because int might match the return type of a gcc2
35635 builtin and then its argument prototype would still apply. */
35645 rm -f conftest.$ac_objext conftest$ac_exeext
35646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35647 (eval $ac_link) 2>conftest.er1
35649 grep -v '^ *+' conftest.er1 >conftest.err
35651 cat conftest.err >&5
35652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); } &&
35654 { ac_try='test -z "$ac_c_werror_flag"
35655 || test ! -s conftest.err'
35656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657 (eval $ac_try) 2>&5
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); }; } &&
35661 { ac_try='test -s conftest$ac_exeext'
35662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35663 (eval $ac_try) 2>&5
35665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666 (exit $ac_status); }; }; then
35667 ac_cv_lib_ndbm_dbm_open=yes
35669 echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.$ac_ext >&5
35672 ac_cv_lib_ndbm_dbm_open=no
35674 rm -f conftest.err conftest.$ac_objext \
35675 conftest$ac_exeext conftest.$ac_ext
35676 LIBS=$ac_check_lib_save_LIBS
35678 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35679 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35680 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35681 ol_cv_lib_ndbm=-lndbm
35684 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35685 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35686 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35687 echo $ECHO_N "(cached) $ECHO_C" >&6
35689 ac_check_lib_save_LIBS=$LIBS
35691 cat >conftest.$ac_ext <<_ACEOF
35694 cat confdefs.h >>conftest.$ac_ext
35695 cat >>conftest.$ac_ext <<_ACEOF
35696 /* end confdefs.h. */
35698 /* Override any gcc2 internal prototype to avoid an error. */
35702 /* We use char because int might match the return type of a gcc2
35703 builtin and then its argument prototype would still apply. */
35713 rm -f conftest.$ac_objext conftest$ac_exeext
35714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35715 (eval $ac_link) 2>conftest.er1
35717 grep -v '^ *+' conftest.er1 >conftest.err
35719 cat conftest.err >&5
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); } &&
35722 { ac_try='test -z "$ac_c_werror_flag"
35723 || test ! -s conftest.err'
35724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35725 (eval $ac_try) 2>&5
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); }; } &&
35729 { ac_try='test -s conftest$ac_exeext'
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; }; then
35735 ac_cv_lib_dbm_dbm_open=yes
35737 echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35740 ac_cv_lib_dbm_dbm_open=no
35742 rm -f conftest.err conftest.$ac_objext \
35743 conftest$ac_exeext conftest.$ac_ext
35744 LIBS=$ac_check_lib_save_LIBS
35746 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35747 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35748 if test $ac_cv_lib_dbm_dbm_open = yes; then
35749 ol_cv_lib_ndbm=-ldbm
35762 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35763 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35767 for ac_header in ndbm.h
35769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35771 echo "$as_me:$LINENO: checking for $ac_header" >&5
35772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35774 echo $ECHO_N "(cached) $ECHO_C" >&6
35776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35779 # Is the header compilable?
35780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35782 cat >conftest.$ac_ext <<_ACEOF
35785 cat confdefs.h >>conftest.$ac_ext
35786 cat >>conftest.$ac_ext <<_ACEOF
35787 /* end confdefs.h. */
35788 $ac_includes_default
35789 #include <$ac_header>
35791 rm -f conftest.$ac_objext
35792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35793 (eval $ac_compile) 2>conftest.er1
35795 grep -v '^ *+' conftest.er1 >conftest.err
35797 cat conftest.err >&5
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); } &&
35800 { ac_try='test -z "$ac_c_werror_flag"
35801 || test ! -s conftest.err'
35802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35803 (eval $ac_try) 2>&5
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 (exit $ac_status); }; } &&
35807 { ac_try='test -s conftest.$ac_objext'
35808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35809 (eval $ac_try) 2>&5
35811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812 (exit $ac_status); }; }; then
35813 ac_header_compiler=yes
35815 echo "$as_me: failed program was:" >&5
35816 sed 's/^/| /' conftest.$ac_ext >&5
35818 ac_header_compiler=no
35820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35822 echo "${ECHO_T}$ac_header_compiler" >&6
35824 # Is the header present?
35825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35827 cat >conftest.$ac_ext <<_ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h. */
35833 #include <$ac_header>
35835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35838 grep -v '^ *+' conftest.er1 >conftest.err
35840 cat conftest.err >&5
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); } >/dev/null; then
35843 if test -s conftest.err; then
35844 ac_cpp_err=$ac_c_preproc_warn_flag
35845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35852 if test -z "$ac_cpp_err"; then
35853 ac_header_preproc=yes
35855 echo "$as_me: failed program was:" >&5
35856 sed 's/^/| /' conftest.$ac_ext >&5
35858 ac_header_preproc=no
35860 rm -f conftest.err conftest.$ac_ext
35861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35862 echo "${ECHO_T}$ac_header_preproc" >&6
35864 # So? What about this header?
35865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35871 ac_header_preproc=yes
35874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35888 ## ------------------------------------------ ##
35889 ## Report this to the AC_PACKAGE_NAME lists. ##
35890 ## ------------------------------------------ ##
35893 sed "s/^/$as_me: WARNING: /" >&2
35896 echo "$as_me:$LINENO: checking for $ac_header" >&5
35897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35899 echo $ECHO_N "(cached) $ECHO_C" >&6
35901 eval "$as_ac_Header=\$ac_header_preproc"
35903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35908 cat >>confdefs.h <<_ACEOF
35909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35916 echo "$as_me:$LINENO: checking for db" >&5
35917 echo $ECHO_N "checking for db... $ECHO_C" >&6
35918 if test "${ol_cv_ndbm+set}" = set; then
35919 echo $ECHO_N "(cached) $ECHO_C" >&6
35922 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35929 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35930 echo "${ECHO_T}$ol_cv_ndbm" >&6
35931 if test $ol_cv_ndbm = yes ; then
35933 cat >>confdefs.h <<\_ACEOF
35934 #define HAVE_NDBM 1
35940 if test $ol_cv_ndbm = yes ; then
35942 ol_enable_ldbm_api=ndbm
35944 if test $ol_cv_lib_ndbm != yes ; then
35945 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35950 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35951 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35952 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35953 { (exit 1); exit 1; }; }
35956 if test $ol_enable_bdb = yes ||
35957 test $ol_enable_hdb = yes ||
35958 test $ol_enable_ldbm = yes ; then
35959 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35963 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35964 BUILD_LIBS_DYNAMIC=shared
35966 cat >>confdefs.h <<\_ACEOF
35967 #define LDAP_LIBS_DYNAMIC 1
35972 BUILD_LIBS_DYNAMIC=static
35976 if test $ol_enable_wrappers != no ; then
35978 for ac_header in tcpd.h
35980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35982 echo "$as_me:$LINENO: checking for $ac_header" >&5
35983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35985 echo $ECHO_N "(cached) $ECHO_C" >&6
35987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35990 # Is the header compilable?
35991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35993 cat >conftest.$ac_ext <<_ACEOF
35996 cat confdefs.h >>conftest.$ac_ext
35997 cat >>conftest.$ac_ext <<_ACEOF
35998 /* end confdefs.h. */
35999 $ac_includes_default
36000 #include <$ac_header>
36002 rm -f conftest.$ac_objext
36003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36004 (eval $ac_compile) 2>conftest.er1
36006 grep -v '^ *+' conftest.er1 >conftest.err
36008 cat conftest.err >&5
36009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); } &&
36011 { ac_try='test -z "$ac_c_werror_flag"
36012 || test ! -s conftest.err'
36013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014 (eval $ac_try) 2>&5
36016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017 (exit $ac_status); }; } &&
36018 { ac_try='test -s conftest.$ac_objext'
36019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36020 (eval $ac_try) 2>&5
36022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023 (exit $ac_status); }; }; then
36024 ac_header_compiler=yes
36026 echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36029 ac_header_compiler=no
36031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36033 echo "${ECHO_T}$ac_header_compiler" >&6
36035 # Is the header present?
36036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36038 cat >conftest.$ac_ext <<_ACEOF
36041 cat confdefs.h >>conftest.$ac_ext
36042 cat >>conftest.$ac_ext <<_ACEOF
36043 /* end confdefs.h. */
36044 #include <$ac_header>
36046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36049 grep -v '^ *+' conftest.er1 >conftest.err
36051 cat conftest.err >&5
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } >/dev/null; then
36054 if test -s conftest.err; then
36055 ac_cpp_err=$ac_c_preproc_warn_flag
36056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36063 if test -z "$ac_cpp_err"; then
36064 ac_header_preproc=yes
36066 echo "$as_me: failed program was:" >&5
36067 sed 's/^/| /' conftest.$ac_ext >&5
36069 ac_header_preproc=no
36071 rm -f conftest.err conftest.$ac_ext
36072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36073 echo "${ECHO_T}$ac_header_preproc" >&6
36075 # So? What about this header?
36076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36082 ac_header_preproc=yes
36085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36099 ## ------------------------------------------ ##
36100 ## Report this to the AC_PACKAGE_NAME lists. ##
36101 ## ------------------------------------------ ##
36104 sed "s/^/$as_me: WARNING: /" >&2
36107 echo "$as_me:$LINENO: checking for $ac_header" >&5
36108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36110 echo $ECHO_N "(cached) $ECHO_C" >&6
36112 eval "$as_ac_Header=\$ac_header_preproc"
36114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36119 cat >>confdefs.h <<_ACEOF
36120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36123 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36124 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36126 LIBS="$LIBS -lwrap"
36127 cat >conftest.$ac_ext <<_ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h. */
36135 int allow_severity = 0;
36136 int deny_severity = 0;
36138 struct request_info *req;
36150 rm -f conftest.$ac_objext conftest$ac_exeext
36151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36152 (eval $ac_link) 2>conftest.er1
36154 grep -v '^ *+' conftest.er1 >conftest.err
36156 cat conftest.err >&5
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); } &&
36159 { ac_try='test -z "$ac_c_werror_flag"
36160 || test ! -s conftest.err'
36161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36162 (eval $ac_try) 2>&5
36164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165 (exit $ac_status); }; } &&
36166 { ac_try='test -s conftest$ac_exeext'
36167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36168 (eval $ac_try) 2>&5
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); }; }; then
36172 echo "$as_me:$LINENO: result: -lwrap" >&5
36173 echo "${ECHO_T}-lwrap" >&6
36177 echo "$as_me: failed program was:" >&5
36178 sed 's/^/| /' conftest.$ac_ext >&5
36182 cat >conftest.$ac_ext <<_ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h. */
36190 int allow_severity = 0;
36191 int deny_severity = 0;
36193 struct request_info *req;
36205 rm -f conftest.$ac_objext conftest$ac_exeext
36206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36207 (eval $ac_link) 2>conftest.er1
36209 grep -v '^ *+' conftest.er1 >conftest.err
36211 cat conftest.err >&5
36212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213 (exit $ac_status); } &&
36214 { ac_try='test -z "$ac_c_werror_flag"
36215 || test ! -s conftest.err'
36216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36217 (eval $ac_try) 2>&5
36219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220 (exit $ac_status); }; } &&
36221 { ac_try='test -s conftest$ac_exeext'
36222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223 (eval $ac_try) 2>&5
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); }; }; then
36227 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36228 echo "${ECHO_T}-lwrap -lnsl" >&6
36230 LIBS="$save_LIBS -lnsl"
36232 echo "$as_me: failed program was:" >&5
36233 sed 's/^/| /' conftest.$ac_ext >&5
36236 echo "$as_me:$LINENO: result: no" >&5
36237 echo "${ECHO_T}no" >&6
36241 rm -f conftest.err conftest.$ac_objext \
36242 conftest$ac_exeext conftest.$ac_ext
36244 rm -f conftest.err conftest.$ac_objext \
36245 conftest$ac_exeext conftest.$ac_ext
36253 if test $have_wrappers = yes ; then
36255 cat >>confdefs.h <<\_ACEOF
36256 #define HAVE_TCPD 1
36260 elif test $ol_enable_wrappers = yes ; then
36261 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36262 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36263 { (exit 1); exit 1; }; }
36265 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36266 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36271 if test $ol_enable_syslog != no ; then
36272 echo "$as_me:$LINENO: checking for openlog" >&5
36273 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36274 if test "${ac_cv_func_openlog+set}" = set; then
36275 echo $ECHO_N "(cached) $ECHO_C" >&6
36277 cat >conftest.$ac_ext <<_ACEOF
36280 cat confdefs.h >>conftest.$ac_ext
36281 cat >>conftest.$ac_ext <<_ACEOF
36282 /* end confdefs.h. */
36283 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36285 #define openlog innocuous_openlog
36287 /* System header to define __stub macros and hopefully few prototypes,
36288 which can conflict with char openlog (); below.
36289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36290 <limits.h> exists even on freestanding compilers. */
36293 # include <limits.h>
36295 # include <assert.h>
36300 /* Override any gcc2 internal prototype to avoid an error. */
36305 /* We use char because int might match the return type of a gcc2
36306 builtin and then its argument prototype would still apply. */
36308 /* The GNU C library defines this for functions which it implements
36309 to always fail with ENOSYS. Some functions are actually named
36310 something starting with __ and the normal name is an alias. */
36311 #if defined (__stub_openlog) || defined (__stub___openlog)
36314 char (*f) () = openlog;
36323 return f != openlog;
36328 rm -f conftest.$ac_objext conftest$ac_exeext
36329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36330 (eval $ac_link) 2>conftest.er1
36332 grep -v '^ *+' conftest.er1 >conftest.err
36334 cat conftest.err >&5
36335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36336 (exit $ac_status); } &&
36337 { ac_try='test -z "$ac_c_werror_flag"
36338 || test ! -s conftest.err'
36339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36340 (eval $ac_try) 2>&5
36342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343 (exit $ac_status); }; } &&
36344 { ac_try='test -s conftest$ac_exeext'
36345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36346 (eval $ac_try) 2>&5
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); }; }; then
36350 ac_cv_func_openlog=yes
36352 echo "$as_me: failed program was:" >&5
36353 sed 's/^/| /' conftest.$ac_ext >&5
36355 ac_cv_func_openlog=no
36357 rm -f conftest.err conftest.$ac_objext \
36358 conftest$ac_exeext conftest.$ac_ext
36360 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36361 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36363 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36364 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36365 echo "$as_me: error: could not find syslog" >&2;}
36366 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36368 ol_enable_syslog=$ac_cv_func_openlog
36372 if test $ol_enable_sql != no ; then
36375 for ac_header in sql.h sqlext.h
36377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36379 echo "$as_me:$LINENO: checking for $ac_header" >&5
36380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36382 echo $ECHO_N "(cached) $ECHO_C" >&6
36384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36387 # Is the header compilable?
36388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36390 cat >conftest.$ac_ext <<_ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h. */
36396 $ac_includes_default
36397 #include <$ac_header>
36399 rm -f conftest.$ac_objext
36400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36401 (eval $ac_compile) 2>conftest.er1
36403 grep -v '^ *+' conftest.er1 >conftest.err
36405 cat conftest.err >&5
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); } &&
36408 { ac_try='test -z "$ac_c_werror_flag"
36409 || test ! -s conftest.err'
36410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411 (eval $ac_try) 2>&5
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; } &&
36415 { ac_try='test -s conftest.$ac_objext'
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; }; then
36421 ac_header_compiler=yes
36423 echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36426 ac_header_compiler=no
36428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36430 echo "${ECHO_T}$ac_header_compiler" >&6
36432 # Is the header present?
36433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36435 cat >conftest.$ac_ext <<_ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h. */
36441 #include <$ac_header>
36443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36446 grep -v '^ *+' conftest.er1 >conftest.err
36448 cat conftest.err >&5
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); } >/dev/null; then
36451 if test -s conftest.err; then
36452 ac_cpp_err=$ac_c_preproc_warn_flag
36453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36460 if test -z "$ac_cpp_err"; then
36461 ac_header_preproc=yes
36463 echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36466 ac_header_preproc=no
36468 rm -f conftest.err conftest.$ac_ext
36469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36470 echo "${ECHO_T}$ac_header_preproc" >&6
36472 # So? What about this header?
36473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36479 ac_header_preproc=yes
36482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36496 ## ------------------------------------------ ##
36497 ## Report this to the AC_PACKAGE_NAME lists. ##
36498 ## ------------------------------------------ ##
36501 sed "s/^/$as_me: WARNING: /" >&2
36504 echo "$as_me:$LINENO: checking for $ac_header" >&5
36505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36507 echo $ECHO_N "(cached) $ECHO_C" >&6
36509 eval "$as_ac_Header=\$ac_header_preproc"
36511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36516 cat >>confdefs.h <<_ACEOF
36517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36522 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36523 echo "$as_me: error: could not locate SQL headers" >&2;}
36524 { (exit 1); exit 1; }; }
36532 LIBS="$LTHREAD_LIBS"
36534 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36535 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36536 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36537 echo $ECHO_N "(cached) $ECHO_C" >&6
36539 ac_check_lib_save_LIBS=$LIBS
36540 LIBS="-liodbc $LIBS"
36541 cat >conftest.$ac_ext <<_ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h. */
36548 /* Override any gcc2 internal prototype to avoid an error. */
36552 /* We use char because int might match the return type of a gcc2
36553 builtin and then its argument prototype would still apply. */
36554 char SQLDriverConnect ();
36558 SQLDriverConnect ();
36563 rm -f conftest.$ac_objext conftest$ac_exeext
36564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36565 (eval $ac_link) 2>conftest.er1
36567 grep -v '^ *+' conftest.er1 >conftest.err
36569 cat conftest.err >&5
36570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571 (exit $ac_status); } &&
36572 { ac_try='test -z "$ac_c_werror_flag"
36573 || test ! -s conftest.err'
36574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575 (eval $ac_try) 2>&5
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); }; } &&
36579 { ac_try='test -s conftest$ac_exeext'
36580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36581 (eval $ac_try) 2>&5
36583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584 (exit $ac_status); }; }; then
36585 ac_cv_lib_iodbc_SQLDriverConnect=yes
36587 echo "$as_me: failed program was:" >&5
36588 sed 's/^/| /' conftest.$ac_ext >&5
36590 ac_cv_lib_iodbc_SQLDriverConnect=no
36592 rm -f conftest.err conftest.$ac_objext \
36593 conftest$ac_exeext conftest.$ac_ext
36594 LIBS=$ac_check_lib_save_LIBS
36596 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36597 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36598 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36604 if test $have_iodbc = yes ; then
36605 ol_link_sql="-liodbc"
36607 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36608 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36609 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36610 echo $ECHO_N "(cached) $ECHO_C" >&6
36612 ac_check_lib_save_LIBS=$LIBS
36613 LIBS="-lodbc $LIBS"
36614 cat >conftest.$ac_ext <<_ACEOF
36617 cat confdefs.h >>conftest.$ac_ext
36618 cat >>conftest.$ac_ext <<_ACEOF
36619 /* end confdefs.h. */
36621 /* Override any gcc2 internal prototype to avoid an error. */
36625 /* We use char because int might match the return type of a gcc2
36626 builtin and then its argument prototype would still apply. */
36627 char SQLDriverConnect ();
36631 SQLDriverConnect ();
36636 rm -f conftest.$ac_objext conftest$ac_exeext
36637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36638 (eval $ac_link) 2>conftest.er1
36640 grep -v '^ *+' conftest.er1 >conftest.err
36642 cat conftest.err >&5
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); } &&
36645 { ac_try='test -z "$ac_c_werror_flag"
36646 || test ! -s conftest.err'
36647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648 (eval $ac_try) 2>&5
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); }; } &&
36652 { ac_try='test -s conftest$ac_exeext'
36653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654 (eval $ac_try) 2>&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); }; }; then
36658 ac_cv_lib_odbc_SQLDriverConnect=yes
36660 echo "$as_me: failed program was:" >&5
36661 sed 's/^/| /' conftest.$ac_ext >&5
36663 ac_cv_lib_odbc_SQLDriverConnect=no
36665 rm -f conftest.err conftest.$ac_objext \
36666 conftest$ac_exeext conftest.$ac_ext
36667 LIBS=$ac_check_lib_save_LIBS
36669 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36670 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36671 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36677 if test $have_odbc = yes ; then
36678 ol_link_sql="-lodbc"
36684 if test $ol_link_sql != no ; then
36685 SLAPD_SQL_LIBS="$ol_link_sql"
36687 elif test $ol_enable_sql != auto ; then
36688 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36689 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36690 { (exit 1); exit 1; }; }
36696 for ac_header in unicode/utypes.h
36698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36700 echo "$as_me:$LINENO: checking for $ac_header" >&5
36701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36703 echo $ECHO_N "(cached) $ECHO_C" >&6
36705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36708 # Is the header compilable?
36709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36711 cat >conftest.$ac_ext <<_ACEOF
36714 cat confdefs.h >>conftest.$ac_ext
36715 cat >>conftest.$ac_ext <<_ACEOF
36716 /* end confdefs.h. */
36717 $ac_includes_default
36718 #include <$ac_header>
36720 rm -f conftest.$ac_objext
36721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36722 (eval $ac_compile) 2>conftest.er1
36724 grep -v '^ *+' conftest.er1 >conftest.err
36726 cat conftest.err >&5
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); } &&
36729 { ac_try='test -z "$ac_c_werror_flag"
36730 || test ! -s conftest.err'
36731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 (eval $ac_try) 2>&5
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); }; } &&
36736 { ac_try='test -s conftest.$ac_objext'
36737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738 (eval $ac_try) 2>&5
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); }; }; then
36742 ac_header_compiler=yes
36744 echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36747 ac_header_compiler=no
36749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36751 echo "${ECHO_T}$ac_header_compiler" >&6
36753 # Is the header present?
36754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36756 cat >conftest.$ac_ext <<_ACEOF
36759 cat confdefs.h >>conftest.$ac_ext
36760 cat >>conftest.$ac_ext <<_ACEOF
36761 /* end confdefs.h. */
36762 #include <$ac_header>
36764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36767 grep -v '^ *+' conftest.er1 >conftest.err
36769 cat conftest.err >&5
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); } >/dev/null; then
36772 if test -s conftest.err; then
36773 ac_cpp_err=$ac_c_preproc_warn_flag
36774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36781 if test -z "$ac_cpp_err"; then
36782 ac_header_preproc=yes
36784 echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36787 ac_header_preproc=no
36789 rm -f conftest.err conftest.$ac_ext
36790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36791 echo "${ECHO_T}$ac_header_preproc" >&6
36793 # So? What about this header?
36794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36800 ac_header_preproc=yes
36803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36817 ## ------------------------------------------ ##
36818 ## Report this to the AC_PACKAGE_NAME lists. ##
36819 ## ------------------------------------------ ##
36822 sed "s/^/$as_me: WARNING: /" >&2
36825 echo "$as_me:$LINENO: checking for $ac_header" >&5
36826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36828 echo $ECHO_N "(cached) $ECHO_C" >&6
36830 eval "$as_ac_Header=\$ac_header_preproc"
36832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36837 cat >>confdefs.h <<_ACEOF
36838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36845 if test $ac_cv_header_unicode_utypes_h = yes ; then
36846 OL_ICULIBS="-licuuc -licudata"
36848 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36849 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36850 if test "${ol_cv_lib_icu+set}" = set; then
36851 echo $ECHO_N "(cached) $ECHO_C" >&6
36855 LIBS="$OL_ICULIBS $LIBS"
36856 cat >conftest.$ac_ext <<_ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h. */
36863 #include <unicode/utypes.h>
36869 (void) u_errorName(0);
36875 rm -f conftest.$ac_objext conftest$ac_exeext
36876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36877 (eval $ac_link) 2>conftest.er1
36879 grep -v '^ *+' conftest.er1 >conftest.err
36881 cat conftest.err >&5
36882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883 (exit $ac_status); } &&
36884 { ac_try='test -z "$ac_c_werror_flag"
36885 || test ! -s conftest.err'
36886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36887 (eval $ac_try) 2>&5
36889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890 (exit $ac_status); }; } &&
36891 { ac_try='test -s conftest$ac_exeext'
36892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36893 (eval $ac_try) 2>&5
36895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896 (exit $ac_status); }; }; then
36899 echo "$as_me: failed program was:" >&5
36900 sed 's/^/| /' conftest.$ac_ext >&5
36904 rm -f conftest.err conftest.$ac_objext \
36905 conftest$ac_exeext conftest.$ac_ext
36909 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36910 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36912 if test $ol_cv_lib_icu != no ; then
36913 ol_icu="$OL_ICULIBS"
36915 cat >>confdefs.h <<\_ACEOF
36922 if test "$ol_icu" = no ; then
36923 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36924 echo "$as_me: WARNING: ICU not available" >&2;}
36931 if test $ol_with_cyrus_sasl != no ; then
36934 for ac_header in sasl/sasl.h sasl.h
36936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36938 echo "$as_me:$LINENO: checking for $ac_header" >&5
36939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36941 echo $ECHO_N "(cached) $ECHO_C" >&6
36943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36946 # Is the header compilable?
36947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36949 cat >conftest.$ac_ext <<_ACEOF
36952 cat confdefs.h >>conftest.$ac_ext
36953 cat >>conftest.$ac_ext <<_ACEOF
36954 /* end confdefs.h. */
36955 $ac_includes_default
36956 #include <$ac_header>
36958 rm -f conftest.$ac_objext
36959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36960 (eval $ac_compile) 2>conftest.er1
36962 grep -v '^ *+' conftest.er1 >conftest.err
36964 cat conftest.err >&5
36965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); } &&
36967 { ac_try='test -z "$ac_c_werror_flag"
36968 || test ! -s conftest.err'
36969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36970 (eval $ac_try) 2>&5
36972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973 (exit $ac_status); }; } &&
36974 { ac_try='test -s conftest.$ac_objext'
36975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36976 (eval $ac_try) 2>&5
36978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979 (exit $ac_status); }; }; then
36980 ac_header_compiler=yes
36982 echo "$as_me: failed program was:" >&5
36983 sed 's/^/| /' conftest.$ac_ext >&5
36985 ac_header_compiler=no
36987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36989 echo "${ECHO_T}$ac_header_compiler" >&6
36991 # Is the header present?
36992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36994 cat >conftest.$ac_ext <<_ACEOF
36997 cat confdefs.h >>conftest.$ac_ext
36998 cat >>conftest.$ac_ext <<_ACEOF
36999 /* end confdefs.h. */
37000 #include <$ac_header>
37002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37005 grep -v '^ *+' conftest.er1 >conftest.err
37007 cat conftest.err >&5
37008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009 (exit $ac_status); } >/dev/null; then
37010 if test -s conftest.err; then
37011 ac_cpp_err=$ac_c_preproc_warn_flag
37012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37019 if test -z "$ac_cpp_err"; then
37020 ac_header_preproc=yes
37022 echo "$as_me: failed program was:" >&5
37023 sed 's/^/| /' conftest.$ac_ext >&5
37025 ac_header_preproc=no
37027 rm -f conftest.err conftest.$ac_ext
37028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37029 echo "${ECHO_T}$ac_header_preproc" >&6
37031 # So? What about this header?
37032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37038 ac_header_preproc=yes
37041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37055 ## ------------------------------------------ ##
37056 ## Report this to the AC_PACKAGE_NAME lists. ##
37057 ## ------------------------------------------ ##
37060 sed "s/^/$as_me: WARNING: /" >&2
37063 echo "$as_me:$LINENO: checking for $ac_header" >&5
37064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37066 echo $ECHO_N "(cached) $ECHO_C" >&6
37068 eval "$as_ac_Header=\$ac_header_preproc"
37070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37075 cat >>confdefs.h <<_ACEOF
37076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37084 if test $ac_cv_header_sasl_sasl_h = yes ||
37085 test $ac_cv_header_sasl_h = yes; then
37086 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37087 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37088 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37089 echo $ECHO_N "(cached) $ECHO_C" >&6
37091 ac_check_lib_save_LIBS=$LIBS
37092 LIBS="-lsasl2 $LIBS"
37093 cat >conftest.$ac_ext <<_ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h. */
37100 /* Override any gcc2 internal prototype to avoid an error. */
37104 /* We use char because int might match the return type of a gcc2
37105 builtin and then its argument prototype would still apply. */
37106 char sasl_client_init ();
37110 sasl_client_init ();
37115 rm -f conftest.$ac_objext conftest$ac_exeext
37116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37117 (eval $ac_link) 2>conftest.er1
37119 grep -v '^ *+' conftest.er1 >conftest.err
37121 cat conftest.err >&5
37122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); } &&
37124 { ac_try='test -z "$ac_c_werror_flag"
37125 || test ! -s conftest.err'
37126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37127 (eval $ac_try) 2>&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); }; } &&
37131 { ac_try='test -s conftest$ac_exeext'
37132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37133 (eval $ac_try) 2>&5
37135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136 (exit $ac_status); }; }; then
37137 ac_cv_lib_sasl2_sasl_client_init=yes
37139 echo "$as_me: failed program was:" >&5
37140 sed 's/^/| /' conftest.$ac_ext >&5
37142 ac_cv_lib_sasl2_sasl_client_init=no
37144 rm -f conftest.err conftest.$ac_objext \
37145 conftest$ac_exeext conftest.$ac_ext
37146 LIBS=$ac_check_lib_save_LIBS
37148 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37149 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37150 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37151 ol_link_sasl="-lsasl2"
37153 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37154 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37155 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37156 echo $ECHO_N "(cached) $ECHO_C" >&6
37158 ac_check_lib_save_LIBS=$LIBS
37159 LIBS="-lsasl $LIBS"
37160 cat >conftest.$ac_ext <<_ACEOF
37163 cat confdefs.h >>conftest.$ac_ext
37164 cat >>conftest.$ac_ext <<_ACEOF
37165 /* end confdefs.h. */
37167 /* Override any gcc2 internal prototype to avoid an error. */
37171 /* We use char because int might match the return type of a gcc2
37172 builtin and then its argument prototype would still apply. */
37173 char sasl_client_init ();
37177 sasl_client_init ();
37182 rm -f conftest.$ac_objext conftest$ac_exeext
37183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37184 (eval $ac_link) 2>conftest.er1
37186 grep -v '^ *+' conftest.er1 >conftest.err
37188 cat conftest.err >&5
37189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); } &&
37191 { ac_try='test -z "$ac_c_werror_flag"
37192 || test ! -s conftest.err'
37193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37194 (eval $ac_try) 2>&5
37196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197 (exit $ac_status); }; } &&
37198 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37204 ac_cv_lib_sasl_sasl_client_init=yes
37206 echo "$as_me: failed program was:" >&5
37207 sed 's/^/| /' conftest.$ac_ext >&5
37209 ac_cv_lib_sasl_sasl_client_init=no
37211 rm -f conftest.err conftest.$ac_objext \
37212 conftest$ac_exeext conftest.$ac_ext
37213 LIBS=$ac_check_lib_save_LIBS
37215 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37216 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37217 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37218 ol_link_sasl="-lsasl"
37225 if test $ol_link_sasl = no ; then
37226 if test $ol_with_cyrus_sasl != auto ; then
37227 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37228 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37229 { (exit 1); exit 1; }; }
37231 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37232 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37233 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37234 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37235 if test $ol_link_tls = no ; then
37236 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37237 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37241 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37242 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37243 if test "${ol_cv_sasl_compat+set}" = set; then
37244 echo $ECHO_N "(cached) $ECHO_C" >&6
37247 cat >conftest.$ac_ext <<_ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h. */
37254 #ifdef HAVE_SASL_SASL_H
37255 #include <sasl/sasl.h>
37260 /* Require 2.1.15+ */
37261 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37262 char *__sasl_compat = "2.2+ or better okay (we guess)";
37263 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37264 && SASL_VERSION_STEP >=15
37265 char *__sasl_compat = "2.1.15+ or better okay";
37269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37270 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37271 ol_cv_sasl_compat=yes
37273 ol_cv_sasl_compat=no
37278 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37279 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37281 if test $ol_cv_sasl_compat = no ; then
37283 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37284 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37285 { (exit 1); exit 1; }; }
37289 cat >>confdefs.h <<\_ACEOF
37290 #define HAVE_CYRUS_SASL 1
37293 SASL_LIBS="$ol_link_sasl"
37294 if test $ol_enable_spasswd != no ; then
37295 ol_link_spasswd=yes
37298 ac_save_LIBS="$LIBS"
37299 LIBS="$LIBS $ol_link_sasl"
37300 echo "$as_me:$LINENO: checking for sasl_version" >&5
37301 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37302 if test "${ac_cv_func_sasl_version+set}" = set; then
37303 echo $ECHO_N "(cached) $ECHO_C" >&6
37305 cat >conftest.$ac_ext <<_ACEOF
37308 cat confdefs.h >>conftest.$ac_ext
37309 cat >>conftest.$ac_ext <<_ACEOF
37310 /* end confdefs.h. */
37311 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37313 #define sasl_version innocuous_sasl_version
37315 /* System header to define __stub macros and hopefully few prototypes,
37316 which can conflict with char sasl_version (); below.
37317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37318 <limits.h> exists even on freestanding compilers. */
37321 # include <limits.h>
37323 # include <assert.h>
37326 #undef sasl_version
37328 /* Override any gcc2 internal prototype to avoid an error. */
37333 /* We use char because int might match the return type of a gcc2
37334 builtin and then its argument prototype would still apply. */
37335 char sasl_version ();
37336 /* The GNU C library defines this for functions which it implements
37337 to always fail with ENOSYS. Some functions are actually named
37338 something starting with __ and the normal name is an alias. */
37339 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37342 char (*f) () = sasl_version;
37351 return f != sasl_version;
37356 rm -f conftest.$ac_objext conftest$ac_exeext
37357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37358 (eval $ac_link) 2>conftest.er1
37360 grep -v '^ *+' conftest.er1 >conftest.err
37362 cat conftest.err >&5
37363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364 (exit $ac_status); } &&
37365 { ac_try='test -z "$ac_c_werror_flag"
37366 || test ! -s conftest.err'
37367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37368 (eval $ac_try) 2>&5
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); }; } &&
37372 { ac_try='test -s conftest$ac_exeext'
37373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37374 (eval $ac_try) 2>&5
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); }; }; then
37378 ac_cv_func_sasl_version=yes
37380 echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37383 ac_cv_func_sasl_version=no
37385 rm -f conftest.err conftest.$ac_objext \
37386 conftest$ac_exeext conftest.$ac_ext
37388 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37389 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37390 if test $ac_cv_func_sasl_version = yes; then
37392 cat >>confdefs.h <<\_ACEOF
37393 #define HAVE_SASL_VERSION 1
37398 LIBS="$ac_save_LIBS"
37404 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37405 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37406 if test $ol_link_tls = no ; then
37407 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37408 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37412 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37414 if test -r /dev/urandom ; then
37415 dev="/dev/urandom";
37416 elif test -r /idev/urandom ; then
37417 dev="/idev/urandom";
37418 elif test -r /dev/srandom ; then
37419 dev="/dev/srandom";
37420 elif test -r /dev/random ; then
37422 elif test -r /idev/random ; then
37423 dev="/idev/random";
37426 if test $dev != no ; then
37428 cat >>confdefs.h <<_ACEOF
37429 #define URANDOM_DEVICE "$dev"
37436 if test $ol_with_fetch != no ; then
37438 LIBS="-lfetch -lcom_err $LIBS"
37439 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37440 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37441 if test "${ol_cv_lib_fetch+set}" = set; then
37442 echo $ECHO_N "(cached) $ECHO_C" >&6
37445 cat >conftest.$ac_ext <<_ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h. */
37452 #include <sys/param.h>
37458 struct url *u = fetchParseURL("file:///");
37463 rm -f conftest.$ac_objext conftest$ac_exeext
37464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37465 (eval $ac_link) 2>conftest.er1
37467 grep -v '^ *+' conftest.er1 >conftest.err
37469 cat conftest.err >&5
37470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471 (exit $ac_status); } &&
37472 { ac_try='test -z "$ac_c_werror_flag"
37473 || test ! -s conftest.err'
37474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37475 (eval $ac_try) 2>&5
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); }; } &&
37479 { ac_try='test -s conftest$ac_exeext'
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; }; then
37485 ol_cv_lib_fetch=yes
37487 echo "$as_me: failed program was:" >&5
37488 sed 's/^/| /' conftest.$ac_ext >&5
37492 rm -f conftest.err conftest.$ac_objext \
37493 conftest$ac_exeext conftest.$ac_ext
37495 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37496 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37498 if test $ol_cv_lib_fetch != no ; then
37499 ol_link_fetch="-lfetch -lcom_err"
37501 cat >>confdefs.h <<\_ACEOF
37502 #define HAVE_FETCH 1
37508 if test $ol_cv_lib_fetch != no ; then
37509 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37510 ol_link_fetch=freebsd
37512 elif test $ol_with_fetch != auto ; then
37513 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37514 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37515 { (exit 1); exit 1; }; }
37519 if test $ol_enable_crypt != no ; then
37521 LIBS="$TLS_LIBS $LIBS"
37523 echo "$as_me:$LINENO: checking for crypt" >&5
37524 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37525 if test "${ac_cv_func_crypt+set}" = set; then
37526 echo $ECHO_N "(cached) $ECHO_C" >&6
37528 cat >conftest.$ac_ext <<_ACEOF
37531 cat confdefs.h >>conftest.$ac_ext
37532 cat >>conftest.$ac_ext <<_ACEOF
37533 /* end confdefs.h. */
37534 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37536 #define crypt innocuous_crypt
37538 /* System header to define __stub macros and hopefully few prototypes,
37539 which can conflict with char crypt (); below.
37540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37541 <limits.h> exists even on freestanding compilers. */
37544 # include <limits.h>
37546 # include <assert.h>
37551 /* Override any gcc2 internal prototype to avoid an error. */
37556 /* We use char because int might match the return type of a gcc2
37557 builtin and then its argument prototype would still apply. */
37559 /* The GNU C library defines this for functions which it implements
37560 to always fail with ENOSYS. Some functions are actually named
37561 something starting with __ and the normal name is an alias. */
37562 #if defined (__stub_crypt) || defined (__stub___crypt)
37565 char (*f) () = crypt;
37579 rm -f conftest.$ac_objext conftest$ac_exeext
37580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37581 (eval $ac_link) 2>conftest.er1
37583 grep -v '^ *+' conftest.er1 >conftest.err
37585 cat conftest.err >&5
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); } &&
37588 { ac_try='test -z "$ac_c_werror_flag"
37589 || test ! -s conftest.err'
37590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37591 (eval $ac_try) 2>&5
37593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594 (exit $ac_status); }; } &&
37595 { ac_try='test -s conftest$ac_exeext'
37596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37597 (eval $ac_try) 2>&5
37599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600 (exit $ac_status); }; }; then
37601 ac_cv_func_crypt=yes
37603 echo "$as_me: failed program was:" >&5
37604 sed 's/^/| /' conftest.$ac_ext >&5
37606 ac_cv_func_crypt=no
37608 rm -f conftest.err conftest.$ac_objext \
37609 conftest$ac_exeext conftest.$ac_ext
37611 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37612 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37613 if test $ac_cv_func_crypt = yes; then
37618 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37619 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37620 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37621 echo $ECHO_N "(cached) $ECHO_C" >&6
37623 ac_check_lib_save_LIBS=$LIBS
37624 LIBS="-lcrypt $LIBS"
37625 cat >conftest.$ac_ext <<_ACEOF
37628 cat confdefs.h >>conftest.$ac_ext
37629 cat >>conftest.$ac_ext <<_ACEOF
37630 /* end confdefs.h. */
37632 /* Override any gcc2 internal prototype to avoid an error. */
37636 /* We use char because int might match the return type of a gcc2
37637 builtin and then its argument prototype would still apply. */
37647 rm -f conftest.$ac_objext conftest$ac_exeext
37648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37649 (eval $ac_link) 2>conftest.er1
37651 grep -v '^ *+' conftest.er1 >conftest.err
37653 cat conftest.err >&5
37654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655 (exit $ac_status); } &&
37656 { ac_try='test -z "$ac_c_werror_flag"
37657 || test ! -s conftest.err'
37658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659 (eval $ac_try) 2>&5
37661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662 (exit $ac_status); }; } &&
37663 { ac_try='test -s conftest$ac_exeext'
37664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665 (eval $ac_try) 2>&5
37667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668 (exit $ac_status); }; }; then
37669 ac_cv_lib_crypt_crypt=yes
37671 echo "$as_me: failed program was:" >&5
37672 sed 's/^/| /' conftest.$ac_ext >&5
37674 ac_cv_lib_crypt_crypt=no
37676 rm -f conftest.err conftest.$ac_objext \
37677 conftest$ac_exeext conftest.$ac_ext
37678 LIBS=$ac_check_lib_save_LIBS
37680 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37681 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37682 if test $ac_cv_lib_crypt_crypt = yes; then
37683 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37694 if test $have_crypt = yes ; then
37696 cat >>confdefs.h <<\_ACEOF
37697 #define HAVE_CRYPT 1
37701 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37702 echo "$as_me: WARNING: could not find crypt" >&2;}
37703 if test $ol_enable_crypt = yes ; then
37704 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37705 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37706 { (exit 1); exit 1; }; }
37709 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37710 echo "$as_me: WARNING: disabling crypt support" >&2;}
37715 if test $ol_enable_proctitle != no ; then
37716 echo "$as_me:$LINENO: checking for setproctitle" >&5
37717 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37718 if test "${ac_cv_func_setproctitle+set}" = set; then
37719 echo $ECHO_N "(cached) $ECHO_C" >&6
37721 cat >conftest.$ac_ext <<_ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h. */
37727 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37729 #define setproctitle innocuous_setproctitle
37731 /* System header to define __stub macros and hopefully few prototypes,
37732 which can conflict with char setproctitle (); below.
37733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37734 <limits.h> exists even on freestanding compilers. */
37737 # include <limits.h>
37739 # include <assert.h>
37742 #undef setproctitle
37744 /* Override any gcc2 internal prototype to avoid an error. */
37749 /* We use char because int might match the return type of a gcc2
37750 builtin and then its argument prototype would still apply. */
37751 char setproctitle ();
37752 /* The GNU C library defines this for functions which it implements
37753 to always fail with ENOSYS. Some functions are actually named
37754 something starting with __ and the normal name is an alias. */
37755 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37758 char (*f) () = setproctitle;
37767 return f != setproctitle;
37772 rm -f conftest.$ac_objext conftest$ac_exeext
37773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37774 (eval $ac_link) 2>conftest.er1
37776 grep -v '^ *+' conftest.er1 >conftest.err
37778 cat conftest.err >&5
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); } &&
37781 { ac_try='test -z "$ac_c_werror_flag"
37782 || test ! -s conftest.err'
37783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37784 (eval $ac_try) 2>&5
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); }; } &&
37788 { ac_try='test -s conftest$ac_exeext'
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; }; then
37794 ac_cv_func_setproctitle=yes
37796 echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37799 ac_cv_func_setproctitle=no
37801 rm -f conftest.err conftest.$ac_objext \
37802 conftest$ac_exeext conftest.$ac_ext
37804 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37805 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37806 if test $ac_cv_func_setproctitle = yes; then
37807 have_setproctitle=yes
37810 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37811 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37812 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37813 echo $ECHO_N "(cached) $ECHO_C" >&6
37815 ac_check_lib_save_LIBS=$LIBS
37816 LIBS="-lutil $LIBS"
37817 cat >conftest.$ac_ext <<_ACEOF
37820 cat confdefs.h >>conftest.$ac_ext
37821 cat >>conftest.$ac_ext <<_ACEOF
37822 /* end confdefs.h. */
37824 /* Override any gcc2 internal prototype to avoid an error. */
37828 /* We use char because int might match the return type of a gcc2
37829 builtin and then its argument prototype would still apply. */
37830 char setproctitle ();
37839 rm -f conftest.$ac_objext conftest$ac_exeext
37840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37841 (eval $ac_link) 2>conftest.er1
37843 grep -v '^ *+' conftest.er1 >conftest.err
37845 cat conftest.err >&5
37846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847 (exit $ac_status); } &&
37848 { ac_try='test -z "$ac_c_werror_flag"
37849 || test ! -s conftest.err'
37850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851 (eval $ac_try) 2>&5
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); }; } &&
37855 { ac_try='test -s conftest$ac_exeext'
37856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857 (eval $ac_try) 2>&5
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); }; }; then
37861 ac_cv_lib_util_setproctitle=yes
37863 echo "$as_me: failed program was:" >&5
37864 sed 's/^/| /' conftest.$ac_ext >&5
37866 ac_cv_lib_util_setproctitle=no
37868 rm -f conftest.err conftest.$ac_objext \
37869 conftest$ac_exeext conftest.$ac_ext
37870 LIBS=$ac_check_lib_save_LIBS
37872 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37873 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37874 if test $ac_cv_lib_util_setproctitle = yes; then
37875 have_setproctitle=yes
37876 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37878 have_setproctitle=no
37880 "setproctitle.$ac_objext" | \
37881 *" setproctitle.$ac_objext" | \
37882 "setproctitle.$ac_objext "* | \
37883 *" setproctitle.$ac_objext "* ) ;;
37884 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37887 LIBSRCS="$LIBSRCS setproctitle.c"
37893 if test $have_setproctitle = yes ; then
37895 cat >>confdefs.h <<\_ACEOF
37896 #define HAVE_SETPROCTITLE 1
37902 if test $ol_enable_slp != no ; then
37904 for ac_header in slp.h
37906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37908 echo "$as_me:$LINENO: checking for $ac_header" >&5
37909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37911 echo $ECHO_N "(cached) $ECHO_C" >&6
37913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37916 # Is the header compilable?
37917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37919 cat >conftest.$ac_ext <<_ACEOF
37922 cat confdefs.h >>conftest.$ac_ext
37923 cat >>conftest.$ac_ext <<_ACEOF
37924 /* end confdefs.h. */
37925 $ac_includes_default
37926 #include <$ac_header>
37928 rm -f conftest.$ac_objext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37930 (eval $ac_compile) 2>conftest.er1
37932 grep -v '^ *+' conftest.er1 >conftest.err
37934 cat conftest.err >&5
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } &&
37937 { ac_try='test -z "$ac_c_werror_flag"
37938 || test ! -s conftest.err'
37939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940 (eval $ac_try) 2>&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); }; } &&
37944 { ac_try='test -s conftest.$ac_objext'
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; }; then
37950 ac_header_compiler=yes
37952 echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37955 ac_header_compiler=no
37957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37959 echo "${ECHO_T}$ac_header_compiler" >&6
37961 # Is the header present?
37962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37964 cat >conftest.$ac_ext <<_ACEOF
37967 cat confdefs.h >>conftest.$ac_ext
37968 cat >>conftest.$ac_ext <<_ACEOF
37969 /* end confdefs.h. */
37970 #include <$ac_header>
37972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37975 grep -v '^ *+' conftest.er1 >conftest.err
37977 cat conftest.err >&5
37978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); } >/dev/null; then
37980 if test -s conftest.err; then
37981 ac_cpp_err=$ac_c_preproc_warn_flag
37982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37989 if test -z "$ac_cpp_err"; then
37990 ac_header_preproc=yes
37992 echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37995 ac_header_preproc=no
37997 rm -f conftest.err conftest.$ac_ext
37998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37999 echo "${ECHO_T}$ac_header_preproc" >&6
38001 # So? What about this header?
38002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38008 ac_header_preproc=yes
38011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38025 ## ------------------------------------------ ##
38026 ## Report this to the AC_PACKAGE_NAME lists. ##
38027 ## ------------------------------------------ ##
38030 sed "s/^/$as_me: WARNING: /" >&2
38033 echo "$as_me:$LINENO: checking for $ac_header" >&5
38034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38036 echo $ECHO_N "(cached) $ECHO_C" >&6
38038 eval "$as_ac_Header=\$ac_header_preproc"
38040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38045 cat >>confdefs.h <<_ACEOF
38046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38054 if test $ac_cv_header_slp_h = yes ; then
38055 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38056 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38057 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38058 echo $ECHO_N "(cached) $ECHO_C" >&6
38060 ac_check_lib_save_LIBS=$LIBS
38062 cat >conftest.$ac_ext <<_ACEOF
38065 cat confdefs.h >>conftest.$ac_ext
38066 cat >>conftest.$ac_ext <<_ACEOF
38067 /* end confdefs.h. */
38069 /* Override any gcc2 internal prototype to avoid an error. */
38073 /* We use char because int might match the return type of a gcc2
38074 builtin and then its argument prototype would still apply. */
38084 rm -f conftest.$ac_objext conftest$ac_exeext
38085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38086 (eval $ac_link) 2>conftest.er1
38088 grep -v '^ *+' conftest.er1 >conftest.err
38090 cat conftest.err >&5
38091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092 (exit $ac_status); } &&
38093 { ac_try='test -z "$ac_c_werror_flag"
38094 || test ! -s conftest.err'
38095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38096 (eval $ac_try) 2>&5
38098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 (exit $ac_status); }; } &&
38100 { ac_try='test -s conftest$ac_exeext'
38101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38102 (eval $ac_try) 2>&5
38104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105 (exit $ac_status); }; }; then
38106 ac_cv_lib_slp_SLPOpen=yes
38108 echo "$as_me: failed program was:" >&5
38109 sed 's/^/| /' conftest.$ac_ext >&5
38111 ac_cv_lib_slp_SLPOpen=no
38113 rm -f conftest.err conftest.$ac_objext \
38114 conftest$ac_exeext conftest.$ac_ext
38115 LIBS=$ac_check_lib_save_LIBS
38117 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38118 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38119 if test $ac_cv_lib_slp_SLPOpen = yes; then
38125 if test $have_slp = yes ; then
38127 cat >>confdefs.h <<\_ACEOF
38131 SLAPD_SLP_LIBS=-lslp
38134 elif test $ol_enable_slp = yes ; then
38135 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38136 echo "$as_me: error: SLP not found" >&2;}
38137 { (exit 1); exit 1; }; }
38141 if test "$ol_with_multiple_precision" != "no" ; then
38147 for ac_header in openssl/bn.h bn.h
38149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38151 echo "$as_me:$LINENO: checking for $ac_header" >&5
38152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38154 echo $ECHO_N "(cached) $ECHO_C" >&6
38156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38159 # Is the header compilable?
38160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38162 cat >conftest.$ac_ext <<_ACEOF
38165 cat confdefs.h >>conftest.$ac_ext
38166 cat >>conftest.$ac_ext <<_ACEOF
38167 /* end confdefs.h. */
38168 $ac_includes_default
38169 #include <$ac_header>
38171 rm -f conftest.$ac_objext
38172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38173 (eval $ac_compile) 2>conftest.er1
38175 grep -v '^ *+' conftest.er1 >conftest.err
38177 cat conftest.err >&5
38178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179 (exit $ac_status); } &&
38180 { ac_try='test -z "$ac_c_werror_flag"
38181 || test ! -s conftest.err'
38182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38183 (eval $ac_try) 2>&5
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); }; } &&
38187 { ac_try='test -s conftest.$ac_objext'
38188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189 (eval $ac_try) 2>&5
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); }; }; then
38193 ac_header_compiler=yes
38195 echo "$as_me: failed program was:" >&5
38196 sed 's/^/| /' conftest.$ac_ext >&5
38198 ac_header_compiler=no
38200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38202 echo "${ECHO_T}$ac_header_compiler" >&6
38204 # Is the header present?
38205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38207 cat >conftest.$ac_ext <<_ACEOF
38210 cat confdefs.h >>conftest.$ac_ext
38211 cat >>conftest.$ac_ext <<_ACEOF
38212 /* end confdefs.h. */
38213 #include <$ac_header>
38215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38218 grep -v '^ *+' conftest.er1 >conftest.err
38220 cat conftest.err >&5
38221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222 (exit $ac_status); } >/dev/null; then
38223 if test -s conftest.err; then
38224 ac_cpp_err=$ac_c_preproc_warn_flag
38225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38232 if test -z "$ac_cpp_err"; then
38233 ac_header_preproc=yes
38235 echo "$as_me: failed program was:" >&5
38236 sed 's/^/| /' conftest.$ac_ext >&5
38238 ac_header_preproc=no
38240 rm -f conftest.err conftest.$ac_ext
38241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38242 echo "${ECHO_T}$ac_header_preproc" >&6
38244 # So? What about this header?
38245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38251 ac_header_preproc=yes
38254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38268 ## ------------------------------------------ ##
38269 ## Report this to the AC_PACKAGE_NAME lists. ##
38270 ## ------------------------------------------ ##
38273 sed "s/^/$as_me: WARNING: /" >&2
38276 echo "$as_me:$LINENO: checking for $ac_header" >&5
38277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38279 echo $ECHO_N "(cached) $ECHO_C" >&6
38281 eval "$as_ac_Header=\$ac_header_preproc"
38283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38288 cat >>confdefs.h <<_ACEOF
38289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38298 for ac_header in openssl/crypto.h crypto.h
38300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38302 echo "$as_me:$LINENO: checking for $ac_header" >&5
38303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38305 echo $ECHO_N "(cached) $ECHO_C" >&6
38307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38310 # Is the header compilable?
38311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38313 cat >conftest.$ac_ext <<_ACEOF
38316 cat confdefs.h >>conftest.$ac_ext
38317 cat >>conftest.$ac_ext <<_ACEOF
38318 /* end confdefs.h. */
38319 $ac_includes_default
38320 #include <$ac_header>
38322 rm -f conftest.$ac_objext
38323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38324 (eval $ac_compile) 2>conftest.er1
38326 grep -v '^ *+' conftest.er1 >conftest.err
38328 cat conftest.err >&5
38329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330 (exit $ac_status); } &&
38331 { ac_try='test -z "$ac_c_werror_flag"
38332 || test ! -s conftest.err'
38333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38334 (eval $ac_try) 2>&5
38336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337 (exit $ac_status); }; } &&
38338 { ac_try='test -s conftest.$ac_objext'
38339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38340 (eval $ac_try) 2>&5
38342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343 (exit $ac_status); }; }; then
38344 ac_header_compiler=yes
38346 echo "$as_me: failed program was:" >&5
38347 sed 's/^/| /' conftest.$ac_ext >&5
38349 ac_header_compiler=no
38351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38353 echo "${ECHO_T}$ac_header_compiler" >&6
38355 # Is the header present?
38356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38358 cat >conftest.$ac_ext <<_ACEOF
38361 cat confdefs.h >>conftest.$ac_ext
38362 cat >>conftest.$ac_ext <<_ACEOF
38363 /* end confdefs.h. */
38364 #include <$ac_header>
38366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38369 grep -v '^ *+' conftest.er1 >conftest.err
38371 cat conftest.err >&5
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); } >/dev/null; then
38374 if test -s conftest.err; then
38375 ac_cpp_err=$ac_c_preproc_warn_flag
38376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38383 if test -z "$ac_cpp_err"; then
38384 ac_header_preproc=yes
38386 echo "$as_me: failed program was:" >&5
38387 sed 's/^/| /' conftest.$ac_ext >&5
38389 ac_header_preproc=no
38391 rm -f conftest.err conftest.$ac_ext
38392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38393 echo "${ECHO_T}$ac_header_preproc" >&6
38395 # So? What about this header?
38396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38402 ac_header_preproc=yes
38405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38419 ## ------------------------------------------ ##
38420 ## Report this to the AC_PACKAGE_NAME lists. ##
38421 ## ------------------------------------------ ##
38424 sed "s/^/$as_me: WARNING: /" >&2
38427 echo "$as_me:$LINENO: checking for $ac_header" >&5
38428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38430 echo $ECHO_N "(cached) $ECHO_C" >&6
38432 eval "$as_ac_Header=\$ac_header_preproc"
38434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38439 cat >>confdefs.h <<_ACEOF
38440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38448 for ac_header in gmp.h
38450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38452 echo "$as_me:$LINENO: checking for $ac_header" >&5
38453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38455 echo $ECHO_N "(cached) $ECHO_C" >&6
38457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38460 # Is the header compilable?
38461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38463 cat >conftest.$ac_ext <<_ACEOF
38466 cat confdefs.h >>conftest.$ac_ext
38467 cat >>conftest.$ac_ext <<_ACEOF
38468 /* end confdefs.h. */
38469 $ac_includes_default
38470 #include <$ac_header>
38472 rm -f conftest.$ac_objext
38473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38474 (eval $ac_compile) 2>conftest.er1
38476 grep -v '^ *+' conftest.er1 >conftest.err
38478 cat conftest.err >&5
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); } &&
38481 { ac_try='test -z "$ac_c_werror_flag"
38482 || test ! -s conftest.err'
38483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484 (eval $ac_try) 2>&5
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); }; } &&
38488 { ac_try='test -s conftest.$ac_objext'
38489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490 (eval $ac_try) 2>&5
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); }; }; then
38494 ac_header_compiler=yes
38496 echo "$as_me: failed program was:" >&5
38497 sed 's/^/| /' conftest.$ac_ext >&5
38499 ac_header_compiler=no
38501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38503 echo "${ECHO_T}$ac_header_compiler" >&6
38505 # Is the header present?
38506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38508 cat >conftest.$ac_ext <<_ACEOF
38511 cat confdefs.h >>conftest.$ac_ext
38512 cat >>conftest.$ac_ext <<_ACEOF
38513 /* end confdefs.h. */
38514 #include <$ac_header>
38516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38519 grep -v '^ *+' conftest.er1 >conftest.err
38521 cat conftest.err >&5
38522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38523 (exit $ac_status); } >/dev/null; then
38524 if test -s conftest.err; then
38525 ac_cpp_err=$ac_c_preproc_warn_flag
38526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38533 if test -z "$ac_cpp_err"; then
38534 ac_header_preproc=yes
38536 echo "$as_me: failed program was:" >&5
38537 sed 's/^/| /' conftest.$ac_ext >&5
38539 ac_header_preproc=no
38541 rm -f conftest.err conftest.$ac_ext
38542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38543 echo "${ECHO_T}$ac_header_preproc" >&6
38545 # So? What about this header?
38546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38552 ac_header_preproc=yes
38555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38569 ## ------------------------------------------ ##
38570 ## Report this to the AC_PACKAGE_NAME lists. ##
38571 ## ------------------------------------------ ##
38574 sed "s/^/$as_me: WARNING: /" >&2
38577 echo "$as_me:$LINENO: checking for $ac_header" >&5
38578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38580 echo $ECHO_N "(cached) $ECHO_C" >&6
38582 eval "$as_ac_Header=\$ac_header_preproc"
38584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38589 cat >>confdefs.h <<_ACEOF
38590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38598 if test "$ol_with_tls" = "found" ; then
38600 ol_have_crypto_h=no
38602 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38603 test "$ac_cv_header_bn_h" = "yes" ; then
38607 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38608 test "$ac_cv_header_crypto_h" = "yes" ; then
38609 ol_have_crypto_h=yes
38612 if test "$ol_have_bn_h" = "yes" &&
38613 test "$ol_have_crypto_h" = "yes" ; then
38618 if test $ac_cv_header_gmp_h = yes ; then
38619 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38620 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38621 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38622 echo $ECHO_N "(cached) $ECHO_C" >&6
38624 ac_check_lib_save_LIBS=$LIBS
38626 cat >conftest.$ac_ext <<_ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h. */
38633 /* Override any gcc2 internal prototype to avoid an error. */
38637 /* We use char because int might match the return type of a gcc2
38638 builtin and then its argument prototype would still apply. */
38639 char __gmpz_add_ui ();
38648 rm -f conftest.$ac_objext conftest$ac_exeext
38649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38650 (eval $ac_link) 2>conftest.er1
38652 grep -v '^ *+' conftest.er1 >conftest.err
38654 cat conftest.err >&5
38655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656 (exit $ac_status); } &&
38657 { ac_try='test -z "$ac_c_werror_flag"
38658 || test ! -s conftest.err'
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; } &&
38664 { ac_try='test -s conftest$ac_exeext'
38665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666 (eval $ac_try) 2>&5
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); }; }; then
38670 ac_cv_lib_gmp___gmpz_add_ui=yes
38672 echo "$as_me: failed program was:" >&5
38673 sed 's/^/| /' conftest.$ac_ext >&5
38675 ac_cv_lib_gmp___gmpz_add_ui=no
38677 rm -f conftest.err conftest.$ac_objext \
38678 conftest$ac_exeext conftest.$ac_ext
38679 LIBS=$ac_check_lib_save_LIBS
38681 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38682 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38683 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38689 if test $have_gmp = yes ; then
38694 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38695 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38697 ol_mp_support="none"
38698 case "$ol_with_multiple_precision" in
38700 if test "$ol_have_bignum" = "yes" ; then
38701 ol_mp_support="bignum"
38703 if test "$ol_have_gmp" = "yes" ; then
38704 ol_mp_support="gmp"
38709 if test "$ol_have_bignum" != "yes" ; then
38710 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38711 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38712 { (exit 1); exit 1; }; }
38714 ol_mp_support="bignum"
38717 if test "$ol_have_gmp" != "yes" ; then
38718 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38719 echo "$as_me: error: GMP not available" >&2;}
38720 { (exit 1); exit 1; }; }
38722 ol_mp_support="gmp"
38725 if test "$ol_have_bignum" = "yes" ; then
38726 ol_mp_support="bignum"
38727 elif test "$ol_have_gmp" = "yes" ; then
38728 ol_mp_support="gmp"
38730 { { echo "$as_me:$LINENO: error: not available" >&5
38731 echo "$as_me: error: not available" >&2;}
38732 { (exit 1); exit 1; }; }
38737 case "$ol_mp_support" in
38740 cat >>confdefs.h <<\_ACEOF
38741 #define HAVE_BIGNUM 1
38747 cat >>confdefs.h <<\_ACEOF
38751 SLAPD_GMP_LIBS=-lgmp
38757 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38758 echo "${ECHO_T}$ol_mp_support" >&6
38762 echo "$as_me:$LINENO: checking for mode_t" >&5
38763 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38764 if test "${ac_cv_type_mode_t+set}" = set; then
38765 echo $ECHO_N "(cached) $ECHO_C" >&6
38767 cat >conftest.$ac_ext <<_ACEOF
38770 cat confdefs.h >>conftest.$ac_ext
38771 cat >>conftest.$ac_ext <<_ACEOF
38772 /* end confdefs.h. */
38773 $ac_includes_default
38779 if (sizeof (mode_t))
38785 rm -f conftest.$ac_objext
38786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38787 (eval $ac_compile) 2>conftest.er1
38789 grep -v '^ *+' conftest.er1 >conftest.err
38791 cat conftest.err >&5
38792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793 (exit $ac_status); } &&
38794 { ac_try='test -z "$ac_c_werror_flag"
38795 || test ! -s conftest.err'
38796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38797 (eval $ac_try) 2>&5
38799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); }; } &&
38801 { ac_try='test -s conftest.$ac_objext'
38802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38803 (eval $ac_try) 2>&5
38805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806 (exit $ac_status); }; }; then
38807 ac_cv_type_mode_t=yes
38809 echo "$as_me: failed program was:" >&5
38810 sed 's/^/| /' conftest.$ac_ext >&5
38812 ac_cv_type_mode_t=no
38814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38816 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38817 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38818 if test $ac_cv_type_mode_t = yes; then
38822 cat >>confdefs.h <<_ACEOF
38828 echo "$as_me:$LINENO: checking for off_t" >&5
38829 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38830 if test "${ac_cv_type_off_t+set}" = set; then
38831 echo $ECHO_N "(cached) $ECHO_C" >&6
38833 cat >conftest.$ac_ext <<_ACEOF
38836 cat confdefs.h >>conftest.$ac_ext
38837 cat >>conftest.$ac_ext <<_ACEOF
38838 /* end confdefs.h. */
38839 $ac_includes_default
38845 if (sizeof (off_t))
38851 rm -f conftest.$ac_objext
38852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38853 (eval $ac_compile) 2>conftest.er1
38855 grep -v '^ *+' conftest.er1 >conftest.err
38857 cat conftest.err >&5
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); } &&
38860 { ac_try='test -z "$ac_c_werror_flag"
38861 || test ! -s conftest.err'
38862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38863 (eval $ac_try) 2>&5
38865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866 (exit $ac_status); }; } &&
38867 { ac_try='test -s conftest.$ac_objext'
38868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38869 (eval $ac_try) 2>&5
38871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38872 (exit $ac_status); }; }; then
38873 ac_cv_type_off_t=yes
38875 echo "$as_me: failed program was:" >&5
38876 sed 's/^/| /' conftest.$ac_ext >&5
38878 ac_cv_type_off_t=no
38880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38882 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38883 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38884 if test $ac_cv_type_off_t = yes; then
38888 cat >>confdefs.h <<_ACEOF
38894 echo "$as_me:$LINENO: checking for pid_t" >&5
38895 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38896 if test "${ac_cv_type_pid_t+set}" = set; then
38897 echo $ECHO_N "(cached) $ECHO_C" >&6
38899 cat >conftest.$ac_ext <<_ACEOF
38902 cat confdefs.h >>conftest.$ac_ext
38903 cat >>conftest.$ac_ext <<_ACEOF
38904 /* end confdefs.h. */
38905 $ac_includes_default
38911 if (sizeof (pid_t))
38917 rm -f conftest.$ac_objext
38918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38919 (eval $ac_compile) 2>conftest.er1
38921 grep -v '^ *+' conftest.er1 >conftest.err
38923 cat conftest.err >&5
38924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925 (exit $ac_status); } &&
38926 { ac_try='test -z "$ac_c_werror_flag"
38927 || test ! -s conftest.err'
38928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929 (eval $ac_try) 2>&5
38931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932 (exit $ac_status); }; } &&
38933 { ac_try='test -s conftest.$ac_objext'
38934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935 (eval $ac_try) 2>&5
38937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938 (exit $ac_status); }; }; then
38939 ac_cv_type_pid_t=yes
38941 echo "$as_me: failed program was:" >&5
38942 sed 's/^/| /' conftest.$ac_ext >&5
38944 ac_cv_type_pid_t=no
38946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38948 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38949 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38950 if test $ac_cv_type_pid_t = yes; then
38954 cat >>confdefs.h <<_ACEOF
38960 echo "$as_me:$LINENO: checking for ssize_t" >&5
38961 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38962 if test "${ac_cv_type_ssize_t+set}" = set; then
38963 echo $ECHO_N "(cached) $ECHO_C" >&6
38965 cat >conftest.$ac_ext <<_ACEOF
38968 cat confdefs.h >>conftest.$ac_ext
38969 cat >>conftest.$ac_ext <<_ACEOF
38970 /* end confdefs.h. */
38971 $ac_includes_default
38977 if (sizeof (ssize_t))
38983 rm -f conftest.$ac_objext
38984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38985 (eval $ac_compile) 2>conftest.er1
38987 grep -v '^ *+' conftest.er1 >conftest.err
38989 cat conftest.err >&5
38990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991 (exit $ac_status); } &&
38992 { ac_try='test -z "$ac_c_werror_flag"
38993 || test ! -s conftest.err'
38994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38995 (eval $ac_try) 2>&5
38997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998 (exit $ac_status); }; } &&
38999 { ac_try='test -s conftest.$ac_objext'
39000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39001 (eval $ac_try) 2>&5
39003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004 (exit $ac_status); }; }; then
39005 ac_cv_type_ssize_t=yes
39007 echo "$as_me: failed program was:" >&5
39008 sed 's/^/| /' conftest.$ac_ext >&5
39010 ac_cv_type_ssize_t=no
39012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39014 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39015 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39016 if test $ac_cv_type_ssize_t = yes; then
39020 cat >>confdefs.h <<_ACEOF
39021 #define ssize_t signed int
39026 echo "$as_me:$LINENO: checking for caddr_t" >&5
39027 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39028 if test "${ac_cv_type_caddr_t+set}" = set; then
39029 echo $ECHO_N "(cached) $ECHO_C" >&6
39031 cat >conftest.$ac_ext <<_ACEOF
39034 cat confdefs.h >>conftest.$ac_ext
39035 cat >>conftest.$ac_ext <<_ACEOF
39036 /* end confdefs.h. */
39037 $ac_includes_default
39043 if (sizeof (caddr_t))
39049 rm -f conftest.$ac_objext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39051 (eval $ac_compile) 2>conftest.er1
39053 grep -v '^ *+' conftest.er1 >conftest.err
39055 cat conftest.err >&5
39056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057 (exit $ac_status); } &&
39058 { ac_try='test -z "$ac_c_werror_flag"
39059 || test ! -s conftest.err'
39060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39061 (eval $ac_try) 2>&5
39063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064 (exit $ac_status); }; } &&
39065 { ac_try='test -s conftest.$ac_objext'
39066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39067 (eval $ac_try) 2>&5
39069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39070 (exit $ac_status); }; }; then
39071 ac_cv_type_caddr_t=yes
39073 echo "$as_me: failed program was:" >&5
39074 sed 's/^/| /' conftest.$ac_ext >&5
39076 ac_cv_type_caddr_t=no
39078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39080 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39081 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39082 if test $ac_cv_type_caddr_t = yes; then
39086 cat >>confdefs.h <<_ACEOF
39087 #define caddr_t char *
39092 echo "$as_me:$LINENO: checking for size_t" >&5
39093 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39094 if test "${ac_cv_type_size_t+set}" = set; then
39095 echo $ECHO_N "(cached) $ECHO_C" >&6
39097 cat >conftest.$ac_ext <<_ACEOF
39100 cat confdefs.h >>conftest.$ac_ext
39101 cat >>conftest.$ac_ext <<_ACEOF
39102 /* end confdefs.h. */
39103 $ac_includes_default
39109 if (sizeof (size_t))
39115 rm -f conftest.$ac_objext
39116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39117 (eval $ac_compile) 2>conftest.er1
39119 grep -v '^ *+' conftest.er1 >conftest.err
39121 cat conftest.err >&5
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); } &&
39124 { ac_try='test -z "$ac_c_werror_flag"
39125 || test ! -s conftest.err'
39126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127 (eval $ac_try) 2>&5
39129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); }; } &&
39131 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39137 ac_cv_type_size_t=yes
39139 echo "$as_me: failed program was:" >&5
39140 sed 's/^/| /' conftest.$ac_ext >&5
39142 ac_cv_type_size_t=no
39144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39146 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39147 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39148 if test $ac_cv_type_size_t = yes; then
39152 cat >>confdefs.h <<_ACEOF
39153 #define size_t unsigned
39159 echo "$as_me:$LINENO: checking for long long" >&5
39160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39161 if test "${ac_cv_type_long_long+set}" = set; then
39162 echo $ECHO_N "(cached) $ECHO_C" >&6
39164 cat >conftest.$ac_ext <<_ACEOF
39167 cat confdefs.h >>conftest.$ac_ext
39168 cat >>conftest.$ac_ext <<_ACEOF
39169 /* end confdefs.h. */
39170 $ac_includes_default
39174 if ((long long *) 0)
39176 if (sizeof (long long))
39182 rm -f conftest.$ac_objext
39183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39184 (eval $ac_compile) 2>conftest.er1
39186 grep -v '^ *+' conftest.er1 >conftest.err
39188 cat conftest.err >&5
39189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190 (exit $ac_status); } &&
39191 { ac_try='test -z "$ac_c_werror_flag"
39192 || test ! -s conftest.err'
39193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39194 (eval $ac_try) 2>&5
39196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39197 (exit $ac_status); }; } &&
39198 { ac_try='test -s conftest.$ac_objext'
39199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39200 (eval $ac_try) 2>&5
39202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203 (exit $ac_status); }; }; then
39204 ac_cv_type_long_long=yes
39206 echo "$as_me: failed program was:" >&5
39207 sed 's/^/| /' conftest.$ac_ext >&5
39209 ac_cv_type_long_long=no
39211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39215 if test $ac_cv_type_long_long = yes; then
39217 cat >>confdefs.h <<_ACEOF
39218 #define HAVE_LONG_LONG 1
39224 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39225 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39226 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39229 cat >conftest.$ac_ext <<_ACEOF
39232 cat confdefs.h >>conftest.$ac_ext
39233 cat >>conftest.$ac_ext <<_ACEOF
39234 /* end confdefs.h. */
39235 $ac_includes_default
39239 if ((ptrdiff_t *) 0)
39241 if (sizeof (ptrdiff_t))
39247 rm -f conftest.$ac_objext
39248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39249 (eval $ac_compile) 2>conftest.er1
39251 grep -v '^ *+' conftest.er1 >conftest.err
39253 cat conftest.err >&5
39254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255 (exit $ac_status); } &&
39256 { ac_try='test -z "$ac_c_werror_flag"
39257 || test ! -s conftest.err'
39258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39259 (eval $ac_try) 2>&5
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); }; } &&
39263 { ac_try='test -s conftest.$ac_objext'
39264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39265 (eval $ac_try) 2>&5
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); }; }; then
39269 ac_cv_type_ptrdiff_t=yes
39271 echo "$as_me: failed program was:" >&5
39272 sed 's/^/| /' conftest.$ac_ext >&5
39274 ac_cv_type_ptrdiff_t=no
39276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39278 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39279 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39280 if test $ac_cv_type_ptrdiff_t = yes; then
39282 cat >>confdefs.h <<_ACEOF
39283 #define HAVE_PTRDIFF_T 1
39290 echo "$as_me:$LINENO: checking for socklen_t" >&5
39291 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39292 if test "${ac_cv_type_socklen_t+set}" = set; then
39293 echo $ECHO_N "(cached) $ECHO_C" >&6
39295 cat >conftest.$ac_ext <<_ACEOF
39298 cat confdefs.h >>conftest.$ac_ext
39299 cat >>conftest.$ac_ext <<_ACEOF
39300 /* end confdefs.h. */
39301 $ac_includes_default
39302 #ifdef HAVE_SYS_SOCKET_H
39303 #include <sys/socket.h>
39310 if ((socklen_t *) 0)
39312 if (sizeof (socklen_t))
39318 rm -f conftest.$ac_objext
39319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39320 (eval $ac_compile) 2>conftest.er1
39322 grep -v '^ *+' conftest.er1 >conftest.err
39324 cat conftest.err >&5
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); } &&
39327 { ac_try='test -z "$ac_c_werror_flag"
39328 || test ! -s conftest.err'
39329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330 (eval $ac_try) 2>&5
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); }; } &&
39334 { ac_try='test -s conftest.$ac_objext'
39335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336 (eval $ac_try) 2>&5
39338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339 (exit $ac_status); }; }; then
39340 ac_cv_type_socklen_t=yes
39342 echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39345 ac_cv_type_socklen_t=no
39347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39349 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39350 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39351 if test $ac_cv_type_socklen_t = yes; then
39355 cat >>confdefs.h <<_ACEOF
39356 #define socklen_t int
39362 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39363 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39364 if test "${ac_cv_type_signal+set}" = set; then
39365 echo $ECHO_N "(cached) $ECHO_C" >&6
39367 cat >conftest.$ac_ext <<_ACEOF
39370 cat confdefs.h >>conftest.$ac_ext
39371 cat >>conftest.$ac_ext <<_ACEOF
39372 /* end confdefs.h. */
39373 #include <sys/types.h>
39374 #include <signal.h>
39379 extern "C" void (*signal (int, void (*)(int)))(int);
39381 void (*signal ()) ();
39392 rm -f conftest.$ac_objext
39393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39394 (eval $ac_compile) 2>conftest.er1
39396 grep -v '^ *+' conftest.er1 >conftest.err
39398 cat conftest.err >&5
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); } &&
39401 { ac_try='test -z "$ac_c_werror_flag"
39402 || test ! -s conftest.err'
39403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404 (eval $ac_try) 2>&5
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); }; } &&
39408 { ac_try='test -s conftest.$ac_objext'
39409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39410 (eval $ac_try) 2>&5
39412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413 (exit $ac_status); }; }; then
39414 ac_cv_type_signal=void
39416 echo "$as_me: failed program was:" >&5
39417 sed 's/^/| /' conftest.$ac_ext >&5
39419 ac_cv_type_signal=int
39421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39423 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39424 echo "${ECHO_T}$ac_cv_type_signal" >&6
39426 cat >>confdefs.h <<_ACEOF
39427 #define RETSIGTYPE $ac_cv_type_signal
39432 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39433 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39434 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39435 echo $ECHO_N "(cached) $ECHO_C" >&6
39437 cat >conftest.$ac_ext <<_ACEOF
39440 cat confdefs.h >>conftest.$ac_ext
39441 cat >>conftest.$ac_ext <<_ACEOF
39442 /* end confdefs.h. */
39443 $ac_includes_default
39444 #include <signal.h>
39450 if ((sig_atomic_t *) 0)
39452 if (sizeof (sig_atomic_t))
39458 rm -f conftest.$ac_objext
39459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39460 (eval $ac_compile) 2>conftest.er1
39462 grep -v '^ *+' conftest.er1 >conftest.err
39464 cat conftest.err >&5
39465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466 (exit $ac_status); } &&
39467 { ac_try='test -z "$ac_c_werror_flag"
39468 || test ! -s conftest.err'
39469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39470 (eval $ac_try) 2>&5
39472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39473 (exit $ac_status); }; } &&
39474 { ac_try='test -s conftest.$ac_objext'
39475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39476 (eval $ac_try) 2>&5
39478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39479 (exit $ac_status); }; }; then
39480 ac_cv_type_sig_atomic_t=yes
39482 echo "$as_me: failed program was:" >&5
39483 sed 's/^/| /' conftest.$ac_ext >&5
39485 ac_cv_type_sig_atomic_t=no
39487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39489 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39490 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39491 if test $ac_cv_type_sig_atomic_t = yes; then
39495 cat >>confdefs.h <<_ACEOF
39496 #define sig_atomic_t int
39502 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39503 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39504 if test "${ac_cv_type_uid_t+set}" = set; then
39505 echo $ECHO_N "(cached) $ECHO_C" >&6
39507 cat >conftest.$ac_ext <<_ACEOF
39510 cat confdefs.h >>conftest.$ac_ext
39511 cat >>conftest.$ac_ext <<_ACEOF
39512 /* end confdefs.h. */
39513 #include <sys/types.h>
39516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39517 $EGREP "uid_t" >/dev/null 2>&1; then
39518 ac_cv_type_uid_t=yes
39520 ac_cv_type_uid_t=no
39525 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39526 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39527 if test $ac_cv_type_uid_t = no; then
39529 cat >>confdefs.h <<\_ACEOF
39534 cat >>confdefs.h <<\_ACEOF
39541 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39542 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39543 if test "${ac_cv_header_time+set}" = set; then
39544 echo $ECHO_N "(cached) $ECHO_C" >&6
39546 cat >conftest.$ac_ext <<_ACEOF
39549 cat confdefs.h >>conftest.$ac_ext
39550 cat >>conftest.$ac_ext <<_ACEOF
39551 /* end confdefs.h. */
39552 #include <sys/types.h>
39553 #include <sys/time.h>
39559 if ((struct tm *) 0)
39565 rm -f conftest.$ac_objext
39566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39567 (eval $ac_compile) 2>conftest.er1
39569 grep -v '^ *+' conftest.er1 >conftest.err
39571 cat conftest.err >&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); } &&
39574 { ac_try='test -z "$ac_c_werror_flag"
39575 || test ! -s conftest.err'
39576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39577 (eval $ac_try) 2>&5
39579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39580 (exit $ac_status); }; } &&
39581 { ac_try='test -s conftest.$ac_objext'
39582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583 (eval $ac_try) 2>&5
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); }; }; then
39587 ac_cv_header_time=yes
39589 echo "$as_me: failed program was:" >&5
39590 sed 's/^/| /' conftest.$ac_ext >&5
39592 ac_cv_header_time=no
39594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39596 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39597 echo "${ECHO_T}$ac_cv_header_time" >&6
39598 if test $ac_cv_header_time = yes; then
39600 cat >>confdefs.h <<\_ACEOF
39601 #define TIME_WITH_SYS_TIME 1
39606 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39607 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39608 if test "${ac_cv_struct_tm+set}" = set; then
39609 echo $ECHO_N "(cached) $ECHO_C" >&6
39611 cat >conftest.$ac_ext <<_ACEOF
39614 cat confdefs.h >>conftest.$ac_ext
39615 cat >>conftest.$ac_ext <<_ACEOF
39616 /* end confdefs.h. */
39617 #include <sys/types.h>
39623 struct tm *tp; tp->tm_sec;
39628 rm -f conftest.$ac_objext
39629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39630 (eval $ac_compile) 2>conftest.er1
39632 grep -v '^ *+' conftest.er1 >conftest.err
39634 cat conftest.err >&5
39635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636 (exit $ac_status); } &&
39637 { ac_try='test -z "$ac_c_werror_flag"
39638 || test ! -s conftest.err'
39639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39640 (eval $ac_try) 2>&5
39642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39643 (exit $ac_status); }; } &&
39644 { ac_try='test -s conftest.$ac_objext'
39645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39646 (eval $ac_try) 2>&5
39648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); }; }; then
39650 ac_cv_struct_tm=time.h
39652 echo "$as_me: failed program was:" >&5
39653 sed 's/^/| /' conftest.$ac_ext >&5
39655 ac_cv_struct_tm=sys/time.h
39657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39659 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39660 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39661 if test $ac_cv_struct_tm = sys/time.h; then
39663 cat >>confdefs.h <<\_ACEOF
39664 #define TM_IN_SYS_TIME 1
39669 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39670 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39671 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39672 echo $ECHO_N "(cached) $ECHO_C" >&6
39674 cat >conftest.$ac_ext <<_ACEOF
39677 cat confdefs.h >>conftest.$ac_ext
39678 cat >>conftest.$ac_ext <<_ACEOF
39679 /* end confdefs.h. */
39680 $ac_includes_default
39684 static struct stat ac_aggr;
39685 if (ac_aggr.st_blksize)
39691 rm -f conftest.$ac_objext
39692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39693 (eval $ac_compile) 2>conftest.er1
39695 grep -v '^ *+' conftest.er1 >conftest.err
39697 cat conftest.err >&5
39698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); } &&
39700 { ac_try='test -z "$ac_c_werror_flag"
39701 || test ! -s conftest.err'
39702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39703 (eval $ac_try) 2>&5
39705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39706 (exit $ac_status); }; } &&
39707 { ac_try='test -s conftest.$ac_objext'
39708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39709 (eval $ac_try) 2>&5
39711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712 (exit $ac_status); }; }; then
39713 ac_cv_member_struct_stat_st_blksize=yes
39715 echo "$as_me: failed program was:" >&5
39716 sed 's/^/| /' conftest.$ac_ext >&5
39718 cat >conftest.$ac_ext <<_ACEOF
39721 cat confdefs.h >>conftest.$ac_ext
39722 cat >>conftest.$ac_ext <<_ACEOF
39723 /* end confdefs.h. */
39724 $ac_includes_default
39728 static struct stat ac_aggr;
39729 if (sizeof ac_aggr.st_blksize)
39735 rm -f conftest.$ac_objext
39736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39737 (eval $ac_compile) 2>conftest.er1
39739 grep -v '^ *+' conftest.er1 >conftest.err
39741 cat conftest.err >&5
39742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743 (exit $ac_status); } &&
39744 { ac_try='test -z "$ac_c_werror_flag"
39745 || test ! -s conftest.err'
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; } &&
39751 { ac_try='test -s conftest.$ac_objext'
39752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39753 (eval $ac_try) 2>&5
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); }; }; then
39757 ac_cv_member_struct_stat_st_blksize=yes
39759 echo "$as_me: failed program was:" >&5
39760 sed 's/^/| /' conftest.$ac_ext >&5
39762 ac_cv_member_struct_stat_st_blksize=no
39764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39768 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39769 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39770 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39772 cat >>confdefs.h <<_ACEOF
39773 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39779 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39780 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39781 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39782 echo $ECHO_N "(cached) $ECHO_C" >&6
39784 cat >conftest.$ac_ext <<_ACEOF
39787 cat confdefs.h >>conftest.$ac_ext
39788 cat >>conftest.$ac_ext <<_ACEOF
39789 /* end confdefs.h. */
39790 $ac_includes_default
39796 static struct passwd ac_aggr;
39797 if (ac_aggr.pw_gecos)
39803 rm -f conftest.$ac_objext
39804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39805 (eval $ac_compile) 2>conftest.er1
39807 grep -v '^ *+' conftest.er1 >conftest.err
39809 cat conftest.err >&5
39810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811 (exit $ac_status); } &&
39812 { ac_try='test -z "$ac_c_werror_flag"
39813 || test ! -s conftest.err'
39814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39815 (eval $ac_try) 2>&5
39817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); }; } &&
39819 { ac_try='test -s conftest.$ac_objext'
39820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821 (eval $ac_try) 2>&5
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); }; }; then
39825 ac_cv_member_struct_passwd_pw_gecos=yes
39827 echo "$as_me: failed program was:" >&5
39828 sed 's/^/| /' conftest.$ac_ext >&5
39830 cat >conftest.$ac_ext <<_ACEOF
39833 cat confdefs.h >>conftest.$ac_ext
39834 cat >>conftest.$ac_ext <<_ACEOF
39835 /* end confdefs.h. */
39836 $ac_includes_default
39842 static struct passwd ac_aggr;
39843 if (sizeof ac_aggr.pw_gecos)
39849 rm -f conftest.$ac_objext
39850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39851 (eval $ac_compile) 2>conftest.er1
39853 grep -v '^ *+' conftest.er1 >conftest.err
39855 cat conftest.err >&5
39856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39857 (exit $ac_status); } &&
39858 { ac_try='test -z "$ac_c_werror_flag"
39859 || test ! -s conftest.err'
39860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39861 (eval $ac_try) 2>&5
39863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); }; } &&
39865 { ac_try='test -s conftest.$ac_objext'
39866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867 (eval $ac_try) 2>&5
39869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870 (exit $ac_status); }; }; then
39871 ac_cv_member_struct_passwd_pw_gecos=yes
39873 echo "$as_me: failed program was:" >&5
39874 sed 's/^/| /' conftest.$ac_ext >&5
39876 ac_cv_member_struct_passwd_pw_gecos=no
39878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39883 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39884 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39886 cat >>confdefs.h <<_ACEOF
39887 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39893 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39894 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39895 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39896 echo $ECHO_N "(cached) $ECHO_C" >&6
39898 cat >conftest.$ac_ext <<_ACEOF
39901 cat confdefs.h >>conftest.$ac_ext
39902 cat >>conftest.$ac_ext <<_ACEOF
39903 /* end confdefs.h. */
39904 $ac_includes_default
39910 static struct passwd ac_aggr;
39911 if (ac_aggr.pw_passwd)
39917 rm -f conftest.$ac_objext
39918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39919 (eval $ac_compile) 2>conftest.er1
39921 grep -v '^ *+' conftest.er1 >conftest.err
39923 cat conftest.err >&5
39924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925 (exit $ac_status); } &&
39926 { ac_try='test -z "$ac_c_werror_flag"
39927 || test ! -s conftest.err'
39928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39929 (eval $ac_try) 2>&5
39931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39932 (exit $ac_status); }; } &&
39933 { ac_try='test -s conftest.$ac_objext'
39934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935 (eval $ac_try) 2>&5
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); }; }; then
39939 ac_cv_member_struct_passwd_pw_passwd=yes
39941 echo "$as_me: failed program was:" >&5
39942 sed 's/^/| /' conftest.$ac_ext >&5
39944 cat >conftest.$ac_ext <<_ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h. */
39950 $ac_includes_default
39956 static struct passwd ac_aggr;
39957 if (sizeof ac_aggr.pw_passwd)
39963 rm -f conftest.$ac_objext
39964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39965 (eval $ac_compile) 2>conftest.er1
39967 grep -v '^ *+' conftest.er1 >conftest.err
39969 cat conftest.err >&5
39970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971 (exit $ac_status); } &&
39972 { ac_try='test -z "$ac_c_werror_flag"
39973 || test ! -s conftest.err'
39974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39975 (eval $ac_try) 2>&5
39977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39978 (exit $ac_status); }; } &&
39979 { ac_try='test -s conftest.$ac_objext'
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; }; then
39985 ac_cv_member_struct_passwd_pw_passwd=yes
39987 echo "$as_me: failed program was:" >&5
39988 sed 's/^/| /' conftest.$ac_ext >&5
39990 ac_cv_member_struct_passwd_pw_passwd=no
39992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39996 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39997 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39998 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40000 cat >>confdefs.h <<_ACEOF
40001 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40008 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40009 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40010 if test "${ol_cv_c_upper_lower+set}" = set; then
40011 echo $ECHO_N "(cached) $ECHO_C" >&6
40014 if test "$cross_compiling" = yes; then
40015 ol_cv_c_upper_lower=safe
40017 cat >conftest.$ac_ext <<_ACEOF
40020 cat confdefs.h >>conftest.$ac_ext
40021 cat >>conftest.$ac_ext <<_ACEOF
40022 /* end confdefs.h. */
40027 if ('C' == toupper('C'))
40033 rm -f conftest$ac_exeext
40034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40035 (eval $ac_link) 2>&5
40037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40040 (eval $ac_try) 2>&5
40042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40043 (exit $ac_status); }; }; then
40044 ol_cv_c_upper_lower=no
40046 echo "$as_me: program exited with status $ac_status" >&5
40047 echo "$as_me: failed program was:" >&5
40048 sed 's/^/| /' conftest.$ac_ext >&5
40050 ( exit $ac_status )
40051 ol_cv_c_upper_lower=yes
40053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40056 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40057 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40058 if test $ol_cv_c_upper_lower != no ; then
40060 cat >>confdefs.h <<\_ACEOF
40061 #define C_UPPER_LOWER 1
40066 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40068 if test "${ac_cv_c_const+set}" = set; then
40069 echo $ECHO_N "(cached) $ECHO_C" >&6
40071 cat >conftest.$ac_ext <<_ACEOF
40074 cat confdefs.h >>conftest.$ac_ext
40075 cat >>conftest.$ac_ext <<_ACEOF
40076 /* end confdefs.h. */
40081 /* FIXME: Include the comments suggested by Paul. */
40082 #ifndef __cplusplus
40083 /* Ultrix mips cc rejects this. */
40084 typedef int charset[2];
40086 /* SunOS 4.1.1 cc rejects this. */
40087 char const *const *ccp;
40089 /* NEC SVR4.0.2 mips cc rejects this. */
40090 struct point {int x, y;};
40091 static struct point const zero = {0,0};
40092 /* AIX XL C 1.02.0.0 rejects this.
40093 It does not let you subtract one const X* pointer from another in
40094 an arm of an if-expression whose if-part is not a constant
40096 const char *g = "string";
40097 ccp = &g + (g ? g-g : 0);
40098 /* HPUX 7.0 cc rejects these. */
40101 ccp = (char const *const *) p;
40102 { /* SCO 3.2v4 cc rejects this. */
40104 char const *s = 0 ? (char *) 0 : (char const *) 0;
40108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40109 int x[] = {25, 17};
40110 const int *foo = &x[0];
40113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40114 typedef const int *iptr;
40118 { /* AIX XL C 1.02.0.0 rejects this saying
40119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40120 struct s { int j; const int *ap[3]; };
40121 struct s *b; b->j = 5;
40123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40124 const int foo = 10;
40132 rm -f conftest.$ac_objext
40133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40134 (eval $ac_compile) 2>conftest.er1
40136 grep -v '^ *+' conftest.er1 >conftest.err
40138 cat conftest.err >&5
40139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140 (exit $ac_status); } &&
40141 { ac_try='test -z "$ac_c_werror_flag"
40142 || test ! -s conftest.err'
40143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40144 (eval $ac_try) 2>&5
40146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147 (exit $ac_status); }; } &&
40148 { ac_try='test -s conftest.$ac_objext'
40149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40150 (eval $ac_try) 2>&5
40152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153 (exit $ac_status); }; }; then
40156 echo "$as_me: failed program was:" >&5
40157 sed 's/^/| /' conftest.$ac_ext >&5
40161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40163 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40164 echo "${ECHO_T}$ac_cv_c_const" >&6
40165 if test $ac_cv_c_const = no; then
40167 cat >>confdefs.h <<\_ACEOF
40173 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40174 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40175 if test "${ol_cv_c_volatile+set}" = set; then
40176 echo $ECHO_N "(cached) $ECHO_C" >&6
40178 cat >conftest.$ac_ext <<_ACEOF
40181 cat confdefs.h >>conftest.$ac_ext
40182 cat >>conftest.$ac_ext <<_ACEOF
40183 /* end confdefs.h. */
40188 volatile int a; int * volatile b = x ? &y : &z;
40189 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40195 rm -f conftest.$ac_objext
40196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40197 (eval $ac_compile) 2>conftest.er1
40199 grep -v '^ *+' conftest.er1 >conftest.err
40201 cat conftest.err >&5
40202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203 (exit $ac_status); } &&
40204 { ac_try='test -z "$ac_c_werror_flag"
40205 || test ! -s conftest.err'
40206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40207 (eval $ac_try) 2>&5
40209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210 (exit $ac_status); }; } &&
40211 { ac_try='test -s conftest.$ac_objext'
40212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40213 (eval $ac_try) 2>&5
40215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216 (exit $ac_status); }; }; then
40217 ol_cv_c_volatile=yes
40219 echo "$as_me: failed program was:" >&5
40220 sed 's/^/| /' conftest.$ac_ext >&5
40222 ol_cv_c_volatile=no
40224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40226 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40227 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40228 if test $ol_cv_c_volatile = yes; then
40232 cat >>confdefs.h <<\_ACEOF
40239 if test $cross_compiling = yes ; then
40240 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40241 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40243 cat >>confdefs.h <<\_ACEOF
40244 #define CROSS_COMPILING 1
40248 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40249 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40250 if test "${ac_cv_c_bigendian+set}" = set; then
40251 echo $ECHO_N "(cached) $ECHO_C" >&6
40253 # See if sys/param.h defines the BYTE_ORDER macro.
40254 cat >conftest.$ac_ext <<_ACEOF
40257 cat confdefs.h >>conftest.$ac_ext
40258 cat >>conftest.$ac_ext <<_ACEOF
40259 /* end confdefs.h. */
40260 #include <sys/types.h>
40261 #include <sys/param.h>
40266 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40267 bogus endian macros
40274 rm -f conftest.$ac_objext
40275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40276 (eval $ac_compile) 2>conftest.er1
40278 grep -v '^ *+' conftest.er1 >conftest.err
40280 cat conftest.err >&5
40281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40282 (exit $ac_status); } &&
40283 { ac_try='test -z "$ac_c_werror_flag"
40284 || test ! -s conftest.err'
40285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40286 (eval $ac_try) 2>&5
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); }; } &&
40290 { ac_try='test -s conftest.$ac_objext'
40291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40292 (eval $ac_try) 2>&5
40294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295 (exit $ac_status); }; }; then
40296 # It does; now see whether it defined to BIG_ENDIAN or not.
40297 cat >conftest.$ac_ext <<_ACEOF
40300 cat confdefs.h >>conftest.$ac_ext
40301 cat >>conftest.$ac_ext <<_ACEOF
40302 /* end confdefs.h. */
40303 #include <sys/types.h>
40304 #include <sys/param.h>
40309 #if BYTE_ORDER != BIG_ENDIAN
40317 rm -f conftest.$ac_objext
40318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40319 (eval $ac_compile) 2>conftest.er1
40321 grep -v '^ *+' conftest.er1 >conftest.err
40323 cat conftest.err >&5
40324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40325 (exit $ac_status); } &&
40326 { ac_try='test -z "$ac_c_werror_flag"
40327 || test ! -s conftest.err'
40328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40329 (eval $ac_try) 2>&5
40331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40332 (exit $ac_status); }; } &&
40333 { ac_try='test -s conftest.$ac_objext'
40334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40335 (eval $ac_try) 2>&5
40337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40338 (exit $ac_status); }; }; then
40339 ac_cv_c_bigendian=yes
40341 echo "$as_me: failed program was:" >&5
40342 sed 's/^/| /' conftest.$ac_ext >&5
40344 ac_cv_c_bigendian=no
40346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40348 echo "$as_me: failed program was:" >&5
40349 sed 's/^/| /' conftest.$ac_ext >&5
40351 # It does not; compile a test program.
40352 if test "$cross_compiling" = yes; then
40353 # try to guess the endianness by grepping values into an object file
40354 ac_cv_c_bigendian=unknown
40355 cat >conftest.$ac_ext <<_ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h. */
40361 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40362 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40363 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40364 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40365 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40366 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40370 _ascii (); _ebcdic ();
40375 rm -f conftest.$ac_objext
40376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40377 (eval $ac_compile) 2>conftest.er1
40379 grep -v '^ *+' conftest.er1 >conftest.err
40381 cat conftest.err >&5
40382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383 (exit $ac_status); } &&
40384 { ac_try='test -z "$ac_c_werror_flag"
40385 || test ! -s conftest.err'
40386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40387 (eval $ac_try) 2>&5
40389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390 (exit $ac_status); }; } &&
40391 { ac_try='test -s conftest.$ac_objext'
40392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40393 (eval $ac_try) 2>&5
40395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40396 (exit $ac_status); }; }; then
40397 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40398 ac_cv_c_bigendian=yes
40400 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40401 if test "$ac_cv_c_bigendian" = unknown; then
40402 ac_cv_c_bigendian=no
40404 # finding both strings is unlikely to happen, but who knows?
40405 ac_cv_c_bigendian=unknown
40409 echo "$as_me: failed program was:" >&5
40410 sed 's/^/| /' conftest.$ac_ext >&5
40413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40415 cat >conftest.$ac_ext <<_ACEOF
40418 cat confdefs.h >>conftest.$ac_ext
40419 cat >>conftest.$ac_ext <<_ACEOF
40420 /* end confdefs.h. */
40424 /* Are we little or big endian? From Harbison&Steele. */
40428 char c[sizeof (long)];
40431 exit (u.c[sizeof (long) - 1] == 1);
40434 rm -f conftest$ac_exeext
40435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40436 (eval $ac_link) 2>&5
40438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40441 (eval $ac_try) 2>&5
40443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444 (exit $ac_status); }; }; then
40445 ac_cv_c_bigendian=no
40447 echo "$as_me: program exited with status $ac_status" >&5
40448 echo "$as_me: failed program was:" >&5
40449 sed 's/^/| /' conftest.$ac_ext >&5
40451 ( exit $ac_status )
40452 ac_cv_c_bigendian=yes
40454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40459 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40460 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40461 case $ac_cv_c_bigendian in
40464 cat >>confdefs.h <<\_ACEOF
40465 #define WORDS_BIGENDIAN 1
40471 { { echo "$as_me:$LINENO: error: unknown endianness
40472 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40473 echo "$as_me: error: unknown endianness
40474 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40475 { (exit 1); exit 1; }; } ;;
40480 echo "$as_me:$LINENO: checking for short" >&5
40481 echo $ECHO_N "checking for short... $ECHO_C" >&6
40482 if test "${ac_cv_type_short+set}" = set; then
40483 echo $ECHO_N "(cached) $ECHO_C" >&6
40485 cat >conftest.$ac_ext <<_ACEOF
40488 cat confdefs.h >>conftest.$ac_ext
40489 cat >>conftest.$ac_ext <<_ACEOF
40490 /* end confdefs.h. */
40491 $ac_includes_default
40497 if (sizeof (short))
40503 rm -f conftest.$ac_objext
40504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40505 (eval $ac_compile) 2>conftest.er1
40507 grep -v '^ *+' conftest.er1 >conftest.err
40509 cat conftest.err >&5
40510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511 (exit $ac_status); } &&
40512 { ac_try='test -z "$ac_c_werror_flag"
40513 || test ! -s conftest.err'
40514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40515 (eval $ac_try) 2>&5
40517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40518 (exit $ac_status); }; } &&
40519 { ac_try='test -s conftest.$ac_objext'
40520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40521 (eval $ac_try) 2>&5
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); }; }; then
40525 ac_cv_type_short=yes
40527 echo "$as_me: failed program was:" >&5
40528 sed 's/^/| /' conftest.$ac_ext >&5
40530 ac_cv_type_short=no
40532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40534 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40535 echo "${ECHO_T}$ac_cv_type_short" >&6
40537 echo "$as_me:$LINENO: checking size of short" >&5
40538 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40539 if test "${ac_cv_sizeof_short+set}" = set; then
40540 echo $ECHO_N "(cached) $ECHO_C" >&6
40542 if test "$ac_cv_type_short" = yes; then
40543 # The cast to unsigned long works around a bug in the HP C Compiler
40544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40546 # This bug is HP SR number 8606223364.
40547 if test "$cross_compiling" = yes; then
40548 # Depending upon the size, compute the lo and hi bounds.
40549 cat >conftest.$ac_ext <<_ACEOF
40552 cat confdefs.h >>conftest.$ac_ext
40553 cat >>conftest.$ac_ext <<_ACEOF
40554 /* end confdefs.h. */
40555 $ac_includes_default
40559 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40566 rm -f conftest.$ac_objext
40567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40568 (eval $ac_compile) 2>conftest.er1
40570 grep -v '^ *+' conftest.er1 >conftest.err
40572 cat conftest.err >&5
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); } &&
40575 { ac_try='test -z "$ac_c_werror_flag"
40576 || test ! -s conftest.err'
40577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40578 (eval $ac_try) 2>&5
40580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581 (exit $ac_status); }; } &&
40582 { ac_try='test -s conftest.$ac_objext'
40583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40584 (eval $ac_try) 2>&5
40586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587 (exit $ac_status); }; }; then
40590 cat >conftest.$ac_ext <<_ACEOF
40593 cat confdefs.h >>conftest.$ac_ext
40594 cat >>conftest.$ac_ext <<_ACEOF
40595 /* end confdefs.h. */
40596 $ac_includes_default
40600 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40607 rm -f conftest.$ac_objext
40608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40609 (eval $ac_compile) 2>conftest.er1
40611 grep -v '^ *+' conftest.er1 >conftest.err
40613 cat conftest.err >&5
40614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615 (exit $ac_status); } &&
40616 { ac_try='test -z "$ac_c_werror_flag"
40617 || test ! -s conftest.err'
40618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40619 (eval $ac_try) 2>&5
40621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622 (exit $ac_status); }; } &&
40623 { ac_try='test -s conftest.$ac_objext'
40624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40625 (eval $ac_try) 2>&5
40627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40628 (exit $ac_status); }; }; then
40629 ac_hi=$ac_mid; break
40631 echo "$as_me: failed program was:" >&5
40632 sed 's/^/| /' conftest.$ac_ext >&5
40634 ac_lo=`expr $ac_mid + 1`
40635 if test $ac_lo -le $ac_mid; then
40639 ac_mid=`expr 2 '*' $ac_mid + 1`
40641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40644 echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40647 cat >conftest.$ac_ext <<_ACEOF
40650 cat confdefs.h >>conftest.$ac_ext
40651 cat >>conftest.$ac_ext <<_ACEOF
40652 /* end confdefs.h. */
40653 $ac_includes_default
40657 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40664 rm -f conftest.$ac_objext
40665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40666 (eval $ac_compile) 2>conftest.er1
40668 grep -v '^ *+' conftest.er1 >conftest.err
40670 cat conftest.err >&5
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); } &&
40673 { ac_try='test -z "$ac_c_werror_flag"
40674 || test ! -s conftest.err'
40675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676 (eval $ac_try) 2>&5
40678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679 (exit $ac_status); }; } &&
40680 { ac_try='test -s conftest.$ac_objext'
40681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40682 (eval $ac_try) 2>&5
40684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40685 (exit $ac_status); }; }; then
40688 cat >conftest.$ac_ext <<_ACEOF
40691 cat confdefs.h >>conftest.$ac_ext
40692 cat >>conftest.$ac_ext <<_ACEOF
40693 /* end confdefs.h. */
40694 $ac_includes_default
40698 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40705 rm -f conftest.$ac_objext
40706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40707 (eval $ac_compile) 2>conftest.er1
40709 grep -v '^ *+' conftest.er1 >conftest.err
40711 cat conftest.err >&5
40712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40713 (exit $ac_status); } &&
40714 { ac_try='test -z "$ac_c_werror_flag"
40715 || test ! -s conftest.err'
40716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40717 (eval $ac_try) 2>&5
40719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720 (exit $ac_status); }; } &&
40721 { ac_try='test -s conftest.$ac_objext'
40722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40723 (eval $ac_try) 2>&5
40725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726 (exit $ac_status); }; }; then
40727 ac_lo=$ac_mid; break
40729 echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40732 ac_hi=`expr '(' $ac_mid ')' - 1`
40733 if test $ac_mid -le $ac_hi; then
40737 ac_mid=`expr 2 '*' $ac_mid`
40739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40742 echo "$as_me: failed program was:" >&5
40743 sed 's/^/| /' conftest.$ac_ext >&5
40747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40750 # Binary search between lo and hi bounds.
40751 while test "x$ac_lo" != "x$ac_hi"; do
40752 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40753 cat >conftest.$ac_ext <<_ACEOF
40756 cat confdefs.h >>conftest.$ac_ext
40757 cat >>conftest.$ac_ext <<_ACEOF
40758 /* end confdefs.h. */
40759 $ac_includes_default
40763 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40770 rm -f conftest.$ac_objext
40771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40772 (eval $ac_compile) 2>conftest.er1
40774 grep -v '^ *+' conftest.er1 >conftest.err
40776 cat conftest.err >&5
40777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40778 (exit $ac_status); } &&
40779 { ac_try='test -z "$ac_c_werror_flag"
40780 || test ! -s conftest.err'
40781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40782 (eval $ac_try) 2>&5
40784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40785 (exit $ac_status); }; } &&
40786 { ac_try='test -s conftest.$ac_objext'
40787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40788 (eval $ac_try) 2>&5
40790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791 (exit $ac_status); }; }; then
40794 echo "$as_me: failed program was:" >&5
40795 sed 's/^/| /' conftest.$ac_ext >&5
40797 ac_lo=`expr '(' $ac_mid ')' + 1`
40799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40802 ?*) ac_cv_sizeof_short=$ac_lo;;
40803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40804 See \`config.log' for more details." >&5
40805 echo "$as_me: error: cannot compute sizeof (short), 77
40806 See \`config.log' for more details." >&2;}
40807 { (exit 1); exit 1; }; } ;;
40810 if test "$cross_compiling" = yes; then
40811 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40812 See \`config.log' for more details." >&5
40813 echo "$as_me: error: cannot run test program while cross compiling
40814 See \`config.log' for more details." >&2;}
40815 { (exit 1); exit 1; }; }
40817 cat >conftest.$ac_ext <<_ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h. */
40823 $ac_includes_default
40824 long longval () { return (long) (sizeof (short)); }
40825 unsigned long ulongval () { return (long) (sizeof (short)); }
40827 #include <stdlib.h>
40832 FILE *f = fopen ("conftest.val", "w");
40835 if (((long) (sizeof (short))) < 0)
40837 long i = longval ();
40838 if (i != ((long) (sizeof (short))))
40840 fprintf (f, "%ld\n", i);
40844 unsigned long i = ulongval ();
40845 if (i != ((long) (sizeof (short))))
40847 fprintf (f, "%lu\n", i);
40849 exit (ferror (f) || fclose (f) != 0);
40855 rm -f conftest$ac_exeext
40856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40857 (eval $ac_link) 2>&5
40859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40862 (eval $ac_try) 2>&5
40864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865 (exit $ac_status); }; }; then
40866 ac_cv_sizeof_short=`cat conftest.val`
40868 echo "$as_me: program exited with status $ac_status" >&5
40869 echo "$as_me: failed program was:" >&5
40870 sed 's/^/| /' conftest.$ac_ext >&5
40872 ( exit $ac_status )
40873 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40874 See \`config.log' for more details." >&5
40875 echo "$as_me: error: cannot compute sizeof (short), 77
40876 See \`config.log' for more details." >&2;}
40877 { (exit 1); exit 1; }; }
40879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40884 ac_cv_sizeof_short=0
40887 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40888 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40889 cat >>confdefs.h <<_ACEOF
40890 #define SIZEOF_SHORT $ac_cv_sizeof_short
40894 echo "$as_me:$LINENO: checking for int" >&5
40895 echo $ECHO_N "checking for int... $ECHO_C" >&6
40896 if test "${ac_cv_type_int+set}" = set; then
40897 echo $ECHO_N "(cached) $ECHO_C" >&6
40899 cat >conftest.$ac_ext <<_ACEOF
40902 cat confdefs.h >>conftest.$ac_ext
40903 cat >>conftest.$ac_ext <<_ACEOF
40904 /* end confdefs.h. */
40905 $ac_includes_default
40917 rm -f conftest.$ac_objext
40918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40919 (eval $ac_compile) 2>conftest.er1
40921 grep -v '^ *+' conftest.er1 >conftest.err
40923 cat conftest.err >&5
40924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40925 (exit $ac_status); } &&
40926 { ac_try='test -z "$ac_c_werror_flag"
40927 || test ! -s conftest.err'
40928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40929 (eval $ac_try) 2>&5
40931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932 (exit $ac_status); }; } &&
40933 { ac_try='test -s conftest.$ac_objext'
40934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40935 (eval $ac_try) 2>&5
40937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938 (exit $ac_status); }; }; then
40941 echo "$as_me: failed program was:" >&5
40942 sed 's/^/| /' conftest.$ac_ext >&5
40946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40948 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40949 echo "${ECHO_T}$ac_cv_type_int" >&6
40951 echo "$as_me:$LINENO: checking size of int" >&5
40952 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40953 if test "${ac_cv_sizeof_int+set}" = set; then
40954 echo $ECHO_N "(cached) $ECHO_C" >&6
40956 if test "$ac_cv_type_int" = yes; then
40957 # The cast to unsigned long works around a bug in the HP C Compiler
40958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40960 # This bug is HP SR number 8606223364.
40961 if test "$cross_compiling" = yes; then
40962 # Depending upon the size, compute the lo and hi bounds.
40963 cat >conftest.$ac_ext <<_ACEOF
40966 cat confdefs.h >>conftest.$ac_ext
40967 cat >>conftest.$ac_ext <<_ACEOF
40968 /* end confdefs.h. */
40969 $ac_includes_default
40973 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40980 rm -f conftest.$ac_objext
40981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40982 (eval $ac_compile) 2>conftest.er1
40984 grep -v '^ *+' conftest.er1 >conftest.err
40986 cat conftest.err >&5
40987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988 (exit $ac_status); } &&
40989 { ac_try='test -z "$ac_c_werror_flag"
40990 || test ! -s conftest.err'
40991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40992 (eval $ac_try) 2>&5
40994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40995 (exit $ac_status); }; } &&
40996 { ac_try='test -s conftest.$ac_objext'
40997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40998 (eval $ac_try) 2>&5
41000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41001 (exit $ac_status); }; }; then
41004 cat >conftest.$ac_ext <<_ACEOF
41007 cat confdefs.h >>conftest.$ac_ext
41008 cat >>conftest.$ac_ext <<_ACEOF
41009 /* end confdefs.h. */
41010 $ac_includes_default
41014 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41021 rm -f conftest.$ac_objext
41022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41023 (eval $ac_compile) 2>conftest.er1
41025 grep -v '^ *+' conftest.er1 >conftest.err
41027 cat conftest.err >&5
41028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41029 (exit $ac_status); } &&
41030 { ac_try='test -z "$ac_c_werror_flag"
41031 || test ! -s conftest.err'
41032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033 (eval $ac_try) 2>&5
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); }; } &&
41037 { ac_try='test -s conftest.$ac_objext'
41038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41039 (eval $ac_try) 2>&5
41041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042 (exit $ac_status); }; }; then
41043 ac_hi=$ac_mid; break
41045 echo "$as_me: failed program was:" >&5
41046 sed 's/^/| /' conftest.$ac_ext >&5
41048 ac_lo=`expr $ac_mid + 1`
41049 if test $ac_lo -le $ac_mid; then
41053 ac_mid=`expr 2 '*' $ac_mid + 1`
41055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41058 echo "$as_me: failed program was:" >&5
41059 sed 's/^/| /' conftest.$ac_ext >&5
41061 cat >conftest.$ac_ext <<_ACEOF
41064 cat confdefs.h >>conftest.$ac_ext
41065 cat >>conftest.$ac_ext <<_ACEOF
41066 /* end confdefs.h. */
41067 $ac_includes_default
41071 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41078 rm -f conftest.$ac_objext
41079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41080 (eval $ac_compile) 2>conftest.er1
41082 grep -v '^ *+' conftest.er1 >conftest.err
41084 cat conftest.err >&5
41085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41086 (exit $ac_status); } &&
41087 { ac_try='test -z "$ac_c_werror_flag"
41088 || test ! -s conftest.err'
41089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41090 (eval $ac_try) 2>&5
41092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093 (exit $ac_status); }; } &&
41094 { ac_try='test -s conftest.$ac_objext'
41095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41096 (eval $ac_try) 2>&5
41098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41099 (exit $ac_status); }; }; then
41102 cat >conftest.$ac_ext <<_ACEOF
41105 cat confdefs.h >>conftest.$ac_ext
41106 cat >>conftest.$ac_ext <<_ACEOF
41107 /* end confdefs.h. */
41108 $ac_includes_default
41112 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41119 rm -f conftest.$ac_objext
41120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41121 (eval $ac_compile) 2>conftest.er1
41123 grep -v '^ *+' conftest.er1 >conftest.err
41125 cat conftest.err >&5
41126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127 (exit $ac_status); } &&
41128 { ac_try='test -z "$ac_c_werror_flag"
41129 || test ! -s conftest.err'
41130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131 (eval $ac_try) 2>&5
41133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134 (exit $ac_status); }; } &&
41135 { ac_try='test -s conftest.$ac_objext'
41136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137 (eval $ac_try) 2>&5
41139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140 (exit $ac_status); }; }; then
41141 ac_lo=$ac_mid; break
41143 echo "$as_me: failed program was:" >&5
41144 sed 's/^/| /' conftest.$ac_ext >&5
41146 ac_hi=`expr '(' $ac_mid ')' - 1`
41147 if test $ac_mid -le $ac_hi; then
41151 ac_mid=`expr 2 '*' $ac_mid`
41153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41156 echo "$as_me: failed program was:" >&5
41157 sed 's/^/| /' conftest.$ac_ext >&5
41161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41164 # Binary search between lo and hi bounds.
41165 while test "x$ac_lo" != "x$ac_hi"; do
41166 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41167 cat >conftest.$ac_ext <<_ACEOF
41170 cat confdefs.h >>conftest.$ac_ext
41171 cat >>conftest.$ac_ext <<_ACEOF
41172 /* end confdefs.h. */
41173 $ac_includes_default
41177 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41184 rm -f conftest.$ac_objext
41185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41186 (eval $ac_compile) 2>conftest.er1
41188 grep -v '^ *+' conftest.er1 >conftest.err
41190 cat conftest.err >&5
41191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41192 (exit $ac_status); } &&
41193 { ac_try='test -z "$ac_c_werror_flag"
41194 || test ! -s conftest.err'
41195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41196 (eval $ac_try) 2>&5
41198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199 (exit $ac_status); }; } &&
41200 { ac_try='test -s conftest.$ac_objext'
41201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41202 (eval $ac_try) 2>&5
41204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41205 (exit $ac_status); }; }; then
41208 echo "$as_me: failed program was:" >&5
41209 sed 's/^/| /' conftest.$ac_ext >&5
41211 ac_lo=`expr '(' $ac_mid ')' + 1`
41213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41216 ?*) ac_cv_sizeof_int=$ac_lo;;
41217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41218 See \`config.log' for more details." >&5
41219 echo "$as_me: error: cannot compute sizeof (int), 77
41220 See \`config.log' for more details." >&2;}
41221 { (exit 1); exit 1; }; } ;;
41224 if test "$cross_compiling" = yes; then
41225 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41226 See \`config.log' for more details." >&5
41227 echo "$as_me: error: cannot run test program while cross compiling
41228 See \`config.log' for more details." >&2;}
41229 { (exit 1); exit 1; }; }
41231 cat >conftest.$ac_ext <<_ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h. */
41237 $ac_includes_default
41238 long longval () { return (long) (sizeof (int)); }
41239 unsigned long ulongval () { return (long) (sizeof (int)); }
41241 #include <stdlib.h>
41246 FILE *f = fopen ("conftest.val", "w");
41249 if (((long) (sizeof (int))) < 0)
41251 long i = longval ();
41252 if (i != ((long) (sizeof (int))))
41254 fprintf (f, "%ld\n", i);
41258 unsigned long i = ulongval ();
41259 if (i != ((long) (sizeof (int))))
41261 fprintf (f, "%lu\n", i);
41263 exit (ferror (f) || fclose (f) != 0);
41269 rm -f conftest$ac_exeext
41270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41271 (eval $ac_link) 2>&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41276 (eval $ac_try) 2>&5
41278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279 (exit $ac_status); }; }; then
41280 ac_cv_sizeof_int=`cat conftest.val`
41282 echo "$as_me: program exited with status $ac_status" >&5
41283 echo "$as_me: failed program was:" >&5
41284 sed 's/^/| /' conftest.$ac_ext >&5
41286 ( exit $ac_status )
41287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41288 See \`config.log' for more details." >&5
41289 echo "$as_me: error: cannot compute sizeof (int), 77
41290 See \`config.log' for more details." >&2;}
41291 { (exit 1); exit 1; }; }
41293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41302 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41303 cat >>confdefs.h <<_ACEOF
41304 #define SIZEOF_INT $ac_cv_sizeof_int
41308 echo "$as_me:$LINENO: checking for long" >&5
41309 echo $ECHO_N "checking for long... $ECHO_C" >&6
41310 if test "${ac_cv_type_long+set}" = set; then
41311 echo $ECHO_N "(cached) $ECHO_C" >&6
41313 cat >conftest.$ac_ext <<_ACEOF
41316 cat confdefs.h >>conftest.$ac_ext
41317 cat >>conftest.$ac_ext <<_ACEOF
41318 /* end confdefs.h. */
41319 $ac_includes_default
41331 rm -f conftest.$ac_objext
41332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41333 (eval $ac_compile) 2>conftest.er1
41335 grep -v '^ *+' conftest.er1 >conftest.err
41337 cat conftest.err >&5
41338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339 (exit $ac_status); } &&
41340 { ac_try='test -z "$ac_c_werror_flag"
41341 || test ! -s conftest.err'
41342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41343 (eval $ac_try) 2>&5
41345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41346 (exit $ac_status); }; } &&
41347 { ac_try='test -s conftest.$ac_objext'
41348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41349 (eval $ac_try) 2>&5
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); }; }; then
41353 ac_cv_type_long=yes
41355 echo "$as_me: failed program was:" >&5
41356 sed 's/^/| /' conftest.$ac_ext >&5
41360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41362 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41363 echo "${ECHO_T}$ac_cv_type_long" >&6
41365 echo "$as_me:$LINENO: checking size of long" >&5
41366 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41367 if test "${ac_cv_sizeof_long+set}" = set; then
41368 echo $ECHO_N "(cached) $ECHO_C" >&6
41370 if test "$ac_cv_type_long" = yes; then
41371 # The cast to unsigned long works around a bug in the HP C Compiler
41372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41374 # This bug is HP SR number 8606223364.
41375 if test "$cross_compiling" = yes; then
41376 # Depending upon the size, compute the lo and hi bounds.
41377 cat >conftest.$ac_ext <<_ACEOF
41380 cat confdefs.h >>conftest.$ac_ext
41381 cat >>conftest.$ac_ext <<_ACEOF
41382 /* end confdefs.h. */
41383 $ac_includes_default
41387 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41394 rm -f conftest.$ac_objext
41395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41396 (eval $ac_compile) 2>conftest.er1
41398 grep -v '^ *+' conftest.er1 >conftest.err
41400 cat conftest.err >&5
41401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402 (exit $ac_status); } &&
41403 { ac_try='test -z "$ac_c_werror_flag"
41404 || test ! -s conftest.err'
41405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41406 (eval $ac_try) 2>&5
41408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41409 (exit $ac_status); }; } &&
41410 { ac_try='test -s conftest.$ac_objext'
41411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41412 (eval $ac_try) 2>&5
41414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41415 (exit $ac_status); }; }; then
41418 cat >conftest.$ac_ext <<_ACEOF
41421 cat confdefs.h >>conftest.$ac_ext
41422 cat >>conftest.$ac_ext <<_ACEOF
41423 /* end confdefs.h. */
41424 $ac_includes_default
41428 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41435 rm -f conftest.$ac_objext
41436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41437 (eval $ac_compile) 2>conftest.er1
41439 grep -v '^ *+' conftest.er1 >conftest.err
41441 cat conftest.err >&5
41442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443 (exit $ac_status); } &&
41444 { ac_try='test -z "$ac_c_werror_flag"
41445 || test ! -s conftest.err'
41446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41447 (eval $ac_try) 2>&5
41449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41450 (exit $ac_status); }; } &&
41451 { ac_try='test -s conftest.$ac_objext'
41452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41453 (eval $ac_try) 2>&5
41455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41456 (exit $ac_status); }; }; then
41457 ac_hi=$ac_mid; break
41459 echo "$as_me: failed program was:" >&5
41460 sed 's/^/| /' conftest.$ac_ext >&5
41462 ac_lo=`expr $ac_mid + 1`
41463 if test $ac_lo -le $ac_mid; then
41467 ac_mid=`expr 2 '*' $ac_mid + 1`
41469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41472 echo "$as_me: failed program was:" >&5
41473 sed 's/^/| /' conftest.$ac_ext >&5
41475 cat >conftest.$ac_ext <<_ACEOF
41478 cat confdefs.h >>conftest.$ac_ext
41479 cat >>conftest.$ac_ext <<_ACEOF
41480 /* end confdefs.h. */
41481 $ac_includes_default
41485 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41492 rm -f conftest.$ac_objext
41493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41494 (eval $ac_compile) 2>conftest.er1
41496 grep -v '^ *+' conftest.er1 >conftest.err
41498 cat conftest.err >&5
41499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41500 (exit $ac_status); } &&
41501 { ac_try='test -z "$ac_c_werror_flag"
41502 || test ! -s conftest.err'
41503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41504 (eval $ac_try) 2>&5
41506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507 (exit $ac_status); }; } &&
41508 { ac_try='test -s conftest.$ac_objext'
41509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41510 (eval $ac_try) 2>&5
41512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513 (exit $ac_status); }; }; then
41516 cat >conftest.$ac_ext <<_ACEOF
41519 cat confdefs.h >>conftest.$ac_ext
41520 cat >>conftest.$ac_ext <<_ACEOF
41521 /* end confdefs.h. */
41522 $ac_includes_default
41526 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41533 rm -f conftest.$ac_objext
41534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41535 (eval $ac_compile) 2>conftest.er1
41537 grep -v '^ *+' conftest.er1 >conftest.err
41539 cat conftest.err >&5
41540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541 (exit $ac_status); } &&
41542 { ac_try='test -z "$ac_c_werror_flag"
41543 || test ! -s conftest.err'
41544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41545 (eval $ac_try) 2>&5
41547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548 (exit $ac_status); }; } &&
41549 { ac_try='test -s conftest.$ac_objext'
41550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41551 (eval $ac_try) 2>&5
41553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41554 (exit $ac_status); }; }; then
41555 ac_lo=$ac_mid; break
41557 echo "$as_me: failed program was:" >&5
41558 sed 's/^/| /' conftest.$ac_ext >&5
41560 ac_hi=`expr '(' $ac_mid ')' - 1`
41561 if test $ac_mid -le $ac_hi; then
41565 ac_mid=`expr 2 '*' $ac_mid`
41567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41570 echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41578 # Binary search between lo and hi bounds.
41579 while test "x$ac_lo" != "x$ac_hi"; do
41580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41581 cat >conftest.$ac_ext <<_ACEOF
41584 cat confdefs.h >>conftest.$ac_ext
41585 cat >>conftest.$ac_ext <<_ACEOF
41586 /* end confdefs.h. */
41587 $ac_includes_default
41591 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41598 rm -f conftest.$ac_objext
41599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41600 (eval $ac_compile) 2>conftest.er1
41602 grep -v '^ *+' conftest.er1 >conftest.err
41604 cat conftest.err >&5
41605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606 (exit $ac_status); } &&
41607 { ac_try='test -z "$ac_c_werror_flag"
41608 || test ! -s conftest.err'
41609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41610 (eval $ac_try) 2>&5
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); }; } &&
41614 { ac_try='test -s conftest.$ac_objext'
41615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616 (eval $ac_try) 2>&5
41618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619 (exit $ac_status); }; }; then
41622 echo "$as_me: failed program was:" >&5
41623 sed 's/^/| /' conftest.$ac_ext >&5
41625 ac_lo=`expr '(' $ac_mid ')' + 1`
41627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41630 ?*) ac_cv_sizeof_long=$ac_lo;;
41631 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41632 See \`config.log' for more details." >&5
41633 echo "$as_me: error: cannot compute sizeof (long), 77
41634 See \`config.log' for more details." >&2;}
41635 { (exit 1); exit 1; }; } ;;
41638 if test "$cross_compiling" = yes; then
41639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41640 See \`config.log' for more details." >&5
41641 echo "$as_me: error: cannot run test program while cross compiling
41642 See \`config.log' for more details." >&2;}
41643 { (exit 1); exit 1; }; }
41645 cat >conftest.$ac_ext <<_ACEOF
41648 cat confdefs.h >>conftest.$ac_ext
41649 cat >>conftest.$ac_ext <<_ACEOF
41650 /* end confdefs.h. */
41651 $ac_includes_default
41652 long longval () { return (long) (sizeof (long)); }
41653 unsigned long ulongval () { return (long) (sizeof (long)); }
41655 #include <stdlib.h>
41660 FILE *f = fopen ("conftest.val", "w");
41663 if (((long) (sizeof (long))) < 0)
41665 long i = longval ();
41666 if (i != ((long) (sizeof (long))))
41668 fprintf (f, "%ld\n", i);
41672 unsigned long i = ulongval ();
41673 if (i != ((long) (sizeof (long))))
41675 fprintf (f, "%lu\n", i);
41677 exit (ferror (f) || fclose (f) != 0);
41683 rm -f conftest$ac_exeext
41684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41685 (eval $ac_link) 2>&5
41687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41690 (eval $ac_try) 2>&5
41692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41693 (exit $ac_status); }; }; then
41694 ac_cv_sizeof_long=`cat conftest.val`
41696 echo "$as_me: program exited with status $ac_status" >&5
41697 echo "$as_me: failed program was:" >&5
41698 sed 's/^/| /' conftest.$ac_ext >&5
41700 ( exit $ac_status )
41701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41702 See \`config.log' for more details." >&5
41703 echo "$as_me: error: cannot compute sizeof (long), 77
41704 See \`config.log' for more details." >&2;}
41705 { (exit 1); exit 1; }; }
41707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41712 ac_cv_sizeof_long=0
41715 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41716 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41717 cat >>confdefs.h <<_ACEOF
41718 #define SIZEOF_LONG $ac_cv_sizeof_long
41722 echo "$as_me:$LINENO: checking for wchar_t" >&5
41723 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41724 if test "${ac_cv_type_wchar_t+set}" = set; then
41725 echo $ECHO_N "(cached) $ECHO_C" >&6
41727 cat >conftest.$ac_ext <<_ACEOF
41730 cat confdefs.h >>conftest.$ac_ext
41731 cat >>conftest.$ac_ext <<_ACEOF
41732 /* end confdefs.h. */
41733 $ac_includes_default
41739 if (sizeof (wchar_t))
41745 rm -f conftest.$ac_objext
41746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41747 (eval $ac_compile) 2>conftest.er1
41749 grep -v '^ *+' conftest.er1 >conftest.err
41751 cat conftest.err >&5
41752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753 (exit $ac_status); } &&
41754 { ac_try='test -z "$ac_c_werror_flag"
41755 || test ! -s conftest.err'
41756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41757 (eval $ac_try) 2>&5
41759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760 (exit $ac_status); }; } &&
41761 { ac_try='test -s conftest.$ac_objext'
41762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41763 (eval $ac_try) 2>&5
41765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766 (exit $ac_status); }; }; then
41767 ac_cv_type_wchar_t=yes
41769 echo "$as_me: failed program was:" >&5
41770 sed 's/^/| /' conftest.$ac_ext >&5
41772 ac_cv_type_wchar_t=no
41774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41776 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41777 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41779 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41780 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41781 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41782 echo $ECHO_N "(cached) $ECHO_C" >&6
41784 if test "$ac_cv_type_wchar_t" = yes; then
41785 # The cast to unsigned long works around a bug in the HP C Compiler
41786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41788 # This bug is HP SR number 8606223364.
41789 if test "$cross_compiling" = yes; then
41790 # Depending upon the size, compute the lo and hi bounds.
41791 cat >conftest.$ac_ext <<_ACEOF
41794 cat confdefs.h >>conftest.$ac_ext
41795 cat >>conftest.$ac_ext <<_ACEOF
41796 /* end confdefs.h. */
41797 $ac_includes_default
41801 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41808 rm -f conftest.$ac_objext
41809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41810 (eval $ac_compile) 2>conftest.er1
41812 grep -v '^ *+' conftest.er1 >conftest.err
41814 cat conftest.err >&5
41815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41816 (exit $ac_status); } &&
41817 { ac_try='test -z "$ac_c_werror_flag"
41818 || test ! -s conftest.err'
41819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41820 (eval $ac_try) 2>&5
41822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41823 (exit $ac_status); }; } &&
41824 { ac_try='test -s conftest.$ac_objext'
41825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41826 (eval $ac_try) 2>&5
41828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829 (exit $ac_status); }; }; then
41832 cat >conftest.$ac_ext <<_ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h. */
41838 $ac_includes_default
41842 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41849 rm -f conftest.$ac_objext
41850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41851 (eval $ac_compile) 2>conftest.er1
41853 grep -v '^ *+' conftest.er1 >conftest.err
41855 cat conftest.err >&5
41856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857 (exit $ac_status); } &&
41858 { ac_try='test -z "$ac_c_werror_flag"
41859 || test ! -s conftest.err'
41860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41861 (eval $ac_try) 2>&5
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); }; } &&
41865 { ac_try='test -s conftest.$ac_objext'
41866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41867 (eval $ac_try) 2>&5
41869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870 (exit $ac_status); }; }; then
41871 ac_hi=$ac_mid; break
41873 echo "$as_me: failed program was:" >&5
41874 sed 's/^/| /' conftest.$ac_ext >&5
41876 ac_lo=`expr $ac_mid + 1`
41877 if test $ac_lo -le $ac_mid; then
41881 ac_mid=`expr 2 '*' $ac_mid + 1`
41883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41886 echo "$as_me: failed program was:" >&5
41887 sed 's/^/| /' conftest.$ac_ext >&5
41889 cat >conftest.$ac_ext <<_ACEOF
41892 cat confdefs.h >>conftest.$ac_ext
41893 cat >>conftest.$ac_ext <<_ACEOF
41894 /* end confdefs.h. */
41895 $ac_includes_default
41899 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41906 rm -f conftest.$ac_objext
41907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41908 (eval $ac_compile) 2>conftest.er1
41910 grep -v '^ *+' conftest.er1 >conftest.err
41912 cat conftest.err >&5
41913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41914 (exit $ac_status); } &&
41915 { ac_try='test -z "$ac_c_werror_flag"
41916 || test ! -s conftest.err'
41917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41918 (eval $ac_try) 2>&5
41920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921 (exit $ac_status); }; } &&
41922 { ac_try='test -s conftest.$ac_objext'
41923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41924 (eval $ac_try) 2>&5
41926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41927 (exit $ac_status); }; }; then
41930 cat >conftest.$ac_ext <<_ACEOF
41933 cat confdefs.h >>conftest.$ac_ext
41934 cat >>conftest.$ac_ext <<_ACEOF
41935 /* end confdefs.h. */
41936 $ac_includes_default
41940 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41947 rm -f conftest.$ac_objext
41948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41949 (eval $ac_compile) 2>conftest.er1
41951 grep -v '^ *+' conftest.er1 >conftest.err
41953 cat conftest.err >&5
41954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41955 (exit $ac_status); } &&
41956 { ac_try='test -z "$ac_c_werror_flag"
41957 || test ! -s conftest.err'
41958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41959 (eval $ac_try) 2>&5
41961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962 (exit $ac_status); }; } &&
41963 { ac_try='test -s conftest.$ac_objext'
41964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41965 (eval $ac_try) 2>&5
41967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968 (exit $ac_status); }; }; then
41969 ac_lo=$ac_mid; break
41971 echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41974 ac_hi=`expr '(' $ac_mid ')' - 1`
41975 if test $ac_mid -le $ac_hi; then
41979 ac_mid=`expr 2 '*' $ac_mid`
41981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41984 echo "$as_me: failed program was:" >&5
41985 sed 's/^/| /' conftest.$ac_ext >&5
41989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41992 # Binary search between lo and hi bounds.
41993 while test "x$ac_lo" != "x$ac_hi"; do
41994 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41995 cat >conftest.$ac_ext <<_ACEOF
41998 cat confdefs.h >>conftest.$ac_ext
41999 cat >>conftest.$ac_ext <<_ACEOF
42000 /* end confdefs.h. */
42001 $ac_includes_default
42005 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42012 rm -f conftest.$ac_objext
42013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42014 (eval $ac_compile) 2>conftest.er1
42016 grep -v '^ *+' conftest.er1 >conftest.err
42018 cat conftest.err >&5
42019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42020 (exit $ac_status); } &&
42021 { ac_try='test -z "$ac_c_werror_flag"
42022 || test ! -s conftest.err'
42023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42024 (eval $ac_try) 2>&5
42026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027 (exit $ac_status); }; } &&
42028 { ac_try='test -s conftest.$ac_objext'
42029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42030 (eval $ac_try) 2>&5
42032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033 (exit $ac_status); }; }; then
42036 echo "$as_me: failed program was:" >&5
42037 sed 's/^/| /' conftest.$ac_ext >&5
42039 ac_lo=`expr '(' $ac_mid ')' + 1`
42041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42044 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42045 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42046 See \`config.log' for more details." >&5
42047 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42048 See \`config.log' for more details." >&2;}
42049 { (exit 1); exit 1; }; } ;;
42052 if test "$cross_compiling" = yes; then
42053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42054 See \`config.log' for more details." >&5
42055 echo "$as_me: error: cannot run test program while cross compiling
42056 See \`config.log' for more details." >&2;}
42057 { (exit 1); exit 1; }; }
42059 cat >conftest.$ac_ext <<_ACEOF
42062 cat confdefs.h >>conftest.$ac_ext
42063 cat >>conftest.$ac_ext <<_ACEOF
42064 /* end confdefs.h. */
42065 $ac_includes_default
42066 long longval () { return (long) (sizeof (wchar_t)); }
42067 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42069 #include <stdlib.h>
42074 FILE *f = fopen ("conftest.val", "w");
42077 if (((long) (sizeof (wchar_t))) < 0)
42079 long i = longval ();
42080 if (i != ((long) (sizeof (wchar_t))))
42082 fprintf (f, "%ld\n", i);
42086 unsigned long i = ulongval ();
42087 if (i != ((long) (sizeof (wchar_t))))
42089 fprintf (f, "%lu\n", i);
42091 exit (ferror (f) || fclose (f) != 0);
42097 rm -f conftest$ac_exeext
42098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42099 (eval $ac_link) 2>&5
42101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42104 (eval $ac_try) 2>&5
42106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107 (exit $ac_status); }; }; then
42108 ac_cv_sizeof_wchar_t=`cat conftest.val`
42110 echo "$as_me: program exited with status $ac_status" >&5
42111 echo "$as_me: failed program was:" >&5
42112 sed 's/^/| /' conftest.$ac_ext >&5
42114 ( exit $ac_status )
42115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42116 See \`config.log' for more details." >&5
42117 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42118 See \`config.log' for more details." >&2;}
42119 { (exit 1); exit 1; }; }
42121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42126 ac_cv_sizeof_wchar_t=0
42129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42130 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42131 cat >>confdefs.h <<_ACEOF
42132 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42137 if test "$ac_cv_sizeof_int" -lt 4 ; then
42138 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42139 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42142 cat >>confdefs.h <<\_ACEOF
42143 #define LBER_INT_T long
42148 cat >>confdefs.h <<\_ACEOF
42149 #define LBER_INT_T int
42155 cat >>confdefs.h <<\_ACEOF
42156 #define LBER_LEN_T long
42160 cat >>confdefs.h <<\_ACEOF
42161 #define LBER_SOCKET_T int
42165 cat >>confdefs.h <<\_ACEOF
42166 #define LBER_TAG_T long
42170 echo "$as_me:$LINENO: checking for working memcmp" >&5
42171 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42172 if test "${ac_cv_func_memcmp_working+set}" = set; then
42173 echo $ECHO_N "(cached) $ECHO_C" >&6
42175 if test "$cross_compiling" = yes; then
42176 ac_cv_func_memcmp_working=no
42178 cat >conftest.$ac_ext <<_ACEOF
42181 cat confdefs.h >>conftest.$ac_ext
42182 cat >>conftest.$ac_ext <<_ACEOF
42183 /* end confdefs.h. */
42184 $ac_includes_default
42189 /* Some versions of memcmp are not 8-bit clean. */
42190 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42191 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42194 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42195 or more and with at least one buffer not starting on a 4-byte boundary.
42196 William Lewis provided this test program. */
42201 for (i = 0; i < 4; i++)
42205 strcpy (a, "--------01111111");
42206 strcpy (b, "--------10000000");
42207 if (memcmp (a, b, 16) >= 0)
42217 rm -f conftest$ac_exeext
42218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42219 (eval $ac_link) 2>&5
42221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42224 (eval $ac_try) 2>&5
42226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227 (exit $ac_status); }; }; then
42228 ac_cv_func_memcmp_working=yes
42230 echo "$as_me: program exited with status $ac_status" >&5
42231 echo "$as_me: failed program was:" >&5
42232 sed 's/^/| /' conftest.$ac_ext >&5
42234 ( exit $ac_status )
42235 ac_cv_func_memcmp_working=no
42237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42240 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42241 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42242 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42243 "memcmp.$ac_objext" | \
42244 *" memcmp.$ac_objext" | \
42245 "memcmp.$ac_objext "* | \
42246 *" memcmp.$ac_objext "* ) ;;
42247 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42252 if test $ac_cv_func_memcmp_working = no ; then
42254 cat >>confdefs.h <<\_ACEOF
42255 #define NEED_MEMCMP_REPLACEMENT 1
42261 for ac_func in strftime
42263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42264 echo "$as_me:$LINENO: checking for $ac_func" >&5
42265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42266 if eval "test \"\${$as_ac_var+set}\" = set"; then
42267 echo $ECHO_N "(cached) $ECHO_C" >&6
42269 cat >conftest.$ac_ext <<_ACEOF
42272 cat confdefs.h >>conftest.$ac_ext
42273 cat >>conftest.$ac_ext <<_ACEOF
42274 /* end confdefs.h. */
42275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42277 #define $ac_func innocuous_$ac_func
42279 /* System header to define __stub macros and hopefully few prototypes,
42280 which can conflict with char $ac_func (); below.
42281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42282 <limits.h> exists even on freestanding compilers. */
42285 # include <limits.h>
42287 # include <assert.h>
42292 /* Override any gcc2 internal prototype to avoid an error. */
42297 /* We use char because int might match the return type of a gcc2
42298 builtin and then its argument prototype would still apply. */
42300 /* The GNU C library defines this for functions which it implements
42301 to always fail with ENOSYS. Some functions are actually named
42302 something starting with __ and the normal name is an alias. */
42303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42306 char (*f) () = $ac_func;
42315 return f != $ac_func;
42320 rm -f conftest.$ac_objext conftest$ac_exeext
42321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42322 (eval $ac_link) 2>conftest.er1
42324 grep -v '^ *+' conftest.er1 >conftest.err
42326 cat conftest.err >&5
42327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328 (exit $ac_status); } &&
42329 { ac_try='test -z "$ac_c_werror_flag"
42330 || test ! -s conftest.err'
42331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42332 (eval $ac_try) 2>&5
42334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42335 (exit $ac_status); }; } &&
42336 { ac_try='test -s conftest$ac_exeext'
42337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42338 (eval $ac_try) 2>&5
42340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42341 (exit $ac_status); }; }; then
42342 eval "$as_ac_var=yes"
42344 echo "$as_me: failed program was:" >&5
42345 sed 's/^/| /' conftest.$ac_ext >&5
42347 eval "$as_ac_var=no"
42349 rm -f conftest.err conftest.$ac_objext \
42350 conftest$ac_exeext conftest.$ac_ext
42352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42354 if test `eval echo '${'$as_ac_var'}'` = yes; then
42355 cat >>confdefs.h <<_ACEOF
42356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42360 # strftime is in -lintl on SCO UNIX.
42361 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42362 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42363 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42364 echo $ECHO_N "(cached) $ECHO_C" >&6
42366 ac_check_lib_save_LIBS=$LIBS
42367 LIBS="-lintl $LIBS"
42368 cat >conftest.$ac_ext <<_ACEOF
42371 cat confdefs.h >>conftest.$ac_ext
42372 cat >>conftest.$ac_ext <<_ACEOF
42373 /* end confdefs.h. */
42375 /* Override any gcc2 internal prototype to avoid an error. */
42379 /* We use char because int might match the return type of a gcc2
42380 builtin and then its argument prototype would still apply. */
42390 rm -f conftest.$ac_objext conftest$ac_exeext
42391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42392 (eval $ac_link) 2>conftest.er1
42394 grep -v '^ *+' conftest.er1 >conftest.err
42396 cat conftest.err >&5
42397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); } &&
42399 { ac_try='test -z "$ac_c_werror_flag"
42400 || test ! -s conftest.err'
42401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42402 (eval $ac_try) 2>&5
42404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42405 (exit $ac_status); }; } &&
42406 { ac_try='test -s conftest$ac_exeext'
42407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42408 (eval $ac_try) 2>&5
42410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411 (exit $ac_status); }; }; then
42412 ac_cv_lib_intl_strftime=yes
42414 echo "$as_me: failed program was:" >&5
42415 sed 's/^/| /' conftest.$ac_ext >&5
42417 ac_cv_lib_intl_strftime=no
42419 rm -f conftest.err conftest.$ac_objext \
42420 conftest$ac_exeext conftest.$ac_ext
42421 LIBS=$ac_check_lib_save_LIBS
42423 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42424 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42425 if test $ac_cv_lib_intl_strftime = yes; then
42426 cat >>confdefs.h <<\_ACEOF
42427 #define HAVE_STRFTIME 1
42430 LIBS="-lintl $LIBS"
42437 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42438 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42439 if test "${ol_cv_func_inet_aton+set}" = set; then
42440 echo $ECHO_N "(cached) $ECHO_C" >&6
42442 cat >conftest.$ac_ext <<_ACEOF
42445 cat confdefs.h >>conftest.$ac_ext
42446 cat >>conftest.$ac_ext <<_ACEOF
42447 /* end confdefs.h. */
42449 #ifdef HAVE_SYS_TYPES_H
42450 # include <sys/types.h>
42452 #ifdef HAVE_SYS_SOCKET_H
42453 # include <sys/socket.h>
42454 # ifdef HAVE_SYS_SELECT_H
42455 # include <sys/select.h>
42457 # include <netinet/in.h>
42458 # ifdef HAVE_ARPA_INET_H
42459 # include <arpa/inet.h>
42467 int rc = inet_aton( "255.255.255.255", &in );
42472 rm -f conftest.$ac_objext conftest$ac_exeext
42473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42474 (eval $ac_link) 2>conftest.er1
42476 grep -v '^ *+' conftest.er1 >conftest.err
42478 cat conftest.err >&5
42479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480 (exit $ac_status); } &&
42481 { ac_try='test -z "$ac_c_werror_flag"
42482 || test ! -s conftest.err'
42483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42484 (eval $ac_try) 2>&5
42486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487 (exit $ac_status); }; } &&
42488 { ac_try='test -s conftest$ac_exeext'
42489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42490 (eval $ac_try) 2>&5
42492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42493 (exit $ac_status); }; }; then
42494 ol_cv_func_inet_aton=yes
42496 echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42499 ol_cv_func_inet_aton=no
42501 rm -f conftest.err conftest.$ac_objext \
42502 conftest$ac_exeext conftest.$ac_ext
42504 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42505 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42506 if test $ol_cv_func_inet_aton != no; then
42508 cat >>confdefs.h <<\_ACEOF
42509 #define HAVE_INET_ATON 1
42515 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42516 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42517 if test "${ac_cv_func__spawnlp+set}" = set; then
42518 echo $ECHO_N "(cached) $ECHO_C" >&6
42520 cat >conftest.$ac_ext <<_ACEOF
42523 cat confdefs.h >>conftest.$ac_ext
42524 cat >>conftest.$ac_ext <<_ACEOF
42525 /* end confdefs.h. */
42526 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42528 #define _spawnlp innocuous__spawnlp
42530 /* System header to define __stub macros and hopefully few prototypes,
42531 which can conflict with char _spawnlp (); below.
42532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42533 <limits.h> exists even on freestanding compilers. */
42536 # include <limits.h>
42538 # include <assert.h>
42543 /* Override any gcc2 internal prototype to avoid an error. */
42548 /* We use char because int might match the return type of a gcc2
42549 builtin and then its argument prototype would still apply. */
42551 /* The GNU C library defines this for functions which it implements
42552 to always fail with ENOSYS. Some functions are actually named
42553 something starting with __ and the normal name is an alias. */
42554 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42557 char (*f) () = _spawnlp;
42566 return f != _spawnlp;
42571 rm -f conftest.$ac_objext conftest$ac_exeext
42572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42573 (eval $ac_link) 2>conftest.er1
42575 grep -v '^ *+' conftest.er1 >conftest.err
42577 cat conftest.err >&5
42578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579 (exit $ac_status); } &&
42580 { ac_try='test -z "$ac_c_werror_flag"
42581 || test ! -s conftest.err'
42582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42583 (eval $ac_try) 2>&5
42585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42586 (exit $ac_status); }; } &&
42587 { ac_try='test -s conftest$ac_exeext'
42588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42589 (eval $ac_try) 2>&5
42591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42592 (exit $ac_status); }; }; then
42593 ac_cv_func__spawnlp=yes
42595 echo "$as_me: failed program was:" >&5
42596 sed 's/^/| /' conftest.$ac_ext >&5
42598 ac_cv_func__spawnlp=no
42600 rm -f conftest.err conftest.$ac_objext \
42601 conftest$ac_exeext conftest.$ac_ext
42603 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42604 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42605 if test $ac_cv_func__spawnlp = yes; then
42607 cat >>confdefs.h <<\_ACEOF
42608 #define HAVE_SPAWNLP 1
42614 echo "$as_me:$LINENO: checking for _snprintf" >&5
42615 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42616 if test "${ac_cv_func__snprintf+set}" = set; then
42617 echo $ECHO_N "(cached) $ECHO_C" >&6
42619 cat >conftest.$ac_ext <<_ACEOF
42622 cat confdefs.h >>conftest.$ac_ext
42623 cat >>conftest.$ac_ext <<_ACEOF
42624 /* end confdefs.h. */
42625 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42627 #define _snprintf innocuous__snprintf
42629 /* System header to define __stub macros and hopefully few prototypes,
42630 which can conflict with char _snprintf (); below.
42631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42632 <limits.h> exists even on freestanding compilers. */
42635 # include <limits.h>
42637 # include <assert.h>
42642 /* Override any gcc2 internal prototype to avoid an error. */
42647 /* We use char because int might match the return type of a gcc2
42648 builtin and then its argument prototype would still apply. */
42650 /* The GNU C library defines this for functions which it implements
42651 to always fail with ENOSYS. Some functions are actually named
42652 something starting with __ and the normal name is an alias. */
42653 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42656 char (*f) () = _snprintf;
42665 return f != _snprintf;
42670 rm -f conftest.$ac_objext conftest$ac_exeext
42671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42672 (eval $ac_link) 2>conftest.er1
42674 grep -v '^ *+' conftest.er1 >conftest.err
42676 cat conftest.err >&5
42677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678 (exit $ac_status); } &&
42679 { ac_try='test -z "$ac_c_werror_flag"
42680 || test ! -s conftest.err'
42681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42682 (eval $ac_try) 2>&5
42684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42685 (exit $ac_status); }; } &&
42686 { ac_try='test -s conftest$ac_exeext'
42687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42688 (eval $ac_try) 2>&5
42690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691 (exit $ac_status); }; }; then
42692 ac_cv_func__snprintf=yes
42694 echo "$as_me: failed program was:" >&5
42695 sed 's/^/| /' conftest.$ac_ext >&5
42697 ac_cv_func__snprintf=no
42699 rm -f conftest.err conftest.$ac_objext \
42700 conftest$ac_exeext conftest.$ac_ext
42702 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42703 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42704 if test $ac_cv_func__snprintf = yes; then
42705 ac_cv_func_snprintf=yes
42707 cat >>confdefs.h <<\_ACEOF
42708 #define snprintf _snprintf
42715 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42716 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42717 if test "${ac_cv_func__vsnprintf+set}" = set; then
42718 echo $ECHO_N "(cached) $ECHO_C" >&6
42720 cat >conftest.$ac_ext <<_ACEOF
42723 cat confdefs.h >>conftest.$ac_ext
42724 cat >>conftest.$ac_ext <<_ACEOF
42725 /* end confdefs.h. */
42726 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42728 #define _vsnprintf innocuous__vsnprintf
42730 /* System header to define __stub macros and hopefully few prototypes,
42731 which can conflict with char _vsnprintf (); below.
42732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42733 <limits.h> exists even on freestanding compilers. */
42736 # include <limits.h>
42738 # include <assert.h>
42743 /* Override any gcc2 internal prototype to avoid an error. */
42748 /* We use char because int might match the return type of a gcc2
42749 builtin and then its argument prototype would still apply. */
42750 char _vsnprintf ();
42751 /* The GNU C library defines this for functions which it implements
42752 to always fail with ENOSYS. Some functions are actually named
42753 something starting with __ and the normal name is an alias. */
42754 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42757 char (*f) () = _vsnprintf;
42766 return f != _vsnprintf;
42771 rm -f conftest.$ac_objext conftest$ac_exeext
42772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42773 (eval $ac_link) 2>conftest.er1
42775 grep -v '^ *+' conftest.er1 >conftest.err
42777 cat conftest.err >&5
42778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42779 (exit $ac_status); } &&
42780 { ac_try='test -z "$ac_c_werror_flag"
42781 || test ! -s conftest.err'
42782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42783 (eval $ac_try) 2>&5
42785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42786 (exit $ac_status); }; } &&
42787 { ac_try='test -s conftest$ac_exeext'
42788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42789 (eval $ac_try) 2>&5
42791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42792 (exit $ac_status); }; }; then
42793 ac_cv_func__vsnprintf=yes
42795 echo "$as_me: failed program was:" >&5
42796 sed 's/^/| /' conftest.$ac_ext >&5
42798 ac_cv_func__vsnprintf=no
42800 rm -f conftest.err conftest.$ac_objext \
42801 conftest$ac_exeext conftest.$ac_ext
42803 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42804 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42805 if test $ac_cv_func__vsnprintf = yes; then
42806 ac_cv_func_vsnprintf=yes
42808 cat >>confdefs.h <<\_ACEOF
42809 #define vsnprintf _vsnprintf
42817 for ac_func in vprintf
42819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42820 echo "$as_me:$LINENO: checking for $ac_func" >&5
42821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42822 if eval "test \"\${$as_ac_var+set}\" = set"; then
42823 echo $ECHO_N "(cached) $ECHO_C" >&6
42825 cat >conftest.$ac_ext <<_ACEOF
42828 cat confdefs.h >>conftest.$ac_ext
42829 cat >>conftest.$ac_ext <<_ACEOF
42830 /* end confdefs.h. */
42831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42833 #define $ac_func innocuous_$ac_func
42835 /* System header to define __stub macros and hopefully few prototypes,
42836 which can conflict with char $ac_func (); below.
42837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42838 <limits.h> exists even on freestanding compilers. */
42841 # include <limits.h>
42843 # include <assert.h>
42848 /* Override any gcc2 internal prototype to avoid an error. */
42853 /* We use char because int might match the return type of a gcc2
42854 builtin and then its argument prototype would still apply. */
42856 /* The GNU C library defines this for functions which it implements
42857 to always fail with ENOSYS. Some functions are actually named
42858 something starting with __ and the normal name is an alias. */
42859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42862 char (*f) () = $ac_func;
42871 return f != $ac_func;
42876 rm -f conftest.$ac_objext conftest$ac_exeext
42877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42878 (eval $ac_link) 2>conftest.er1
42880 grep -v '^ *+' conftest.er1 >conftest.err
42882 cat conftest.err >&5
42883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884 (exit $ac_status); } &&
42885 { ac_try='test -z "$ac_c_werror_flag"
42886 || test ! -s conftest.err'
42887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42888 (eval $ac_try) 2>&5
42890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42891 (exit $ac_status); }; } &&
42892 { ac_try='test -s conftest$ac_exeext'
42893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42894 (eval $ac_try) 2>&5
42896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42897 (exit $ac_status); }; }; then
42898 eval "$as_ac_var=yes"
42900 echo "$as_me: failed program was:" >&5
42901 sed 's/^/| /' conftest.$ac_ext >&5
42903 eval "$as_ac_var=no"
42905 rm -f conftest.err conftest.$ac_objext \
42906 conftest$ac_exeext conftest.$ac_ext
42908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42910 if test `eval echo '${'$as_ac_var'}'` = yes; then
42911 cat >>confdefs.h <<_ACEOF
42912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42915 echo "$as_me:$LINENO: checking for _doprnt" >&5
42916 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42917 if test "${ac_cv_func__doprnt+set}" = set; then
42918 echo $ECHO_N "(cached) $ECHO_C" >&6
42920 cat >conftest.$ac_ext <<_ACEOF
42923 cat confdefs.h >>conftest.$ac_ext
42924 cat >>conftest.$ac_ext <<_ACEOF
42925 /* end confdefs.h. */
42926 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42928 #define _doprnt innocuous__doprnt
42930 /* System header to define __stub macros and hopefully few prototypes,
42931 which can conflict with char _doprnt (); below.
42932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42933 <limits.h> exists even on freestanding compilers. */
42936 # include <limits.h>
42938 # include <assert.h>
42943 /* Override any gcc2 internal prototype to avoid an error. */
42948 /* We use char because int might match the return type of a gcc2
42949 builtin and then its argument prototype would still apply. */
42951 /* The GNU C library defines this for functions which it implements
42952 to always fail with ENOSYS. Some functions are actually named
42953 something starting with __ and the normal name is an alias. */
42954 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42957 char (*f) () = _doprnt;
42966 return f != _doprnt;
42971 rm -f conftest.$ac_objext conftest$ac_exeext
42972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42973 (eval $ac_link) 2>conftest.er1
42975 grep -v '^ *+' conftest.er1 >conftest.err
42977 cat conftest.err >&5
42978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42979 (exit $ac_status); } &&
42980 { ac_try='test -z "$ac_c_werror_flag"
42981 || test ! -s conftest.err'
42982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42983 (eval $ac_try) 2>&5
42985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986 (exit $ac_status); }; } &&
42987 { ac_try='test -s conftest$ac_exeext'
42988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42989 (eval $ac_try) 2>&5
42991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42992 (exit $ac_status); }; }; then
42993 ac_cv_func__doprnt=yes
42995 echo "$as_me: failed program was:" >&5
42996 sed 's/^/| /' conftest.$ac_ext >&5
42998 ac_cv_func__doprnt=no
43000 rm -f conftest.err conftest.$ac_objext \
43001 conftest$ac_exeext conftest.$ac_ext
43003 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43004 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43005 if test $ac_cv_func__doprnt = yes; then
43007 cat >>confdefs.h <<\_ACEOF
43008 #define HAVE_DOPRNT 1
43018 if test $ac_cv_func_vprintf = yes ; then
43021 for ac_func in snprintf vsnprintf
43023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43024 echo "$as_me:$LINENO: checking for $ac_func" >&5
43025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43026 if eval "test \"\${$as_ac_var+set}\" = set"; then
43027 echo $ECHO_N "(cached) $ECHO_C" >&6
43029 cat >conftest.$ac_ext <<_ACEOF
43032 cat confdefs.h >>conftest.$ac_ext
43033 cat >>conftest.$ac_ext <<_ACEOF
43034 /* end confdefs.h. */
43035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43037 #define $ac_func innocuous_$ac_func
43039 /* System header to define __stub macros and hopefully few prototypes,
43040 which can conflict with char $ac_func (); below.
43041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43042 <limits.h> exists even on freestanding compilers. */
43045 # include <limits.h>
43047 # include <assert.h>
43052 /* Override any gcc2 internal prototype to avoid an error. */
43057 /* We use char because int might match the return type of a gcc2
43058 builtin and then its argument prototype would still apply. */
43060 /* The GNU C library defines this for functions which it implements
43061 to always fail with ENOSYS. Some functions are actually named
43062 something starting with __ and the normal name is an alias. */
43063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43066 char (*f) () = $ac_func;
43075 return f != $ac_func;
43080 rm -f conftest.$ac_objext conftest$ac_exeext
43081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43082 (eval $ac_link) 2>conftest.er1
43084 grep -v '^ *+' conftest.er1 >conftest.err
43086 cat conftest.err >&5
43087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088 (exit $ac_status); } &&
43089 { ac_try='test -z "$ac_c_werror_flag"
43090 || test ! -s conftest.err'
43091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43092 (eval $ac_try) 2>&5
43094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43095 (exit $ac_status); }; } &&
43096 { ac_try='test -s conftest$ac_exeext'
43097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43098 (eval $ac_try) 2>&5
43100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43101 (exit $ac_status); }; }; then
43102 eval "$as_ac_var=yes"
43104 echo "$as_me: failed program was:" >&5
43105 sed 's/^/| /' conftest.$ac_ext >&5
43107 eval "$as_ac_var=no"
43109 rm -f conftest.err conftest.$ac_objext \
43110 conftest$ac_exeext conftest.$ac_ext
43112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43114 if test `eval echo '${'$as_ac_var'}'` = yes; then
43115 cat >>confdefs.h <<_ACEOF
43116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43236 echo "$as_me:$LINENO: checking for $ac_func" >&5
43237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43238 if eval "test \"\${$as_ac_var+set}\" = set"; then
43239 echo $ECHO_N "(cached) $ECHO_C" >&6
43241 cat >conftest.$ac_ext <<_ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h. */
43247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43249 #define $ac_func innocuous_$ac_func
43251 /* System header to define __stub macros and hopefully few prototypes,
43252 which can conflict with char $ac_func (); below.
43253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43254 <limits.h> exists even on freestanding compilers. */
43257 # include <limits.h>
43259 # include <assert.h>
43264 /* Override any gcc2 internal prototype to avoid an error. */
43269 /* We use char because int might match the return type of a gcc2
43270 builtin and then its argument prototype would still apply. */
43272 /* The GNU C library defines this for functions which it implements
43273 to always fail with ENOSYS. Some functions are actually named
43274 something starting with __ and the normal name is an alias. */
43275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43278 char (*f) () = $ac_func;
43287 return f != $ac_func;
43292 rm -f conftest.$ac_objext conftest$ac_exeext
43293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43294 (eval $ac_link) 2>conftest.er1
43296 grep -v '^ *+' conftest.er1 >conftest.err
43298 cat conftest.err >&5
43299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43300 (exit $ac_status); } &&
43301 { ac_try='test -z "$ac_c_werror_flag"
43302 || test ! -s conftest.err'
43303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304 (eval $ac_try) 2>&5
43306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307 (exit $ac_status); }; } &&
43308 { ac_try='test -s conftest$ac_exeext'
43309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43310 (eval $ac_try) 2>&5
43312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43313 (exit $ac_status); }; }; then
43314 eval "$as_ac_var=yes"
43316 echo "$as_me: failed program was:" >&5
43317 sed 's/^/| /' conftest.$ac_ext >&5
43319 eval "$as_ac_var=no"
43321 rm -f conftest.err conftest.$ac_objext \
43322 conftest$ac_exeext conftest.$ac_ext
43324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43326 if test `eval echo '${'$as_ac_var'}'` = yes; then
43327 cat >>confdefs.h <<_ACEOF
43328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43337 for ac_func in getopt getpeereid
43339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43340 echo "$as_me:$LINENO: checking for $ac_func" >&5
43341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43342 if eval "test \"\${$as_ac_var+set}\" = set"; then
43343 echo $ECHO_N "(cached) $ECHO_C" >&6
43345 cat >conftest.$ac_ext <<_ACEOF
43348 cat confdefs.h >>conftest.$ac_ext
43349 cat >>conftest.$ac_ext <<_ACEOF
43350 /* end confdefs.h. */
43351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43353 #define $ac_func innocuous_$ac_func
43355 /* System header to define __stub macros and hopefully few prototypes,
43356 which can conflict with char $ac_func (); below.
43357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43358 <limits.h> exists even on freestanding compilers. */
43361 # include <limits.h>
43363 # include <assert.h>
43368 /* Override any gcc2 internal prototype to avoid an error. */
43373 /* We use char because int might match the return type of a gcc2
43374 builtin and then its argument prototype would still apply. */
43376 /* The GNU C library defines this for functions which it implements
43377 to always fail with ENOSYS. Some functions are actually named
43378 something starting with __ and the normal name is an alias. */
43379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43382 char (*f) () = $ac_func;
43391 return f != $ac_func;
43396 rm -f conftest.$ac_objext conftest$ac_exeext
43397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43398 (eval $ac_link) 2>conftest.er1
43400 grep -v '^ *+' conftest.er1 >conftest.err
43402 cat conftest.err >&5
43403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43404 (exit $ac_status); } &&
43405 { ac_try='test -z "$ac_c_werror_flag"
43406 || test ! -s conftest.err'
43407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43408 (eval $ac_try) 2>&5
43410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411 (exit $ac_status); }; } &&
43412 { ac_try='test -s conftest$ac_exeext'
43413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414 (eval $ac_try) 2>&5
43416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417 (exit $ac_status); }; }; then
43418 eval "$as_ac_var=yes"
43420 echo "$as_me: failed program was:" >&5
43421 sed 's/^/| /' conftest.$ac_ext >&5
43423 eval "$as_ac_var=no"
43425 rm -f conftest.err conftest.$ac_objext \
43426 conftest$ac_exeext conftest.$ac_ext
43428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43430 if test `eval echo '${'$as_ac_var'}'` = yes; then
43431 cat >>confdefs.h <<_ACEOF
43432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43437 "$ac_func.$ac_objext" | \
43438 *" $ac_func.$ac_objext" | \
43439 "$ac_func.$ac_objext "* | \
43440 *" $ac_func.$ac_objext "* ) ;;
43441 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43449 if test "$ac_cv_func_getopt" != yes; then
43450 LIBSRCS="$LIBSRCS getopt.c"
43453 if test "$ac_cv_func_getpeereid" != yes; then
43455 for ac_func in getpeerucred
43457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43458 echo "$as_me:$LINENO: checking for $ac_func" >&5
43459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43460 if eval "test \"\${$as_ac_var+set}\" = set"; then
43461 echo $ECHO_N "(cached) $ECHO_C" >&6
43463 cat >conftest.$ac_ext <<_ACEOF
43466 cat confdefs.h >>conftest.$ac_ext
43467 cat >>conftest.$ac_ext <<_ACEOF
43468 /* end confdefs.h. */
43469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43471 #define $ac_func innocuous_$ac_func
43473 /* System header to define __stub macros and hopefully few prototypes,
43474 which can conflict with char $ac_func (); below.
43475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43476 <limits.h> exists even on freestanding compilers. */
43479 # include <limits.h>
43481 # include <assert.h>
43486 /* Override any gcc2 internal prototype to avoid an error. */
43491 /* We use char because int might match the return type of a gcc2
43492 builtin and then its argument prototype would still apply. */
43494 /* The GNU C library defines this for functions which it implements
43495 to always fail with ENOSYS. Some functions are actually named
43496 something starting with __ and the normal name is an alias. */
43497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43500 char (*f) () = $ac_func;
43509 return f != $ac_func;
43514 rm -f conftest.$ac_objext conftest$ac_exeext
43515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43516 (eval $ac_link) 2>conftest.er1
43518 grep -v '^ *+' conftest.er1 >conftest.err
43520 cat conftest.err >&5
43521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43522 (exit $ac_status); } &&
43523 { ac_try='test -z "$ac_c_werror_flag"
43524 || test ! -s conftest.err'
43525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43526 (eval $ac_try) 2>&5
43528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43529 (exit $ac_status); }; } &&
43530 { ac_try='test -s conftest$ac_exeext'
43531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43532 (eval $ac_try) 2>&5
43534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535 (exit $ac_status); }; }; then
43536 eval "$as_ac_var=yes"
43538 echo "$as_me: failed program was:" >&5
43539 sed 's/^/| /' conftest.$ac_ext >&5
43541 eval "$as_ac_var=no"
43543 rm -f conftest.err conftest.$ac_objext \
43544 conftest$ac_exeext conftest.$ac_ext
43546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43548 if test `eval echo '${'$as_ac_var'}'` = yes; then
43549 cat >>confdefs.h <<_ACEOF
43550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43556 if test "$ac_cv_func_getpeerucred" != yes ; then
43557 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43558 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43559 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43560 echo $ECHO_N "(cached) $ECHO_C" >&6
43562 cat >conftest.$ac_ext <<_ACEOF
43565 cat confdefs.h >>conftest.$ac_ext
43566 cat >>conftest.$ac_ext <<_ACEOF
43567 /* end confdefs.h. */
43568 $ac_includes_default
43569 #ifdef HAVE_SYS_SOCKET_H
43570 #include <sys/socket.h>
43576 static struct msghdr ac_aggr;
43577 if (ac_aggr.msg_accrightslen)
43583 rm -f conftest.$ac_objext
43584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43585 (eval $ac_compile) 2>conftest.er1
43587 grep -v '^ *+' conftest.er1 >conftest.err
43589 cat conftest.err >&5
43590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591 (exit $ac_status); } &&
43592 { ac_try='test -z "$ac_c_werror_flag"
43593 || test ! -s conftest.err'
43594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43595 (eval $ac_try) 2>&5
43597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598 (exit $ac_status); }; } &&
43599 { ac_try='test -s conftest.$ac_objext'
43600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43601 (eval $ac_try) 2>&5
43603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43604 (exit $ac_status); }; }; then
43605 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43607 echo "$as_me: failed program was:" >&5
43608 sed 's/^/| /' conftest.$ac_ext >&5
43610 cat >conftest.$ac_ext <<_ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h. */
43616 $ac_includes_default
43617 #ifdef HAVE_SYS_SOCKET_H
43618 #include <sys/socket.h>
43624 static struct msghdr ac_aggr;
43625 if (sizeof ac_aggr.msg_accrightslen)
43631 rm -f conftest.$ac_objext
43632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43633 (eval $ac_compile) 2>conftest.er1
43635 grep -v '^ *+' conftest.er1 >conftest.err
43637 cat conftest.err >&5
43638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43639 (exit $ac_status); } &&
43640 { ac_try='test -z "$ac_c_werror_flag"
43641 || test ! -s conftest.err'
43642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43643 (eval $ac_try) 2>&5
43645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43646 (exit $ac_status); }; } &&
43647 { ac_try='test -s conftest.$ac_objext'
43648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43649 (eval $ac_try) 2>&5
43651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43652 (exit $ac_status); }; }; then
43653 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43655 echo "$as_me: failed program was:" >&5
43656 sed 's/^/| /' conftest.$ac_ext >&5
43658 ac_cv_member_struct_msghdr_msg_accrightslen=no
43660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43665 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43666 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43668 cat >>confdefs.h <<_ACEOF
43669 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43675 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43676 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43677 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43678 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43679 echo $ECHO_N "(cached) $ECHO_C" >&6
43681 cat >conftest.$ac_ext <<_ACEOF
43684 cat confdefs.h >>conftest.$ac_ext
43685 cat >>conftest.$ac_ext <<_ACEOF
43686 /* end confdefs.h. */
43687 $ac_includes_default
43688 #ifdef HAVE_SYS_SOCKET_H
43689 #include <sys/socket.h>
43695 static struct msghdr ac_aggr;
43696 if (ac_aggr.msg_control)
43702 rm -f conftest.$ac_objext
43703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43704 (eval $ac_compile) 2>conftest.er1
43706 grep -v '^ *+' conftest.er1 >conftest.err
43708 cat conftest.err >&5
43709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710 (exit $ac_status); } &&
43711 { ac_try='test -z "$ac_c_werror_flag"
43712 || test ! -s conftest.err'
43713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43714 (eval $ac_try) 2>&5
43716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43717 (exit $ac_status); }; } &&
43718 { ac_try='test -s conftest.$ac_objext'
43719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43720 (eval $ac_try) 2>&5
43722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43723 (exit $ac_status); }; }; then
43724 ac_cv_member_struct_msghdr_msg_control=yes
43726 echo "$as_me: failed program was:" >&5
43727 sed 's/^/| /' conftest.$ac_ext >&5
43729 cat >conftest.$ac_ext <<_ACEOF
43732 cat confdefs.h >>conftest.$ac_ext
43733 cat >>conftest.$ac_ext <<_ACEOF
43734 /* end confdefs.h. */
43735 $ac_includes_default
43736 #ifdef HAVE_SYS_SOCKET_H
43737 #include <sys/socket.h>
43743 static struct msghdr ac_aggr;
43744 if (sizeof ac_aggr.msg_control)
43750 rm -f conftest.$ac_objext
43751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43752 (eval $ac_compile) 2>conftest.er1
43754 grep -v '^ *+' conftest.er1 >conftest.err
43756 cat conftest.err >&5
43757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758 (exit $ac_status); } &&
43759 { ac_try='test -z "$ac_c_werror_flag"
43760 || test ! -s conftest.err'
43761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43762 (eval $ac_try) 2>&5
43764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43765 (exit $ac_status); }; } &&
43766 { ac_try='test -s conftest.$ac_objext'
43767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43768 (eval $ac_try) 2>&5
43770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771 (exit $ac_status); }; }; then
43772 ac_cv_member_struct_msghdr_msg_control=yes
43774 echo "$as_me: failed program was:" >&5
43775 sed 's/^/| /' conftest.$ac_ext >&5
43777 ac_cv_member_struct_msghdr_msg_control=no
43779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43783 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43784 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43785 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43787 cat >>confdefs.h <<_ACEOF
43788 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43796 LIBSRCS="$LIBSRCS getpeereid.c"
43799 if test "$ac_cv_func_snprintf" != yes ||
43800 test "$ac_cv_func_vsnprintf" != yes; then
43801 if test "$ac_cv_func_snprintf" != yes; then
43803 cat >>confdefs.h <<\_ACEOF
43804 #define snprintf ber_pvt_snprintf
43808 if test "$ac_cv_func_vsnprintf" != yes; then
43810 cat >>confdefs.h <<\_ACEOF
43811 #define vsnprintf ber_pvt_vsnprintf
43818 if test "$ol_enable_slapi" != no ; then
43820 for ac_header in ltdl.h
43822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43824 echo "$as_me:$LINENO: checking for $ac_header" >&5
43825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43827 echo $ECHO_N "(cached) $ECHO_C" >&6
43829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43832 # Is the header compilable?
43833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43835 cat >conftest.$ac_ext <<_ACEOF
43838 cat confdefs.h >>conftest.$ac_ext
43839 cat >>conftest.$ac_ext <<_ACEOF
43840 /* end confdefs.h. */
43841 $ac_includes_default
43842 #include <$ac_header>
43844 rm -f conftest.$ac_objext
43845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43846 (eval $ac_compile) 2>conftest.er1
43848 grep -v '^ *+' conftest.er1 >conftest.err
43850 cat conftest.err >&5
43851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43852 (exit $ac_status); } &&
43853 { ac_try='test -z "$ac_c_werror_flag"
43854 || test ! -s conftest.err'
43855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43856 (eval $ac_try) 2>&5
43858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43859 (exit $ac_status); }; } &&
43860 { ac_try='test -s conftest.$ac_objext'
43861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43862 (eval $ac_try) 2>&5
43864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43865 (exit $ac_status); }; }; then
43866 ac_header_compiler=yes
43868 echo "$as_me: failed program was:" >&5
43869 sed 's/^/| /' conftest.$ac_ext >&5
43871 ac_header_compiler=no
43873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43875 echo "${ECHO_T}$ac_header_compiler" >&6
43877 # Is the header present?
43878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43880 cat >conftest.$ac_ext <<_ACEOF
43883 cat confdefs.h >>conftest.$ac_ext
43884 cat >>conftest.$ac_ext <<_ACEOF
43885 /* end confdefs.h. */
43886 #include <$ac_header>
43888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43891 grep -v '^ *+' conftest.er1 >conftest.err
43893 cat conftest.err >&5
43894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43895 (exit $ac_status); } >/dev/null; then
43896 if test -s conftest.err; then
43897 ac_cpp_err=$ac_c_preproc_warn_flag
43898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43905 if test -z "$ac_cpp_err"; then
43906 ac_header_preproc=yes
43908 echo "$as_me: failed program was:" >&5
43909 sed 's/^/| /' conftest.$ac_ext >&5
43911 ac_header_preproc=no
43913 rm -f conftest.err conftest.$ac_ext
43914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43915 echo "${ECHO_T}$ac_header_preproc" >&6
43917 # So? What about this header?
43918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43924 ac_header_preproc=yes
43927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43941 ## ------------------------------------------ ##
43942 ## Report this to the AC_PACKAGE_NAME lists. ##
43943 ## ------------------------------------------ ##
43946 sed "s/^/$as_me: WARNING: /" >&2
43949 echo "$as_me:$LINENO: checking for $ac_header" >&5
43950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43952 echo $ECHO_N "(cached) $ECHO_C" >&6
43954 eval "$as_ac_Header=\$ac_header_preproc"
43956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43961 cat >>confdefs.h <<_ACEOF
43962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43970 if test $ac_cv_header_ltdl_h != yes ; then
43971 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43972 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
43973 { (exit 1); exit 1; }; }
43975 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
43976 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
43977 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
43978 echo $ECHO_N "(cached) $ECHO_C" >&6
43980 ac_check_lib_save_LIBS=$LIBS
43981 LIBS="-lltdl $LIBS"
43982 cat >conftest.$ac_ext <<_ACEOF
43985 cat confdefs.h >>conftest.$ac_ext
43986 cat >>conftest.$ac_ext <<_ACEOF
43987 /* end confdefs.h. */
43989 /* Override any gcc2 internal prototype to avoid an error. */
43993 /* We use char because int might match the return type of a gcc2
43994 builtin and then its argument prototype would still apply. */
44004 rm -f conftest.$ac_objext conftest$ac_exeext
44005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44006 (eval $ac_link) 2>conftest.er1
44008 grep -v '^ *+' conftest.er1 >conftest.err
44010 cat conftest.err >&5
44011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44012 (exit $ac_status); } &&
44013 { ac_try='test -z "$ac_c_werror_flag"
44014 || test ! -s conftest.err'
44015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44016 (eval $ac_try) 2>&5
44018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44019 (exit $ac_status); }; } &&
44020 { ac_try='test -s conftest$ac_exeext'
44021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44022 (eval $ac_try) 2>&5
44024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44025 (exit $ac_status); }; }; then
44026 ac_cv_lib_ltdl_lt_dlinit=yes
44028 echo "$as_me: failed program was:" >&5
44029 sed 's/^/| /' conftest.$ac_ext >&5
44031 ac_cv_lib_ltdl_lt_dlinit=no
44033 rm -f conftest.err conftest.$ac_objext \
44034 conftest$ac_exeext conftest.$ac_ext
44035 LIBS=$ac_check_lib_save_LIBS
44037 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44038 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44039 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44042 LIBSLAPI=libslapi.a
44043 LIBSLAPITOOLS=../libslapi.a
44045 cat >>confdefs.h <<\_ACEOF
44046 #define HAVE_LIBLTDL 1
44051 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44052 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44053 { (exit 1); exit 1; }; }
44058 cat >>confdefs.h <<\_ACEOF
44059 #define LDAP_SLAPI 1
44064 if test "$ol_enable_debug" != no ; then
44065 if test "$ol_enable_debug" = traditional; then
44067 cat >>confdefs.h <<\_ACEOF
44068 #define OLD_DEBUG 1
44073 cat >>confdefs.h <<\_ACEOF
44074 #define LDAP_DEBUG 1
44078 if test "$ol_enable_syslog" = yes ; then
44080 cat >>confdefs.h <<\_ACEOF
44081 #define LDAP_SYSLOG 1
44085 if test "$ol_link_kbind" != no ; then
44087 cat >>confdefs.h <<\_ACEOF
44088 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44092 if test "$ol_enable_proctitle" != no ; then
44094 cat >>confdefs.h <<\_ACEOF
44095 #define LDAP_PROCTITLE 1
44099 if test "$ol_enable_referrals" != no ; then
44101 cat >>confdefs.h <<\_ACEOF
44102 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44106 if test "$ol_enable_local" != no; then
44108 cat >>confdefs.h <<\_ACEOF
44109 #define LDAP_PF_LOCAL 1
44113 if test "$ol_link_ipv6" != no; then
44115 cat >>confdefs.h <<\_ACEOF
44116 #define LDAP_PF_INET6 1
44120 if test "$ol_enable_cleartext" != no ; then
44122 cat >>confdefs.h <<\_ACEOF
44123 #define SLAPD_CLEARTEXT 1
44127 if test "$ol_enable_crypt" != no ; then
44129 cat >>confdefs.h <<\_ACEOF
44130 #define SLAPD_CRYPT 1
44134 if test "$ol_link_spasswd" != no ; then
44136 cat >>confdefs.h <<\_ACEOF
44137 #define SLAPD_SPASSWD 1
44141 if test "$ol_enable_multimaster" != no ; then
44143 cat >>confdefs.h <<\_ACEOF
44144 #define SLAPD_MULTIMASTER 1
44148 if test "$ol_enable_rlookups" != no ; then
44150 cat >>confdefs.h <<\_ACEOF
44151 #define SLAPD_RLOOKUPS 1
44155 if test "$ol_enable_aci" != no ; then
44156 if test $ol_enable_dynacl = no ; then
44157 ol_enable_dynacl=yes
44158 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44159 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44161 if test "$ol_enable_aci" = mod ; then
44162 MFLAG=SLAPD_MOD_DYNAMIC
44163 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44164 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44165 { (exit 1); exit 1; }; }
44167 MFLAG=SLAPD_MOD_STATIC
44169 WITH_ACI_ENABLED=$ol_enable_aci
44171 cat >>confdefs.h <<_ACEOF
44172 #define SLAPD_ACI_ENABLED $MFLAG
44176 WITH_ACI_ENABLED=no
44178 if test "$ol_enable_dynacl" != no ; then
44180 cat >>confdefs.h <<\_ACEOF
44181 #define SLAP_DYNACL 1
44186 if test "$ol_link_modules" != no ; then
44188 cat >>confdefs.h <<\_ACEOF
44189 #define SLAPD_MODULES 1
44193 SLAPD_MODULES_LDFLAGS="-dlopen self"
44197 cat >>confdefs.h <<\_ACEOF
44198 #define SLAPD_MOD_STATIC 1
44202 cat >>confdefs.h <<\_ACEOF
44203 #define SLAPD_MOD_DYNAMIC 2
44207 if test "$ol_enable_bdb" != no ; then
44209 BUILD_BDB=$ol_enable_bdb
44210 if test "$ol_enable_bdb" = mod ; then
44211 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44212 MFLAG=SLAPD_MOD_DYNAMIC
44214 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44215 MFLAG=SLAPD_MOD_STATIC
44218 cat >>confdefs.h <<_ACEOF
44219 #define SLAPD_BDB $MFLAG
44224 if test "$ol_enable_dnssrv" != no ; then
44226 BUILD_DNSSRV=$ol_enable_dnssrv
44227 if test "$ol_enable_dnssrv" = mod ; then
44228 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44229 MFLAG=SLAPD_MOD_DYNAMIC
44231 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44232 MFLAG=SLAPD_MOD_STATIC
44235 cat >>confdefs.h <<_ACEOF
44236 #define SLAPD_DNSSRV $MFLAG
44241 if test "$ol_enable_hdb" != no ; then
44243 BUILD_HDB=$ol_enable_hdb
44244 if test "$ol_enable_hdb" = mod ; then
44245 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44246 MFLAG=SLAPD_MOD_DYNAMIC
44248 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44249 MFLAG=SLAPD_MOD_STATIC
44252 cat >>confdefs.h <<_ACEOF
44253 #define SLAPD_HDB $MFLAG
44258 if test "$ol_enable_ldap" != no ; then
44260 BUILD_LDAP=$ol_enable_ldap
44261 if test "$ol_enable_ldap" = mod ; then
44262 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44263 MFLAG=SLAPD_MOD_DYNAMIC
44265 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44266 MFLAG=SLAPD_MOD_STATIC
44269 cat >>confdefs.h <<_ACEOF
44270 #define SLAPD_LDAP $MFLAG
44275 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44277 BUILD_LDBM=$ol_enable_ldbm
44278 if test "$ol_enable_ldbm" = mod ; then
44279 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44280 MFLAG=SLAPD_MOD_DYNAMIC
44282 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44283 MFLAG=SLAPD_MOD_STATIC
44286 cat >>confdefs.h <<_ACEOF
44287 #define SLAPD_LDBM $MFLAG
44292 if test "$ol_enable_meta" != no ; then
44294 BUILD_META=$ol_enable_meta
44296 if test "$ol_enable_meta" = mod ; then
44297 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44298 MFLAG=SLAPD_MOD_DYNAMIC
44300 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44301 MFLAG=SLAPD_MOD_STATIC
44304 cat >>confdefs.h <<_ACEOF
44305 #define SLAPD_META $MFLAG
44310 if test "$ol_enable_monitor" != no ; then
44312 BUILD_MONITOR=$ol_enable_monitor
44313 if test "$ol_enable_monitor" = mod ; then
44314 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44315 MFLAG=SLAPD_MOD_DYNAMIC
44317 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44318 MFLAG=SLAPD_MOD_STATIC
44321 cat >>confdefs.h <<_ACEOF
44322 #define SLAPD_MONITOR $MFLAG
44327 if test "$ol_enable_null" != no ; then
44329 BUILD_NULL=$ol_enable_null
44330 if test "$ol_enable_null" = mod ; then
44331 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44332 MFLAG=SLAPD_MOD_DYNAMIC
44334 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44335 MFLAG=SLAPD_MOD_STATIC
44338 cat >>confdefs.h <<_ACEOF
44339 #define SLAPD_NULL $MFLAG
44344 if test "$ol_enable_passwd" != no ; then
44346 BUILD_PASSWD=$ol_enable_passwd
44347 if test "$ol_enable_passwd" = mod ; then
44348 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44349 MFLAG=SLAPD_MOD_DYNAMIC
44351 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44352 MFLAG=SLAPD_MOD_STATIC
44355 cat >>confdefs.h <<_ACEOF
44356 #define SLAPD_PASSWD $MFLAG
44361 if test "$ol_link_perl" != no ; then
44363 BUILD_PERL=$ol_enable_perl
44364 if test "$ol_enable_perl" = mod ; then
44365 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44366 MFLAG=SLAPD_MOD_DYNAMIC
44368 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44369 MFLAG=SLAPD_MOD_STATIC
44372 cat >>confdefs.h <<_ACEOF
44373 #define SLAPD_PERL $MFLAG
44378 if test "$ol_enable_relay" != no ; then
44380 BUILD_RELAY=$ol_enable_relay
44381 if test "$ol_enable_relay" = mod ; then
44382 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44383 MFLAG=SLAPD_MOD_DYNAMIC
44385 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44386 MFLAG=SLAPD_MOD_STATIC
44389 cat >>confdefs.h <<_ACEOF
44390 #define SLAPD_RELAY $MFLAG
44395 if test "$ol_enable_shell" != no ; then
44396 if test "$ol_link_threads" != no ; then
44397 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44398 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44401 BUILD_SHELL=$ol_enable_shell
44402 if test "$ol_enable_shell" = mod ; then
44403 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44404 MFLAG=SLAPD_MOD_DYNAMIC
44406 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44407 MFLAG=SLAPD_MOD_STATIC
44410 cat >>confdefs.h <<_ACEOF
44411 #define SLAPD_SHELL $MFLAG
44416 if test "$ol_link_sql" != no ; then
44418 BUILD_SQL=$ol_enable_sql
44419 if test "$ol_enable_sql" = mod; then
44420 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44421 MFLAG=SLAPD_MOD_DYNAMIC
44423 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44424 MFLAG=SLAPD_MOD_STATIC
44427 cat >>confdefs.h <<_ACEOF
44428 #define SLAPD_SQL $MFLAG
44433 if test "$ol_enable_accesslog" != no ; then
44434 BUILD_ACCESSLOG=$ol_enable_accesslog
44435 if test "$ol_enable_accesslog" = mod ; then
44436 MFLAG=SLAPD_MOD_DYNAMIC
44437 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44439 MFLAG=SLAPD_MOD_STATIC
44440 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44443 cat >>confdefs.h <<_ACEOF
44444 #define SLAPD_OVER_ACCESSLOG $MFLAG
44449 if test "$ol_enable_denyop" != no ; then
44450 BUILD_DENYOP=$ol_enable_denyop
44451 if test "$ol_enable_denyop" = mod ; then
44452 MFLAG=SLAPD_MOD_DYNAMIC
44453 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44455 MFLAG=SLAPD_MOD_STATIC
44456 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44459 cat >>confdefs.h <<_ACEOF
44460 #define SLAPD_OVER_DENYOP $MFLAG
44465 if test "$ol_enable_dyngroup" != no ; then
44466 BUILD_DYNGROUP=$ol_enable_dyngroup
44467 if test "$ol_enable_dyngroup" = mod ; then
44468 MFLAG=SLAPD_MOD_DYNAMIC
44469 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44471 MFLAG=SLAPD_MOD_STATIC
44472 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44475 cat >>confdefs.h <<_ACEOF
44476 #define SLAPD_OVER_DYNGROUP $MFLAG
44481 if test "$ol_enable_dynlist" != no ; then
44482 BUILD_DYNLIST=$ol_enable_dynlist
44483 if test "$ol_enable_dynlist" = mod ; then
44484 MFLAG=SLAPD_MOD_DYNAMIC
44485 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44487 MFLAG=SLAPD_MOD_STATIC
44488 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44491 cat >>confdefs.h <<_ACEOF
44492 #define SLAPD_OVER_DYNLIST $MFLAG
44497 if test "$ol_enable_lastmod" != no ; then
44498 BUILD_LASTMOD=$ol_enable_lastmod
44499 if test "$ol_enable_lastmod" = mod ; then
44500 MFLAG=SLAPD_MOD_DYNAMIC
44501 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44503 MFLAG=SLAPD_MOD_STATIC
44504 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44507 cat >>confdefs.h <<_ACEOF
44508 #define SLAPD_OVER_LASTMOD $MFLAG
44513 if test "$ol_enable_ppolicy" != no ; then
44514 BUILD_PPOLICY=$ol_enable_ppolicy
44515 if test "$ol_enable_ppolicy" = mod ; then
44516 MFLAG=SLAPD_MOD_DYNAMIC
44517 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44519 MFLAG=SLAPD_MOD_STATIC
44520 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44523 cat >>confdefs.h <<_ACEOF
44524 #define SLAPD_OVER_PPOLICY $MFLAG
44529 if test "$ol_enable_proxycache" != no ; then
44530 BUILD_PROXYCACHE=$ol_enable_proxycache
44531 if test "$ol_enable_proxycache" = mod ; then
44532 MFLAG=SLAPD_MOD_DYNAMIC
44533 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44535 MFLAG=SLAPD_MOD_STATIC
44536 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44539 cat >>confdefs.h <<_ACEOF
44540 #define SLAPD_OVER_PROXYCACHE $MFLAG
44545 if test "$ol_enable_refint" != no ; then
44546 BUILD_REFINT=$ol_enable_refint
44547 if test "$ol_enable_refint" = mod ; then
44548 MFLAG=SLAPD_MOD_DYNAMIC
44549 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44551 MFLAG=SLAPD_MOD_STATIC
44552 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44555 cat >>confdefs.h <<_ACEOF
44556 #define SLAPD_OVER_REFINT $MFLAG
44561 if test "$ol_enable_retcode" != no ; then
44562 BUILD_RETCODE=$ol_enable_retcode
44563 if test "$ol_enable_retcode" = mod ; then
44564 MFLAG=SLAPD_MOD_DYNAMIC
44565 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44567 MFLAG=SLAPD_MOD_STATIC
44568 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44571 cat >>confdefs.h <<_ACEOF
44572 #define SLAPD_OVER_RETCODE $MFLAG
44577 if test "$ol_enable_rwm" != no ; then
44579 BUILD_RWM=$ol_enable_rwm
44580 if test "$ol_enable_rwm" = mod ; then
44581 MFLAG=SLAPD_MOD_DYNAMIC
44582 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44584 MFLAG=SLAPD_MOD_STATIC
44585 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44588 cat >>confdefs.h <<_ACEOF
44589 #define SLAPD_OVER_RWM $MFLAG
44594 if test "$ol_enable_syncprov" != no ; then
44595 BUILD_SYNCPROV=$ol_enable_syncprov
44596 if test "$ol_enable_syncprov" = mod ; then
44597 MFLAG=SLAPD_MOD_DYNAMIC
44598 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44600 MFLAG=SLAPD_MOD_STATIC
44601 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44604 cat >>confdefs.h <<_ACEOF
44605 #define SLAPD_OVER_SYNCPROV $MFLAG
44610 if test "$ol_enable_translucent" != no ; then
44611 BUILD_TRANSLUCENT=$ol_enable_translucent
44612 if test "$ol_enable_translucent" = mod ; then
44613 MFLAG=SLAPD_MOD_DYNAMIC
44614 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44616 MFLAG=SLAPD_MOD_STATIC
44617 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44620 cat >>confdefs.h <<_ACEOF
44621 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44626 if test "$ol_enable_unique" != no ; then
44627 BUILD_UNIQUE=$ol_enable_unique
44628 if test "$ol_enable_unique" = mod ; then
44629 MFLAG=SLAPD_MOD_DYNAMIC
44630 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44632 MFLAG=SLAPD_MOD_STATIC
44633 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44636 cat >>confdefs.h <<_ACEOF
44637 #define SLAPD_OVER_UNIQUE $MFLAG
44642 if test "$ol_enable_valsort" != no ; then
44643 BUILD_VALSORT=$ol_enable_valsort
44644 if test "$ol_enable_valsort" = mod ; then
44645 MFLAG=SLAPD_MOD_DYNAMIC
44646 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44648 MFLAG=SLAPD_MOD_STATIC
44649 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44652 cat >>confdefs.h <<_ACEOF
44653 #define SLAPD_OVER_VALSORT $MFLAG
44658 if test "$ol_enable_slurpd" != no &&
44659 test "$ol_link_threads" != no &&
44660 test $BUILD_SLAPD = yes ; then
44664 if test "$ol_enable_rewrite" != no ; then
44666 cat >>confdefs.h <<\_ACEOF
44667 #define ENABLE_REWRITE 1
44673 if test "$ol_enable_slapi" != no ; then
44675 cat >>confdefs.h <<\_ACEOF
44676 #define ENABLE_SLAPI 1
44680 SLAPD_SLAPI_DEPEND=libslapi.a
44685 if test "$ac_cv_mingw32" = yes ; then
44687 SLAPD_MODULES_LDFLAGS=
44773 # Check whether --with-xxinstall or --without-xxinstall was given.
44774 if test "${with_xxinstall+set}" = set; then
44775 withval="$with_xxinstall"
44780 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-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
44783 ac_config_commands="$ac_config_commands default"
44787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44788 # Let make expand exec_prefix.
44789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44791 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44792 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44793 # trailing colons and then remove the whole line if VPATH becomes empty
44794 # (actually we leave an empty line to preserve line numbers).
44795 if test "x$srcdir" = x.; then
44796 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44797 s/:*\$(srcdir):*/:/;
44798 s/:*\${srcdir}:*/:/;
44800 s/^\([^=]*=[ ]*\):*/\1/;
44806 DEFS=-DHAVE_CONFIG_H
44810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44811 # 1. Remove the extension, and $U if already installed.
44812 ac_i=`echo "$ac_i" |
44813 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44815 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44816 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44818 LIBOBJS=$ac_libobjs
44820 LTLIBOBJS=$ac_ltlibobjs
44823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44824 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44825 Usually this means the macro was only invoked conditionally." >&5
44826 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44827 Usually this means the macro was only invoked conditionally." >&2;}
44828 { (exit 1); exit 1; }; }
44830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44831 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44832 Usually this means the macro was only invoked conditionally." >&5
44833 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44834 Usually this means the macro was only invoked conditionally." >&2;}
44835 { (exit 1); exit 1; }; }
44837 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44838 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44839 Usually this means the macro was only invoked conditionally." >&5
44840 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44841 Usually this means the macro was only invoked conditionally." >&2;}
44842 { (exit 1); exit 1; }; }
44845 : ${CONFIG_STATUS=./config.status}
44846 ac_clean_files_save=$ac_clean_files
44847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44848 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44849 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44850 cat >$CONFIG_STATUS <<_ACEOF
44852 # Generated by $as_me.
44853 # Run this file to recreate the current configuration.
44854 # Compiler output produced by configure, useful for debugging
44855 # configure, is in config.log if it exists.
44858 ac_cs_recheck=false
44860 SHELL=\${CONFIG_SHELL-$SHELL}
44863 cat >>$CONFIG_STATUS <<\_ACEOF
44864 ## --------------------- ##
44865 ## M4sh Initialization. ##
44866 ## --------------------- ##
44868 # Be Bourne compatible
44869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44872 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44873 # is contrary to our usage. Disable this feature.
44874 alias -g '${1+"$@"}'='"$@"'
44875 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44878 DUALCASE=1; export DUALCASE # for MKS sh
44880 # Support unset when possible.
44881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44888 # Work around bugs in pre-3.0 UWIN ksh.
44889 $as_unset ENV MAIL MAILPATH
44896 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44897 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44898 LC_TELEPHONE LC_TIME
44900 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44901 eval $as_var=C; export $as_var
44907 # Required to use basename.
44908 if expr a : '\(a\)' >/dev/null 2>&1; then
44914 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44915 as_basename=basename
44921 # Name of the executable.
44922 as_me=`$as_basename "$0" ||
44923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44924 X"$0" : 'X\(//\)$' \| \
44925 X"$0" : 'X\(/\)$' \| \
44926 . : '\(.\)' 2>/dev/null ||
44928 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44929 /^X\/\(\/\/\)$/{ s//\1/; q; }
44930 /^X\/\(\/\).*/{ s//\1/; q; }
44934 # PATH needs CR, and LINENO needs CR and PATH.
44935 # Avoid depending upon Character Ranges.
44936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44939 as_cr_digits='0123456789'
44940 as_cr_alnum=$as_cr_Letters$as_cr_digits
44942 # The user is always right.
44943 if test "${PATH_SEPARATOR+set}" != set; then
44944 echo "#! /bin/sh" >conf$$.sh
44945 echo "exit 0" >>conf$$.sh
44947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44956 as_lineno_1=$LINENO
44957 as_lineno_2=$LINENO
44958 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44959 test "x$as_lineno_1" != "x$as_lineno_2" &&
44960 test "x$as_lineno_3" = "x$as_lineno_2" || {
44961 # Find who we are. Look in the path if we contain no path at all
44964 *[\\/]* ) as_myself=$0 ;;
44965 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44966 for as_dir in $PATH
44969 test -z "$as_dir" && as_dir=.
44970 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44975 # We did not find ourselves, most probably we were run as `sh COMMAND'
44976 # in which case we are not to be found in the path.
44977 if test "x$as_myself" = x; then
44980 if test ! -f "$as_myself"; then
44981 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44982 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44983 { (exit 1); exit 1; }; }
44985 case $CONFIG_SHELL in
44987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44988 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44991 test -z "$as_dir" && as_dir=.
44992 for as_base in sh bash ksh sh5; do
44995 if ("$as_dir/$as_base" -c '
44996 as_lineno_1=$LINENO
44997 as_lineno_2=$LINENO
44998 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44999 test "x$as_lineno_1" != "x$as_lineno_2" &&
45000 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45001 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45002 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45003 CONFIG_SHELL=$as_dir/$as_base
45004 export CONFIG_SHELL
45005 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45013 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45014 # uniformly replaced by the line number. The first 'sed' inserts a
45015 # line-number line before each line; the second 'sed' does the real
45016 # work. The second script uses 'N' to pair each line-number line
45017 # with the numbered line, and appends trailing '-' during
45018 # substitution so that $LINENO is not a special case at line end.
45019 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45020 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45021 sed '=' <$as_myself |
45026 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45029 s,^['$as_cr_digits']*\n,,
45030 ' >$as_me.lineno &&
45031 chmod +x $as_me.lineno ||
45032 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45033 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45034 { (exit 1); exit 1; }; }
45036 # Don't try to exec as it changes $[0], causing all sort of problems
45037 # (the dirname of $[0] is not the place where we might find the
45038 # original and so on. Autoconf is especially sensible to this).
45040 # Exit status is that of the last command.
45045 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45046 *c*,-n*) ECHO_N= ECHO_C='
45048 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45049 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45052 if expr a : '\(a\)' >/dev/null 2>&1; then
45058 rm -f conf$$ conf$$.exe conf$$.file
45060 if ln -s conf$$.file conf$$ 2>/dev/null; then
45061 # We could just check for DJGPP; but this test a) works b) is more generic
45062 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45063 if test -f conf$$.exe; then
45064 # Don't use ln at all; we don't have any links
45069 elif ln conf$$.file conf$$ 2>/dev/null; then
45074 rm -f conf$$ conf$$.exe conf$$.file
45076 if mkdir -p . 2>/dev/null; then
45079 test -d ./-p && rmdir ./-p
45083 as_executable_p="test -f"
45085 # Sed expression to map a string onto a valid CPP name.
45086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45088 # Sed expression to map a string onto a valid variable name.
45089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45093 # We need space, tab and new line, in precisely that order.
45103 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45104 # report actual input values of CONFIG_FILES etc. instead of their
45105 # values after options handling. Logging --version etc. is OK.
45109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45110 ## Running $as_me. ##
45115 This file was extended by $as_me, which was
45116 generated by GNU Autoconf 2.59. Invocation command line was
45118 CONFIG_FILES = $CONFIG_FILES
45119 CONFIG_HEADERS = $CONFIG_HEADERS
45120 CONFIG_LINKS = $CONFIG_LINKS
45121 CONFIG_COMMANDS = $CONFIG_COMMANDS
45125 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45129 # Files that config.status was made for.
45130 if test -n "$ac_config_files"; then
45131 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45134 if test -n "$ac_config_headers"; then
45135 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45138 if test -n "$ac_config_links"; then
45139 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45142 if test -n "$ac_config_commands"; then
45143 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45146 cat >>$CONFIG_STATUS <<\_ACEOF
45149 \`$as_me' instantiates files from templates according to the
45150 current configuration.
45152 Usage: $0 [OPTIONS] [FILE]...
45154 -h, --help print this help, then exit
45155 -V, --version print version number, then exit
45156 -q, --quiet do not print progress messages
45157 -d, --debug don't remove temporary files
45158 --recheck update $as_me by reconfiguring in the same conditions
45159 --file=FILE[:TEMPLATE]
45160 instantiate the configuration file FILE
45161 --header=FILE[:TEMPLATE]
45162 instantiate the configuration header FILE
45164 Configuration files:
45167 Configuration headers:
45170 Configuration commands:
45173 Report bugs to <bug-autoconf@gnu.org>."
45176 cat >>$CONFIG_STATUS <<_ACEOF
45179 configured by $0, generated by GNU Autoconf 2.59,
45180 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45182 Copyright (C) 2003 Free Software Foundation, Inc.
45183 This config.status script is free software; the Free Software Foundation
45184 gives unlimited permission to copy, distribute and modify it."
45189 cat >>$CONFIG_STATUS <<\_ACEOF
45190 # If no file are specified by the user, then we need to provide default
45191 # value. By we need to know if files were specified by the user.
45197 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45198 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45206 *) # This is not an option, so the user has probably given explicit
45209 ac_need_defaults=false;;
45213 # Handling of the options.
45215 cat >>$CONFIG_STATUS <<\_ACEOF
45216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45218 --version | --vers* | -V )
45219 echo "$ac_cs_version"; exit 0 ;;
45221 # Conflict between --help and --header
45222 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45223 Try \`$0 --help' for more information." >&5
45224 echo "$as_me: error: ambiguous option: $1
45225 Try \`$0 --help' for more information." >&2;}
45226 { (exit 1); exit 1; }; };;
45227 --help | --hel | -h )
45228 echo "$ac_cs_usage"; exit 0 ;;
45229 --debug | --d* | -d )
45231 --file | --fil | --fi | --f )
45233 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45234 ac_need_defaults=false;;
45235 --header | --heade | --head | --hea )
45237 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45238 ac_need_defaults=false;;
45239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45240 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45243 # This is an error.
45244 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45245 Try \`$0 --help' for more information." >&5
45246 echo "$as_me: error: unrecognized option: $1
45247 Try \`$0 --help' for more information." >&2;}
45248 { (exit 1); exit 1; }; } ;;
45250 *) ac_config_targets="$ac_config_targets $1" ;;
45256 ac_configure_extra_args=
45258 if $ac_cs_silent; then
45260 ac_configure_extra_args="$ac_configure_extra_args --silent"
45264 cat >>$CONFIG_STATUS <<_ACEOF
45265 if \$ac_cs_recheck; then
45266 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45267 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45272 cat >>$CONFIG_STATUS <<_ACEOF
45274 # INIT-COMMANDS section.
45277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45279 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45280 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45287 cat >>$CONFIG_STATUS <<\_ACEOF
45288 for ac_config_target in $ac_config_targets
45290 case "$ac_config_target" in
45291 # Handling of arguments.
45292 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45293 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45294 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45295 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45296 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45297 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45298 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45299 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45300 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45301 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45302 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45303 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45304 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45305 "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" ;;
45306 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45307 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45308 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45309 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45310 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45311 "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" ;;
45312 "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" ;;
45313 "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" ;;
45314 "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" ;;
45315 "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
45316 "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" ;;
45317 "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" ;;
45318 "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" ;;
45319 "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" ;;
45320 "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" ;;
45321 "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" ;;
45322 "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" ;;
45323 "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" ;;
45324 "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" ;;
45325 "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" ;;
45326 "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" ;;
45327 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45328 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45329 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45330 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45331 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45332 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45333 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45334 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45335 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45336 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45339 { (exit 1); exit 1; }; };;
45343 # If the user did not use the arguments to specify the items to instantiate,
45344 # then the envvar interface is used. Set only those that are not.
45345 # We use the long form for the default assignment because of an extremely
45346 # bizarre bug on SunOS 4.1.3.
45347 if $ac_need_defaults; then
45348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45353 # Have a temporary directory for convenience. Make it in the build tree
45354 # simply because there is no reason to put it here, and in addition,
45355 # creating and moving files from /tmp can sometimes cause problems.
45356 # Create a temporary directory, and hook for its removal unless debugging.
45359 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45360 trap '{ (exit 1); exit 1; }' 1 2 13 15
45363 # Create a (secure) tmp directory for tmp files.
45366 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45367 test -n "$tmp" && test -d "$tmp"
45370 tmp=./confstat$$-$RANDOM
45371 (umask 077 && mkdir $tmp)
45374 echo "$me: cannot create a temporary directory in ." >&2
45375 { (exit 1); exit 1; }
45380 cat >>$CONFIG_STATUS <<_ACEOF
45383 # CONFIG_FILES section.
45386 # No need to generate the scripts if there are no CONFIG_FILES.
45387 # This happens for instance when ./config.status config.h
45388 if test -n "\$CONFIG_FILES"; then
45389 # Protect against being on the right side of a sed subst in config.status.
45390 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45391 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45392 s,@SHELL@,$SHELL,;t t
45393 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45394 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45395 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45396 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45397 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45398 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45399 s,@exec_prefix@,$exec_prefix,;t t
45400 s,@prefix@,$prefix,;t t
45401 s,@program_transform_name@,$program_transform_name,;t t
45402 s,@bindir@,$bindir,;t t
45403 s,@sbindir@,$sbindir,;t t
45404 s,@libexecdir@,$libexecdir,;t t
45405 s,@datadir@,$datadir,;t t
45406 s,@sysconfdir@,$sysconfdir,;t t
45407 s,@sharedstatedir@,$sharedstatedir,;t t
45408 s,@localstatedir@,$localstatedir,;t t
45409 s,@libdir@,$libdir,;t t
45410 s,@includedir@,$includedir,;t t
45411 s,@oldincludedir@,$oldincludedir,;t t
45412 s,@infodir@,$infodir,;t t
45413 s,@mandir@,$mandir,;t t
45414 s,@build_alias@,$build_alias,;t t
45415 s,@host_alias@,$host_alias,;t t
45416 s,@target_alias@,$target_alias,;t t
45417 s,@DEFS@,$DEFS,;t t
45418 s,@ECHO_C@,$ECHO_C,;t t
45419 s,@ECHO_N@,$ECHO_N,;t t
45420 s,@ECHO_T@,$ECHO_T,;t t
45421 s,@LIBS@,$LIBS,;t t
45422 s,@build@,$build,;t t
45423 s,@build_cpu@,$build_cpu,;t t
45424 s,@build_vendor@,$build_vendor,;t t
45425 s,@build_os@,$build_os,;t t
45426 s,@host@,$host,;t t
45427 s,@host_cpu@,$host_cpu,;t t
45428 s,@host_vendor@,$host_vendor,;t t
45429 s,@host_os@,$host_os,;t t
45430 s,@target@,$target,;t t
45431 s,@target_cpu@,$target_cpu,;t t
45432 s,@target_vendor@,$target_vendor,;t t
45433 s,@target_os@,$target_os,;t t
45434 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45435 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45436 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45437 s,@CYGPATH_W@,$CYGPATH_W,;t t
45438 s,@PACKAGE@,$PACKAGE,;t t
45439 s,@VERSION@,$VERSION,;t t
45440 s,@ACLOCAL@,$ACLOCAL,;t t
45441 s,@AUTOCONF@,$AUTOCONF,;t t
45442 s,@AUTOMAKE@,$AUTOMAKE,;t t
45443 s,@AUTOHEADER@,$AUTOHEADER,;t t
45444 s,@MAKEINFO@,$MAKEINFO,;t t
45445 s,@install_sh@,$install_sh,;t t
45446 s,@STRIP@,$STRIP,;t t
45447 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45448 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45449 s,@mkdir_p@,$mkdir_p,;t t
45451 s,@SET_MAKE@,$SET_MAKE,;t t
45452 s,@am__leading_dot@,$am__leading_dot,;t t
45453 s,@AMTAR@,$AMTAR,;t t
45454 s,@am__tar@,$am__tar,;t t
45455 s,@am__untar@,$am__untar,;t t
45456 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45457 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45458 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45459 s,@top_builddir@,$top_builddir,;t t
45460 s,@ldap_subdir@,$ldap_subdir,;t t
45463 s,@CFLAGS@,$CFLAGS,;t t
45464 s,@LDFLAGS@,$LDFLAGS,;t t
45465 s,@CPPFLAGS@,$CPPFLAGS,;t t
45466 s,@ac_ct_CC@,$ac_ct_CC,;t t
45467 s,@EXEEXT@,$EXEEXT,;t t
45468 s,@OBJEXT@,$OBJEXT,;t t
45469 s,@DEPDIR@,$DEPDIR,;t t
45470 s,@am__include@,$am__include,;t t
45471 s,@am__quote@,$am__quote,;t t
45472 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45473 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45474 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45475 s,@CCDEPMODE@,$CCDEPMODE,;t t
45476 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45477 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45478 s,@EGREP@,$EGREP,;t t
45479 s,@LN_S@,$LN_S,;t t
45480 s,@ECHO@,$ECHO,;t t
45481 s,@ac_ct_AR@,$ac_ct_AR,;t t
45482 s,@RANLIB@,$RANLIB,;t t
45483 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45484 s,@DLLTOOL@,$DLLTOOL,;t t
45485 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45487 s,@ac_ct_AS@,$ac_ct_AS,;t t
45488 s,@OBJDUMP@,$OBJDUMP,;t t
45489 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45491 s,@LIBTOOL@,$LIBTOOL,;t t
45492 s,@PERLBIN@,$PERLBIN,;t t
45493 s,@OL_MKDEP@,$OL_MKDEP,;t t
45494 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45495 s,@LTSTATIC@,$LTSTATIC,;t t
45496 s,@LIBOBJS@,$LIBOBJS,;t t
45497 s,@LIBSRCS@,$LIBSRCS,;t t
45498 s,@PLAT@,$PLAT,;t t
45499 s,@WITH_SASL@,$WITH_SASL,;t t
45500 s,@WITH_TLS@,$WITH_TLS,;t t
45501 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45502 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45503 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45504 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45505 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45506 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45507 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45508 s,@BUILD_BDB@,$BUILD_BDB,;t t
45509 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45510 s,@BUILD_HDB@,$BUILD_HDB,;t t
45511 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45512 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45513 s,@BUILD_META@,$BUILD_META,;t t
45514 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45515 s,@BUILD_NULL@,$BUILD_NULL,;t t
45516 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45517 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45518 s,@BUILD_PERL@,$BUILD_PERL,;t t
45519 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45520 s,@BUILD_SQL@,$BUILD_SQL,;t t
45521 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45522 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45523 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45524 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45525 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45526 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45527 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45528 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45529 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45530 s,@BUILD_RWM@,$BUILD_RWM,;t t
45531 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45532 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45533 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45534 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45535 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45536 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45537 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45538 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45539 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45540 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45541 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45542 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45543 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45544 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45545 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45546 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45547 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45548 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45549 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45550 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45551 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45552 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45553 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45554 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45555 s,@SASL_LIBS@,$SASL_LIBS,;t t
45556 s,@TLS_LIBS@,$TLS_LIBS,;t t
45557 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45558 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45559 s,@LIBSLAPI@,$LIBSLAPI,;t t
45560 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45561 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45562 s,@ICU_LIBS@,$ICU_LIBS,;t t
45563 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45564 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45565 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45566 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45567 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45568 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45573 cat >>$CONFIG_STATUS <<\_ACEOF
45574 # Split the substitutions into bite-sized pieces for seds with
45575 # small command number limits, like on Digital OSF/1 and HP-UX.
45576 ac_max_sed_lines=48
45577 ac_sed_frag=1 # Number of current file.
45578 ac_beg=1 # First line for current file.
45579 ac_end=$ac_max_sed_lines # Line after last line for current file.
45582 while $ac_more_lines; do
45583 if test $ac_beg -gt 1; then
45584 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45586 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45588 if test ! -s $tmp/subs.frag; then
45589 ac_more_lines=false
45591 # The purpose of the label and of the branching condition is to
45592 # speed up the sed processing (if there are no `@' at all, there
45593 # is no need to browse any of the substitutions).
45594 # These are the two extra sed commands mentioned above.
45596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45597 if test -z "$ac_sed_cmds"; then
45598 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45600 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45602 ac_sed_frag=`expr $ac_sed_frag + 1`
45604 ac_end=`expr $ac_end + $ac_max_sed_lines`
45607 if test -z "$ac_sed_cmds"; then
45610 fi # test -n "$CONFIG_FILES"
45613 cat >>$CONFIG_STATUS <<\_ACEOF
45614 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45615 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45617 - | *:- | *:-:* ) # input from stdin
45619 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45620 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45621 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45622 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45623 * ) ac_file_in=$ac_file.in ;;
45626 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45627 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45629 X"$ac_file" : 'X\(//\)[^/]' \| \
45630 X"$ac_file" : 'X\(//\)$' \| \
45631 X"$ac_file" : 'X\(/\)' \| \
45632 . : '\(.\)' 2>/dev/null ||
45634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45636 /^X\(\/\/\)$/{ s//\1/; q; }
45637 /^X\(\/\).*/{ s//\1/; q; }
45639 { if $as_mkdir_p; then
45644 while test ! -d "$as_dir"; do
45645 as_dirs="$as_dir $as_dirs"
45646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45648 X"$as_dir" : 'X\(//\)[^/]' \| \
45649 X"$as_dir" : 'X\(//\)$' \| \
45650 X"$as_dir" : 'X\(/\)' \| \
45651 . : '\(.\)' 2>/dev/null ||
45653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45655 /^X\(\/\/\)$/{ s//\1/; q; }
45656 /^X\(\/\).*/{ s//\1/; q; }
45659 test ! -n "$as_dirs" || mkdir $as_dirs
45660 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45662 { (exit 1); exit 1; }; }; }
45666 if test "$ac_dir" != .; then
45667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45668 # A "../" for each directory in $ac_dir_suffix.
45669 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45671 ac_dir_suffix= ac_top_builddir=
45675 .) # No --srcdir option. We are building in place.
45677 if test -z "$ac_top_builddir"; then
45680 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45682 [\\/]* | ?:[\\/]* ) # Absolute path.
45683 ac_srcdir=$srcdir$ac_dir_suffix;
45684 ac_top_srcdir=$srcdir ;;
45685 *) # Relative path.
45686 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45687 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45690 # Do not use `cd foo && pwd` to compute absolute paths, because
45691 # the directories may not exist.
45693 .) ac_abs_builddir="$ac_dir";;
45696 .) ac_abs_builddir=`pwd`;;
45697 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45698 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45701 case $ac_abs_builddir in
45702 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45704 case ${ac_top_builddir}. in
45705 .) ac_abs_top_builddir=$ac_abs_builddir;;
45706 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45707 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45710 case $ac_abs_builddir in
45711 .) ac_abs_srcdir=$ac_srcdir;;
45714 .) ac_abs_srcdir=$ac_abs_builddir;;
45715 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45716 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45719 case $ac_abs_builddir in
45720 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45722 case $ac_top_srcdir in
45723 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45724 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45725 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45731 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45732 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45735 if test x"$ac_file" != x-; then
45736 { echo "$as_me:$LINENO: creating $ac_file" >&5
45737 echo "$as_me: creating $ac_file" >&6;}
45740 # Let's still pretend it is `configure' which instantiates (i.e., don't
45741 # use $as_me), people would be surprised to read:
45742 # /* config.h. Generated by config.status. */
45743 if test x"$ac_file" = x-; then
45746 configure_input="$ac_file. "
45748 configure_input=$configure_input"Generated from `echo $ac_file_in |
45749 sed 's,.*/,,'` by configure."
45751 # First look for the input files in the build tree, otherwise in the
45753 ac_file_inputs=`IFS=:
45754 for f in $ac_file_in; do
45756 -) echo $tmp/stdin ;;
45758 # Absolute (can't be DOS-style, as IFS=:)
45759 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45760 echo "$as_me: error: cannot find input file: $f" >&2;}
45761 { (exit 1); exit 1; }; }
45764 if test -f "$f"; then
45767 elif test -f "$srcdir/$f"; then
45772 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45773 echo "$as_me: error: cannot find input file: $f" >&2;}
45774 { (exit 1); exit 1; }; }
45777 done` || { (exit 1); exit 1; }
45779 cat >>$CONFIG_STATUS <<_ACEOF
45783 cat >>$CONFIG_STATUS <<\_ACEOF
45785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45786 s,@configure_input@,$configure_input,;t t
45787 s,@srcdir@,$ac_srcdir,;t t
45788 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45789 s,@top_srcdir@,$ac_top_srcdir,;t t
45790 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45791 s,@builddir@,$ac_builddir,;t t
45792 s,@abs_builddir@,$ac_abs_builddir,;t t
45793 s,@top_builddir@,$ac_top_builddir,;t t
45794 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45795 s,@INSTALL@,$ac_INSTALL,;t t
45796 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45798 if test x"$ac_file" != x-; then
45799 mv $tmp/out $ac_file
45807 cat >>$CONFIG_STATUS <<\_ACEOF
45810 # CONFIG_HEADER section.
45813 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45814 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45816 # ac_d sets the value in "#define NAME VALUE" lines.
45817 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45818 ac_dB='[ ].*$,\1#\2'
45821 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45822 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45823 ac_uB='$,\1#\2define\3'
45827 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45828 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45830 - | *:- | *:-:* ) # input from stdin
45832 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45834 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45835 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45836 * ) ac_file_in=$ac_file.in ;;
45839 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45840 echo "$as_me: creating $ac_file" >&6;}
45842 # First look for the input files in the build tree, otherwise in the
45844 ac_file_inputs=`IFS=:
45845 for f in $ac_file_in; do
45847 -) echo $tmp/stdin ;;
45849 # Absolute (can't be DOS-style, as IFS=:)
45850 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45851 echo "$as_me: error: cannot find input file: $f" >&2;}
45852 { (exit 1); exit 1; }; }
45853 # Do quote $f, to prevent DOS paths from being IFS'd.
45856 if test -f "$f"; then
45859 elif test -f "$srcdir/$f"; then
45864 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45865 echo "$as_me: error: cannot find input file: $f" >&2;}
45866 { (exit 1); exit 1; }; }
45869 done` || { (exit 1); exit 1; }
45870 # Remove the trailing spaces.
45871 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45875 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45876 # `conftest.undefs', that substitutes the proper values into
45877 # config.h.in to produce config.h. The first handles `#define'
45878 # templates, and the second `#undef' templates.
45879 # And first: Protect against being on the right side of a sed subst in
45880 # config.status. Protect against being in an unquoted here document
45881 # in config.status.
45882 rm -f conftest.defines conftest.undefs
45883 # Using a here document instead of a string reduces the quoting nightmare.
45884 # Putting comments in sed scripts is not portable.
45886 # `end' is used to avoid that the second main sed command (meant for
45887 # 0-ary CPP macros) applies to n-ary macro definitions.
45888 # See the Autoconf documentation for `clear'.
45889 cat >confdef2sed.sed <<\_ACEOF
45894 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45896 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45899 # If some macros were called several times there might be several times
45900 # the same #defines, which is useless. Nevertheless, we may not want to
45901 # sort them, since we want the *last* AC-DEFINE to be honored.
45902 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45903 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45904 rm -f confdef2sed.sed
45906 # This sed command replaces #undef with comments. This is necessary, for
45907 # example, in the case of _POSIX_SOURCE, which is predefined and required
45908 # on some systems where configure will not decide to define it.
45909 cat >>conftest.undefs <<\_ACEOF
45910 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45913 # Break up conftest.defines because some shells have a limit on the size
45914 # of here documents, and old seds have small limits too (100 cmds).
45915 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45916 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45917 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45918 echo ' :' >>$CONFIG_STATUS
45919 rm -f conftest.tail
45920 while grep . conftest.defines >/dev/null
45922 # Write a limited-size here document to $tmp/defines.sed.
45923 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45924 # Speed up: don't consider the non `#define' lines.
45925 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
45926 # Work around the forget-to-reset-the-flag bug.
45927 echo 't clr' >>$CONFIG_STATUS
45928 echo ': clr' >>$CONFIG_STATUS
45929 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45931 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45933 mv $tmp/out $tmp/in
45935 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45936 rm -f conftest.defines
45937 mv conftest.tail conftest.defines
45939 rm -f conftest.defines
45940 echo ' fi # grep' >>$CONFIG_STATUS
45941 echo >>$CONFIG_STATUS
45943 # Break up conftest.undefs because some shells have a limit on the size
45944 # of here documents, and old seds have small limits too (100 cmds).
45945 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45946 rm -f conftest.tail
45947 while grep . conftest.undefs >/dev/null
45949 # Write a limited-size here document to $tmp/undefs.sed.
45950 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45951 # Speed up: don't consider the non `#undef'
45952 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
45953 # Work around the forget-to-reset-the-flag bug.
45954 echo 't clr' >>$CONFIG_STATUS
45955 echo ': clr' >>$CONFIG_STATUS
45956 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45958 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45960 mv $tmp/out $tmp/in
45962 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45963 rm -f conftest.undefs
45964 mv conftest.tail conftest.undefs
45966 rm -f conftest.undefs
45968 cat >>$CONFIG_STATUS <<\_ACEOF
45969 # Let's still pretend it is `configure' which instantiates (i.e., don't
45970 # use $as_me), people would be surprised to read:
45971 # /* config.h. Generated by config.status. */
45972 if test x"$ac_file" = x-; then
45973 echo "/* Generated by configure. */" >$tmp/config.h
45975 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45977 cat $tmp/in >>$tmp/config.h
45979 if test x"$ac_file" != x-; then
45980 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45981 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45982 echo "$as_me: $ac_file is unchanged" >&6;}
45984 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45986 X"$ac_file" : 'X\(//\)[^/]' \| \
45987 X"$ac_file" : 'X\(//\)$' \| \
45988 X"$ac_file" : 'X\(/\)' \| \
45989 . : '\(.\)' 2>/dev/null ||
45991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45993 /^X\(\/\/\)$/{ s//\1/; q; }
45994 /^X\(\/\).*/{ s//\1/; q; }
45996 { if $as_mkdir_p; then
46001 while test ! -d "$as_dir"; do
46002 as_dirs="$as_dir $as_dirs"
46003 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46005 X"$as_dir" : 'X\(//\)[^/]' \| \
46006 X"$as_dir" : 'X\(//\)$' \| \
46007 X"$as_dir" : 'X\(/\)' \| \
46008 . : '\(.\)' 2>/dev/null ||
46010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46012 /^X\(\/\/\)$/{ s//\1/; q; }
46013 /^X\(\/\).*/{ s//\1/; q; }
46016 test ! -n "$as_dirs" || mkdir $as_dirs
46017 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46018 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46019 { (exit 1); exit 1; }; }; }
46022 mv $tmp/config.h $ac_file
46026 rm -f $tmp/config.h
46028 # Compute $ac_file's index in $config_headers.
46030 for _am_header in $config_headers :; do
46031 case $_am_header in
46032 $ac_file | $ac_file:* )
46035 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46038 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46039 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46040 X$ac_file : 'X\(//\)[^/]' \| \
46041 X$ac_file : 'X\(//\)$' \| \
46042 X$ac_file : 'X\(/\)' \| \
46043 . : '\(.\)' 2>/dev/null ||
46045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46047 /^X\(\/\/\)$/{ s//\1/; q; }
46048 /^X\(\/\).*/{ s//\1/; q; }
46049 s/.*/./; q'`/stamp-h$_am_stamp_count
46052 cat >>$CONFIG_STATUS <<\_ACEOF
46055 # CONFIG_COMMANDS section.
46057 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46058 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46059 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46060 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46061 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46062 X"$ac_dest" : 'X\(//\)[^/]' \| \
46063 X"$ac_dest" : 'X\(//\)$' \| \
46064 X"$ac_dest" : 'X\(/\)' \| \
46065 . : '\(.\)' 2>/dev/null ||
46067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46069 /^X\(\/\/\)$/{ s//\1/; q; }
46070 /^X\(\/\).*/{ s//\1/; q; }
46072 { if $as_mkdir_p; then
46077 while test ! -d "$as_dir"; do
46078 as_dirs="$as_dir $as_dirs"
46079 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46081 X"$as_dir" : 'X\(//\)[^/]' \| \
46082 X"$as_dir" : 'X\(//\)$' \| \
46083 X"$as_dir" : 'X\(/\)' \| \
46084 . : '\(.\)' 2>/dev/null ||
46086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46088 /^X\(\/\/\)$/{ s//\1/; q; }
46089 /^X\(\/\).*/{ s//\1/; q; }
46092 test ! -n "$as_dirs" || mkdir $as_dirs
46093 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46095 { (exit 1); exit 1; }; }; }
46099 if test "$ac_dir" != .; then
46100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46101 # A "../" for each directory in $ac_dir_suffix.
46102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46104 ac_dir_suffix= ac_top_builddir=
46108 .) # No --srcdir option. We are building in place.
46110 if test -z "$ac_top_builddir"; then
46113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46115 [\\/]* | ?:[\\/]* ) # Absolute path.
46116 ac_srcdir=$srcdir$ac_dir_suffix;
46117 ac_top_srcdir=$srcdir ;;
46118 *) # Relative path.
46119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46123 # Do not use `cd foo && pwd` to compute absolute paths, because
46124 # the directories may not exist.
46126 .) ac_abs_builddir="$ac_dir";;
46129 .) ac_abs_builddir=`pwd`;;
46130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46134 case $ac_abs_builddir in
46135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46137 case ${ac_top_builddir}. in
46138 .) ac_abs_top_builddir=$ac_abs_builddir;;
46139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46143 case $ac_abs_builddir in
46144 .) ac_abs_srcdir=$ac_srcdir;;
46147 .) ac_abs_srcdir=$ac_abs_builddir;;
46148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46152 case $ac_abs_builddir in
46153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46155 case $ac_top_srcdir in
46156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46163 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46164 echo "$as_me: executing $ac_dest commands" >&6;}
46166 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46167 # Strip MF so we end up with the name of the file.
46168 mf=`echo "$mf" | sed -e 's/:.*$//'`
46169 # Check whether this is an Automake generated Makefile or not.
46170 # We used to match only the files named `Makefile.in', but
46171 # some people rename them; so instead we look at the file content.
46172 # Grep'ing the first line is not enough: some people post-process
46173 # each Makefile.in and add a new line on top of each file to say so.
46174 # So let's grep whole file.
46175 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46176 dirpart=`(dirname "$mf") 2>/dev/null ||
46177 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46178 X"$mf" : 'X\(//\)[^/]' \| \
46179 X"$mf" : 'X\(//\)$' \| \
46180 X"$mf" : 'X\(/\)' \| \
46181 . : '\(.\)' 2>/dev/null ||
46183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46185 /^X\(\/\/\)$/{ s//\1/; q; }
46186 /^X\(\/\).*/{ s//\1/; q; }
46191 # Extract the definition of DEPDIR, am__include, and am__quote
46192 # from the Makefile without running `make'.
46193 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46194 test -z "$DEPDIR" && continue
46195 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46196 test -z "am__include" && continue
46197 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46198 # When using ansi2knr, U may be empty or an underscore; expand it
46199 U=`sed -n 's/^U = //p' < "$mf"`
46200 # Find all dependency output files, they are included files with
46201 # $(DEPDIR) in their names. We invoke sed twice because it is the
46202 # simplest approach to changing $(DEPDIR) to its actual value in the
46204 for file in `sed -n "
46205 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46206 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46207 # Make sure the directory exists.
46208 test -f "$dirpart/$file" && continue
46209 fdir=`(dirname "$file") 2>/dev/null ||
46210 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46211 X"$file" : 'X\(//\)[^/]' \| \
46212 X"$file" : 'X\(//\)$' \| \
46213 X"$file" : 'X\(/\)' \| \
46214 . : '\(.\)' 2>/dev/null ||
46216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46218 /^X\(\/\/\)$/{ s//\1/; q; }
46219 /^X\(\/\).*/{ s//\1/; q; }
46221 { if $as_mkdir_p; then
46222 mkdir -p $dirpart/$fdir
46224 as_dir=$dirpart/$fdir
46226 while test ! -d "$as_dir"; do
46227 as_dirs="$as_dir $as_dirs"
46228 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46230 X"$as_dir" : 'X\(//\)[^/]' \| \
46231 X"$as_dir" : 'X\(//\)$' \| \
46232 X"$as_dir" : 'X\(/\)' \| \
46233 . : '\(.\)' 2>/dev/null ||
46235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46237 /^X\(\/\/\)$/{ s//\1/; q; }
46238 /^X\(\/\).*/{ s//\1/; q; }
46241 test ! -n "$as_dirs" || mkdir $as_dirs
46242 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46243 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46244 { (exit 1); exit 1; }; }; }
46246 # echo "creating $dirpart/$file"
46247 echo '# dummy' > "$dirpart/$file"
46254 BACKENDSC="servers/slapd/backends.c"
46255 echo "Making $BACKENDSC"
46257 cat > $BACKENDSC << ENDX
46258 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46260 * Copyright 1998-2006 The OpenLDAP Foundation.
46261 * All rights reserved.
46263 * Redistribution and use in source and binary forms, with or without
46264 * modification, are permitted only as authorized by the OpenLDAP
46267 * A copy of this license is available in the file LICENSE in the
46268 * top-level directory of the distribution or, alternatively, at
46269 * <http://www.OpenLDAP.org/license.html>.
46271 /* This file is automatically generated by configure; please do not edit. */
46273 #include "portable.h"
46277 if test "${STATIC_BACKENDS}"; then
46278 for b in config ${STATIC_BACKENDS}; do
46279 bb=`echo "${b}" | sed -e 's/back-//'`
46280 cat >> $BACKENDSC << ENDX
46281 extern BI_init ${bb}_back_initialize;
46285 cat >> $BACKENDSC << ENDX
46287 BackendInfo slap_binfo[] = {
46290 for b in config ${STATIC_BACKENDS}; do
46291 bb=`echo "${b}" | sed -e 's/back-//'`
46292 echo " Add ${bb} ..."
46293 cat >> $BACKENDSC << ENDX
46294 { "${bb}", ${bb}_back_initialize },
46298 cat >> $BACKENDSC << ENDX
46302 /* end of generated file */
46305 OVERLAYSC="servers/slapd/overlays/statover.c"
46306 echo "Making $OVERLAYSC"
46308 cat > $OVERLAYSC << ENDX
46309 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46311 * Copyright 1998-2006 The OpenLDAP Foundation.
46312 * All rights reserved.
46314 * Redistribution and use in source and binary forms, with or without
46315 * modification, are permitted only as authorized by the OpenLDAP
46318 * A copy of this license is available in the file LICENSE in the
46319 * top-level directory of the distribution or, alternatively, at
46320 * <http://www.OpenLDAP.org/license.html>.
46322 /* This file is automatically generated by configure; please do not edit. */
46324 #include "portable.h"
46328 if test "${STATIC_OVERLAYS}"; then
46329 for o in ${STATIC_OVERLAYS}; do
46330 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46331 cat >> $OVERLAYSC << ENDX
46332 extern OV_init ${oo}_initialize;
46337 cat >> $OVERLAYSC << ENDX
46339 OverlayInit slap_oinfo[] = {
46342 if test "${STATIC_OVERLAYS}"; then
46343 for o in ${STATIC_OVERLAYS}; do
46344 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46345 echo " Add ${oo} ..."
46346 cat >> $OVERLAYSC << ENDX
46347 { "${oo}", ${oo}_initialize },
46352 cat >> $OVERLAYSC << ENDX
46356 /* end of generated file */
46359 echo Please run \"make depend\" to build dependencies
46365 cat >>$CONFIG_STATUS <<\_ACEOF
46367 { (exit 0); exit 0; }
46369 chmod +x $CONFIG_STATUS
46370 ac_clean_files=$ac_clean_files_save
46373 # configure is writing to config.log, and then calls config.status.
46374 # config.status does its own redirection, appending to config.log.
46375 # Unfortunately, on DOS this fails, as config.log is still kept open
46376 # by configure, so config.status won't be able to write to it; its
46377 # output is simply discarded. So we exec the FD to /dev/null,
46378 # effectively closing config.log, so it can be properly (re)opened and
46379 # appended to by config.status. When coming back to configure, we
46380 # need to make the FD available again.
46381 if test "$no_create" != yes; then
46383 ac_config_status_args=
46384 test "$silent" = yes &&
46385 ac_config_status_args="$ac_config_status_args --quiet"
46387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46390 # would make configure fail if this is the last instruction.
46391 $ac_cs_success || { (exit 1); exit 1; }