2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.619 2006/01/06 16:47:36 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_DDS 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-dds Dynamic Directory Services overlay no|yes|mod [no]
1053 --enable-denyop Deny Operation overlay no|yes|mod [no]
1054 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1055 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1056 --enable-lastmod Last Modification overlay no|yes|mod [no]
1057 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1058 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1059 --enable-refint Referential Integrity overlay no|yes|mod [no]
1060 --enable-retcode Return Code testing overlay no|yes|mod [no]
1061 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1062 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1063 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1064 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1065 --enable-valsort Value Sorting overlay no|yes|mod [no]
1067 SLURPD (Replication Daemon) Options:
1068 --enable-slurpd enable building slurpd [auto]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-threads with threads [auto]
1088 --with-tls with TLS/SSL support [auto]
1089 --with-yielding-select with implicitly yielding select [auto]
1090 --with-multiple-precision
1091 multiple precision support for statistics
1092 auto|bignum|gmp [auto]
1094 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1095 --with-pic try to use only PIC/non-PIC objects [default=use
1098 include additional configurations [automatic]
1100 See INSTALL file for further details.
1102 Some influential environment variables:
1103 CC C compiler command
1104 CFLAGS C compiler flags
1105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106 nonstandard directory <lib dir>
1107 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108 headers in a nonstandard directory <include dir>
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1117 if test "$ac_init_help" = "recursive"; then
1118 # If there are subdirs, report their specific --help.
1120 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121 test -d $ac_dir || continue
1124 if test "$ac_dir" != .; then
1125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126 # A "../" for each directory in $ac_dir_suffix.
1127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1129 ac_dir_suffix= ac_top_builddir=
1133 .) # No --srcdir option. We are building in place.
1135 if test -z "$ac_top_builddir"; then
1138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1140 [\\/]* | ?:[\\/]* ) # Absolute path.
1141 ac_srcdir=$srcdir$ac_dir_suffix;
1142 ac_top_srcdir=$srcdir ;;
1144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1151 .) ac_abs_builddir="$ac_dir";;
1154 .) ac_abs_builddir=`pwd`;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 case ${ac_top_builddir}. in
1163 .) ac_abs_top_builddir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1172 .) ac_abs_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 case $ac_top_srcdir in
1181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188 # Check for guested configure; otherwise get Cygnus style configure.
1189 if test -f $ac_srcdir/configure.gnu; then
1191 $SHELL $ac_srcdir/configure.gnu --help=recursive
1192 elif test -f $ac_srcdir/configure; then
1194 $SHELL $ac_srcdir/configure --help=recursive
1195 elif test -f $ac_srcdir/configure.ac ||
1196 test -f $ac_srcdir/configure.in; then
1198 $ac_configure --help
1200 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1214 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1215 Restrictions apply, see COPYRIGHT and LICENSE files.
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1224 It was created by $as_me, which was
1225 generated by GNU Autoconf 2.59. Invocation command line was
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259 test -z "$as_dir" && as_dir=.
1260 echo "PATH: $as_dir"
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1284 ac_must_keep_next=false
1290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1300 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301 if test $ac_must_keep_next = true; then
1302 ac_must_keep_next=false # Got value, back to normal.
1305 *=* | --config-cache | -C | -disable-* | --disable-* \
1306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308 | -with-* | --with-* | -without-* | --without-* | --x)
1309 case "$ac_configure_args0 " in
1310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1313 -* ) ac_must_keep_next=true ;;
1316 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317 # Get rid of the leading space.
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log. We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332 # Save into config.log some information that might help in debugging.
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1342 # The following way of writing the cache mishandles newlines in values,
1345 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1365 for ac_var in $ac_subst_vars
1367 eval ac_val=$`echo $ac_var`
1368 echo "$ac_var='"'"'$ac_val'"'"'"
1372 if test -n "$ac_subst_files"; then
1379 for ac_var in $ac_subst_files
1381 eval ac_val=$`echo $ac_var`
1382 echo "$ac_var='"'"'$ac_val'"'"'"
1387 if test -s confdefs.h; then
1394 sed "/^$/d" confdefs.h | sort
1397 test "$ac_signal" != 0 &&
1398 echo "$as_me: caught signal $ac_signal"
1399 echo "$as_me: exit $exit_status"
1401 rm -f core *.core &&
1402 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1405 for ac_signal in 1 2 13 15; do
1406 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415 # Predefined preprocessor variables.
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445 if test "x$prefix" != xNONE; then
1446 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1448 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451 for ac_site_file in $CONFIG_SITE; do
1452 if test -r "$ac_site_file"; then
1453 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455 sed 's/^/| /' "$ac_site_file" >&5
1461 # Check that the precious variables saved in the cache have kept the same
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1485 echo "$as_me: former value: $ac_old_val" >&2;}
1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1487 echo "$as_me: current value: $ac_new_val" >&2;}
1488 ac_cache_corrupted=:
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560 for ac_dir in build $srcdir/build; do
1561 if test -f $ac_dir/install-sh; then
1563 ac_install_sh="$ac_aux_dir/install-sh -c"
1565 elif test -f $ac_dir/install.sh; then
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1569 elif test -f $ac_dir/shtool; then
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1578 { (exit 1); exit 1; }; }
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584 eval `$ac_aux_dir/version.sh`
1585 if test -z "$OL_STRING"; then
1586 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1587 echo "$as_me: error: could not determine version" >&2;}
1588 { (exit 1); exit 1; }; }
1591 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1592 ac_cv_shtool="$ac_aux_dir/shtool"
1594 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1595 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1596 { (exit 1); exit 1; }; }
1599 SHTOOL="$ac_cv_shtool"
1601 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1602 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1605 if test -d $ac_aux_dir/CVS; then
1606 OPENLDAP_CVS="(from CVS sources) "
1609 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1611 # Make sure we can run config.sub.
1612 $ac_config_sub sun4 >/dev/null 2>&1 ||
1613 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1614 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1615 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: checking build system type" >&5
1618 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1619 if test "${ac_cv_build+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 ac_cv_build_alias=$build_alias
1623 test -z "$ac_cv_build_alias" &&
1624 ac_cv_build_alias=`$ac_config_guess`
1625 test -z "$ac_cv_build_alias" &&
1626 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1627 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1628 { (exit 1); exit 1; }; }
1629 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1630 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1631 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1632 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1636 echo "${ECHO_T}$ac_cv_build" >&6
1638 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643 echo "$as_me:$LINENO: checking host system type" >&5
1644 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1645 if test "${ac_cv_host+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 ac_cv_host_alias=$host_alias
1649 test -z "$ac_cv_host_alias" &&
1650 ac_cv_host_alias=$ac_cv_build_alias
1651 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1652 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1653 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1654 { (exit 1); exit 1; }; }
1657 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1658 echo "${ECHO_T}$ac_cv_host" >&6
1660 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665 echo "$as_me:$LINENO: checking target system type" >&5
1666 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1667 if test "${ac_cv_target+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 ac_cv_target_alias=$target_alias
1671 test "x$ac_cv_target_alias" = "x" &&
1672 ac_cv_target_alias=$ac_cv_host_alias
1673 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1674 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1676 { (exit 1); exit 1; }; }
1679 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1680 echo "${ECHO_T}$ac_cv_target" >&6
1681 target=$ac_cv_target
1682 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 # The aliases save the names the user supplied, while $host etc.
1688 # will get canonicalized.
1689 test -n "$target_alias" &&
1690 test "$program_prefix$program_suffix$program_transform_name" = \
1692 program_prefix=${target_alias}-
1694 am__api_version="1.9"
1695 # Find a good install program. We prefer a C program (faster),
1696 # so one script is as good as another. But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732 if test $ac_prog = install &&
1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # AIX install. It has an incompatible calling convention.
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1753 if test "${ac_cv_path_install+set}" = set; then
1754 INSTALL=$ac_cv_path_install
1756 # As a last resort, use the slow shell script. We don't cache a
1757 # path for INSTALL within a source directory, because that will
1758 # break other packages using the cache if that directory is
1759 # removed, or if the path is relative.
1760 INSTALL=$ac_install_sh
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1775 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1778 echo timestamp > conftest.file
1779 # Do `set' in a subshell so we don't clobber the current shell's
1780 # arguments. Must try -L first in case configure is actually a
1781 # symlink; some systems play weird games with the mod time of symlinks
1782 # (eg FreeBSD returns the mod time of the symlink's containing
1785 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1786 if test "$*" = "X"; then
1788 set X `ls -t $srcdir/configure conftest.file`
1791 if test "$*" != "X $srcdir/configure conftest.file" \
1792 && test "$*" != "X conftest.file $srcdir/configure"; then
1794 # If neither matched, then we have a broken ls. This can happen
1795 # if, for instance, CONFIG_SHELL is bash and it inherits a
1796 # broken ls alias from the environment. This has actually
1797 # happened. Such a system could not be considered "sane".
1798 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&5
1800 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1801 alias in your environment" >&2;}
1802 { (exit 1); exit 1; }; }
1805 test "$2" = conftest.file
1811 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1812 Check your system clock" >&5
1813 echo "$as_me: error: newly created file is older than distributed files!
1814 Check your system clock" >&2;}
1815 { (exit 1); exit 1; }; }
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819 test "$program_prefix" != NONE &&
1820 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1821 # Use a double $ so make ignores it.
1822 test "$program_suffix" != NONE &&
1823 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1824 # Double any \ or $. echo might interpret backslashes.
1825 # By default was `s,x,x', remove it if useless.
1826 cat <<\_ACEOF >conftest.sed
1827 s/[\\$]/&&/g;s/;s,x,x,$//
1829 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1832 # expand $ac_aux_dir to an absolute path
1833 am_aux_dir=`cd $ac_aux_dir && pwd`
1835 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1836 # Use eval to expand $SHELL
1837 if eval "$MISSING --run true"; then
1838 am_missing_run="$MISSING --run "
1841 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1842 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1845 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1846 # We used to keeping the `.' as first argument, in order to
1847 # allow $(mkdir_p) to be used without argument. As in
1848 # $(mkdir_p) $(somedir)
1849 # where $(somedir) is conditionally defined. However this is wrong
1851 # 1. if the package is installed by a user who cannot write `.'
1852 # make install will fail,
1853 # 2. the above comment should most certainly read
1854 # $(mkdir_p) $(DESTDIR)$(somedir)
1855 # so it does not work when $(somedir) is undefined and
1856 # $(DESTDIR) is not.
1857 # To support the latter case, we have to write
1858 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1859 # so the `.' trick is pointless.
1860 mkdir_p='mkdir -p --'
1862 # On NextStep and OpenStep, the `mkdir' command does not
1863 # recognize any option. It will interpret all options as
1864 # directories to create, and then abort because `.' already
1866 for d in ./-p ./--version;
1868 test -d $d && rmdir $d
1870 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1871 if test -f "$ac_aux_dir/mkinstalldirs"; then
1872 mkdir_p='$(mkinstalldirs)'
1874 mkdir_p='$(install_sh) -d'
1878 for ac_prog in gawk mawk nawk awk
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_AWK+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$AWK"; then
1888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_AWK="$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 if test -n "$AWK"; then
1908 echo "$as_me:$LINENO: result: $AWK" >&5
1909 echo "${ECHO_T}$AWK" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 test -n "$AWK" && break
1918 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1921 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 cat >conftest.make <<\_ACEOF
1926 @echo 'ac_maketemp="$(MAKE)"'
1928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1929 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1930 if test -n "$ac_maketemp"; then
1931 eval ac_cv_prog_make_${ac_make}_set=yes
1933 eval ac_cv_prog_make_${ac_make}_set=no
1937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1938 echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944 SET_MAKE="MAKE=${MAKE-make}"
1947 rm -rf .tst 2>/dev/null
1948 mkdir .tst 2>/dev/null
1949 if test -d .tst; then
1954 rmdir .tst 2>/dev/null
1956 # test to see if srcdir already configured
1957 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1958 test -f $srcdir/config.status; then
1959 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1960 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # test whether we have cygpath
1965 if test -z "$CYGPATH_W"; then
1966 if (cygpath --version) >/dev/null 2>/dev/null; then
1967 CYGPATH_W='cygpath -w'
1974 # Define the identity of the package.
1979 # Some tools Automake needs.
1981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1995 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1997 # Installed binaries are usually stripped using `strip' when the user
1998 # run `make install-strip'. However `strip' might not be the right
1999 # tool to use in cross-compilation environments, therefore Automake
2000 # will honor the `STRIP' environment variable to overrule this program.
2001 if test "$cross_compiling" != no; then
2002 if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}strip; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_STRIP+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$STRIP"; then
2011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 STRIP=$ac_cv_prog_STRIP
2030 if test -n "$STRIP"; then
2031 echo "$as_me:$LINENO: result: $STRIP" >&5
2032 echo "${ECHO_T}$STRIP" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2039 if test -z "$ac_cv_prog_STRIP"; then
2041 # Extract the first word of "strip", so it can be a program name with args.
2042 set dummy strip; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$ac_ct_STRIP"; then
2049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_STRIP="strip"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2069 if test -n "$ac_ct_STRIP"; then
2070 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2071 echo "${ECHO_T}$ac_ct_STRIP" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2079 STRIP="$ac_cv_prog_STRIP"
2083 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2085 # We need awk for the "check" target. The system "awk" is bad on
2087 # Always define AMTAR for backward compatibility.
2089 AMTAR=${AMTAR-"${am_missing_run}tar"}
2091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097 cat >>confdefs.h <<_ACEOF
2098 #define OPENLDAP_PACKAGE "$PACKAGE"
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_VERSION "$VERSION"
2108 cat >>confdefs.h <<_ACEOF
2109 #define LDAP_VENDOR_VERSION $OL_API_INC
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2128 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2130 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2132 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2140 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2142 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2144 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2147 echo "$as_me:$LINENO: checking configure arguments" >&5
2148 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2153 ldap_subdir="/openldap"
2156 # Check whether --with-subdir or --without-subdir was given.
2157 if test "${with_subdir+set}" = set; then
2158 withval="$with_subdir"
2165 ldap_subdir="$withval"
2168 ldap_subdir="/$withval"
2174 # OpenLDAP --enable-debug
2176 # Check whether --enable-debug or --disable-debug was given.
2177 if test "${enable_debug+set}" = set; then
2178 enableval="$enable_debug"
2181 for ol_val in no yes traditional ; do
2182 if test "$enableval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2188 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2189 { (exit 1); exit 1; }; }
2191 ol_enable_debug="$ol_arg"
2196 # end --enable-debug
2197 # OpenLDAP --enable-dynamic
2199 # Check whether --enable-dynamic or --disable-dynamic was given.
2200 if test "${enable_dynamic+set}" = set; then
2201 enableval="$enable_dynamic"
2204 for ol_val in auto yes no ; do
2205 if test "$enableval" = "$ol_val" ; then
2209 if test "$ol_arg" = "invalid" ; then
2210 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2212 { (exit 1); exit 1; }; }
2214 ol_enable_dynamic="$ol_arg"
2217 ol_enable_dynamic=no
2219 # end --enable-dynamic
2220 # OpenLDAP --enable-syslog
2222 # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224 enableval="$enable_syslog"
2227 for ol_val in auto yes no ; do
2228 if test "$enableval" = "$ol_val" ; then
2232 if test "$ol_arg" = "invalid" ; then
2233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235 { (exit 1); exit 1; }; }
2237 ol_enable_syslog="$ol_arg"
2240 ol_enable_syslog=auto
2242 # end --enable-syslog
2243 # OpenLDAP --enable-proctitle
2245 # Check whether --enable-proctitle or --disable-proctitle was given.
2246 if test "${enable_proctitle+set}" = set; then
2247 enableval="$enable_proctitle"
2250 for ol_val in auto yes no ; do
2251 if test "$enableval" = "$ol_val" ; then
2255 if test "$ol_arg" = "invalid" ; then
2256 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2257 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2258 { (exit 1); exit 1; }; }
2260 ol_enable_proctitle="$ol_arg"
2263 ol_enable_proctitle=yes
2265 # end --enable-proctitle
2266 ol_enable_referrals=${ol_enable_referrals-no}
2267 ol_enable_kbind=${ol_enable_kbind-no}
2268 # OpenLDAP --enable-ipv6
2270 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2271 if test "${enable_ipv6+set}" = set; then
2272 enableval="$enable_ipv6"
2275 for ol_val in auto yes no ; do
2276 if test "$enableval" = "$ol_val" ; then
2280 if test "$ol_arg" = "invalid" ; then
2281 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2282 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2283 { (exit 1); exit 1; }; }
2285 ol_enable_ipv6="$ol_arg"
2291 # OpenLDAP --enable-local
2293 # Check whether --enable-local or --disable-local was given.
2294 if test "${enable_local+set}" = set; then
2295 enableval="$enable_local"
2298 for ol_val in auto yes no ; do
2299 if test "$enableval" = "$ol_val" ; then
2303 if test "$ol_arg" = "invalid" ; then
2304 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2305 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2306 { (exit 1); exit 1; }; }
2308 ol_enable_local="$ol_arg"
2311 ol_enable_local=auto
2313 # end --enable-local
2315 # OpenLDAP --with-cyrus_sasl
2317 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2318 if test "${with_cyrus_sasl+set}" = set; then
2319 withval="$with_cyrus_sasl"
2322 for ol_val in auto yes no ; do
2323 if test "$withval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2329 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2330 { (exit 1); exit 1; }; }
2332 ol_with_cyrus_sasl="$ol_arg"
2335 ol_with_cyrus_sasl="auto"
2336 fi; # end --with-cyrus_sasl
2338 # OpenLDAP --with-fetch
2340 # Check whether --with-fetch or --without-fetch was given.
2341 if test "${with_fetch+set}" = set; then
2342 withval="$with_fetch"
2345 for ol_val in auto yes no ; do
2346 if test "$withval" = "$ol_val" ; then
2350 if test "$ol_arg" = "invalid" ; then
2351 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2352 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2353 { (exit 1); exit 1; }; }
2355 ol_with_fetch="$ol_arg"
2358 ol_with_fetch="auto"
2359 fi; # end --with-fetch
2361 ol_with_kerberos=${ol_with_kerberos-auto}
2362 # OpenLDAP --with-threads
2364 # Check whether --with-threads or --without-threads was given.
2365 if test "${with_threads+set}" = set; then
2366 withval="$with_threads"
2369 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2370 if test "$withval" = "$ol_val" ; then
2374 if test "$ol_arg" = "invalid" ; then
2375 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2376 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2377 { (exit 1); exit 1; }; }
2379 ol_with_threads="$ol_arg"
2382 ol_with_threads="auto"
2383 fi; # end --with-threads
2385 # OpenLDAP --with-tls
2387 # Check whether --with-tls or --without-tls was given.
2388 if test "${with_tls+set}" = set; then
2392 for ol_val in auto openssl yes no ; do
2393 if test "$withval" = "$ol_val" ; then
2397 if test "$ol_arg" = "invalid" ; then
2398 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2399 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2400 { (exit 1); exit 1; }; }
2402 ol_with_tls="$ol_arg"
2406 fi; # end --with-tls
2408 # OpenLDAP --with-yielding_select
2410 # Check whether --with-yielding_select or --without-yielding_select was given.
2411 if test "${with_yielding_select+set}" = set; then
2412 withval="$with_yielding_select"
2415 for ol_val in auto yes no manual ; do
2416 if test "$withval" = "$ol_val" ; then
2420 if test "$ol_arg" = "invalid" ; then
2421 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2422 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2423 { (exit 1); exit 1; }; }
2425 ol_with_yielding_select="$ol_arg"
2428 ol_with_yielding_select="auto"
2429 fi; # end --with-yielding_select
2431 # OpenLDAP --with-multiple_precision
2433 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2434 if test "${with_multiple_precision+set}" = set; then
2435 withval="$with_multiple_precision"
2438 for ol_val in auto bignum gmp yes no ; do
2439 if test "$withval" = "$ol_val" ; then
2443 if test "$ol_arg" = "invalid" ; then
2444 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2445 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2446 { (exit 1); exit 1; }; }
2448 ol_with_multiple_precision="$ol_arg"
2451 ol_with_multiple_precision="auto"
2452 fi; # end --with-multiple_precision
2456 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2457 if test "${enable_xxslapdoptions+set}" = set; then
2458 enableval="$enable_xxslapdoptions"
2461 # OpenLDAP --enable-slapd
2463 # Check whether --enable-slapd or --disable-slapd was given.
2464 if test "${enable_slapd+set}" = set; then
2465 enableval="$enable_slapd"
2468 for ol_val in auto yes no ; do
2469 if test "$enableval" = "$ol_val" ; then
2473 if test "$ol_arg" = "invalid" ; then
2474 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2475 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2476 { (exit 1); exit 1; }; }
2478 ol_enable_slapd="$ol_arg"
2483 # end --enable-slapd
2484 # OpenLDAP --enable-dynacl
2486 # Check whether --enable-dynacl or --disable-dynacl was given.
2487 if test "${enable_dynacl+set}" = set; then
2488 enableval="$enable_dynacl"
2491 for ol_val in auto yes no ; do
2492 if test "$enableval" = "$ol_val" ; then
2496 if test "$ol_arg" = "invalid" ; then
2497 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2498 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2499 { (exit 1); exit 1; }; }
2501 ol_enable_dynacl="$ol_arg"
2506 # end --enable-dynacl
2507 # OpenLDAP --enable-aci
2509 # Check whether --enable-aci or --disable-aci was given.
2510 if test "${enable_aci+set}" = set; then
2511 enableval="$enable_aci"
2514 for ol_val in no yes mod ; do
2515 if test "$enableval" = "$ol_val" ; then
2519 if test "$ol_arg" = "invalid" ; then
2520 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2522 { (exit 1); exit 1; }; }
2524 ol_enable_aci="$ol_arg"
2530 # OpenLDAP --enable-cleartext
2532 # Check whether --enable-cleartext or --disable-cleartext was given.
2533 if test "${enable_cleartext+set}" = set; then
2534 enableval="$enable_cleartext"
2537 for ol_val in auto yes no ; do
2538 if test "$enableval" = "$ol_val" ; then
2542 if test "$ol_arg" = "invalid" ; then
2543 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2544 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2545 { (exit 1); exit 1; }; }
2547 ol_enable_cleartext="$ol_arg"
2550 ol_enable_cleartext=yes
2552 # end --enable-cleartext
2553 # OpenLDAP --enable-crypt
2555 # Check whether --enable-crypt or --disable-crypt was given.
2556 if test "${enable_crypt+set}" = set; then
2557 enableval="$enable_crypt"
2560 for ol_val in auto yes no ; do
2561 if test "$enableval" = "$ol_val" ; then
2565 if test "$ol_arg" = "invalid" ; then
2566 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2567 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2568 { (exit 1); exit 1; }; }
2570 ol_enable_crypt="$ol_arg"
2575 # end --enable-crypt
2576 # OpenLDAP --enable-lmpasswd
2578 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2579 if test "${enable_lmpasswd+set}" = set; then
2580 enableval="$enable_lmpasswd"
2583 for ol_val in auto yes no ; do
2584 if test "$enableval" = "$ol_val" ; then
2588 if test "$ol_arg" = "invalid" ; then
2589 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2590 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2591 { (exit 1); exit 1; }; }
2593 ol_enable_lmpasswd="$ol_arg"
2596 ol_enable_lmpasswd=no
2598 # end --enable-lmpasswd
2599 # OpenLDAP --enable-spasswd
2601 # Check whether --enable-spasswd or --disable-spasswd was given.
2602 if test "${enable_spasswd+set}" = set; then
2603 enableval="$enable_spasswd"
2606 for ol_val in auto yes no ; do
2607 if test "$enableval" = "$ol_val" ; then
2611 if test "$ol_arg" = "invalid" ; then
2612 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2613 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2614 { (exit 1); exit 1; }; }
2616 ol_enable_spasswd="$ol_arg"
2619 ol_enable_spasswd=no
2621 # end --enable-spasswd
2622 # OpenLDAP --enable-modules
2624 # Check whether --enable-modules or --disable-modules was given.
2625 if test "${enable_modules+set}" = set; then
2626 enableval="$enable_modules"
2629 for ol_val in auto yes no ; do
2630 if test "$enableval" = "$ol_val" ; then
2634 if test "$ol_arg" = "invalid" ; then
2635 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2637 { (exit 1); exit 1; }; }
2639 ol_enable_modules="$ol_arg"
2642 ol_enable_modules=no
2644 # end --enable-modules
2645 ol_enable_multimaster=${ol_enable_multimaster-no}
2646 # OpenLDAP --enable-rewrite
2648 # Check whether --enable-rewrite or --disable-rewrite was given.
2649 if test "${enable_rewrite+set}" = set; then
2650 enableval="$enable_rewrite"
2653 for ol_val in auto yes no ; do
2654 if test "$enableval" = "$ol_val" ; then
2658 if test "$ol_arg" = "invalid" ; then
2659 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2660 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2661 { (exit 1); exit 1; }; }
2663 ol_enable_rewrite="$ol_arg"
2666 ol_enable_rewrite=auto
2668 # end --enable-rewrite
2669 # OpenLDAP --enable-rlookups
2671 # Check whether --enable-rlookups or --disable-rlookups was given.
2672 if test "${enable_rlookups+set}" = set; then
2673 enableval="$enable_rlookups"
2676 for ol_val in auto yes no ; do
2677 if test "$enableval" = "$ol_val" ; then
2681 if test "$ol_arg" = "invalid" ; then
2682 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2683 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2684 { (exit 1); exit 1; }; }
2686 ol_enable_rlookups="$ol_arg"
2689 ol_enable_rlookups=no
2691 # end --enable-rlookups
2692 # OpenLDAP --enable-slapi
2694 # Check whether --enable-slapi or --disable-slapi was given.
2695 if test "${enable_slapi+set}" = set; then
2696 enableval="$enable_slapi"
2699 for ol_val in auto yes no ; do
2700 if test "$enableval" = "$ol_val" ; then
2704 if test "$ol_arg" = "invalid" ; then
2705 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2706 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2707 { (exit 1); exit 1; }; }
2709 ol_enable_slapi="$ol_arg"
2714 # end --enable-slapi
2715 # OpenLDAP --enable-slp
2717 # Check whether --enable-slp or --disable-slp was given.
2718 if test "${enable_slp+set}" = set; then
2719 enableval="$enable_slp"
2722 for ol_val in auto yes no ; do
2723 if test "$enableval" = "$ol_val" ; then
2727 if test "$ol_arg" = "invalid" ; then
2728 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2730 { (exit 1); exit 1; }; }
2732 ol_enable_slp="$ol_arg"
2738 # OpenLDAP --enable-wrappers
2740 # Check whether --enable-wrappers or --disable-wrappers was given.
2741 if test "${enable_wrappers+set}" = set; then
2742 enableval="$enable_wrappers"
2745 for ol_val in auto yes no ; do
2746 if test "$enableval" = "$ol_val" ; then
2750 if test "$ol_arg" = "invalid" ; then
2751 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2753 { (exit 1); exit 1; }; }
2755 ol_enable_wrappers="$ol_arg"
2758 ol_enable_wrappers=no
2760 # end --enable-wrappers
2776 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2777 if test "${enable_xxslapbackends+set}" = set; then
2778 enableval="$enable_xxslapbackends"
2782 # OpenLDAP --enable-backends
2784 # Check whether --enable-backends or --disable-backends was given.
2785 if test "${enable_backends+set}" = set; then
2786 enableval="$enable_backends"
2789 for ol_val in no yes mod ; do
2790 if test "$enableval" = "$ol_val" ; then
2794 if test "$ol_arg" = "invalid" ; then
2795 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2796 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2797 { (exit 1); exit 1; }; }
2799 ol_enable_backends="$ol_arg"
2802 # end --enable-backends
2803 # OpenLDAP --enable-bdb
2805 # Check whether --enable-bdb or --disable-bdb was given.
2806 if test "${enable_bdb+set}" = set; then
2807 enableval="$enable_bdb"
2810 for ol_val in no yes mod ; do
2811 if test "$enableval" = "$ol_val" ; then
2815 if test "$ol_arg" = "invalid" ; then
2816 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2818 { (exit 1); exit 1; }; }
2820 ol_enable_bdb="$ol_arg"
2823 ol_enable_bdb=${ol_enable_backends:-yes}
2826 # OpenLDAP --enable-dnssrv
2828 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2829 if test "${enable_dnssrv+set}" = set; then
2830 enableval="$enable_dnssrv"
2833 for ol_val in no yes mod ; do
2834 if test "$enableval" = "$ol_val" ; then
2838 if test "$ol_arg" = "invalid" ; then
2839 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2840 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2841 { (exit 1); exit 1; }; }
2843 ol_enable_dnssrv="$ol_arg"
2846 ol_enable_dnssrv=${ol_enable_backends:-no}
2848 # end --enable-dnssrv
2849 # OpenLDAP --enable-hdb
2851 # Check whether --enable-hdb or --disable-hdb was given.
2852 if test "${enable_hdb+set}" = set; then
2853 enableval="$enable_hdb"
2856 for ol_val in no yes mod ; do
2857 if test "$enableval" = "$ol_val" ; then
2861 if test "$ol_arg" = "invalid" ; then
2862 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2864 { (exit 1); exit 1; }; }
2866 ol_enable_hdb="$ol_arg"
2869 ol_enable_hdb=${ol_enable_backends:-yes}
2872 # OpenLDAP --enable-ldap
2874 # Check whether --enable-ldap or --disable-ldap was given.
2875 if test "${enable_ldap+set}" = set; then
2876 enableval="$enable_ldap"
2879 for ol_val in no yes mod ; do
2880 if test "$enableval" = "$ol_val" ; then
2884 if test "$ol_arg" = "invalid" ; then
2885 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2886 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2887 { (exit 1); exit 1; }; }
2889 ol_enable_ldap="$ol_arg"
2892 ol_enable_ldap=${ol_enable_backends:-no}
2895 # OpenLDAP --enable-ldbm
2897 # Check whether --enable-ldbm or --disable-ldbm was given.
2898 if test "${enable_ldbm+set}" = set; then
2899 enableval="$enable_ldbm"
2902 for ol_val in no yes mod ; do
2903 if test "$enableval" = "$ol_val" ; then
2907 if test "$ol_arg" = "invalid" ; then
2908 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2909 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2910 { (exit 1); exit 1; }; }
2912 ol_enable_ldbm="$ol_arg"
2915 ol_enable_ldbm=${ol_enable_backends:-no}
2919 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2920 if test "${with_ldbm_api+set}" = set; then
2921 withval="$with_ldbm_api"
2923 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2924 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2925 enable_ldbm_api="$with_ldbm_api"
2927 # OpenLDAP --enable-ldbm_api
2929 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2930 if test "${enable_ldbm_api+set}" = set; then
2931 enableval="$enable_ldbm_api"
2934 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2935 if test "$enableval" = "$ol_val" ; then
2939 if test "$ol_arg" = "invalid" ; then
2940 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2941 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2942 { (exit 1); exit 1; }; }
2944 ol_enable_ldbm_api="$ol_arg"
2947 ol_enable_ldbm_api=auto
2949 # end --enable-ldbm_api
2952 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2953 if test "${with_ldbm_type+set}" = set; then
2954 withval="$with_ldbm_type"
2956 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2957 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2958 enable_ldbm_type="$with_ldbm_type"
2960 # OpenLDAP --enable-ldbm_type
2962 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2963 if test "${enable_ldbm_type+set}" = set; then
2964 enableval="$enable_ldbm_type"
2967 for ol_val in auto btree hash ; do
2968 if test "$enableval" = "$ol_val" ; then
2972 if test "$ol_arg" = "invalid" ; then
2973 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2975 { (exit 1); exit 1; }; }
2977 ol_enable_ldbm_type="$ol_arg"
2980 ol_enable_ldbm_type=auto
2982 # end --enable-ldbm_type
2984 # OpenLDAP --enable-meta
2986 # Check whether --enable-meta or --disable-meta was given.
2987 if test "${enable_meta+set}" = set; then
2988 enableval="$enable_meta"
2991 for ol_val in no yes mod ; do
2992 if test "$enableval" = "$ol_val" ; then
2996 if test "$ol_arg" = "invalid" ; then
2997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2999 { (exit 1); exit 1; }; }
3001 ol_enable_meta="$ol_arg"
3004 ol_enable_meta=${ol_enable_backends:-no}
3007 # OpenLDAP --enable-monitor
3009 # Check whether --enable-monitor or --disable-monitor was given.
3010 if test "${enable_monitor+set}" = set; then
3011 enableval="$enable_monitor"
3014 for ol_val in no yes mod ; do
3015 if test "$enableval" = "$ol_val" ; then
3019 if test "$ol_arg" = "invalid" ; then
3020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3021 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3022 { (exit 1); exit 1; }; }
3024 ol_enable_monitor="$ol_arg"
3027 ol_enable_monitor=${ol_enable_backends:-yes}
3029 # end --enable-monitor
3030 # OpenLDAP --enable-null
3032 # Check whether --enable-null or --disable-null was given.
3033 if test "${enable_null+set}" = set; then
3034 enableval="$enable_null"
3037 for ol_val in no yes mod ; do
3038 if test "$enableval" = "$ol_val" ; then
3042 if test "$ol_arg" = "invalid" ; then
3043 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3044 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3045 { (exit 1); exit 1; }; }
3047 ol_enable_null="$ol_arg"
3050 ol_enable_null=${ol_enable_backends:-no}
3053 # OpenLDAP --enable-passwd
3055 # Check whether --enable-passwd or --disable-passwd was given.
3056 if test "${enable_passwd+set}" = set; then
3057 enableval="$enable_passwd"
3060 for ol_val in no yes mod ; do
3061 if test "$enableval" = "$ol_val" ; then
3065 if test "$ol_arg" = "invalid" ; then
3066 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3067 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3068 { (exit 1); exit 1; }; }
3070 ol_enable_passwd="$ol_arg"
3073 ol_enable_passwd=${ol_enable_backends:-no}
3075 # end --enable-passwd
3076 # OpenLDAP --enable-perl
3078 # Check whether --enable-perl or --disable-perl was given.
3079 if test "${enable_perl+set}" = set; then
3080 enableval="$enable_perl"
3083 for ol_val in no yes mod ; do
3084 if test "$enableval" = "$ol_val" ; then
3088 if test "$ol_arg" = "invalid" ; then
3089 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3090 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3091 { (exit 1); exit 1; }; }
3093 ol_enable_perl="$ol_arg"
3096 ol_enable_perl=${ol_enable_backends:-no}
3099 # OpenLDAP --enable-relay
3101 # Check whether --enable-relay or --disable-relay was given.
3102 if test "${enable_relay+set}" = set; then
3103 enableval="$enable_relay"
3106 for ol_val in no yes mod ; do
3107 if test "$enableval" = "$ol_val" ; then
3111 if test "$ol_arg" = "invalid" ; then
3112 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3114 { (exit 1); exit 1; }; }
3116 ol_enable_relay="$ol_arg"
3119 ol_enable_relay=${ol_enable_backends:-yes}
3121 # end --enable-relay
3122 # OpenLDAP --enable-shell
3124 # Check whether --enable-shell or --disable-shell was given.
3125 if test "${enable_shell+set}" = set; then
3126 enableval="$enable_shell"
3129 for ol_val in no yes mod ; do
3130 if test "$enableval" = "$ol_val" ; then
3134 if test "$ol_arg" = "invalid" ; then
3135 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3137 { (exit 1); exit 1; }; }
3139 ol_enable_shell="$ol_arg"
3142 ol_enable_shell=${ol_enable_backends:-no}
3144 # end --enable-shell
3145 # OpenLDAP --enable-sql
3147 # Check whether --enable-sql or --disable-sql was given.
3148 if test "${enable_sql+set}" = set; then
3149 enableval="$enable_sql"
3152 for ol_val in no yes mod ; do
3153 if test "$enableval" = "$ol_val" ; then
3157 if test "$ol_arg" = "invalid" ; then
3158 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3160 { (exit 1); exit 1; }; }
3162 ol_enable_sql="$ol_arg"
3165 ol_enable_sql=${ol_enable_backends:-no}
3169 Overlays="accesslog \
3185 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3186 if test "${enable_xxslapoverlays+set}" = set; then
3187 enableval="$enable_xxslapoverlays"
3191 # OpenLDAP --enable-overlays
3193 # Check whether --enable-overlays or --disable-overlays was given.
3194 if test "${enable_overlays+set}" = set; then
3195 enableval="$enable_overlays"
3198 for ol_val in no yes mod ; do
3199 if test "$enableval" = "$ol_val" ; then
3203 if test "$ol_arg" = "invalid" ; then
3204 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3206 { (exit 1); exit 1; }; }
3208 ol_enable_overlays="$ol_arg"
3211 # end --enable-overlays
3212 # OpenLDAP --enable-accesslog
3214 # Check whether --enable-accesslog or --disable-accesslog was given.
3215 if test "${enable_accesslog+set}" = set; then
3216 enableval="$enable_accesslog"
3219 for ol_val in no yes mod ; do
3220 if test "$enableval" = "$ol_val" ; then
3224 if test "$ol_arg" = "invalid" ; then
3225 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3227 { (exit 1); exit 1; }; }
3229 ol_enable_accesslog="$ol_arg"
3232 ol_enable_accesslog=${ol_enable_overlays:-no}
3234 # end --enable-accesslog
3236 # OpenLDAP --enable-dds
3238 # Check whether --enable-dds or --disable-dds was given.
3239 if test "${enable_dds+set}" = set; then
3240 enableval="$enable_dds"
3243 for ol_val in no yes mod ; do
3244 if test "$enableval" = "$ol_val" ; then
3248 if test "$ol_arg" = "invalid" ; then
3249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3251 { (exit 1); exit 1; }; }
3253 ol_enable_dds="$ol_arg"
3256 ol_enable_dds=${ol_enable_overlays:-no}
3260 # OpenLDAP --enable-denyop
3262 # Check whether --enable-denyop or --disable-denyop was given.
3263 if test "${enable_denyop+set}" = set; then
3264 enableval="$enable_denyop"
3267 for ol_val in no yes mod ; do
3268 if test "$enableval" = "$ol_val" ; then
3272 if test "$ol_arg" = "invalid" ; then
3273 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3275 { (exit 1); exit 1; }; }
3277 ol_enable_denyop="$ol_arg"
3280 ol_enable_denyop=${ol_enable_overlays:-no}
3282 # end --enable-denyop
3284 # OpenLDAP --enable-dyngroup
3286 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3287 if test "${enable_dyngroup+set}" = set; then
3288 enableval="$enable_dyngroup"
3291 for ol_val in no yes mod ; do
3292 if test "$enableval" = "$ol_val" ; then
3296 if test "$ol_arg" = "invalid" ; then
3297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_dyngroup="$ol_arg"
3304 ol_enable_dyngroup=${ol_enable_overlays:-no}
3306 # end --enable-dyngroup
3308 # OpenLDAP --enable-dynlist
3310 # Check whether --enable-dynlist or --disable-dynlist was given.
3311 if test "${enable_dynlist+set}" = set; then
3312 enableval="$enable_dynlist"
3315 for ol_val in no yes mod ; do
3316 if test "$enableval" = "$ol_val" ; then
3320 if test "$ol_arg" = "invalid" ; then
3321 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3323 { (exit 1); exit 1; }; }
3325 ol_enable_dynlist="$ol_arg"
3328 ol_enable_dynlist=${ol_enable_overlays:-no}
3330 # end --enable-dynlist
3332 # OpenLDAP --enable-lastmod
3334 # Check whether --enable-lastmod or --disable-lastmod was given.
3335 if test "${enable_lastmod+set}" = set; then
3336 enableval="$enable_lastmod"
3339 for ol_val in no yes mod ; do
3340 if test "$enableval" = "$ol_val" ; then
3344 if test "$ol_arg" = "invalid" ; then
3345 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3347 { (exit 1); exit 1; }; }
3349 ol_enable_lastmod="$ol_arg"
3352 ol_enable_lastmod=${ol_enable_overlays:-no}
3354 # end --enable-lastmod
3356 # OpenLDAP --enable-ppolicy
3358 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3359 if test "${enable_ppolicy+set}" = set; then
3360 enableval="$enable_ppolicy"
3363 for ol_val in no yes mod ; do
3364 if test "$enableval" = "$ol_val" ; then
3368 if test "$ol_arg" = "invalid" ; then
3369 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3371 { (exit 1); exit 1; }; }
3373 ol_enable_ppolicy="$ol_arg"
3376 ol_enable_ppolicy=${ol_enable_overlays:-no}
3378 # end --enable-ppolicy
3380 # OpenLDAP --enable-proxycache
3382 # Check whether --enable-proxycache or --disable-proxycache was given.
3383 if test "${enable_proxycache+set}" = set; then
3384 enableval="$enable_proxycache"
3387 for ol_val in no yes mod ; do
3388 if test "$enableval" = "$ol_val" ; then
3392 if test "$ol_arg" = "invalid" ; then
3393 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3395 { (exit 1); exit 1; }; }
3397 ol_enable_proxycache="$ol_arg"
3400 ol_enable_proxycache=${ol_enable_overlays:-no}
3402 # end --enable-proxycache
3404 # OpenLDAP --enable-refint
3406 # Check whether --enable-refint or --disable-refint was given.
3407 if test "${enable_refint+set}" = set; then
3408 enableval="$enable_refint"
3411 for ol_val in no yes mod ; do
3412 if test "$enableval" = "$ol_val" ; then
3416 if test "$ol_arg" = "invalid" ; then
3417 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3419 { (exit 1); exit 1; }; }
3421 ol_enable_refint="$ol_arg"
3424 ol_enable_refint=${ol_enable_overlays:-no}
3426 # end --enable-refint
3428 # OpenLDAP --enable-retcode
3430 # Check whether --enable-retcode or --disable-retcode was given.
3431 if test "${enable_retcode+set}" = set; then
3432 enableval="$enable_retcode"
3435 for ol_val in no yes mod ; do
3436 if test "$enableval" = "$ol_val" ; then
3440 if test "$ol_arg" = "invalid" ; then
3441 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3443 { (exit 1); exit 1; }; }
3445 ol_enable_retcode="$ol_arg"
3448 ol_enable_retcode=${ol_enable_overlays:-no}
3450 # end --enable-retcode
3452 # OpenLDAP --enable-rwm
3454 # Check whether --enable-rwm or --disable-rwm was given.
3455 if test "${enable_rwm+set}" = set; then
3456 enableval="$enable_rwm"
3459 for ol_val in no yes mod ; do
3460 if test "$enableval" = "$ol_val" ; then
3464 if test "$ol_arg" = "invalid" ; then
3465 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3467 { (exit 1); exit 1; }; }
3469 ol_enable_rwm="$ol_arg"
3472 ol_enable_rwm=${ol_enable_overlays:-no}
3476 # OpenLDAP --enable-syncprov
3478 # Check whether --enable-syncprov or --disable-syncprov was given.
3479 if test "${enable_syncprov+set}" = set; then
3480 enableval="$enable_syncprov"
3483 for ol_val in no yes mod ; do
3484 if test "$enableval" = "$ol_val" ; then
3488 if test "$ol_arg" = "invalid" ; then
3489 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3491 { (exit 1); exit 1; }; }
3493 ol_enable_syncprov="$ol_arg"
3496 ol_enable_syncprov=${ol_enable_overlays:-yes}
3498 # end --enable-syncprov
3500 # OpenLDAP --enable-translucent
3502 # Check whether --enable-translucent or --disable-translucent was given.
3503 if test "${enable_translucent+set}" = set; then
3504 enableval="$enable_translucent"
3507 for ol_val in no yes mod ; do
3508 if test "$enableval" = "$ol_val" ; then
3512 if test "$ol_arg" = "invalid" ; then
3513 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3515 { (exit 1); exit 1; }; }
3517 ol_enable_translucent="$ol_arg"
3520 ol_enable_translucent=${ol_enable_overlays:-no}
3522 # end --enable-translucent
3524 # OpenLDAP --enable-unique
3526 # Check whether --enable-unique or --disable-unique was given.
3527 if test "${enable_unique+set}" = set; then
3528 enableval="$enable_unique"
3531 for ol_val in no yes mod ; do
3532 if test "$enableval" = "$ol_val" ; then
3536 if test "$ol_arg" = "invalid" ; then
3537 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3538 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3539 { (exit 1); exit 1; }; }
3541 ol_enable_unique="$ol_arg"
3544 ol_enable_unique=${ol_enable_overlays:-no}
3546 # end --enable-unique
3548 # OpenLDAP --enable-valsort
3550 # Check whether --enable-valsort or --disable-valsort was given.
3551 if test "${enable_valsort+set}" = set; then
3552 enableval="$enable_valsort"
3555 for ol_val in no yes mod ; do
3556 if test "$enableval" = "$ol_val" ; then
3560 if test "$ol_arg" = "invalid" ; then
3561 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3562 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3563 { (exit 1); exit 1; }; }
3565 ol_enable_valsort="$ol_arg"
3568 ol_enable_valsort=${ol_enable_overlays:-no}
3570 # end --enable-valsort
3573 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3574 if test "${enable_xxslurpdoptions+set}" = set; then
3575 enableval="$enable_xxslurpdoptions"
3578 # OpenLDAP --enable-slurpd
3580 # Check whether --enable-slurpd or --disable-slurpd was given.
3581 if test "${enable_slurpd+set}" = set; then
3582 enableval="$enable_slurpd"
3585 for ol_val in auto yes no ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3593 { (exit 1); exit 1; }; }
3595 ol_enable_slurpd="$ol_arg"
3598 ol_enable_slurpd=auto
3600 # end --enable-slurpd
3602 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3603 if test "${enable_xxliboptions+set}" = set; then
3604 enableval="$enable_xxliboptions"
3607 # Check whether --enable-static or --disable-static was given.
3608 if test "${enable_static+set}" = set; then
3609 enableval="$enable_static"
3610 p=${PACKAGE-default}
3612 yes) enable_static=yes ;;
3613 no) enable_static=no ;;
3616 # Look at the argument we got. We use all the common list separators.
3617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3618 for pkg in $enableval; do
3620 if test "X$pkg" = "X$p"; then
3631 # Check whether --enable-shared or --disable-shared was given.
3632 if test "${enable_shared+set}" = set; then
3633 enableval="$enable_shared"
3634 p=${PACKAGE-default}
3636 yes) enable_shared=yes ;;
3637 no) enable_shared=no ;;
3640 # Look at the argument we got. We use all the common list separators.
3641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3642 for pkg in $enableval; do
3644 if test "X$pkg" = "X$p"; then
3658 if test $ol_enable_slapd = no ; then
3659 if test $ol_enable_slapi = yes ; then
3660 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3661 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3663 case "$ol_enable_backends" in yes | mod)
3664 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3667 for i in $Backends; do
3668 eval "ol_tmp=\$ol_enable_$i"
3669 if test $ol_tmp != no ; then
3670 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3672 eval "ol_enable_$i=no"
3675 if test $ol_enable_modules = yes ; then
3676 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3677 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3679 if test $ol_enable_multimaster = yes ; then
3680 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3681 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3683 if test $ol_enable_wrappers = yes ; then
3684 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3687 if test $ol_enable_rlookups = yes ; then
3688 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3691 if test $ol_enable_aci = yes ; then
3692 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3695 if test $ol_enable_ldbm_api != auto ; then
3696 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3699 if test $ol_enable_ldbm_type != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3703 if test $ol_enable_slurpd = yes ; then
3704 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3705 echo "$as_me: error: slurpd requires slapd" >&2;}
3706 { (exit 1); exit 1; }; }
3708 if test $ol_enable_rewrite = yes ; then
3709 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3712 case "$ol_enable_overlays" in yes | mod)
3713 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3716 for i in $Overlays; do
3717 eval "ol_tmp=\$ol_enable_$i"
3718 if test $ol_tmp != no ; then
3719 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3720 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3721 eval "ol_enable_$i=no"
3725 # force settings to no
3730 ol_enable_modules=no
3731 ol_enable_multimaster=no
3732 ol_enable_rlookups=no
3735 ol_enable_wrappers=no
3737 ol_enable_ldbm_api=no
3738 ol_enable_ldbm_type=no
3742 ol_enable_rewrite=no
3744 elif test $ol_enable_ldbm = no ; then
3746 if test $ol_enable_ldbm_api != auto ; then
3747 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3748 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3751 if test $ol_enable_ldbm_type != auto ; then
3752 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3753 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3756 if test $ol_enable_modules != yes &&
3757 test $ol_enable_bdb = no &&
3758 test $ol_enable_dnssrv = no &&
3759 test $ol_enable_hdb = no &&
3760 test $ol_enable_ldap = no &&
3761 test $ol_enable_meta = no &&
3762 test $ol_enable_monitor = no &&
3763 test $ol_enable_null = no &&
3764 test $ol_enable_passwd = no &&
3765 test $ol_enable_perl = no &&
3766 test $ol_enable_relay = no &&
3767 test $ol_enable_shell = no &&
3768 test $ol_enable_sql = no ; then
3770 if test $ol_enable_slapd = yes ; then
3771 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3772 echo "$as_me: error: slapd requires a backend" >&2;}
3773 { (exit 1); exit 1; }; }
3775 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3776 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3781 ol_enable_ldbm_api=no
3782 ol_enable_ldbm_type=no
3784 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3785 ol_enable_ldbm_api=berkeley
3789 if test $ol_enable_ldbm_api = gdbm &&
3790 test $ol_enable_ldbm_type = btree ; then
3791 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3792 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3793 { (exit 1); exit 1; }; }
3795 if test $ol_enable_ldbm_api = mdbm &&
3796 test $ol_enable_ldbm_type = btree ; then
3797 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3798 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3799 { (exit 1); exit 1; }; }
3801 if test $ol_enable_ldbm_api = ndbm &&
3802 test $ol_enable_ldbm_type = btree ; then
3803 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3804 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3805 { (exit 1); exit 1; }; }
3808 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3809 if test $ol_enable_ldbm_api = auto ; then
3810 ol_enable_ldbm_api=berkeley
3811 elif test $ol_enable_ldbm_api != berkeley ; then
3812 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3813 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3814 { (exit 1); exit 1; }; }
3819 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3820 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3821 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3822 { (exit 1); exit 1; }; }
3825 if test $ol_enable_slurpd = yes ; then
3826 if test $ol_with_threads = no ; then
3827 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3828 echo "$as_me: error: slurpd requires threads" >&2;}
3829 { (exit 1); exit 1; }; }
3833 if test $ol_enable_lmpasswd = yes ; then
3834 if test $ol_with_tls = no ; then
3835 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3836 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3837 { (exit 1); exit 1; }; }
3841 if test $ol_enable_kbind = yes ; then
3842 if test $ol_with_kerberos = no ; then
3843 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3844 echo "$as_me: error: options require --with-kerberos" >&2;}
3845 { (exit 1); exit 1; }; }
3846 elif test $ol_with_kerberos = auto ; then
3847 ol_with_kerberos=yes
3850 elif test $ol_enable_kbind = no ; then
3851 if test $ol_with_kerberos = auto ; then
3853 elif test $ol_with_kerberos != no ; then
3854 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3855 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3860 if test $ol_enable_spasswd = yes ; then
3861 if test $ol_with_cyrus_sasl = no ; then
3862 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3863 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3864 { (exit 1); exit 1; }; }
3866 ol_with_cyrus_sasl=yes
3869 echo "$as_me:$LINENO: result: done" >&5
3870 echo "${ECHO_T}done" >&6
3914 BUILD_TRANSLUCENT=no
3918 SLAPD_STATIC_OVERLAYS=
3919 SLAPD_DYNAMIC_OVERLAYS=
3921 SLAPD_MODULES_LDFLAGS=
3922 SLAPD_MODULES_CPPFLAGS=
3924 SLAPD_STATIC_BACKENDS=back-ldif
3925 SLAPD_DYNAMIC_BACKENDS=
3951 cat >>confdefs.h <<\_ACEOF
3952 #define HAVE_MKVERSION 1
3960 *-*-aix*) if test -z "$CC" ; then
3961 case "$ol_with_threads" in
3962 auto | yes | posix) ol_aix_threads=yes ;;
3968 if test $ol_aix_threads = yes ; then
3969 if test -z "${CC}" ; then
3970 for ac_prog in cc_r xlc_r cc
3972 # Extract the first word of "$ac_prog", so it can be a program name with args.
3973 set dummy $ac_prog; ac_word=$2
3974 echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3976 if test "${ac_cv_prog_CC+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="$ac_prog"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 if test -n "$CC"; then
4000 echo "$as_me:$LINENO: result: $CC" >&5
4001 echo "${ECHO_T}$CC" >&6
4003 echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4007 test -n "$CC" && break
4011 if test "$CC" = cc ; then
4012 if test $ol_with_threads != auto ; then
4013 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4014 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4015 { (exit 1); exit 1; }; }
4017 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4018 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4024 case ${CC} in cc_r | xlc_r)
4025 ol_with_threads=posix
4026 ol_cv_pthread_create=yes
4031 if test -z "${CC}"; then
4032 for ac_prog in cc gcc
4034 # Extract the first word of "$ac_prog", so it can be a program name with args.
4035 set dummy $ac_prog; ac_word=$2
4036 echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_CC+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_CC="$ac_prog"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 if test -n "$CC"; then
4062 echo "$as_me:$LINENO: result: $CC" >&5
4063 echo "${ECHO_T}$CC" >&6
4065 echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4069 test -n "$CC" && break
4071 test -n "$CC" || CC="missing"
4074 if test "${CC}" = "missing" ; then
4075 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4076 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4077 { (exit 1); exit 1; }; }
4081 if test -z "${AR}"; then
4082 for ac_prog in ar gar
4084 # Extract the first word of "$ac_prog", so it can be a program name with args.
4085 set dummy $ac_prog; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_AR+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 if test -n "$AR"; then
4092 ac_cv_prog_AR="$AR" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_AR="$ac_prog"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 if test -n "$AR"; then
4112 echo "$as_me:$LINENO: result: $AR" >&5
4113 echo "${ECHO_T}$AR" >&6
4115 echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4119 test -n "$AR" && break
4121 test -n "$AR" || AR="missing"
4124 if test "${AR}" = "missing" ; then
4125 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4126 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4127 { (exit 1); exit 1; }; }
4135 # Check whether --enable-fast-install or --disable-fast-install was given.
4136 if test "${enable_fast_install+set}" = set; then
4137 enableval="$enable_fast_install"
4138 p=${PACKAGE-default}
4140 yes) enable_fast_install=yes ;;
4141 no) enable_fast_install=no ;;
4143 enable_fast_install=no
4144 # Look at the argument we got. We use all the common list separators.
4145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4146 for pkg in $enableval; do
4148 if test "X$pkg" = "X$p"; then
4149 enable_fast_install=yes
4156 enable_fast_install=yes
4159 DEPDIR="${am__leading_dot}deps"
4161 ac_config_commands="$ac_config_commands depfiles"
4164 am_make=${MAKE-make}
4165 cat > confinc << 'END'
4170 # If we don't find an include directive, just comment out the code.
4171 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4172 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4176 # First try GNU make style include.
4177 echo "include confinc" > confmf
4178 # We grep out `Entering directory' and `Leaving directory'
4179 # messages which can occur if `w' ends up in MAKEFLAGS.
4180 # In particular we don't look at `^make:' because GNU make might
4181 # be invoked under some other name (usually "gmake"), in which
4182 # case it prints its new name instead of `make'.
4183 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4188 # Now try BSD make style include.
4189 if test "$am__include" = "#"; then
4190 echo '.include "confinc"' > confmf
4191 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4192 am__include=.include
4199 echo "$as_me:$LINENO: result: $_am_result" >&5
4200 echo "${ECHO_T}$_am_result" >&6
4201 rm -f confinc confmf
4203 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4204 if test "${enable_dependency_tracking+set}" = set; then
4205 enableval="$enable_dependency_tracking"
4208 if test "x$enable_dependency_tracking" != xno; then
4209 am_depcomp="$ac_aux_dir/depcomp"
4214 if test "x$enable_dependency_tracking" != xno; then
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_CC+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test -n "$CC"; then
4258 echo "$as_me:$LINENO: result: $CC" >&5
4259 echo "${ECHO_T}$CC" >&6
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4266 if test -z "$ac_cv_prog_CC"; then
4268 # Extract the first word of "gcc", so it can be a program name with args.
4269 set dummy gcc; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 if test -n "$ac_ct_CC"; then
4276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_ac_ct_CC="gcc"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4295 if test -n "$ac_ct_CC"; then
4296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4297 echo "${ECHO_T}$ac_ct_CC" >&6
4299 echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4308 if test -z "$CC"; then
4309 if test -n "$ac_tool_prefix"; then
4310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}cc; ac_word=$2
4312 echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314 if test "${ac_cv_prog_CC+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 if test -n "$CC"; then
4318 ac_cv_prog_CC="$CC" # Let the user override the test.
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_CC="${ac_tool_prefix}cc"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 if test -n "$CC"; then
4338 echo "$as_me:$LINENO: result: $CC" >&5
4339 echo "${ECHO_T}$CC" >&6
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4346 if test -z "$ac_cv_prog_CC"; then
4348 # Extract the first word of "cc", so it can be a program name with args.
4349 set dummy cc; ac_word=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 if test -n "$ac_ct_CC"; then
4356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_ac_ct_CC="cc"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375 if test -n "$ac_ct_CC"; then
4376 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4377 echo "${ECHO_T}$ac_ct_CC" >&6
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4389 if test -z "$CC"; then
4390 # Extract the first word of "cc", so it can be a program name with args.
4391 set dummy cc; ac_word=$2
4392 echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_prog_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$CC"; then
4398 ac_cv_prog_CC="$CC" # Let the user override the test.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4409 ac_prog_rejected=yes
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 if test $ac_prog_rejected = yes; then
4420 # We found a bogon in the path, so make sure we never use it.
4421 set dummy $ac_cv_prog_CC
4423 if test $# != 0; then
4424 # We chose a different compiler from the bogus one.
4425 # However, it has the same basename, so the bogon will be chosen
4426 # first if we set CC to just the basename; use the full file name.
4428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4434 if test -n "$CC"; then
4435 echo "$as_me:$LINENO: result: $CC" >&5
4436 echo "${ECHO_T}$CC" >&6
4438 echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6
4443 if test -z "$CC"; then
4444 if test -n "$ac_tool_prefix"; then
4447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_CC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 if test -n "$CC"; then
4455 ac_cv_prog_CC="$CC" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 if test -n "$CC"; then
4475 echo "$as_me:$LINENO: result: $CC" >&5
4476 echo "${ECHO_T}$CC" >&6
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4482 test -n "$CC" && break
4485 if test -z "$CC"; then
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$ac_ct_CC"; then
4497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_ac_ct_CC="$ac_prog"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516 if test -n "$ac_ct_CC"; then
4517 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4518 echo "${ECHO_T}$ac_ct_CC" >&6
4520 echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4524 test -n "$ac_ct_CC" && break
4533 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4534 See \`config.log' for more details." >&5
4535 echo "$as_me: error: no acceptable C compiler found in \$PATH
4536 See \`config.log' for more details." >&2;}
4537 { (exit 1); exit 1; }; }
4539 # Provide some information about the compiler.
4540 echo "$as_me:$LINENO:" \
4541 "checking for C compiler version" >&5
4542 ac_compiler=`set X $ac_compile; echo $2`
4543 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4544 (eval $ac_compiler --version </dev/null >&5) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4549 (eval $ac_compiler -v </dev/null >&5) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4554 (eval $ac_compiler -V </dev/null >&5) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4574 ac_clean_files_save=$ac_clean_files
4575 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4576 # Try to create an executable without -o first, disregard a.out.
4577 # It will help us diagnose broken compilers, and finding out an intuition
4579 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4580 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4581 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4583 (eval $ac_link_default) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; then
4587 # Find the output, starting from the most likely. This scheme is
4588 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4591 # Be careful to initialize this variable, since it used to be cached.
4592 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4594 # b.out is created by i960 compilers.
4595 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4597 test -f "$ac_file" || continue
4599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4602 # This is the source file.
4605 # We found the default executable, but exeext='' is most
4609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4610 # FIXME: I believe we export ac_cv_exeext for Libtool,
4611 # but it would be cool to find out if it's true. Does anybody
4612 # maintain Libtool? --akim.
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4624 See \`config.log' for more details." >&5
4625 echo "$as_me: error: C compiler cannot create executables
4626 See \`config.log' for more details." >&2;}
4627 { (exit 77); exit 77; }; }
4630 ac_exeext=$ac_cv_exeext
4631 echo "$as_me:$LINENO: result: $ac_file" >&5
4632 echo "${ECHO_T}$ac_file" >&6
4634 # Check the compiler produces executables we can run. If not, either
4635 # the compiler is broken, or we cross compile.
4636 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4637 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4638 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4639 # If not cross compiling, check that we can run a simple program.
4640 if test "$cross_compiling" != yes; then
4641 if { ac_try='./$ac_file'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4649 if test "$cross_compiling" = maybe; then
4652 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4653 If you meant to cross compile, use \`--host'.
4654 See \`config.log' for more details." >&5
4655 echo "$as_me: error: cannot run C compiled programs.
4656 If you meant to cross compile, use \`--host'.
4657 See \`config.log' for more details." >&2;}
4658 { (exit 1); exit 1; }; }
4662 echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4665 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4666 ac_clean_files=$ac_clean_files_save
4667 # Check the compiler produces executables we can run. If not, either
4668 # the compiler is broken, or we cross compile.
4669 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4670 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4671 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4672 echo "${ECHO_T}$cross_compiling" >&6
4674 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4675 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677 (eval $ac_link) 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; then
4681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4683 # work properly (i.e., refer to `conftest.exe'), while it won't with
4685 for ac_file in conftest.exe conftest conftest.*; do
4686 test -f "$ac_file" || continue
4688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4696 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4697 See \`config.log' for more details." >&5
4698 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4699 See \`config.log' for more details." >&2;}
4700 { (exit 1); exit 1; }; }
4703 rm -f conftest$ac_cv_exeext
4704 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4705 echo "${ECHO_T}$ac_cv_exeext" >&6
4707 rm -f conftest.$ac_ext
4708 EXEEXT=$ac_cv_exeext
4710 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4711 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4712 if test "${ac_cv_objext+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4730 rm -f conftest.o conftest.obj
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; then
4736 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4750 See \`config.log' for more details." >&2;}
4751 { (exit 1); exit 1; }; }
4754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4756 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4757 echo "${ECHO_T}$ac_cv_objext" >&6
4758 OBJEXT=$ac_cv_objext
4760 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>conftest.er1
4787 grep -v '^ *+' conftest.er1 >conftest.err
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4816 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4817 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4818 GCC=`test $ac_compiler_gnu = yes && echo yes`
4819 ac_test_CFLAGS=${CFLAGS+set}
4820 ac_save_CFLAGS=$CFLAGS
4822 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4823 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4824 if test "${ac_cv_prog_cc_g+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4842 rm -f conftest.$ac_objext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1 >conftest.err
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } &&
4851 { ac_try='test -z "$ac_c_werror_flag"
4852 || test ! -s conftest.err'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; } &&
4858 { ac_try='test -s conftest.$ac_objext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4873 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4874 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4875 if test "$ac_test_CFLAGS" = set; then
4876 CFLAGS=$ac_save_CFLAGS
4877 elif test $ac_cv_prog_cc_g = yes; then
4878 if test "$GCC" = yes; then
4884 if test "$GCC" = yes; then
4890 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4891 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4892 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_cv_prog_cc_stdc=no
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4905 #include <sys/types.h>
4906 #include <sys/stat.h>
4907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4908 struct buf { int x; };
4909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4910 static char *e (p, i)
4916 static char *f (char * (*g) (char **, int), char **p, ...)
4921 s = g (p, va_arg (v,int));
4926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4927 function prototypes and stuff, but not '\xHH' hex character constants.
4928 These don't provoke an error unfortunately, instead are silently treated
4929 as 'x'. The following induces an error, until -std1 is added to get
4930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4931 array size at least. It's necessary to write '\x00'==0 to get something
4932 that's true only with -std1. */
4933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4935 int test (int i, double x);
4936 struct s1 {int (*f) (int a);};
4937 struct s2 {int (*f) (double a);};
4938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4949 # Don't try gcc -ansi; that turns off useful extensions and
4950 # breaks some systems' header files.
4951 # AIX -qlanglvl=ansi
4952 # Ultrix and OSF/1 -std1
4953 # HP-UX 10.20 and later -Ae
4954 # HP-UX older versions -Aa -D_HPUX_SOURCE
4955 # SVR4 -Xc -D__EXTENSIONS__
4956 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4958 CC="$ac_save_CC $ac_arg"
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_prog_cc_stdc=$ac_arg
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f conftest.err conftest.$ac_objext
4990 rm -f conftest.$ac_ext conftest.$ac_objext
4995 case "x$ac_cv_prog_cc_stdc" in
4997 echo "$as_me:$LINENO: result: none needed" >&5
4998 echo "${ECHO_T}none needed" >&6 ;;
5000 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5001 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5002 CC="$CC $ac_cv_prog_cc_stdc" ;;
5005 # Some people use a C++ compiler to compile C. Since we use `exit',
5006 # in C++ we need to declare it. In case someone uses the same compiler
5007 # for both compiling C and C++ we need to have the C++ compiler decide
5008 # the declaration of exit, since it's the most demanding environment.
5009 cat >conftest.$ac_ext <<_ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>conftest.er1
5018 grep -v '^ *+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 for ac_declaration in \
5038 'extern "C" void std::exit (int) throw (); using std::exit;' \
5039 'extern "C" void std::exit (int); using std::exit;' \
5040 'extern "C" void exit (int) throw ();' \
5041 'extern "C" void exit (int);' \
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5060 rm -f conftest.$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062 (eval $ac_compile) 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5105 rm -f conftest.$ac_objext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107 (eval $ac_compile) 2>conftest.er1
5109 grep -v '^ *+' conftest.er1 >conftest.err
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -z "$ac_c_werror_flag"
5115 || test ! -s conftest.err'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try='test -s conftest.$ac_objext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5136 if test -n "$ac_declaration"; then
5137 echo '#ifdef __cplusplus' >>confdefs.h
5138 echo $ac_declaration >>confdefs.h
5139 echo '#endif' >>confdefs.h
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154 depcc="$CC" am_compiler_list=
5156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5162 # We make a subdir and do the tests there. Otherwise we can end up
5163 # making bogus files that we don't know about and never remove. For
5164 # instance it was reported that on HP-UX the gcc test will end up
5165 # making a dummy file named `D' -- because `-MD' means `put the output
5168 # Copy depcomp to subdir because otherwise we won't find it if we're
5169 # using a relative directory.
5170 cp "$am_depcomp" conftest.dir
5172 # We will build objects and dependencies in a subdirectory because
5173 # it helps to detect inapplicable dependency modes. For instance
5174 # both Tru64's cc and ICC support -MD to output dependencies as a
5175 # side effect of compilation, but ICC will put the dependencies in
5176 # the current directory while Tru64 will put them in the object
5180 am_cv_CC_dependencies_compiler_type=none
5181 if test "$am_compiler_list" = ""; then
5182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5184 for depmode in $am_compiler_list; do
5185 # Setup a source with many dependencies, because some compilers
5186 # like to wrap large dependency lists on column 80 (with \), and
5187 # we should not choose a depcomp mode which is confused by this.
5189 # We need to recreate these files for each test, as the compiler may
5190 # overwrite some of them when testing with obscure command lines.
5191 # This happens at least with the AIX C compiler.
5193 for i in 1 2 3 4 5 6; do
5194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5196 # Solaris 8's {/usr,}/bin/sh.
5197 touch sub/conftst$i.h
5199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5203 # after this tag, mechanisms are not by side-effect, so they'll
5204 # only be used when explicitly requested
5205 if test "x$enable_dependency_tracking" = xyes; then
5213 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5214 # mode. It turns out that the SunPro C++ compiler does not properly
5215 # handle `-M -o', and we need to detect this.
5216 if depmode=$depmode \
5217 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5219 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5220 >/dev/null 2>conftest.err &&
5221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5222 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5224 # icc doesn't choke on unknown options, it will just issue warnings
5225 # or remarks (even with -Werror). So we grep stderr for any message
5226 # that says an option was ignored or not supported.
5227 # When given -MP, icc 7.0 and 7.1 complain thusly:
5228 # icc: Command line warning: ignoring option '-M'; no argument required
5229 # The diagnosis changed in icc 8.0:
5230 # icc: Command line remark: option '-MP' not supported
5231 if (grep 'ignoring option' conftest.err ||
5232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5233 am_cv_CC_dependencies_compiler_type=$depmode
5242 am_cv_CC_dependencies_compiler_type=none
5246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5253 test "x$enable_dependency_tracking" != xno \
5254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5256 am__fastdepCC_FALSE='#'
5258 am__fastdepCC_TRUE='#'
5259 am__fastdepCC_FALSE=
5263 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5264 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5265 if test "${lt_cv_path_SED+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 # Loop through the user's path and test for sed and gsed.
5269 # Then use that list of sed's as ones to test for truncation.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir=.
5275 for lt_ac_prog in sed gsed; do
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5278 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5285 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5286 # along with /bin/sed that truncates output.
5287 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5288 test ! -f $lt_ac_sed && continue
5289 cat /dev/null > conftest.in
5291 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5292 # Check for GNU sed and select it if it is found.
5293 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5294 lt_cv_path_SED=$lt_ac_sed
5298 cat conftest.in conftest.in >conftest.tmp
5299 mv conftest.tmp conftest.in
5300 cp conftest.in conftest.nl
5302 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5303 cmp -s conftest.out conftest.nl || break
5304 # 10000 chars as input seems more than enough
5305 test $lt_ac_count -gt 10 && break
5306 lt_ac_count=`expr $lt_ac_count + 1`
5307 if test $lt_ac_count -gt $lt_ac_max; then
5308 lt_ac_max=$lt_ac_count
5309 lt_cv_path_SED=$lt_ac_sed
5317 echo "$as_me:$LINENO: result: $SED" >&5
5318 echo "${ECHO_T}$SED" >&6
5320 echo "$as_me:$LINENO: checking for egrep" >&5
5321 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5322 if test "${ac_cv_prog_egrep+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5326 then ac_cv_prog_egrep='grep -E'
5327 else ac_cv_prog_egrep='egrep'
5330 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5331 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5332 EGREP=$ac_cv_prog_egrep
5336 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5337 if test "${with_gnu_ld+set}" = set; then
5338 withval="$with_gnu_ld"
5339 test "$withval" = no || with_gnu_ld=yes
5344 if test "$GCC" = yes; then
5345 # Check if gcc -print-prog-name=ld gives a path.
5346 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5347 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5350 # gcc leaves a trailing carriage return which upsets mingw
5351 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5353 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5356 # Accept absolute paths.
5358 re_direlt='/[^/][^/]*/\.\./'
5359 # Canonicalize the pathname of ld
5360 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5361 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5362 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5364 test -z "$LD" && LD="$ac_prog"
5367 # If it fails, then pretend we aren't using GCC.
5371 # If it is relative, then search for the first ld in PATH.
5375 elif test "$with_gnu_ld" = yes; then
5376 echo "$as_me:$LINENO: checking for GNU ld" >&5
5377 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5379 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5380 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5382 if test "${lt_cv_path_LD+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 if test -z "$LD"; then
5386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5387 for ac_dir in $PATH; do
5389 test -z "$ac_dir" && ac_dir=.
5390 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5391 lt_cv_path_LD="$ac_dir/$ac_prog"
5392 # Check to see if the program is GNU ld. I'd rather use --version,
5393 # but apparently some variants of GNU ld only accept -v.
5394 # Break only if it was the GNU/non-GNU ld that we prefer.
5395 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5396 *GNU* | *'with BFD'*)
5397 test "$with_gnu_ld" != no && break
5400 test "$with_gnu_ld" != yes && break
5407 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5412 if test -n "$LD"; then
5413 echo "$as_me:$LINENO: result: $LD" >&5
5414 echo "${ECHO_T}$LD" >&6
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5419 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5420 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5421 { (exit 1); exit 1; }; }
5422 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5423 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5424 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5428 case `$LD -v 2>&1 </dev/null` in
5429 *GNU* | *'with BFD'*)
5430 lt_cv_prog_gnu_ld=yes
5433 lt_cv_prog_gnu_ld=no
5437 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5438 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5439 with_gnu_ld=$lt_cv_prog_gnu_ld
5442 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5443 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5444 if test "${lt_cv_ld_reload_flag+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 lt_cv_ld_reload_flag='-r'
5449 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5450 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5451 reload_flag=$lt_cv_ld_reload_flag
5452 case $reload_flag in
5454 *) reload_flag=" $reload_flag" ;;
5456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5459 if test "$GCC" = yes; then
5460 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5462 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5467 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5468 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5469 if test "${lt_cv_path_NM+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test -n "$NM"; then
5473 # Let the user override the test.
5476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5477 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5479 test -z "$ac_dir" && ac_dir=.
5480 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5481 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5482 # Check to see if the nm accepts a BSD-compat flag.
5483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5484 # nm: unknown option "B" ignored
5485 # Tru64's nm complains that /dev/null is an invalid object file
5486 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5487 */dev/null* | *'Invalid file or object type'*)
5488 lt_cv_path_NM="$tmp_nm -B"
5492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5494 lt_cv_path_NM="$tmp_nm -p"
5498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5499 continue # so that we can try to find one that supports BSD flags
5506 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5509 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5510 echo "${ECHO_T}$lt_cv_path_NM" >&6
5513 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5514 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5516 if test "$LN_S" = "ln -s"; then
5517 echo "$as_me:$LINENO: result: yes" >&5
5518 echo "${ECHO_T}yes" >&6
5520 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5521 echo "${ECHO_T}no, using $LN_S" >&6
5524 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5525 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5526 if test "${lt_cv_deplibs_check_method+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 lt_cv_file_magic_cmd='$MAGIC_CMD'
5530 lt_cv_file_magic_test_file=
5531 lt_cv_deplibs_check_method='unknown'
5532 # Need to set the preceding variable on all platforms that support
5533 # interlibrary dependencies.
5534 # 'none' -- dependencies not supported.
5535 # `unknown' -- same as none, but documents that we really don't know.
5536 # 'pass_all' -- all dependencies passed with no checks.
5537 # 'test_compile' -- check by making test program.
5538 # 'file_magic [[regex]]' -- check by looking for files in library path
5539 # which responds to the $file_magic_cmd with a given extended regex.
5540 # If you have `file' or equivalent on your system and you're not sure
5541 # whether `pass_all' will *always* work, you probably want this one.
5545 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_deplibs_check_method=pass_all
5553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5554 lt_cv_file_magic_cmd='/usr/bin/file -L'
5555 lt_cv_file_magic_test_file=/shlib/libc.so
5559 # func_win32_libid is a shell function defined in ltmain.sh
5560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561 lt_cv_file_magic_cmd='func_win32_libid'
5565 # Base MSYS/MinGW do not provide the 'file' command needed by
5566 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5567 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5568 lt_cv_file_magic_cmd='$OBJDUMP -f'
5571 darwin* | rhapsody*)
5572 lt_cv_deplibs_check_method=pass_all
5575 freebsd* | kfreebsd*-gnu | dragonfly*)
5576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5579 # Not sure whether the presence of OpenBSD here was a mistake.
5580 # Let's accept both of them until this is cleared up.
5581 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5582 lt_cv_file_magic_cmd=/usr/bin/file
5583 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5587 lt_cv_deplibs_check_method=pass_all
5592 lt_cv_deplibs_check_method=pass_all
5595 hpux10.20* | hpux11*)
5596 lt_cv_file_magic_cmd=/usr/bin/file
5599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5600 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5603 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]'
5604 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5608 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5613 irix5* | irix6* | nonstopux*)
5615 *-32|*"-32 ") libmagic=32-bit;;
5616 *-n32|*"-n32 ") libmagic=N32;;
5617 *-64|*"-64 ") libmagic=64-bit;;
5618 *) libmagic=never-match;;
5620 lt_cv_deplibs_check_method=pass_all
5623 # This must be Linux ELF.
5625 lt_cv_deplibs_check_method=pass_all
5629 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5638 lt_cv_file_magic_cmd=/usr/bin/file
5639 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5643 lt_cv_deplibs_check_method=unknown
5647 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5654 osf3* | osf4* | osf5*)
5655 lt_cv_deplibs_check_method=pass_all
5659 lt_cv_deplibs_check_method=pass_all
5663 lt_cv_deplibs_check_method=pass_all
5666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5667 case $host_vendor in
5669 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]'
5670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5673 lt_cv_deplibs_check_method=pass_all
5676 lt_cv_file_magic_cmd='/bin/file'
5677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5680 lt_cv_file_magic_cmd='/bin/file'
5681 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5682 lt_cv_file_magic_test_file=/lib/libc.so
5685 lt_cv_deplibs_check_method=pass_all
5690 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5691 lt_cv_deplibs_check_method=pass_all
5696 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5697 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5698 file_magic_cmd=$lt_cv_file_magic_cmd
5699 deplibs_check_method=$lt_cv_deplibs_check_method
5700 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5705 # If no C compiler was specified, use CC.
5708 # Allow CC to be a program name with arguments.
5712 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5713 if test "${enable_libtool_lock+set}" = set; then
5714 enableval="$enable_libtool_lock"
5717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5719 # Some flags need to be propagated to the compiler or linker for good
5723 # Find out which ABI we are using.
5724 echo 'int i;' > conftest.$ac_ext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; then
5730 case `/usr/bin/file conftest.$ac_objext` in
5742 # Find out which ABI we are using.
5743 echo '#line 5743 "configure"' > conftest.$ac_ext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5745 (eval $ac_compile) 2>&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; then
5749 if test "$lt_cv_prog_gnu_ld" = yes; then
5750 case `/usr/bin/file conftest.$ac_objext` in
5752 LD="${LD-ld} -melf32bsmip"
5755 LD="${LD-ld} -melf32bmipn32"
5758 LD="${LD-ld} -melf64bmip"
5762 case `/usr/bin/file conftest.$ac_objext` in
5778 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5779 # Find out which ABI we are using.
5780 echo 'int i;' > conftest.$ac_ext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; then
5786 case `/usr/bin/file conftest.o` in
5790 LD="${LD-ld} -m elf_i386"
5792 ppc64-*linux*|powerpc64-*linux*)
5793 LD="${LD-ld} -m elf32ppclinux"
5796 LD="${LD-ld} -m elf_s390"
5799 LD="${LD-ld} -m elf32_sparc"
5806 LD="${LD-ld} -m elf_x86_64"
5808 ppc*-*linux*|powerpc*-*linux*)
5809 LD="${LD-ld} -m elf64ppc"
5812 LD="${LD-ld} -m elf64_s390"
5815 LD="${LD-ld} -m elf64_sparc"
5825 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5826 SAVE_CFLAGS="$CFLAGS"
5827 CFLAGS="$CFLAGS -belf"
5828 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5829 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5830 if test "${lt_cv_cc_needs_belf+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_cpp='$CPP $CPPFLAGS'
5835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5854 rm -f conftest.$ac_objext conftest$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 lt_cv_cc_needs_belf=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 lt_cv_cc_needs_belf=no
5883 rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5886 ac_cpp='$CPP $CPPFLAGS'
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5893 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5896 CFLAGS="$SAVE_CFLAGS"
5899 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5903 echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test -n "$DLLTOOL"; then
5909 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 DLLTOOL=$ac_cv_prog_DLLTOOL
5928 if test -n "$DLLTOOL"; then
5929 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5930 echo "${ECHO_T}$DLLTOOL" >&6
5932 echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5937 if test -z "$ac_cv_prog_DLLTOOL"; then
5938 ac_ct_DLLTOOL=$DLLTOOL
5939 # Extract the first word of "dlltool", so it can be a program name with args.
5940 set dummy dlltool; ac_word=$2
5941 echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5943 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 if test -n "$ac_ct_DLLTOOL"; then
5947 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5966 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5967 if test -n "$ac_ct_DLLTOOL"; then
5968 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5969 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5971 echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6
5975 DLLTOOL=$ac_ct_DLLTOOL
5977 DLLTOOL="$ac_cv_prog_DLLTOOL"
5980 if test -n "$ac_tool_prefix"; then
5981 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5982 set dummy ${ac_tool_prefix}as; ac_word=$2
5983 echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5985 if test "${ac_cv_prog_AS+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 if test -n "$AS"; then
5989 ac_cv_prog_AS="$AS" # Let the user override the test.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_AS="${ac_tool_prefix}as"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 if test -n "$AS"; then
6009 echo "$as_me:$LINENO: result: $AS" >&5
6010 echo "${ECHO_T}$AS" >&6
6012 echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6
6017 if test -z "$ac_cv_prog_AS"; then
6019 # Extract the first word of "as", so it can be a program name with args.
6020 set dummy as; ac_word=$2
6021 echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6023 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 if test -n "$ac_ct_AS"; then
6027 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036 ac_cv_prog_ac_ct_AS="as"
6037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6046 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6047 if test -n "$ac_ct_AS"; then
6048 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6049 echo "${ECHO_T}$ac_ct_AS" >&6
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6062 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6063 echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6065 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 if test -n "$OBJDUMP"; then
6069 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 OBJDUMP=$ac_cv_prog_OBJDUMP
6088 if test -n "$OBJDUMP"; then
6089 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6090 echo "${ECHO_T}$OBJDUMP" >&6
6092 echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6
6097 if test -z "$ac_cv_prog_OBJDUMP"; then
6098 ac_ct_OBJDUMP=$OBJDUMP
6099 # Extract the first word of "objdump", so it can be a program name with args.
6100 set dummy objdump; ac_word=$2
6101 echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 if test -n "$ac_ct_OBJDUMP"; then
6107 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6126 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6127 if test -n "$ac_ct_OBJDUMP"; then
6128 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6129 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6131 echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6
6135 OBJDUMP=$ac_ct_OBJDUMP
6137 OBJDUMP="$ac_cv_prog_OBJDUMP"
6144 need_locks="$enable_libtool_lock"
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6153 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6154 # On Suns, sometimes $CPP names a directory.
6155 if test -n "$CPP" && test -d "$CPP"; then
6158 if test -z "$CPP"; then
6159 if test "${ac_cv_prog_CPP+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 # Double quotes because CPP needs to be expanded
6163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6166 for ac_c_preproc_warn_flag in '' yes
6168 # Use a header file that comes with gcc, so configuring glibc
6169 # with a fresh cross-compiler works.
6170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6171 # <limits.h> exists even on freestanding compilers.
6172 # On the NeXT, cc -E runs the code through the compiler's parser,
6173 # not just through cpp. "Syntax error" is here to catch this case.
6174 cat >conftest.$ac_ext <<_ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6181 # include <limits.h>
6183 # include <assert.h>
6187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6190 grep -v '^ *+' conftest.er1 >conftest.err
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } >/dev/null; then
6195 if test -s conftest.err; then
6196 ac_cpp_err=$ac_c_preproc_warn_flag
6197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6204 if test -z "$ac_cpp_err"; then
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 # Broken: fails on valid input.
6213 rm -f conftest.err conftest.$ac_ext
6215 # OK, works on sane cases. Now check whether non-existent headers
6216 # can be detected and how.
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <ac_nonexistent.h>
6225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } >/dev/null; then
6233 if test -s conftest.err; then
6234 ac_cpp_err=$ac_c_preproc_warn_flag
6235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6242 if test -z "$ac_cpp_err"; then
6243 # Broken: success on invalid input.
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 # Passes both tests.
6253 rm -f conftest.err conftest.$ac_ext
6256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6257 rm -f conftest.err conftest.$ac_ext
6258 if $ac_preproc_ok; then
6270 echo "$as_me:$LINENO: result: $CPP" >&5
6271 echo "${ECHO_T}$CPP" >&6
6273 for ac_c_preproc_warn_flag in '' yes
6275 # Use a header file that comes with gcc, so configuring glibc
6276 # with a fresh cross-compiler works.
6277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6278 # <limits.h> exists even on freestanding compilers.
6279 # On the NeXT, cc -E runs the code through the compiler's parser,
6280 # not just through cpp. "Syntax error" is here to catch this case.
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6288 # include <limits.h>
6290 # include <assert.h>
6294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } >/dev/null; then
6302 if test -s conftest.err; then
6303 ac_cpp_err=$ac_c_preproc_warn_flag
6304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6311 if test -z "$ac_cpp_err"; then
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 # Broken: fails on valid input.
6320 rm -f conftest.err conftest.$ac_ext
6322 # OK, works on sane cases. Now check whether non-existent headers
6323 # can be detected and how.
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 #include <ac_nonexistent.h>
6332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6335 grep -v '^ *+' conftest.er1 >conftest.err
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } >/dev/null; then
6340 if test -s conftest.err; then
6341 ac_cpp_err=$ac_c_preproc_warn_flag
6342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6349 if test -z "$ac_cpp_err"; then
6350 # Broken: success on invalid input.
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 # Passes both tests.
6360 rm -f conftest.err conftest.$ac_ext
6363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6364 rm -f conftest.err conftest.$ac_ext
6365 if $ac_preproc_ok; then
6368 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6369 See \`config.log' for more details." >&5
6370 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6371 See \`config.log' for more details." >&2;}
6372 { (exit 1); exit 1; }; }
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6383 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6384 if test "${ac_cv_header_stdc+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6406 rm -f conftest.$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>conftest.er1
6410 grep -v '^ *+' conftest.er1 >conftest.err
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_header_stdc=yes
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 ac_cv_header_stdc=no
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 if test $ac_cv_header_stdc = yes; then
6438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6449 $EGREP "memchr" >/dev/null 2>&1; then
6452 ac_cv_header_stdc=no
6458 if test $ac_cv_header_stdc = yes; then
6459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6470 $EGREP "free" >/dev/null 2>&1; then
6473 ac_cv_header_stdc=no
6479 if test $ac_cv_header_stdc = yes; then
6480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6481 if test "$cross_compiling" = yes; then
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6491 #if ((' ' & 0x0FF) == 0x020)
6492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6495 # define ISLOWER(c) \
6496 (('a' <= (c) && (c) <= 'i') \
6497 || ('j' <= (c) && (c) <= 'r') \
6498 || ('s' <= (c) && (c) <= 'z'))
6499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6507 for (i = 0; i < 256; i++)
6508 if (XOR (islower (i), ISLOWER (i))
6509 || toupper (i) != TOUPPER (i))
6514 rm -f conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6527 echo "$as_me: program exited with status $ac_status" >&5
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_cv_header_stdc=no
6534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6539 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6540 if test $ac_cv_header_stdc = yes; then
6542 cat >>confdefs.h <<\_ACEOF
6543 #define STDC_HEADERS 1
6548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6559 inttypes.h stdint.h unistd.h
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6575 #include <$ac_header>
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -z "$ac_c_werror_flag"
6587 || test ! -s conftest.err'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; } &&
6593 { ac_try='test -s conftest.$ac_objext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 eval "$as_ac_Header=yes"
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 eval "$as_ac_Header=no"
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6611 cat >>confdefs.h <<_ACEOF
6612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6621 for ac_header in dlfcn.h
6623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6625 echo "$as_me:$LINENO: checking for $ac_header" >&5
6626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6633 # Is the header compilable?
6634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6643 #include <$ac_header>
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>conftest.er1
6649 grep -v '^ *+' conftest.er1 >conftest.err
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -z "$ac_c_werror_flag"
6655 || test ! -s conftest.err'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; } &&
6661 { ac_try='test -s conftest.$ac_objext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_header_compiler=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 ac_header_compiler=no
6674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6676 echo "${ECHO_T}$ac_header_compiler" >&6
6678 # Is the header present?
6679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <$ac_header>
6689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } >/dev/null; then
6697 if test -s conftest.err; then
6698 ac_cpp_err=$ac_c_preproc_warn_flag
6699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6706 if test -z "$ac_cpp_err"; then
6707 ac_header_preproc=yes
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 ac_header_preproc=no
6714 rm -f conftest.err conftest.$ac_ext
6715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6716 echo "${ECHO_T}$ac_header_preproc" >&6
6718 # So? What about this header?
6719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6725 ac_header_preproc=yes
6728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6742 ## ------------------------------------------ ##
6743 ## Report this to the AC_PACKAGE_NAME lists. ##
6744 ## ------------------------------------------ ##
6747 sed "s/^/$as_me: WARNING: /" >&2
6750 echo "$as_me:$LINENO: checking for $ac_header" >&5
6751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 eval "$as_ac_Header=\$ac_header_preproc"
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6762 cat >>confdefs.h <<_ACEOF
6763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6771 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6773 # find the maximum length of command line arguments
6774 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6775 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6776 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 # On DJGPP, this test can blow up pretty badly due to problems in libc
6785 # (any single argument exceeding 2000 bytes causes a buffer overrun
6786 # during glob expansion). Even if it were fixed, the result of this
6787 # check would be larger than it should be.
6788 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6792 # Under GNU Hurd, this test is not required because there is
6793 # no limit to the length of command line arguments.
6794 # Libtool will interpret -1 as no limit whatsoever
6795 lt_cv_sys_max_cmd_len=-1;
6799 # On Win9x/ME, this test blows up -- it succeeds, but takes
6800 # about 5 minutes as the teststring grows exponentially.
6801 # Worse, since 9x/ME are not pre-emptively multitasking,
6802 # you end up with a "frozen" computer, even though with patience
6803 # the test eventually succeeds (with a max line length of 256k).
6804 # Instead, let's just punt: use the minimum linelength reported by
6805 # all of the supported platforms: 8192 (on NT/2K/XP).
6806 lt_cv_sys_max_cmd_len=8192;
6810 # On AmigaOS with pdksh, this test takes hours, literally.
6811 # So we just punt and use a minimum line length of 8192.
6812 lt_cv_sys_max_cmd_len=8192;
6815 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6816 # This has been around since 386BSD, at least. Likely further.
6817 if test -x /sbin/sysctl; then
6818 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6819 elif test -x /usr/sbin/sysctl; then
6820 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6822 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6824 # And add a safety zone
6825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6829 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6830 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6831 # nice to cause kernel panics so lets avoid the loop below.
6832 # First set a reasonable default.
6833 lt_cv_sys_max_cmd_len=16384
6835 if test -x /sbin/sysconfig; then
6836 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6837 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6842 # If test is not a shell built-in, we'll probably end up computing a
6843 # maximum length that is only half of the actual maximum length, but
6845 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6846 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6847 = "XX$teststring") >/dev/null 2>&1 &&
6848 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6849 lt_cv_sys_max_cmd_len=$new_result &&
6850 test $i != 17 # 1/2 MB should be enough
6853 teststring=$teststring$teststring
6856 # Add a significant safety factor because C++ compilers can tack on massive
6857 # amounts of additional arguments before passing them to the linker.
6858 # It appears as though 1/2 is a usable value.
6859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6865 if test -n $lt_cv_sys_max_cmd_len ; then
6866 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6867 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6869 echo "$as_me:$LINENO: result: none" >&5
6870 echo "${ECHO_T}none" >&6
6876 # Check for command to grab the raw symbol name followed by C symbol from nm.
6877 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6878 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6879 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 # These are sane defaults that work on at least a few old systems.
6884 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6886 # Character class describing NM global symbol codes.
6887 symcode='[BCDEGRST]'
6889 # Regexp to match symbols that can be accessed directly from C.
6890 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6892 # Transform an extracted symbol line into a proper C declaration
6893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6895 # Transform an extracted symbol line into symbol name and symbol address
6896 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'"
6898 # Define system-specific variables.
6903 cygwin* | mingw* | pw32*)
6904 symcode='[ABCDGISTW]'
6906 hpux*) # Its linker distinguishes data from code symbols
6907 if test "$host_cpu" = ia64; then
6908 symcode='[ABCDEGRST]'
6910 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6911 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'"
6914 if test "$host_cpu" = ia64; then
6915 symcode='[ABCDGIRSTW]'
6916 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6917 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'"
6921 symcode='[BCDEGRST]'
6924 symcode='[BCDEGQRST]'
6934 # Handle CRLF in mingw tool chain
6938 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6942 # If we're using GNU nm, then use its standard symbol codes.
6943 case `$NM -V 2>&1` in
6944 *GNU* | *'with BFD'*)
6945 symcode='[ABCDGIRSTW]' ;;
6948 # Try without a prefix undercore, then with it.
6949 for ac_symprfx in "" "_"; do
6951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6952 symxfrm="\\1 $ac_symprfx\\2 \\2"
6954 # Write the raw and C identifiers.
6955 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6957 # Check to see that the pipe works correctly.
6961 cat > conftest.$ac_ext <<EOF
6966 void nm_test_func(){}
6970 int main(){nm_test_var='a';nm_test_func();return(0);}
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; then
6978 # Now try to grab the symbols.
6980 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6981 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && test -s "$nlist"; then
6985 # Try sorting and uniquifying the output.
6986 if sort "$nlist" | uniq > "$nlist"T; then
6987 mv -f "$nlist"T "$nlist"
6992 # Make sure that we snagged all the symbols we need.
6993 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6994 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6995 cat <<EOF > conftest.$ac_ext
7001 # Now generate the symbol file.
7002 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7004 cat <<EOF >> conftest.$ac_ext
7005 #if defined (__STDC__) && __STDC__
7006 # define lt_ptr_t void *
7008 # define lt_ptr_t char *
7012 /* The mapping between symbol names and symbols. */
7017 lt_preloaded_symbols[] =
7020 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7021 cat <<\EOF >> conftest.$ac_ext
7029 # Now try linking the two files.
7030 mv conftest.$ac_objext conftstm.$ac_objext
7031 lt_save_LIBS="$LIBS"
7032 lt_save_CFLAGS="$CFLAGS"
7033 LIBS="conftstm.$ac_objext"
7034 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036 (eval $ac_link) 2>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7042 LIBS="$lt_save_LIBS"
7043 CFLAGS="$lt_save_CFLAGS"
7045 echo "cannot find nm_test_func in $nlist" >&5
7048 echo "cannot find nm_test_var in $nlist" >&5
7051 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7054 echo "$progname: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 rm -f conftest* conftst*
7059 # Do not use the global_symbol_pipe unless it works.
7060 if test "$pipe_works" = yes; then
7063 lt_cv_sys_global_symbol_pipe=
7069 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7070 lt_cv_sys_global_symbol_to_cdecl=
7072 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7073 echo "$as_me:$LINENO: result: failed" >&5
7074 echo "${ECHO_T}failed" >&6
7076 echo "$as_me:$LINENO: result: ok" >&5
7077 echo "${ECHO_T}ok" >&6
7080 echo "$as_me:$LINENO: checking for objdir" >&5
7081 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7082 if test "${lt_cv_objdir+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 rm -f .libs 2>/dev/null
7086 mkdir .libs 2>/dev/null
7087 if test -d .libs; then
7090 # MS-DOS does not allow filenames that begin with a dot.
7093 rmdir .libs 2>/dev/null
7095 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7096 echo "${ECHO_T}$lt_cv_objdir" >&6
7097 objdir=$lt_cv_objdir
7105 # AIX sometimes has problems with the GCC collect2 program. For some
7106 # reason, if we set the COLLECT_NAMES environment variable, the problems
7107 # vanish in a puff of smoke.
7108 if test "X${COLLECT_NAMES+set}" != Xset; then
7110 export COLLECT_NAMES
7115 # Sed substitution that helps us do robust quoting. It backslashifies
7116 # metacharacters that are still active within double-quoted strings.
7117 Xsed='sed -e 1s/^X//'
7118 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7120 # Same as above, but do not quote variable references.
7121 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7123 # Sed substitution to delay expansion of an escaped shell variable in a
7124 # double_quote_subst'ed string.
7125 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7127 # Sed substitution to avoid accidental globbing in evaled expressions
7128 no_glob_subst='s/\*/\\\*/g'
7134 default_ofile=libtool
7135 can_build_shared=yes
7137 # All known linkers require a `.a' archive for static linking (except MSVC,
7138 # which needs '.lib').
7140 ltmain="$ac_aux_dir/ltmain.sh"
7141 ofile="$default_ofile"
7142 with_gnu_ld="$lt_cv_prog_gnu_ld"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}ar; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_AR+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 if test -n "$AR"; then
7153 ac_cv_prog_AR="$AR" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_AR="${ac_tool_prefix}ar"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 if test -n "$AR"; then
7173 echo "$as_me:$LINENO: result: $AR" >&5
7174 echo "${ECHO_T}$AR" >&6
7176 echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7181 if test -z "$ac_cv_prog_AR"; then
7183 # Extract the first word of "ar", so it can be a program name with args.
7184 set dummy ar; ac_word=$2
7185 echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 if test -n "$ac_ct_AR"; then
7191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_AR="ar"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7211 if test -n "$ac_ct_AR"; then
7212 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7213 echo "${ECHO_T}$ac_ct_AR" >&6
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_RANLIB+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 if test -n "$RANLIB"; then
7233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 RANLIB=$ac_cv_prog_RANLIB
7252 if test -n "$RANLIB"; then
7253 echo "$as_me:$LINENO: result: $RANLIB" >&5
7254 echo "${ECHO_T}$RANLIB" >&6
7256 echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7261 if test -z "$ac_cv_prog_RANLIB"; then
7262 ac_ct_RANLIB=$RANLIB
7263 # Extract the first word of "ranlib", so it can be a program name with args.
7264 set dummy ranlib; ac_word=$2
7265 echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 if test -n "$ac_ct_RANLIB"; then
7271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_RANLIB="ranlib"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7291 if test -n "$ac_ct_RANLIB"; then
7292 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7293 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7295 echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7299 RANLIB=$ac_ct_RANLIB
7301 RANLIB="$ac_cv_prog_RANLIB"
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}strip; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_prog_STRIP+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 if test -n "$STRIP"; then
7313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 STRIP=$ac_cv_prog_STRIP
7332 if test -n "$STRIP"; then
7333 echo "$as_me:$LINENO: result: $STRIP" >&5
7334 echo "${ECHO_T}$STRIP" >&6
7336 echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7341 if test -z "$ac_cv_prog_STRIP"; then
7343 # Extract the first word of "strip", so it can be a program name with args.
7344 set dummy strip; ac_word=$2
7345 echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 if test -n "$ac_ct_STRIP"; then
7351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_STRIP="strip"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7371 if test -n "$ac_ct_STRIP"; then
7372 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7373 echo "${ECHO_T}$ac_ct_STRIP" >&6
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7381 STRIP="$ac_cv_prog_STRIP"
7386 old_CFLAGS="$CFLAGS"
7388 # Set sane defaults for various variables
7389 test -z "$AR" && AR=ar
7390 test -z "$AR_FLAGS" && AR_FLAGS=cru
7391 test -z "$AS" && AS=as
7392 test -z "$CC" && CC=cc
7393 test -z "$LTCC" && LTCC=$CC
7394 test -z "$DLLTOOL" && DLLTOOL=dlltool
7395 test -z "$LD" && LD=ld
7396 test -z "$LN_S" && LN_S="ln -s"
7397 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7398 test -z "$NM" && NM=nm
7399 test -z "$SED" && SED=sed
7400 test -z "$OBJDUMP" && OBJDUMP=objdump
7401 test -z "$RANLIB" && RANLIB=:
7402 test -z "$STRIP" && STRIP=:
7403 test -z "$ac_objext" && ac_objext=o
7405 # Determine commands to create old-style static archives.
7406 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7407 old_postinstall_cmds='chmod 644 $oldlib'
7408 old_postuninstall_cmds=
7410 if test -n "$RANLIB"; then
7413 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7416 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7419 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7422 for cc_temp in $compiler""; do
7424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7430 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7433 # Only perform the check for file, if the check method requires it
7434 case $deplibs_check_method in
7436 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7437 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7438 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7439 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7447 lt_save_MAGIC_CMD="$MAGIC_CMD"
7448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7450 for ac_dir in $ac_dummy; do
7452 test -z "$ac_dir" && ac_dir=.
7453 if test -f $ac_dir/${ac_tool_prefix}file; then
7454 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7455 if test -n "$file_magic_test_file"; then
7456 case $deplibs_check_method in
7458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7461 $EGREP "$file_magic_regex" > /dev/null; then
7466 *** Warning: the command libtool uses to detect shared libraries,
7467 *** $file_magic_cmd, produces output that libtool cannot recognize.
7468 *** The result is that libtool may fail to recognize shared libraries
7469 *** as such. This will affect the creation of libtool libraries that
7470 *** depend on shared libraries, but programs linked with such libtool
7471 *** libraries will work regardless of this problem. Nevertheless, you
7472 *** may want to report the problem to your system manager and/or to
7473 *** bug-libtool@gnu.org
7483 MAGIC_CMD="$lt_save_MAGIC_CMD"
7488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489 if test -n "$MAGIC_CMD"; then
7490 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7491 echo "${ECHO_T}$MAGIC_CMD" >&6
7493 echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7497 if test -z "$lt_cv_path_MAGIC_CMD"; then
7498 if test -n "$ac_tool_prefix"; then
7499 echo "$as_me:$LINENO: checking for file" >&5
7500 echo $ECHO_N "checking for file... $ECHO_C" >&6
7501 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7509 lt_save_MAGIC_CMD="$MAGIC_CMD"
7510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7511 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7512 for ac_dir in $ac_dummy; do
7514 test -z "$ac_dir" && ac_dir=.
7515 if test -f $ac_dir/file; then
7516 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7517 if test -n "$file_magic_test_file"; then
7518 case $deplibs_check_method in
7520 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7523 $EGREP "$file_magic_regex" > /dev/null; then
7528 *** Warning: the command libtool uses to detect shared libraries,
7529 *** $file_magic_cmd, produces output that libtool cannot recognize.
7530 *** The result is that libtool may fail to recognize shared libraries
7531 *** as such. This will affect the creation of libtool libraries that
7532 *** depend on shared libraries, but programs linked with such libtool
7533 *** libraries will work regardless of this problem. Nevertheless, you
7534 *** may want to report the problem to your system manager and/or to
7535 *** bug-libtool@gnu.org
7545 MAGIC_CMD="$lt_save_MAGIC_CMD"
7550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551 if test -n "$MAGIC_CMD"; then
7552 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7553 echo "${ECHO_T}$MAGIC_CMD" >&6
7555 echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6
7569 enable_win32_dll=yes
7571 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7572 if test "${enable_libtool_lock+set}" = set; then
7573 enableval="$enable_libtool_lock"
7576 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7579 # Check whether --with-pic or --without-pic was given.
7580 if test "${with_pic+set}" = set; then
7586 test -z "$pic_mode" && pic_mode=default
7588 # Use C for the default configuration in the libtool script
7592 ac_cpp='$CPP $CPPFLAGS'
7593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598 # Source file extension for C test sources.
7601 # Object file extension for compiled C test sources.
7605 # Code to be used in simple compile tests
7606 lt_simple_compile_test_code="int some_variable = 0;\n"
7608 # Code to be used in simple link tests
7609 lt_simple_link_test_code='int main(){return(0);}\n'
7612 # If no C compiler was specified, use CC.
7615 # Allow CC to be a program name with arguments.
7619 # save warnings/boilerplate of simple test code
7620 ac_outfile=conftest.$ac_objext
7621 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7623 _lt_compiler_boilerplate=`cat conftest.err`
7626 ac_outfile=conftest.$ac_objext
7627 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7629 _lt_linker_boilerplate=`cat conftest.err`
7634 # Check for any special shared library compilation flags.
7637 if test "$GCC" = no; then
7640 lt_prog_cc_shlib='-belf'
7644 if test -n "$lt_prog_cc_shlib"; then
7645 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7646 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7647 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7649 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7650 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7651 lt_cv_prog_cc_can_build_shared=no
7657 # Check to make sure the static flag actually works.
7659 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7660 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7661 if test "${lt_prog_compiler_static_works+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 lt_prog_compiler_static_works=no
7665 save_LDFLAGS="$LDFLAGS"
7666 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7667 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7669 # The linker can only warn and ignore the option if not recognized
7670 # So say no if there are warnings
7671 if test -s conftest.err; then
7672 # Append any errors to the config.log.
7673 cat conftest.err 1>&5
7674 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7675 $SED '/^$/d' conftest.err >conftest.er2
7676 if diff conftest.exp conftest.er2 >/dev/null; then
7677 lt_prog_compiler_static_works=yes
7680 lt_prog_compiler_static_works=yes
7684 LDFLAGS="$save_LDFLAGS"
7687 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7688 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7690 if test x"$lt_prog_compiler_static_works" = xyes; then
7693 lt_prog_compiler_static=
7699 lt_prog_compiler_no_builtin_flag=
7701 if test "$GCC" = yes; then
7702 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7705 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7706 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7707 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 lt_cv_prog_compiler_rtti_exceptions=no
7711 ac_outfile=conftest.$ac_objext
7712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7713 lt_compiler_flag="-fno-rtti -fno-exceptions"
7714 # Insert the option either (1) after the last *FLAGS variable, or
7715 # (2) before a word containing "conftest.", or (3) at the end.
7716 # Note that $ac_compile itself does not contain backslashes and begins
7717 # with a dollar sign (not a hyphen), so the echo should work correctly.
7718 # The option is referenced via a variable to avoid confusing sed.
7719 lt_compile=`echo "$ac_compile" | $SED \
7720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722 -e 's:$: $lt_compiler_flag:'`
7723 (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
7724 (eval "$lt_compile" 2>conftest.err)
7726 cat conftest.err >&5
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 if (exit $ac_status) && test -s "$ac_outfile"; then
7729 # The compiler can only warn and ignore the option if not recognized
7730 # So say no if there are warnings other than the usual output.
7731 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7732 $SED '/^$/d' conftest.err >conftest.er2
7733 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7734 lt_cv_prog_compiler_rtti_exceptions=yes
7740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7741 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7743 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7744 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7751 lt_prog_compiler_wl=
7752 lt_prog_compiler_pic=
7753 lt_prog_compiler_static=
7755 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7756 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7758 if test "$GCC" = yes; then
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_static='-static'
7764 # All AIX code is PIC.
7765 if test "$host_cpu" = ia64; then
7766 # AIX 5 now supports IA64 processor
7767 lt_prog_compiler_static='-Bstatic'
7772 # FIXME: we need at least 68020 code to build shared libraries, but
7773 # adding the `-m68020' flag to GCC prevents building anything better,
7775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7778 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7779 # PIC is the default for these OSes.
7782 mingw* | pw32* | os2*)
7783 # This hack is so that the source file can tell whether it is being
7784 # built for inclusion in a dll (and should export symbols for example).
7785 lt_prog_compiler_pic='-DDLL_EXPORT'
7788 darwin* | rhapsody*)
7789 # PIC is the default on this platform
7790 # Common symbols not allowed in MH_DYLIB files
7791 lt_prog_compiler_pic='-fno-common'
7795 # Just because we use GCC doesn't mean we suddenly get shared libraries
7796 # on systems that don't support them.
7797 lt_prog_compiler_can_build_shared=no
7802 if test -d /usr/nec; then
7803 lt_prog_compiler_pic=-Kconform_pic
7808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7815 lt_prog_compiler_pic='-fPIC'
7821 lt_prog_compiler_pic='-fPIC'
7825 # PORTME Check for flag to pass linker flags through the system compiler.
7828 lt_prog_compiler_wl='-Wl,'
7829 if test "$host_cpu" = ia64; then
7830 # AIX 5 now supports IA64 processor
7831 lt_prog_compiler_static='-Bstatic'
7833 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7837 # PIC is the default on this platform
7838 # Common symbols not allowed in MH_DYLIB files
7839 case $cc_basename in
7841 lt_prog_compiler_pic='-qnocommon'
7842 lt_prog_compiler_wl='-Wl,'
7847 mingw* | pw32* | os2*)
7848 # This hack is so that the source file can tell whether it is being
7849 # built for inclusion in a dll (and should export symbols for example).
7850 lt_prog_compiler_pic='-DDLL_EXPORT'
7853 hpux9* | hpux10* | hpux11*)
7854 lt_prog_compiler_wl='-Wl,'
7855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7862 lt_prog_compiler_pic='+Z'
7865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7866 lt_prog_compiler_static='${wl}-a ${wl}archive'
7869 irix5* | irix6* | nonstopux*)
7870 lt_prog_compiler_wl='-Wl,'
7871 # PIC (with -KPIC) is the default.
7872 lt_prog_compiler_static='-non_shared'
7876 lt_prog_compiler_pic='-KPIC'
7877 lt_prog_compiler_static='-Bstatic'
7881 case $cc_basename in
7883 lt_prog_compiler_wl='-Wl,'
7884 lt_prog_compiler_pic='-KPIC'
7885 lt_prog_compiler_static='-static'
7887 pgcc* | pgf77* | pgf90* | pgf95*)
7888 # Portland Group compilers (*not* the Pentium gcc compiler,
7889 # which looks to be a dead project)
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_pic='-fpic'
7892 lt_prog_compiler_static='-Bstatic'
7895 lt_prog_compiler_wl='-Wl,'
7896 # All Alpha code is PIC.
7897 lt_prog_compiler_static='-non_shared'
7902 osf3* | osf4* | osf5*)
7903 lt_prog_compiler_wl='-Wl,'
7904 # All OSF/1 code is PIC.
7905 lt_prog_compiler_static='-non_shared'
7909 lt_prog_compiler_pic='-Kpic'
7910 lt_prog_compiler_static='-dn'
7914 lt_prog_compiler_pic='-KPIC'
7915 lt_prog_compiler_static='-Bstatic'
7916 case $cc_basename in
7918 lt_prog_compiler_wl='-Qoption ld ';;
7920 lt_prog_compiler_wl='-Wl,';;
7925 lt_prog_compiler_wl='-Qoption ld '
7926 lt_prog_compiler_pic='-PIC'
7927 lt_prog_compiler_static='-Bstatic'
7930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7931 lt_prog_compiler_wl='-Wl,'
7932 lt_prog_compiler_pic='-KPIC'
7933 lt_prog_compiler_static='-Bstatic'
7937 if test -d /usr/nec ;then
7938 lt_prog_compiler_pic='-Kconform_pic'
7939 lt_prog_compiler_static='-Bstatic'
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_can_build_shared=no
7949 lt_prog_compiler_pic='-pic'
7950 lt_prog_compiler_static='-Bstatic'
7954 lt_prog_compiler_can_build_shared=no
7959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7960 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7963 # Check to make sure the PIC flag actually works.
7965 if test -n "$lt_prog_compiler_pic"; then
7967 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7968 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7969 if test "${lt_prog_compiler_pic_works+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 lt_prog_compiler_pic_works=no
7973 ac_outfile=conftest.$ac_objext
7974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7975 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7976 # Insert the option either (1) after the last *FLAGS variable, or
7977 # (2) before a word containing "conftest.", or (3) at the end.
7978 # Note that $ac_compile itself does not contain backslashes and begins
7979 # with a dollar sign (not a hyphen), so the echo should work correctly.
7980 # The option is referenced via a variable to avoid confusing sed.
7981 lt_compile=`echo "$ac_compile" | $SED \
7982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984 -e 's:$: $lt_compiler_flag:'`
7985 (eval echo "\"\$as_me:7985: $lt_compile\"" >&5)
7986 (eval "$lt_compile" 2>conftest.err)
7988 cat conftest.err >&5
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 if (exit $ac_status) && test -s "$ac_outfile"; then
7991 # The compiler can only warn and ignore the option if not recognized
7992 # So say no if there are warnings other than the usual output.
7993 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7994 $SED '/^$/d' conftest.err >conftest.er2
7995 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7996 lt_prog_compiler_pic_works=yes
8002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8003 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8005 if test x"$lt_prog_compiler_pic_works" = xyes; then
8006 case $lt_prog_compiler_pic in
8008 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8011 lt_prog_compiler_pic=
8012 lt_prog_compiler_can_build_shared=no
8017 # For platforms which do not support PIC, -DPIC is meaningless:
8019 lt_prog_compiler_pic=
8022 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8026 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8027 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8028 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 lt_cv_prog_compiler_c_o=no
8032 $rm -r conftest 2>/dev/null
8036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8038 lt_compiler_flag="-o out/conftest2.$ac_objext"
8039 # Insert the option either (1) after the last *FLAGS variable, or
8040 # (2) before a word containing "conftest.", or (3) at the end.
8041 # Note that $ac_compile itself does not contain backslashes and begins
8042 # with a dollar sign (not a hyphen), so the echo should work correctly.
8043 lt_compile=`echo "$ac_compile" | $SED \
8044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8046 -e 's:$: $lt_compiler_flag:'`
8047 (eval echo "\"\$as_me:8047: $lt_compile\"" >&5)
8048 (eval "$lt_compile" 2>out/conftest.err)
8050 cat out/conftest.err >&5
8051 echo "$as_me:8051: \$? = $ac_status" >&5
8052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8054 # The compiler can only warn and ignore the option if not recognized
8055 # So say no if there are warnings
8056 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8057 $SED '/^$/d' out/conftest.err >out/conftest.er2
8058 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8059 lt_cv_prog_compiler_c_o=yes
8064 # SGI C++ compiler will create directory out/ii_files/ for
8065 # template instantiation
8066 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8067 $rm out/* && rmdir out
8073 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8074 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8077 hard_links="nottested"
8078 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8079 # do not overwrite the value of need_locks provided by the user
8080 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8081 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8086 ln conftest.a conftest.b 2>&5 || hard_links=no
8087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8088 echo "$as_me:$LINENO: result: $hard_links" >&5
8089 echo "${ECHO_T}$hard_links" >&6
8090 if test "$hard_links" = no; then
8091 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8092 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8099 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8100 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8103 allow_undefined_flag=
8104 enable_shared_with_static_runtimes=no
8106 archive_expsym_cmds=
8107 old_archive_From_new_cmds=
8108 old_archive_from_expsyms_cmds=
8109 export_dynamic_flag_spec=
8110 whole_archive_flag_spec=
8111 thread_safe_flag_spec=
8112 hardcode_libdir_flag_spec=
8113 hardcode_libdir_flag_spec_ld=
8114 hardcode_libdir_separator=
8117 hardcode_shlibpath_var=unsupported
8118 link_all_deplibs=unknown
8119 hardcode_automatic=no
8122 always_export_symbols=no
8123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8124 # include_expsyms should be a list of space-separated symbols to be *always*
8125 # included in the symbol list
8127 # exclude_expsyms can be an extended regexp of symbols to exclude
8128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8130 # as well as any symbol that contains `d'.
8131 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8133 # platforms (ab)use it in PIC code, but their linkers get confused if
8134 # the symbol is explicitly referenced. Since portable code cannot
8135 # rely on this symbol name, it's probably fine to never include it in
8136 # preloaded symbol tables.
8137 extract_expsyms_cmds=
8138 # Just being paranoid about ensuring that cc_basename is set.
8139 for cc_temp in $compiler""; do
8141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8147 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8150 cygwin* | mingw* | pw32*)
8151 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8152 # When not using gcc, we currently assume that we are using
8153 # Microsoft Visual C++.
8154 if test "$GCC" != yes; then
8164 if test "$with_gnu_ld" = yes; then
8165 # If archive_cmds runs LD, not CC, wlarc should be empty
8168 # Set some defaults for GNU ld with shared library support. These
8169 # are reset later if shared libraries are not supported. Putting them
8170 # here allows them to be overridden if necessary.
8171 runpath_var=LD_RUN_PATH
8172 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8173 export_dynamic_flag_spec='${wl}--export-dynamic'
8174 # ancient GNU ld didn't support --whole-archive et. al.
8175 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8176 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8178 whole_archive_flag_spec=
8180 supports_anon_versioning=no
8181 case `$LD -v 2>/dev/null` in
8182 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8183 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8184 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8185 *\ 2.11.*) ;; # other 2.11 versions
8186 *) supports_anon_versioning=yes ;;
8189 # See if GNU ld supports shared libraries.
8191 aix3* | aix4* | aix5*)
8192 # On AIX/PPC, the GNU linker is very broken
8193 if test "$host_cpu" != ia64; then
8197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8198 *** to be unable to reliably create shared libraries on AIX.
8199 *** Therefore, libtool is disabling shared libraries support. If you
8200 *** really care for shared libraries, you may want to modify your PATH
8201 *** so that a non-GNU linker is found, and then restart.
8208 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)'
8209 hardcode_libdir_flag_spec='-L$libdir'
8210 hardcode_minus_L=yes
8212 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8213 # that the semantics of dynamic libraries on AmigaOS, at least up
8214 # to version 4, is to share data among multiple programs linked
8215 # with the same dynamic library. Since this doesn't match the
8216 # behavior of shared libraries on other platforms, we can't use
8222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8223 allow_undefined_flag=unsupported
8224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8225 # support --undefined. This deserves some investigation. FIXME
8226 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232 cygwin* | mingw* | pw32*)
8233 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8234 # as there is no search path for DLLs.
8235 hardcode_libdir_flag_spec='-L$libdir'
8236 allow_undefined_flag=unsupported
8237 always_export_symbols=no
8238 enable_shared_with_static_runtimes=yes
8239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8241 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8243 # If the export-symbols file already is a .def file (1st line
8244 # is EXPORTS), use it as is; otherwise, prepend...
8245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8246 cp $export_symbols $output_objdir/$soname.def;
8248 echo EXPORTS > $output_objdir/$soname.def;
8249 cat $export_symbols >> $output_objdir/$soname.def;
8251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260 case $cc_basename,$host_cpu in
8261 pgcc*) # Portland Group C compiler
8262 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'
8263 tmp_addflag=' $pic_flag'
8265 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8266 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'
8267 tmp_addflag=' $pic_flag -Mnomain' ;;
8268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8269 tmp_addflag=' -i_dynamic' ;;
8270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8271 tmp_addflag=' -i_dynamic -nofor_main' ;;
8272 ifc* | ifort*) # Intel Fortran compiler
8273 tmp_addflag=' -nofor_main' ;;
8275 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277 if test $supports_anon_versioning = yes; then
8278 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8280 $echo "local: *; };" >> $output_objdir/$libname.ver~
8281 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304 *** create shared libraries on Solaris systems. Therefore, libtool
8305 *** is disabling shared libraries support. We urge you to upgrade GNU
8306 *** binutils to release 2.9.1 or newer. Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8311 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8323 hardcode_shlibpath_var=no
8327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8336 if test "$ld_shlibs" = no; then
8338 hardcode_libdir_flag_spec=
8339 export_dynamic_flag_spec=
8340 whole_archive_flag_spec=
8343 # PORTME fill in a description of your system's linker (not GNU ld)
8346 allow_undefined_flag=unsupported
8347 always_export_symbols=yes
8348 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'
8349 # Note: this linker hardcodes the directories in LIBPATH if there
8350 # are no directories specified by -L.
8351 hardcode_minus_L=yes
8352 if test "$GCC" = yes && test -z "$link_static_flag"; then
8353 # Neither direct hardcoding nor static linking is supported with a
8355 hardcode_direct=unsupported
8360 if test "$host_cpu" = ia64; then
8361 # On IA64, the linker does run time linking by default, so we don't
8362 # have to do anything special.
8363 aix_use_runtimelinking=no
8364 exp_sym_flag='-Bexport'
8367 # If we're using GNU nm, then we don't want the "-C" option.
8368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8370 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'
8372 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'
8374 aix_use_runtimelinking=no
8376 # Test if we are trying to use run time linking or normal
8377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8378 # need to do runtime linking.
8379 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8380 for ld_flag in $LDFLAGS; do
8381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8382 aix_use_runtimelinking=yes
8388 exp_sym_flag='-bexport'
8389 no_entry_flag='-bnoentry'
8392 # When large executables or shared objects are built, AIX ld can
8393 # have problems creating the table of contents. If linking a library
8394 # or program results in "error TOC overflow" add -mminimal-toc to
8395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8400 hardcode_libdir_separator=':'
8401 link_all_deplibs=yes
8403 if test "$GCC" = yes; then
8404 case $host_os in aix4.[012]|aix4.[012].*)
8405 # We only want to do this on AIX 4.2 and lower, the check
8406 # below for broken collect2 doesn't work under 4.3+
8407 collect2name=`${CC} -print-prog-name=collect2`
8408 if test -f "$collect2name" && \
8409 strings "$collect2name" | grep resolve_lib_name >/dev/null
8411 # We have reworked collect2
8414 # We have old collect2
8415 hardcode_direct=unsupported
8416 # It fails to find uninstalled libraries when the uninstalled
8417 # path is not listed in the libpath. Setting hardcode_minus_L
8418 # to unsupported forces relinking
8419 hardcode_minus_L=yes
8420 hardcode_libdir_flag_spec='-L$libdir'
8421 hardcode_libdir_separator=
8424 shared_flag='-shared'
8425 if test "$aix_use_runtimelinking" = yes; then
8426 shared_flag="$shared_flag "'${wl}-G'
8430 if test "$host_cpu" = ia64; then
8431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8432 # chokes on -Wl,-G. The following line is correct:
8435 if test "$aix_use_runtimelinking" = yes; then
8436 shared_flag='${wl}-G'
8438 shared_flag='${wl}-bM:SRE'
8443 # It seems that -bexpall does not export symbols beginning with
8444 # underscore (_), so it is better to generate a list of symbols to export.
8445 always_export_symbols=yes
8446 if test "$aix_use_runtimelinking" = yes; then
8447 # Warning - without using the other runtime loading flags (-brtl),
8448 # -berok will link without error, but may produce a broken library.
8449 allow_undefined_flag='-berok'
8450 # Determine the default libpath from the value encoded in an empty executable.
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468 (eval $ac_link) 2>conftest.er1
8470 grep -v '^ *+' conftest.er1 >conftest.err
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8491 # Check for a 64-bit object if we didn't find anything.
8492 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; }
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8499 rm -f conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
8501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8504 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"
8506 if test "$host_cpu" = ia64; then
8507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8508 allow_undefined_flag="-z nodefs"
8509 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"
8511 # Determine the default libpath from the value encoded in an empty executable.
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529 (eval $ac_link) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8552 # Check for a 64-bit object if we didn't find anything.
8553 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; }
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8560 rm -f conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8565 # Warning - without using the other run time loading flags,
8566 # -berok will link without error, but may produce a broken library.
8567 no_undefined_flag=' ${wl}-bernotok'
8568 allow_undefined_flag=' ${wl}-berok'
8569 # -bexpall does not export symbols beginning with underscore (_)
8570 always_export_symbols=yes
8571 # Exported symbols can be pulled into shared objects from archives
8572 whole_archive_flag_spec=' '
8573 archive_cmds_need_lc=yes
8574 # This is similar to how AIX traditionally builds its shared libraries.
8575 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'
8581 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)'
8582 hardcode_libdir_flag_spec='-L$libdir'
8583 hardcode_minus_L=yes
8584 # see comment about different semantics on the GNU ld section
8589 export_dynamic_flag_spec=-rdynamic
8592 cygwin* | mingw* | pw32*)
8593 # When not using gcc, we currently assume that we are using
8594 # Microsoft Visual C++.
8595 # hardcode_libdir_flag_spec is actually meaningless, as there is
8596 # no search path for DLLs.
8597 hardcode_libdir_flag_spec=' '
8598 allow_undefined_flag=unsupported
8599 # Tell ltmain to make .lib files, not .a files.
8601 # Tell ltmain to make .dll files, not .so files.
8603 # FIXME: Setting linknames here is a bad hack.
8604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8605 # The linker will automatically build a .lib file if we build a DLL.
8606 old_archive_From_new_cmds='true'
8607 # FIXME: Should let the user specify the lib program.
8608 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8609 fix_srcfile_path='`cygpath -w "$srcfile"`'
8610 enable_shared_with_static_runtimes=yes
8613 darwin* | rhapsody*)
8615 rhapsody* | darwin1.[012])
8616 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8619 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8620 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8622 case ${MACOSX_DEPLOYMENT_TARGET} in
8624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8627 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8633 archive_cmds_need_lc=no
8635 hardcode_automatic=yes
8636 hardcode_shlibpath_var=unsupported
8637 whole_archive_flag_spec=''
8638 link_all_deplibs=yes
8639 if test "$GCC" = yes ; then
8640 output_verbose_link_cmd='echo'
8641 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8642 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8644 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}'
8645 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}'
8647 case $cc_basename in
8649 output_verbose_link_cmd='echo'
8650 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8651 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8652 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8653 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}'
8654 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}'
8664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_libdir_flag_spec='-L$libdir'
8666 hardcode_shlibpath_var=no
8673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8674 # support. Future versions do this automatically, but an explicit c++rt0.o
8675 # does not break anything, and helps significantly (at the cost of a little
8678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8679 hardcode_libdir_flag_spec='-R$libdir'
8681 hardcode_shlibpath_var=no
8684 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8688 hardcode_minus_L=yes
8689 hardcode_shlibpath_var=no
8692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8693 freebsd* | kfreebsd*-gnu | dragonfly*)
8694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8695 hardcode_libdir_flag_spec='-R$libdir'
8697 hardcode_shlibpath_var=no
8701 if test "$GCC" = yes; then
8702 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'
8704 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'
8706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8707 hardcode_libdir_separator=:
8710 # hardcode_minus_L: Not really in the search PATH,
8711 # but as the default location of the library.
8712 hardcode_minus_L=yes
8713 export_dynamic_flag_spec='${wl}-E'
8717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8720 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8729 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8736 if test "$with_gnu_ld" = no; then
8739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8740 hardcode_libdir_flag_spec_ld='+b $libdir'
8741 hardcode_libdir_separator=:
8743 hardcode_shlibpath_var=no
8746 hardcode_libdir_flag_spec='-L$libdir'
8748 hardcode_shlibpath_var=no
8750 # hardcode_minus_L: Not really in the search PATH,
8751 # but as the default location of the library.
8752 hardcode_minus_L=yes
8755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8756 hardcode_libdir_separator=:
8758 export_dynamic_flag_spec='${wl}-E'
8760 # hardcode_minus_L: Not really in the search PATH,
8761 # but as the default location of the library.
8762 hardcode_minus_L=yes
8768 irix5* | irix6* | nonstopux*)
8769 if test "$GCC" = yes; then
8770 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'
8772 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'
8773 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776 hardcode_libdir_separator=:
8777 link_all_deplibs=yes
8781 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8784 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8786 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_shlibpath_var=no
8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795 hardcode_libdir_separator=:
8796 hardcode_shlibpath_var=no
8801 hardcode_shlibpath_var=no
8802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806 export_dynamic_flag_spec='${wl}-E'
8809 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_libdir_flag_spec='-R$libdir'
8814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8822 hardcode_libdir_flag_spec='-L$libdir'
8823 hardcode_minus_L=yes
8824 allow_undefined_flag=unsupported
8825 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'
8826 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8830 if test "$GCC" = yes; then
8831 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8832 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'
8834 allow_undefined_flag=' -expect_unresolved \*'
8835 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'
8837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8838 hardcode_libdir_separator=:
8841 osf4* | osf5*) # as osf3* with the addition of -msym flag
8842 if test "$GCC" = yes; then
8843 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8844 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'
8845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847 allow_undefined_flag=' -expect_unresolved \*'
8848 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'
8849 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8850 $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'
8852 # Both c and cxx compiler support -rpath directly
8853 hardcode_libdir_flag_spec='-rpath $libdir'
8855 hardcode_libdir_separator=:
8859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8860 hardcode_shlibpath_var=no
8861 export_dynamic_flag_spec='${wl}-Bexport'
8862 runpath_var=LD_RUN_PATH
8863 hardcode_runpath_var=yes
8867 no_undefined_flag=' -z text'
8868 if test "$GCC" = yes; then
8870 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8872 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8875 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8879 hardcode_libdir_flag_spec='-R$libdir'
8880 hardcode_shlibpath_var=no
8882 solaris2.[0-5] | solaris2.[0-5].*) ;;
8884 # The compiler driver will combine linker options so we
8885 # cannot just pass the convience library names through
8886 # without $wl, iff we do not link with $LD.
8887 # Luckily, gcc supports the same syntax we need for Sun Studio.
8888 # Supported since Solaris 2.6 (maybe 2.5.1?)
8891 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8893 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' ;;
8896 link_all_deplibs=yes
8900 if test "x$host_vendor" = xsequent; then
8901 # Use $CC to link under sequent, because it throws in some extra .o
8902 # files that make .init and .fini sections work.
8903 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8905 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_libdir_flag_spec='-L$libdir'
8909 hardcode_minus_L=yes
8910 hardcode_shlibpath_var=no
8914 case $host_vendor in
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct=yes # is this really true???
8920 ## LD is ld it makes a PLAMLIB
8921 ## CC just makes a GrossModule.
8922 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8923 reload_cmds='$CC -r -o $output$reload_objs'
8927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8931 runpath_var='LD_RUN_PATH'
8932 hardcode_shlibpath_var=no
8936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_shlibpath_var=no
8938 export_dynamic_flag_spec='-Bexport'
8942 if test -d /usr/nec; then
8943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_shlibpath_var=no
8945 runpath_var=LD_RUN_PATH
8946 hardcode_runpath_var=yes
8952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8955 hardcode_shlibpath_var=no
8956 hardcode_runpath_var=yes
8957 runpath_var=LD_RUN_PATH
8960 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8961 no_undefined_flag='${wl}-z ${wl}text'
8962 if test "$GCC" = yes; then
8963 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8967 runpath_var='LD_RUN_PATH'
8968 hardcode_shlibpath_var=no
8972 no_undefined_flag=' -z text'
8973 # $CC -shared without GNU ld will not create a library from C++
8974 # object files and a static libstdc++, better avoid it by now
8975 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8978 hardcode_libdir_flag_spec=
8979 hardcode_shlibpath_var=no
8980 runpath_var='LD_RUN_PATH'
8984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_libdir_flag_spec='-L$libdir'
8986 hardcode_shlibpath_var=no
8995 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8996 echo "${ECHO_T}$ld_shlibs" >&6
8997 test "$ld_shlibs" = no && can_build_shared=no
8999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9000 if test "$GCC" = yes; then
9001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9005 # Do we need to explicitly link libc?
9007 case "x$archive_cmds_need_lc" in
9009 # Assume -lc should be added
9010 archive_cmds_need_lc=yes
9012 if test "$enable_shared" = yes && test "$GCC" = yes; then
9013 case $archive_cmds in
9015 # FIXME: we may have to deal with multi-command sequences.
9018 # Test whether the compiler implicitly links with -lc since on some
9019 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9020 # to ld, don't add -lc before -lgcc.
9021 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9022 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9027 (eval $ac_compile) 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } 2>conftest.err; then
9033 libobjs=conftest.$ac_objext
9035 wl=$lt_prog_compiler_wl
9041 lt_save_allow_undefined_flag=$allow_undefined_flag
9042 allow_undefined_flag=
9043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9044 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }
9049 archive_cmds_need_lc=no
9051 archive_cmds_need_lc=yes
9053 allow_undefined_flag=$lt_save_allow_undefined_flag
9055 cat conftest.err 1>&5
9058 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9059 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9066 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9069 libname_spec='lib$name'
9077 shlibpath_overrides_runpath=unknown
9079 dynamic_linker="$host_os ld.so"
9080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9081 if test "$GCC" = yes; then
9082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9083 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9084 # if the path contains ";" then we assume it to be the separator
9085 # otherwise default to the standard path separator (i.e. ":") - it is
9086 # assumed that no part of a normal pathname contains ";" but that should
9087 # okay in the real world where ";" in dirpaths is itself problematic.
9088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9095 need_lib_prefix=unknown
9096 hardcode_into_libs=no
9098 # when you set need_version to no, make sure it does not cause -set_version
9099 # flags to be left without arguments
9100 need_version=unknown
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9106 shlibpath_var=LIBPATH
9108 # AIX 3 has no versioning support, so we append a major version to the name.
9109 soname_spec='${libname}${release}${shared_ext}$major'
9116 hardcode_into_libs=yes
9117 if test "$host_cpu" = ia64; then
9118 # AIX 5 supports IA64
9119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9120 shlibpath_var=LD_LIBRARY_PATH
9122 # With GCC up to 2.95.x, collect2 would create an import file
9123 # for dependence libraries. The import file would start with
9124 # the line `#! .'. This would cause the generated library to
9125 # depend on `.', always an invalid library. This was fixed in
9126 # development snapshots of GCC prior to 3.0.
9128 aix4 | aix4.[01] | aix4.[01].*)
9129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9139 # soname into executable. Probably we can add versioning support to
9140 # collect2, so additional links can be useful in future.
9141 if test "$aix_use_runtimelinking" = yes; then
9142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9143 # instead of lib<name>.a to let people know that these are not
9144 # typical AIX shared libraries.
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 # We preserve .a as extension for shared libraries through AIX4.2
9148 # and later when we are not doing run time linking.
9149 library_names_spec='${libname}${release}.a $libname.a'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LIBPATH
9157 library_names_spec='$libname.ixlibrary $libname.a'
9158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9159 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'
9163 library_names_spec='${libname}${shared_ext}'
9164 dynamic_linker="$host_os ld.so"
9165 shlibpath_var=LIBRARY_PATH
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9177 # the default ld.so.conf also contains /usr/contrib/lib and
9178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9179 # libtool to hard-code these into programs
9182 cygwin* | mingw* | pw32*)
9183 version_type=windows
9188 case $GCC,$host_os in
9189 yes,cygwin* | yes,mingw* | yes,pw32*)
9190 library_names_spec='$libname.dll.a'
9191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9192 postinstall_cmds='base_file=`basename \${file}`~
9193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9194 dldir=$destdir/`dirname \$dlpath`~
9195 test -d \$dldir || mkdir -p \$dldir~
9196 $install_prog $dir/$dlname \$dldir/$dlname~
9197 chmod a+x \$dldir/$dlname'
9198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9199 dlpath=$dir/\$dldll~
9201 shlibpath_overrides_runpath=yes
9205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9210 # MinGW DLLs use traditional 'lib' prefix
9211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9214 # It is most probably a Windows format PATH printed by
9215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9216 # path with ; separators, and with drive letters. We can handle the
9217 # drive letters (cygwin fileutils understands them), so leave them,
9218 # especially as we might pass files found there to a mingw objdump,
9219 # which wouldn't understand a cygwinified path. Ahh.
9220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9226 # pw32 DLLs use 'pw' prefix rather than 'lib'
9227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9236 dynamic_linker='Win32 ld.exe'
9237 # FIXME: first we should search . and the directory the executable is in
9241 darwin* | rhapsody*)
9242 dynamic_linker="$host_os dyld"
9246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9247 soname_spec='${libname}${release}${major}$shared_ext'
9248 shlibpath_overrides_runpath=yes
9249 shlibpath_var=DYLD_LIBRARY_PATH
9250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9252 if test "$GCC" = yes; then
9253 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"`
9255 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 shlibpath_overrides_runpath=no
9281 hardcode_into_libs=yes
9282 dynamic_linker='GNU ld.so'
9285 freebsd* | dragonfly*)
9286 # DragonFly does not have aout. When/if they implement a new
9287 # versioning mechanism, adjust this.
9288 if test -x /usr/bin/objformat; then
9289 objformat=`/usr/bin/objformat`
9292 freebsd[123]*) objformat=aout ;;
9296 version_type=freebsd-$objformat
9297 case $version_type in
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9308 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9313 freebsd3.[01]* | freebsdelf3.[01]*)
9314 shlibpath_overrides_runpath=yes
9315 hardcode_into_libs=yes
9318 shlibpath_overrides_runpath=no
9319 hardcode_into_libs=yes
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 hardcode_into_libs=yes
9334 hpux9* | hpux10* | hpux11*)
9335 # Give a soname corresponding to the major version so that dld.sl refuses to
9336 # link against other versions.
9343 hardcode_into_libs=yes
9344 dynamic_linker="$host_os dld.so"
9345 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 if test "X$HPUX_IA64_MODE" = X32; then
9350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9358 hardcode_into_libs=yes
9359 dynamic_linker="$host_os dld.sl"
9360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9369 dynamic_linker="$host_os dld.sl"
9370 shlibpath_var=SHLIB_PATH
9371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9377 postinstall_cmds='chmod 555 $lib'
9380 irix5* | irix6* | nonstopux*)
9382 nonstopux*) version_type=nonstopux ;;
9384 if test "$lt_cv_prog_gnu_ld" = yes; then
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9395 irix5* | nonstopux*)
9399 case $LD in # libtool.m4 will add one of these switches to LD
9400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9401 libsuff= shlibsuff= libmagic=32-bit;;
9402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9403 libsuff=32 shlibsuff=N32 libmagic=N32;;
9404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9406 *) libsuff= shlibsuff= libmagic=never-match;;
9410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9411 shlibpath_overrides_runpath=no
9412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9414 hardcode_into_libs=yes
9417 # No shared lib support for Linux oldld, aout, or coff.
9418 linux*oldld* | linux*aout* | linux*coff*)
9422 # This must be Linux ELF.
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=no
9432 # This implies no fast_install, which is unacceptable.
9433 # Some rework will be needed to allow for fast_install
9434 # before this can be enabled.
9435 hardcode_into_libs=yes
9437 # Append ld.so.conf contents to the search path
9438 if test -f /etc/ld.so.conf; then
9439 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' ' '`
9440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9443 # We used to test for /lib/ld.so.1 and disable shared libraries on
9444 # powerpc, because MkLinux only supported shared libraries with the
9445 # GNU dynamic linker. Since this was broken with cross compilers,
9446 # most powerpc-linux boxes support dynamic linking these days and
9447 # people can always --disable-shared, the test was removed, and we
9448 # assume the GNU/Linux dynamic linker is in use.
9449 dynamic_linker='GNU/Linux ld.so'
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=no
9460 hardcode_into_libs=yes
9461 dynamic_linker='GNU ld.so'
9468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9471 dynamic_linker='NetBSD (a.out) ld.so'
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 dynamic_linker='NetBSD ld.elf_so'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9479 hardcode_into_libs=yes
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes
9502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9505 *) need_version=no ;;
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512 openbsd2.[89] | openbsd2.[89].*)
9513 shlibpath_overrides_runpath=no
9516 shlibpath_overrides_runpath=yes
9520 shlibpath_overrides_runpath=yes
9525 libname_spec='$name'
9528 library_names_spec='$libname${shared_ext} $libname.a'
9529 dynamic_linker='OS/2 ld.exe'
9530 shlibpath_var=LIBPATH
9533 osf3* | osf4* | osf5*)
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 shlibpath_var=LD_LIBRARY_PATH
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556 soname_spec='${libname}${release}${shared_ext}$major'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 shlibpath_overrides_runpath=yes
9559 hardcode_into_libs=yes
9560 # ldd complains unless libraries are executable
9561 postinstall_cmds='chmod +x $lib'
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 shlibpath_overrides_runpath=yes
9570 if test "$with_gnu_ld" = yes; then
9576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 case $host_vendor in
9583 shlibpath_overrides_runpath=no
9585 export_dynamic_flag_spec='${wl}-Blargedynsym'
9586 runpath_var=LD_RUN_PATH
9594 shlibpath_overrides_runpath=no
9595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9601 if test -d /usr/nec ;then
9603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9604 soname_spec='$libname${shared_ext}.$major'
9605 shlibpath_var=LD_LIBRARY_PATH
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9620 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9621 echo "${ECHO_T}$dynamic_linker" >&6
9622 test "$dynamic_linker" = no && can_build_shared=no
9624 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9625 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9627 if test -n "$hardcode_libdir_flag_spec" || \
9628 test -n "$runpath_var" || \
9629 test "X$hardcode_automatic" = "Xyes" ; then
9631 # We can hardcode non-existant directories.
9632 if test "$hardcode_direct" != no &&
9633 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9634 # have to relink, otherwise we might link with an installed library
9635 # when we should be linking with a yet-to-be-installed one
9636 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9637 test "$hardcode_minus_L" != no; then
9638 # Linking always hardcodes the temporary library directory.
9639 hardcode_action=relink
9641 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9642 hardcode_action=immediate
9645 # We cannot hardcode anything, or else we can only hardcode existing
9647 hardcode_action=unsupported
9649 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9650 echo "${ECHO_T}$hardcode_action" >&6
9652 if test "$hardcode_action" = relink; then
9653 # Fast installation is not supported
9654 enable_fast_install=no
9655 elif test "$shlibpath_overrides_runpath" = yes ||
9656 test "$enable_shared" = no; then
9657 # Fast installation is not necessary
9658 enable_fast_install=needless
9663 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9664 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9665 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9666 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9667 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9668 echo "$as_me:$LINENO: result: yes" >&5
9669 echo "${ECHO_T}yes" >&6
9671 # FIXME - insert some real tests, host_os isn't really good enough
9674 if test -n "$STRIP" ; then
9675 striplib="$STRIP -x"
9676 echo "$as_me:$LINENO: result: yes" >&5
9677 echo "${ECHO_T}yes" >&6
9679 echo "$as_me:$LINENO: result: no" >&5
9680 echo "${ECHO_T}no" >&6
9684 echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9690 if test "x$enable_dlopen" != xyes; then
9691 enable_dlopen=unknown
9692 enable_dlopen_self=unknown
9693 enable_dlopen_self_static=unknown
9700 lt_cv_dlopen="load_add_on"
9702 lt_cv_dlopen_self=yes
9706 lt_cv_dlopen="LoadLibrary"
9711 lt_cv_dlopen="dlopen"
9716 # if libdl is installed we need to link against it
9717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 ac_check_lib_save_LIBS=$LIBS
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_lib_dl_dlopen=yes
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_cv_lib_dl_dlopen=no
9775 rm -f conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9779 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9780 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9781 if test $ac_cv_lib_dl_dlopen = yes; then
9782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9787 lt_cv_dlopen_self=yes
9794 echo "$as_me:$LINENO: checking for shl_load" >&5
9795 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9796 if test "${ac_cv_func_shl_load+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807 #define shl_load innocuous_shl_load
9809 /* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char shl_load (); below.
9811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 <limits.h> exists even on freestanding compilers. */
9815 # include <limits.h>
9817 # include <assert.h>
9822 /* Override any gcc2 internal prototype to avoid an error. */
9827 /* We use char because int might match the return type of a gcc2
9828 builtin and then its argument prototype would still apply. */
9830 /* The GNU C library defines this for functions which it implements
9831 to always fail with ENOSYS. Some functions are actually named
9832 something starting with __ and the normal name is an alias. */
9833 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9836 char (*f) () = shl_load;
9845 return f != shl_load;
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_func_shl_load=yes
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_func_shl_load=no
9879 rm -f conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9882 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9883 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9884 if test $ac_cv_func_shl_load = yes; then
9885 lt_cv_dlopen="shl_load"
9887 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9888 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9889 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 ac_check_lib_save_LIBS=$LIBS
9894 cat >conftest.$ac_ext <<_ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9901 /* Override any gcc2 internal prototype to avoid an error. */
9905 /* We use char because int might match the return type of a gcc2
9906 builtin and then its argument prototype would still apply. */
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9918 (eval $ac_link) 2>conftest.er1
9920 grep -v '^ *+' conftest.er1 >conftest.err
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -z "$ac_c_werror_flag"
9926 || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_dld_shl_load=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_lib_dld_shl_load=no
9945 rm -f conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9949 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9951 if test $ac_cv_lib_dld_shl_load = yes; then
9952 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9954 echo "$as_me:$LINENO: checking for dlopen" >&5
9955 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9956 if test "${ac_cv_func_dlopen+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9967 #define dlopen innocuous_dlopen
9969 /* System header to define __stub macros and hopefully few prototypes,
9970 which can conflict with char dlopen (); below.
9971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9972 <limits.h> exists even on freestanding compilers. */
9975 # include <limits.h>
9977 # include <assert.h>
9982 /* Override any gcc2 internal prototype to avoid an error. */
9987 /* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9990 /* The GNU C library defines this for functions which it implements
9991 to always fail with ENOSYS. Some functions are actually named
9992 something starting with __ and the normal name is an alias. */
9993 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9996 char (*f) () = dlopen;
10005 return f != dlopen;
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>conftest.er1
10014 grep -v '^ *+' conftest.er1 >conftest.err
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest$ac_exeext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 ac_cv_func_dlopen=yes
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ac_cv_func_dlopen=no
10039 rm -f conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10042 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10043 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10044 if test $ac_cv_func_dlopen = yes; then
10045 lt_cv_dlopen="dlopen"
10047 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10048 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 ac_check_lib_save_LIBS=$LIBS
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10061 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10076 rm -f conftest.$ac_objext conftest$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>conftest.er1
10080 grep -v '^ *+' conftest.er1 >conftest.err
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag"
10086 || test ! -s conftest.err'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest$ac_exeext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_lib_dl_dlopen=yes
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10103 ac_cv_lib_dl_dlopen=no
10105 rm -f conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10109 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10111 if test $ac_cv_lib_dl_dlopen = yes; then
10112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10114 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10115 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 ac_check_lib_save_LIBS=$LIBS
10120 LIBS="-lsvld $LIBS"
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10128 /* Override any gcc2 internal prototype to avoid an error. */
10132 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -z "$ac_c_werror_flag"
10153 || test ! -s conftest.err'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_lib_svld_dlopen=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_cv_lib_svld_dlopen=no
10172 rm -f conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10176 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10177 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10178 if test $ac_cv_lib_svld_dlopen = yes; then
10179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10181 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10182 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10183 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 ac_check_lib_save_LIBS=$LIBS
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10195 /* Override any gcc2 internal prototype to avoid an error. */
10199 /* We use char because int might match the return type of a gcc2
10200 builtin and then its argument prototype would still apply. */
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -z "$ac_c_werror_flag"
10220 || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try='test -s conftest$ac_exeext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_cv_lib_dld_dld_link=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_cv_lib_dld_dld_link=no
10239 rm -f conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241 LIBS=$ac_check_lib_save_LIBS
10243 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10244 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10245 if test $ac_cv_lib_dld_dld_link = yes; then
10246 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10267 if test "x$lt_cv_dlopen" != xno; then
10273 case $lt_cv_dlopen in
10275 save_CPPFLAGS="$CPPFLAGS"
10276 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10278 save_LDFLAGS="$LDFLAGS"
10279 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10282 LIBS="$lt_cv_dlopen_libs $LIBS"
10284 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10285 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10286 if test "${lt_cv_dlopen_self+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 if test "$cross_compiling" = yes; then :
10290 lt_cv_dlopen_self=cross
10292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10293 lt_status=$lt_dlunknown
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10295 "configure"
10296 #include "confdefs.h"
10305 # define LT_DLGLOBAL RTLD_GLOBAL
10308 # define LT_DLGLOBAL DL_GLOBAL
10310 # define LT_DLGLOBAL 0
10314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10315 find out it does not work in some platform. */
10316 #ifndef LT_DLLAZY_OR_NOW
10318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10321 # define LT_DLLAZY_OR_NOW DL_LAZY
10324 # define LT_DLLAZY_OR_NOW RTLD_NOW
10327 # define LT_DLLAZY_OR_NOW DL_NOW
10329 # define LT_DLLAZY_OR_NOW 0
10337 extern "C" void exit (int);
10340 void fnord() { int i=42;}
10343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344 int status = $lt_dlunknown;
10348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350 /* dlclose (self); */
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357 (eval $ac_link) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361 (./conftest; exit; ) >&5 2>/dev/null
10363 case x$lt_status in
10364 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10365 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10366 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10369 # compilation failed
10370 lt_cv_dlopen_self=no
10377 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10378 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10380 if test "x$lt_cv_dlopen_self" = xyes; then
10381 LDFLAGS="$LDFLAGS $link_static_flag"
10382 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10383 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10384 if test "${lt_cv_dlopen_self_static+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 if test "$cross_compiling" = yes; then :
10388 lt_cv_dlopen_self_static=cross
10390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10391 lt_status=$lt_dlunknown
10392 cat > conftest.$ac_ext <<EOF
10393 #line 10393 "configure"
10394 #include "confdefs.h"
10403 # define LT_DLGLOBAL RTLD_GLOBAL
10406 # define LT_DLGLOBAL DL_GLOBAL
10408 # define LT_DLGLOBAL 0
10412 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10413 find out it does not work in some platform. */
10414 #ifndef LT_DLLAZY_OR_NOW
10416 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10419 # define LT_DLLAZY_OR_NOW DL_LAZY
10422 # define LT_DLLAZY_OR_NOW RTLD_NOW
10425 # define LT_DLLAZY_OR_NOW DL_NOW
10427 # define LT_DLLAZY_OR_NOW 0
10435 extern "C" void exit (int);
10438 void fnord() { int i=42;}
10441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10442 int status = $lt_dlunknown;
10446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10447 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10448 /* dlclose (self); */
10454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455 (eval $ac_link) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10459 (./conftest; exit; ) >&5 2>/dev/null
10461 case x$lt_status in
10462 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10463 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10464 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10467 # compilation failed
10468 lt_cv_dlopen_self_static=no
10475 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10476 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10479 CPPFLAGS="$save_CPPFLAGS"
10480 LDFLAGS="$save_LDFLAGS"
10485 case $lt_cv_dlopen_self in
10486 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10487 *) enable_dlopen_self=unknown ;;
10490 case $lt_cv_dlopen_self_static in
10491 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10492 *) enable_dlopen_self_static=unknown ;;
10497 # Report which librarie types wil actually be built
10498 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10499 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10500 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10501 echo "${ECHO_T}$can_build_shared" >&6
10503 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10504 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10505 test "$can_build_shared" = "no" && enable_shared=no
10507 # On AIX, shared libraries and static libraries use the same namespace, and
10508 # are all built from PIC.
10511 test "$enable_shared" = yes && enable_static=no
10512 if test -n "$RANLIB"; then
10513 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10514 postinstall_cmds='$RANLIB $lib'
10519 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10520 test "$enable_shared" = yes && enable_static=no
10524 echo "$as_me:$LINENO: result: $enable_shared" >&5
10525 echo "${ECHO_T}$enable_shared" >&6
10527 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10528 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10529 # Make sure either enable_shared or enable_static is yes.
10530 test "$enable_shared" = yes || enable_static=yes
10531 echo "$as_me:$LINENO: result: $enable_static" >&5
10532 echo "${ECHO_T}$enable_static" >&6
10534 # The else clause should only fire when bootstrapping the
10535 # libtool distribution, otherwise you forgot to ship ltmain.sh
10536 # with your package, and you will get complaints that there are
10537 # no rules to generate ltmain.sh.
10538 if test -f "$ltmain"; then
10539 # See if we are running on zsh, and set the options which allow our commands through
10540 # without removal of \ escapes.
10541 if test -n "${ZSH_VERSION+set}" ; then
10542 setopt NO_GLOB_SUBST
10544 # Now quote all the things that may contain metacharacters while being
10545 # careful not to overquote the AC_SUBSTed values. We take copies of the
10546 # variables and quote the copies for generation of the libtool script.
10547 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10549 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10550 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10551 deplibs_check_method reload_flag reload_cmds need_locks \
10552 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10553 lt_cv_sys_global_symbol_to_c_name_address \
10554 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10555 old_postinstall_cmds old_postuninstall_cmds \
10559 lt_prog_compiler_wl \
10560 lt_prog_compiler_pic \
10561 lt_prog_compiler_static \
10562 lt_prog_compiler_no_builtin_flag \
10563 export_dynamic_flag_spec \
10564 thread_safe_flag_spec \
10565 whole_archive_flag_spec \
10566 enable_shared_with_static_runtimes \
10568 old_archive_from_new_cmds \
10573 compiler_lib_search_path \
10575 archive_expsym_cmds \
10577 postuninstall_cmds \
10578 old_archive_from_expsyms_cmds \
10579 allow_undefined_flag \
10580 no_undefined_flag \
10581 export_symbols_cmds \
10582 hardcode_libdir_flag_spec \
10583 hardcode_libdir_flag_spec_ld \
10584 hardcode_libdir_separator \
10585 hardcode_automatic \
10587 module_expsym_cmds \
10588 lt_cv_prog_compiler_c_o \
10590 include_expsyms; do
10593 old_archive_cmds | \
10594 old_archive_from_new_cmds | \
10596 archive_expsym_cmds | \
10598 module_expsym_cmds | \
10599 old_archive_from_expsyms_cmds | \
10600 export_symbols_cmds | \
10601 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10602 postinstall_cmds | postuninstall_cmds | \
10603 old_postinstall_cmds | old_postuninstall_cmds | \
10604 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10605 # Double-quote double-evaled strings.
10606 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10609 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10615 *'\$0 --fallback-echo"')
10616 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10620 cfgfile="${ofile}T"
10621 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10623 { echo "$as_me:$LINENO: creating $ofile" >&5
10624 echo "$as_me: creating $ofile" >&6;}
10626 cat <<__EOF__ >> "$cfgfile"
10629 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10630 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10631 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10633 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10634 # Free Software Foundation, Inc.
10636 # This file is part of GNU Libtool:
10637 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10639 # This program is free software; you can redistribute it and/or modify
10640 # it under the terms of the GNU General Public License as published by
10641 # the Free Software Foundation; either version 2 of the License, or
10642 # (at your option) any later version.
10644 # This program is distributed in the hope that it will be useful, but
10645 # WITHOUT ANY WARRANTY; without even the implied warranty of
10646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10647 # General Public License for more details.
10649 # You should have received a copy of the GNU General Public License
10650 # along with this program; if not, write to the Free Software
10651 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10653 # As a special exception to the GNU General Public License, if you
10654 # distribute this file as part of a program that contains a
10655 # configuration script generated by Autoconf, you may include it under
10656 # the same distribution terms that you use for the rest of that program.
10658 # A sed program that does not truncate output.
10661 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10662 Xsed="$SED -e 1s/^X//"
10664 # The HP-UX ksh and POSIX shell print the target directory to stdout
10665 # if CDPATH is set.
10666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10668 # The names of the tagged configurations supported by this script.
10671 # ### BEGIN LIBTOOL CONFIG
10673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10675 # Shell to use when invoking shell scripts.
10678 # Whether or not to build shared libraries.
10679 build_libtool_libs=$enable_shared
10681 # Whether or not to build static libraries.
10682 build_old_libs=$enable_static
10684 # Whether or not to add -lc for building shared libraries.
10685 build_libtool_need_lc=$archive_cmds_need_lc
10687 # Whether or not to disallow shared libs when runtime libs are static
10688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10690 # Whether or not to optimize for fast installation.
10691 fast_install=$enable_fast_install
10694 host_alias=$host_alias
10698 # The build system.
10699 build_alias=$build_alias
10703 # An echo program that does not interpret backslashes.
10708 AR_FLAGS=$lt_AR_FLAGS
10713 # A language-specific compiler.
10716 # Is the compiler the GNU C compiler?
10722 # The linker used to build libraries.
10725 # Whether we need hard or soft links.
10728 # A BSD-compatible nm program.
10731 # A symbol stripping program
10734 # Used to examine libraries when file_magic_cmd begins "file"
10735 MAGIC_CMD=$MAGIC_CMD
10737 # Used on cygwin: DLL creation program.
10740 # Used on cygwin: object dumper.
10743 # Used on cygwin: assembler.
10746 # The name of the directory that contains temporary libtool files.
10749 # How to create reloadable object files.
10750 reload_flag=$lt_reload_flag
10751 reload_cmds=$lt_reload_cmds
10753 # How to pass a linker flag through the compiler.
10754 wl=$lt_lt_prog_compiler_wl
10756 # Object file suffix (normally "o").
10757 objext="$ac_objext"
10759 # Old archive suffix (normally "a").
10762 # Shared library suffix (normally ".so").
10763 shrext_cmds='$shrext_cmds'
10765 # Executable file suffix (normally "").
10768 # Additional compiler flags for building library objects.
10769 pic_flag=$lt_lt_prog_compiler_pic
10772 # What is the maximum length of a command?
10773 max_cmd_len=$lt_cv_sys_max_cmd_len
10775 # Does compiler simultaneously support -c and -o options?
10776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10778 # Must we lock files when doing compilation?
10779 need_locks=$lt_need_locks
10781 # Do we need the lib prefix for modules?
10782 need_lib_prefix=$need_lib_prefix
10784 # Do we need a version for libraries?
10785 need_version=$need_version
10787 # Whether dlopen is supported.
10788 dlopen_support=$enable_dlopen
10790 # Whether dlopen of programs is supported.
10791 dlopen_self=$enable_dlopen_self
10793 # Whether dlopen of statically linked programs is supported.
10794 dlopen_self_static=$enable_dlopen_self_static
10796 # Compiler flag to prevent dynamic linking.
10797 link_static_flag=$lt_lt_prog_compiler_static
10799 # Compiler flag to turn off builtin functions.
10800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10802 # Compiler flag to allow reflexive dlopens.
10803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10805 # Compiler flag to generate shared objects directly from archives.
10806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10808 # Compiler flag to generate thread-safe objects.
10809 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10811 # Library versioning type.
10812 version_type=$version_type
10814 # Format of library name prefix.
10815 libname_spec=$lt_libname_spec
10817 # List of archive names. First name is the real one, the rest are links.
10818 # The last name is the one that the linker finds with -lNAME.
10819 library_names_spec=$lt_library_names_spec
10821 # The coded name of the library, if different from the real name.
10822 soname_spec=$lt_soname_spec
10824 # Commands used to build and install an old-style archive.
10826 old_archive_cmds=$lt_old_archive_cmds
10827 old_postinstall_cmds=$lt_old_postinstall_cmds
10828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10830 # Create an old-style archive from a shared archive.
10831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10833 # Create a temporary old-style archive to link instead of a shared archive.
10834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10836 # Commands used to build and install a shared archive.
10837 archive_cmds=$lt_archive_cmds
10838 archive_expsym_cmds=$lt_archive_expsym_cmds
10839 postinstall_cmds=$lt_postinstall_cmds
10840 postuninstall_cmds=$lt_postuninstall_cmds
10842 # Commands used to build a loadable module (assumed same as above if empty)
10843 module_cmds=$lt_module_cmds
10844 module_expsym_cmds=$lt_module_expsym_cmds
10846 # Commands to strip libraries.
10847 old_striplib=$lt_old_striplib
10848 striplib=$lt_striplib
10850 # Dependencies to place before the objects being linked to create a
10852 predep_objects=$lt_predep_objects
10854 # Dependencies to place after the objects being linked to create a
10856 postdep_objects=$lt_postdep_objects
10858 # Dependencies to place before the objects being linked to create a
10860 predeps=$lt_predeps
10862 # Dependencies to place after the objects being linked to create a
10864 postdeps=$lt_postdeps
10866 # The library search path used internally by the compiler when linking
10867 # a shared library.
10868 compiler_lib_search_path=$lt_compiler_lib_search_path
10870 # Method to check whether dependent libraries are shared objects.
10871 deplibs_check_method=$lt_deplibs_check_method
10873 # Command to use when deplibs_check_method == file_magic.
10874 file_magic_cmd=$lt_file_magic_cmd
10876 # Flag that allows shared libraries with undefined symbols to be built.
10877 allow_undefined_flag=$lt_allow_undefined_flag
10879 # Flag that forces no undefined symbols.
10880 no_undefined_flag=$lt_no_undefined_flag
10882 # Commands used to finish a libtool library installation in a directory.
10883 finish_cmds=$lt_finish_cmds
10885 # Same as above, but a single script fragment to be evaled but not shown.
10886 finish_eval=$lt_finish_eval
10888 # Take the output of nm and produce a listing of raw symbols and C names.
10889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10891 # Transform the output of nm in a proper C declaration
10892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10894 # Transform the output of nm in a C name address pair
10895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10897 # This is the shared library runtime path variable.
10898 runpath_var=$runpath_var
10900 # This is the shared library path variable.
10901 shlibpath_var=$shlibpath_var
10903 # Is shlibpath searched before the hard-coded library search path?
10904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10906 # How to hardcode a shared library path into an executable.
10907 hardcode_action=$hardcode_action
10909 # Whether we should hardcode library paths into libraries.
10910 hardcode_into_libs=$hardcode_into_libs
10912 # Flag to hardcode \$libdir into a binary during linking.
10913 # This must work even if \$libdir does not exist.
10914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10916 # If ld is used when linking, flag to hardcode \$libdir into
10917 # a binary during linking. This must work even if \$libdir does
10919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10921 # Whether we need a single -rpath flag with a separated argument.
10922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10925 # resulting binary.
10926 hardcode_direct=$hardcode_direct
10928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10929 # resulting binary.
10930 hardcode_minus_L=$hardcode_minus_L
10932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10933 # the resulting binary.
10934 hardcode_shlibpath_var=$hardcode_shlibpath_var
10936 # Set to yes if building a shared library automatically hardcodes DIR into the library
10937 # and all subsequent libraries and executables linked against it.
10938 hardcode_automatic=$hardcode_automatic
10940 # Variables whose values should be saved in libtool wrapper scripts and
10941 # restored at relink time.
10942 variables_saved_for_relink="$variables_saved_for_relink"
10944 # Whether libtool must link a program against all its dependency libraries.
10945 link_all_deplibs=$link_all_deplibs
10947 # Compile-time system search path for libraries
10948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10950 # Run-time system search path for libraries
10951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10953 # Fix the shell variable \$srcfile for the compiler.
10954 fix_srcfile_path="$fix_srcfile_path"
10956 # Set to yes if exported symbols are required.
10957 always_export_symbols=$always_export_symbols
10959 # The commands to list exported symbols.
10960 export_symbols_cmds=$lt_export_symbols_cmds
10962 # The commands to extract the exported symbol list from a shared archive.
10963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10965 # Symbols that should not be listed in the preloaded symbols.
10966 exclude_expsyms=$lt_exclude_expsyms
10968 # Symbols that must always be exported.
10969 include_expsyms=$lt_include_expsyms
10971 # ### END LIBTOOL CONFIG
10978 cat <<\EOF >> "$cfgfile"
10980 # AIX sometimes has problems with the GCC collect2 program. For some
10981 # reason, if we set the COLLECT_NAMES environment variable, the problems
10982 # vanish in a puff of smoke.
10983 if test "X${COLLECT_NAMES+set}" != Xset; then
10985 export COLLECT_NAMES
10991 # We use sed instead of cat because bash on DJGPP gets confused if
10992 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10993 # text mode, it properly converts lines to CR/LF. This bash problem
10994 # is reportedly fixed, but why not run on old versions too?
10995 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10997 mv -f "$cfgfile" "$ofile" || \
10998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11002 # If there is no Makefile yet, we rely on a make rule to execute
11003 # `config.status --recheck' to rerun these tests and create the
11004 # libtool script then.
11005 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11006 if test -f "$ltmain_in"; then
11007 test -f Makefile && make "$ltmain"
11013 ac_cpp='$CPP $CPPFLAGS'
11014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11021 # Check whether --with-tags or --without-tags was given.
11022 if test "${with_tags+set}" = set; then
11023 withval="$with_tags"
11024 tagnames="$withval"
11027 if test -f "$ltmain" && test -n "$tagnames"; then
11028 if test ! -f "${ofile}"; then
11029 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11030 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11033 if test -z "$LTCC"; then
11034 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11035 if test -z "$LTCC"; then
11036 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11037 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11040 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11044 # Extract list of available tagged configurations in $ofile.
11045 # Note that this assumes the entire list is on one line.
11046 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11049 for tagname in $tagnames; do
11051 # Check whether tagname contains only valid characters
11052 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11054 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11055 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11056 { (exit 1); exit 1; }; }
11060 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11062 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11063 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11064 { (exit 1); exit 1; }; }
11067 # Update the list of available tags.
11068 if test -n "$tagname"; then
11069 echo appending configuration tag \"$tagname\" to $ofile
11073 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11074 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11075 (test "X$CXX" != "Xg++"))) ; then
11083 if test -n "$F77" && test "X$F77" != "Xno"; then
11091 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11102 # Source file extension for RC test sources.
11105 # Object file extension for compiled RC test sources.
11109 # Code to be used in simple compile tests
11110 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11112 # Code to be used in simple link tests
11113 lt_simple_link_test_code="$lt_simple_compile_test_code"
11115 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11117 # If no C compiler was specified, use CC.
11120 # Allow CC to be a program name with arguments.
11124 # save warnings/boilerplate of simple test code
11125 ac_outfile=conftest.$ac_objext
11126 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11128 _lt_compiler_boilerplate=`cat conftest.err`
11131 ac_outfile=conftest.$ac_objext
11132 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11134 _lt_linker_boilerplate=`cat conftest.err`
11138 # Allow CC to be a program name with arguments.
11143 for cc_temp in $compiler""; do
11145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11153 lt_cv_prog_compiler_c_o_RC=yes
11155 # The else clause should only fire when bootstrapping the
11156 # libtool distribution, otherwise you forgot to ship ltmain.sh
11157 # with your package, and you will get complaints that there are
11158 # no rules to generate ltmain.sh.
11159 if test -f "$ltmain"; then
11160 # See if we are running on zsh, and set the options which allow our commands through
11161 # without removal of \ escapes.
11162 if test -n "${ZSH_VERSION+set}" ; then
11163 setopt NO_GLOB_SUBST
11165 # Now quote all the things that may contain metacharacters while being
11166 # careful not to overquote the AC_SUBSTed values. We take copies of the
11167 # variables and quote the copies for generation of the libtool script.
11168 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11172 deplibs_check_method reload_flag reload_cmds need_locks \
11173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11174 lt_cv_sys_global_symbol_to_c_name_address \
11175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11176 old_postinstall_cmds old_postuninstall_cmds \
11180 lt_prog_compiler_wl_RC \
11181 lt_prog_compiler_pic_RC \
11182 lt_prog_compiler_static_RC \
11183 lt_prog_compiler_no_builtin_flag_RC \
11184 export_dynamic_flag_spec_RC \
11185 thread_safe_flag_spec_RC \
11186 whole_archive_flag_spec_RC \
11187 enable_shared_with_static_runtimes_RC \
11188 old_archive_cmds_RC \
11189 old_archive_from_new_cmds_RC \
11190 predep_objects_RC \
11191 postdep_objects_RC \
11194 compiler_lib_search_path_RC \
11196 archive_expsym_cmds_RC \
11197 postinstall_cmds_RC \
11198 postuninstall_cmds_RC \
11199 old_archive_from_expsyms_cmds_RC \
11200 allow_undefined_flag_RC \
11201 no_undefined_flag_RC \
11202 export_symbols_cmds_RC \
11203 hardcode_libdir_flag_spec_RC \
11204 hardcode_libdir_flag_spec_ld_RC \
11205 hardcode_libdir_separator_RC \
11206 hardcode_automatic_RC \
11208 module_expsym_cmds_RC \
11209 lt_cv_prog_compiler_c_o_RC \
11210 exclude_expsyms_RC \
11211 include_expsyms_RC; do
11214 old_archive_cmds_RC | \
11215 old_archive_from_new_cmds_RC | \
11216 archive_cmds_RC | \
11217 archive_expsym_cmds_RC | \
11219 module_expsym_cmds_RC | \
11220 old_archive_from_expsyms_cmds_RC | \
11221 export_symbols_cmds_RC | \
11222 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11223 postinstall_cmds | postuninstall_cmds | \
11224 old_postinstall_cmds | old_postuninstall_cmds | \
11225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11226 # Double-quote double-evaled strings.
11227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11236 *'\$0 --fallback-echo"')
11237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11243 cat <<__EOF__ >> "$cfgfile"
11244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11248 # Shell to use when invoking shell scripts.
11251 # Whether or not to build shared libraries.
11252 build_libtool_libs=$enable_shared
11254 # Whether or not to build static libraries.
11255 build_old_libs=$enable_static
11257 # Whether or not to add -lc for building shared libraries.
11258 build_libtool_need_lc=$archive_cmds_need_lc_RC
11260 # Whether or not to disallow shared libs when runtime libs are static
11261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11263 # Whether or not to optimize for fast installation.
11264 fast_install=$enable_fast_install
11267 host_alias=$host_alias
11271 # The build system.
11272 build_alias=$build_alias
11276 # An echo program that does not interpret backslashes.
11281 AR_FLAGS=$lt_AR_FLAGS
11286 # A language-specific compiler.
11289 # Is the compiler the GNU C compiler?
11295 # The linker used to build libraries.
11298 # Whether we need hard or soft links.
11301 # A BSD-compatible nm program.
11304 # A symbol stripping program
11307 # Used to examine libraries when file_magic_cmd begins "file"
11308 MAGIC_CMD=$MAGIC_CMD
11310 # Used on cygwin: DLL creation program.
11313 # Used on cygwin: object dumper.
11316 # Used on cygwin: assembler.
11319 # The name of the directory that contains temporary libtool files.
11322 # How to create reloadable object files.
11323 reload_flag=$lt_reload_flag
11324 reload_cmds=$lt_reload_cmds
11326 # How to pass a linker flag through the compiler.
11327 wl=$lt_lt_prog_compiler_wl_RC
11329 # Object file suffix (normally "o").
11330 objext="$ac_objext"
11332 # Old archive suffix (normally "a").
11335 # Shared library suffix (normally ".so").
11336 shrext_cmds='$shrext_cmds'
11338 # Executable file suffix (normally "").
11341 # Additional compiler flags for building library objects.
11342 pic_flag=$lt_lt_prog_compiler_pic_RC
11345 # What is the maximum length of a command?
11346 max_cmd_len=$lt_cv_sys_max_cmd_len
11348 # Does compiler simultaneously support -c and -o options?
11349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11351 # Must we lock files when doing compilation?
11352 need_locks=$lt_need_locks
11354 # Do we need the lib prefix for modules?
11355 need_lib_prefix=$need_lib_prefix
11357 # Do we need a version for libraries?
11358 need_version=$need_version
11360 # Whether dlopen is supported.
11361 dlopen_support=$enable_dlopen
11363 # Whether dlopen of programs is supported.
11364 dlopen_self=$enable_dlopen_self
11366 # Whether dlopen of statically linked programs is supported.
11367 dlopen_self_static=$enable_dlopen_self_static
11369 # Compiler flag to prevent dynamic linking.
11370 link_static_flag=$lt_lt_prog_compiler_static_RC
11372 # Compiler flag to turn off builtin functions.
11373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11375 # Compiler flag to allow reflexive dlopens.
11376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11378 # Compiler flag to generate shared objects directly from archives.
11379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11381 # Compiler flag to generate thread-safe objects.
11382 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11384 # Library versioning type.
11385 version_type=$version_type
11387 # Format of library name prefix.
11388 libname_spec=$lt_libname_spec
11390 # List of archive names. First name is the real one, the rest are links.
11391 # The last name is the one that the linker finds with -lNAME.
11392 library_names_spec=$lt_library_names_spec
11394 # The coded name of the library, if different from the real name.
11395 soname_spec=$lt_soname_spec
11397 # Commands used to build and install an old-style archive.
11399 old_archive_cmds=$lt_old_archive_cmds_RC
11400 old_postinstall_cmds=$lt_old_postinstall_cmds
11401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11403 # Create an old-style archive from a shared archive.
11404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11406 # Create a temporary old-style archive to link instead of a shared archive.
11407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11409 # Commands used to build and install a shared archive.
11410 archive_cmds=$lt_archive_cmds_RC
11411 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11412 postinstall_cmds=$lt_postinstall_cmds
11413 postuninstall_cmds=$lt_postuninstall_cmds
11415 # Commands used to build a loadable module (assumed same as above if empty)
11416 module_cmds=$lt_module_cmds_RC
11417 module_expsym_cmds=$lt_module_expsym_cmds_RC
11419 # Commands to strip libraries.
11420 old_striplib=$lt_old_striplib
11421 striplib=$lt_striplib
11423 # Dependencies to place before the objects being linked to create a
11425 predep_objects=$lt_predep_objects_RC
11427 # Dependencies to place after the objects being linked to create a
11429 postdep_objects=$lt_postdep_objects_RC
11431 # Dependencies to place before the objects being linked to create a
11433 predeps=$lt_predeps_RC
11435 # Dependencies to place after the objects being linked to create a
11437 postdeps=$lt_postdeps_RC
11439 # The library search path used internally by the compiler when linking
11440 # a shared library.
11441 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11443 # Method to check whether dependent libraries are shared objects.
11444 deplibs_check_method=$lt_deplibs_check_method
11446 # Command to use when deplibs_check_method == file_magic.
11447 file_magic_cmd=$lt_file_magic_cmd
11449 # Flag that allows shared libraries with undefined symbols to be built.
11450 allow_undefined_flag=$lt_allow_undefined_flag_RC
11452 # Flag that forces no undefined symbols.
11453 no_undefined_flag=$lt_no_undefined_flag_RC
11455 # Commands used to finish a libtool library installation in a directory.
11456 finish_cmds=$lt_finish_cmds
11458 # Same as above, but a single script fragment to be evaled but not shown.
11459 finish_eval=$lt_finish_eval
11461 # Take the output of nm and produce a listing of raw symbols and C names.
11462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11464 # Transform the output of nm in a proper C declaration
11465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11467 # Transform the output of nm in a C name address pair
11468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11470 # This is the shared library runtime path variable.
11471 runpath_var=$runpath_var
11473 # This is the shared library path variable.
11474 shlibpath_var=$shlibpath_var
11476 # Is shlibpath searched before the hard-coded library search path?
11477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11479 # How to hardcode a shared library path into an executable.
11480 hardcode_action=$hardcode_action_RC
11482 # Whether we should hardcode library paths into libraries.
11483 hardcode_into_libs=$hardcode_into_libs
11485 # Flag to hardcode \$libdir into a binary during linking.
11486 # This must work even if \$libdir does not exist.
11487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11489 # If ld is used when linking, flag to hardcode \$libdir into
11490 # a binary during linking. This must work even if \$libdir does
11492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11494 # Whether we need a single -rpath flag with a separated argument.
11495 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11497 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11498 # resulting binary.
11499 hardcode_direct=$hardcode_direct_RC
11501 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11502 # resulting binary.
11503 hardcode_minus_L=$hardcode_minus_L_RC
11505 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11506 # the resulting binary.
11507 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11509 # Set to yes if building a shared library automatically hardcodes DIR into the library
11510 # and all subsequent libraries and executables linked against it.
11511 hardcode_automatic=$hardcode_automatic_RC
11513 # Variables whose values should be saved in libtool wrapper scripts and
11514 # restored at relink time.
11515 variables_saved_for_relink="$variables_saved_for_relink"
11517 # Whether libtool must link a program against all its dependency libraries.
11518 link_all_deplibs=$link_all_deplibs_RC
11520 # Compile-time system search path for libraries
11521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11523 # Run-time system search path for libraries
11524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11526 # Fix the shell variable \$srcfile for the compiler.
11527 fix_srcfile_path="$fix_srcfile_path_RC"
11529 # Set to yes if exported symbols are required.
11530 always_export_symbols=$always_export_symbols_RC
11532 # The commands to list exported symbols.
11533 export_symbols_cmds=$lt_export_symbols_cmds_RC
11535 # The commands to extract the exported symbol list from a shared archive.
11536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11538 # Symbols that should not be listed in the preloaded symbols.
11539 exclude_expsyms=$lt_exclude_expsyms_RC
11541 # Symbols that must always be exported.
11542 include_expsyms=$lt_include_expsyms_RC
11544 # ### END LIBTOOL TAG CONFIG: $tagname
11550 # If there is no Makefile yet, we rely on a make rule to execute
11551 # `config.status --recheck' to rerun these tests and create the
11552 # libtool script then.
11553 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11554 if test -f "$ltmain_in"; then
11555 test -f Makefile && make "$ltmain"
11561 ac_cpp='$CPP $CPPFLAGS'
11562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11571 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11572 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11573 { (exit 1); exit 1; }; }
11577 # Append the new tag name to the list of available tags.
11578 if test -n "$tagname" ; then
11579 available_tags="$available_tags $tagname"
11585 # Now substitute the updated list of available tags.
11586 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11587 mv "${ofile}T" "$ofile"
11591 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11592 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11593 { (exit 1); exit 1; }; }
11599 # This can be used to rebuild libtool when needed
11600 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11602 # Always use our own libtool.
11603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11605 # Prevent multiple expansion
11617 if test $ol_enable_perl != no ; then
11618 # Extract the first word of "perl", so it can be a program name with args.
11619 set dummy perl; ac_word=$2
11620 echo "$as_me:$LINENO: checking for $ac_word" >&5
11621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11622 if test "${ac_cv_path_PERLBIN+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11648 PERLBIN=$ac_cv_path_PERLBIN
11650 if test -n "$PERLBIN"; then
11651 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11652 echo "${ECHO_T}$PERLBIN" >&6
11654 echo "$as_me:$LINENO: result: no" >&5
11655 echo "${ECHO_T}no" >&6
11659 if test "no$PERLBIN" = "no" ; then
11660 if test $ol_enable_perl = yes ; then
11661 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11662 echo "$as_me: error: could not locate perl" >&2;}
11663 { (exit 1); exit 1; }; }
11667 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11668 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11670 if test x"$ol_enable_perl" = "xyes" ; then
11671 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11673 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11680 ac_cpp='$CPP $CPPFLAGS'
11681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11684 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11686 # On Suns, sometimes $CPP names a directory.
11687 if test -n "$CPP" && test -d "$CPP"; then
11690 if test -z "$CPP"; then
11691 if test "${ac_cv_prog_CPP+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 # Double quotes because CPP needs to be expanded
11695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11697 ac_preproc_ok=false
11698 for ac_c_preproc_warn_flag in '' yes
11700 # Use a header file that comes with gcc, so configuring glibc
11701 # with a fresh cross-compiler works.
11702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 # <limits.h> exists even on freestanding compilers.
11704 # On the NeXT, cc -E runs the code through the compiler's parser,
11705 # not just through cpp. "Syntax error" is here to catch this case.
11706 cat >conftest.$ac_ext <<_ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11713 # include <limits.h>
11715 # include <assert.h>
11719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11722 grep -v '^ *+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } >/dev/null; then
11727 if test -s conftest.err; then
11728 ac_cpp_err=$ac_c_preproc_warn_flag
11729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11736 if test -z "$ac_cpp_err"; then
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 # Broken: fails on valid input.
11745 rm -f conftest.err conftest.$ac_ext
11747 # OK, works on sane cases. Now check whether non-existent headers
11748 # can be detected and how.
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 #include <ac_nonexistent.h>
11757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11760 grep -v '^ *+' conftest.er1 >conftest.err
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } >/dev/null; then
11765 if test -s conftest.err; then
11766 ac_cpp_err=$ac_c_preproc_warn_flag
11767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11774 if test -z "$ac_cpp_err"; then
11775 # Broken: success on invalid input.
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 # Passes both tests.
11785 rm -f conftest.err conftest.$ac_ext
11788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11789 rm -f conftest.err conftest.$ac_ext
11790 if $ac_preproc_ok; then
11795 ac_cv_prog_CPP=$CPP
11798 CPP=$ac_cv_prog_CPP
11800 ac_cv_prog_CPP=$CPP
11802 echo "$as_me:$LINENO: result: $CPP" >&5
11803 echo "${ECHO_T}$CPP" >&6
11804 ac_preproc_ok=false
11805 for ac_c_preproc_warn_flag in '' yes
11807 # Use a header file that comes with gcc, so configuring glibc
11808 # with a fresh cross-compiler works.
11809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 # <limits.h> exists even on freestanding compilers.
11811 # On the NeXT, cc -E runs the code through the compiler's parser,
11812 # not just through cpp. "Syntax error" is here to catch this case.
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11820 # include <limits.h>
11822 # include <assert.h>
11826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11829 grep -v '^ *+' conftest.er1 >conftest.err
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } >/dev/null; then
11834 if test -s conftest.err; then
11835 ac_cpp_err=$ac_c_preproc_warn_flag
11836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11843 if test -z "$ac_cpp_err"; then
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 # Broken: fails on valid input.
11852 rm -f conftest.err conftest.$ac_ext
11854 # OK, works on sane cases. Now check whether non-existent headers
11855 # can be detected and how.
11856 cat >conftest.$ac_ext <<_ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 #include <ac_nonexistent.h>
11864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11867 grep -v '^ *+' conftest.er1 >conftest.err
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } >/dev/null; then
11872 if test -s conftest.err; then
11873 ac_cpp_err=$ac_c_preproc_warn_flag
11874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11881 if test -z "$ac_cpp_err"; then
11882 # Broken: success on invalid input.
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 # Passes both tests.
11892 rm -f conftest.err conftest.$ac_ext
11895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11896 rm -f conftest.err conftest.$ac_ext
11897 if $ac_preproc_ok; then
11900 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11901 See \`config.log' for more details." >&5
11902 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11903 See \`config.log' for more details." >&2;}
11904 { (exit 1); exit 1; }; }
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915 *mingw32* ) ac_cv_mingw32=yes ;;
11916 *cygwin* ) ac_cv_cygwin=yes ;;
11922 cat >>confdefs.h <<_ACEOF
11923 #define EXEEXT "${EXEEXT}"
11927 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11928 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11929 if test "${ac_cv_lib_be_be_app+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lbe -lroot -lnet $LIBS"
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 /* Override any gcc2 internal prototype to avoid an error. */
11945 /* We use char because int might match the return type of a gcc2
11946 builtin and then its argument prototype would still apply. */
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag"
11966 || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_be_be_app=yes
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_lib_be_be_app=no
11985 rm -f conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11990 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11991 if test $ac_cv_lib_be_be_app = yes; then
11992 LIBS="$LIBS -lbe -lroot -lnet"
11999 ac_cpp='$CPP $CPPFLAGS'
12000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12003 if test -n "$ac_tool_prefix"; then
12004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12006 echo "$as_me:$LINENO: checking for $ac_word" >&5
12007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12008 if test "${ac_cv_prog_CC+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 if test -n "$CC"; then
12012 ac_cv_prog_CC="$CC" # Let the user override the test.
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 if test -n "$CC"; then
12032 echo "$as_me:$LINENO: result: $CC" >&5
12033 echo "${ECHO_T}$CC" >&6
12035 echo "$as_me:$LINENO: result: no" >&5
12036 echo "${ECHO_T}no" >&6
12040 if test -z "$ac_cv_prog_CC"; then
12042 # Extract the first word of "gcc", so it can be a program name with args.
12043 set dummy gcc; ac_word=$2
12044 echo "$as_me:$LINENO: checking for $ac_word" >&5
12045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 if test -n "$ac_ct_CC"; then
12050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12059 ac_cv_prog_ac_ct_CC="gcc"
12060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12069 if test -n "$ac_ct_CC"; then
12070 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12071 echo "${ECHO_T}$ac_ct_CC" >&6
12073 echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6
12079 CC="$ac_cv_prog_CC"
12082 if test -z "$CC"; then
12083 if test -n "$ac_tool_prefix"; then
12084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12085 set dummy ${ac_tool_prefix}cc; ac_word=$2
12086 echo "$as_me:$LINENO: checking for $ac_word" >&5
12087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12088 if test "${ac_cv_prog_CC+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 if test -n "$CC"; then
12092 ac_cv_prog_CC="$CC" # Let the user override the test.
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101 ac_cv_prog_CC="${ac_tool_prefix}cc"
12102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 if test -n "$CC"; then
12112 echo "$as_me:$LINENO: result: $CC" >&5
12113 echo "${ECHO_T}$CC" >&6
12115 echo "$as_me:$LINENO: result: no" >&5
12116 echo "${ECHO_T}no" >&6
12120 if test -z "$ac_cv_prog_CC"; then
12122 # Extract the first word of "cc", so it can be a program name with args.
12123 set dummy cc; ac_word=$2
12124 echo "$as_me:$LINENO: checking for $ac_word" >&5
12125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 if test -n "$ac_ct_CC"; then
12130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133 for as_dir in $PATH
12136 test -z "$as_dir" && as_dir=.
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12139 ac_cv_prog_ac_ct_CC="cc"
12140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12149 if test -n "$ac_ct_CC"; then
12150 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12151 echo "${ECHO_T}$ac_ct_CC" >&6
12153 echo "$as_me:$LINENO: result: no" >&5
12154 echo "${ECHO_T}no" >&6
12159 CC="$ac_cv_prog_CC"
12163 if test -z "$CC"; then
12164 # Extract the first word of "cc", so it can be a program name with args.
12165 set dummy cc; ac_word=$2
12166 echo "$as_me:$LINENO: checking for $ac_word" >&5
12167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12168 if test "${ac_cv_prog_CC+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 if test -n "$CC"; then
12172 ac_cv_prog_CC="$CC" # Let the user override the test.
12174 ac_prog_rejected=no
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12183 ac_prog_rejected=yes
12187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 if test $ac_prog_rejected = yes; then
12194 # We found a bogon in the path, so make sure we never use it.
12195 set dummy $ac_cv_prog_CC
12197 if test $# != 0; then
12198 # We chose a different compiler from the bogus one.
12199 # However, it has the same basename, so the bogon will be chosen
12200 # first if we set CC to just the basename; use the full file name.
12202 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12208 if test -n "$CC"; then
12209 echo "$as_me:$LINENO: result: $CC" >&5
12210 echo "${ECHO_T}$CC" >&6
12212 echo "$as_me:$LINENO: result: no" >&5
12213 echo "${ECHO_T}no" >&6
12217 if test -z "$CC"; then
12218 if test -n "$ac_tool_prefix"; then
12221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12223 echo "$as_me:$LINENO: checking for $ac_word" >&5
12224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12225 if test "${ac_cv_prog_CC+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 if test -n "$CC"; then
12229 ac_cv_prog_CC="$CC" # Let the user override the test.
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $PATH
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 if test -n "$CC"; then
12249 echo "$as_me:$LINENO: result: $CC" >&5
12250 echo "${ECHO_T}$CC" >&6
12252 echo "$as_me:$LINENO: result: no" >&5
12253 echo "${ECHO_T}no" >&6
12256 test -n "$CC" && break
12259 if test -z "$CC"; then
12263 # Extract the first word of "$ac_prog", so it can be a program name with args.
12264 set dummy $ac_prog; ac_word=$2
12265 echo "$as_me:$LINENO: checking for $ac_word" >&5
12266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 if test -n "$ac_ct_CC"; then
12271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12280 ac_cv_prog_ac_ct_CC="$ac_prog"
12281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12290 if test -n "$ac_ct_CC"; then
12291 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12292 echo "${ECHO_T}$ac_ct_CC" >&6
12294 echo "$as_me:$LINENO: result: no" >&5
12295 echo "${ECHO_T}no" >&6
12298 test -n "$ac_ct_CC" && break
12307 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12308 See \`config.log' for more details." >&5
12309 echo "$as_me: error: no acceptable C compiler found in \$PATH
12310 See \`config.log' for more details." >&2;}
12311 { (exit 1); exit 1; }; }
12313 # Provide some information about the compiler.
12314 echo "$as_me:$LINENO:" \
12315 "checking for C compiler version" >&5
12316 ac_compiler=`set X $ac_compile; echo $2`
12317 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12318 (eval $ac_compiler --version </dev/null >&5) 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }
12322 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12323 (eval $ac_compiler -v </dev/null >&5) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }
12327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12328 (eval $ac_compiler -V </dev/null >&5) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }
12333 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12334 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12335 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12356 rm -f conftest.$ac_objext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12358 (eval $ac_compile) 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_c_werror_flag"
12366 || test ! -s conftest.err'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_compiler_gnu=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12389 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12390 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12391 GCC=`test $ac_compiler_gnu = yes && echo yes`
12392 ac_test_CFLAGS=${CFLAGS+set}
12393 ac_save_CFLAGS=$CFLAGS
12395 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12396 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12397 if test "${ac_cv_prog_cc_g+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 cat >conftest.$ac_ext <<_ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_prog_cc_g=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12447 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12448 if test "$ac_test_CFLAGS" = set; then
12449 CFLAGS=$ac_save_CFLAGS
12450 elif test $ac_cv_prog_cc_g = yes; then
12451 if test "$GCC" = yes; then
12457 if test "$GCC" = yes; then
12463 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12464 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12465 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 ac_cv_prog_cc_stdc=no
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 #include <stdarg.h>
12478 #include <sys/types.h>
12479 #include <sys/stat.h>
12480 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12481 struct buf { int x; };
12482 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12483 static char *e (p, i)
12489 static char *f (char * (*g) (char **, int), char **p, ...)
12494 s = g (p, va_arg (v,int));
12499 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12500 function prototypes and stuff, but not '\xHH' hex character constants.
12501 These don't provoke an error unfortunately, instead are silently treated
12502 as 'x'. The following induces an error, until -std1 is added to get
12503 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12504 array size at least. It's necessary to write '\x00'==0 to get something
12505 that's true only with -std1. */
12506 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12508 int test (int i, double x);
12509 struct s1 {int (*f) (int a);};
12510 struct s2 {int (*f) (double a);};
12511 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12517 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12522 # Don't try gcc -ansi; that turns off useful extensions and
12523 # breaks some systems' header files.
12524 # AIX -qlanglvl=ansi
12525 # Ultrix and OSF/1 -std1
12526 # HP-UX 10.20 and later -Ae
12527 # HP-UX older versions -Aa -D_HPUX_SOURCE
12528 # SVR4 -Xc -D__EXTENSIONS__
12529 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12531 CC="$ac_save_CC $ac_arg"
12532 rm -f conftest.$ac_objext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag"
12542 || test ! -s conftest.err'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_cv_prog_cc_stdc=$ac_arg
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -f conftest.err conftest.$ac_objext
12563 rm -f conftest.$ac_ext conftest.$ac_objext
12568 case "x$ac_cv_prog_cc_stdc" in
12570 echo "$as_me:$LINENO: result: none needed" >&5
12571 echo "${ECHO_T}none needed" >&6 ;;
12573 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12574 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12575 CC="$CC $ac_cv_prog_cc_stdc" ;;
12578 # Some people use a C++ compiler to compile C. Since we use `exit',
12579 # in C++ we need to declare it. In case someone uses the same compiler
12580 # for both compiling C and C++ we need to have the C++ compiler decide
12581 # the declaration of exit, since it's the most demanding environment.
12582 cat >conftest.$ac_ext <<_ACEOF
12583 #ifndef __cplusplus
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 for ac_declaration in \
12611 'extern "C" void std::exit (int) throw (); using std::exit;' \
12612 'extern "C" void std::exit (int); using std::exit;' \
12613 'extern "C" void exit (int) throw ();' \
12614 'extern "C" void exit (int);' \
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 #include <stdlib.h>
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag"
12643 || test ! -s conftest.err'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest.$ac_objext'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_c_werror_flag"
12688 || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12709 if test -n "$ac_declaration"; then
12710 echo '#ifdef __cplusplus' >>confdefs.h
12711 echo $ac_declaration >>confdefs.h
12712 echo '#endif' >>confdefs.h
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12722 ac_cpp='$CPP $CPPFLAGS'
12723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12727 depcc="$CC" am_compiler_list=
12729 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12730 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12735 # We make a subdir and do the tests there. Otherwise we can end up
12736 # making bogus files that we don't know about and never remove. For
12737 # instance it was reported that on HP-UX the gcc test will end up
12738 # making a dummy file named `D' -- because `-MD' means `put the output
12741 # Copy depcomp to subdir because otherwise we won't find it if we're
12742 # using a relative directory.
12743 cp "$am_depcomp" conftest.dir
12745 # We will build objects and dependencies in a subdirectory because
12746 # it helps to detect inapplicable dependency modes. For instance
12747 # both Tru64's cc and ICC support -MD to output dependencies as a
12748 # side effect of compilation, but ICC will put the dependencies in
12749 # the current directory while Tru64 will put them in the object
12753 am_cv_CC_dependencies_compiler_type=none
12754 if test "$am_compiler_list" = ""; then
12755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12757 for depmode in $am_compiler_list; do
12758 # Setup a source with many dependencies, because some compilers
12759 # like to wrap large dependency lists on column 80 (with \), and
12760 # we should not choose a depcomp mode which is confused by this.
12762 # We need to recreate these files for each test, as the compiler may
12763 # overwrite some of them when testing with obscure command lines.
12764 # This happens at least with the AIX C compiler.
12766 for i in 1 2 3 4 5 6; do
12767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12769 # Solaris 8's {/usr,}/bin/sh.
12770 touch sub/conftst$i.h
12772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12776 # after this tag, mechanisms are not by side-effect, so they'll
12777 # only be used when explicitly requested
12778 if test "x$enable_dependency_tracking" = xyes; then
12786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12787 # mode. It turns out that the SunPro C++ compiler does not properly
12788 # handle `-M -o', and we need to detect this.
12789 if depmode=$depmode \
12790 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12791 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12792 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12793 >/dev/null 2>conftest.err &&
12794 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12795 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12796 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12797 # icc doesn't choke on unknown options, it will just issue warnings
12798 # or remarks (even with -Werror). So we grep stderr for any message
12799 # that says an option was ignored or not supported.
12800 # When given -MP, icc 7.0 and 7.1 complain thusly:
12801 # icc: Command line warning: ignoring option '-M'; no argument required
12802 # The diagnosis changed in icc 8.0:
12803 # icc: Command line remark: option '-MP' not supported
12804 if (grep 'ignoring option' conftest.err ||
12805 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12806 am_cv_CC_dependencies_compiler_type=$depmode
12813 rm -rf conftest.dir
12815 am_cv_CC_dependencies_compiler_type=none
12819 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12820 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12821 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12826 test "x$enable_dependency_tracking" != xno \
12827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12828 am__fastdepCC_TRUE=
12829 am__fastdepCC_FALSE='#'
12831 am__fastdepCC_TRUE='#'
12832 am__fastdepCC_FALSE=
12836 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12837 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12838 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12839 { (exit 1); exit 1; }; }
12842 # test for make depend flag
12845 if test -z "${MKDEP}"; then
12846 OL_MKDEP="${CC-cc}"
12847 if test -z "${MKDEP_FLAGS}"; then
12848 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12849 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12850 if test "${ol_cv_mkdep+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 for flag in "-M" "-xM"; do
12856 cat > conftest.c <<EOF
12859 if { ac_try='$OL_MKDEP $flag conftest.c'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } \
12865 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12867 if test ! -f conftest."${ac_object}" ; then
12869 OL_MKDEP_FLAGS="$flag"
12877 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12878 echo "${ECHO_T}$ol_cv_mkdep" >&6
12881 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12885 OL_MKDEP="${MKDEP}"
12886 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12891 if test "${ol_cv_mkdep}" = no ; then
12892 # this will soon become an error
12893 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12894 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12897 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12898 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12899 if test "${ac_cv_lib_s_afopen+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 ac_check_lib_save_LIBS=$LIBS
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12911 /* Override any gcc2 internal prototype to avoid an error. */
12915 /* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928 (eval $ac_link) 2>conftest.er1
12930 grep -v '^ *+' conftest.er1 >conftest.err
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -z "$ac_c_werror_flag"
12936 || test ! -s conftest.err'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } &&
12942 { ac_try='test -s conftest$ac_exeext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_cv_lib_s_afopen=yes
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 ac_cv_lib_s_afopen=no
12955 rm -f conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957 LIBS=$ac_check_lib_save_LIBS
12959 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12960 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12961 if test $ac_cv_lib_s_afopen = yes; then
12965 cat >>confdefs.h <<\_ACEOF
12966 #define HAVE_AIX_SECURITY 1
12975 ac_cv_func_getopt=no
12977 cat >>confdefs.h <<\_ACEOF
12978 #define BOTH_STRINGS_H 1
12985 WITH_MODULES_ENABLED=no
12986 if test $ol_enable_modules != no ; then
12988 for ac_header in ltdl.h
12990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992 echo "$as_me:$LINENO: checking for $ac_header" >&5
12993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13000 # Is the header compilable?
13001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 $ac_includes_default
13010 #include <$ac_header>
13012 rm -f conftest.$ac_objext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13014 (eval $ac_compile) 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -z "$ac_c_werror_flag"
13022 || test ! -s conftest.err'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest.$ac_objext'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 ac_header_compiler=yes
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 ac_header_compiler=no
13041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13043 echo "${ECHO_T}$ac_header_compiler" >&6
13045 # Is the header present?
13046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13048 cat >conftest.$ac_ext <<_ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 #include <$ac_header>
13056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } >/dev/null; then
13064 if test -s conftest.err; then
13065 ac_cpp_err=$ac_c_preproc_warn_flag
13066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13073 if test -z "$ac_cpp_err"; then
13074 ac_header_preproc=yes
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_header_preproc=no
13081 rm -f conftest.err conftest.$ac_ext
13082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13083 echo "${ECHO_T}$ac_header_preproc" >&6
13085 # So? What about this header?
13086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13092 ac_header_preproc=yes
13095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13109 ## ------------------------------------------ ##
13110 ## Report this to the AC_PACKAGE_NAME lists. ##
13111 ## ------------------------------------------ ##
13114 sed "s/^/$as_me: WARNING: /" >&2
13117 echo "$as_me:$LINENO: checking for $ac_header" >&5
13118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 eval "$as_ac_Header=\$ac_header_preproc"
13124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13129 cat >>confdefs.h <<_ACEOF
13130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13138 if test $ac_cv_header_ltdl_h = no ; then
13139 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13140 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13141 { (exit 1); exit 1; }; }
13144 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13145 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13146 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-lltdl $LIBS"
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 /* Override any gcc2 internal prototype to avoid an error. */
13162 /* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13175 (eval $ac_link) 2>conftest.er1
13177 grep -v '^ *+' conftest.er1 >conftest.err
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
13182 { ac_try='test -z "$ac_c_werror_flag"
13183 || test ! -s conftest.err'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_cv_lib_ltdl_lt_dlinit=yes
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 ac_cv_lib_ltdl_lt_dlinit=no
13202 rm -f conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13204 LIBS=$ac_check_lib_save_LIBS
13206 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13207 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13208 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13210 MODULES_LIBS=-lltdl
13212 cat >>confdefs.h <<\_ACEOF
13213 #define HAVE_LIBLTDL 1
13220 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13221 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13222 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13223 { (exit 1); exit 1; }; }
13225 ol_link_modules=yes
13226 WITH_MODULES_ENABLED=yes
13229 for i in $Backends; do
13230 eval "ol_tmp=\$ol_enable_$i"
13231 if test $ol_tmp = mod ; then
13232 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13233 echo "$as_me: WARNING: building static $i backend" >&2;}
13234 eval "ol_enable_$i=yes"
13237 for i in $Overlays; do
13238 eval "ol_tmp=\$ol_enable_$i"
13239 if test $ol_tmp = mod ; then
13240 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13241 echo "$as_me: WARNING: building static $i overlay" >&2;}
13242 eval "ol_enable_$i=yes"
13248 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13249 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13250 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13262 #include <__ASCII__/generate_error.h>
13266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13269 grep -v '^ *+' conftest.er1 >conftest.err
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } >/dev/null; then
13274 if test -s conftest.err; then
13275 ac_cpp_err=$ac_c_preproc_warn_flag
13276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13283 if test -z "$ac_cpp_err"; then
13284 ol_cv_cpp_ebcdic=yes
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ol_cv_cpp_ebcdic=no
13291 rm -f conftest.err conftest.$ac_ext
13293 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13294 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13295 if test $ol_cv_cpp_ebcdic = yes ; then
13297 cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_EBCDIC 1
13303 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13305 if test "${ol_cv_header_stdc+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 #include <stdlib.h>
13315 #include <stdarg.h>
13316 #include <string.h>
13319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } >/dev/null; then
13327 if test -s conftest.err; then
13328 ac_cpp_err=$ac_c_preproc_warn_flag
13329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13336 if test -z "$ac_cpp_err"; then
13337 ol_cv_header_stdc=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ol_cv_header_stdc=no
13344 rm -f conftest.err conftest.$ac_ext
13346 if test $ol_cv_header_stdc = yes; then
13347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <string.h>
13357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13358 $EGREP "memchr" >/dev/null 2>&1; then
13361 ol_cv_header_stdc=no
13367 if test $ol_cv_header_stdc = yes; then
13368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13369 cat >conftest.$ac_ext <<_ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include <stdlib.h>
13378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13379 $EGREP "free" >/dev/null 2>&1; then
13382 ol_cv_header_stdc=no
13388 if test $ol_cv_header_stdc = yes; then
13389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13390 if test "$cross_compiling" = yes; then
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13400 #ifndef HAVE_EBCDIC
13401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13404 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13405 || ('j' <= (c) && (c) <= 'r') \
13406 || ('s' <= (c) && (c) <= 'z'))
13407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13410 int main () { int i; for (i = 0; i < 256; i++)
13411 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13415 rm -f conftest$ac_exeext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13417 (eval $ac_link) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13428 echo "$as_me: program exited with status $ac_status" >&5
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ( exit $ac_status )
13433 ol_cv_header_stdc=no
13435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13439 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13440 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13441 if test $ol_cv_header_stdc = yes; then
13442 cat >>confdefs.h <<\_ACEOF
13443 #define STDC_HEADERS 1
13447 ac_cv_header_stdc=disable
13450 if test $ol_cv_header_stdc != yes; then
13451 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13452 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13460 ac_header_dirent=no
13461 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13462 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13463 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13464 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <sys/types.h>
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -z "$ac_c_werror_flag"
13496 || test ! -s conftest.err'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest.$ac_objext'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 eval "$as_ac_Header=yes"
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 eval "$as_ac_Header=no"
13515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13520 cat >>confdefs.h <<_ACEOF
13521 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13524 ac_header_dirent=$ac_hdr; break
13528 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13529 if test $ac_header_dirent = dirent.h; then
13530 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13531 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13532 if test "${ac_cv_search_opendir+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 ac_func_search_save_LIBS=$LIBS
13536 ac_cv_search_opendir=no
13537 cat >conftest.$ac_ext <<_ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 /* Override any gcc2 internal prototype to avoid an error. */
13548 /* We use char because int might match the return type of a gcc2
13549 builtin and then its argument prototype would still apply. */
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561 (eval $ac_link) 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_c_werror_flag"
13569 || test ! -s conftest.err'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } &&
13575 { ac_try='test -s conftest$ac_exeext'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 ac_cv_search_opendir="none required"
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13587 rm -f conftest.err conftest.$ac_objext \
13588 conftest$ac_exeext conftest.$ac_ext
13589 if test "$ac_cv_search_opendir" = no; then
13590 for ac_lib in dir; do
13591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any gcc2 internal prototype to avoid an error. */
13603 /* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616 (eval $ac_link) 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -z "$ac_c_werror_flag"
13624 || test ! -s conftest.err'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_search_opendir="-l$ac_lib"
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13643 rm -f conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_func_search_save_LIBS
13649 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13650 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13651 if test "$ac_cv_search_opendir" != no; then
13652 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13657 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13659 if test "${ac_cv_search_opendir+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 ac_func_search_save_LIBS=$LIBS
13663 ac_cv_search_opendir=no
13664 cat >conftest.$ac_ext <<_ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13671 /* Override any gcc2 internal prototype to avoid an error. */
13675 /* We use char because int might match the return type of a gcc2
13676 builtin and then its argument prototype would still apply. */
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13688 (eval $ac_link) 2>conftest.er1
13690 grep -v '^ *+' conftest.er1 >conftest.err
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -z "$ac_c_werror_flag"
13696 || test ! -s conftest.err'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try='test -s conftest$ac_exeext'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_search_opendir="none required"
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13714 rm -f conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
13716 if test "$ac_cv_search_opendir" = no; then
13717 for ac_lib in x; do
13718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13726 /* Override any gcc2 internal prototype to avoid an error. */
13730 /* We use char because int might match the return type of a gcc2
13731 builtin and then its argument prototype would still apply. */
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13743 (eval $ac_link) 2>conftest.er1
13745 grep -v '^ *+' conftest.er1 >conftest.err
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag"
13751 || test ! -s conftest.err'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try='test -s conftest$ac_exeext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_search_opendir="-l$ac_lib"
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13770 rm -f conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13774 LIBS=$ac_func_search_save_LIBS
13776 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13777 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13778 if test "$ac_cv_search_opendir" != no; then
13779 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13785 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13786 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13787 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 cat >conftest.$ac_ext <<_ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 #include <sys/types.h>
13797 #include <sys/wait.h>
13798 #ifndef WEXITSTATUS
13799 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13802 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13810 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>conftest.er1
13819 grep -v '^ *+' conftest.er1 >conftest.err
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag"
13825 || test ! -s conftest.err'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try='test -s conftest.$ac_objext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_header_sys_wait_h=yes
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ac_cv_header_sys_wait_h=no
13844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13847 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13848 if test $ac_cv_header_sys_wait_h = yes; then
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_SYS_WAIT_H 1
13856 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13857 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13858 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <sys/types.h>
13868 #include <termios.h>
13874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13875 $EGREP "yes" >/dev/null 2>&1; then
13876 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13878 ac_cv_sys_tiocgwinsz_in_termios_h=no
13883 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13884 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13886 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13887 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13888 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13889 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 #include <sys/types.h>
13899 #include <sys/ioctl.h>
13905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13906 $EGREP "yes" >/dev/null 2>&1; then
13907 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13909 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13914 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13915 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13917 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13919 cat >>confdefs.h <<\_ACEOF
13920 #define GWINSZ_IN_SYS_IOCTL 1
14024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14026 echo "$as_me:$LINENO: checking for $ac_header" >&5
14027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14034 # Is the header compilable?
14035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14044 #include <$ac_header>
14046 rm -f conftest.$ac_objext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14048 (eval $ac_compile) 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest.$ac_objext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_header_compiler=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_header_compiler=no
14075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14077 echo "${ECHO_T}$ac_header_compiler" >&6
14079 # Is the header present?
14080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 #include <$ac_header>
14090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14093 grep -v '^ *+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } >/dev/null; then
14098 if test -s conftest.err; then
14099 ac_cpp_err=$ac_c_preproc_warn_flag
14100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14107 if test -z "$ac_cpp_err"; then
14108 ac_header_preproc=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_header_preproc=no
14115 rm -f conftest.err conftest.$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14126 ac_header_preproc=yes
14129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14143 ## ------------------------------------------ ##
14144 ## Report this to the AC_PACKAGE_NAME lists. ##
14145 ## ------------------------------------------ ##
14148 sed "s/^/$as_me: WARNING: /" >&2
14151 echo "$as_me:$LINENO: checking for $ac_header" >&5
14152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 eval "$as_ac_Header=\$ac_header_preproc"
14158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14163 cat >>confdefs.h <<_ACEOF
14164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14173 for ac_header in resolv.h
14175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14176 echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 $ac_includes_default
14188 #include <netinet/in.h>
14191 #include <$ac_header>
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>conftest.er1
14197 grep -v '^ *+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_c_werror_flag"
14203 || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest.$ac_objext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 eval "$as_ac_Header=yes"
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 eval "$as_ac_Header=no"
14222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14227 cat >>confdefs.h <<_ACEOF
14228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14237 for ac_header in sys/ucred.h
14239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14240 echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14251 $ac_includes_default
14252 #ifdef HAVE_SYS_PARAM_H
14253 #include <sys/param.h>
14257 #include <$ac_header>
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14261 (eval $ac_compile) 2>conftest.er1
14263 grep -v '^ *+' conftest.er1 >conftest.err
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } &&
14268 { ac_try='test -z "$ac_c_werror_flag"
14269 || test ! -s conftest.err'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; } &&
14275 { ac_try='test -s conftest.$ac_objext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 eval "$as_ac_Header=yes"
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 eval "$as_ac_Header=no"
14288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14293 cat >>confdefs.h <<_ACEOF
14294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14305 for ac_func in sigaction sigset
14307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14308 echo "$as_me:$LINENO: checking for $ac_func" >&5
14309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14310 if eval "test \"\${$as_ac_var+set}\" = set"; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 cat >conftest.$ac_ext <<_ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14321 #define $ac_func innocuous_$ac_func
14323 /* System header to define __stub macros and hopefully few prototypes,
14324 which can conflict with char $ac_func (); below.
14325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14326 <limits.h> exists even on freestanding compilers. */
14329 # include <limits.h>
14331 # include <assert.h>
14336 /* Override any gcc2 internal prototype to avoid an error. */
14341 /* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14344 /* The GNU C library defines this for functions which it implements
14345 to always fail with ENOSYS. Some functions are actually named
14346 something starting with __ and the normal name is an alias. */
14347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14350 char (*f) () = $ac_func;
14359 return f != $ac_func;
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366 (eval $ac_link) 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest$ac_exeext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 eval "$as_ac_var=yes"
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 eval "$as_ac_var=no"
14393 rm -f conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14398 if test `eval echo '${'$as_ac_var'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14407 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14409 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14410 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14411 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 ac_check_lib_save_LIBS=$LIBS
14416 cat >conftest.$ac_ext <<_ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14423 /* Override any gcc2 internal prototype to avoid an error. */
14427 /* We use char because int might match the return type of a gcc2
14428 builtin and then its argument prototype would still apply. */
14438 rm -f conftest.$ac_objext conftest$ac_exeext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14440 (eval $ac_link) 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_lib_V3_sigset=yes
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_cv_lib_V3_sigset=no
14467 rm -f conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_check_lib_save_LIBS
14471 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14472 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14473 if test $ac_cv_lib_V3_sigset = yes; then
14474 cat >>confdefs.h <<_ACEOF
14475 #define HAVE_LIBV3 1
14484 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14485 echo "$as_me:$LINENO: checking for winsock" >&5
14486 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14487 if test "${ol_cv_winsock+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 for curlib in ws2_32 wsock32; do
14492 LIBS="$LIBS -l$curlib"
14493 cat >conftest.$ac_ext <<_ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <winsock.h>
14506 select(0,NULL,NULL,NULL,NULL);
14508 gethostname(NULL,0);
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14516 (eval $ac_link) 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try='test -z "$ac_c_werror_flag"
14524 || test ! -s conftest.err'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest$ac_exeext'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14543 rm -f conftest.err conftest.$ac_objext \
14544 conftest$ac_exeext conftest.$ac_ext
14546 if test $ol_cv_winsock = yes; then
14548 cat >>confdefs.h <<\_ACEOF
14549 #define HAVE_WINSOCK 1
14552 ac_cv_func_socket=yes
14553 ac_cv_func_select=yes
14554 ac_cv_func_closesocket=yes
14555 ac_cv_func_gethostname=yes
14556 if test $curlib = ws2_32; then
14557 ol_cv_winsock=winsock2
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_WINSOCK2 1
14569 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14570 echo "${ECHO_T}$ol_cv_winsock" >&6
14574 echo "$as_me:$LINENO: checking for socket" >&5
14575 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14576 if test "${ac_cv_func_socket+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14587 #define socket innocuous_socket
14589 /* System header to define __stub macros and hopefully few prototypes,
14590 which can conflict with char socket (); below.
14591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14592 <limits.h> exists even on freestanding compilers. */
14595 # include <limits.h>
14597 # include <assert.h>
14602 /* Override any gcc2 internal prototype to avoid an error. */
14607 /* We use char because int might match the return type of a gcc2
14608 builtin and then its argument prototype would still apply. */
14610 /* The GNU C library defines this for functions which it implements
14611 to always fail with ENOSYS. Some functions are actually named
14612 something starting with __ and the normal name is an alias. */
14613 #if defined (__stub_socket) || defined (__stub___socket)
14616 char (*f) () = socket;
14625 return f != socket;
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632 (eval $ac_link) 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag"
14640 || test ! -s conftest.err'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; } &&
14646 { ac_try='test -s conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_func_socket=yes
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 ac_cv_func_socket=no
14659 rm -f conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14662 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14663 echo "${ECHO_T}$ac_cv_func_socket" >&6
14664 if test $ac_cv_func_socket = yes; then
14669 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14670 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14671 if test "${ac_cv_lib_socket_main+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lsocket $LIBS"
14676 cat >conftest.$ac_ext <<_ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14692 rm -f conftest.$ac_objext conftest$ac_exeext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14694 (eval $ac_link) 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -z "$ac_c_werror_flag"
14702 || test ! -s conftest.err'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; } &&
14708 { ac_try='test -s conftest$ac_exeext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_lib_socket_main=yes
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ac_cv_lib_socket_main=no
14721 rm -f conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14725 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14726 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14727 if test $ac_cv_lib_socket_main = yes; then
14728 cat >>confdefs.h <<_ACEOF
14729 #define HAVE_LIBSOCKET 1
14732 LIBS="-lsocket $LIBS"
14737 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14738 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14739 if test "${ac_cv_lib_net_main+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 ac_check_lib_save_LIBS=$LIBS
14744 cat >conftest.$ac_ext <<_ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14762 (eval $ac_link) 2>conftest.er1
14764 grep -v '^ *+' conftest.er1 >conftest.err
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_c_werror_flag"
14770 || test ! -s conftest.err'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest$ac_exeext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_lib_net_main=yes
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_cv_lib_net_main=no
14789 rm -f conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14793 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14794 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14795 if test $ac_cv_lib_net_main = yes; then
14796 cat >>confdefs.h <<_ACEOF
14797 #define HAVE_LIBNET 1
14805 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14806 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14807 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 ac_check_lib_save_LIBS=$LIBS
14811 LIBS="-lnsl_s $LIBS"
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14830 (eval $ac_link) 2>conftest.er1
14832 grep -v '^ *+' conftest.er1 >conftest.err
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -z "$ac_c_werror_flag"
14838 || test ! -s conftest.err'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest$ac_exeext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_cv_lib_nsl_s_main=yes
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_cv_lib_nsl_s_main=no
14857 rm -f conftest.err conftest.$ac_objext \
14858 conftest$ac_exeext conftest.$ac_ext
14859 LIBS=$ac_check_lib_save_LIBS
14861 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14862 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14863 if test $ac_cv_lib_nsl_s_main = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_LIBNSL_S 1
14868 LIBS="-lnsl_s $LIBS"
14873 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14874 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14875 if test "${ac_cv_lib_nsl_main+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 ac_check_lib_save_LIBS=$LIBS
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14896 rm -f conftest.$ac_objext conftest$ac_exeext
14897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14898 (eval $ac_link) 2>conftest.er1
14900 grep -v '^ *+' conftest.er1 >conftest.err
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
14905 { ac_try='test -z "$ac_c_werror_flag"
14906 || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_cv_lib_nsl_main=yes
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_cv_lib_nsl_main=no
14925 rm -f conftest.err conftest.$ac_objext \
14926 conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14929 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14930 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14931 if test $ac_cv_lib_nsl_main = yes; then
14932 cat >>confdefs.h <<_ACEOF
14933 #define HAVE_LIBNSL 1
14941 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14942 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14943 if test "${ac_cv_lib_inet_socket+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 ac_check_lib_save_LIBS=$LIBS
14947 LIBS="-linet $LIBS"
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14955 /* Override any gcc2 internal prototype to avoid an error. */
14959 /* We use char because int might match the return type of a gcc2
14960 builtin and then its argument prototype would still apply. */
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14972 (eval $ac_link) 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag"
14980 || test ! -s conftest.err'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest$ac_exeext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_lib_inet_socket=yes
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_cv_lib_inet_socket=no
14999 rm -f conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_check_lib_save_LIBS
15003 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15004 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15005 if test $ac_cv_lib_inet_socket = yes; then
15006 cat >>confdefs.h <<_ACEOF
15007 #define HAVE_LIBINET 1
15010 LIBS="-linet $LIBS"
15015 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15016 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15017 if test "${ac_cv_lib_gen_main+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 ac_check_lib_save_LIBS=$LIBS
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>conftest.er1
15042 grep -v '^ *+' conftest.er1 >conftest.err
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag"
15048 || test ! -s conftest.err'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest$ac_exeext'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 ac_cv_lib_gen_main=yes
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 ac_cv_lib_gen_main=no
15067 rm -f conftest.err conftest.$ac_objext \
15068 conftest$ac_exeext conftest.$ac_ext
15069 LIBS=$ac_check_lib_save_LIBS
15071 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15072 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15073 if test $ac_cv_lib_gen_main = yes; then
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_LIBGEN 1
15086 echo "$as_me:$LINENO: checking for select" >&5
15087 echo $ECHO_N "checking for select... $ECHO_C" >&6
15088 if test "${ac_cv_func_select+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 cat >conftest.$ac_ext <<_ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 /* Define select to an innocuous variant, in case <limits.h> declares select.
15098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15099 #define select innocuous_select
15101 /* System header to define __stub macros and hopefully few prototypes,
15102 which can conflict with char select (); below.
15103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15104 <limits.h> exists even on freestanding compilers. */
15107 # include <limits.h>
15109 # include <assert.h>
15114 /* Override any gcc2 internal prototype to avoid an error. */
15119 /* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15122 /* The GNU C library defines this for functions which it implements
15123 to always fail with ENOSYS. Some functions are actually named
15124 something starting with __ and the normal name is an alias. */
15125 #if defined (__stub_select) || defined (__stub___select)
15128 char (*f) () = select;
15137 return f != select;
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_func_select=yes
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_cv_func_select=no
15171 rm -f conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15174 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15175 echo "${ECHO_T}$ac_cv_func_select" >&6
15176 if test $ac_cv_func_select = yes; then
15179 { { echo "$as_me:$LINENO: error: select() required." >&5
15180 echo "$as_me: error: select() required." >&2;}
15181 { (exit 1); exit 1; }; }
15185 if test "${ac_cv_header_winsock_h}" != yes; then
15188 for ac_header in sys/select.h sys/socket.h
15190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15192 echo "$as_me:$LINENO: checking for $ac_header" >&5
15193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15200 # Is the header compilable?
15201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 $ac_includes_default
15210 #include <$ac_header>
15212 rm -f conftest.$ac_objext
15213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15214 (eval $ac_compile) 2>conftest.er1
15216 grep -v '^ *+' conftest.er1 >conftest.err
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag"
15222 || test ! -s conftest.err'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_header_compiler=yes
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_header_compiler=no
15241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6
15245 # Is the header present?
15246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <$ac_header>
15256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } >/dev/null; then
15264 if test -s conftest.err; then
15265 ac_cpp_err=$ac_c_preproc_warn_flag
15266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15273 if test -z "$ac_cpp_err"; then
15274 ac_header_preproc=yes
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_preproc=no
15281 rm -f conftest.err conftest.$ac_ext
15282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15283 echo "${ECHO_T}$ac_header_preproc" >&6
15285 # So? What about this header?
15286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15292 ac_header_preproc=yes
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15309 ## ------------------------------------------ ##
15310 ## Report this to the AC_PACKAGE_NAME lists. ##
15311 ## ------------------------------------------ ##
15314 sed "s/^/$as_me: WARNING: /" >&2
15317 echo "$as_me:$LINENO: checking for $ac_header" >&5
15318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 eval "$as_ac_Header=\$ac_header_preproc"
15324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15329 cat >>confdefs.h <<_ACEOF
15330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15337 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15338 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15339 if test "${ac_cv_func_select_args+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15343 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15344 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15345 cat >conftest.$ac_ext <<_ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 $ac_includes_default
15352 #if HAVE_SYS_SELECT_H
15353 # include <sys/select.h>
15355 #if HAVE_SYS_SOCKET_H
15356 # include <sys/socket.h>
15362 extern int select ($ac_arg1,
15363 $ac_arg234, $ac_arg234, $ac_arg234,
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag"
15379 || test ! -s conftest.err'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try='test -s conftest.$ac_objext'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15401 # Provide a safe default value.
15402 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15405 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15406 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15407 ac_save_IFS=$IFS; IFS=','
15408 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15412 cat >>confdefs.h <<_ACEOF
15413 #define SELECT_TYPE_ARG1 $1
15417 cat >>confdefs.h <<_ACEOF
15418 #define SELECT_TYPE_ARG234 ($2)
15422 cat >>confdefs.h <<_ACEOF
15423 #define SELECT_TYPE_ARG5 ($3)
15432 for ac_func in poll
15434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15435 echo "$as_me:$LINENO: checking for $ac_func" >&5
15436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15437 if eval "test \"\${$as_ac_var+set}\" = set"; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 cat >conftest.$ac_ext <<_ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15448 #define $ac_func innocuous_$ac_func
15450 /* System header to define __stub macros and hopefully few prototypes,
15451 which can conflict with char $ac_func (); below.
15452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15453 <limits.h> exists even on freestanding compilers. */
15456 # include <limits.h>
15458 # include <assert.h>
15463 /* Override any gcc2 internal prototype to avoid an error. */
15468 /* We use char because int might match the return type of a gcc2
15469 builtin and then its argument prototype would still apply. */
15471 /* The GNU C library defines this for functions which it implements
15472 to always fail with ENOSYS. Some functions are actually named
15473 something starting with __ and the normal name is an alias. */
15474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15477 char (*f) () = $ac_func;
15486 return f != $ac_func;
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 eval "$as_ac_var=yes"
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 eval "$as_ac_var=no"
15520 rm -f conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15525 if test `eval echo '${'$as_ac_var'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 for ac_header in poll.h
15536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15538 echo "$as_me:$LINENO: checking for $ac_header" >&5
15539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15546 # Is the header compilable?
15547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 $ac_includes_default
15556 #include <$ac_header>
15558 rm -f conftest.$ac_objext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560 (eval $ac_compile) 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -z "$ac_c_werror_flag"
15568 || test ! -s conftest.err'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_header_compiler=yes
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 ac_header_compiler=no
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15589 echo "${ECHO_T}$ac_header_compiler" >&6
15591 # Is the header present?
15592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 #include <$ac_header>
15602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15605 grep -v '^ *+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } >/dev/null; then
15610 if test -s conftest.err; then
15611 ac_cpp_err=$ac_c_preproc_warn_flag
15612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15619 if test -z "$ac_cpp_err"; then
15620 ac_header_preproc=yes
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 ac_header_preproc=no
15627 rm -f conftest.err conftest.$ac_ext
15628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15629 echo "${ECHO_T}$ac_header_preproc" >&6
15631 # So? What about this header?
15632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15638 ac_header_preproc=yes
15641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15655 ## ------------------------------------------ ##
15656 ## Report this to the AC_PACKAGE_NAME lists. ##
15657 ## ------------------------------------------ ##
15660 sed "s/^/$as_me: WARNING: /" >&2
15663 echo "$as_me:$LINENO: checking for $ac_header" >&5
15664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15666 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 eval "$as_ac_Header=\$ac_header_preproc"
15670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15675 cat >>confdefs.h <<_ACEOF
15676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15685 for ac_header in sys/epoll.h
15687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15689 echo "$as_me:$LINENO: checking for $ac_header" >&5
15690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15697 # Is the header compilable?
15698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15700 cat >conftest.$ac_ext <<_ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 $ac_includes_default
15707 #include <$ac_header>
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711 (eval $ac_compile) 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag"
15719 || test ! -s conftest.err'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_header_compiler=yes
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 ac_header_compiler=no
15738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15740 echo "${ECHO_T}$ac_header_compiler" >&6
15742 # Is the header present?
15743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 #include <$ac_header>
15753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15756 grep -v '^ *+' conftest.er1 >conftest.err
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } >/dev/null; then
15761 if test -s conftest.err; then
15762 ac_cpp_err=$ac_c_preproc_warn_flag
15763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15770 if test -z "$ac_cpp_err"; then
15771 ac_header_preproc=yes
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 ac_header_preproc=no
15778 rm -f conftest.err conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15780 echo "${ECHO_T}$ac_header_preproc" >&6
15782 # So? What about this header?
15783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15789 ac_header_preproc=yes
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15806 ## ------------------------------------------ ##
15807 ## Report this to the AC_PACKAGE_NAME lists. ##
15808 ## ------------------------------------------ ##
15811 sed "s/^/$as_me: WARNING: /" >&2
15814 echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 eval "$as_ac_Header=\$ac_header_preproc"
15821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15826 cat >>confdefs.h <<_ACEOF
15827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15834 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15835 echo "$as_me:$LINENO: checking for epoll system call" >&5
15836 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15837 if test "$cross_compiling" = yes; then
15838 echo "$as_me:$LINENO: result: no" >&5
15839 echo "${ECHO_T}no" >&6
15841 cat >conftest.$ac_ext <<_ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 int main(int argc, char *argv)
15849 int epfd = epoll_create(256);
15850 exit (epfd == -1 ? 1 : 0);
15853 rm -f conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855 (eval $ac_link) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6
15867 cat >>confdefs.h <<\_ACEOF
15868 #define HAVE_EPOLL 1
15872 echo "$as_me: program exited with status $ac_status" >&5
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15876 ( exit $ac_status )
15877 echo "$as_me:$LINENO: result: no" >&5
15878 echo "${ECHO_T}no" >&6
15880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15885 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15886 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15887 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 cat >conftest.$ac_ext <<_ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15899 #include <sys/types.h>
15902 #include <stdlib.h>
15907 char *c = (char *) *sys_errlist
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914 (eval $ac_compile) 2>conftest.er1
15916 grep -v '^ *+' conftest.er1 >conftest.err
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag"
15922 || test ! -s conftest.err'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest.$ac_objext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ol_cv_dcl_sys_errlist=yes
15935 ol_cv_have_sys_errlist=yes
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ol_cv_dcl_sys_errlist=no
15942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15944 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15945 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15947 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15948 if test $ol_cv_dcl_sys_errlist = no ; then
15950 cat >>confdefs.h <<\_ACEOF
15951 #define DECL_SYS_ERRLIST 1
15955 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15956 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15957 if test "${ol_cv_have_sys_errlist+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 cat >conftest.$ac_ext <<_ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15971 char *c = (char *) *sys_errlist
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15978 (eval $ac_link) 2>conftest.er1
15980 grep -v '^ *+' conftest.er1 >conftest.err
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -z "$ac_c_werror_flag"
15986 || test ! -s conftest.err'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ol_cv_have_sys_errlist=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ol_cv_have_sys_errlist=no
16005 rm -f conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16008 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16009 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16011 if test $ol_cv_have_sys_errlist = yes ; then
16013 cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_SYS_ERRLIST 1
16020 for ac_func in strerror strerror_r
16022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16023 echo "$as_me:$LINENO: checking for $ac_func" >&5
16024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16025 if eval "test \"\${$as_ac_var+set}\" = set"; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16036 #define $ac_func innocuous_$ac_func
16038 /* System header to define __stub macros and hopefully few prototypes,
16039 which can conflict with char $ac_func (); below.
16040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16041 <limits.h> exists even on freestanding compilers. */
16044 # include <limits.h>
16046 # include <assert.h>
16051 /* Override any gcc2 internal prototype to avoid an error. */
16056 /* We use char because int might match the return type of a gcc2
16057 builtin and then its argument prototype would still apply. */
16059 /* The GNU C library defines this for functions which it implements
16060 to always fail with ENOSYS. Some functions are actually named
16061 something starting with __ and the normal name is an alias. */
16062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16065 char (*f) () = $ac_func;
16074 return f != $ac_func;
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag"
16089 || test ! -s conftest.err'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; } &&
16095 { ac_try='test -s conftest$ac_exeext'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 eval "$as_ac_var=yes"
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 eval "$as_ac_var=no"
16108 rm -f conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16113 if test `eval echo '${'$as_ac_var'}'` = yes; then
16114 cat >>confdefs.h <<_ACEOF
16115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16121 ol_cv_func_strerror_r=no
16122 if test "${ac_cv_func_strerror_r}" = yes ; then
16123 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16124 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16125 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 cat >conftest.$ac_ext <<_ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16135 #include <string.h>
16137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16138 $EGREP "strerror_r" >/dev/null 2>&1; then
16139 ol_decl_strerror_r=yes
16141 ol_decl_strerror_r=no
16145 if test $ol_decl_strerror_r = yes ; then
16146 cat >conftest.$ac_ext <<_ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16152 #include <string.h>
16156 /* from autoconf 2.59 */
16158 char x = *strerror_r (0, buf, sizeof buf);
16159 char *p = strerror_r (0, buf, sizeof buf);
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag"
16175 || test ! -s conftest.err'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ol_cv_nonposix_strerror_r=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ol_cv_nonposix_strerror_r=no
16194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16196 if test "$cross_compiling" = yes; then
16197 ol_cv_nonposix_strerror=no
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16209 strerror_r( 1, buf, sizeof buf );
16210 exit( buf[0] == 0 );
16214 rm -f conftest$ac_exeext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16216 (eval $ac_link) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ol_cv_nonposix_strerror_r=yes
16227 echo "$as_me: program exited with status $ac_status" >&5
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ( exit $ac_status )
16232 ol_cv_nonposix_strerror=no
16234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16239 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16240 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16241 if test $ol_cv_nonposix_strerror_r = yes ; then
16243 cat >>confdefs.h <<\_ACEOF
16244 #define HAVE_NONPOSIX_STRERROR_R 1
16249 elif test "${ac_cv_func_strerror}" = no ; then
16250 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16251 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16252 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 cat >conftest.$ac_ext <<_ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16264 #include <sys/types.h>
16267 #include <stdlib.h>
16272 char *c = (char *) *sys_errlist
16277 rm -f conftest.$ac_objext
16278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16279 (eval $ac_compile) 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } &&
16286 { ac_try='test -z "$ac_c_werror_flag"
16287 || test ! -s conftest.err'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } &&
16293 { ac_try='test -s conftest.$ac_objext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 ol_cv_dcl_sys_errlist=yes
16300 ol_cv_have_sys_errlist=yes
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ol_cv_dcl_sys_errlist=no
16307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16309 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16310 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16312 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16313 if test $ol_cv_dcl_sys_errlist = no ; then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define DECL_SYS_ERRLIST 1
16320 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16321 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16322 if test "${ol_cv_have_sys_errlist+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 cat >conftest.$ac_ext <<_ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16336 char *c = (char *) *sys_errlist
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16343 (eval $ac_link) 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest$ac_exeext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ol_cv_have_sys_errlist=yes
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 ol_cv_have_sys_errlist=no
16370 rm -f conftest.err conftest.$ac_objext \
16371 conftest$ac_exeext conftest.$ac_ext
16373 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16374 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16376 if test $ol_cv_have_sys_errlist = yes ; then
16378 cat >>confdefs.h <<\_ACEOF
16379 #define HAVE_SYS_ERRLIST 1
16388 for ac_header in regex.h
16390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16392 echo "$as_me:$LINENO: checking for $ac_header" >&5
16393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16400 # Is the header compilable?
16401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 $ac_includes_default
16410 #include <$ac_header>
16412 rm -f conftest.$ac_objext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414 (eval $ac_compile) 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag"
16422 || test ! -s conftest.err'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_header_compiler=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_compiler=no
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6
16445 # Is the header present?
16446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454 #include <$ac_header>
16456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16459 grep -v '^ *+' conftest.er1 >conftest.err
16461 cat conftest.err >&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } >/dev/null; then
16464 if test -s conftest.err; then
16465 ac_cpp_err=$ac_c_preproc_warn_flag
16466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16473 if test -z "$ac_cpp_err"; then
16474 ac_header_preproc=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_header_preproc=no
16481 rm -f conftest.err conftest.$ac_ext
16482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16483 echo "${ECHO_T}$ac_header_preproc" >&6
16485 # So? What about this header?
16486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16492 ac_header_preproc=yes
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16509 ## ------------------------------------------ ##
16510 ## Report this to the AC_PACKAGE_NAME lists. ##
16511 ## ------------------------------------------ ##
16514 sed "s/^/$as_me: WARNING: /" >&2
16517 echo "$as_me:$LINENO: checking for $ac_header" >&5
16518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 eval "$as_ac_Header=\$ac_header_preproc"
16524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16529 cat >>confdefs.h <<_ACEOF
16530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16537 if test "$ac_cv_header_regex_h" != yes ; then
16538 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16539 echo "$as_me: error: POSIX regex.h required." >&2;}
16540 { (exit 1); exit 1; }; }
16542 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16543 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16544 if test "${ac_cv_search_regfree+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 ac_func_search_save_LIBS=$LIBS
16548 ac_cv_search_regfree=no
16549 cat >conftest.$ac_ext <<_ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16556 /* Override any gcc2 internal prototype to avoid an error. */
16560 /* We use char because int might match the return type of a gcc2
16561 builtin and then its argument prototype would still apply. */
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag"
16581 || test ! -s conftest.err'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest$ac_exeext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_search_regfree="none required"
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16599 rm -f conftest.err conftest.$ac_objext \
16600 conftest$ac_exeext conftest.$ac_ext
16601 if test "$ac_cv_search_regfree" = no; then
16602 for ac_lib in regex gnuregex; do
16603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16611 /* Override any gcc2 internal prototype to avoid an error. */
16615 /* We use char because int might match the return type of a gcc2
16616 builtin and then its argument prototype would still apply. */
16626 rm -f conftest.$ac_objext conftest$ac_exeext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16628 (eval $ac_link) 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest$ac_exeext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_search_regfree="-l$ac_lib"
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16655 rm -f conftest.err conftest.$ac_objext \
16656 conftest$ac_exeext conftest.$ac_ext
16659 LIBS=$ac_func_search_save_LIBS
16661 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16662 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16663 if test "$ac_cv_search_regfree" != no; then
16664 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16667 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16668 echo "$as_me: error: POSIX regex required." >&2;}
16669 { (exit 1); exit 1; }; }
16674 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16675 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16676 if test "${ol_cv_c_posix_regex+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16680 if test "$cross_compiling" = yes; then
16681 ol_cv_c_posix_regex=cross
16683 cat >conftest.$ac_ext <<_ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16690 #include <sys/types.h>
16692 static char *pattern, *string;
16700 if(regcomp(&re, pattern, 0)) {
16704 string = "ALL MATCH";
16706 rc = regexec(&re, string, 0, (void*)0, 0);
16713 rm -f conftest$ac_exeext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16715 (eval $ac_link) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ol_cv_c_posix_regex=yes
16726 echo "$as_me: program exited with status $ac_status" >&5
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ( exit $ac_status )
16731 ol_cv_c_posix_regex=no
16733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16736 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16737 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16739 if test "$ol_cv_c_posix_regex" = no ; then
16740 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16741 echo "$as_me: error: broken POSIX regex!" >&2;}
16742 { (exit 1); exit 1; }; }
16748 for ac_header in sys/uuid.h
16750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752 echo "$as_me:$LINENO: checking for $ac_header" >&5
16753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16760 # Is the header compilable?
16761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16763 cat >conftest.$ac_ext <<_ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 $ac_includes_default
16770 #include <$ac_header>
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774 (eval $ac_compile) 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_c_werror_flag"
16782 || test ! -s conftest.err'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 ac_header_compiler=yes
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 ac_header_compiler=no
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16803 echo "${ECHO_T}$ac_header_compiler" >&6
16805 # Is the header present?
16806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 #include <$ac_header>
16816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } >/dev/null; then
16824 if test -s conftest.err; then
16825 ac_cpp_err=$ac_c_preproc_warn_flag
16826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16833 if test -z "$ac_cpp_err"; then
16834 ac_header_preproc=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_header_preproc=no
16841 rm -f conftest.err conftest.$ac_ext
16842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16843 echo "${ECHO_T}$ac_header_preproc" >&6
16845 # So? What about this header?
16846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16852 ac_header_preproc=yes
16855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16869 ## ------------------------------------------ ##
16870 ## Report this to the AC_PACKAGE_NAME lists. ##
16871 ## ------------------------------------------ ##
16874 sed "s/^/$as_me: WARNING: /" >&2
16877 echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 eval "$as_ac_Header=\$ac_header_preproc"
16884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16897 if test $ac_cv_header_sys_uuid_h = yes ; then
16899 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16900 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16901 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 ac_func_search_save_LIBS=$LIBS
16905 ac_cv_search_uuid_to_str=no
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16913 /* Override any gcc2 internal prototype to avoid an error. */
16917 /* We use char because int might match the return type of a gcc2
16918 builtin and then its argument prototype would still apply. */
16919 char uuid_to_str ();
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930 (eval $ac_link) 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -z "$ac_c_werror_flag"
16938 || test ! -s conftest.err'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest$ac_exeext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_search_uuid_to_str="none required"
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16956 rm -f conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16958 if test "$ac_cv_search_uuid_to_str" = no; then
16959 for ac_lib in uuid; do
16960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16968 /* Override any gcc2 internal prototype to avoid an error. */
16972 /* We use char because int might match the return type of a gcc2
16973 builtin and then its argument prototype would still apply. */
16974 char uuid_to_str ();
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try='test -z "$ac_c_werror_flag"
16993 || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_search_uuid_to_str="-l$ac_lib"
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17012 rm -f conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17016 LIBS=$ac_func_search_save_LIBS
17018 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17019 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17020 if test "$ac_cv_search_uuid_to_str" != no; then
17021 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17029 if test have_uuid = yes ; then
17031 cat >>confdefs.h <<\_ACEOF
17032 #define HAVE_UUID_TO_STR 1
17036 test "$ac_cv_search_uuid_to_str" = "none required" || \
17037 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17041 if test $have_uuid = no ; then
17042 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17043 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17045 LIBS="$LIBS -lrpcrt4"
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17053 int __stdcall UuidCreate(void *);
17054 int __stdcall UuidToStringA(void *,void **);
17061 UuidToStringA(0,0);
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17069 (eval $ac_link) 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag"
17077 || test ! -s conftest.err'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest$ac_exeext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17096 rm -f conftest.err conftest.$ac_objext \
17097 conftest$ac_exeext conftest.$ac_ext
17098 if test $need_rpcrt = yes; then
17099 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17102 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17103 echo "${ECHO_T}$need_rpcrt" >&6
17106 ol_cv_lib_resolver=no
17107 if test $ol_cv_lib_resolver = no ; then
17108 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17109 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17110 if test "${ol_cv_resolver_none+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 LIBS="$ol_RESOLVER_LIB $LIBS"
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17125 #ifdef HAVE_SYS_TYPES_H
17126 # include <sys/types.h>
17128 #include <netinet/in.h>
17129 #ifdef HAVE_ARPA_NAMESER_H
17130 # include <arpa/nameser.h>
17132 #ifdef HAVE_RESOLV_H
17133 # include <resolv.h>
17141 char *request = NULL;
17142 unsigned char reply[64*1024];
17143 unsigned char host[64*1024];
17147 /* Bind 8/9 interface */
17148 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17150 /* Bind 4 interface */
17154 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17158 /* Bind 8/9 interface */
17160 #elif defined(HFIXEDSZ)
17161 /* Bind 4 interface w/ HFIXEDSZ */
17164 /* Bind 4 interface w/o HFIXEDSZ */
17165 p += sizeof(HEADER);
17167 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175 (eval $ac_link) 2>conftest.er1
17177 grep -v '^ *+' conftest.er1 >conftest.err
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
17182 { ac_try='test -z "$ac_c_werror_flag"
17183 || test ! -s conftest.err'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest$ac_exeext'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ol_cv_resolver_none=yes
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ol_cv_resolver_none=no
17202 rm -f conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17208 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17209 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17211 if test $ol_cv_resolver_none = yes ; then
17212 ol_cv_lib_resolver=yes
17216 if test $ol_cv_lib_resolver = no ; then
17217 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17218 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17219 if test "${ol_cv_resolver_resolv+set}" = set; then
17220 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 ol_RESOLVER_LIB=-lresolv
17225 LIBS="$ol_RESOLVER_LIB $LIBS"
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17234 #ifdef HAVE_SYS_TYPES_H
17235 # include <sys/types.h>
17237 #include <netinet/in.h>
17238 #ifdef HAVE_ARPA_NAMESER_H
17239 # include <arpa/nameser.h>
17241 #ifdef HAVE_RESOLV_H
17242 # include <resolv.h>
17250 char *request = NULL;
17251 unsigned char reply[64*1024];
17252 unsigned char host[64*1024];
17256 /* Bind 8/9 interface */
17257 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17259 /* Bind 4 interface */
17263 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17267 /* Bind 8/9 interface */
17269 #elif defined(HFIXEDSZ)
17270 /* Bind 4 interface w/ HFIXEDSZ */
17273 /* Bind 4 interface w/o HFIXEDSZ */
17274 p += sizeof(HEADER);
17276 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17284 (eval $ac_link) 2>conftest.er1
17286 grep -v '^ *+' conftest.er1 >conftest.err
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } &&
17291 { ac_try='test -z "$ac_c_werror_flag"
17292 || test ! -s conftest.err'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; } &&
17298 { ac_try='test -s conftest$ac_exeext'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ol_cv_resolver_resolv=yes
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ol_cv_resolver_resolv=no
17311 rm -f conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17317 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17318 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17320 if test $ol_cv_resolver_resolv = yes ; then
17321 ol_cv_lib_resolver=-lresolv
17325 if test $ol_cv_lib_resolver = no ; then
17326 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17327 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17328 if test "${ol_cv_resolver_bind+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 ol_RESOLVER_LIB=-lbind
17334 LIBS="$ol_RESOLVER_LIB $LIBS"
17336 cat >conftest.$ac_ext <<_ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17343 #ifdef HAVE_SYS_TYPES_H
17344 # include <sys/types.h>
17346 #include <netinet/in.h>
17347 #ifdef HAVE_ARPA_NAMESER_H
17348 # include <arpa/nameser.h>
17350 #ifdef HAVE_RESOLV_H
17351 # include <resolv.h>
17359 char *request = NULL;
17360 unsigned char reply[64*1024];
17361 unsigned char host[64*1024];
17365 /* Bind 8/9 interface */
17366 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17368 /* Bind 4 interface */
17372 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17376 /* Bind 8/9 interface */
17378 #elif defined(HFIXEDSZ)
17379 /* Bind 4 interface w/ HFIXEDSZ */
17382 /* Bind 4 interface w/o HFIXEDSZ */
17383 p += sizeof(HEADER);
17385 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>conftest.er1
17395 grep -v '^ *+' conftest.er1 >conftest.err
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ol_cv_resolver_bind=yes
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ol_cv_resolver_bind=no
17420 rm -f conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
17426 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17427 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17429 if test $ol_cv_resolver_bind = yes ; then
17430 ol_cv_lib_resolver=-lbind
17437 if test "$ol_cv_lib_resolver" != no ; then
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_RES_QUERY 1
17444 if test "$ol_enable_dnssrv" != no ; then
17448 if test "$ol_cv_lib_resolver" != yes ; then
17449 LIBS="$ol_cv_lib_resolver $LIBS"
17453 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17454 if test "$ol_link_dnssrv" = no ; then
17455 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17456 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17457 { (exit 1); exit 1; }; }
17460 ol_enable_dnssrv=no
17464 for ac_func in hstrerror
17466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17467 echo "$as_me:$LINENO: checking for $ac_func" >&5
17468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17469 if eval "test \"\${$as_ac_var+set}\" = set"; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define $ac_func innocuous_$ac_func
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char $ac_func (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17488 # include <limits.h>
17490 # include <assert.h>
17495 /* Override any gcc2 internal prototype to avoid an error. */
17500 /* We use char because int might match the return type of a gcc2
17501 builtin and then its argument prototype would still apply. */
17503 /* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17509 char (*f) () = $ac_func;
17518 return f != $ac_func;
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525 (eval $ac_link) 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 eval "$as_ac_var=yes"
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 eval "$as_ac_var=no"
17552 rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17557 if test `eval echo '${'$as_ac_var'}'` = yes; then
17558 cat >>confdefs.h <<_ACEOF
17559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17570 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573 echo "$as_me:$LINENO: checking for $ac_func" >&5
17574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17575 if eval "test \"\${$as_ac_var+set}\" = set"; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 cat >conftest.$ac_ext <<_ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17586 #define $ac_func innocuous_$ac_func
17588 /* System header to define __stub macros and hopefully few prototypes,
17589 which can conflict with char $ac_func (); below.
17590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591 <limits.h> exists even on freestanding compilers. */
17594 # include <limits.h>
17596 # include <assert.h>
17601 /* Override any gcc2 internal prototype to avoid an error. */
17606 /* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17609 /* The GNU C library defines this for functions which it implements
17610 to always fail with ENOSYS. Some functions are actually named
17611 something starting with __ and the normal name is an alias. */
17612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17615 char (*f) () = $ac_func;
17624 return f != $ac_func;
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631 (eval $ac_link) 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 eval "$as_ac_var=yes"
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 eval "$as_ac_var=no"
17658 rm -f conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17663 if test `eval echo '${'$as_ac_var'}'` = yes; then
17664 cat >>confdefs.h <<_ACEOF
17665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17673 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17674 if test $ol_enable_ipv6 = yes ; then
17675 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17676 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17677 { (exit 1); exit 1; }; }
17679 elif test $ol_enable_ipv6 != no ; then
17680 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17681 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17682 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17693 # include <netinet/in.h>
17694 # ifdef INET6_ADDRSTRLEN
17695 __has_inet6_addrstrlen__;
17699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17700 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17701 ol_cv_inet6_addrstrlen=yes
17703 ol_cv_inet6_addrstrlen=no
17708 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17709 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17712 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17713 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17714 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 cat >conftest.$ac_ext <<_ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17725 #include <sys/types.h>
17726 #include <sys/socket.h>
17732 struct sockaddr_storage ss;
17738 rm -f conftest.$ac_objext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17740 (eval $ac_compile) 2>conftest.er1
17742 grep -v '^ *+' conftest.er1 >conftest.err
17744 cat conftest.err >&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try='test -z "$ac_c_werror_flag"
17748 || test ! -s conftest.err'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 ol_cv_struct_sockaddr_storage=yes
17762 echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17765 ol_cv_struct_sockaddr_storage=no
17767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17769 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17770 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17772 if test $ol_cv_inet6_addrstrlen = yes &&
17773 test $ol_cv_struct_sockaddr_storage = yes ; then
17775 elif test $ol_enable_ipv6 = yes &&
17776 test $ol_cv_inet6_addrstrlen = no ; then
17777 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17778 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17779 { (exit 1); exit 1; }; }
17780 elif test $ol_enable_ipv6 = yes &&
17781 test $ol_cv_struct_sockaddr_storage = no ; then
17782 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17783 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17784 { (exit 1); exit 1; }; }
17788 if test $ol_enable_local != no ; then
17790 for ac_header in sys/un.h
17792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17794 echo "$as_me:$LINENO: checking for $ac_header" >&5
17795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17802 # Is the header compilable?
17803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17805 cat >conftest.$ac_ext <<_ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17812 #include <$ac_header>
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag"
17824 || test ! -s conftest.err'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_header_compiler=yes
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_header_compiler=no
17843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17845 echo "${ECHO_T}$ac_header_compiler" >&6
17847 # Is the header present?
17848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include <$ac_header>
17858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17861 grep -v '^ *+' conftest.er1 >conftest.err
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } >/dev/null; then
17866 if test -s conftest.err; then
17867 ac_cpp_err=$ac_c_preproc_warn_flag
17868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17875 if test -z "$ac_cpp_err"; then
17876 ac_header_preproc=yes
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_header_preproc=no
17883 rm -f conftest.err conftest.$ac_ext
17884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17885 echo "${ECHO_T}$ac_header_preproc" >&6
17887 # So? What about this header?
17888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17894 ac_header_preproc=yes
17897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17911 ## ------------------------------------------ ##
17912 ## Report this to the AC_PACKAGE_NAME lists. ##
17913 ## ------------------------------------------ ##
17916 sed "s/^/$as_me: WARNING: /" >&2
17919 echo "$as_me:$LINENO: checking for $ac_header" >&5
17920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 eval "$as_ac_Header=\$ac_header_preproc"
17926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17931 cat >>confdefs.h <<_ACEOF
17932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17940 if test $ol_enable_local = auto ; then
17941 ol_enable_local=$ac_cv_header_sys_un_h
17942 elif test $ac_cv_header_sys_un_h = no ; then
17943 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17944 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17945 { (exit 1); exit 1; }; }
17953 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17956 for ac_header in krb5.h
17958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17960 echo "$as_me:$LINENO: checking for $ac_header" >&5
17961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17968 # Is the header compilable?
17969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 $ac_includes_default
17978 #include <$ac_header>
17980 rm -f conftest.$ac_objext
17981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17982 (eval $ac_compile) 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag"
17990 || test ! -s conftest.err'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest.$ac_objext'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 ac_header_compiler=yes
18004 echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18007 ac_header_compiler=no
18009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18011 echo "${ECHO_T}$ac_header_compiler" >&6
18013 # Is the header present?
18014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18022 #include <$ac_header>
18024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18027 grep -v '^ *+' conftest.er1 >conftest.err
18029 cat conftest.err >&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } >/dev/null; then
18032 if test -s conftest.err; then
18033 ac_cpp_err=$ac_c_preproc_warn_flag
18034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18041 if test -z "$ac_cpp_err"; then
18042 ac_header_preproc=yes
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 ac_header_preproc=no
18049 rm -f conftest.err conftest.$ac_ext
18050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18051 echo "${ECHO_T}$ac_header_preproc" >&6
18053 # So? What about this header?
18054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18060 ac_header_preproc=yes
18063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18077 ## ------------------------------------------ ##
18078 ## Report this to the AC_PACKAGE_NAME lists. ##
18079 ## ------------------------------------------ ##
18082 sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
18092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18106 if test $ac_cv_header_krb5_h = yes ; then
18108 for ac_header in heim_err.h
18110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18112 echo "$as_me:$LINENO: checking for $ac_header" >&5
18113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18120 # Is the header compilable?
18121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 $ac_includes_default
18130 #include <$ac_header>
18132 rm -f conftest.$ac_objext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18134 (eval $ac_compile) 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -z "$ac_c_werror_flag"
18142 || test ! -s conftest.err'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; } &&
18148 { ac_try='test -s conftest.$ac_objext'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 ac_header_compiler=yes
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 ac_header_compiler=no
18161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18163 echo "${ECHO_T}$ac_header_compiler" >&6
18165 # Is the header present?
18166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 #include <$ac_header>
18176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } >/dev/null; then
18184 if test -s conftest.err; then
18185 ac_cpp_err=$ac_c_preproc_warn_flag
18186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18193 if test -z "$ac_cpp_err"; then
18194 ac_header_preproc=yes
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_header_preproc=no
18201 rm -f conftest.err conftest.$ac_ext
18202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18203 echo "${ECHO_T}$ac_header_preproc" >&6
18205 # So? What about this header?
18206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18212 ac_header_preproc=yes
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18229 ## ------------------------------------------ ##
18230 ## Report this to the AC_PACKAGE_NAME lists. ##
18231 ## ------------------------------------------ ##
18234 sed "s/^/$as_me: WARNING: /" >&2
18237 echo "$as_me:$LINENO: checking for $ac_header" >&5
18238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 eval "$as_ac_Header=\$ac_header_preproc"
18244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18249 cat >>confdefs.h <<_ACEOF
18250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18257 if test $ac_cv_header_heim_err_h = yes ; then
18263 if test $krb5_impl = mit; then
18264 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18265 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18266 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 ac_check_lib_save_LIBS=$LIBS
18270 LIBS="-lk5crypto $LIBS"
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18289 (eval $ac_link) 2>conftest.er1
18291 grep -v '^ *+' conftest.er1 >conftest.err
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
18296 { ac_try='test -z "$ac_c_werror_flag"
18297 || test ! -s conftest.err'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest$ac_exeext'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_k5crypto_main=yes
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_cv_lib_k5crypto_main=no
18316 rm -f conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
18318 LIBS=$ac_check_lib_save_LIBS
18320 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18321 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18322 if test $ac_cv_lib_k5crypto_main = yes; then
18323 krb5crypto=k5crypto
18329 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18330 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18331 if test "${ac_cv_lib_krb5_main+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18336 cat >conftest.$ac_ext <<_ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest$ac_exeext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_lib_krb5_main=yes
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 ac_cv_lib_krb5_main=no
18381 rm -f conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18383 LIBS=$ac_check_lib_save_LIBS
18385 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18386 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18387 if test $ac_cv_lib_krb5_main = yes; then
18389 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18395 elif test $krb5_impl = heimdal; then
18396 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18397 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18398 if test "${ac_cv_lib_des_main+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 ac_check_lib_save_LIBS=$LIBS
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag"
18429 || test ! -s conftest.err'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_cv_lib_des_main=yes
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_cv_lib_des_main=no
18448 rm -f conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18452 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18453 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18454 if test $ac_cv_lib_des_main = yes; then
18461 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18462 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18463 if test "${ac_cv_lib_krb5_main+set}" = set; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 ac_check_lib_save_LIBS=$LIBS
18467 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18484 rm -f conftest.$ac_objext conftest$ac_exeext
18485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18486 (eval $ac_link) 2>conftest.er1
18488 grep -v '^ *+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } &&
18493 { ac_try='test -z "$ac_c_werror_flag"
18494 || test ! -s conftest.err'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } &&
18500 { ac_try='test -s conftest$ac_exeext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_lib_krb5_main=yes
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_cv_lib_krb5_main=no
18513 rm -f conftest.err conftest.$ac_objext \
18514 conftest$ac_exeext conftest.$ac_ext
18515 LIBS=$ac_check_lib_save_LIBS
18517 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18518 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18519 if test $ac_cv_lib_krb5_main = yes; then
18521 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18528 cat >>confdefs.h <<\_ACEOF
18529 #define HAVE_HEIMDAL_KERBEROS 1
18535 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18536 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18539 if test $have_krb5 = yes ; then
18543 cat >>confdefs.h <<\_ACEOF
18544 #define HAVE_KRB5 1
18548 if test $ol_with_kerberos = k5only ; then
18549 ol_with_kerberos=found
18552 elif test $ol_with_kerberos != auto ; then
18553 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18554 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18555 { (exit 1); exit 1; }; }
18562 if test $ol_link_krb5 = yes &&
18563 { test $ol_with_kerberos = yes ||
18564 test $ol_with_kerberos = auto ||
18565 test $ol_with_kerberos = k425; }; then
18569 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18573 echo "$as_me:$LINENO: checking for $ac_header" >&5
18574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18581 # Is the header compilable?
18582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18584 cat >conftest.$ac_ext <<_ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 $ac_includes_default
18591 #include <$ac_header>
18593 rm -f conftest.$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595 (eval $ac_compile) 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag"
18603 || test ! -s conftest.err'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_header_compiler=yes
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ac_header_compiler=no
18622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18624 echo "${ECHO_T}$ac_header_compiler" >&6
18626 # Is the header present?
18627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 #include <$ac_header>
18637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18640 grep -v '^ *+' conftest.er1 >conftest.err
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } >/dev/null; then
18645 if test -s conftest.err; then
18646 ac_cpp_err=$ac_c_preproc_warn_flag
18647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18654 if test -z "$ac_cpp_err"; then
18655 ac_header_preproc=yes
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18660 ac_header_preproc=no
18662 rm -f conftest.err conftest.$ac_ext
18663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18664 echo "${ECHO_T}$ac_header_preproc" >&6
18666 # So? What about this header?
18667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18673 ac_header_preproc=yes
18676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18690 ## ------------------------------------------ ##
18691 ## Report this to the AC_PACKAGE_NAME lists. ##
18692 ## ------------------------------------------ ##
18695 sed "s/^/$as_me: WARNING: /" >&2
18698 echo "$as_me:$LINENO: checking for $ac_header" >&5
18699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 eval "$as_ac_Header=\$ac_header_preproc"
18705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18710 cat >>confdefs.h <<_ACEOF
18711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18719 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18720 if test $krb5_impl = mit; then
18721 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18722 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18723 if test "${ac_cv_lib_krb4_main+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 ac_check_lib_save_LIBS=$LIBS
18727 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18728 cat >conftest.$ac_ext <<_ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18744 rm -f conftest.$ac_objext conftest$ac_exeext
18745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18746 (eval $ac_link) 2>conftest.er1
18748 grep -v '^ *+' conftest.er1 >conftest.err
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
18753 { ac_try='test -z "$ac_c_werror_flag"
18754 || test ! -s conftest.err'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest$ac_exeext'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_cv_lib_krb4_main=yes
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_cv_lib_krb4_main=no
18773 rm -f conftest.err conftest.$ac_objext \
18774 conftest$ac_exeext conftest.$ac_ext
18775 LIBS=$ac_check_lib_save_LIBS
18777 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18778 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18779 if test $ac_cv_lib_krb4_main = yes; then
18781 KRB4_LIBS="-lkrb4 -ldes425"
18787 elif test $krb5_impl = heimdal; then
18788 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18789 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18790 if test "${ac_cv_lib_krb4_main+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18795 cat >conftest.$ac_ext <<_ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>conftest.er1
18815 grep -v '^ *+' conftest.er1 >conftest.err
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag"
18821 || test ! -s conftest.err'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest$ac_exeext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_lib_krb4_main=yes
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ac_cv_lib_krb4_main=no
18840 rm -f conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842 LIBS=$ac_check_lib_save_LIBS
18844 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18845 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18846 if test $ac_cv_lib_krb4_main = yes; then
18856 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18857 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18860 if test $have_k425 = yes ; then
18861 ol_with_kerberos=found
18865 cat >>confdefs.h <<\_ACEOF
18866 #define HAVE_KRB425 1
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_KRB4 1
18875 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18876 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18877 if test "${ol_cv_var_des_debug+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18883 cat >conftest.$ac_ext <<_ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18890 #include <kerberosIV/krb.h>
18891 #include <kerberosIV/des.h>
18892 extern int des_debug;
18904 rm -f conftest.$ac_objext conftest$ac_exeext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18906 (eval $ac_link) 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest$ac_exeext'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 ol_cv_var_des_debug=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ol_cv_var_des_debug=no
18933 rm -f conftest.err conftest.$ac_objext \
18934 conftest$ac_exeext conftest.$ac_ext
18938 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18939 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18941 if test $ol_cv_var_des_debug = yes ; then
18943 cat >>confdefs.h <<\_ACEOF
18944 #define HAVE_DES_DEBUG 1
18954 if test $ol_link_krb5 = yes ; then
18955 ol_with_kerberos=found
18958 case $ol_with_kerberos in yes | auto | k4 | kth)
18963 for ac_header in krb.h des.h krb-archaeology.h
18965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18967 echo "$as_me:$LINENO: checking for $ac_header" >&5
18968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18975 # Is the header compilable?
18976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18978 cat >conftest.$ac_ext <<_ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 $ac_includes_default
18985 #include <$ac_header>
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989 (eval $ac_compile) 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest.$ac_objext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009 ac_header_compiler=yes
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 ac_header_compiler=no
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19018 echo "${ECHO_T}$ac_header_compiler" >&6
19020 # Is the header present?
19021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #include <$ac_header>
19031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19034 grep -v '^ *+' conftest.er1 >conftest.err
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } >/dev/null; then
19039 if test -s conftest.err; then
19040 ac_cpp_err=$ac_c_preproc_warn_flag
19041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19048 if test -z "$ac_cpp_err"; then
19049 ac_header_preproc=yes
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 ac_header_preproc=no
19056 rm -f conftest.err conftest.$ac_ext
19057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19058 echo "${ECHO_T}$ac_header_preproc" >&6
19060 # So? What about this header?
19061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19067 ac_header_preproc=yes
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19084 ## ------------------------------------------ ##
19085 ## Report this to the AC_PACKAGE_NAME lists. ##
19086 ## ------------------------------------------ ##
19089 sed "s/^/$as_me: WARNING: /" >&2
19092 echo "$as_me:$LINENO: checking for $ac_header" >&5
19093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 eval "$as_ac_Header=\$ac_header_preproc"
19099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19104 cat >>confdefs.h <<_ACEOF
19105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19113 if test $ac_cv_header_krb_h = yes ; then
19114 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19115 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19116 if test "${ac_cv_lib_krb_main+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 ac_check_lib_save_LIBS=$LIBS
19120 LIBS="-lkrb -ldes $LIBS"
19121 cat >conftest.$ac_ext <<_ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>conftest.er1
19141 grep -v '^ *+' conftest.er1 >conftest.err
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest$ac_exeext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 ac_cv_lib_krb_main=yes
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19164 ac_cv_lib_krb_main=no
19166 rm -f conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19170 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19171 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19172 if test $ac_cv_lib_krb_main = yes; then
19179 if test $have_k4 = yes ; then
19180 ol_with_kerberos=found
19184 cat >>confdefs.h <<\_ACEOF
19185 #define HAVE_KRB4 1
19189 KRB4_LIBS="-lkrb -ldes"
19191 if test $ac_cv_header_krb_archaeology_h = yes ; then
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_KTH_KERBEROS 1
19203 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19206 elif test $ol_enable_kbind = yes ; then
19207 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19208 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19209 { (exit 1); exit 1; }; }
19212 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE_KERBEROS 1
19219 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19220 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19221 echo "$as_me: error: Kerberos detection failed" >&2;}
19222 { (exit 1); exit 1; }; }
19227 if test $ol_with_tls != no ; then
19229 for ac_header in openssl/ssl.h
19231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19233 echo "$as_me:$LINENO: checking for $ac_header" >&5
19234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19241 # Is the header compilable?
19242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 $ac_includes_default
19251 #include <$ac_header>
19253 rm -f conftest.$ac_objext
19254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19255 (eval $ac_compile) 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } &&
19262 { ac_try='test -z "$ac_c_werror_flag"
19263 || test ! -s conftest.err'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; } &&
19269 { ac_try='test -s conftest.$ac_objext'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275 ac_header_compiler=yes
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 ac_header_compiler=no
19282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19284 echo "${ECHO_T}$ac_header_compiler" >&6
19286 # Is the header present?
19287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 #include <$ac_header>
19297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } >/dev/null; then
19305 if test -s conftest.err; then
19306 ac_cpp_err=$ac_c_preproc_warn_flag
19307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19314 if test -z "$ac_cpp_err"; then
19315 ac_header_preproc=yes
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_header_preproc=no
19322 rm -f conftest.err conftest.$ac_ext
19323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19324 echo "${ECHO_T}$ac_header_preproc" >&6
19326 # So? What about this header?
19327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19333 ac_header_preproc=yes
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19350 ## ------------------------------------------ ##
19351 ## Report this to the AC_PACKAGE_NAME lists. ##
19352 ## ------------------------------------------ ##
19355 sed "s/^/$as_me: WARNING: /" >&2
19358 echo "$as_me:$LINENO: checking for $ac_header" >&5
19359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 eval "$as_ac_Header=\$ac_header_preproc"
19365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19370 cat >>confdefs.h <<_ACEOF
19371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19379 if test $ac_cv_header_openssl_ssl_h = yes ; then
19380 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19381 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19382 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lssl -lcrypto $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any gcc2 internal prototype to avoid an error. */
19398 /* We use char because int might match the return type of a gcc2
19399 builtin and then its argument prototype would still apply. */
19400 char SSL_library_init ();
19404 SSL_library_init ();
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411 (eval $ac_link) 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_c_werror_flag"
19419 || test ! -s conftest.err'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try='test -s conftest$ac_exeext'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; }; then
19431 ac_cv_lib_ssl_SSL_library_init=yes
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 ac_cv_lib_ssl_SSL_library_init=no
19438 rm -f conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19442 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19443 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19444 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19452 if test $have_openssl = no ; then
19453 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19454 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19455 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19467 /* Override any gcc2 internal prototype to avoid an error. */
19471 /* We use char because int might match the return type of a gcc2
19472 builtin and then its argument prototype would still apply. */
19473 char ssl3_accept ();
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484 (eval $ac_link) 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try='test -z "$ac_c_werror_flag"
19492 || test ! -s conftest.err'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest$ac_exeext'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_lib_ssl_ssl3_accept=yes
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 ac_cv_lib_ssl_ssl3_accept=no
19511 rm -f conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19516 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19517 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19526 if test $have_openssl = yes ; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_OPENSSL 1
19536 if test $need_rsaref = yes; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_RSAREF 1
19543 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19545 TLS_LIBS="-lssl -lcrypto"
19548 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19549 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19550 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19561 #ifdef HAVE_OPENSSL_SSL_H
19562 #include <openssl/ssl.h>
19567 /* Require 0.9.7d+ */
19568 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19569 char *__ssl_compat = "0.9.7d";
19573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19574 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19575 ol_cv_ssl_crl_compat=yes
19577 ol_cv_ssl_crl_compat=no
19582 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19583 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19585 if test $ol_cv_ssl_crl_compat = no ; then
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_OPENSSL_CRL 1
19597 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19598 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19602 if test $ol_link_tls = yes ; then
19604 cat >>confdefs.h <<\_ACEOF
19610 elif test $ol_with_tls = auto ; then
19611 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19612 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19613 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19614 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19616 elif test $ol_with_tls != no ; then
19617 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19618 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19619 { (exit 1); exit 1; }; }
19622 if test $ol_enable_lmpasswd != no; then
19623 if test $ol_link_tls != yes ; then
19624 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19625 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19626 { (exit 1); exit 1; }; }
19630 cat >>confdefs.h <<\_ACEOF
19631 #define SLAPD_LMHASH 1
19638 case $ol_with_threads in auto | yes | nt)
19641 echo "$as_me:$LINENO: checking for _beginthread" >&5
19642 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19643 if test "${ac_cv_func__beginthread+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19654 #define _beginthread innocuous__beginthread
19656 /* System header to define __stub macros and hopefully few prototypes,
19657 which can conflict with char _beginthread (); below.
19658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659 <limits.h> exists even on freestanding compilers. */
19662 # include <limits.h>
19664 # include <assert.h>
19667 #undef _beginthread
19669 /* Override any gcc2 internal prototype to avoid an error. */
19674 /* We use char because int might match the return type of a gcc2
19675 builtin and then its argument prototype would still apply. */
19676 char _beginthread ();
19677 /* The GNU C library defines this for functions which it implements
19678 to always fail with ENOSYS. Some functions are actually named
19679 something starting with __ and the normal name is an alias. */
19680 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19683 char (*f) () = _beginthread;
19692 return f != _beginthread;
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699 (eval $ac_link) 2>conftest.er1
19701 grep -v '^ *+' conftest.er1 >conftest.err
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest$ac_exeext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_cv_func__beginthread=yes
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19724 ac_cv_func__beginthread=no
19726 rm -f conftest.err conftest.$ac_objext \
19727 conftest$ac_exeext conftest.$ac_ext
19729 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19730 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19733 if test $ac_cv_func__beginthread = yes ; then
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_NT_THREADS 1
19739 ol_cv_nt_threads=yes
19743 if test "$ol_cv_nt_threads" = yes ; then
19745 ol_with_threads=found
19746 ol_with_yielding_select=yes
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_NT_SERVICE_MANAGER 1
19754 cat >>confdefs.h <<\_ACEOF
19755 #define HAVE_NT_EVENT_LOG 1
19760 if test $ol_with_threads = nt ; then
19761 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19762 echo "$as_me: error: could not locate NT Threads" >&2;}
19763 { (exit 1); exit 1; }; }
19768 case $ol_with_threads in auto | yes | posix)
19771 for ac_header in pthread.h
19773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19775 echo "$as_me:$LINENO: checking for $ac_header" >&5
19776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19783 # Is the header compilable?
19784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19786 cat >conftest.$ac_ext <<_ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 $ac_includes_default
19793 #include <$ac_header>
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest.$ac_objext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ac_header_compiler=yes
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 ac_header_compiler=no
19824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19826 echo "${ECHO_T}$ac_header_compiler" >&6
19828 # Is the header present?
19829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 #include <$ac_header>
19839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } >/dev/null; then
19847 if test -s conftest.err; then
19848 ac_cpp_err=$ac_c_preproc_warn_flag
19849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19856 if test -z "$ac_cpp_err"; then
19857 ac_header_preproc=yes
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 ac_header_preproc=no
19864 rm -f conftest.err conftest.$ac_ext
19865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866 echo "${ECHO_T}$ac_header_preproc" >&6
19868 # So? What about this header?
19869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19875 ac_header_preproc=yes
19878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19892 ## ------------------------------------------ ##
19893 ## Report this to the AC_PACKAGE_NAME lists. ##
19894 ## ------------------------------------------ ##
19897 sed "s/^/$as_me: WARNING: /" >&2
19900 echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 eval "$as_ac_Header=\$ac_header_preproc"
19907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19912 cat >>confdefs.h <<_ACEOF
19913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19921 if test $ac_cv_header_pthread_h = yes ; then
19922 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19923 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19924 if test "${ol_cv_pthread_version+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19935 # include <pthread.h>
19941 int i = PTHREAD_CREATE_JOINABLE;
19947 rm -f conftest.$ac_objext
19948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19949 (eval $ac_compile) 2>conftest.er1
19951 grep -v '^ *+' conftest.er1 >conftest.err
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } &&
19956 { ac_try='test -z "$ac_c_werror_flag"
19957 || test ! -s conftest.err'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try='test -s conftest.$ac_objext'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 #include <pthread.h>
19979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19980 $EGREP "pthread_detach" >/dev/null 2>&1; then
19981 ol_cv_pthread_version=10
19983 ol_cv_pthread_version=8
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 # include <pthread.h>
20000 # ifdef PTHREAD_CREATE_UNDETACHED
20005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20006 $EGREP "draft7" >/dev/null 2>&1; then
20007 ol_cv_pthread_version=7
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <pthread.h>
20019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20020 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20021 ol_cv_pthread_version=6
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20031 # include <pthread.h>
20032 #ifdef PTHREAD_MUTEX_INITIALIZER
20037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20038 $EGREP "draft5" >/dev/null 2>&1; then
20039 ol_cv_pthread_version=5
20041 ol_cv_pthread_version=4
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20055 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20056 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20059 if test $ol_cv_pthread_version != 0 ; then
20061 cat >>confdefs.h <<_ACEOF
20062 #define HAVE_PTHREADS $ol_cv_pthread_version
20066 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20067 echo "$as_me: error: unknown pthread version" >&2;}
20068 { (exit 1); exit 1; }; }
20071 # consider threads found
20072 ol_with_threads=found
20075 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20076 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20077 if test "${ol_cv_header_linux_threads+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <pthread.h>
20088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20089 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20090 ol_cv_header_linux_threads=yes
20092 ol_cv_header_linux_threads=no
20098 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20099 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20100 if test $ol_cv_header_linux_threads = yes; then
20102 cat >>confdefs.h <<\_ACEOF
20103 #define HAVE_LINUX_THREADS 1
20109 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20110 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20111 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 #include <pthread.h>
20121 #ifdef _POSIX_THREAD_IS_GNU_PTH
20126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20127 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20128 ol_cv_header_gnu_pth_pthread_h=yes
20130 ol_cv_header_gnu_pth_pthread_h=no
20136 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20137 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20140 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20142 for ac_header in sched.h
20144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20146 echo "$as_me:$LINENO: checking for $ac_header" >&5
20147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20154 # Is the header compilable?
20155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20164 #include <$ac_header>
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168 (eval $ac_compile) 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest.$ac_objext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_header_compiler=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_compiler=no
20195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20197 echo "${ECHO_T}$ac_header_compiler" >&6
20199 # Is the header present?
20200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20202 cat >conftest.$ac_ext <<_ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 #include <$ac_header>
20210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } >/dev/null; then
20218 if test -s conftest.err; then
20219 ac_cpp_err=$ac_c_preproc_warn_flag
20220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20227 if test -z "$ac_cpp_err"; then
20228 ac_header_preproc=yes
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20233 ac_header_preproc=no
20235 rm -f conftest.err conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20237 echo "${ECHO_T}$ac_header_preproc" >&6
20239 # So? What about this header?
20240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20246 ac_header_preproc=yes
20249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20263 ## ------------------------------------------ ##
20264 ## Report this to the AC_PACKAGE_NAME lists. ##
20265 ## ------------------------------------------ ##
20268 sed "s/^/$as_me: WARNING: /" >&2
20271 echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 eval "$as_ac_Header=\$ac_header_preproc"
20278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20294 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20295 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20296 if test "${ol_cv_pthread_create+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 if test "$cross_compiling" = yes; then
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20308 /* pthread test headers */
20309 #include <pthread.h>
20310 #if HAVE_PTHREADS < 7
20314 #define NULL (void*)0
20317 static void *task(p)
20320 return (void *) (p == NULL);
20327 /* pthread test function */
20328 #ifndef PTHREAD_CREATE_DETACHED
20329 #define PTHREAD_CREATE_DETACHED 1
20333 int detach = PTHREAD_CREATE_DETACHED;
20335 #if HAVE_PTHREADS > 4
20336 /* Final pthreads */
20337 pthread_attr_t attr;
20339 status = pthread_attr_init(&attr);
20340 if( status ) return status;
20342 #if HAVE_PTHREADS < 7
20343 status = pthread_attr_setdetachstate(&attr, &detach);
20344 if( status < 0 ) status = errno;
20346 status = pthread_attr_setdetachstate(&attr, detach);
20348 if( status ) return status;
20349 status = pthread_create( &t, &attr, task, NULL );
20350 #if HAVE_PTHREADS < 7
20351 if( status < 0 ) status = errno;
20353 if( status ) return status;
20355 /* Draft 4 pthreads */
20356 status = pthread_create( &t, pthread_attr_default, task, NULL );
20357 if( status ) return errno;
20359 /* give thread a chance to complete */
20360 /* it should remain joinable and hence detachable */
20363 status = pthread_detach( &t );
20364 if( status ) return errno;
20367 #ifdef HAVE_LINUX_THREADS
20368 pthread_kill_other_threads_np();
20377 rm -f conftest.$ac_objext conftest$ac_exeext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379 (eval $ac_link) 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
20386 { ac_try='test -z "$ac_c_werror_flag"
20387 || test ! -s conftest.err'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; } &&
20393 { ac_try='test -s conftest$ac_exeext'
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; }; then
20399 ol_cv_pthread_create=yes
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20404 ol_cv_pthread_create=no
20406 rm -f conftest.err conftest.$ac_objext \
20407 conftest$ac_exeext conftest.$ac_ext
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20416 /* pthread test headers */
20417 #include <pthread.h>
20418 #if HAVE_PTHREADS < 7
20422 #define NULL (void*)0
20425 static void *task(p)
20428 return (void *) (p == NULL);
20432 int main(argc, argv)
20437 /* pthread test function */
20438 #ifndef PTHREAD_CREATE_DETACHED
20439 #define PTHREAD_CREATE_DETACHED 1
20443 int detach = PTHREAD_CREATE_DETACHED;
20445 #if HAVE_PTHREADS > 4
20446 /* Final pthreads */
20447 pthread_attr_t attr;
20449 status = pthread_attr_init(&attr);
20450 if( status ) return status;
20452 #if HAVE_PTHREADS < 7
20453 status = pthread_attr_setdetachstate(&attr, &detach);
20454 if( status < 0 ) status = errno;
20456 status = pthread_attr_setdetachstate(&attr, detach);
20458 if( status ) return status;
20459 status = pthread_create( &t, &attr, task, NULL );
20460 #if HAVE_PTHREADS < 7
20461 if( status < 0 ) status = errno;
20463 if( status ) return status;
20465 /* Draft 4 pthreads */
20466 status = pthread_create( &t, pthread_attr_default, task, NULL );
20467 if( status ) return errno;
20469 /* give thread a chance to complete */
20470 /* it should remain joinable and hence detachable */
20473 status = pthread_detach( &t );
20474 if( status ) return errno;
20477 #ifdef HAVE_LINUX_THREADS
20478 pthread_kill_other_threads_np();
20486 rm -f conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20497 ol_cv_pthread_create=yes
20499 echo "$as_me: program exited with status $ac_status" >&5
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ( exit $ac_status )
20504 ol_cv_pthread_create=no
20506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20509 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20510 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20512 if test $ol_cv_pthread_create != no ; then
20513 ol_link_threads=posix
20514 ol_link_pthreads=""
20517 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20518 if test "$ol_link_threads" = no ; then
20520 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20521 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20522 if test "${ol_cv_pthread_kthread+set}" = set; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 LIBS="-kthread $LIBS"
20530 if test "$cross_compiling" = yes; then
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20538 /* pthread test headers */
20539 #include <pthread.h>
20540 #if HAVE_PTHREADS < 7
20544 #define NULL (void*)0
20547 static void *task(p)
20550 return (void *) (p == NULL);
20557 /* pthread test function */
20558 #ifndef PTHREAD_CREATE_DETACHED
20559 #define PTHREAD_CREATE_DETACHED 1
20563 int detach = PTHREAD_CREATE_DETACHED;
20565 #if HAVE_PTHREADS > 4
20566 /* Final pthreads */
20567 pthread_attr_t attr;
20569 status = pthread_attr_init(&attr);
20570 if( status ) return status;
20572 #if HAVE_PTHREADS < 7
20573 status = pthread_attr_setdetachstate(&attr, &detach);
20574 if( status < 0 ) status = errno;
20576 status = pthread_attr_setdetachstate(&attr, detach);
20578 if( status ) return status;
20579 status = pthread_create( &t, &attr, task, NULL );
20580 #if HAVE_PTHREADS < 7
20581 if( status < 0 ) status = errno;
20583 if( status ) return status;
20585 /* Draft 4 pthreads */
20586 status = pthread_create( &t, pthread_attr_default, task, NULL );
20587 if( status ) return errno;
20589 /* give thread a chance to complete */
20590 /* it should remain joinable and hence detachable */
20593 status = pthread_detach( &t );
20594 if( status ) return errno;
20597 #ifdef HAVE_LINUX_THREADS
20598 pthread_kill_other_threads_np();
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609 (eval $ac_link) 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag"
20617 || test ! -s conftest.err'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 ol_cv_pthread_kthread=yes
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ol_cv_pthread_kthread=no
20636 rm -f conftest.err conftest.$ac_objext \
20637 conftest$ac_exeext conftest.$ac_ext
20639 cat >conftest.$ac_ext <<_ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 /* pthread test headers */
20647 #include <pthread.h>
20648 #if HAVE_PTHREADS < 7
20652 #define NULL (void*)0
20655 static void *task(p)
20658 return (void *) (p == NULL);
20662 int main(argc, argv)
20667 /* pthread test function */
20668 #ifndef PTHREAD_CREATE_DETACHED
20669 #define PTHREAD_CREATE_DETACHED 1
20673 int detach = PTHREAD_CREATE_DETACHED;
20675 #if HAVE_PTHREADS > 4
20676 /* Final pthreads */
20677 pthread_attr_t attr;
20679 status = pthread_attr_init(&attr);
20680 if( status ) return status;
20682 #if HAVE_PTHREADS < 7
20683 status = pthread_attr_setdetachstate(&attr, &detach);
20684 if( status < 0 ) status = errno;
20686 status = pthread_attr_setdetachstate(&attr, detach);
20688 if( status ) return status;
20689 status = pthread_create( &t, &attr, task, NULL );
20690 #if HAVE_PTHREADS < 7
20691 if( status < 0 ) status = errno;
20693 if( status ) return status;
20695 /* Draft 4 pthreads */
20696 status = pthread_create( &t, pthread_attr_default, task, NULL );
20697 if( status ) return errno;
20699 /* give thread a chance to complete */
20700 /* it should remain joinable and hence detachable */
20703 status = pthread_detach( &t );
20704 if( status ) return errno;
20707 #ifdef HAVE_LINUX_THREADS
20708 pthread_kill_other_threads_np();
20716 rm -f conftest$ac_exeext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20718 (eval $ac_link) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ol_cv_pthread_kthread=yes
20729 echo "$as_me: program exited with status $ac_status" >&5
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ( exit $ac_status )
20734 ol_cv_pthread_kthread=no
20736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20743 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20744 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20746 if test $ol_cv_pthread_kthread = yes ; then
20747 ol_link_pthreads="-kthread"
20748 ol_link_threads=posix
20752 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20753 if test "$ol_link_threads" = no ; then
20755 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20756 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20757 if test "${ol_cv_pthread_pthread+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 LIBS="-pthread $LIBS"
20765 if test "$cross_compiling" = yes; then
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 /* pthread test headers */
20774 #include <pthread.h>
20775 #if HAVE_PTHREADS < 7
20779 #define NULL (void*)0
20782 static void *task(p)
20785 return (void *) (p == NULL);
20792 /* pthread test function */
20793 #ifndef PTHREAD_CREATE_DETACHED
20794 #define PTHREAD_CREATE_DETACHED 1
20798 int detach = PTHREAD_CREATE_DETACHED;
20800 #if HAVE_PTHREADS > 4
20801 /* Final pthreads */
20802 pthread_attr_t attr;
20804 status = pthread_attr_init(&attr);
20805 if( status ) return status;
20807 #if HAVE_PTHREADS < 7
20808 status = pthread_attr_setdetachstate(&attr, &detach);
20809 if( status < 0 ) status = errno;
20811 status = pthread_attr_setdetachstate(&attr, detach);
20813 if( status ) return status;
20814 status = pthread_create( &t, &attr, task, NULL );
20815 #if HAVE_PTHREADS < 7
20816 if( status < 0 ) status = errno;
20818 if( status ) return status;
20820 /* Draft 4 pthreads */
20821 status = pthread_create( &t, pthread_attr_default, task, NULL );
20822 if( status ) return errno;
20824 /* give thread a chance to complete */
20825 /* it should remain joinable and hence detachable */
20828 status = pthread_detach( &t );
20829 if( status ) return errno;
20832 #ifdef HAVE_LINUX_THREADS
20833 pthread_kill_other_threads_np();
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20844 (eval $ac_link) 2>conftest.er1
20846 grep -v '^ *+' conftest.er1 >conftest.err
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -z "$ac_c_werror_flag"
20852 || test ! -s conftest.err'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest$ac_exeext'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 ol_cv_pthread_pthread=yes
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ol_cv_pthread_pthread=no
20871 rm -f conftest.err conftest.$ac_objext \
20872 conftest$ac_exeext conftest.$ac_ext
20874 cat >conftest.$ac_ext <<_ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20881 /* pthread test headers */
20882 #include <pthread.h>
20883 #if HAVE_PTHREADS < 7
20887 #define NULL (void*)0
20890 static void *task(p)
20893 return (void *) (p == NULL);
20897 int main(argc, argv)
20902 /* pthread test function */
20903 #ifndef PTHREAD_CREATE_DETACHED
20904 #define PTHREAD_CREATE_DETACHED 1
20908 int detach = PTHREAD_CREATE_DETACHED;
20910 #if HAVE_PTHREADS > 4
20911 /* Final pthreads */
20912 pthread_attr_t attr;
20914 status = pthread_attr_init(&attr);
20915 if( status ) return status;
20917 #if HAVE_PTHREADS < 7
20918 status = pthread_attr_setdetachstate(&attr, &detach);
20919 if( status < 0 ) status = errno;
20921 status = pthread_attr_setdetachstate(&attr, detach);
20923 if( status ) return status;
20924 status = pthread_create( &t, &attr, task, NULL );
20925 #if HAVE_PTHREADS < 7
20926 if( status < 0 ) status = errno;
20928 if( status ) return status;
20930 /* Draft 4 pthreads */
20931 status = pthread_create( &t, pthread_attr_default, task, NULL );
20932 if( status ) return errno;
20934 /* give thread a chance to complete */
20935 /* it should remain joinable and hence detachable */
20938 status = pthread_detach( &t );
20939 if( status ) return errno;
20942 #ifdef HAVE_LINUX_THREADS
20943 pthread_kill_other_threads_np();
20951 rm -f conftest$ac_exeext
20952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20953 (eval $ac_link) 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
20962 ol_cv_pthread_pthread=yes
20964 echo "$as_me: program exited with status $ac_status" >&5
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 ( exit $ac_status )
20969 ol_cv_pthread_pthread=no
20971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20978 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20979 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20981 if test $ol_cv_pthread_pthread = yes ; then
20982 ol_link_pthreads="-pthread"
20983 ol_link_threads=posix
20987 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20988 if test "$ol_link_threads" = no ; then
20990 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20991 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20992 if test "${ol_cv_pthread_pthreads+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 LIBS="-pthreads $LIBS"
21000 if test "$cross_compiling" = yes; then
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21008 /* pthread test headers */
21009 #include <pthread.h>
21010 #if HAVE_PTHREADS < 7
21014 #define NULL (void*)0
21017 static void *task(p)
21020 return (void *) (p == NULL);
21027 /* pthread test function */
21028 #ifndef PTHREAD_CREATE_DETACHED
21029 #define PTHREAD_CREATE_DETACHED 1
21033 int detach = PTHREAD_CREATE_DETACHED;
21035 #if HAVE_PTHREADS > 4
21036 /* Final pthreads */
21037 pthread_attr_t attr;
21039 status = pthread_attr_init(&attr);
21040 if( status ) return status;
21042 #if HAVE_PTHREADS < 7
21043 status = pthread_attr_setdetachstate(&attr, &detach);
21044 if( status < 0 ) status = errno;
21046 status = pthread_attr_setdetachstate(&attr, detach);
21048 if( status ) return status;
21049 status = pthread_create( &t, &attr, task, NULL );
21050 #if HAVE_PTHREADS < 7
21051 if( status < 0 ) status = errno;
21053 if( status ) return status;
21055 /* Draft 4 pthreads */
21056 status = pthread_create( &t, pthread_attr_default, task, NULL );
21057 if( status ) return errno;
21059 /* give thread a chance to complete */
21060 /* it should remain joinable and hence detachable */
21063 status = pthread_detach( &t );
21064 if( status ) return errno;
21067 #ifdef HAVE_LINUX_THREADS
21068 pthread_kill_other_threads_np();
21077 rm -f conftest.$ac_objext conftest$ac_exeext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21079 (eval $ac_link) 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
21086 { ac_try='test -z "$ac_c_werror_flag"
21087 || test ! -s conftest.err'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; } &&
21093 { ac_try='test -s conftest$ac_exeext'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 ol_cv_pthread_pthreads=yes
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 ol_cv_pthread_pthreads=no
21106 rm -f conftest.err conftest.$ac_objext \
21107 conftest$ac_exeext conftest.$ac_ext
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21116 /* pthread test headers */
21117 #include <pthread.h>
21118 #if HAVE_PTHREADS < 7
21122 #define NULL (void*)0
21125 static void *task(p)
21128 return (void *) (p == NULL);
21132 int main(argc, argv)
21137 /* pthread test function */
21138 #ifndef PTHREAD_CREATE_DETACHED
21139 #define PTHREAD_CREATE_DETACHED 1
21143 int detach = PTHREAD_CREATE_DETACHED;
21145 #if HAVE_PTHREADS > 4
21146 /* Final pthreads */
21147 pthread_attr_t attr;
21149 status = pthread_attr_init(&attr);
21150 if( status ) return status;
21152 #if HAVE_PTHREADS < 7
21153 status = pthread_attr_setdetachstate(&attr, &detach);
21154 if( status < 0 ) status = errno;
21156 status = pthread_attr_setdetachstate(&attr, detach);
21158 if( status ) return status;
21159 status = pthread_create( &t, &attr, task, NULL );
21160 #if HAVE_PTHREADS < 7
21161 if( status < 0 ) status = errno;
21163 if( status ) return status;
21165 /* Draft 4 pthreads */
21166 status = pthread_create( &t, pthread_attr_default, task, NULL );
21167 if( status ) return errno;
21169 /* give thread a chance to complete */
21170 /* it should remain joinable and hence detachable */
21173 status = pthread_detach( &t );
21174 if( status ) return errno;
21177 #ifdef HAVE_LINUX_THREADS
21178 pthread_kill_other_threads_np();
21186 rm -f conftest$ac_exeext
21187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21188 (eval $ac_link) 2>&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ol_cv_pthread_pthreads=yes
21199 echo "$as_me: program exited with status $ac_status" >&5
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21203 ( exit $ac_status )
21204 ol_cv_pthread_pthreads=no
21206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21213 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21214 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21216 if test $ol_cv_pthread_pthreads = yes ; then
21217 ol_link_pthreads="-pthreads"
21218 ol_link_threads=posix
21222 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21223 if test "$ol_link_threads" = no ; then
21225 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21226 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21227 if test "${ol_cv_pthread_mthreads+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 LIBS="-mthreads $LIBS"
21235 if test "$cross_compiling" = yes; then
21236 cat >conftest.$ac_ext <<_ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21243 /* pthread test headers */
21244 #include <pthread.h>
21245 #if HAVE_PTHREADS < 7
21249 #define NULL (void*)0
21252 static void *task(p)
21255 return (void *) (p == NULL);
21262 /* pthread test function */
21263 #ifndef PTHREAD_CREATE_DETACHED
21264 #define PTHREAD_CREATE_DETACHED 1
21268 int detach = PTHREAD_CREATE_DETACHED;
21270 #if HAVE_PTHREADS > 4
21271 /* Final pthreads */
21272 pthread_attr_t attr;
21274 status = pthread_attr_init(&attr);
21275 if( status ) return status;
21277 #if HAVE_PTHREADS < 7
21278 status = pthread_attr_setdetachstate(&attr, &detach);
21279 if( status < 0 ) status = errno;
21281 status = pthread_attr_setdetachstate(&attr, detach);
21283 if( status ) return status;
21284 status = pthread_create( &t, &attr, task, NULL );
21285 #if HAVE_PTHREADS < 7
21286 if( status < 0 ) status = errno;
21288 if( status ) return status;
21290 /* Draft 4 pthreads */
21291 status = pthread_create( &t, pthread_attr_default, task, NULL );
21292 if( status ) return errno;
21294 /* give thread a chance to complete */
21295 /* it should remain joinable and hence detachable */
21298 status = pthread_detach( &t );
21299 if( status ) return errno;
21302 #ifdef HAVE_LINUX_THREADS
21303 pthread_kill_other_threads_np();
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21314 (eval $ac_link) 2>conftest.er1
21316 grep -v '^ *+' conftest.er1 >conftest.err
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } &&
21321 { ac_try='test -z "$ac_c_werror_flag"
21322 || test ! -s conftest.err'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest$ac_exeext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 ol_cv_pthread_mthreads=yes
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ol_cv_pthread_mthreads=no
21341 rm -f conftest.err conftest.$ac_objext \
21342 conftest$ac_exeext conftest.$ac_ext
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21351 /* pthread test headers */
21352 #include <pthread.h>
21353 #if HAVE_PTHREADS < 7
21357 #define NULL (void*)0
21360 static void *task(p)
21363 return (void *) (p == NULL);
21367 int main(argc, argv)
21372 /* pthread test function */
21373 #ifndef PTHREAD_CREATE_DETACHED
21374 #define PTHREAD_CREATE_DETACHED 1
21378 int detach = PTHREAD_CREATE_DETACHED;
21380 #if HAVE_PTHREADS > 4
21381 /* Final pthreads */
21382 pthread_attr_t attr;
21384 status = pthread_attr_init(&attr);
21385 if( status ) return status;
21387 #if HAVE_PTHREADS < 7
21388 status = pthread_attr_setdetachstate(&attr, &detach);
21389 if( status < 0 ) status = errno;
21391 status = pthread_attr_setdetachstate(&attr, detach);
21393 if( status ) return status;
21394 status = pthread_create( &t, &attr, task, NULL );
21395 #if HAVE_PTHREADS < 7
21396 if( status < 0 ) status = errno;
21398 if( status ) return status;
21400 /* Draft 4 pthreads */
21401 status = pthread_create( &t, pthread_attr_default, task, NULL );
21402 if( status ) return errno;
21404 /* give thread a chance to complete */
21405 /* it should remain joinable and hence detachable */
21408 status = pthread_detach( &t );
21409 if( status ) return errno;
21412 #ifdef HAVE_LINUX_THREADS
21413 pthread_kill_other_threads_np();
21421 rm -f conftest$ac_exeext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423 (eval $ac_link) 2>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 ol_cv_pthread_mthreads=yes
21434 echo "$as_me: program exited with status $ac_status" >&5
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ( exit $ac_status )
21439 ol_cv_pthread_mthreads=no
21441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21449 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21451 if test $ol_cv_pthread_mthreads = yes ; then
21452 ol_link_pthreads="-mthreads"
21453 ol_link_threads=posix
21457 # Pthread try link: -thread (ol_cv_pthread_thread)
21458 if test "$ol_link_threads" = no ; then
21460 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21461 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21462 if test "${ol_cv_pthread_thread+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 LIBS="-thread $LIBS"
21470 if test "$cross_compiling" = yes; then
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21478 /* pthread test headers */
21479 #include <pthread.h>
21480 #if HAVE_PTHREADS < 7
21484 #define NULL (void*)0
21487 static void *task(p)
21490 return (void *) (p == NULL);
21497 /* pthread test function */
21498 #ifndef PTHREAD_CREATE_DETACHED
21499 #define PTHREAD_CREATE_DETACHED 1
21503 int detach = PTHREAD_CREATE_DETACHED;
21505 #if HAVE_PTHREADS > 4
21506 /* Final pthreads */
21507 pthread_attr_t attr;
21509 status = pthread_attr_init(&attr);
21510 if( status ) return status;
21512 #if HAVE_PTHREADS < 7
21513 status = pthread_attr_setdetachstate(&attr, &detach);
21514 if( status < 0 ) status = errno;
21516 status = pthread_attr_setdetachstate(&attr, detach);
21518 if( status ) return status;
21519 status = pthread_create( &t, &attr, task, NULL );
21520 #if HAVE_PTHREADS < 7
21521 if( status < 0 ) status = errno;
21523 if( status ) return status;
21525 /* Draft 4 pthreads */
21526 status = pthread_create( &t, pthread_attr_default, task, NULL );
21527 if( status ) return errno;
21529 /* give thread a chance to complete */
21530 /* it should remain joinable and hence detachable */
21533 status = pthread_detach( &t );
21534 if( status ) return errno;
21537 #ifdef HAVE_LINUX_THREADS
21538 pthread_kill_other_threads_np();
21547 rm -f conftest.$ac_objext conftest$ac_exeext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21549 (eval $ac_link) 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
21556 { ac_try='test -z "$ac_c_werror_flag"
21557 || test ! -s conftest.err'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; } &&
21563 { ac_try='test -s conftest$ac_exeext'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ol_cv_pthread_thread=yes
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ol_cv_pthread_thread=no
21576 rm -f conftest.err conftest.$ac_objext \
21577 conftest$ac_exeext conftest.$ac_ext
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21586 /* pthread test headers */
21587 #include <pthread.h>
21588 #if HAVE_PTHREADS < 7
21592 #define NULL (void*)0
21595 static void *task(p)
21598 return (void *) (p == NULL);
21602 int main(argc, argv)
21607 /* pthread test function */
21608 #ifndef PTHREAD_CREATE_DETACHED
21609 #define PTHREAD_CREATE_DETACHED 1
21613 int detach = PTHREAD_CREATE_DETACHED;
21615 #if HAVE_PTHREADS > 4
21616 /* Final pthreads */
21617 pthread_attr_t attr;
21619 status = pthread_attr_init(&attr);
21620 if( status ) return status;
21622 #if HAVE_PTHREADS < 7
21623 status = pthread_attr_setdetachstate(&attr, &detach);
21624 if( status < 0 ) status = errno;
21626 status = pthread_attr_setdetachstate(&attr, detach);
21628 if( status ) return status;
21629 status = pthread_create( &t, &attr, task, NULL );
21630 #if HAVE_PTHREADS < 7
21631 if( status < 0 ) status = errno;
21633 if( status ) return status;
21635 /* Draft 4 pthreads */
21636 status = pthread_create( &t, pthread_attr_default, task, NULL );
21637 if( status ) return errno;
21639 /* give thread a chance to complete */
21640 /* it should remain joinable and hence detachable */
21643 status = pthread_detach( &t );
21644 if( status ) return errno;
21647 #ifdef HAVE_LINUX_THREADS
21648 pthread_kill_other_threads_np();
21656 rm -f conftest$ac_exeext
21657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21658 (eval $ac_link) 2>&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ol_cv_pthread_thread=yes
21669 echo "$as_me: program exited with status $ac_status" >&5
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 ( exit $ac_status )
21674 ol_cv_pthread_thread=no
21676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21683 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21684 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21686 if test $ol_cv_pthread_thread = yes ; then
21687 ol_link_pthreads="-thread"
21688 ol_link_threads=posix
21693 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21694 if test "$ol_link_threads" = no ; then
21695 # try -lpthread -lmach -lexc -lc_r
21696 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21697 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21698 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21706 if test "$cross_compiling" = yes; then
21707 cat >conftest.$ac_ext <<_ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21714 /* pthread test headers */
21715 #include <pthread.h>
21716 #if HAVE_PTHREADS < 7
21720 #define NULL (void*)0
21723 static void *task(p)
21726 return (void *) (p == NULL);
21733 /* pthread test function */
21734 #ifndef PTHREAD_CREATE_DETACHED
21735 #define PTHREAD_CREATE_DETACHED 1
21739 int detach = PTHREAD_CREATE_DETACHED;
21741 #if HAVE_PTHREADS > 4
21742 /* Final pthreads */
21743 pthread_attr_t attr;
21745 status = pthread_attr_init(&attr);
21746 if( status ) return status;
21748 #if HAVE_PTHREADS < 7
21749 status = pthread_attr_setdetachstate(&attr, &detach);
21750 if( status < 0 ) status = errno;
21752 status = pthread_attr_setdetachstate(&attr, detach);
21754 if( status ) return status;
21755 status = pthread_create( &t, &attr, task, NULL );
21756 #if HAVE_PTHREADS < 7
21757 if( status < 0 ) status = errno;
21759 if( status ) return status;
21761 /* Draft 4 pthreads */
21762 status = pthread_create( &t, pthread_attr_default, task, NULL );
21763 if( status ) return errno;
21765 /* give thread a chance to complete */
21766 /* it should remain joinable and hence detachable */
21769 status = pthread_detach( &t );
21770 if( status ) return errno;
21773 #ifdef HAVE_LINUX_THREADS
21774 pthread_kill_other_threads_np();
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21785 (eval $ac_link) 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -z "$ac_c_werror_flag"
21793 || test ! -s conftest.err'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest$ac_exeext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21812 rm -f conftest.err conftest.$ac_objext \
21813 conftest$ac_exeext conftest.$ac_ext
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21822 /* pthread test headers */
21823 #include <pthread.h>
21824 #if HAVE_PTHREADS < 7
21828 #define NULL (void*)0
21831 static void *task(p)
21834 return (void *) (p == NULL);
21838 int main(argc, argv)
21843 /* pthread test function */
21844 #ifndef PTHREAD_CREATE_DETACHED
21845 #define PTHREAD_CREATE_DETACHED 1
21849 int detach = PTHREAD_CREATE_DETACHED;
21851 #if HAVE_PTHREADS > 4
21852 /* Final pthreads */
21853 pthread_attr_t attr;
21855 status = pthread_attr_init(&attr);
21856 if( status ) return status;
21858 #if HAVE_PTHREADS < 7
21859 status = pthread_attr_setdetachstate(&attr, &detach);
21860 if( status < 0 ) status = errno;
21862 status = pthread_attr_setdetachstate(&attr, detach);
21864 if( status ) return status;
21865 status = pthread_create( &t, &attr, task, NULL );
21866 #if HAVE_PTHREADS < 7
21867 if( status < 0 ) status = errno;
21869 if( status ) return status;
21871 /* Draft 4 pthreads */
21872 status = pthread_create( &t, pthread_attr_default, task, NULL );
21873 if( status ) return errno;
21875 /* give thread a chance to complete */
21876 /* it should remain joinable and hence detachable */
21879 status = pthread_detach( &t );
21880 if( status ) return errno;
21883 #ifdef HAVE_LINUX_THREADS
21884 pthread_kill_other_threads_np();
21892 rm -f conftest$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894 (eval $ac_link) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21905 echo "$as_me: program exited with status $ac_status" >&5
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ( exit $ac_status )
21910 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21919 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21920 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21922 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21923 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21924 ol_link_threads=posix
21928 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21929 if test "$ol_link_threads" = no ; then
21930 # try -lpthread -lmach -lexc
21931 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21932 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21933 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 LIBS="-lpthread -lmach -lexc $LIBS"
21941 if test "$cross_compiling" = yes; then
21942 cat >conftest.$ac_ext <<_ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21949 /* pthread test headers */
21950 #include <pthread.h>
21951 #if HAVE_PTHREADS < 7
21955 #define NULL (void*)0
21958 static void *task(p)
21961 return (void *) (p == NULL);
21968 /* pthread test function */
21969 #ifndef PTHREAD_CREATE_DETACHED
21970 #define PTHREAD_CREATE_DETACHED 1
21974 int detach = PTHREAD_CREATE_DETACHED;
21976 #if HAVE_PTHREADS > 4
21977 /* Final pthreads */
21978 pthread_attr_t attr;
21980 status = pthread_attr_init(&attr);
21981 if( status ) return status;
21983 #if HAVE_PTHREADS < 7
21984 status = pthread_attr_setdetachstate(&attr, &detach);
21985 if( status < 0 ) status = errno;
21987 status = pthread_attr_setdetachstate(&attr, detach);
21989 if( status ) return status;
21990 status = pthread_create( &t, &attr, task, NULL );
21991 #if HAVE_PTHREADS < 7
21992 if( status < 0 ) status = errno;
21994 if( status ) return status;
21996 /* Draft 4 pthreads */
21997 status = pthread_create( &t, pthread_attr_default, task, NULL );
21998 if( status ) return errno;
22000 /* give thread a chance to complete */
22001 /* it should remain joinable and hence detachable */
22004 status = pthread_detach( &t );
22005 if( status ) return errno;
22008 #ifdef HAVE_LINUX_THREADS
22009 pthread_kill_other_threads_np();
22018 rm -f conftest.$ac_objext conftest$ac_exeext
22019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22020 (eval $ac_link) 2>conftest.er1
22022 grep -v '^ *+' conftest.er1 >conftest.err
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } &&
22027 { ac_try='test -z "$ac_c_werror_flag"
22028 || test ! -s conftest.err'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; } &&
22034 { ac_try='test -s conftest$ac_exeext'
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22040 ol_cv_pthread_lpthread_lmach_lexc=yes
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 ol_cv_pthread_lpthread_lmach_lexc=no
22047 rm -f conftest.err conftest.$ac_objext \
22048 conftest$ac_exeext conftest.$ac_ext
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22057 /* pthread test headers */
22058 #include <pthread.h>
22059 #if HAVE_PTHREADS < 7
22063 #define NULL (void*)0
22066 static void *task(p)
22069 return (void *) (p == NULL);
22073 int main(argc, argv)
22078 /* pthread test function */
22079 #ifndef PTHREAD_CREATE_DETACHED
22080 #define PTHREAD_CREATE_DETACHED 1
22084 int detach = PTHREAD_CREATE_DETACHED;
22086 #if HAVE_PTHREADS > 4
22087 /* Final pthreads */
22088 pthread_attr_t attr;
22090 status = pthread_attr_init(&attr);
22091 if( status ) return status;
22093 #if HAVE_PTHREADS < 7
22094 status = pthread_attr_setdetachstate(&attr, &detach);
22095 if( status < 0 ) status = errno;
22097 status = pthread_attr_setdetachstate(&attr, detach);
22099 if( status ) return status;
22100 status = pthread_create( &t, &attr, task, NULL );
22101 #if HAVE_PTHREADS < 7
22102 if( status < 0 ) status = errno;
22104 if( status ) return status;
22106 /* Draft 4 pthreads */
22107 status = pthread_create( &t, pthread_attr_default, task, NULL );
22108 if( status ) return errno;
22110 /* give thread a chance to complete */
22111 /* it should remain joinable and hence detachable */
22114 status = pthread_detach( &t );
22115 if( status ) return errno;
22118 #ifdef HAVE_LINUX_THREADS
22119 pthread_kill_other_threads_np();
22127 rm -f conftest$ac_exeext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22129 (eval $ac_link) 2>&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
22138 ol_cv_pthread_lpthread_lmach_lexc=yes
22140 echo "$as_me: program exited with status $ac_status" >&5
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ( exit $ac_status )
22145 ol_cv_pthread_lpthread_lmach_lexc=no
22147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22154 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22155 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22157 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22158 ol_link_pthreads="-lpthread -lmach -lexc"
22159 ol_link_threads=posix
22164 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22165 if test "$ol_link_threads" = no ; then
22166 # try -lpthread -Wl,-woff,85
22167 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22168 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22169 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22177 if test "$cross_compiling" = yes; then
22178 cat >conftest.$ac_ext <<_ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 /* pthread test headers */
22186 #include <pthread.h>
22187 #if HAVE_PTHREADS < 7
22191 #define NULL (void*)0
22194 static void *task(p)
22197 return (void *) (p == NULL);
22204 /* pthread test function */
22205 #ifndef PTHREAD_CREATE_DETACHED
22206 #define PTHREAD_CREATE_DETACHED 1
22210 int detach = PTHREAD_CREATE_DETACHED;
22212 #if HAVE_PTHREADS > 4
22213 /* Final pthreads */
22214 pthread_attr_t attr;
22216 status = pthread_attr_init(&attr);
22217 if( status ) return status;
22219 #if HAVE_PTHREADS < 7
22220 status = pthread_attr_setdetachstate(&attr, &detach);
22221 if( status < 0 ) status = errno;
22223 status = pthread_attr_setdetachstate(&attr, detach);
22225 if( status ) return status;
22226 status = pthread_create( &t, &attr, task, NULL );
22227 #if HAVE_PTHREADS < 7
22228 if( status < 0 ) status = errno;
22230 if( status ) return status;
22232 /* Draft 4 pthreads */
22233 status = pthread_create( &t, pthread_attr_default, task, NULL );
22234 if( status ) return errno;
22236 /* give thread a chance to complete */
22237 /* it should remain joinable and hence detachable */
22240 status = pthread_detach( &t );
22241 if( status ) return errno;
22244 #ifdef HAVE_LINUX_THREADS
22245 pthread_kill_other_threads_np();
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22256 (eval $ac_link) 2>conftest.er1
22258 grep -v '^ *+' conftest.er1 >conftest.err
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -z "$ac_c_werror_flag"
22264 || test ! -s conftest.err'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; } &&
22270 { ac_try='test -s conftest$ac_exeext'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; }; then
22276 ol_cv_pthread_lib_lpthread_woff=yes
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 ol_cv_pthread_lib_lpthread_woff=no
22283 rm -f conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22286 cat >conftest.$ac_ext <<_ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22293 /* pthread test headers */
22294 #include <pthread.h>
22295 #if HAVE_PTHREADS < 7
22299 #define NULL (void*)0
22302 static void *task(p)
22305 return (void *) (p == NULL);
22309 int main(argc, argv)
22314 /* pthread test function */
22315 #ifndef PTHREAD_CREATE_DETACHED
22316 #define PTHREAD_CREATE_DETACHED 1
22320 int detach = PTHREAD_CREATE_DETACHED;
22322 #if HAVE_PTHREADS > 4
22323 /* Final pthreads */
22324 pthread_attr_t attr;
22326 status = pthread_attr_init(&attr);
22327 if( status ) return status;
22329 #if HAVE_PTHREADS < 7
22330 status = pthread_attr_setdetachstate(&attr, &detach);
22331 if( status < 0 ) status = errno;
22333 status = pthread_attr_setdetachstate(&attr, detach);
22335 if( status ) return status;
22336 status = pthread_create( &t, &attr, task, NULL );
22337 #if HAVE_PTHREADS < 7
22338 if( status < 0 ) status = errno;
22340 if( status ) return status;
22342 /* Draft 4 pthreads */
22343 status = pthread_create( &t, pthread_attr_default, task, NULL );
22344 if( status ) return errno;
22346 /* give thread a chance to complete */
22347 /* it should remain joinable and hence detachable */
22350 status = pthread_detach( &t );
22351 if( status ) return errno;
22354 #ifdef HAVE_LINUX_THREADS
22355 pthread_kill_other_threads_np();
22363 rm -f conftest$ac_exeext
22364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22365 (eval $ac_link) 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; }; then
22374 ol_cv_pthread_lib_lpthread_woff=yes
22376 echo "$as_me: program exited with status $ac_status" >&5
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 ( exit $ac_status )
22381 ol_cv_pthread_lib_lpthread_woff=no
22383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22390 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22391 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22393 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22394 ol_link_pthreads="-lpthread -Wl,-woff,85"
22395 ol_link_threads=posix
22400 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22401 if test "$ol_link_threads" = no ; then
22403 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22404 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22405 if test "${ol_cv_pthread_lpthread+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 LIBS="-lpthread $LIBS"
22413 if test "$cross_compiling" = yes; then
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22421 /* pthread test headers */
22422 #include <pthread.h>
22423 #if HAVE_PTHREADS < 7
22427 #define NULL (void*)0
22430 static void *task(p)
22433 return (void *) (p == NULL);
22440 /* pthread test function */
22441 #ifndef PTHREAD_CREATE_DETACHED
22442 #define PTHREAD_CREATE_DETACHED 1
22446 int detach = PTHREAD_CREATE_DETACHED;
22448 #if HAVE_PTHREADS > 4
22449 /* Final pthreads */
22450 pthread_attr_t attr;
22452 status = pthread_attr_init(&attr);
22453 if( status ) return status;
22455 #if HAVE_PTHREADS < 7
22456 status = pthread_attr_setdetachstate(&attr, &detach);
22457 if( status < 0 ) status = errno;
22459 status = pthread_attr_setdetachstate(&attr, detach);
22461 if( status ) return status;
22462 status = pthread_create( &t, &attr, task, NULL );
22463 #if HAVE_PTHREADS < 7
22464 if( status < 0 ) status = errno;
22466 if( status ) return status;
22468 /* Draft 4 pthreads */
22469 status = pthread_create( &t, pthread_attr_default, task, NULL );
22470 if( status ) return errno;
22472 /* give thread a chance to complete */
22473 /* it should remain joinable and hence detachable */
22476 status = pthread_detach( &t );
22477 if( status ) return errno;
22480 #ifdef HAVE_LINUX_THREADS
22481 pthread_kill_other_threads_np();
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } &&
22499 { ac_try='test -z "$ac_c_werror_flag"
22500 || test ! -s conftest.err'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try='test -s conftest$ac_exeext'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
22512 ol_cv_pthread_lpthread=yes
22514 echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 ol_cv_pthread_lpthread=no
22519 rm -f conftest.err conftest.$ac_objext \
22520 conftest$ac_exeext conftest.$ac_ext
22522 cat >conftest.$ac_ext <<_ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22529 /* pthread test headers */
22530 #include <pthread.h>
22531 #if HAVE_PTHREADS < 7
22535 #define NULL (void*)0
22538 static void *task(p)
22541 return (void *) (p == NULL);
22545 int main(argc, argv)
22550 /* pthread test function */
22551 #ifndef PTHREAD_CREATE_DETACHED
22552 #define PTHREAD_CREATE_DETACHED 1
22556 int detach = PTHREAD_CREATE_DETACHED;
22558 #if HAVE_PTHREADS > 4
22559 /* Final pthreads */
22560 pthread_attr_t attr;
22562 status = pthread_attr_init(&attr);
22563 if( status ) return status;
22565 #if HAVE_PTHREADS < 7
22566 status = pthread_attr_setdetachstate(&attr, &detach);
22567 if( status < 0 ) status = errno;
22569 status = pthread_attr_setdetachstate(&attr, detach);
22571 if( status ) return status;
22572 status = pthread_create( &t, &attr, task, NULL );
22573 #if HAVE_PTHREADS < 7
22574 if( status < 0 ) status = errno;
22576 if( status ) return status;
22578 /* Draft 4 pthreads */
22579 status = pthread_create( &t, pthread_attr_default, task, NULL );
22580 if( status ) return errno;
22582 /* give thread a chance to complete */
22583 /* it should remain joinable and hence detachable */
22586 status = pthread_detach( &t );
22587 if( status ) return errno;
22590 #ifdef HAVE_LINUX_THREADS
22591 pthread_kill_other_threads_np();
22599 rm -f conftest$ac_exeext
22600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22601 (eval $ac_link) 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; }; then
22610 ol_cv_pthread_lpthread=yes
22612 echo "$as_me: program exited with status $ac_status" >&5
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ( exit $ac_status )
22617 ol_cv_pthread_lpthread=no
22619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22626 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22627 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22629 if test $ol_cv_pthread_lpthread = yes ; then
22630 ol_link_pthreads="-lpthread"
22631 ol_link_threads=posix
22635 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22636 if test "$ol_link_threads" = no ; then
22638 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22639 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22640 if test "${ol_cv_pthread_lc_r+set}" = set; then
22641 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 if test "$cross_compiling" = yes; then
22649 cat >conftest.$ac_ext <<_ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22656 /* pthread test headers */
22657 #include <pthread.h>
22658 #if HAVE_PTHREADS < 7
22662 #define NULL (void*)0
22665 static void *task(p)
22668 return (void *) (p == NULL);
22675 /* pthread test function */
22676 #ifndef PTHREAD_CREATE_DETACHED
22677 #define PTHREAD_CREATE_DETACHED 1
22681 int detach = PTHREAD_CREATE_DETACHED;
22683 #if HAVE_PTHREADS > 4
22684 /* Final pthreads */
22685 pthread_attr_t attr;
22687 status = pthread_attr_init(&attr);
22688 if( status ) return status;
22690 #if HAVE_PTHREADS < 7
22691 status = pthread_attr_setdetachstate(&attr, &detach);
22692 if( status < 0 ) status = errno;
22694 status = pthread_attr_setdetachstate(&attr, detach);
22696 if( status ) return status;
22697 status = pthread_create( &t, &attr, task, NULL );
22698 #if HAVE_PTHREADS < 7
22699 if( status < 0 ) status = errno;
22701 if( status ) return status;
22703 /* Draft 4 pthreads */
22704 status = pthread_create( &t, pthread_attr_default, task, NULL );
22705 if( status ) return errno;
22707 /* give thread a chance to complete */
22708 /* it should remain joinable and hence detachable */
22711 status = pthread_detach( &t );
22712 if( status ) return errno;
22715 #ifdef HAVE_LINUX_THREADS
22716 pthread_kill_other_threads_np();
22725 rm -f conftest.$ac_objext conftest$ac_exeext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727 (eval $ac_link) 2>conftest.er1
22729 grep -v '^ *+' conftest.er1 >conftest.err
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } &&
22734 { ac_try='test -z "$ac_c_werror_flag"
22735 || test ! -s conftest.err'
22736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737 (eval $ac_try) 2>&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); }; } &&
22741 { ac_try='test -s conftest$ac_exeext'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; }; then
22747 ol_cv_pthread_lc_r=yes
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ol_cv_pthread_lc_r=no
22754 rm -f conftest.err conftest.$ac_objext \
22755 conftest$ac_exeext conftest.$ac_ext
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22764 /* pthread test headers */
22765 #include <pthread.h>
22766 #if HAVE_PTHREADS < 7
22770 #define NULL (void*)0
22773 static void *task(p)
22776 return (void *) (p == NULL);
22780 int main(argc, argv)
22785 /* pthread test function */
22786 #ifndef PTHREAD_CREATE_DETACHED
22787 #define PTHREAD_CREATE_DETACHED 1
22791 int detach = PTHREAD_CREATE_DETACHED;
22793 #if HAVE_PTHREADS > 4
22794 /* Final pthreads */
22795 pthread_attr_t attr;
22797 status = pthread_attr_init(&attr);
22798 if( status ) return status;
22800 #if HAVE_PTHREADS < 7
22801 status = pthread_attr_setdetachstate(&attr, &detach);
22802 if( status < 0 ) status = errno;
22804 status = pthread_attr_setdetachstate(&attr, detach);
22806 if( status ) return status;
22807 status = pthread_create( &t, &attr, task, NULL );
22808 #if HAVE_PTHREADS < 7
22809 if( status < 0 ) status = errno;
22811 if( status ) return status;
22813 /* Draft 4 pthreads */
22814 status = pthread_create( &t, pthread_attr_default, task, NULL );
22815 if( status ) return errno;
22817 /* give thread a chance to complete */
22818 /* it should remain joinable and hence detachable */
22821 status = pthread_detach( &t );
22822 if( status ) return errno;
22825 #ifdef HAVE_LINUX_THREADS
22826 pthread_kill_other_threads_np();
22834 rm -f conftest$ac_exeext
22835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22836 (eval $ac_link) 2>&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841 (eval $ac_try) 2>&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); }; }; then
22845 ol_cv_pthread_lc_r=yes
22847 echo "$as_me: program exited with status $ac_status" >&5
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22851 ( exit $ac_status )
22852 ol_cv_pthread_lc_r=no
22854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22861 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22862 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22864 if test $ol_cv_pthread_lc_r = yes ; then
22865 ol_link_pthreads="-lc_r"
22866 ol_link_threads=posix
22871 # Pthread try link: -threads (ol_cv_pthread_threads)
22872 if test "$ol_link_threads" = no ; then
22874 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22875 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22876 if test "${ol_cv_pthread_threads+set}" = set; then
22877 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 LIBS="-threads $LIBS"
22884 if test "$cross_compiling" = yes; then
22885 cat >conftest.$ac_ext <<_ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22892 /* pthread test headers */
22893 #include <pthread.h>
22894 #if HAVE_PTHREADS < 7
22898 #define NULL (void*)0
22901 static void *task(p)
22904 return (void *) (p == NULL);
22911 /* pthread test function */
22912 #ifndef PTHREAD_CREATE_DETACHED
22913 #define PTHREAD_CREATE_DETACHED 1
22917 int detach = PTHREAD_CREATE_DETACHED;
22919 #if HAVE_PTHREADS > 4
22920 /* Final pthreads */
22921 pthread_attr_t attr;
22923 status = pthread_attr_init(&attr);
22924 if( status ) return status;
22926 #if HAVE_PTHREADS < 7
22927 status = pthread_attr_setdetachstate(&attr, &detach);
22928 if( status < 0 ) status = errno;
22930 status = pthread_attr_setdetachstate(&attr, detach);
22932 if( status ) return status;
22933 status = pthread_create( &t, &attr, task, NULL );
22934 #if HAVE_PTHREADS < 7
22935 if( status < 0 ) status = errno;
22937 if( status ) return status;
22939 /* Draft 4 pthreads */
22940 status = pthread_create( &t, pthread_attr_default, task, NULL );
22941 if( status ) return errno;
22943 /* give thread a chance to complete */
22944 /* it should remain joinable and hence detachable */
22947 status = pthread_detach( &t );
22948 if( status ) return errno;
22951 #ifdef HAVE_LINUX_THREADS
22952 pthread_kill_other_threads_np();
22961 rm -f conftest.$ac_objext conftest$ac_exeext
22962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22963 (eval $ac_link) 2>conftest.er1
22965 grep -v '^ *+' conftest.er1 >conftest.err
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
22970 { ac_try='test -z "$ac_c_werror_flag"
22971 || test ! -s conftest.err'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; } &&
22977 { ac_try='test -s conftest$ac_exeext'
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 ol_cv_pthread_threads=yes
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ol_cv_pthread_threads=no
22990 rm -f conftest.err conftest.$ac_objext \
22991 conftest$ac_exeext conftest.$ac_ext
22993 cat >conftest.$ac_ext <<_ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
23000 /* pthread test headers */
23001 #include <pthread.h>
23002 #if HAVE_PTHREADS < 7
23006 #define NULL (void*)0
23009 static void *task(p)
23012 return (void *) (p == NULL);
23016 int main(argc, argv)
23021 /* pthread test function */
23022 #ifndef PTHREAD_CREATE_DETACHED
23023 #define PTHREAD_CREATE_DETACHED 1
23027 int detach = PTHREAD_CREATE_DETACHED;
23029 #if HAVE_PTHREADS > 4
23030 /* Final pthreads */
23031 pthread_attr_t attr;
23033 status = pthread_attr_init(&attr);
23034 if( status ) return status;
23036 #if HAVE_PTHREADS < 7
23037 status = pthread_attr_setdetachstate(&attr, &detach);
23038 if( status < 0 ) status = errno;
23040 status = pthread_attr_setdetachstate(&attr, detach);
23042 if( status ) return status;
23043 status = pthread_create( &t, &attr, task, NULL );
23044 #if HAVE_PTHREADS < 7
23045 if( status < 0 ) status = errno;
23047 if( status ) return status;
23049 /* Draft 4 pthreads */
23050 status = pthread_create( &t, pthread_attr_default, task, NULL );
23051 if( status ) return errno;
23053 /* give thread a chance to complete */
23054 /* it should remain joinable and hence detachable */
23057 status = pthread_detach( &t );
23058 if( status ) return errno;
23061 #ifdef HAVE_LINUX_THREADS
23062 pthread_kill_other_threads_np();
23070 rm -f conftest$ac_exeext
23071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23072 (eval $ac_link) 2>&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ol_cv_pthread_threads=yes
23083 echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ( exit $ac_status )
23088 ol_cv_pthread_threads=no
23090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23097 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23098 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23100 if test $ol_cv_pthread_threads = yes ; then
23101 ol_link_pthreads="-threads"
23102 ol_link_threads=posix
23107 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23108 if test "$ol_link_threads" = no ; then
23109 # try -lpthreads -lmach -lexc -lc_r
23110 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23111 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23112 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23120 if test "$cross_compiling" = yes; then
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23128 /* pthread test headers */
23129 #include <pthread.h>
23130 #if HAVE_PTHREADS < 7
23134 #define NULL (void*)0
23137 static void *task(p)
23140 return (void *) (p == NULL);
23147 /* pthread test function */
23148 #ifndef PTHREAD_CREATE_DETACHED
23149 #define PTHREAD_CREATE_DETACHED 1
23153 int detach = PTHREAD_CREATE_DETACHED;
23155 #if HAVE_PTHREADS > 4
23156 /* Final pthreads */
23157 pthread_attr_t attr;
23159 status = pthread_attr_init(&attr);
23160 if( status ) return status;
23162 #if HAVE_PTHREADS < 7
23163 status = pthread_attr_setdetachstate(&attr, &detach);
23164 if( status < 0 ) status = errno;
23166 status = pthread_attr_setdetachstate(&attr, detach);
23168 if( status ) return status;
23169 status = pthread_create( &t, &attr, task, NULL );
23170 #if HAVE_PTHREADS < 7
23171 if( status < 0 ) status = errno;
23173 if( status ) return status;
23175 /* Draft 4 pthreads */
23176 status = pthread_create( &t, pthread_attr_default, task, NULL );
23177 if( status ) return errno;
23179 /* give thread a chance to complete */
23180 /* it should remain joinable and hence detachable */
23183 status = pthread_detach( &t );
23184 if( status ) return errno;
23187 #ifdef HAVE_LINUX_THREADS
23188 pthread_kill_other_threads_np();
23197 rm -f conftest.$ac_objext conftest$ac_exeext
23198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23199 (eval $ac_link) 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } &&
23206 { ac_try='test -z "$ac_c_werror_flag"
23207 || test ! -s conftest.err'
23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209 (eval $ac_try) 2>&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); }; } &&
23213 { ac_try='test -s conftest$ac_exeext'
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215 (eval $ac_try) 2>&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; }; then
23219 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23224 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23226 rm -f conftest.err conftest.$ac_objext \
23227 conftest$ac_exeext conftest.$ac_ext
23229 cat >conftest.$ac_ext <<_ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h. */
23236 /* pthread test headers */
23237 #include <pthread.h>
23238 #if HAVE_PTHREADS < 7
23242 #define NULL (void*)0
23245 static void *task(p)
23248 return (void *) (p == NULL);
23252 int main(argc, argv)
23257 /* pthread test function */
23258 #ifndef PTHREAD_CREATE_DETACHED
23259 #define PTHREAD_CREATE_DETACHED 1
23263 int detach = PTHREAD_CREATE_DETACHED;
23265 #if HAVE_PTHREADS > 4
23266 /* Final pthreads */
23267 pthread_attr_t attr;
23269 status = pthread_attr_init(&attr);
23270 if( status ) return status;
23272 #if HAVE_PTHREADS < 7
23273 status = pthread_attr_setdetachstate(&attr, &detach);
23274 if( status < 0 ) status = errno;
23276 status = pthread_attr_setdetachstate(&attr, detach);
23278 if( status ) return status;
23279 status = pthread_create( &t, &attr, task, NULL );
23280 #if HAVE_PTHREADS < 7
23281 if( status < 0 ) status = errno;
23283 if( status ) return status;
23285 /* Draft 4 pthreads */
23286 status = pthread_create( &t, pthread_attr_default, task, NULL );
23287 if( status ) return errno;
23289 /* give thread a chance to complete */
23290 /* it should remain joinable and hence detachable */
23293 status = pthread_detach( &t );
23294 if( status ) return errno;
23297 #ifdef HAVE_LINUX_THREADS
23298 pthread_kill_other_threads_np();
23306 rm -f conftest$ac_exeext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308 (eval $ac_link) 2>&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }; then
23317 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23319 echo "$as_me: program exited with status $ac_status" >&5
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 ( exit $ac_status )
23324 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23333 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23334 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23336 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23337 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23338 ol_link_threads=posix
23342 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23343 if test "$ol_link_threads" = no ; then
23344 # try -lpthreads -lmach -lexc
23345 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23346 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23347 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 LIBS="-lpthreads -lmach -lexc $LIBS"
23355 if test "$cross_compiling" = yes; then
23356 cat >conftest.$ac_ext <<_ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23363 /* pthread test headers */
23364 #include <pthread.h>
23365 #if HAVE_PTHREADS < 7
23369 #define NULL (void*)0
23372 static void *task(p)
23375 return (void *) (p == NULL);
23382 /* pthread test function */
23383 #ifndef PTHREAD_CREATE_DETACHED
23384 #define PTHREAD_CREATE_DETACHED 1
23388 int detach = PTHREAD_CREATE_DETACHED;
23390 #if HAVE_PTHREADS > 4
23391 /* Final pthreads */
23392 pthread_attr_t attr;
23394 status = pthread_attr_init(&attr);
23395 if( status ) return status;
23397 #if HAVE_PTHREADS < 7
23398 status = pthread_attr_setdetachstate(&attr, &detach);
23399 if( status < 0 ) status = errno;
23401 status = pthread_attr_setdetachstate(&attr, detach);
23403 if( status ) return status;
23404 status = pthread_create( &t, &attr, task, NULL );
23405 #if HAVE_PTHREADS < 7
23406 if( status < 0 ) status = errno;
23408 if( status ) return status;
23410 /* Draft 4 pthreads */
23411 status = pthread_create( &t, pthread_attr_default, task, NULL );
23412 if( status ) return errno;
23414 /* give thread a chance to complete */
23415 /* it should remain joinable and hence detachable */
23418 status = pthread_detach( &t );
23419 if( status ) return errno;
23422 #ifdef HAVE_LINUX_THREADS
23423 pthread_kill_other_threads_np();
23432 rm -f conftest.$ac_objext conftest$ac_exeext
23433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23434 (eval $ac_link) 2>conftest.er1
23436 grep -v '^ *+' conftest.er1 >conftest.err
23438 cat conftest.err >&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } &&
23441 { ac_try='test -z "$ac_c_werror_flag"
23442 || test ! -s conftest.err'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; } &&
23448 { ac_try='test -s conftest$ac_exeext'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }; then
23454 ol_cv_pthread_lpthreads_lmach_lexc=yes
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23459 ol_cv_pthread_lpthreads_lmach_lexc=no
23461 rm -f conftest.err conftest.$ac_objext \
23462 conftest$ac_exeext conftest.$ac_ext
23464 cat >conftest.$ac_ext <<_ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h. */
23471 /* pthread test headers */
23472 #include <pthread.h>
23473 #if HAVE_PTHREADS < 7
23477 #define NULL (void*)0
23480 static void *task(p)
23483 return (void *) (p == NULL);
23487 int main(argc, argv)
23492 /* pthread test function */
23493 #ifndef PTHREAD_CREATE_DETACHED
23494 #define PTHREAD_CREATE_DETACHED 1
23498 int detach = PTHREAD_CREATE_DETACHED;
23500 #if HAVE_PTHREADS > 4
23501 /* Final pthreads */
23502 pthread_attr_t attr;
23504 status = pthread_attr_init(&attr);
23505 if( status ) return status;
23507 #if HAVE_PTHREADS < 7
23508 status = pthread_attr_setdetachstate(&attr, &detach);
23509 if( status < 0 ) status = errno;
23511 status = pthread_attr_setdetachstate(&attr, detach);
23513 if( status ) return status;
23514 status = pthread_create( &t, &attr, task, NULL );
23515 #if HAVE_PTHREADS < 7
23516 if( status < 0 ) status = errno;
23518 if( status ) return status;
23520 /* Draft 4 pthreads */
23521 status = pthread_create( &t, pthread_attr_default, task, NULL );
23522 if( status ) return errno;
23524 /* give thread a chance to complete */
23525 /* it should remain joinable and hence detachable */
23528 status = pthread_detach( &t );
23529 if( status ) return errno;
23532 #ifdef HAVE_LINUX_THREADS
23533 pthread_kill_other_threads_np();
23541 rm -f conftest$ac_exeext
23542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23543 (eval $ac_link) 2>&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548 (eval $ac_try) 2>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; }; then
23552 ol_cv_pthread_lpthreads_lmach_lexc=yes
23554 echo "$as_me: program exited with status $ac_status" >&5
23555 echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23558 ( exit $ac_status )
23559 ol_cv_pthread_lpthreads_lmach_lexc=no
23561 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23568 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23569 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23571 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23572 ol_link_pthreads="-lpthreads -lmach -lexc"
23573 ol_link_threads=posix
23577 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23578 if test "$ol_link_threads" = no ; then
23579 # try -lpthreads -lexc
23580 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23581 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23582 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23588 LIBS="-lpthreads -lexc $LIBS"
23590 if test "$cross_compiling" = yes; then
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23598 /* pthread test headers */
23599 #include <pthread.h>
23600 #if HAVE_PTHREADS < 7
23604 #define NULL (void*)0
23607 static void *task(p)
23610 return (void *) (p == NULL);
23617 /* pthread test function */
23618 #ifndef PTHREAD_CREATE_DETACHED
23619 #define PTHREAD_CREATE_DETACHED 1
23623 int detach = PTHREAD_CREATE_DETACHED;
23625 #if HAVE_PTHREADS > 4
23626 /* Final pthreads */
23627 pthread_attr_t attr;
23629 status = pthread_attr_init(&attr);
23630 if( status ) return status;
23632 #if HAVE_PTHREADS < 7
23633 status = pthread_attr_setdetachstate(&attr, &detach);
23634 if( status < 0 ) status = errno;
23636 status = pthread_attr_setdetachstate(&attr, detach);
23638 if( status ) return status;
23639 status = pthread_create( &t, &attr, task, NULL );
23640 #if HAVE_PTHREADS < 7
23641 if( status < 0 ) status = errno;
23643 if( status ) return status;
23645 /* Draft 4 pthreads */
23646 status = pthread_create( &t, pthread_attr_default, task, NULL );
23647 if( status ) return errno;
23649 /* give thread a chance to complete */
23650 /* it should remain joinable and hence detachable */
23653 status = pthread_detach( &t );
23654 if( status ) return errno;
23657 #ifdef HAVE_LINUX_THREADS
23658 pthread_kill_other_threads_np();
23667 rm -f conftest.$ac_objext conftest$ac_exeext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23669 (eval $ac_link) 2>conftest.er1
23671 grep -v '^ *+' conftest.er1 >conftest.err
23673 cat conftest.err >&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
23676 { ac_try='test -z "$ac_c_werror_flag"
23677 || test ! -s conftest.err'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest$ac_exeext'
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ol_cv_pthread_lpthreads_lexc=yes
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ol_cv_pthread_lpthreads_lexc=no
23696 rm -f conftest.err conftest.$ac_objext \
23697 conftest$ac_exeext conftest.$ac_ext
23699 cat >conftest.$ac_ext <<_ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23706 /* pthread test headers */
23707 #include <pthread.h>
23708 #if HAVE_PTHREADS < 7
23712 #define NULL (void*)0
23715 static void *task(p)
23718 return (void *) (p == NULL);
23722 int main(argc, argv)
23727 /* pthread test function */
23728 #ifndef PTHREAD_CREATE_DETACHED
23729 #define PTHREAD_CREATE_DETACHED 1
23733 int detach = PTHREAD_CREATE_DETACHED;
23735 #if HAVE_PTHREADS > 4
23736 /* Final pthreads */
23737 pthread_attr_t attr;
23739 status = pthread_attr_init(&attr);
23740 if( status ) return status;
23742 #if HAVE_PTHREADS < 7
23743 status = pthread_attr_setdetachstate(&attr, &detach);
23744 if( status < 0 ) status = errno;
23746 status = pthread_attr_setdetachstate(&attr, detach);
23748 if( status ) return status;
23749 status = pthread_create( &t, &attr, task, NULL );
23750 #if HAVE_PTHREADS < 7
23751 if( status < 0 ) status = errno;
23753 if( status ) return status;
23755 /* Draft 4 pthreads */
23756 status = pthread_create( &t, pthread_attr_default, task, NULL );
23757 if( status ) return errno;
23759 /* give thread a chance to complete */
23760 /* it should remain joinable and hence detachable */
23763 status = pthread_detach( &t );
23764 if( status ) return errno;
23767 #ifdef HAVE_LINUX_THREADS
23768 pthread_kill_other_threads_np();
23776 rm -f conftest$ac_exeext
23777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23778 (eval $ac_link) 2>&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23783 (eval $ac_try) 2>&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 ol_cv_pthread_lpthreads_lexc=yes
23789 echo "$as_me: program exited with status $ac_status" >&5
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ( exit $ac_status )
23794 ol_cv_pthread_lpthreads_lexc=no
23796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23803 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23804 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23806 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23807 ol_link_pthreads="-lpthreads -lexc"
23808 ol_link_threads=posix
23813 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23814 if test "$ol_link_threads" = no ; then
23816 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23817 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23818 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23819 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 LIBS="-lpthreads $LIBS"
23826 if test "$cross_compiling" = yes; then
23827 cat >conftest.$ac_ext <<_ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23834 /* pthread test headers */
23835 #include <pthread.h>
23836 #if HAVE_PTHREADS < 7
23840 #define NULL (void*)0
23843 static void *task(p)
23846 return (void *) (p == NULL);
23853 /* pthread test function */
23854 #ifndef PTHREAD_CREATE_DETACHED
23855 #define PTHREAD_CREATE_DETACHED 1
23859 int detach = PTHREAD_CREATE_DETACHED;
23861 #if HAVE_PTHREADS > 4
23862 /* Final pthreads */
23863 pthread_attr_t attr;
23865 status = pthread_attr_init(&attr);
23866 if( status ) return status;
23868 #if HAVE_PTHREADS < 7
23869 status = pthread_attr_setdetachstate(&attr, &detach);
23870 if( status < 0 ) status = errno;
23872 status = pthread_attr_setdetachstate(&attr, detach);
23874 if( status ) return status;
23875 status = pthread_create( &t, &attr, task, NULL );
23876 #if HAVE_PTHREADS < 7
23877 if( status < 0 ) status = errno;
23879 if( status ) return status;
23881 /* Draft 4 pthreads */
23882 status = pthread_create( &t, pthread_attr_default, task, NULL );
23883 if( status ) return errno;
23885 /* give thread a chance to complete */
23886 /* it should remain joinable and hence detachable */
23889 status = pthread_detach( &t );
23890 if( status ) return errno;
23893 #ifdef HAVE_LINUX_THREADS
23894 pthread_kill_other_threads_np();
23903 rm -f conftest.$ac_objext conftest$ac_exeext
23904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23905 (eval $ac_link) 2>conftest.er1
23907 grep -v '^ *+' conftest.er1 >conftest.err
23909 cat conftest.err >&5
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } &&
23912 { ac_try='test -z "$ac_c_werror_flag"
23913 || test ! -s conftest.err'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; } &&
23919 { ac_try='test -s conftest$ac_exeext'
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; }; then
23925 ol_cv_pthread_lib_lpthreads=yes
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 ol_cv_pthread_lib_lpthreads=no
23932 rm -f conftest.err conftest.$ac_objext \
23933 conftest$ac_exeext conftest.$ac_ext
23935 cat >conftest.$ac_ext <<_ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23942 /* pthread test headers */
23943 #include <pthread.h>
23944 #if HAVE_PTHREADS < 7
23948 #define NULL (void*)0
23951 static void *task(p)
23954 return (void *) (p == NULL);
23958 int main(argc, argv)
23963 /* pthread test function */
23964 #ifndef PTHREAD_CREATE_DETACHED
23965 #define PTHREAD_CREATE_DETACHED 1
23969 int detach = PTHREAD_CREATE_DETACHED;
23971 #if HAVE_PTHREADS > 4
23972 /* Final pthreads */
23973 pthread_attr_t attr;
23975 status = pthread_attr_init(&attr);
23976 if( status ) return status;
23978 #if HAVE_PTHREADS < 7
23979 status = pthread_attr_setdetachstate(&attr, &detach);
23980 if( status < 0 ) status = errno;
23982 status = pthread_attr_setdetachstate(&attr, detach);
23984 if( status ) return status;
23985 status = pthread_create( &t, &attr, task, NULL );
23986 #if HAVE_PTHREADS < 7
23987 if( status < 0 ) status = errno;
23989 if( status ) return status;
23991 /* Draft 4 pthreads */
23992 status = pthread_create( &t, pthread_attr_default, task, NULL );
23993 if( status ) return errno;
23995 /* give thread a chance to complete */
23996 /* it should remain joinable and hence detachable */
23999 status = pthread_detach( &t );
24000 if( status ) return errno;
24003 #ifdef HAVE_LINUX_THREADS
24004 pthread_kill_other_threads_np();
24012 rm -f conftest$ac_exeext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014 (eval $ac_link) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 ol_cv_pthread_lib_lpthreads=yes
24025 echo "$as_me: program exited with status $ac_status" >&5
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24029 ( exit $ac_status )
24030 ol_cv_pthread_lib_lpthreads=no
24032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24039 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24040 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24042 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24043 ol_link_pthreads="-lpthreads"
24044 ol_link_threads=posix
24049 if test $ol_link_threads != no ; then
24050 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24052 save_CPPFLAGS="$CPPFLAGS"
24054 LIBS="$LTHREAD_LIBS $LIBS"
24059 for ac_func in sched_yield pthread_yield thr_yield
24061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24062 echo "$as_me:$LINENO: checking for $ac_func" >&5
24063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24064 if eval "test \"\${$as_ac_var+set}\" = set"; then
24065 echo $ECHO_N "(cached) $ECHO_C" >&6
24067 cat >conftest.$ac_ext <<_ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h. */
24073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24075 #define $ac_func innocuous_$ac_func
24077 /* System header to define __stub macros and hopefully few prototypes,
24078 which can conflict with char $ac_func (); below.
24079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24080 <limits.h> exists even on freestanding compilers. */
24083 # include <limits.h>
24085 # include <assert.h>
24090 /* Override any gcc2 internal prototype to avoid an error. */
24095 /* We use char because int might match the return type of a gcc2
24096 builtin and then its argument prototype would still apply. */
24098 /* The GNU C library defines this for functions which it implements
24099 to always fail with ENOSYS. Some functions are actually named
24100 something starting with __ and the normal name is an alias. */
24101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24104 char (*f) () = $ac_func;
24113 return f != $ac_func;
24118 rm -f conftest.$ac_objext conftest$ac_exeext
24119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24120 (eval $ac_link) 2>conftest.er1
24122 grep -v '^ *+' conftest.er1 >conftest.err
24124 cat conftest.err >&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
24127 { ac_try='test -z "$ac_c_werror_flag"
24128 || test ! -s conftest.err'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; } &&
24134 { ac_try='test -s conftest$ac_exeext'
24135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136 (eval $ac_try) 2>&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); }; }; then
24140 eval "$as_ac_var=yes"
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24145 eval "$as_ac_var=no"
24147 rm -f conftest.err conftest.$ac_objext \
24148 conftest$ac_exeext conftest.$ac_ext
24150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24152 if test `eval echo '${'$as_ac_var'}'` = yes; then
24153 cat >>confdefs.h <<_ACEOF
24154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24161 if test $ac_cv_func_sched_yield = no &&
24162 test $ac_cv_func_pthread_yield = no &&
24163 test $ac_cv_func_thr_yield = no ; then
24164 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24165 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24166 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24167 echo $ECHO_N "(cached) $ECHO_C" >&6
24169 ac_check_lib_save_LIBS=$LIBS
24171 cat >conftest.$ac_ext <<_ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24178 /* Override any gcc2 internal prototype to avoid an error. */
24182 /* We use char because int might match the return type of a gcc2
24183 builtin and then its argument prototype would still apply. */
24184 char sched_yield ();
24193 rm -f conftest.$ac_objext conftest$ac_exeext
24194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24195 (eval $ac_link) 2>conftest.er1
24197 grep -v '^ *+' conftest.er1 >conftest.err
24199 cat conftest.err >&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } &&
24202 { ac_try='test -z "$ac_c_werror_flag"
24203 || test ! -s conftest.err'
24204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205 (eval $ac_try) 2>&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; } &&
24209 { ac_try='test -s conftest$ac_exeext'
24210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211 (eval $ac_try) 2>&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; }; then
24215 ac_cv_lib_rt_sched_yield=yes
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 ac_cv_lib_rt_sched_yield=no
24222 rm -f conftest.err conftest.$ac_objext \
24223 conftest$ac_exeext conftest.$ac_ext
24224 LIBS=$ac_check_lib_save_LIBS
24226 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24227 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24228 if test $ac_cv_lib_rt_sched_yield = yes; then
24229 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24231 cat >>confdefs.h <<\_ACEOF
24232 #define HAVE_SCHED_YIELD 1
24235 ac_cv_func_sched_yield=yes
24237 ac_cv_func_sched_yield=no
24241 if test $ac_cv_func_sched_yield = no &&
24242 test $ac_cv_func_pthread_yield = no &&
24243 test "$ac_cv_func_thr_yield" = no ; then
24244 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24245 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24250 for ac_func in pthread_kill pthread_rwlock_destroy
24252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24253 echo "$as_me:$LINENO: checking for $ac_func" >&5
24254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24255 if eval "test \"\${$as_ac_var+set}\" = set"; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 cat >conftest.$ac_ext <<_ACEOF
24261 cat confdefs.h >>conftest.$ac_ext
24262 cat >>conftest.$ac_ext <<_ACEOF
24263 /* end confdefs.h. */
24264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24266 #define $ac_func innocuous_$ac_func
24268 /* System header to define __stub macros and hopefully few prototypes,
24269 which can conflict with char $ac_func (); below.
24270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24271 <limits.h> exists even on freestanding compilers. */
24274 # include <limits.h>
24276 # include <assert.h>
24281 /* Override any gcc2 internal prototype to avoid an error. */
24286 /* We use char because int might match the return type of a gcc2
24287 builtin and then its argument prototype would still apply. */
24289 /* The GNU C library defines this for functions which it implements
24290 to always fail with ENOSYS. Some functions are actually named
24291 something starting with __ and the normal name is an alias. */
24292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24295 char (*f) () = $ac_func;
24304 return f != $ac_func;
24309 rm -f conftest.$ac_objext conftest$ac_exeext
24310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24311 (eval $ac_link) 2>conftest.er1
24313 grep -v '^ *+' conftest.er1 >conftest.err
24315 cat conftest.err >&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } &&
24318 { ac_try='test -z "$ac_c_werror_flag"
24319 || test ! -s conftest.err'
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; } &&
24325 { ac_try='test -s conftest$ac_exeext'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 eval "$as_ac_var=yes"
24333 echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24336 eval "$as_ac_var=no"
24338 rm -f conftest.err conftest.$ac_objext \
24339 conftest$ac_exeext conftest.$ac_ext
24341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24343 if test `eval echo '${'$as_ac_var'}'` = yes; then
24344 cat >>confdefs.h <<_ACEOF
24345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24352 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24353 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24354 if test "${ol_cv_func_pthread_detach+set}" = set; then
24355 echo $ECHO_N "(cached) $ECHO_C" >&6
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24365 #include <pthread.h>
24367 #define NULL (void*)0
24373 pthread_detach(NULL);
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24380 (eval $ac_link) 2>conftest.er1
24382 grep -v '^ *+' conftest.er1 >conftest.err
24384 cat conftest.err >&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } &&
24387 { ac_try='test -z "$ac_c_werror_flag"
24388 || test ! -s conftest.err'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; } &&
24394 { ac_try='test -s conftest$ac_exeext'
24395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396 (eval $ac_try) 2>&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); }; }; then
24400 ol_cv_func_pthread_detach=yes
24402 echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24405 ol_cv_func_pthread_detach=no
24407 rm -f conftest.err conftest.$ac_objext \
24408 conftest$ac_exeext conftest.$ac_ext
24411 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24412 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24414 if test $ol_cv_func_pthread_detach = no ; then
24415 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24416 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24417 { (exit 1); exit 1; }; }
24421 cat >>confdefs.h <<\_ACEOF
24422 #define HAVE_PTHREAD_DETACH 1
24431 pthread_setconcurrency \
24432 pthread_getconcurrency \
24433 thr_setconcurrency \
24434 thr_getconcurrency \
24437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24438 echo "$as_me:$LINENO: checking for $ac_func" >&5
24439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24440 if eval "test \"\${$as_ac_var+set}\" = set"; then
24441 echo $ECHO_N "(cached) $ECHO_C" >&6
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24451 #define $ac_func innocuous_$ac_func
24453 /* System header to define __stub macros and hopefully few prototypes,
24454 which can conflict with char $ac_func (); below.
24455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24456 <limits.h> exists even on freestanding compilers. */
24459 # include <limits.h>
24461 # include <assert.h>
24466 /* Override any gcc2 internal prototype to avoid an error. */
24471 /* We use char because int might match the return type of a gcc2
24472 builtin and then its argument prototype would still apply. */
24474 /* The GNU C library defines this for functions which it implements
24475 to always fail with ENOSYS. Some functions are actually named
24476 something starting with __ and the normal name is an alias. */
24477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24480 char (*f) () = $ac_func;
24489 return f != $ac_func;
24494 rm -f conftest.$ac_objext conftest$ac_exeext
24495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24496 (eval $ac_link) 2>conftest.er1
24498 grep -v '^ *+' conftest.er1 >conftest.err
24500 cat conftest.err >&5
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); } &&
24503 { ac_try='test -z "$ac_c_werror_flag"
24504 || test ! -s conftest.err'
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; } &&
24510 { ac_try='test -s conftest$ac_exeext'
24511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512 (eval $ac_try) 2>&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); }; }; then
24516 eval "$as_ac_var=yes"
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 eval "$as_ac_var=no"
24523 rm -f conftest.err conftest.$ac_objext \
24524 conftest$ac_exeext conftest.$ac_ext
24526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24528 if test `eval echo '${'$as_ac_var'}'` = yes; then
24529 cat >>confdefs.h <<_ACEOF
24530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24539 for ac_func in pthread_kill_other_threads_np
24541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24542 echo "$as_me:$LINENO: checking for $ac_func" >&5
24543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24544 if eval "test \"\${$as_ac_var+set}\" = set"; then
24545 echo $ECHO_N "(cached) $ECHO_C" >&6
24547 cat >conftest.$ac_ext <<_ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24555 #define $ac_func innocuous_$ac_func
24557 /* System header to define __stub macros and hopefully few prototypes,
24558 which can conflict with char $ac_func (); below.
24559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24560 <limits.h> exists even on freestanding compilers. */
24563 # include <limits.h>
24565 # include <assert.h>
24570 /* Override any gcc2 internal prototype to avoid an error. */
24575 /* We use char because int might match the return type of a gcc2
24576 builtin and then its argument prototype would still apply. */
24578 /* The GNU C library defines this for functions which it implements
24579 to always fail with ENOSYS. Some functions are actually named
24580 something starting with __ and the normal name is an alias. */
24581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24584 char (*f) () = $ac_func;
24593 return f != $ac_func;
24598 rm -f conftest.$ac_objext conftest$ac_exeext
24599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24600 (eval $ac_link) 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
24607 { ac_try='test -z "$ac_c_werror_flag"
24608 || test ! -s conftest.err'
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } &&
24614 { ac_try='test -s conftest$ac_exeext'
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24620 eval "$as_ac_var=yes"
24622 echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24625 eval "$as_ac_var=no"
24627 rm -f conftest.err conftest.$ac_objext \
24628 conftest$ac_exeext conftest.$ac_ext
24630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24632 if test `eval echo '${'$as_ac_var'}'` = yes; then
24633 cat >>confdefs.h <<_ACEOF
24634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24640 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24641 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24642 if test "${ol_cv_sys_linux_threads+set}" = set; then
24643 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24647 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24648 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24653 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24654 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24655 if test "${ol_cv_linux_threads+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24659 if test $ol_cv_header_linux_threads = yes &&
24660 test $ol_cv_sys_linux_threads = yes; then
24661 ol_cv_linux_threads=yes
24662 elif test $ol_cv_header_linux_threads = no &&
24663 test $ol_cv_sys_linux_threads = no; then
24664 ol_cv_linux_threads=no
24666 ol_cv_linux_threads=error
24670 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24671 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24674 if test $ol_cv_linux_threads = error; then
24675 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24676 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24677 { (exit 1); exit 1; }; };
24680 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24681 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24682 if test "${ol_cv_pthread_create_works+set}" = set; then
24683 echo $ECHO_N "(cached) $ECHO_C" >&6
24686 if test "$cross_compiling" = yes; then
24687 ol_cv_pthread_create_works=yes
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24696 /* pthread test headers */
24697 #include <pthread.h>
24698 #if HAVE_PTHREADS < 7
24702 #define NULL (void*)0
24705 static void *task(p)
24708 return (void *) (p == NULL);
24712 int main(argc, argv)
24717 /* pthread test function */
24718 #ifndef PTHREAD_CREATE_DETACHED
24719 #define PTHREAD_CREATE_DETACHED 1
24723 int detach = PTHREAD_CREATE_DETACHED;
24725 #if HAVE_PTHREADS > 4
24726 /* Final pthreads */
24727 pthread_attr_t attr;
24729 status = pthread_attr_init(&attr);
24730 if( status ) return status;
24732 #if HAVE_PTHREADS < 7
24733 status = pthread_attr_setdetachstate(&attr, &detach);
24734 if( status < 0 ) status = errno;
24736 status = pthread_attr_setdetachstate(&attr, detach);
24738 if( status ) return status;
24739 status = pthread_create( &t, &attr, task, NULL );
24740 #if HAVE_PTHREADS < 7
24741 if( status < 0 ) status = errno;
24743 if( status ) return status;
24745 /* Draft 4 pthreads */
24746 status = pthread_create( &t, pthread_attr_default, task, NULL );
24747 if( status ) return errno;
24749 /* give thread a chance to complete */
24750 /* it should remain joinable and hence detachable */
24753 status = pthread_detach( &t );
24754 if( status ) return errno;
24757 #ifdef HAVE_LINUX_THREADS
24758 pthread_kill_other_threads_np();
24766 rm -f conftest$ac_exeext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24768 (eval $ac_link) 2>&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; }; then
24777 ol_cv_pthread_create_works=yes
24779 echo "$as_me: program exited with status $ac_status" >&5
24780 echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24783 ( exit $ac_status )
24784 ol_cv_pthread_create_works=no
24786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24789 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24790 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24792 if test $ol_cv_pthread_create_works = no ; then
24793 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24794 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24795 { (exit 1); exit 1; }; }
24798 ol_replace_broken_yield=no
24801 ol_replace_broken_yield=yes
24805 if test $ol_replace_broken_yield = yes ; then
24807 cat >>confdefs.h <<\_ACEOF
24808 #define REPLACE_BROKEN_YIELD 1
24813 if test $ol_with_yielding_select = auto ; then
24814 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24815 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24816 if test "${ol_cv_pthread_select_yields+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24820 if test "$cross_compiling" = yes; then
24821 ol_cv_pthread_select_yields=cross
24823 cat >conftest.$ac_ext <<_ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24830 #include <sys/types.h>
24831 #include <sys/time.h>
24832 #include <unistd.h>
24833 #include <pthread.h>
24835 #define NULL (void*) 0
24838 static int fildes[2];
24840 static void *task(p)
24852 FD_SET(fildes[0], &rfds);
24854 /* we're not interested in any fds */
24855 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24862 exit(0); /* if we exit here, the select blocked the whole process */
24865 int main(argc, argv)
24871 /* create a pipe to select */
24872 if(pipe(&fildes[0])) {
24877 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24878 (void) pthread_setconcurrency(2);
24880 #ifdef HAVE_THR_SETCONCURRENCY
24881 /* Set Solaris LWP concurrency to 2 */
24882 thr_setconcurrency(2);
24886 #if HAVE_PTHREADS < 6
24887 pthread_create(&t, pthread_attr_default, task, NULL);
24889 pthread_create(&t, NULL, task, NULL);
24892 /* make sure task runs first */
24895 #elif defined( HAVE_SCHED_YIELD )
24897 #elif defined( HAVE_PTHREAD_YIELD )
24904 rm -f conftest$ac_exeext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24906 (eval $ac_link) 2>&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ol_cv_pthread_select_yields=no
24917 echo "$as_me: program exited with status $ac_status" >&5
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ( exit $ac_status )
24922 ol_cv_pthread_select_yields=yes
24924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24927 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24928 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24930 if test $ol_cv_pthread_select_yields = cross ; then
24931 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24932 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24933 { (exit 1); exit 1; }; }
24936 if test $ol_cv_pthread_select_yields = yes ; then
24937 ol_with_yielding_select=yes
24941 CPPFLAGS="$save_CPPFLAGS"
24944 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24945 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24946 { (exit 1); exit 1; }; }
24950 if test $ol_with_threads = posix ; then
24951 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24952 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24953 { (exit 1); exit 1; }; }
24958 case $ol_with_threads in auto | yes | mach)
24962 for ac_header in mach/cthreads.h cthreads.h
24964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24966 echo "$as_me:$LINENO: checking for $ac_header" >&5
24967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24974 # Is the header compilable?
24975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24977 cat >conftest.$ac_ext <<_ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 $ac_includes_default
24984 #include <$ac_header>
24986 rm -f conftest.$ac_objext
24987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24988 (eval $ac_compile) 2>conftest.er1
24990 grep -v '^ *+' conftest.er1 >conftest.err
24992 cat conftest.err >&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } &&
24995 { ac_try='test -z "$ac_c_werror_flag"
24996 || test ! -s conftest.err'
24997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; } &&
25002 { ac_try='test -s conftest.$ac_objext'
25003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25004 (eval $ac_try) 2>&5
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); }; }; then
25008 ac_header_compiler=yes
25010 echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25013 ac_header_compiler=no
25015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25017 echo "${ECHO_T}$ac_header_compiler" >&6
25019 # Is the header present?
25020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 #include <$ac_header>
25030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25033 grep -v '^ *+' conftest.er1 >conftest.err
25035 cat conftest.err >&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } >/dev/null; then
25038 if test -s conftest.err; then
25039 ac_cpp_err=$ac_c_preproc_warn_flag
25040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25047 if test -z "$ac_cpp_err"; then
25048 ac_header_preproc=yes
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25053 ac_header_preproc=no
25055 rm -f conftest.err conftest.$ac_ext
25056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25057 echo "${ECHO_T}$ac_header_preproc" >&6
25059 # So? What about this header?
25060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25066 ac_header_preproc=yes
25069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25083 ## ------------------------------------------ ##
25084 ## Report this to the AC_PACKAGE_NAME lists. ##
25085 ## ------------------------------------------ ##
25088 sed "s/^/$as_me: WARNING: /" >&2
25091 echo "$as_me:$LINENO: checking for $ac_header" >&5
25092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25096 eval "$as_ac_Header=\$ac_header_preproc"
25098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25103 cat >>confdefs.h <<_ACEOF
25104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25111 if test $ac_cv_header_mach_cthreads_h = yes ; then
25112 ol_with_threads=found
25114 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25115 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25116 if test "${ac_cv_func_cthread_fork+set}" = set; then
25117 echo $ECHO_N "(cached) $ECHO_C" >&6
25119 cat >conftest.$ac_ext <<_ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25125 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25127 #define cthread_fork innocuous_cthread_fork
25129 /* System header to define __stub macros and hopefully few prototypes,
25130 which can conflict with char cthread_fork (); below.
25131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25132 <limits.h> exists even on freestanding compilers. */
25135 # include <limits.h>
25137 # include <assert.h>
25140 #undef cthread_fork
25142 /* Override any gcc2 internal prototype to avoid an error. */
25147 /* We use char because int might match the return type of a gcc2
25148 builtin and then its argument prototype would still apply. */
25149 char cthread_fork ();
25150 /* The GNU C library defines this for functions which it implements
25151 to always fail with ENOSYS. Some functions are actually named
25152 something starting with __ and the normal name is an alias. */
25153 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25156 char (*f) () = cthread_fork;
25165 return f != cthread_fork;
25170 rm -f conftest.$ac_objext conftest$ac_exeext
25171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25172 (eval $ac_link) 2>conftest.er1
25174 grep -v '^ *+' conftest.er1 >conftest.err
25176 cat conftest.err >&5
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); } &&
25179 { ac_try='test -z "$ac_c_werror_flag"
25180 || test ! -s conftest.err'
25181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182 (eval $ac_try) 2>&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); }; } &&
25186 { ac_try='test -s conftest$ac_exeext'
25187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188 (eval $ac_try) 2>&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); }; }; then
25192 ac_cv_func_cthread_fork=yes
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25197 ac_cv_func_cthread_fork=no
25199 rm -f conftest.err conftest.$ac_objext \
25200 conftest$ac_exeext conftest.$ac_ext
25202 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25203 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25204 if test $ac_cv_func_cthread_fork = yes; then
25205 ol_link_threads=yes
25209 if test $ol_link_threads = no ; then
25210 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25211 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25212 if test "${ol_cv_cthread_all_load+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25217 LIBS="-all_load $LIBS"
25218 cat >conftest.$ac_ext <<_ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h. */
25224 #include <mach/cthreads.h>
25229 cthread_fork((void *)0, (void *)0);
25235 rm -f conftest.$ac_objext conftest$ac_exeext
25236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25237 (eval $ac_link) 2>conftest.er1
25239 grep -v '^ *+' conftest.er1 >conftest.err
25241 cat conftest.err >&5
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); } &&
25244 { ac_try='test -z "$ac_c_werror_flag"
25245 || test ! -s conftest.err'
25246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25247 (eval $ac_try) 2>&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); }; } &&
25251 { ac_try='test -s conftest$ac_exeext'
25252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25253 (eval $ac_try) 2>&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }; }; then
25257 ol_cv_cthread_all_load=yes
25259 echo "$as_me: failed program was:" >&5
25260 sed 's/^/| /' conftest.$ac_ext >&5
25262 ol_cv_cthread_all_load=no
25264 rm -f conftest.err conftest.$ac_objext \
25265 conftest$ac_exeext conftest.$ac_ext
25269 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25270 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25272 if test $ol_cv_cthread_all_load = yes ; then
25273 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25274 ol_link_threads=mach
25275 ol_with_threads=found
25279 elif test $ac_cv_header_cthreads_h = yes ; then
25281 ol_with_threads=found
25284 LIBS="$LIBS -lthreads"
25285 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25286 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25287 if test "${ac_cv_func_cthread_fork+set}" = set; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 cat >conftest.$ac_ext <<_ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25298 #define cthread_fork innocuous_cthread_fork
25300 /* System header to define __stub macros and hopefully few prototypes,
25301 which can conflict with char cthread_fork (); below.
25302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25303 <limits.h> exists even on freestanding compilers. */
25306 # include <limits.h>
25308 # include <assert.h>
25311 #undef cthread_fork
25313 /* Override any gcc2 internal prototype to avoid an error. */
25318 /* We use char because int might match the return type of a gcc2
25319 builtin and then its argument prototype would still apply. */
25320 char cthread_fork ();
25321 /* The GNU C library defines this for functions which it implements
25322 to always fail with ENOSYS. Some functions are actually named
25323 something starting with __ and the normal name is an alias. */
25324 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25327 char (*f) () = cthread_fork;
25336 return f != cthread_fork;
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25343 (eval $ac_link) 2>conftest.er1
25345 grep -v '^ *+' conftest.er1 >conftest.err
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
25350 { ac_try='test -z "$ac_c_werror_flag"
25351 || test ! -s conftest.err'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest$ac_exeext'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_cv_func_cthread_fork=yes
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25368 ac_cv_func_cthread_fork=no
25370 rm -f conftest.err conftest.$ac_objext \
25371 conftest$ac_exeext conftest.$ac_ext
25373 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25374 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25375 if test $ac_cv_func_cthread_fork = yes; then
25376 ol_link_threads=yes
25381 if test $ol_link_threads = yes ; then
25382 LTHREAD_LIBS="-lthreads"
25383 ol_link_threads=mach
25384 ol_with_threads=found
25386 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25387 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25388 { (exit 1); exit 1; }; }
25391 elif test $ol_with_threads = mach ; then
25392 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25393 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25394 { (exit 1); exit 1; }; }
25397 if test $ol_link_threads = mach ; then
25399 cat >>confdefs.h <<\_ACEOF
25400 #define HAVE_MACH_CTHREADS 1
25403 elif test $ol_with_threads = found ; then
25404 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25405 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25406 { (exit 1); exit 1; }; }
25411 case $ol_with_threads in auto | yes | pth)
25414 for ac_header in pth.h
25416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25418 echo "$as_me:$LINENO: checking for $ac_header" >&5
25419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25421 echo $ECHO_N "(cached) $ECHO_C" >&6
25423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25426 # Is the header compilable?
25427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25429 cat >conftest.$ac_ext <<_ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 $ac_includes_default
25436 #include <$ac_header>
25438 rm -f conftest.$ac_objext
25439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25440 (eval $ac_compile) 2>conftest.er1
25442 grep -v '^ *+' conftest.er1 >conftest.err
25444 cat conftest.err >&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } &&
25447 { ac_try='test -z "$ac_c_werror_flag"
25448 || test ! -s conftest.err'
25449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25450 (eval $ac_try) 2>&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); }; } &&
25454 { ac_try='test -s conftest.$ac_objext'
25455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456 (eval $ac_try) 2>&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); }; }; then
25460 ac_header_compiler=yes
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_header_compiler=no
25467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25469 echo "${ECHO_T}$ac_header_compiler" >&6
25471 # Is the header present?
25472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25474 cat >conftest.$ac_ext <<_ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25480 #include <$ac_header>
25482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25485 grep -v '^ *+' conftest.er1 >conftest.err
25487 cat conftest.err >&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } >/dev/null; then
25490 if test -s conftest.err; then
25491 ac_cpp_err=$ac_c_preproc_warn_flag
25492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25499 if test -z "$ac_cpp_err"; then
25500 ac_header_preproc=yes
25502 echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25505 ac_header_preproc=no
25507 rm -f conftest.err conftest.$ac_ext
25508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25509 echo "${ECHO_T}$ac_header_preproc" >&6
25511 # So? What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25518 ac_header_preproc=yes
25521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25535 ## ------------------------------------------ ##
25536 ## Report this to the AC_PACKAGE_NAME lists. ##
25537 ## ------------------------------------------ ##
25540 sed "s/^/$as_me: WARNING: /" >&2
25543 echo "$as_me:$LINENO: checking for $ac_header" >&5
25544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25546 echo $ECHO_N "(cached) $ECHO_C" >&6
25548 eval "$as_ac_Header=\$ac_header_preproc"
25550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25555 cat >>confdefs.h <<_ACEOF
25556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25564 if test $ac_cv_header_pth_h = yes ; then
25565 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25566 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25567 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25568 echo $ECHO_N "(cached) $ECHO_C" >&6
25570 ac_check_lib_save_LIBS=$LIBS
25572 cat >conftest.$ac_ext <<_ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25579 /* Override any gcc2 internal prototype to avoid an error. */
25583 /* We use char because int might match the return type of a gcc2
25584 builtin and then its argument prototype would still apply. */
25585 char pth_version ();
25594 rm -f conftest.$ac_objext conftest$ac_exeext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25596 (eval $ac_link) 2>conftest.er1
25598 grep -v '^ *+' conftest.er1 >conftest.err
25600 cat conftest.err >&5
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } &&
25603 { ac_try='test -z "$ac_c_werror_flag"
25604 || test ! -s conftest.err'
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; } &&
25610 { ac_try='test -s conftest$ac_exeext'
25611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612 (eval $ac_try) 2>&5
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; }; then
25616 ac_cv_lib_pth_pth_version=yes
25618 echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25621 ac_cv_lib_pth_pth_version=no
25623 rm -f conftest.err conftest.$ac_objext \
25624 conftest$ac_exeext conftest.$ac_ext
25625 LIBS=$ac_check_lib_save_LIBS
25627 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25628 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25629 if test $ac_cv_lib_pth_pth_version = yes; then
25636 if test $have_pth = yes ; then
25638 cat >>confdefs.h <<\_ACEOF
25639 #define HAVE_GNU_PTH 1
25642 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25643 ol_link_threads=pth
25644 ol_with_threads=found
25646 if test $ol_with_yielding_select = auto ; then
25647 ol_with_yielding_select=yes
25654 case $ol_with_threads in auto | yes | lwp)
25658 for ac_header in thread.h synch.h
25660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25662 echo "$as_me:$LINENO: checking for $ac_header" >&5
25663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25670 # Is the header compilable?
25671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25673 cat >conftest.$ac_ext <<_ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25679 $ac_includes_default
25680 #include <$ac_header>
25682 rm -f conftest.$ac_objext
25683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25684 (eval $ac_compile) 2>conftest.er1
25686 grep -v '^ *+' conftest.er1 >conftest.err
25688 cat conftest.err >&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); } &&
25691 { ac_try='test -z "$ac_c_werror_flag"
25692 || test ! -s conftest.err'
25693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694 (eval $ac_try) 2>&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; } &&
25698 { ac_try='test -s conftest.$ac_objext'
25699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700 (eval $ac_try) 2>&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; }; then
25704 ac_header_compiler=yes
25706 echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25709 ac_header_compiler=no
25711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25713 echo "${ECHO_T}$ac_header_compiler" >&6
25715 # Is the header present?
25716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25718 cat >conftest.$ac_ext <<_ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25724 #include <$ac_header>
25726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25729 grep -v '^ *+' conftest.er1 >conftest.err
25731 cat conftest.err >&5
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); } >/dev/null; then
25734 if test -s conftest.err; then
25735 ac_cpp_err=$ac_c_preproc_warn_flag
25736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25743 if test -z "$ac_cpp_err"; then
25744 ac_header_preproc=yes
25746 echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25749 ac_header_preproc=no
25751 rm -f conftest.err conftest.$ac_ext
25752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25753 echo "${ECHO_T}$ac_header_preproc" >&6
25755 # So? What about this header?
25756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25762 ac_header_preproc=yes
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25779 ## ------------------------------------------ ##
25780 ## Report this to the AC_PACKAGE_NAME lists. ##
25781 ## ------------------------------------------ ##
25784 sed "s/^/$as_me: WARNING: /" >&2
25787 echo "$as_me:$LINENO: checking for $ac_header" >&5
25788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25790 echo $ECHO_N "(cached) $ECHO_C" >&6
25792 eval "$as_ac_Header=\$ac_header_preproc"
25794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25799 cat >>confdefs.h <<_ACEOF
25800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25807 if test $ac_cv_header_thread_h = yes &&
25808 test $ac_cv_header_synch_h = yes ; then
25809 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25810 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25811 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25814 ac_check_lib_save_LIBS=$LIBS
25815 LIBS="-lthread $LIBS"
25816 cat >conftest.$ac_ext <<_ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h. */
25823 /* Override any gcc2 internal prototype to avoid an error. */
25827 /* We use char because int might match the return type of a gcc2
25828 builtin and then its argument prototype would still apply. */
25829 char thr_create ();
25838 rm -f conftest.$ac_objext conftest$ac_exeext
25839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25840 (eval $ac_link) 2>conftest.er1
25842 grep -v '^ *+' conftest.er1 >conftest.err
25844 cat conftest.err >&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); } &&
25847 { ac_try='test -z "$ac_c_werror_flag"
25848 || test ! -s conftest.err'
25849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25850 (eval $ac_try) 2>&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); }; } &&
25854 { ac_try='test -s conftest$ac_exeext'
25855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25856 (eval $ac_try) 2>&5
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); }; }; then
25860 ac_cv_lib_thread_thr_create=yes
25862 echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25865 ac_cv_lib_thread_thr_create=no
25867 rm -f conftest.err conftest.$ac_objext \
25868 conftest$ac_exeext conftest.$ac_ext
25869 LIBS=$ac_check_lib_save_LIBS
25871 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25872 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25873 if test $ac_cv_lib_thread_thr_create = yes; then
25880 if test $have_thr = yes ; then
25882 cat >>confdefs.h <<\_ACEOF
25886 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25887 ol_link_threads=thr
25889 if test $ol_with_yielding_select = auto ; then
25890 ol_with_yielding_select=yes
25896 thr_setconcurrency \
25897 thr_getconcurrency \
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25903 if eval "test \"\${$as_ac_var+set}\" = set"; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25914 #define $ac_func innocuous_$ac_func
25916 /* System header to define __stub macros and hopefully few prototypes,
25917 which can conflict with char $ac_func (); below.
25918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919 <limits.h> exists even on freestanding compilers. */
25922 # include <limits.h>
25924 # include <assert.h>
25929 /* Override any gcc2 internal prototype to avoid an error. */
25934 /* We use char because int might match the return type of a gcc2
25935 builtin and then its argument prototype would still apply. */
25937 /* The GNU C library defines this for functions which it implements
25938 to always fail with ENOSYS. Some functions are actually named
25939 something starting with __ and the normal name is an alias. */
25940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25943 char (*f) () = $ac_func;
25952 return f != $ac_func;
25957 rm -f conftest.$ac_objext conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959 (eval $ac_link) 2>conftest.er1
25961 grep -v '^ *+' conftest.er1 >conftest.err
25963 cat conftest.err >&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } &&
25966 { ac_try='test -z "$ac_c_werror_flag"
25967 || test ! -s conftest.err'
25968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969 (eval $ac_try) 2>&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); }; } &&
25973 { ac_try='test -s conftest$ac_exeext'
25974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975 (eval $ac_try) 2>&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); }; }; then
25979 eval "$as_ac_var=yes"
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 eval "$as_ac_var=no"
25986 rm -f conftest.err conftest.$ac_objext \
25987 conftest$ac_exeext conftest.$ac_ext
25989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25991 if test `eval echo '${'$as_ac_var'}'` = yes; then
25992 cat >>confdefs.h <<_ACEOF
25993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26003 for ac_header in lwp/lwp.h
26005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26007 echo "$as_me:$LINENO: checking for $ac_header" >&5
26008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26015 # Is the header compilable?
26016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26018 cat >conftest.$ac_ext <<_ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h. */
26024 $ac_includes_default
26025 #include <$ac_header>
26027 rm -f conftest.$ac_objext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26029 (eval $ac_compile) 2>conftest.er1
26031 grep -v '^ *+' conftest.er1 >conftest.err
26033 cat conftest.err >&5
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); } &&
26036 { ac_try='test -z "$ac_c_werror_flag"
26037 || test ! -s conftest.err'
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; } &&
26043 { ac_try='test -s conftest.$ac_objext'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; }; then
26049 ac_header_compiler=yes
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26054 ac_header_compiler=no
26056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26058 echo "${ECHO_T}$ac_header_compiler" >&6
26060 # Is the header present?
26061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26063 cat >conftest.$ac_ext <<_ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 #include <$ac_header>
26071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26074 grep -v '^ *+' conftest.er1 >conftest.err
26076 cat conftest.err >&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } >/dev/null; then
26079 if test -s conftest.err; then
26080 ac_cpp_err=$ac_c_preproc_warn_flag
26081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26088 if test -z "$ac_cpp_err"; then
26089 ac_header_preproc=yes
26091 echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26094 ac_header_preproc=no
26096 rm -f conftest.err conftest.$ac_ext
26097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26098 echo "${ECHO_T}$ac_header_preproc" >&6
26100 # So? What about this header?
26101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26107 ac_header_preproc=yes
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26124 ## ------------------------------------------ ##
26125 ## Report this to the AC_PACKAGE_NAME lists. ##
26126 ## ------------------------------------------ ##
26129 sed "s/^/$as_me: WARNING: /" >&2
26132 echo "$as_me:$LINENO: checking for $ac_header" >&5
26133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26135 echo $ECHO_N "(cached) $ECHO_C" >&6
26137 eval "$as_ac_Header=\$ac_header_preproc"
26139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26144 cat >>confdefs.h <<_ACEOF
26145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26152 if test $ac_cv_header_lwp_lwp_h = yes ; then
26153 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26154 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26155 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26158 ac_check_lib_save_LIBS=$LIBS
26160 cat >conftest.$ac_ext <<_ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h. */
26167 /* Override any gcc2 internal prototype to avoid an error. */
26171 /* We use char because int might match the return type of a gcc2
26172 builtin and then its argument prototype would still apply. */
26173 char lwp_create ();
26182 rm -f conftest.$ac_objext conftest$ac_exeext
26183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26184 (eval $ac_link) 2>conftest.er1
26186 grep -v '^ *+' conftest.er1 >conftest.err
26188 cat conftest.err >&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } &&
26191 { ac_try='test -z "$ac_c_werror_flag"
26192 || test ! -s conftest.err'
26193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194 (eval $ac_try) 2>&5
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); }; } &&
26198 { ac_try='test -s conftest$ac_exeext'
26199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200 (eval $ac_try) 2>&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); }; }; then
26204 ac_cv_lib_lwp_lwp_create=yes
26206 echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26209 ac_cv_lib_lwp_lwp_create=no
26211 rm -f conftest.err conftest.$ac_objext \
26212 conftest$ac_exeext conftest.$ac_ext
26213 LIBS=$ac_check_lib_save_LIBS
26215 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26216 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26217 if test $ac_cv_lib_lwp_lwp_create = yes; then
26224 if test $have_lwp = yes ; then
26226 cat >>confdefs.h <<\_ACEOF
26230 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26231 ol_link_threads=lwp
26233 if test $ol_with_yielding_select = auto ; then
26234 ol_with_yielding_select=no
26241 if test $ol_with_yielding_select = yes ; then
26243 cat >>confdefs.h <<\_ACEOF
26244 #define HAVE_YIELDING_SELECT 1
26249 if test $ol_with_threads = manual ; then
26250 ol_link_threads=yes
26252 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26253 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26257 for ac_header in pthread.h sched.h
26259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26261 echo "$as_me:$LINENO: checking for $ac_header" >&5
26262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26264 echo $ECHO_N "(cached) $ECHO_C" >&6
26266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26269 # Is the header compilable?
26270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26278 $ac_includes_default
26279 #include <$ac_header>
26281 rm -f conftest.$ac_objext
26282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26283 (eval $ac_compile) 2>conftest.er1
26285 grep -v '^ *+' conftest.er1 >conftest.err
26287 cat conftest.err >&5
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } &&
26290 { ac_try='test -z "$ac_c_werror_flag"
26291 || test ! -s conftest.err'
26292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293 (eval $ac_try) 2>&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); }; } &&
26297 { ac_try='test -s conftest.$ac_objext'
26298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299 (eval $ac_try) 2>&5
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); }; }; then
26303 ac_header_compiler=yes
26305 echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26308 ac_header_compiler=no
26310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26312 echo "${ECHO_T}$ac_header_compiler" >&6
26314 # Is the header present?
26315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26317 cat >conftest.$ac_ext <<_ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h. */
26323 #include <$ac_header>
26325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26328 grep -v '^ *+' conftest.er1 >conftest.err
26330 cat conftest.err >&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } >/dev/null; then
26333 if test -s conftest.err; then
26334 ac_cpp_err=$ac_c_preproc_warn_flag
26335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26342 if test -z "$ac_cpp_err"; then
26343 ac_header_preproc=yes
26345 echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26348 ac_header_preproc=no
26350 rm -f conftest.err conftest.$ac_ext
26351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26352 echo "${ECHO_T}$ac_header_preproc" >&6
26354 # So? What about this header?
26355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26361 ac_header_preproc=yes
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26378 ## ------------------------------------------ ##
26379 ## Report this to the AC_PACKAGE_NAME lists. ##
26380 ## ------------------------------------------ ##
26383 sed "s/^/$as_me: WARNING: /" >&2
26386 echo "$as_me:$LINENO: checking for $ac_header" >&5
26387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26391 eval "$as_ac_Header=\$ac_header_preproc"
26393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26398 cat >>confdefs.h <<_ACEOF
26399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26408 for ac_func in sched_yield pthread_yield
26410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26411 echo "$as_me:$LINENO: checking for $ac_func" >&5
26412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26413 if eval "test \"\${$as_ac_var+set}\" = set"; then
26414 echo $ECHO_N "(cached) $ECHO_C" >&6
26416 cat >conftest.$ac_ext <<_ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h. */
26422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26424 #define $ac_func innocuous_$ac_func
26426 /* System header to define __stub macros and hopefully few prototypes,
26427 which can conflict with char $ac_func (); below.
26428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26429 <limits.h> exists even on freestanding compilers. */
26432 # include <limits.h>
26434 # include <assert.h>
26439 /* Override any gcc2 internal prototype to avoid an error. */
26444 /* We use char because int might match the return type of a gcc2
26445 builtin and then its argument prototype would still apply. */
26447 /* The GNU C library defines this for functions which it implements
26448 to always fail with ENOSYS. Some functions are actually named
26449 something starting with __ and the normal name is an alias. */
26450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26453 char (*f) () = $ac_func;
26462 return f != $ac_func;
26467 rm -f conftest.$ac_objext conftest$ac_exeext
26468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26469 (eval $ac_link) 2>conftest.er1
26471 grep -v '^ *+' conftest.er1 >conftest.err
26473 cat conftest.err >&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } &&
26476 { ac_try='test -z "$ac_c_werror_flag"
26477 || test ! -s conftest.err'
26478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26479 (eval $ac_try) 2>&5
26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482 (exit $ac_status); }; } &&
26483 { ac_try='test -s conftest$ac_exeext'
26484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26485 (eval $ac_try) 2>&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); }; }; then
26489 eval "$as_ac_var=yes"
26491 echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26494 eval "$as_ac_var=no"
26496 rm -f conftest.err conftest.$ac_objext \
26497 conftest$ac_exeext conftest.$ac_ext
26499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26501 if test `eval echo '${'$as_ac_var'}'` = yes; then
26502 cat >>confdefs.h <<_ACEOF
26503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26510 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26511 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26512 if test "${ol_cv_header_linux_threads+set}" = set; then
26513 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 cat >conftest.$ac_ext <<_ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h. */
26521 #include <pthread.h>
26523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26524 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26525 ol_cv_header_linux_threads=yes
26527 ol_cv_header_linux_threads=no
26533 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26534 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26535 if test $ol_cv_header_linux_threads = yes; then
26537 cat >>confdefs.h <<\_ACEOF
26538 #define HAVE_LINUX_THREADS 1
26545 for ac_header in mach/cthreads.h
26547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26549 echo "$as_me:$LINENO: checking for $ac_header" >&5
26550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26557 # Is the header compilable?
26558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26560 cat >conftest.$ac_ext <<_ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 $ac_includes_default
26567 #include <$ac_header>
26569 rm -f conftest.$ac_objext
26570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26571 (eval $ac_compile) 2>conftest.er1
26573 grep -v '^ *+' conftest.er1 >conftest.err
26575 cat conftest.err >&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } &&
26578 { ac_try='test -z "$ac_c_werror_flag"
26579 || test ! -s conftest.err'
26580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581 (eval $ac_try) 2>&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); }; } &&
26585 { ac_try='test -s conftest.$ac_objext'
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; }; then
26591 ac_header_compiler=yes
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26596 ac_header_compiler=no
26598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26600 echo "${ECHO_T}$ac_header_compiler" >&6
26602 # Is the header present?
26603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26605 cat >conftest.$ac_ext <<_ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h. */
26611 #include <$ac_header>
26613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26616 grep -v '^ *+' conftest.er1 >conftest.err
26618 cat conftest.err >&5
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); } >/dev/null; then
26621 if test -s conftest.err; then
26622 ac_cpp_err=$ac_c_preproc_warn_flag
26623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26630 if test -z "$ac_cpp_err"; then
26631 ac_header_preproc=yes
26633 echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26636 ac_header_preproc=no
26638 rm -f conftest.err conftest.$ac_ext
26639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26640 echo "${ECHO_T}$ac_header_preproc" >&6
26642 # So? What about this header?
26643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26649 ac_header_preproc=yes
26652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26666 ## ------------------------------------------ ##
26667 ## Report this to the AC_PACKAGE_NAME lists. ##
26668 ## ------------------------------------------ ##
26671 sed "s/^/$as_me: WARNING: /" >&2
26674 echo "$as_me:$LINENO: checking for $ac_header" >&5
26675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26677 echo $ECHO_N "(cached) $ECHO_C" >&6
26679 eval "$as_ac_Header=\$ac_header_preproc"
26681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26686 cat >>confdefs.h <<_ACEOF
26687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26695 for ac_header in lwp/lwp.h
26697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26699 echo "$as_me:$LINENO: checking for $ac_header" >&5
26700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26702 echo $ECHO_N "(cached) $ECHO_C" >&6
26704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26707 # Is the header compilable?
26708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26710 cat >conftest.$ac_ext <<_ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h. */
26716 $ac_includes_default
26717 #include <$ac_header>
26719 rm -f conftest.$ac_objext
26720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26721 (eval $ac_compile) 2>conftest.er1
26723 grep -v '^ *+' conftest.er1 >conftest.err
26725 cat conftest.err >&5
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } &&
26728 { ac_try='test -z "$ac_c_werror_flag"
26729 || test ! -s conftest.err'
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; } &&
26735 { ac_try='test -s conftest.$ac_objext'
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; }; then
26741 ac_header_compiler=yes
26743 echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26746 ac_header_compiler=no
26748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26750 echo "${ECHO_T}$ac_header_compiler" >&6
26752 # Is the header present?
26753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26755 cat >conftest.$ac_ext <<_ACEOF
26758 cat confdefs.h >>conftest.$ac_ext
26759 cat >>conftest.$ac_ext <<_ACEOF
26760 /* end confdefs.h. */
26761 #include <$ac_header>
26763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } >/dev/null; then
26771 if test -s conftest.err; then
26772 ac_cpp_err=$ac_c_preproc_warn_flag
26773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26780 if test -z "$ac_cpp_err"; then
26781 ac_header_preproc=yes
26783 echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26786 ac_header_preproc=no
26788 rm -f conftest.err conftest.$ac_ext
26789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26790 echo "${ECHO_T}$ac_header_preproc" >&6
26792 # So? What about this header?
26793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26799 ac_header_preproc=yes
26802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26816 ## ------------------------------------------ ##
26817 ## Report this to the AC_PACKAGE_NAME lists. ##
26818 ## ------------------------------------------ ##
26821 sed "s/^/$as_me: WARNING: /" >&2
26824 echo "$as_me:$LINENO: checking for $ac_header" >&5
26825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26827 echo $ECHO_N "(cached) $ECHO_C" >&6
26829 eval "$as_ac_Header=\$ac_header_preproc"
26831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26836 cat >>confdefs.h <<_ACEOF
26837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26846 for ac_header in thread.h synch.h
26848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26850 echo "$as_me:$LINENO: checking for $ac_header" >&5
26851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26853 echo $ECHO_N "(cached) $ECHO_C" >&6
26855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26858 # Is the header compilable?
26859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26861 cat >conftest.$ac_ext <<_ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h. */
26867 $ac_includes_default
26868 #include <$ac_header>
26870 rm -f conftest.$ac_objext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26872 (eval $ac_compile) 2>conftest.er1
26874 grep -v '^ *+' conftest.er1 >conftest.err
26876 cat conftest.err >&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); } &&
26879 { ac_try='test -z "$ac_c_werror_flag"
26880 || test ! -s conftest.err'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; } &&
26886 { ac_try='test -s conftest.$ac_objext'
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_header_compiler=yes
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26897 ac_header_compiler=no
26899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26901 echo "${ECHO_T}$ac_header_compiler" >&6
26903 # Is the header present?
26904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26906 cat >conftest.$ac_ext <<_ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26912 #include <$ac_header>
26914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26917 grep -v '^ *+' conftest.er1 >conftest.err
26919 cat conftest.err >&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } >/dev/null; then
26922 if test -s conftest.err; then
26923 ac_cpp_err=$ac_c_preproc_warn_flag
26924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26931 if test -z "$ac_cpp_err"; then
26932 ac_header_preproc=yes
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 ac_header_preproc=no
26939 rm -f conftest.err conftest.$ac_ext
26940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26941 echo "${ECHO_T}$ac_header_preproc" >&6
26943 # So? What about this header?
26944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26950 ac_header_preproc=yes
26953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26967 ## ------------------------------------------ ##
26968 ## Report this to the AC_PACKAGE_NAME lists. ##
26969 ## ------------------------------------------ ##
26972 sed "s/^/$as_me: WARNING: /" >&2
26975 echo "$as_me:$LINENO: checking for $ac_header" >&5
26976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26980 eval "$as_ac_Header=\$ac_header_preproc"
26982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26987 cat >>confdefs.h <<_ACEOF
26988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26997 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26998 cat >>confdefs.h <<\_ACEOF
26999 #define REENTRANT 1
27002 cat >>confdefs.h <<\_ACEOF
27003 #define _REENTRANT 1
27006 cat >>confdefs.h <<\_ACEOF
27007 #define THREAD_SAFE 1
27010 cat >>confdefs.h <<\_ACEOF
27011 #define _THREAD_SAFE 1
27014 cat >>confdefs.h <<\_ACEOF
27015 #define THREADSAFE 1
27018 cat >>confdefs.h <<\_ACEOF
27019 #define _THREADSAFE 1
27022 cat >>confdefs.h <<\_ACEOF
27023 #define _SGI_MP_SOURCE 1
27027 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27028 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27029 if test "${ol_cv_errno_thread_specific+set}" = set; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27033 cat >conftest.$ac_ext <<_ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27050 (eval $ac_link) 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
27057 { ac_try='test -z "$ac_c_werror_flag"
27058 || test ! -s conftest.err'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; } &&
27064 { ac_try='test -s conftest$ac_exeext'
27065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ol_cv_errno_thread_specific=yes
27072 echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27075 ol_cv_errno_thread_specific=no
27077 rm -f conftest.err conftest.$ac_objext \
27078 conftest$ac_exeext conftest.$ac_ext
27081 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27082 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27084 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27085 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27086 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27087 echo $ECHO_N "(cached) $ECHO_C" >&6
27090 cat >conftest.$ac_ext <<_ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h. */
27105 rm -f conftest.$ac_objext conftest$ac_exeext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27107 (eval $ac_link) 2>conftest.er1
27109 grep -v '^ *+' conftest.er1 >conftest.err
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag"
27115 || test ! -s conftest.err'
27116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117 (eval $ac_try) 2>&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; } &&
27121 { ac_try='test -s conftest$ac_exeext'
27122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123 (eval $ac_try) 2>&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; }; then
27127 ol_cv_h_errno_thread_specific=yes
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27132 ol_cv_h_errno_thread_specific=no
27134 rm -f conftest.err conftest.$ac_objext \
27135 conftest$ac_exeext conftest.$ac_ext
27138 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27139 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27141 if test $ol_cv_errno_thread_specific != yes ||
27142 test $ol_cv_h_errno_thread_specific != yes ; then
27143 LIBS="$LTHREAD_LIBS $LIBS"
27149 if test $ol_link_threads = no ; then
27150 if test $ol_with_threads = yes ; then
27151 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27152 echo "$as_me: error: no suitable thread support" >&2;}
27153 { (exit 1); exit 1; }; }
27156 if test $ol_with_threads = auto ; then
27157 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27158 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27163 cat >>confdefs.h <<\_ACEOF
27164 #define NO_THREADS 1
27173 if test $ol_link_threads != no ; then
27175 cat >>confdefs.h <<\_ACEOF
27176 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27186 gethostbyname_r gethostbyaddr_r \
27189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27190 echo "$as_me:$LINENO: checking for $ac_func" >&5
27191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27192 if eval "test \"\${$as_ac_var+set}\" = set"; then
27193 echo $ECHO_N "(cached) $ECHO_C" >&6
27195 cat >conftest.$ac_ext <<_ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27203 #define $ac_func innocuous_$ac_func
27205 /* System header to define __stub macros and hopefully few prototypes,
27206 which can conflict with char $ac_func (); below.
27207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27208 <limits.h> exists even on freestanding compilers. */
27211 # include <limits.h>
27213 # include <assert.h>
27218 /* Override any gcc2 internal prototype to avoid an error. */
27223 /* We use char because int might match the return type of a gcc2
27224 builtin and then its argument prototype would still apply. */
27226 /* The GNU C library defines this for functions which it implements
27227 to always fail with ENOSYS. Some functions are actually named
27228 something starting with __ and the normal name is an alias. */
27229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27232 char (*f) () = $ac_func;
27241 return f != $ac_func;
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248 (eval $ac_link) 2>conftest.er1
27250 grep -v '^ *+' conftest.er1 >conftest.err
27252 cat conftest.err >&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest$ac_exeext'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27268 eval "$as_ac_var=yes"
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27273 eval "$as_ac_var=no"
27275 rm -f conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
27278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27280 if test `eval echo '${'$as_ac_var'}'` = yes; then
27281 cat >>confdefs.h <<_ACEOF
27282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27289 if test "$ac_cv_func_ctime_r" = no ; then
27290 ol_cv_func_ctime_r_nargs=0
27292 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27293 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27294 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 cat >conftest.$ac_ext <<_ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h. */
27307 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27312 rm -f conftest.$ac_objext
27313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27314 (eval $ac_compile) 2>conftest.er1
27316 grep -v '^ *+' conftest.er1 >conftest.err
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } &&
27321 { ac_try='test -z "$ac_c_werror_flag"
27322 || test ! -s conftest.err'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try='test -s conftest.$ac_objext'
27329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330 (eval $ac_try) 2>&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; }; then
27334 ol_cv_func_ctime_r_nargs3=yes
27336 echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27339 ol_cv_func_ctime_r_nargs3=no
27341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27353 time_t ti; char *buffer; ctime_r(&ti,buffer);
27358 rm -f conftest.$ac_objext
27359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27360 (eval $ac_compile) 2>conftest.er1
27362 grep -v '^ *+' conftest.er1 >conftest.err
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); } &&
27367 { ac_try='test -z "$ac_c_werror_flag"
27368 || test ! -s conftest.err'
27369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370 (eval $ac_try) 2>&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest.$ac_objext'
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; }; then
27380 ol_cv_func_ctime_r_nargs2=yes
27382 echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27385 ol_cv_func_ctime_r_nargs2=no
27387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27389 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27390 test $ol_cv_func_ctime_r_nargs2 = no ; then
27392 ol_cv_func_ctime_r_nargs=3
27394 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27395 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27397 ol_cv_func_ctime_r_nargs=2
27400 ol_cv_func_ctime_r_nargs=0
27404 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27405 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27407 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27409 cat >>confdefs.h <<_ACEOF
27410 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27417 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27418 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27419 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27420 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27423 cat >conftest.$ac_ext <<_ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h. */
27429 #include <sys/types.h>
27430 #include <sys/socket.h>
27431 #include <netinet/in.h>
27433 #define BUFSIZE (sizeof(struct hostent)+10)
27437 struct hostent hent; char buffer[BUFSIZE];
27438 int bufsize=BUFSIZE;int h_errno;
27439 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27440 buffer, bufsize, &h_errno);
27445 rm -f conftest.$ac_objext
27446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27447 (eval $ac_compile) 2>conftest.er1
27449 grep -v '^ *+' conftest.er1 >conftest.err
27451 cat conftest.err >&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
27454 { ac_try='test -z "$ac_c_werror_flag"
27455 || test ! -s conftest.err'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; } &&
27461 { ac_try='test -s conftest.$ac_objext'
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ol_cv_func_gethostbyname_r_nargs5=yes
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ol_cv_func_gethostbyname_r_nargs5=no
27474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27476 cat >conftest.$ac_ext <<_ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27482 #include <sys/types.h>
27483 #include <sys/socket.h>
27484 #include <netinet/in.h>
27486 #define BUFSIZE (sizeof(struct hostent)+10)
27490 struct hostent hent;struct hostent *rhent;
27491 char buffer[BUFSIZE];
27492 int bufsize=BUFSIZE;int h_errno;
27493 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27499 rm -f conftest.$ac_objext
27500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27501 (eval $ac_compile) 2>conftest.er1
27503 grep -v '^ *+' conftest.er1 >conftest.err
27505 cat conftest.err >&5
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); } &&
27508 { ac_try='test -z "$ac_c_werror_flag"
27509 || test ! -s conftest.err'
27510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27511 (eval $ac_try) 2>&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; } &&
27515 { ac_try='test -s conftest.$ac_objext'
27516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517 (eval $ac_try) 2>&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; }; then
27521 ol_cv_func_gethostbyname_r_nargs6=yes
27523 echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27526 ol_cv_func_gethostbyname_r_nargs6=no
27528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27530 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27531 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27533 ol_cv_func_gethostbyname_r_nargs=5
27535 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27536 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27538 ol_cv_func_gethostbyname_r_nargs=6
27541 ol_cv_func_gethostbyname_r_nargs=0
27545 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27546 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27547 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27549 cat >>confdefs.h <<_ACEOF
27550 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27556 ol_cv_func_gethostbyname_r_nargs=0
27559 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27560 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27561 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27562 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27565 cat >conftest.$ac_ext <<_ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27571 #include <sys/types.h>
27572 #include <sys/socket.h>
27573 #include <netinet/in.h>
27575 #define BUFSIZE (sizeof(struct hostent)+10)
27579 struct hostent hent; char buffer[BUFSIZE];
27580 struct in_addr add;
27581 size_t alen=sizeof(struct in_addr);
27582 int bufsize=BUFSIZE;int h_errno;
27583 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27584 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27589 rm -f conftest.$ac_objext
27590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27591 (eval $ac_compile) 2>conftest.er1
27593 grep -v '^ *+' conftest.er1 >conftest.err
27595 cat conftest.err >&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } &&
27598 { ac_try='test -z "$ac_c_werror_flag"
27599 || test ! -s conftest.err'
27600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601 (eval $ac_try) 2>&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; } &&
27605 { ac_try='test -s conftest.$ac_objext'
27606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607 (eval $ac_try) 2>&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; }; then
27611 ol_cv_func_gethostbyaddr_r_nargs7=yes
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 ol_cv_func_gethostbyaddr_r_nargs7=no
27618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27620 cat >conftest.$ac_ext <<_ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27626 #include <sys/types.h>
27627 #include <sys/socket.h>
27628 #include <netinet/in.h>
27630 #define BUFSIZE (sizeof(struct hostent)+10)
27634 struct hostent hent;
27635 struct hostent *rhent; char buffer[BUFSIZE];
27636 struct in_addr add;
27637 size_t alen=sizeof(struct in_addr);
27638 int bufsize=BUFSIZE;int h_errno;
27639 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27640 alen, AF_INET, &hent, buffer, bufsize,
27646 rm -f conftest.$ac_objext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27648 (eval $ac_compile) 2>conftest.er1
27650 grep -v '^ *+' conftest.er1 >conftest.err
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } &&
27655 { ac_try='test -z "$ac_c_werror_flag"
27656 || test ! -s conftest.err'
27657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658 (eval $ac_try) 2>&5
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; } &&
27662 { ac_try='test -s conftest.$ac_objext'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 ol_cv_func_gethostbyaddr_r_nargs8=yes
27670 echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27673 ol_cv_func_gethostbyaddr_r_nargs8=no
27675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27677 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27678 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27680 ol_cv_func_gethostbyaddr_r_nargs=7
27682 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27683 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27685 ol_cv_func_gethostbyaddr_r_nargs=8
27688 ol_cv_func_gethostbyaddr_r_nargs=0
27692 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27693 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27694 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27696 cat >>confdefs.h <<_ACEOF
27697 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27703 ol_cv_func_gethostbyaddr_r_nargs=0
27708 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27710 if test $ol_enable_ldbm_api = bcompat; then \
27713 for ac_header in db_185.h db.h
27715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27717 echo "$as_me:$LINENO: checking for $ac_header" >&5
27718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27725 # Is the header compilable?
27726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27728 cat >conftest.$ac_ext <<_ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h. */
27734 $ac_includes_default
27735 #include <$ac_header>
27737 rm -f conftest.$ac_objext
27738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27739 (eval $ac_compile) 2>conftest.er1
27741 grep -v '^ *+' conftest.er1 >conftest.err
27743 cat conftest.err >&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } &&
27746 { ac_try='test -z "$ac_c_werror_flag"
27747 || test ! -s conftest.err'
27748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749 (eval $ac_try) 2>&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; } &&
27753 { ac_try='test -s conftest.$ac_objext'
27754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755 (eval $ac_try) 2>&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); }; }; then
27759 ac_header_compiler=yes
27761 echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27764 ac_header_compiler=no
27766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27768 echo "${ECHO_T}$ac_header_compiler" >&6
27770 # Is the header present?
27771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27773 cat >conftest.$ac_ext <<_ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h. */
27779 #include <$ac_header>
27781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27784 grep -v '^ *+' conftest.er1 >conftest.err
27786 cat conftest.err >&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } >/dev/null; then
27789 if test -s conftest.err; then
27790 ac_cpp_err=$ac_c_preproc_warn_flag
27791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27798 if test -z "$ac_cpp_err"; then
27799 ac_header_preproc=yes
27801 echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27804 ac_header_preproc=no
27806 rm -f conftest.err conftest.$ac_ext
27807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27808 echo "${ECHO_T}$ac_header_preproc" >&6
27810 # So? What about this header?
27811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27817 ac_header_preproc=yes
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27834 ## ------------------------------------------ ##
27835 ## Report this to the AC_PACKAGE_NAME lists. ##
27836 ## ------------------------------------------ ##
27839 sed "s/^/$as_me: WARNING: /" >&2
27842 echo "$as_me:$LINENO: checking for $ac_header" >&5
27843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27847 eval "$as_ac_Header=\$ac_header_preproc"
27849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27854 cat >>confdefs.h <<_ACEOF
27855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27862 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27863 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27864 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27865 if test "${ol_cv_header_db1+set}" = set; then
27866 echo $ECHO_N "(cached) $ECHO_C" >&6
27869 cat >conftest.$ac_ext <<_ACEOF
27872 cat confdefs.h >>conftest.$ac_ext
27873 cat >>conftest.$ac_ext <<_ACEOF
27874 /* end confdefs.h. */
27877 # include <db_185.h>
27882 /* this check could be improved */
27883 #ifndef DB_VERSION_MAJOR
27884 # define DB_VERSION_MAJOR 1
27887 #if DB_VERSION_MAJOR == 1
27892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27893 $EGREP "__db_version_1" >/dev/null 2>&1; then
27894 ol_cv_header_db1=yes
27896 ol_cv_header_db1=no
27901 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27902 echo "${ECHO_T}$ol_cv_header_db1" >&6
27904 if test $ol_cv_header_db1 = yes ; then
27907 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27908 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27909 if test "${ol_cv_bdb_major+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27914 if test $ol_cv_bdb_major = 0 ; then
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27923 #ifndef DB_VERSION_MAJOR
27924 # define DB_VERSION_MAJOR 1
27926 #if DB_VERSION_MAJOR == 4
27931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27932 $EGREP "__db_version" >/dev/null 2>&1; then
27940 if test $ol_cv_bdb_major = 0 ; then
27941 cat >conftest.$ac_ext <<_ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h. */
27949 #ifndef DB_VERSION_MAJOR
27950 # define DB_VERSION_MAJOR 1
27952 #if DB_VERSION_MAJOR == 3
27957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27958 $EGREP "__db_version" >/dev/null 2>&1; then
27966 if test $ol_cv_bdb_major = 0 ; then
27967 cat >conftest.$ac_ext <<_ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h. */
27975 #ifndef DB_VERSION_MAJOR
27976 # define DB_VERSION_MAJOR 1
27978 #if DB_VERSION_MAJOR == 2
27983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27984 $EGREP "__db_version" >/dev/null 2>&1; then
27992 if test $ol_cv_bdb_major = 0 ; then
27993 cat >conftest.$ac_ext <<_ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h. */
28001 #ifndef DB_VERSION_MAJOR
28002 # define DB_VERSION_MAJOR 1
28004 #if DB_VERSION_MAJOR == 1
28009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28010 $EGREP "__db_version" >/dev/null 2>&1; then
28019 if test $ol_cv_bdb_major = 0 ; then
28020 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28021 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28022 { (exit 1); exit 1; }; }
28026 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28027 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28029 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28030 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28031 if test "${ol_cv_bdb_minor+set}" = set; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 if test $ol_cv_bdb_minor = 0 ; then
28037 cat >conftest.$ac_ext <<_ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h. */
28045 #ifndef DB_VERSION_MINOR
28046 # define DB_VERSION_MINOR 0
28048 #if DB_VERSION_MINOR == 9
28053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28054 $EGREP "__db_version" >/dev/null 2>&1; then
28062 if test $ol_cv_bdb_minor = 0 ; then
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28071 #ifndef DB_VERSION_MINOR
28072 # define DB_VERSION_MINOR 0
28074 #if DB_VERSION_MINOR == 8
28079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28080 $EGREP "__db_version" >/dev/null 2>&1; then
28088 if test $ol_cv_bdb_minor = 0 ; then
28089 cat >conftest.$ac_ext <<_ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h. */
28097 #ifndef DB_VERSION_MINOR
28098 # define DB_VERSION_MINOR 0
28100 #if DB_VERSION_MINOR == 7
28105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28106 $EGREP "__db_version" >/dev/null 2>&1; then
28114 if test $ol_cv_bdb_minor = 0 ; then
28115 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28123 #ifndef DB_VERSION_MINOR
28124 # define DB_VERSION_MINOR 0
28126 #if DB_VERSION_MINOR == 6
28131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28132 $EGREP "__db_version" >/dev/null 2>&1; then
28140 if test $ol_cv_bdb_minor = 0 ; then
28141 cat >conftest.$ac_ext <<_ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h. */
28149 #ifndef DB_VERSION_MINOR
28150 # define DB_VERSION_MINOR 0
28152 #if DB_VERSION_MINOR == 5
28157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28158 $EGREP "__db_version" >/dev/null 2>&1; then
28166 if test $ol_cv_bdb_minor = 0 ; then
28167 cat >conftest.$ac_ext <<_ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h. */
28175 #ifndef DB_VERSION_MINOR
28176 # define DB_VERSION_MINOR 0
28178 #if DB_VERSION_MINOR == 4
28183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28184 $EGREP "__db_version" >/dev/null 2>&1; then
28192 if test $ol_cv_bdb_minor = 0 ; then
28193 cat >conftest.$ac_ext <<_ACEOF
28196 cat confdefs.h >>conftest.$ac_ext
28197 cat >>conftest.$ac_ext <<_ACEOF
28198 /* end confdefs.h. */
28201 #ifndef DB_VERSION_MINOR
28202 # define DB_VERSION_MINOR 0
28204 #if DB_VERSION_MINOR == 3
28209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28210 $EGREP "__db_version" >/dev/null 2>&1; then
28218 if test $ol_cv_bdb_minor = 0 ; then
28219 cat >conftest.$ac_ext <<_ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h. */
28227 #ifndef DB_VERSION_MINOR
28228 # define DB_VERSION_MINOR 0
28230 #if DB_VERSION_MINOR == 2
28235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28236 $EGREP "__db_version" >/dev/null 2>&1; then
28244 if test $ol_cv_bdb_minor = 0 ; then
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28253 #ifndef DB_VERSION_MINOR
28254 # define DB_VERSION_MINOR 0
28256 #if DB_VERSION_MINOR == 1
28261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28262 $EGREP "__db_version" >/dev/null 2>&1; then
28272 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28273 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28275 if test $ol_cv_bdb_major = 4 ; then
28276 if test $ol_cv_bdb_minor = 4 ; then
28277 if test $ol_cv_lib_db = no ; then
28278 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28279 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28280 if test "${ol_cv_db_db44+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28286 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28288 cat >conftest.$ac_ext <<_ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28295 #ifdef HAVE_DB_185_H
28296 # include <db_185.h>
28301 #ifndef DB_VERSION_MAJOR
28302 # define DB_VERSION_MAJOR 1
28306 #define NULL ((void*)0)
28313 #if DB_VERSION_MAJOR > 1
28316 int major, minor, patch;
28318 version = db_version( &major, &minor, &patch );
28320 if( major != DB_VERSION_MAJOR ||
28321 minor < DB_VERSION_MINOR )
28323 printf("Berkeley DB version mismatch\n"
28324 "\theader: %s\n\tlibrary: %s\n",
28325 DB_VERSION_STRING, version);
28331 #if DB_VERSION_MAJOR > 2
28332 db_env_create( NULL, 0 );
28333 #elif DB_VERSION_MAJOR > 1
28334 db_appexit( NULL );
28336 (void) dbopen( NULL, 0, 0, 0, NULL);
28343 rm -f conftest.$ac_objext conftest$ac_exeext
28344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28345 (eval $ac_link) 2>conftest.er1
28347 grep -v '^ *+' conftest.er1 >conftest.err
28349 cat conftest.err >&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); } &&
28352 { ac_try='test -z "$ac_c_werror_flag"
28353 || test ! -s conftest.err'
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; } &&
28359 { ac_try='test -s conftest$ac_exeext'
28360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361 (eval $ac_try) 2>&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; }; then
28367 echo "$as_me: failed program was:" >&5
28368 sed 's/^/| /' conftest.$ac_ext >&5
28372 rm -f conftest.err conftest.$ac_objext \
28373 conftest$ac_exeext conftest.$ac_ext
28378 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28379 echo "${ECHO_T}$ol_cv_db_db44" >&6
28381 if test $ol_cv_db_db44 = yes ; then
28382 ol_cv_lib_db=-ldb44
28386 if test $ol_cv_lib_db = no ; then
28387 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28388 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28389 if test "${ol_cv_db_db_44+set}" = set; then
28390 echo $ECHO_N "(cached) $ECHO_C" >&6
28395 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28397 cat >conftest.$ac_ext <<_ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h. */
28404 #ifdef HAVE_DB_185_H
28405 # include <db_185.h>
28410 #ifndef DB_VERSION_MAJOR
28411 # define DB_VERSION_MAJOR 1
28415 #define NULL ((void*)0)
28422 #if DB_VERSION_MAJOR > 1
28425 int major, minor, patch;
28427 version = db_version( &major, &minor, &patch );
28429 if( major != DB_VERSION_MAJOR ||
28430 minor < DB_VERSION_MINOR )
28432 printf("Berkeley DB version mismatch\n"
28433 "\theader: %s\n\tlibrary: %s\n",
28434 DB_VERSION_STRING, version);
28440 #if DB_VERSION_MAJOR > 2
28441 db_env_create( NULL, 0 );
28442 #elif DB_VERSION_MAJOR > 1
28443 db_appexit( NULL );
28445 (void) dbopen( NULL, 0, 0, 0, NULL);
28452 rm -f conftest.$ac_objext conftest$ac_exeext
28453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28454 (eval $ac_link) 2>conftest.er1
28456 grep -v '^ *+' conftest.er1 >conftest.err
28458 cat conftest.err >&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } &&
28461 { ac_try='test -z "$ac_c_werror_flag"
28462 || test ! -s conftest.err'
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; } &&
28468 { ac_try='test -s conftest$ac_exeext'
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; }; then
28476 echo "$as_me: failed program was:" >&5
28477 sed 's/^/| /' conftest.$ac_ext >&5
28481 rm -f conftest.err conftest.$ac_objext \
28482 conftest$ac_exeext conftest.$ac_ext
28487 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28488 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28490 if test $ol_cv_db_db_44 = yes ; then
28491 ol_cv_lib_db=-ldb-44
28495 if test $ol_cv_lib_db = no ; then
28496 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28497 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28498 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28504 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28506 cat >conftest.$ac_ext <<_ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h. */
28513 #ifdef HAVE_DB_185_H
28514 # include <db_185.h>
28519 #ifndef DB_VERSION_MAJOR
28520 # define DB_VERSION_MAJOR 1
28524 #define NULL ((void*)0)
28531 #if DB_VERSION_MAJOR > 1
28534 int major, minor, patch;
28536 version = db_version( &major, &minor, &patch );
28538 if( major != DB_VERSION_MAJOR ||
28539 minor < DB_VERSION_MINOR )
28541 printf("Berkeley DB version mismatch\n"
28542 "\theader: %s\n\tlibrary: %s\n",
28543 DB_VERSION_STRING, version);
28549 #if DB_VERSION_MAJOR > 2
28550 db_env_create( NULL, 0 );
28551 #elif DB_VERSION_MAJOR > 1
28552 db_appexit( NULL );
28554 (void) dbopen( NULL, 0, 0, 0, NULL);
28561 rm -f conftest.$ac_objext conftest$ac_exeext
28562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28563 (eval $ac_link) 2>conftest.er1
28565 grep -v '^ *+' conftest.er1 >conftest.err
28567 cat conftest.err >&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } &&
28570 { ac_try='test -z "$ac_c_werror_flag"
28571 || test ! -s conftest.err'
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; } &&
28577 { ac_try='test -s conftest$ac_exeext'
28578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579 (eval $ac_try) 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
28583 ol_cv_db_db_4_dot_4=yes
28585 echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28588 ol_cv_db_db_4_dot_4=no
28590 rm -f conftest.err conftest.$ac_objext \
28591 conftest$ac_exeext conftest.$ac_ext
28596 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28597 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28599 if test $ol_cv_db_db_4_dot_4 = yes ; then
28600 ol_cv_lib_db=-ldb-4.4
28604 if test $ol_cv_lib_db = no ; then
28605 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28606 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28607 if test "${ol_cv_db_db_4_4+set}" = set; then
28608 echo $ECHO_N "(cached) $ECHO_C" >&6
28613 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28615 cat >conftest.$ac_ext <<_ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h. */
28622 #ifdef HAVE_DB_185_H
28623 # include <db_185.h>
28628 #ifndef DB_VERSION_MAJOR
28629 # define DB_VERSION_MAJOR 1
28633 #define NULL ((void*)0)
28640 #if DB_VERSION_MAJOR > 1
28643 int major, minor, patch;
28645 version = db_version( &major, &minor, &patch );
28647 if( major != DB_VERSION_MAJOR ||
28648 minor < DB_VERSION_MINOR )
28650 printf("Berkeley DB version mismatch\n"
28651 "\theader: %s\n\tlibrary: %s\n",
28652 DB_VERSION_STRING, version);
28658 #if DB_VERSION_MAJOR > 2
28659 db_env_create( NULL, 0 );
28660 #elif DB_VERSION_MAJOR > 1
28661 db_appexit( NULL );
28663 (void) dbopen( NULL, 0, 0, 0, NULL);
28670 rm -f conftest.$ac_objext conftest$ac_exeext
28671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28672 (eval $ac_link) 2>conftest.er1
28674 grep -v '^ *+' conftest.er1 >conftest.err
28676 cat conftest.err >&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } &&
28679 { ac_try='test -z "$ac_c_werror_flag"
28680 || test ! -s conftest.err'
28681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682 (eval $ac_try) 2>&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; } &&
28686 { ac_try='test -s conftest$ac_exeext'
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; }; then
28692 ol_cv_db_db_4_4=yes
28694 echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28699 rm -f conftest.err conftest.$ac_objext \
28700 conftest$ac_exeext conftest.$ac_ext
28705 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28706 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28708 if test $ol_cv_db_db_4_4 = yes ; then
28709 ol_cv_lib_db=-ldb-4-4
28713 elif test $ol_cv_bdb_minor = 3 ; then
28714 if test $ol_cv_lib_db = no ; then
28715 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28716 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28717 if test "${ol_cv_db_db43+set}" = set; then
28718 echo $ECHO_N "(cached) $ECHO_C" >&6
28723 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28725 cat >conftest.$ac_ext <<_ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h. */
28732 #ifdef HAVE_DB_185_H
28733 # include <db_185.h>
28738 #ifndef DB_VERSION_MAJOR
28739 # define DB_VERSION_MAJOR 1
28743 #define NULL ((void*)0)
28750 #if DB_VERSION_MAJOR > 1
28753 int major, minor, patch;
28755 version = db_version( &major, &minor, &patch );
28757 if( major != DB_VERSION_MAJOR ||
28758 minor < DB_VERSION_MINOR )
28760 printf("Berkeley DB version mismatch\n"
28761 "\theader: %s\n\tlibrary: %s\n",
28762 DB_VERSION_STRING, version);
28768 #if DB_VERSION_MAJOR > 2
28769 db_env_create( NULL, 0 );
28770 #elif DB_VERSION_MAJOR > 1
28771 db_appexit( NULL );
28773 (void) dbopen( NULL, 0, 0, 0, NULL);
28780 rm -f conftest.$ac_objext conftest$ac_exeext
28781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28782 (eval $ac_link) 2>conftest.er1
28784 grep -v '^ *+' conftest.er1 >conftest.err
28786 cat conftest.err >&5
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); } &&
28789 { ac_try='test -z "$ac_c_werror_flag"
28790 || test ! -s conftest.err'
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; } &&
28796 { ac_try='test -s conftest$ac_exeext'
28797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28804 echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28809 rm -f conftest.err conftest.$ac_objext \
28810 conftest$ac_exeext conftest.$ac_ext
28815 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28816 echo "${ECHO_T}$ol_cv_db_db43" >&6
28818 if test $ol_cv_db_db43 = yes ; then
28819 ol_cv_lib_db=-ldb43
28823 if test $ol_cv_lib_db = no ; then
28824 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28825 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28826 if test "${ol_cv_db_db_43+set}" = set; then
28827 echo $ECHO_N "(cached) $ECHO_C" >&6
28832 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28834 cat >conftest.$ac_ext <<_ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h. */
28841 #ifdef HAVE_DB_185_H
28842 # include <db_185.h>
28847 #ifndef DB_VERSION_MAJOR
28848 # define DB_VERSION_MAJOR 1
28852 #define NULL ((void*)0)
28859 #if DB_VERSION_MAJOR > 1
28862 int major, minor, patch;
28864 version = db_version( &major, &minor, &patch );
28866 if( major != DB_VERSION_MAJOR ||
28867 minor < DB_VERSION_MINOR )
28869 printf("Berkeley DB version mismatch\n"
28870 "\theader: %s\n\tlibrary: %s\n",
28871 DB_VERSION_STRING, version);
28877 #if DB_VERSION_MAJOR > 2
28878 db_env_create( NULL, 0 );
28879 #elif DB_VERSION_MAJOR > 1
28880 db_appexit( NULL );
28882 (void) dbopen( NULL, 0, 0, 0, NULL);
28889 rm -f conftest.$ac_objext conftest$ac_exeext
28890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28891 (eval $ac_link) 2>conftest.er1
28893 grep -v '^ *+' conftest.er1 >conftest.err
28895 cat conftest.err >&5
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); } &&
28898 { ac_try='test -z "$ac_c_werror_flag"
28899 || test ! -s conftest.err'
28900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901 (eval $ac_try) 2>&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; } &&
28905 { ac_try='test -s conftest$ac_exeext'
28906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907 (eval $ac_try) 2>&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28913 echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28918 rm -f conftest.err conftest.$ac_objext \
28919 conftest$ac_exeext conftest.$ac_ext
28924 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28925 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28927 if test $ol_cv_db_db_43 = yes ; then
28928 ol_cv_lib_db=-ldb-43
28932 if test $ol_cv_lib_db = no ; then
28933 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28934 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28935 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28941 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28943 cat >conftest.$ac_ext <<_ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28950 #ifdef HAVE_DB_185_H
28951 # include <db_185.h>
28956 #ifndef DB_VERSION_MAJOR
28957 # define DB_VERSION_MAJOR 1
28961 #define NULL ((void*)0)
28968 #if DB_VERSION_MAJOR > 1
28971 int major, minor, patch;
28973 version = db_version( &major, &minor, &patch );
28975 if( major != DB_VERSION_MAJOR ||
28976 minor < DB_VERSION_MINOR )
28978 printf("Berkeley DB version mismatch\n"
28979 "\theader: %s\n\tlibrary: %s\n",
28980 DB_VERSION_STRING, version);
28986 #if DB_VERSION_MAJOR > 2
28987 db_env_create( NULL, 0 );
28988 #elif DB_VERSION_MAJOR > 1
28989 db_appexit( NULL );
28991 (void) dbopen( NULL, 0, 0, 0, NULL);
28998 rm -f conftest.$ac_objext conftest$ac_exeext
28999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29000 (eval $ac_link) 2>conftest.er1
29002 grep -v '^ *+' conftest.er1 >conftest.err
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); } &&
29007 { ac_try='test -z "$ac_c_werror_flag"
29008 || test ! -s conftest.err'
29009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29010 (eval $ac_try) 2>&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; } &&
29014 { ac_try='test -s conftest$ac_exeext'
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; }; then
29020 ol_cv_db_db_4_dot_3=yes
29022 echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29025 ol_cv_db_db_4_dot_3=no
29027 rm -f conftest.err conftest.$ac_objext \
29028 conftest$ac_exeext conftest.$ac_ext
29033 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29034 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29036 if test $ol_cv_db_db_4_dot_3 = yes ; then
29037 ol_cv_lib_db=-ldb-4.3
29041 if test $ol_cv_lib_db = no ; then
29042 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29043 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29044 if test "${ol_cv_db_db_4_3+set}" = set; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29050 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29052 cat >conftest.$ac_ext <<_ACEOF
29055 cat confdefs.h >>conftest.$ac_ext
29056 cat >>conftest.$ac_ext <<_ACEOF
29057 /* end confdefs.h. */
29059 #ifdef HAVE_DB_185_H
29060 # include <db_185.h>
29065 #ifndef DB_VERSION_MAJOR
29066 # define DB_VERSION_MAJOR 1
29070 #define NULL ((void*)0)
29077 #if DB_VERSION_MAJOR > 1
29080 int major, minor, patch;
29082 version = db_version( &major, &minor, &patch );
29084 if( major != DB_VERSION_MAJOR ||
29085 minor < DB_VERSION_MINOR )
29087 printf("Berkeley DB version mismatch\n"
29088 "\theader: %s\n\tlibrary: %s\n",
29089 DB_VERSION_STRING, version);
29095 #if DB_VERSION_MAJOR > 2
29096 db_env_create( NULL, 0 );
29097 #elif DB_VERSION_MAJOR > 1
29098 db_appexit( NULL );
29100 (void) dbopen( NULL, 0, 0, 0, NULL);
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29109 (eval $ac_link) 2>conftest.er1
29111 grep -v '^ *+' conftest.er1 >conftest.err
29113 cat conftest.err >&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); } &&
29116 { ac_try='test -z "$ac_c_werror_flag"
29117 || test ! -s conftest.err'
29118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119 (eval $ac_try) 2>&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest$ac_exeext'
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; }; then
29129 ol_cv_db_db_4_3=yes
29131 echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29136 rm -f conftest.err conftest.$ac_objext \
29137 conftest$ac_exeext conftest.$ac_ext
29142 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29143 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29145 if test $ol_cv_db_db_4_3 = yes ; then
29146 ol_cv_lib_db=-ldb-4-3
29150 elif test $ol_cv_bdb_minor = 2 ; then
29151 if test $ol_cv_lib_db = no ; then
29152 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29153 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29154 if test "${ol_cv_db_db42+set}" = set; then
29155 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29162 cat >conftest.$ac_ext <<_ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29169 #ifdef HAVE_DB_185_H
29170 # include <db_185.h>
29175 #ifndef DB_VERSION_MAJOR
29176 # define DB_VERSION_MAJOR 1
29180 #define NULL ((void*)0)
29187 #if DB_VERSION_MAJOR > 1
29190 int major, minor, patch;
29192 version = db_version( &major, &minor, &patch );
29194 if( major != DB_VERSION_MAJOR ||
29195 minor < DB_VERSION_MINOR )
29197 printf("Berkeley DB version mismatch\n"
29198 "\theader: %s\n\tlibrary: %s\n",
29199 DB_VERSION_STRING, version);
29205 #if DB_VERSION_MAJOR > 2
29206 db_env_create( NULL, 0 );
29207 #elif DB_VERSION_MAJOR > 1
29208 db_appexit( NULL );
29210 (void) dbopen( NULL, 0, 0, 0, NULL);
29217 rm -f conftest.$ac_objext conftest$ac_exeext
29218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29219 (eval $ac_link) 2>conftest.er1
29221 grep -v '^ *+' conftest.er1 >conftest.err
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } &&
29226 { ac_try='test -z "$ac_c_werror_flag"
29227 || test ! -s conftest.err'
29228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229 (eval $ac_try) 2>&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); }; } &&
29233 { ac_try='test -s conftest$ac_exeext'
29234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235 (eval $ac_try) 2>&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); }; }; then
29241 echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29246 rm -f conftest.err conftest.$ac_objext \
29247 conftest$ac_exeext conftest.$ac_ext
29252 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29253 echo "${ECHO_T}$ol_cv_db_db42" >&6
29255 if test $ol_cv_db_db42 = yes ; then
29256 ol_cv_lib_db=-ldb42
29260 if test $ol_cv_lib_db = no ; then
29261 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29262 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29263 if test "${ol_cv_db_db_42+set}" = set; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29271 cat >conftest.$ac_ext <<_ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h. */
29278 #ifdef HAVE_DB_185_H
29279 # include <db_185.h>
29284 #ifndef DB_VERSION_MAJOR
29285 # define DB_VERSION_MAJOR 1
29289 #define NULL ((void*)0)
29296 #if DB_VERSION_MAJOR > 1
29299 int major, minor, patch;
29301 version = db_version( &major, &minor, &patch );
29303 if( major != DB_VERSION_MAJOR ||
29304 minor < DB_VERSION_MINOR )
29306 printf("Berkeley DB version mismatch\n"
29307 "\theader: %s\n\tlibrary: %s\n",
29308 DB_VERSION_STRING, version);
29314 #if DB_VERSION_MAJOR > 2
29315 db_env_create( NULL, 0 );
29316 #elif DB_VERSION_MAJOR > 1
29317 db_appexit( NULL );
29319 (void) dbopen( NULL, 0, 0, 0, NULL);
29326 rm -f conftest.$ac_objext conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328 (eval $ac_link) 2>conftest.er1
29330 grep -v '^ *+' conftest.er1 >conftest.err
29332 cat conftest.err >&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); } &&
29335 { ac_try='test -z "$ac_c_werror_flag"
29336 || test ! -s conftest.err'
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest$ac_exeext'
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29350 echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29355 rm -f conftest.err conftest.$ac_objext \
29356 conftest$ac_exeext conftest.$ac_ext
29361 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29362 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29364 if test $ol_cv_db_db_42 = yes ; then
29365 ol_cv_lib_db=-ldb-42
29369 if test $ol_cv_lib_db = no ; then
29370 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29371 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29372 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29378 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29380 cat >conftest.$ac_ext <<_ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29387 #ifdef HAVE_DB_185_H
29388 # include <db_185.h>
29393 #ifndef DB_VERSION_MAJOR
29394 # define DB_VERSION_MAJOR 1
29398 #define NULL ((void*)0)
29405 #if DB_VERSION_MAJOR > 1
29408 int major, minor, patch;
29410 version = db_version( &major, &minor, &patch );
29412 if( major != DB_VERSION_MAJOR ||
29413 minor < DB_VERSION_MINOR )
29415 printf("Berkeley DB version mismatch\n"
29416 "\theader: %s\n\tlibrary: %s\n",
29417 DB_VERSION_STRING, version);
29423 #if DB_VERSION_MAJOR > 2
29424 db_env_create( NULL, 0 );
29425 #elif DB_VERSION_MAJOR > 1
29426 db_appexit( NULL );
29428 (void) dbopen( NULL, 0, 0, 0, NULL);
29435 rm -f conftest.$ac_objext conftest$ac_exeext
29436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29437 (eval $ac_link) 2>conftest.er1
29439 grep -v '^ *+' conftest.er1 >conftest.err
29441 cat conftest.err >&5
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); } &&
29444 { ac_try='test -z "$ac_c_werror_flag"
29445 || test ! -s conftest.err'
29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; } &&
29451 { ac_try='test -s conftest$ac_exeext'
29452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453 (eval $ac_try) 2>&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; }; then
29457 ol_cv_db_db_4_dot_2=yes
29459 echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29462 ol_cv_db_db_4_dot_2=no
29464 rm -f conftest.err conftest.$ac_objext \
29465 conftest$ac_exeext conftest.$ac_ext
29470 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29471 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29473 if test $ol_cv_db_db_4_dot_2 = yes ; then
29474 ol_cv_lib_db=-ldb-4.2
29478 if test $ol_cv_lib_db = no ; then
29479 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29480 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29481 if test "${ol_cv_db_db_4_2+set}" = set; then
29482 echo $ECHO_N "(cached) $ECHO_C" >&6
29487 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29489 cat >conftest.$ac_ext <<_ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h. */
29496 #ifdef HAVE_DB_185_H
29497 # include <db_185.h>
29502 #ifndef DB_VERSION_MAJOR
29503 # define DB_VERSION_MAJOR 1
29507 #define NULL ((void*)0)
29514 #if DB_VERSION_MAJOR > 1
29517 int major, minor, patch;
29519 version = db_version( &major, &minor, &patch );
29521 if( major != DB_VERSION_MAJOR ||
29522 minor < DB_VERSION_MINOR )
29524 printf("Berkeley DB version mismatch\n"
29525 "\theader: %s\n\tlibrary: %s\n",
29526 DB_VERSION_STRING, version);
29532 #if DB_VERSION_MAJOR > 2
29533 db_env_create( NULL, 0 );
29534 #elif DB_VERSION_MAJOR > 1
29535 db_appexit( NULL );
29537 (void) dbopen( NULL, 0, 0, 0, NULL);
29544 rm -f conftest.$ac_objext conftest$ac_exeext
29545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29546 (eval $ac_link) 2>conftest.er1
29548 grep -v '^ *+' conftest.er1 >conftest.err
29550 cat conftest.err >&5
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); } &&
29553 { ac_try='test -z "$ac_c_werror_flag"
29554 || test ! -s conftest.err'
29555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556 (eval $ac_try) 2>&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; } &&
29560 { ac_try='test -s conftest$ac_exeext'
29561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562 (eval $ac_try) 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; }; then
29566 ol_cv_db_db_4_2=yes
29568 echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29573 rm -f conftest.err conftest.$ac_objext \
29574 conftest$ac_exeext conftest.$ac_ext
29579 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29580 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29582 if test $ol_cv_db_db_4_2 = yes ; then
29583 ol_cv_lib_db=-ldb-4-2
29587 elif test $ol_cv_bdb_minor = 1 ; then
29588 if test $ol_cv_lib_db = no ; then
29589 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29590 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29591 if test "${ol_cv_db_db41+set}" = set; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29597 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29599 cat >conftest.$ac_ext <<_ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29606 #ifdef HAVE_DB_185_H
29607 # include <db_185.h>
29612 #ifndef DB_VERSION_MAJOR
29613 # define DB_VERSION_MAJOR 1
29617 #define NULL ((void*)0)
29624 #if DB_VERSION_MAJOR > 1
29627 int major, minor, patch;
29629 version = db_version( &major, &minor, &patch );
29631 if( major != DB_VERSION_MAJOR ||
29632 minor < DB_VERSION_MINOR )
29634 printf("Berkeley DB version mismatch\n"
29635 "\theader: %s\n\tlibrary: %s\n",
29636 DB_VERSION_STRING, version);
29642 #if DB_VERSION_MAJOR > 2
29643 db_env_create( NULL, 0 );
29644 #elif DB_VERSION_MAJOR > 1
29645 db_appexit( NULL );
29647 (void) dbopen( NULL, 0, 0, 0, NULL);
29654 rm -f conftest.$ac_objext conftest$ac_exeext
29655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29656 (eval $ac_link) 2>conftest.er1
29658 grep -v '^ *+' conftest.er1 >conftest.err
29660 cat conftest.err >&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } &&
29663 { ac_try='test -z "$ac_c_werror_flag"
29664 || test ! -s conftest.err'
29665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29666 (eval $ac_try) 2>&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; } &&
29670 { ac_try='test -s conftest$ac_exeext'
29671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672 (eval $ac_try) 2>&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); }; }; then
29678 echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29683 rm -f conftest.err conftest.$ac_objext \
29684 conftest$ac_exeext conftest.$ac_ext
29689 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29690 echo "${ECHO_T}$ol_cv_db_db41" >&6
29692 if test $ol_cv_db_db41 = yes ; then
29693 ol_cv_lib_db=-ldb41
29697 if test $ol_cv_lib_db = no ; then
29698 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29699 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29700 if test "${ol_cv_db_db_41+set}" = set; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29706 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29708 cat >conftest.$ac_ext <<_ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h. */
29715 #ifdef HAVE_DB_185_H
29716 # include <db_185.h>
29721 #ifndef DB_VERSION_MAJOR
29722 # define DB_VERSION_MAJOR 1
29726 #define NULL ((void*)0)
29733 #if DB_VERSION_MAJOR > 1
29736 int major, minor, patch;
29738 version = db_version( &major, &minor, &patch );
29740 if( major != DB_VERSION_MAJOR ||
29741 minor < DB_VERSION_MINOR )
29743 printf("Berkeley DB version mismatch\n"
29744 "\theader: %s\n\tlibrary: %s\n",
29745 DB_VERSION_STRING, version);
29751 #if DB_VERSION_MAJOR > 2
29752 db_env_create( NULL, 0 );
29753 #elif DB_VERSION_MAJOR > 1
29754 db_appexit( NULL );
29756 (void) dbopen( NULL, 0, 0, 0, NULL);
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765 (eval $ac_link) 2>conftest.er1
29767 grep -v '^ *+' conftest.er1 >conftest.err
29769 cat conftest.err >&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); } &&
29772 { ac_try='test -z "$ac_c_werror_flag"
29773 || test ! -s conftest.err'
29774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775 (eval $ac_try) 2>&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } &&
29779 { ac_try='test -s conftest$ac_exeext'
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; }; then
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29792 rm -f conftest.err conftest.$ac_objext \
29793 conftest$ac_exeext conftest.$ac_ext
29798 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29799 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29801 if test $ol_cv_db_db_41 = yes ; then
29802 ol_cv_lib_db=-ldb-41
29806 if test $ol_cv_lib_db = no ; then
29807 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29808 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29809 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29810 echo $ECHO_N "(cached) $ECHO_C" >&6
29815 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29817 cat >conftest.$ac_ext <<_ACEOF
29820 cat confdefs.h >>conftest.$ac_ext
29821 cat >>conftest.$ac_ext <<_ACEOF
29822 /* end confdefs.h. */
29824 #ifdef HAVE_DB_185_H
29825 # include <db_185.h>
29830 #ifndef DB_VERSION_MAJOR
29831 # define DB_VERSION_MAJOR 1
29835 #define NULL ((void*)0)
29842 #if DB_VERSION_MAJOR > 1
29845 int major, minor, patch;
29847 version = db_version( &major, &minor, &patch );
29849 if( major != DB_VERSION_MAJOR ||
29850 minor < DB_VERSION_MINOR )
29852 printf("Berkeley DB version mismatch\n"
29853 "\theader: %s\n\tlibrary: %s\n",
29854 DB_VERSION_STRING, version);
29860 #if DB_VERSION_MAJOR > 2
29861 db_env_create( NULL, 0 );
29862 #elif DB_VERSION_MAJOR > 1
29863 db_appexit( NULL );
29865 (void) dbopen( NULL, 0, 0, 0, NULL);
29872 rm -f conftest.$ac_objext conftest$ac_exeext
29873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29874 (eval $ac_link) 2>conftest.er1
29876 grep -v '^ *+' conftest.er1 >conftest.err
29878 cat conftest.err >&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } &&
29881 { ac_try='test -z "$ac_c_werror_flag"
29882 || test ! -s conftest.err'
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; } &&
29888 { ac_try='test -s conftest$ac_exeext'
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; }; then
29894 ol_cv_db_db_4_dot_1=yes
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 ol_cv_db_db_4_dot_1=no
29901 rm -f conftest.err conftest.$ac_objext \
29902 conftest$ac_exeext conftest.$ac_ext
29907 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29908 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29910 if test $ol_cv_db_db_4_dot_1 = yes ; then
29911 ol_cv_lib_db=-ldb-4.1
29915 if test $ol_cv_lib_db = no ; then
29916 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29917 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29918 if test "${ol_cv_db_db_4_1+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29924 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29926 cat >conftest.$ac_ext <<_ACEOF
29929 cat confdefs.h >>conftest.$ac_ext
29930 cat >>conftest.$ac_ext <<_ACEOF
29931 /* end confdefs.h. */
29933 #ifdef HAVE_DB_185_H
29934 # include <db_185.h>
29939 #ifndef DB_VERSION_MAJOR
29940 # define DB_VERSION_MAJOR 1
29944 #define NULL ((void*)0)
29951 #if DB_VERSION_MAJOR > 1
29954 int major, minor, patch;
29956 version = db_version( &major, &minor, &patch );
29958 if( major != DB_VERSION_MAJOR ||
29959 minor < DB_VERSION_MINOR )
29961 printf("Berkeley DB version mismatch\n"
29962 "\theader: %s\n\tlibrary: %s\n",
29963 DB_VERSION_STRING, version);
29969 #if DB_VERSION_MAJOR > 2
29970 db_env_create( NULL, 0 );
29971 #elif DB_VERSION_MAJOR > 1
29972 db_appexit( NULL );
29974 (void) dbopen( NULL, 0, 0, 0, NULL);
29981 rm -f conftest.$ac_objext conftest$ac_exeext
29982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29983 (eval $ac_link) 2>conftest.er1
29985 grep -v '^ *+' conftest.er1 >conftest.err
29987 cat conftest.err >&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); } &&
29990 { ac_try='test -z "$ac_c_werror_flag"
29991 || test ! -s conftest.err'
29992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993 (eval $ac_try) 2>&5
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; } &&
29997 { ac_try='test -s conftest$ac_exeext'
29998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999 (eval $ac_try) 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; }; then
30003 ol_cv_db_db_4_1=yes
30005 echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30010 rm -f conftest.err conftest.$ac_objext \
30011 conftest$ac_exeext conftest.$ac_ext
30016 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30017 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30019 if test $ol_cv_db_db_4_1 = yes ; then
30020 ol_cv_lib_db=-ldb-4-1
30025 if test $ol_cv_lib_db = no ; then
30026 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30027 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30028 if test "${ol_cv_db_db_4+set}" = set; then
30029 echo $ECHO_N "(cached) $ECHO_C" >&6
30034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30036 cat >conftest.$ac_ext <<_ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h. */
30043 #ifdef HAVE_DB_185_H
30044 # include <db_185.h>
30049 #ifndef DB_VERSION_MAJOR
30050 # define DB_VERSION_MAJOR 1
30054 #define NULL ((void*)0)
30061 #if DB_VERSION_MAJOR > 1
30064 int major, minor, patch;
30066 version = db_version( &major, &minor, &patch );
30068 if( major != DB_VERSION_MAJOR ||
30069 minor < DB_VERSION_MINOR )
30071 printf("Berkeley DB version mismatch\n"
30072 "\theader: %s\n\tlibrary: %s\n",
30073 DB_VERSION_STRING, version);
30079 #if DB_VERSION_MAJOR > 2
30080 db_env_create( NULL, 0 );
30081 #elif DB_VERSION_MAJOR > 1
30082 db_appexit( NULL );
30084 (void) dbopen( NULL, 0, 0, 0, NULL);
30091 rm -f conftest.$ac_objext conftest$ac_exeext
30092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30093 (eval $ac_link) 2>conftest.er1
30095 grep -v '^ *+' conftest.er1 >conftest.err
30097 cat conftest.err >&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); } &&
30100 { ac_try='test -z "$ac_c_werror_flag"
30101 || test ! -s conftest.err'
30102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30103 (eval $ac_try) 2>&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); }; } &&
30107 { ac_try='test -s conftest$ac_exeext'
30108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30109 (eval $ac_try) 2>&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; }; then
30115 echo "$as_me: failed program was:" >&5
30116 sed 's/^/| /' conftest.$ac_ext >&5
30120 rm -f conftest.err conftest.$ac_objext \
30121 conftest$ac_exeext conftest.$ac_ext
30126 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30127 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30129 if test $ol_cv_db_db_4 = yes ; then
30130 ol_cv_lib_db=-ldb-4
30134 if test $ol_cv_lib_db = no ; then
30135 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30136 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30137 if test "${ol_cv_db_db4+set}" = set; then
30138 echo $ECHO_N "(cached) $ECHO_C" >&6
30143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30145 cat >conftest.$ac_ext <<_ACEOF
30148 cat confdefs.h >>conftest.$ac_ext
30149 cat >>conftest.$ac_ext <<_ACEOF
30150 /* end confdefs.h. */
30152 #ifdef HAVE_DB_185_H
30153 # include <db_185.h>
30158 #ifndef DB_VERSION_MAJOR
30159 # define DB_VERSION_MAJOR 1
30163 #define NULL ((void*)0)
30170 #if DB_VERSION_MAJOR > 1
30173 int major, minor, patch;
30175 version = db_version( &major, &minor, &patch );
30177 if( major != DB_VERSION_MAJOR ||
30178 minor < DB_VERSION_MINOR )
30180 printf("Berkeley DB version mismatch\n"
30181 "\theader: %s\n\tlibrary: %s\n",
30182 DB_VERSION_STRING, version);
30188 #if DB_VERSION_MAJOR > 2
30189 db_env_create( NULL, 0 );
30190 #elif DB_VERSION_MAJOR > 1
30191 db_appexit( NULL );
30193 (void) dbopen( NULL, 0, 0, 0, NULL);
30200 rm -f conftest.$ac_objext conftest$ac_exeext
30201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30202 (eval $ac_link) 2>conftest.er1
30204 grep -v '^ *+' conftest.er1 >conftest.err
30206 cat conftest.err >&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); } &&
30209 { ac_try='test -z "$ac_c_werror_flag"
30210 || test ! -s conftest.err'
30211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; } &&
30216 { ac_try='test -s conftest$ac_exeext'
30217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30229 rm -f conftest.err conftest.$ac_objext \
30230 conftest$ac_exeext conftest.$ac_ext
30235 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30236 echo "${ECHO_T}$ol_cv_db_db4" >&6
30238 if test $ol_cv_db_db4 = yes ; then
30243 if test $ol_cv_lib_db = no ; then
30244 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30245 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30246 if test "${ol_cv_db_db+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30252 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30254 cat >conftest.$ac_ext <<_ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h. */
30261 #ifdef HAVE_DB_185_H
30262 # include <db_185.h>
30267 #ifndef DB_VERSION_MAJOR
30268 # define DB_VERSION_MAJOR 1
30272 #define NULL ((void*)0)
30279 #if DB_VERSION_MAJOR > 1
30282 int major, minor, patch;
30284 version = db_version( &major, &minor, &patch );
30286 if( major != DB_VERSION_MAJOR ||
30287 minor < DB_VERSION_MINOR )
30289 printf("Berkeley DB version mismatch\n"
30290 "\theader: %s\n\tlibrary: %s\n",
30291 DB_VERSION_STRING, version);
30297 #if DB_VERSION_MAJOR > 2
30298 db_env_create( NULL, 0 );
30299 #elif DB_VERSION_MAJOR > 1
30300 db_appexit( NULL );
30302 (void) dbopen( NULL, 0, 0, 0, NULL);
30309 rm -f conftest.$ac_objext conftest$ac_exeext
30310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311 (eval $ac_link) 2>conftest.er1
30313 grep -v '^ *+' conftest.er1 >conftest.err
30315 cat conftest.err >&5
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); } &&
30318 { ac_try='test -z "$ac_c_werror_flag"
30319 || test ! -s conftest.err'
30320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30321 (eval $ac_try) 2>&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest$ac_exeext'
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; }; then
30333 echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30338 rm -f conftest.err conftest.$ac_objext \
30339 conftest$ac_exeext conftest.$ac_ext
30344 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30345 echo "${ECHO_T}$ol_cv_db_db" >&6
30347 if test $ol_cv_db_db = yes ; then
30353 elif test $ol_cv_bdb_major = 3 ; then
30354 if test $ol_cv_lib_db = no ; then
30355 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30356 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30357 if test "${ol_cv_db_db3+set}" = set; then
30358 echo $ECHO_N "(cached) $ECHO_C" >&6
30363 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30365 cat >conftest.$ac_ext <<_ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30372 #ifdef HAVE_DB_185_H
30373 # include <db_185.h>
30378 #ifndef DB_VERSION_MAJOR
30379 # define DB_VERSION_MAJOR 1
30383 #define NULL ((void*)0)
30390 #if DB_VERSION_MAJOR > 1
30393 int major, minor, patch;
30395 version = db_version( &major, &minor, &patch );
30397 if( major != DB_VERSION_MAJOR ||
30398 minor < DB_VERSION_MINOR )
30400 printf("Berkeley DB version mismatch\n"
30401 "\theader: %s\n\tlibrary: %s\n",
30402 DB_VERSION_STRING, version);
30408 #if DB_VERSION_MAJOR > 2
30409 db_env_create( NULL, 0 );
30410 #elif DB_VERSION_MAJOR > 1
30411 db_appexit( NULL );
30413 (void) dbopen( NULL, 0, 0, 0, NULL);
30420 rm -f conftest.$ac_objext conftest$ac_exeext
30421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30422 (eval $ac_link) 2>conftest.er1
30424 grep -v '^ *+' conftest.er1 >conftest.err
30426 cat conftest.err >&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); } &&
30429 { ac_try='test -z "$ac_c_werror_flag"
30430 || test ! -s conftest.err'
30431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30432 (eval $ac_try) 2>&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; } &&
30436 { ac_try='test -s conftest$ac_exeext'
30437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30438 (eval $ac_try) 2>&5
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); }; }; then
30444 echo "$as_me: failed program was:" >&5
30445 sed 's/^/| /' conftest.$ac_ext >&5
30449 rm -f conftest.err conftest.$ac_objext \
30450 conftest$ac_exeext conftest.$ac_ext
30455 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30456 echo "${ECHO_T}$ol_cv_db_db3" >&6
30458 if test $ol_cv_db_db3 = yes ; then
30463 if test $ol_cv_lib_db = no ; then
30464 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30465 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30466 if test "${ol_cv_db_db_3+set}" = set; then
30467 echo $ECHO_N "(cached) $ECHO_C" >&6
30472 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30474 cat >conftest.$ac_ext <<_ACEOF
30477 cat confdefs.h >>conftest.$ac_ext
30478 cat >>conftest.$ac_ext <<_ACEOF
30479 /* end confdefs.h. */
30481 #ifdef HAVE_DB_185_H
30482 # include <db_185.h>
30487 #ifndef DB_VERSION_MAJOR
30488 # define DB_VERSION_MAJOR 1
30492 #define NULL ((void*)0)
30499 #if DB_VERSION_MAJOR > 1
30502 int major, minor, patch;
30504 version = db_version( &major, &minor, &patch );
30506 if( major != DB_VERSION_MAJOR ||
30507 minor < DB_VERSION_MINOR )
30509 printf("Berkeley DB version mismatch\n"
30510 "\theader: %s\n\tlibrary: %s\n",
30511 DB_VERSION_STRING, version);
30517 #if DB_VERSION_MAJOR > 2
30518 db_env_create( NULL, 0 );
30519 #elif DB_VERSION_MAJOR > 1
30520 db_appexit( NULL );
30522 (void) dbopen( NULL, 0, 0, 0, NULL);
30529 rm -f conftest.$ac_objext conftest$ac_exeext
30530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30531 (eval $ac_link) 2>conftest.er1
30533 grep -v '^ *+' conftest.er1 >conftest.err
30535 cat conftest.err >&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); } &&
30538 { ac_try='test -z "$ac_c_werror_flag"
30539 || test ! -s conftest.err'
30540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30541 (eval $ac_try) 2>&5
30543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544 (exit $ac_status); }; } &&
30545 { ac_try='test -s conftest$ac_exeext'
30546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30547 (eval $ac_try) 2>&5
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); }; }; then
30553 echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30558 rm -f conftest.err conftest.$ac_objext \
30559 conftest$ac_exeext conftest.$ac_ext
30564 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30565 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30567 if test $ol_cv_db_db_3 = yes ; then
30568 ol_cv_lib_db=-ldb-3
30573 elif test $ol_cv_bdb_major = 2 ; then
30574 if test $ol_cv_lib_db = no ; then
30575 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30576 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30577 if test "${ol_cv_db_db2+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30583 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30585 cat >conftest.$ac_ext <<_ACEOF
30588 cat confdefs.h >>conftest.$ac_ext
30589 cat >>conftest.$ac_ext <<_ACEOF
30590 /* end confdefs.h. */
30592 #ifdef HAVE_DB_185_H
30593 # include <db_185.h>
30598 #ifndef DB_VERSION_MAJOR
30599 # define DB_VERSION_MAJOR 1
30603 #define NULL ((void*)0)
30610 #if DB_VERSION_MAJOR > 1
30613 int major, minor, patch;
30615 version = db_version( &major, &minor, &patch );
30617 if( major != DB_VERSION_MAJOR ||
30618 minor < DB_VERSION_MINOR )
30620 printf("Berkeley DB version mismatch\n"
30621 "\theader: %s\n\tlibrary: %s\n",
30622 DB_VERSION_STRING, version);
30628 #if DB_VERSION_MAJOR > 2
30629 db_env_create( NULL, 0 );
30630 #elif DB_VERSION_MAJOR > 1
30631 db_appexit( NULL );
30633 (void) dbopen( NULL, 0, 0, 0, NULL);
30640 rm -f conftest.$ac_objext conftest$ac_exeext
30641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30642 (eval $ac_link) 2>conftest.er1
30644 grep -v '^ *+' conftest.er1 >conftest.err
30646 cat conftest.err >&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); } &&
30649 { ac_try='test -z "$ac_c_werror_flag"
30650 || test ! -s conftest.err'
30651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652 (eval $ac_try) 2>&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; } &&
30656 { ac_try='test -s conftest$ac_exeext'
30657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30658 (eval $ac_try) 2>&5
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
30664 echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30669 rm -f conftest.err conftest.$ac_objext \
30670 conftest$ac_exeext conftest.$ac_ext
30675 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30676 echo "${ECHO_T}$ol_cv_db_db2" >&6
30678 if test $ol_cv_db_db2 = yes ; then
30683 if test $ol_cv_lib_db = no ; then
30684 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30685 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30686 if test "${ol_cv_db_db_2+set}" = set; then
30687 echo $ECHO_N "(cached) $ECHO_C" >&6
30692 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30694 cat >conftest.$ac_ext <<_ACEOF
30697 cat confdefs.h >>conftest.$ac_ext
30698 cat >>conftest.$ac_ext <<_ACEOF
30699 /* end confdefs.h. */
30701 #ifdef HAVE_DB_185_H
30702 # include <db_185.h>
30707 #ifndef DB_VERSION_MAJOR
30708 # define DB_VERSION_MAJOR 1
30712 #define NULL ((void*)0)
30719 #if DB_VERSION_MAJOR > 1
30722 int major, minor, patch;
30724 version = db_version( &major, &minor, &patch );
30726 if( major != DB_VERSION_MAJOR ||
30727 minor < DB_VERSION_MINOR )
30729 printf("Berkeley DB version mismatch\n"
30730 "\theader: %s\n\tlibrary: %s\n",
30731 DB_VERSION_STRING, version);
30737 #if DB_VERSION_MAJOR > 2
30738 db_env_create( NULL, 0 );
30739 #elif DB_VERSION_MAJOR > 1
30740 db_appexit( NULL );
30742 (void) dbopen( NULL, 0, 0, 0, NULL);
30749 rm -f conftest.$ac_objext conftest$ac_exeext
30750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30751 (eval $ac_link) 2>conftest.er1
30753 grep -v '^ *+' conftest.er1 >conftest.err
30755 cat conftest.err >&5
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); } &&
30758 { ac_try='test -z "$ac_c_werror_flag"
30759 || test ! -s conftest.err'
30760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761 (eval $ac_try) 2>&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; } &&
30765 { ac_try='test -s conftest$ac_exeext'
30766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767 (eval $ac_try) 2>&5
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
30773 echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30778 rm -f conftest.err conftest.$ac_objext \
30779 conftest$ac_exeext conftest.$ac_ext
30784 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30785 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30787 if test $ol_cv_db_db_2 = yes ; then
30788 ol_cv_lib_db=-ldb-2
30793 elif test $ol_cv_bdb_major = 1 ; then
30794 if test $ol_cv_lib_db = no ; then
30795 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30796 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30797 if test "${ol_cv_db_db1+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30803 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30805 cat >conftest.$ac_ext <<_ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h. */
30812 #ifdef HAVE_DB_185_H
30813 # include <db_185.h>
30818 #ifndef DB_VERSION_MAJOR
30819 # define DB_VERSION_MAJOR 1
30823 #define NULL ((void*)0)
30830 #if DB_VERSION_MAJOR > 1
30833 int major, minor, patch;
30835 version = db_version( &major, &minor, &patch );
30837 if( major != DB_VERSION_MAJOR ||
30838 minor < DB_VERSION_MINOR )
30840 printf("Berkeley DB version mismatch\n"
30841 "\theader: %s\n\tlibrary: %s\n",
30842 DB_VERSION_STRING, version);
30848 #if DB_VERSION_MAJOR > 2
30849 db_env_create( NULL, 0 );
30850 #elif DB_VERSION_MAJOR > 1
30851 db_appexit( NULL );
30853 (void) dbopen( NULL, 0, 0, 0, NULL);
30860 rm -f conftest.$ac_objext conftest$ac_exeext
30861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30862 (eval $ac_link) 2>conftest.er1
30864 grep -v '^ *+' conftest.er1 >conftest.err
30866 cat conftest.err >&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); } &&
30869 { ac_try='test -z "$ac_c_werror_flag"
30870 || test ! -s conftest.err'
30871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872 (eval $ac_try) 2>&5
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); }; } &&
30876 { ac_try='test -s conftest$ac_exeext'
30877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30878 (eval $ac_try) 2>&5
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); }; }; then
30884 echo "$as_me: failed program was:" >&5
30885 sed 's/^/| /' conftest.$ac_ext >&5
30889 rm -f conftest.err conftest.$ac_objext \
30890 conftest$ac_exeext conftest.$ac_ext
30895 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30896 echo "${ECHO_T}$ol_cv_db_db1" >&6
30898 if test $ol_cv_db_db1 = yes ; then
30903 if test $ol_cv_lib_db = no ; then
30904 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30905 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30906 if test "${ol_cv_db_db_1+set}" = set; then
30907 echo $ECHO_N "(cached) $ECHO_C" >&6
30912 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30914 cat >conftest.$ac_ext <<_ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h. */
30921 #ifdef HAVE_DB_185_H
30922 # include <db_185.h>
30927 #ifndef DB_VERSION_MAJOR
30928 # define DB_VERSION_MAJOR 1
30932 #define NULL ((void*)0)
30939 #if DB_VERSION_MAJOR > 1
30942 int major, minor, patch;
30944 version = db_version( &major, &minor, &patch );
30946 if( major != DB_VERSION_MAJOR ||
30947 minor < DB_VERSION_MINOR )
30949 printf("Berkeley DB version mismatch\n"
30950 "\theader: %s\n\tlibrary: %s\n",
30951 DB_VERSION_STRING, version);
30957 #if DB_VERSION_MAJOR > 2
30958 db_env_create( NULL, 0 );
30959 #elif DB_VERSION_MAJOR > 1
30960 db_appexit( NULL );
30962 (void) dbopen( NULL, 0, 0, 0, NULL);
30969 rm -f conftest.$ac_objext conftest$ac_exeext
30970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30971 (eval $ac_link) 2>conftest.er1
30973 grep -v '^ *+' conftest.er1 >conftest.err
30975 cat conftest.err >&5
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); } &&
30978 { ac_try='test -z "$ac_c_werror_flag"
30979 || test ! -s conftest.err'
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; } &&
30985 { ac_try='test -s conftest$ac_exeext'
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30998 rm -f conftest.err conftest.$ac_objext \
30999 conftest$ac_exeext conftest.$ac_ext
31004 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31005 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31007 if test $ol_cv_db_db_1 = yes ; then
31008 ol_cv_lib_db=-ldb-1
31013 if test $ol_cv_lib_db = no ; then
31014 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31015 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31016 if test "${ol_cv_db_none+set}" = set; then
31017 echo $ECHO_N "(cached) $ECHO_C" >&6
31022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31024 cat >conftest.$ac_ext <<_ACEOF
31027 cat confdefs.h >>conftest.$ac_ext
31028 cat >>conftest.$ac_ext <<_ACEOF
31029 /* end confdefs.h. */
31031 #ifdef HAVE_DB_185_H
31032 # include <db_185.h>
31037 #ifndef DB_VERSION_MAJOR
31038 # define DB_VERSION_MAJOR 1
31042 #define NULL ((void*)0)
31049 #if DB_VERSION_MAJOR > 1
31052 int major, minor, patch;
31054 version = db_version( &major, &minor, &patch );
31056 if( major != DB_VERSION_MAJOR ||
31057 minor < DB_VERSION_MINOR )
31059 printf("Berkeley DB version mismatch\n"
31060 "\theader: %s\n\tlibrary: %s\n",
31061 DB_VERSION_STRING, version);
31067 #if DB_VERSION_MAJOR > 2
31068 db_env_create( NULL, 0 );
31069 #elif DB_VERSION_MAJOR > 1
31070 db_appexit( NULL );
31072 (void) dbopen( NULL, 0, 0, 0, NULL);
31079 rm -f conftest.$ac_objext conftest$ac_exeext
31080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31081 (eval $ac_link) 2>conftest.er1
31083 grep -v '^ *+' conftest.er1 >conftest.err
31085 cat conftest.err >&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); } &&
31088 { ac_try='test -z "$ac_c_werror_flag"
31089 || test ! -s conftest.err'
31090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31091 (eval $ac_try) 2>&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); }; } &&
31095 { ac_try='test -s conftest$ac_exeext'
31096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097 (eval $ac_try) 2>&5
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); }; }; then
31103 echo "$as_me: failed program was:" >&5
31104 sed 's/^/| /' conftest.$ac_ext >&5
31108 rm -f conftest.err conftest.$ac_objext \
31109 conftest$ac_exeext conftest.$ac_ext
31114 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31115 echo "${ECHO_T}$ol_cv_db_none" >&6
31117 if test $ol_cv_db_none = yes ; then
31123 if test "$ol_cv_lib_db" != no ; then
31124 ol_cv_berkeley_db=yes
31130 ol_cv_berkeley_db=no
31132 for ac_header in db.h
31134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31136 echo "$as_me:$LINENO: checking for $ac_header" >&5
31137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31139 echo $ECHO_N "(cached) $ECHO_C" >&6
31141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31144 # Is the header compilable?
31145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31147 cat >conftest.$ac_ext <<_ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h. */
31153 $ac_includes_default
31154 #include <$ac_header>
31156 rm -f conftest.$ac_objext
31157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31158 (eval $ac_compile) 2>conftest.er1
31160 grep -v '^ *+' conftest.er1 >conftest.err
31162 cat conftest.err >&5
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } &&
31165 { ac_try='test -z "$ac_c_werror_flag"
31166 || test ! -s conftest.err'
31167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168 (eval $ac_try) 2>&5
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); }; } &&
31172 { ac_try='test -s conftest.$ac_objext'
31173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174 (eval $ac_try) 2>&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; }; then
31178 ac_header_compiler=yes
31180 echo "$as_me: failed program was:" >&5
31181 sed 's/^/| /' conftest.$ac_ext >&5
31183 ac_header_compiler=no
31185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31187 echo "${ECHO_T}$ac_header_compiler" >&6
31189 # Is the header present?
31190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31192 cat >conftest.$ac_ext <<_ACEOF
31195 cat confdefs.h >>conftest.$ac_ext
31196 cat >>conftest.$ac_ext <<_ACEOF
31197 /* end confdefs.h. */
31198 #include <$ac_header>
31200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31203 grep -v '^ *+' conftest.er1 >conftest.err
31205 cat conftest.err >&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } >/dev/null; then
31208 if test -s conftest.err; then
31209 ac_cpp_err=$ac_c_preproc_warn_flag
31210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31217 if test -z "$ac_cpp_err"; then
31218 ac_header_preproc=yes
31220 echo "$as_me: failed program was:" >&5
31221 sed 's/^/| /' conftest.$ac_ext >&5
31223 ac_header_preproc=no
31225 rm -f conftest.err conftest.$ac_ext
31226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31227 echo "${ECHO_T}$ac_header_preproc" >&6
31229 # So? What about this header?
31230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31236 ac_header_preproc=yes
31239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31253 ## ------------------------------------------ ##
31254 ## Report this to the AC_PACKAGE_NAME lists. ##
31255 ## ------------------------------------------ ##
31258 sed "s/^/$as_me: WARNING: /" >&2
31261 echo "$as_me:$LINENO: checking for $ac_header" >&5
31262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31264 echo $ECHO_N "(cached) $ECHO_C" >&6
31266 eval "$as_ac_Header=\$ac_header_preproc"
31268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31273 cat >>confdefs.h <<_ACEOF
31274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31281 if test $ac_cv_header_db_h = yes; then
31284 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31285 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31286 if test "${ol_cv_bdb_major+set}" = set; then
31287 echo $ECHO_N "(cached) $ECHO_C" >&6
31291 if test $ol_cv_bdb_major = 0 ; then
31292 cat >conftest.$ac_ext <<_ACEOF
31295 cat confdefs.h >>conftest.$ac_ext
31296 cat >>conftest.$ac_ext <<_ACEOF
31297 /* end confdefs.h. */
31300 #ifndef DB_VERSION_MAJOR
31301 # define DB_VERSION_MAJOR 1
31303 #if DB_VERSION_MAJOR == 4
31308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31309 $EGREP "__db_version" >/dev/null 2>&1; then
31317 if test $ol_cv_bdb_major = 0 ; then
31318 cat >conftest.$ac_ext <<_ACEOF
31321 cat confdefs.h >>conftest.$ac_ext
31322 cat >>conftest.$ac_ext <<_ACEOF
31323 /* end confdefs.h. */
31326 #ifndef DB_VERSION_MAJOR
31327 # define DB_VERSION_MAJOR 1
31329 #if DB_VERSION_MAJOR == 3
31334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31335 $EGREP "__db_version" >/dev/null 2>&1; then
31343 if test $ol_cv_bdb_major = 0 ; then
31344 cat >conftest.$ac_ext <<_ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h. */
31352 #ifndef DB_VERSION_MAJOR
31353 # define DB_VERSION_MAJOR 1
31355 #if DB_VERSION_MAJOR == 2
31360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31361 $EGREP "__db_version" >/dev/null 2>&1; then
31369 if test $ol_cv_bdb_major = 0 ; then
31370 cat >conftest.$ac_ext <<_ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h. */
31378 #ifndef DB_VERSION_MAJOR
31379 # define DB_VERSION_MAJOR 1
31381 #if DB_VERSION_MAJOR == 1
31386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31387 $EGREP "__db_version" >/dev/null 2>&1; then
31396 if test $ol_cv_bdb_major = 0 ; then
31397 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31398 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31399 { (exit 1); exit 1; }; }
31403 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31404 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31406 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31407 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31408 if test "${ol_cv_bdb_minor+set}" = set; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31413 if test $ol_cv_bdb_minor = 0 ; then
31414 cat >conftest.$ac_ext <<_ACEOF
31417 cat confdefs.h >>conftest.$ac_ext
31418 cat >>conftest.$ac_ext <<_ACEOF
31419 /* end confdefs.h. */
31422 #ifndef DB_VERSION_MINOR
31423 # define DB_VERSION_MINOR 0
31425 #if DB_VERSION_MINOR == 9
31430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431 $EGREP "__db_version" >/dev/null 2>&1; then
31439 if test $ol_cv_bdb_minor = 0 ; then
31440 cat >conftest.$ac_ext <<_ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h. */
31448 #ifndef DB_VERSION_MINOR
31449 # define DB_VERSION_MINOR 0
31451 #if DB_VERSION_MINOR == 8
31456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31457 $EGREP "__db_version" >/dev/null 2>&1; then
31465 if test $ol_cv_bdb_minor = 0 ; then
31466 cat >conftest.$ac_ext <<_ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h. */
31474 #ifndef DB_VERSION_MINOR
31475 # define DB_VERSION_MINOR 0
31477 #if DB_VERSION_MINOR == 7
31482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31483 $EGREP "__db_version" >/dev/null 2>&1; then
31491 if test $ol_cv_bdb_minor = 0 ; then
31492 cat >conftest.$ac_ext <<_ACEOF
31495 cat confdefs.h >>conftest.$ac_ext
31496 cat >>conftest.$ac_ext <<_ACEOF
31497 /* end confdefs.h. */
31500 #ifndef DB_VERSION_MINOR
31501 # define DB_VERSION_MINOR 0
31503 #if DB_VERSION_MINOR == 6
31508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31509 $EGREP "__db_version" >/dev/null 2>&1; then
31517 if test $ol_cv_bdb_minor = 0 ; then
31518 cat >conftest.$ac_ext <<_ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h. */
31526 #ifndef DB_VERSION_MINOR
31527 # define DB_VERSION_MINOR 0
31529 #if DB_VERSION_MINOR == 5
31534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31535 $EGREP "__db_version" >/dev/null 2>&1; then
31543 if test $ol_cv_bdb_minor = 0 ; then
31544 cat >conftest.$ac_ext <<_ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h. */
31552 #ifndef DB_VERSION_MINOR
31553 # define DB_VERSION_MINOR 0
31555 #if DB_VERSION_MINOR == 4
31560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31561 $EGREP "__db_version" >/dev/null 2>&1; then
31569 if test $ol_cv_bdb_minor = 0 ; then
31570 cat >conftest.$ac_ext <<_ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h. */
31578 #ifndef DB_VERSION_MINOR
31579 # define DB_VERSION_MINOR 0
31581 #if DB_VERSION_MINOR == 3
31586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31587 $EGREP "__db_version" >/dev/null 2>&1; then
31595 if test $ol_cv_bdb_minor = 0 ; then
31596 cat >conftest.$ac_ext <<_ACEOF
31599 cat confdefs.h >>conftest.$ac_ext
31600 cat >>conftest.$ac_ext <<_ACEOF
31601 /* end confdefs.h. */
31604 #ifndef DB_VERSION_MINOR
31605 # define DB_VERSION_MINOR 0
31607 #if DB_VERSION_MINOR == 2
31612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31613 $EGREP "__db_version" >/dev/null 2>&1; then
31621 if test $ol_cv_bdb_minor = 0 ; then
31622 cat >conftest.$ac_ext <<_ACEOF
31625 cat confdefs.h >>conftest.$ac_ext
31626 cat >>conftest.$ac_ext <<_ACEOF
31627 /* end confdefs.h. */
31630 #ifndef DB_VERSION_MINOR
31631 # define DB_VERSION_MINOR 0
31633 #if DB_VERSION_MINOR == 1
31638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31639 $EGREP "__db_version" >/dev/null 2>&1; then
31649 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31650 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31652 if test $ol_cv_bdb_major = 4 ; then
31653 if test $ol_cv_bdb_minor = 4 ; then
31654 if test $ol_cv_lib_db = no ; then
31655 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31656 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31657 if test "${ol_cv_db_db44+set}" = set; then
31658 echo $ECHO_N "(cached) $ECHO_C" >&6
31663 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31665 cat >conftest.$ac_ext <<_ACEOF
31668 cat confdefs.h >>conftest.$ac_ext
31669 cat >>conftest.$ac_ext <<_ACEOF
31670 /* end confdefs.h. */
31672 #ifdef HAVE_DB_185_H
31673 # include <db_185.h>
31678 #ifndef DB_VERSION_MAJOR
31679 # define DB_VERSION_MAJOR 1
31683 #define NULL ((void*)0)
31690 #if DB_VERSION_MAJOR > 1
31693 int major, minor, patch;
31695 version = db_version( &major, &minor, &patch );
31697 if( major != DB_VERSION_MAJOR ||
31698 minor < DB_VERSION_MINOR )
31700 printf("Berkeley DB version mismatch\n"
31701 "\theader: %s\n\tlibrary: %s\n",
31702 DB_VERSION_STRING, version);
31708 #if DB_VERSION_MAJOR > 2
31709 db_env_create( NULL, 0 );
31710 #elif DB_VERSION_MAJOR > 1
31711 db_appexit( NULL );
31713 (void) dbopen( NULL, 0, 0, 0, NULL);
31720 rm -f conftest.$ac_objext conftest$ac_exeext
31721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31722 (eval $ac_link) 2>conftest.er1
31724 grep -v '^ *+' conftest.er1 >conftest.err
31726 cat conftest.err >&5
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); } &&
31729 { ac_try='test -z "$ac_c_werror_flag"
31730 || test ! -s conftest.err'
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; } &&
31736 { ac_try='test -s conftest$ac_exeext'
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; }; then
31744 echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31749 rm -f conftest.err conftest.$ac_objext \
31750 conftest$ac_exeext conftest.$ac_ext
31755 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31756 echo "${ECHO_T}$ol_cv_db_db44" >&6
31758 if test $ol_cv_db_db44 = yes ; then
31759 ol_cv_lib_db=-ldb44
31763 if test $ol_cv_lib_db = no ; then
31764 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31765 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31766 if test "${ol_cv_db_db_44+set}" = set; then
31767 echo $ECHO_N "(cached) $ECHO_C" >&6
31772 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31774 cat >conftest.$ac_ext <<_ACEOF
31777 cat confdefs.h >>conftest.$ac_ext
31778 cat >>conftest.$ac_ext <<_ACEOF
31779 /* end confdefs.h. */
31781 #ifdef HAVE_DB_185_H
31782 # include <db_185.h>
31787 #ifndef DB_VERSION_MAJOR
31788 # define DB_VERSION_MAJOR 1
31792 #define NULL ((void*)0)
31799 #if DB_VERSION_MAJOR > 1
31802 int major, minor, patch;
31804 version = db_version( &major, &minor, &patch );
31806 if( major != DB_VERSION_MAJOR ||
31807 minor < DB_VERSION_MINOR )
31809 printf("Berkeley DB version mismatch\n"
31810 "\theader: %s\n\tlibrary: %s\n",
31811 DB_VERSION_STRING, version);
31817 #if DB_VERSION_MAJOR > 2
31818 db_env_create( NULL, 0 );
31819 #elif DB_VERSION_MAJOR > 1
31820 db_appexit( NULL );
31822 (void) dbopen( NULL, 0, 0, 0, NULL);
31829 rm -f conftest.$ac_objext conftest$ac_exeext
31830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31831 (eval $ac_link) 2>conftest.er1
31833 grep -v '^ *+' conftest.er1 >conftest.err
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
31838 { ac_try='test -z "$ac_c_werror_flag"
31839 || test ! -s conftest.err'
31840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841 (eval $ac_try) 2>&5
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); }; } &&
31845 { ac_try='test -s conftest$ac_exeext'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31858 rm -f conftest.err conftest.$ac_objext \
31859 conftest$ac_exeext conftest.$ac_ext
31864 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31865 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31867 if test $ol_cv_db_db_44 = yes ; then
31868 ol_cv_lib_db=-ldb-44
31872 if test $ol_cv_lib_db = no ; then
31873 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31874 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31875 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31881 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31883 cat >conftest.$ac_ext <<_ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h. */
31890 #ifdef HAVE_DB_185_H
31891 # include <db_185.h>
31896 #ifndef DB_VERSION_MAJOR
31897 # define DB_VERSION_MAJOR 1
31901 #define NULL ((void*)0)
31908 #if DB_VERSION_MAJOR > 1
31911 int major, minor, patch;
31913 version = db_version( &major, &minor, &patch );
31915 if( major != DB_VERSION_MAJOR ||
31916 minor < DB_VERSION_MINOR )
31918 printf("Berkeley DB version mismatch\n"
31919 "\theader: %s\n\tlibrary: %s\n",
31920 DB_VERSION_STRING, version);
31926 #if DB_VERSION_MAJOR > 2
31927 db_env_create( NULL, 0 );
31928 #elif DB_VERSION_MAJOR > 1
31929 db_appexit( NULL );
31931 (void) dbopen( NULL, 0, 0, 0, NULL);
31938 rm -f conftest.$ac_objext conftest$ac_exeext
31939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31940 (eval $ac_link) 2>conftest.er1
31942 grep -v '^ *+' conftest.er1 >conftest.err
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } &&
31947 { ac_try='test -z "$ac_c_werror_flag"
31948 || test ! -s conftest.err'
31949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31950 (eval $ac_try) 2>&5
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); }; } &&
31954 { ac_try='test -s conftest$ac_exeext'
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; }; then
31960 ol_cv_db_db_4_dot_4=yes
31962 echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31965 ol_cv_db_db_4_dot_4=no
31967 rm -f conftest.err conftest.$ac_objext \
31968 conftest$ac_exeext conftest.$ac_ext
31973 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31974 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31976 if test $ol_cv_db_db_4_dot_4 = yes ; then
31977 ol_cv_lib_db=-ldb-4.4
31981 if test $ol_cv_lib_db = no ; then
31982 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31983 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31984 if test "${ol_cv_db_db_4_4+set}" = set; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31990 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31992 cat >conftest.$ac_ext <<_ACEOF
31995 cat confdefs.h >>conftest.$ac_ext
31996 cat >>conftest.$ac_ext <<_ACEOF
31997 /* end confdefs.h. */
31999 #ifdef HAVE_DB_185_H
32000 # include <db_185.h>
32005 #ifndef DB_VERSION_MAJOR
32006 # define DB_VERSION_MAJOR 1
32010 #define NULL ((void*)0)
32017 #if DB_VERSION_MAJOR > 1
32020 int major, minor, patch;
32022 version = db_version( &major, &minor, &patch );
32024 if( major != DB_VERSION_MAJOR ||
32025 minor < DB_VERSION_MINOR )
32027 printf("Berkeley DB version mismatch\n"
32028 "\theader: %s\n\tlibrary: %s\n",
32029 DB_VERSION_STRING, version);
32035 #if DB_VERSION_MAJOR > 2
32036 db_env_create( NULL, 0 );
32037 #elif DB_VERSION_MAJOR > 1
32038 db_appexit( NULL );
32040 (void) dbopen( NULL, 0, 0, 0, NULL);
32047 rm -f conftest.$ac_objext conftest$ac_exeext
32048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32049 (eval $ac_link) 2>conftest.er1
32051 grep -v '^ *+' conftest.er1 >conftest.err
32053 cat conftest.err >&5
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); } &&
32056 { ac_try='test -z "$ac_c_werror_flag"
32057 || test ! -s conftest.err'
32058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32059 (eval $ac_try) 2>&5
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); }; } &&
32063 { ac_try='test -s conftest$ac_exeext'
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 ol_cv_db_db_4_4=yes
32071 echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32076 rm -f conftest.err conftest.$ac_objext \
32077 conftest$ac_exeext conftest.$ac_ext
32082 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32083 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32085 if test $ol_cv_db_db_4_4 = yes ; then
32086 ol_cv_lib_db=-ldb-4-4
32090 elif test $ol_cv_bdb_minor = 3 ; then
32091 if test $ol_cv_lib_db = no ; then
32092 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32093 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32094 if test "${ol_cv_db_db43+set}" = set; then
32095 echo $ECHO_N "(cached) $ECHO_C" >&6
32100 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32102 cat >conftest.$ac_ext <<_ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h. */
32109 #ifdef HAVE_DB_185_H
32110 # include <db_185.h>
32115 #ifndef DB_VERSION_MAJOR
32116 # define DB_VERSION_MAJOR 1
32120 #define NULL ((void*)0)
32127 #if DB_VERSION_MAJOR > 1
32130 int major, minor, patch;
32132 version = db_version( &major, &minor, &patch );
32134 if( major != DB_VERSION_MAJOR ||
32135 minor < DB_VERSION_MINOR )
32137 printf("Berkeley DB version mismatch\n"
32138 "\theader: %s\n\tlibrary: %s\n",
32139 DB_VERSION_STRING, version);
32145 #if DB_VERSION_MAJOR > 2
32146 db_env_create( NULL, 0 );
32147 #elif DB_VERSION_MAJOR > 1
32148 db_appexit( NULL );
32150 (void) dbopen( NULL, 0, 0, 0, NULL);
32157 rm -f conftest.$ac_objext conftest$ac_exeext
32158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32159 (eval $ac_link) 2>conftest.er1
32161 grep -v '^ *+' conftest.er1 >conftest.err
32163 cat conftest.err >&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } &&
32166 { ac_try='test -z "$ac_c_werror_flag"
32167 || test ! -s conftest.err'
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; } &&
32173 { ac_try='test -s conftest$ac_exeext'
32174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175 (eval $ac_try) 2>&5
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; }; then
32181 echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32186 rm -f conftest.err conftest.$ac_objext \
32187 conftest$ac_exeext conftest.$ac_ext
32192 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32193 echo "${ECHO_T}$ol_cv_db_db43" >&6
32195 if test $ol_cv_db_db43 = yes ; then
32196 ol_cv_lib_db=-ldb43
32200 if test $ol_cv_lib_db = no ; then
32201 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32202 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32203 if test "${ol_cv_db_db_43+set}" = set; then
32204 echo $ECHO_N "(cached) $ECHO_C" >&6
32209 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32211 cat >conftest.$ac_ext <<_ACEOF
32214 cat confdefs.h >>conftest.$ac_ext
32215 cat >>conftest.$ac_ext <<_ACEOF
32216 /* end confdefs.h. */
32218 #ifdef HAVE_DB_185_H
32219 # include <db_185.h>
32224 #ifndef DB_VERSION_MAJOR
32225 # define DB_VERSION_MAJOR 1
32229 #define NULL ((void*)0)
32236 #if DB_VERSION_MAJOR > 1
32239 int major, minor, patch;
32241 version = db_version( &major, &minor, &patch );
32243 if( major != DB_VERSION_MAJOR ||
32244 minor < DB_VERSION_MINOR )
32246 printf("Berkeley DB version mismatch\n"
32247 "\theader: %s\n\tlibrary: %s\n",
32248 DB_VERSION_STRING, version);
32254 #if DB_VERSION_MAJOR > 2
32255 db_env_create( NULL, 0 );
32256 #elif DB_VERSION_MAJOR > 1
32257 db_appexit( NULL );
32259 (void) dbopen( NULL, 0, 0, 0, NULL);
32266 rm -f conftest.$ac_objext conftest$ac_exeext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32268 (eval $ac_link) 2>conftest.er1
32270 grep -v '^ *+' conftest.er1 >conftest.err
32272 cat conftest.err >&5
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
32275 { ac_try='test -z "$ac_c_werror_flag"
32276 || test ! -s conftest.err'
32277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278 (eval $ac_try) 2>&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; } &&
32282 { ac_try='test -s conftest$ac_exeext'
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32295 rm -f conftest.err conftest.$ac_objext \
32296 conftest$ac_exeext conftest.$ac_ext
32301 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32302 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32304 if test $ol_cv_db_db_43 = yes ; then
32305 ol_cv_lib_db=-ldb-43
32309 if test $ol_cv_lib_db = no ; then
32310 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32311 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32312 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32313 echo $ECHO_N "(cached) $ECHO_C" >&6
32318 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32320 cat >conftest.$ac_ext <<_ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h. */
32327 #ifdef HAVE_DB_185_H
32328 # include <db_185.h>
32333 #ifndef DB_VERSION_MAJOR
32334 # define DB_VERSION_MAJOR 1
32338 #define NULL ((void*)0)
32345 #if DB_VERSION_MAJOR > 1
32348 int major, minor, patch;
32350 version = db_version( &major, &minor, &patch );
32352 if( major != DB_VERSION_MAJOR ||
32353 minor < DB_VERSION_MINOR )
32355 printf("Berkeley DB version mismatch\n"
32356 "\theader: %s\n\tlibrary: %s\n",
32357 DB_VERSION_STRING, version);
32363 #if DB_VERSION_MAJOR > 2
32364 db_env_create( NULL, 0 );
32365 #elif DB_VERSION_MAJOR > 1
32366 db_appexit( NULL );
32368 (void) dbopen( NULL, 0, 0, 0, NULL);
32375 rm -f conftest.$ac_objext conftest$ac_exeext
32376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32377 (eval $ac_link) 2>conftest.er1
32379 grep -v '^ *+' conftest.er1 >conftest.err
32381 cat conftest.err >&5
32382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383 (exit $ac_status); } &&
32384 { ac_try='test -z "$ac_c_werror_flag"
32385 || test ! -s conftest.err'
32386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387 (eval $ac_try) 2>&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; } &&
32391 { ac_try='test -s conftest$ac_exeext'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 ol_cv_db_db_4_dot_3=yes
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32402 ol_cv_db_db_4_dot_3=no
32404 rm -f conftest.err conftest.$ac_objext \
32405 conftest$ac_exeext conftest.$ac_ext
32410 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32411 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32413 if test $ol_cv_db_db_4_dot_3 = yes ; then
32414 ol_cv_lib_db=-ldb-4.3
32418 if test $ol_cv_lib_db = no ; then
32419 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32420 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32421 if test "${ol_cv_db_db_4_3+set}" = set; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32427 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32429 cat >conftest.$ac_ext <<_ACEOF
32432 cat confdefs.h >>conftest.$ac_ext
32433 cat >>conftest.$ac_ext <<_ACEOF
32434 /* end confdefs.h. */
32436 #ifdef HAVE_DB_185_H
32437 # include <db_185.h>
32442 #ifndef DB_VERSION_MAJOR
32443 # define DB_VERSION_MAJOR 1
32447 #define NULL ((void*)0)
32454 #if DB_VERSION_MAJOR > 1
32457 int major, minor, patch;
32459 version = db_version( &major, &minor, &patch );
32461 if( major != DB_VERSION_MAJOR ||
32462 minor < DB_VERSION_MINOR )
32464 printf("Berkeley DB version mismatch\n"
32465 "\theader: %s\n\tlibrary: %s\n",
32466 DB_VERSION_STRING, version);
32472 #if DB_VERSION_MAJOR > 2
32473 db_env_create( NULL, 0 );
32474 #elif DB_VERSION_MAJOR > 1
32475 db_appexit( NULL );
32477 (void) dbopen( NULL, 0, 0, 0, NULL);
32484 rm -f conftest.$ac_objext conftest$ac_exeext
32485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32486 (eval $ac_link) 2>conftest.er1
32488 grep -v '^ *+' conftest.er1 >conftest.err
32490 cat conftest.err >&5
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); } &&
32493 { ac_try='test -z "$ac_c_werror_flag"
32494 || test ! -s conftest.err'
32495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32496 (eval $ac_try) 2>&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; } &&
32500 { ac_try='test -s conftest$ac_exeext'
32501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502 (eval $ac_try) 2>&5
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; }; then
32506 ol_cv_db_db_4_3=yes
32508 echo "$as_me: failed program was:" >&5
32509 sed 's/^/| /' conftest.$ac_ext >&5
32513 rm -f conftest.err conftest.$ac_objext \
32514 conftest$ac_exeext conftest.$ac_ext
32519 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32520 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32522 if test $ol_cv_db_db_4_3 = yes ; then
32523 ol_cv_lib_db=-ldb-4-3
32527 elif test $ol_cv_bdb_minor = 2 ; then
32528 if test $ol_cv_lib_db = no ; then
32529 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32530 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32531 if test "${ol_cv_db_db42+set}" = set; then
32532 echo $ECHO_N "(cached) $ECHO_C" >&6
32537 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32539 cat >conftest.$ac_ext <<_ACEOF
32542 cat confdefs.h >>conftest.$ac_ext
32543 cat >>conftest.$ac_ext <<_ACEOF
32544 /* end confdefs.h. */
32546 #ifdef HAVE_DB_185_H
32547 # include <db_185.h>
32552 #ifndef DB_VERSION_MAJOR
32553 # define DB_VERSION_MAJOR 1
32557 #define NULL ((void*)0)
32564 #if DB_VERSION_MAJOR > 1
32567 int major, minor, patch;
32569 version = db_version( &major, &minor, &patch );
32571 if( major != DB_VERSION_MAJOR ||
32572 minor < DB_VERSION_MINOR )
32574 printf("Berkeley DB version mismatch\n"
32575 "\theader: %s\n\tlibrary: %s\n",
32576 DB_VERSION_STRING, version);
32582 #if DB_VERSION_MAJOR > 2
32583 db_env_create( NULL, 0 );
32584 #elif DB_VERSION_MAJOR > 1
32585 db_appexit( NULL );
32587 (void) dbopen( NULL, 0, 0, 0, NULL);
32594 rm -f conftest.$ac_objext conftest$ac_exeext
32595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32596 (eval $ac_link) 2>conftest.er1
32598 grep -v '^ *+' conftest.er1 >conftest.err
32600 cat conftest.err >&5
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); } &&
32603 { ac_try='test -z "$ac_c_werror_flag"
32604 || test ! -s conftest.err'
32605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606 (eval $ac_try) 2>&5
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; } &&
32610 { ac_try='test -s conftest$ac_exeext'
32611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612 (eval $ac_try) 2>&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; }; then
32618 echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32623 rm -f conftest.err conftest.$ac_objext \
32624 conftest$ac_exeext conftest.$ac_ext
32629 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32630 echo "${ECHO_T}$ol_cv_db_db42" >&6
32632 if test $ol_cv_db_db42 = yes ; then
32633 ol_cv_lib_db=-ldb42
32637 if test $ol_cv_lib_db = no ; then
32638 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32639 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32640 if test "${ol_cv_db_db_42+set}" = set; then
32641 echo $ECHO_N "(cached) $ECHO_C" >&6
32646 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32648 cat >conftest.$ac_ext <<_ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h. */
32655 #ifdef HAVE_DB_185_H
32656 # include <db_185.h>
32661 #ifndef DB_VERSION_MAJOR
32662 # define DB_VERSION_MAJOR 1
32666 #define NULL ((void*)0)
32673 #if DB_VERSION_MAJOR > 1
32676 int major, minor, patch;
32678 version = db_version( &major, &minor, &patch );
32680 if( major != DB_VERSION_MAJOR ||
32681 minor < DB_VERSION_MINOR )
32683 printf("Berkeley DB version mismatch\n"
32684 "\theader: %s\n\tlibrary: %s\n",
32685 DB_VERSION_STRING, version);
32691 #if DB_VERSION_MAJOR > 2
32692 db_env_create( NULL, 0 );
32693 #elif DB_VERSION_MAJOR > 1
32694 db_appexit( NULL );
32696 (void) dbopen( NULL, 0, 0, 0, NULL);
32703 rm -f conftest.$ac_objext conftest$ac_exeext
32704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32705 (eval $ac_link) 2>conftest.er1
32707 grep -v '^ *+' conftest.er1 >conftest.err
32709 cat conftest.err >&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); } &&
32712 { ac_try='test -z "$ac_c_werror_flag"
32713 || test ! -s conftest.err'
32714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32715 (eval $ac_try) 2>&5
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); }; } &&
32719 { ac_try='test -s conftest$ac_exeext'
32720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721 (eval $ac_try) 2>&5
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; }; then
32727 echo "$as_me: failed program was:" >&5
32728 sed 's/^/| /' conftest.$ac_ext >&5
32732 rm -f conftest.err conftest.$ac_objext \
32733 conftest$ac_exeext conftest.$ac_ext
32738 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32739 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32741 if test $ol_cv_db_db_42 = yes ; then
32742 ol_cv_lib_db=-ldb-42
32746 if test $ol_cv_lib_db = no ; then
32747 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32748 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32749 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32750 echo $ECHO_N "(cached) $ECHO_C" >&6
32755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32764 #ifdef HAVE_DB_185_H
32765 # include <db_185.h>
32770 #ifndef DB_VERSION_MAJOR
32771 # define DB_VERSION_MAJOR 1
32775 #define NULL ((void*)0)
32782 #if DB_VERSION_MAJOR > 1
32785 int major, minor, patch;
32787 version = db_version( &major, &minor, &patch );
32789 if( major != DB_VERSION_MAJOR ||
32790 minor < DB_VERSION_MINOR )
32792 printf("Berkeley DB version mismatch\n"
32793 "\theader: %s\n\tlibrary: %s\n",
32794 DB_VERSION_STRING, version);
32800 #if DB_VERSION_MAJOR > 2
32801 db_env_create( NULL, 0 );
32802 #elif DB_VERSION_MAJOR > 1
32803 db_appexit( NULL );
32805 (void) dbopen( NULL, 0, 0, 0, NULL);
32812 rm -f conftest.$ac_objext conftest$ac_exeext
32813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32814 (eval $ac_link) 2>conftest.er1
32816 grep -v '^ *+' conftest.er1 >conftest.err
32818 cat conftest.err >&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); } &&
32821 { ac_try='test -z "$ac_c_werror_flag"
32822 || test ! -s conftest.err'
32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824 (eval $ac_try) 2>&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest$ac_exeext'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 ol_cv_db_db_4_dot_2=yes
32836 echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32839 ol_cv_db_db_4_dot_2=no
32841 rm -f conftest.err conftest.$ac_objext \
32842 conftest$ac_exeext conftest.$ac_ext
32847 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32848 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32850 if test $ol_cv_db_db_4_dot_2 = yes ; then
32851 ol_cv_lib_db=-ldb-4.2
32855 if test $ol_cv_lib_db = no ; then
32856 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32857 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32858 if test "${ol_cv_db_db_4_2+set}" = set; then
32859 echo $ECHO_N "(cached) $ECHO_C" >&6
32864 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32866 cat >conftest.$ac_ext <<_ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h. */
32873 #ifdef HAVE_DB_185_H
32874 # include <db_185.h>
32879 #ifndef DB_VERSION_MAJOR
32880 # define DB_VERSION_MAJOR 1
32884 #define NULL ((void*)0)
32891 #if DB_VERSION_MAJOR > 1
32894 int major, minor, patch;
32896 version = db_version( &major, &minor, &patch );
32898 if( major != DB_VERSION_MAJOR ||
32899 minor < DB_VERSION_MINOR )
32901 printf("Berkeley DB version mismatch\n"
32902 "\theader: %s\n\tlibrary: %s\n",
32903 DB_VERSION_STRING, version);
32909 #if DB_VERSION_MAJOR > 2
32910 db_env_create( NULL, 0 );
32911 #elif DB_VERSION_MAJOR > 1
32912 db_appexit( NULL );
32914 (void) dbopen( NULL, 0, 0, 0, NULL);
32921 rm -f conftest.$ac_objext conftest$ac_exeext
32922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32923 (eval $ac_link) 2>conftest.er1
32925 grep -v '^ *+' conftest.er1 >conftest.err
32927 cat conftest.err >&5
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); } &&
32930 { ac_try='test -z "$ac_c_werror_flag"
32931 || test ! -s conftest.err'
32932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32933 (eval $ac_try) 2>&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); }; } &&
32937 { ac_try='test -s conftest$ac_exeext'
32938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32939 (eval $ac_try) 2>&5
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); }; }; then
32943 ol_cv_db_db_4_2=yes
32945 echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32950 rm -f conftest.err conftest.$ac_objext \
32951 conftest$ac_exeext conftest.$ac_ext
32956 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32957 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32959 if test $ol_cv_db_db_4_2 = yes ; then
32960 ol_cv_lib_db=-ldb-4-2
32964 elif test $ol_cv_bdb_minor = 1 ; then
32965 if test $ol_cv_lib_db = no ; then
32966 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32967 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32968 if test "${ol_cv_db_db41+set}" = set; then
32969 echo $ECHO_N "(cached) $ECHO_C" >&6
32974 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32976 cat >conftest.$ac_ext <<_ACEOF
32979 cat confdefs.h >>conftest.$ac_ext
32980 cat >>conftest.$ac_ext <<_ACEOF
32981 /* end confdefs.h. */
32983 #ifdef HAVE_DB_185_H
32984 # include <db_185.h>
32989 #ifndef DB_VERSION_MAJOR
32990 # define DB_VERSION_MAJOR 1
32994 #define NULL ((void*)0)
33001 #if DB_VERSION_MAJOR > 1
33004 int major, minor, patch;
33006 version = db_version( &major, &minor, &patch );
33008 if( major != DB_VERSION_MAJOR ||
33009 minor < DB_VERSION_MINOR )
33011 printf("Berkeley DB version mismatch\n"
33012 "\theader: %s\n\tlibrary: %s\n",
33013 DB_VERSION_STRING, version);
33019 #if DB_VERSION_MAJOR > 2
33020 db_env_create( NULL, 0 );
33021 #elif DB_VERSION_MAJOR > 1
33022 db_appexit( NULL );
33024 (void) dbopen( NULL, 0, 0, 0, NULL);
33031 rm -f conftest.$ac_objext conftest$ac_exeext
33032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33033 (eval $ac_link) 2>conftest.er1
33035 grep -v '^ *+' conftest.er1 >conftest.err
33037 cat conftest.err >&5
33038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039 (exit $ac_status); } &&
33040 { ac_try='test -z "$ac_c_werror_flag"
33041 || test ! -s conftest.err'
33042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33043 (eval $ac_try) 2>&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; } &&
33047 { ac_try='test -s conftest$ac_exeext'
33048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33049 (eval $ac_try) 2>&5
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); }; }; then
33055 echo "$as_me: failed program was:" >&5
33056 sed 's/^/| /' conftest.$ac_ext >&5
33060 rm -f conftest.err conftest.$ac_objext \
33061 conftest$ac_exeext conftest.$ac_ext
33066 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33067 echo "${ECHO_T}$ol_cv_db_db41" >&6
33069 if test $ol_cv_db_db41 = yes ; then
33070 ol_cv_lib_db=-ldb41
33074 if test $ol_cv_lib_db = no ; then
33075 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33076 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33077 if test "${ol_cv_db_db_41+set}" = set; then
33078 echo $ECHO_N "(cached) $ECHO_C" >&6
33083 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33085 cat >conftest.$ac_ext <<_ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h. */
33092 #ifdef HAVE_DB_185_H
33093 # include <db_185.h>
33098 #ifndef DB_VERSION_MAJOR
33099 # define DB_VERSION_MAJOR 1
33103 #define NULL ((void*)0)
33110 #if DB_VERSION_MAJOR > 1
33113 int major, minor, patch;
33115 version = db_version( &major, &minor, &patch );
33117 if( major != DB_VERSION_MAJOR ||
33118 minor < DB_VERSION_MINOR )
33120 printf("Berkeley DB version mismatch\n"
33121 "\theader: %s\n\tlibrary: %s\n",
33122 DB_VERSION_STRING, version);
33128 #if DB_VERSION_MAJOR > 2
33129 db_env_create( NULL, 0 );
33130 #elif DB_VERSION_MAJOR > 1
33131 db_appexit( NULL );
33133 (void) dbopen( NULL, 0, 0, 0, NULL);
33140 rm -f conftest.$ac_objext conftest$ac_exeext
33141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33142 (eval $ac_link) 2>conftest.er1
33144 grep -v '^ *+' conftest.er1 >conftest.err
33146 cat conftest.err >&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } &&
33149 { ac_try='test -z "$ac_c_werror_flag"
33150 || test ! -s conftest.err'
33151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152 (eval $ac_try) 2>&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; } &&
33156 { ac_try='test -s conftest$ac_exeext'
33157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158 (eval $ac_try) 2>&5
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; }; then
33164 echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33169 rm -f conftest.err conftest.$ac_objext \
33170 conftest$ac_exeext conftest.$ac_ext
33175 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33176 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33178 if test $ol_cv_db_db_41 = yes ; then
33179 ol_cv_lib_db=-ldb-41
33183 if test $ol_cv_lib_db = no ; then
33184 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33185 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33186 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33187 echo $ECHO_N "(cached) $ECHO_C" >&6
33192 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33194 cat >conftest.$ac_ext <<_ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h. */
33201 #ifdef HAVE_DB_185_H
33202 # include <db_185.h>
33207 #ifndef DB_VERSION_MAJOR
33208 # define DB_VERSION_MAJOR 1
33212 #define NULL ((void*)0)
33219 #if DB_VERSION_MAJOR > 1
33222 int major, minor, patch;
33224 version = db_version( &major, &minor, &patch );
33226 if( major != DB_VERSION_MAJOR ||
33227 minor < DB_VERSION_MINOR )
33229 printf("Berkeley DB version mismatch\n"
33230 "\theader: %s\n\tlibrary: %s\n",
33231 DB_VERSION_STRING, version);
33237 #if DB_VERSION_MAJOR > 2
33238 db_env_create( NULL, 0 );
33239 #elif DB_VERSION_MAJOR > 1
33240 db_appexit( NULL );
33242 (void) dbopen( NULL, 0, 0, 0, NULL);
33249 rm -f conftest.$ac_objext conftest$ac_exeext
33250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33251 (eval $ac_link) 2>conftest.er1
33253 grep -v '^ *+' conftest.er1 >conftest.err
33255 cat conftest.err >&5
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); } &&
33258 { ac_try='test -z "$ac_c_werror_flag"
33259 || test ! -s conftest.err'
33260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33261 (eval $ac_try) 2>&5
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest$ac_exeext'
33266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33267 (eval $ac_try) 2>&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; }; then
33271 ol_cv_db_db_4_dot_1=yes
33273 echo "$as_me: failed program was:" >&5
33274 sed 's/^/| /' conftest.$ac_ext >&5
33276 ol_cv_db_db_4_dot_1=no
33278 rm -f conftest.err conftest.$ac_objext \
33279 conftest$ac_exeext conftest.$ac_ext
33284 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33285 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33287 if test $ol_cv_db_db_4_dot_1 = yes ; then
33288 ol_cv_lib_db=-ldb-4.1
33292 if test $ol_cv_lib_db = no ; then
33293 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33294 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33295 if test "${ol_cv_db_db_4_1+set}" = set; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33301 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33303 cat >conftest.$ac_ext <<_ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33310 #ifdef HAVE_DB_185_H
33311 # include <db_185.h>
33316 #ifndef DB_VERSION_MAJOR
33317 # define DB_VERSION_MAJOR 1
33321 #define NULL ((void*)0)
33328 #if DB_VERSION_MAJOR > 1
33331 int major, minor, patch;
33333 version = db_version( &major, &minor, &patch );
33335 if( major != DB_VERSION_MAJOR ||
33336 minor < DB_VERSION_MINOR )
33338 printf("Berkeley DB version mismatch\n"
33339 "\theader: %s\n\tlibrary: %s\n",
33340 DB_VERSION_STRING, version);
33346 #if DB_VERSION_MAJOR > 2
33347 db_env_create( NULL, 0 );
33348 #elif DB_VERSION_MAJOR > 1
33349 db_appexit( NULL );
33351 (void) dbopen( NULL, 0, 0, 0, NULL);
33358 rm -f conftest.$ac_objext conftest$ac_exeext
33359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33360 (eval $ac_link) 2>conftest.er1
33362 grep -v '^ *+' conftest.er1 >conftest.err
33364 cat conftest.err >&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } &&
33367 { ac_try='test -z "$ac_c_werror_flag"
33368 || test ! -s conftest.err'
33369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33370 (eval $ac_try) 2>&5
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); }; } &&
33374 { ac_try='test -s conftest$ac_exeext'
33375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33376 (eval $ac_try) 2>&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); }; }; then
33380 ol_cv_db_db_4_1=yes
33382 echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33387 rm -f conftest.err conftest.$ac_objext \
33388 conftest$ac_exeext conftest.$ac_ext
33393 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33394 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33396 if test $ol_cv_db_db_4_1 = yes ; then
33397 ol_cv_lib_db=-ldb-4-1
33402 if test $ol_cv_lib_db = no ; then
33403 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33404 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33405 if test "${ol_cv_db_db_4+set}" = set; then
33406 echo $ECHO_N "(cached) $ECHO_C" >&6
33411 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33413 cat >conftest.$ac_ext <<_ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h. */
33420 #ifdef HAVE_DB_185_H
33421 # include <db_185.h>
33426 #ifndef DB_VERSION_MAJOR
33427 # define DB_VERSION_MAJOR 1
33431 #define NULL ((void*)0)
33438 #if DB_VERSION_MAJOR > 1
33441 int major, minor, patch;
33443 version = db_version( &major, &minor, &patch );
33445 if( major != DB_VERSION_MAJOR ||
33446 minor < DB_VERSION_MINOR )
33448 printf("Berkeley DB version mismatch\n"
33449 "\theader: %s\n\tlibrary: %s\n",
33450 DB_VERSION_STRING, version);
33456 #if DB_VERSION_MAJOR > 2
33457 db_env_create( NULL, 0 );
33458 #elif DB_VERSION_MAJOR > 1
33459 db_appexit( NULL );
33461 (void) dbopen( NULL, 0, 0, 0, NULL);
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33470 (eval $ac_link) 2>conftest.er1
33472 grep -v '^ *+' conftest.er1 >conftest.err
33474 cat conftest.err >&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); } &&
33477 { ac_try='test -z "$ac_c_werror_flag"
33478 || test ! -s conftest.err'
33479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480 (eval $ac_try) 2>&5
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); }; } &&
33484 { ac_try='test -s conftest$ac_exeext'
33485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33486 (eval $ac_try) 2>&5
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); }; }; then
33492 echo "$as_me: failed program was:" >&5
33493 sed 's/^/| /' conftest.$ac_ext >&5
33497 rm -f conftest.err conftest.$ac_objext \
33498 conftest$ac_exeext conftest.$ac_ext
33503 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33504 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33506 if test $ol_cv_db_db_4 = yes ; then
33507 ol_cv_lib_db=-ldb-4
33511 if test $ol_cv_lib_db = no ; then
33512 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33513 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33514 if test "${ol_cv_db_db4+set}" = set; then
33515 echo $ECHO_N "(cached) $ECHO_C" >&6
33520 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33522 cat >conftest.$ac_ext <<_ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h. */
33529 #ifdef HAVE_DB_185_H
33530 # include <db_185.h>
33535 #ifndef DB_VERSION_MAJOR
33536 # define DB_VERSION_MAJOR 1
33540 #define NULL ((void*)0)
33547 #if DB_VERSION_MAJOR > 1
33550 int major, minor, patch;
33552 version = db_version( &major, &minor, &patch );
33554 if( major != DB_VERSION_MAJOR ||
33555 minor < DB_VERSION_MINOR )
33557 printf("Berkeley DB version mismatch\n"
33558 "\theader: %s\n\tlibrary: %s\n",
33559 DB_VERSION_STRING, version);
33565 #if DB_VERSION_MAJOR > 2
33566 db_env_create( NULL, 0 );
33567 #elif DB_VERSION_MAJOR > 1
33568 db_appexit( NULL );
33570 (void) dbopen( NULL, 0, 0, 0, NULL);
33577 rm -f conftest.$ac_objext conftest$ac_exeext
33578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33579 (eval $ac_link) 2>conftest.er1
33581 grep -v '^ *+' conftest.er1 >conftest.err
33583 cat conftest.err >&5
33584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585 (exit $ac_status); } &&
33586 { ac_try='test -z "$ac_c_werror_flag"
33587 || test ! -s conftest.err'
33588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33589 (eval $ac_try) 2>&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; } &&
33593 { ac_try='test -s conftest$ac_exeext'
33594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33595 (eval $ac_try) 2>&5
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); }; }; then
33601 echo "$as_me: failed program was:" >&5
33602 sed 's/^/| /' conftest.$ac_ext >&5
33606 rm -f conftest.err conftest.$ac_objext \
33607 conftest$ac_exeext conftest.$ac_ext
33612 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33613 echo "${ECHO_T}$ol_cv_db_db4" >&6
33615 if test $ol_cv_db_db4 = yes ; then
33620 if test $ol_cv_lib_db = no ; then
33621 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33622 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33623 if test "${ol_cv_db_db+set}" = set; then
33624 echo $ECHO_N "(cached) $ECHO_C" >&6
33629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33631 cat >conftest.$ac_ext <<_ACEOF
33634 cat confdefs.h >>conftest.$ac_ext
33635 cat >>conftest.$ac_ext <<_ACEOF
33636 /* end confdefs.h. */
33638 #ifdef HAVE_DB_185_H
33639 # include <db_185.h>
33644 #ifndef DB_VERSION_MAJOR
33645 # define DB_VERSION_MAJOR 1
33649 #define NULL ((void*)0)
33656 #if DB_VERSION_MAJOR > 1
33659 int major, minor, patch;
33661 version = db_version( &major, &minor, &patch );
33663 if( major != DB_VERSION_MAJOR ||
33664 minor < DB_VERSION_MINOR )
33666 printf("Berkeley DB version mismatch\n"
33667 "\theader: %s\n\tlibrary: %s\n",
33668 DB_VERSION_STRING, version);
33674 #if DB_VERSION_MAJOR > 2
33675 db_env_create( NULL, 0 );
33676 #elif DB_VERSION_MAJOR > 1
33677 db_appexit( NULL );
33679 (void) dbopen( NULL, 0, 0, 0, NULL);
33686 rm -f conftest.$ac_objext conftest$ac_exeext
33687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33688 (eval $ac_link) 2>conftest.er1
33690 grep -v '^ *+' conftest.er1 >conftest.err
33692 cat conftest.err >&5
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); } &&
33695 { ac_try='test -z "$ac_c_werror_flag"
33696 || test ! -s conftest.err'
33697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 (eval $ac_try) 2>&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; } &&
33702 { ac_try='test -s conftest$ac_exeext'
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; }; then
33710 echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.$ac_ext >&5
33715 rm -f conftest.err conftest.$ac_objext \
33716 conftest$ac_exeext conftest.$ac_ext
33721 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33722 echo "${ECHO_T}$ol_cv_db_db" >&6
33724 if test $ol_cv_db_db = yes ; then
33730 elif test $ol_cv_bdb_major = 3 ; then
33731 if test $ol_cv_lib_db = no ; then
33732 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33733 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33734 if test "${ol_cv_db_db3+set}" = set; then
33735 echo $ECHO_N "(cached) $ECHO_C" >&6
33740 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33742 cat >conftest.$ac_ext <<_ACEOF
33745 cat confdefs.h >>conftest.$ac_ext
33746 cat >>conftest.$ac_ext <<_ACEOF
33747 /* end confdefs.h. */
33749 #ifdef HAVE_DB_185_H
33750 # include <db_185.h>
33755 #ifndef DB_VERSION_MAJOR
33756 # define DB_VERSION_MAJOR 1
33760 #define NULL ((void*)0)
33767 #if DB_VERSION_MAJOR > 1
33770 int major, minor, patch;
33772 version = db_version( &major, &minor, &patch );
33774 if( major != DB_VERSION_MAJOR ||
33775 minor < DB_VERSION_MINOR )
33777 printf("Berkeley DB version mismatch\n"
33778 "\theader: %s\n\tlibrary: %s\n",
33779 DB_VERSION_STRING, version);
33785 #if DB_VERSION_MAJOR > 2
33786 db_env_create( NULL, 0 );
33787 #elif DB_VERSION_MAJOR > 1
33788 db_appexit( NULL );
33790 (void) dbopen( NULL, 0, 0, 0, NULL);
33797 rm -f conftest.$ac_objext conftest$ac_exeext
33798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33799 (eval $ac_link) 2>conftest.er1
33801 grep -v '^ *+' conftest.er1 >conftest.err
33803 cat conftest.err >&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
33806 { ac_try='test -z "$ac_c_werror_flag"
33807 || test ! -s conftest.err'
33808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809 (eval $ac_try) 2>&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); }; } &&
33813 { ac_try='test -s conftest$ac_exeext'
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33826 rm -f conftest.err conftest.$ac_objext \
33827 conftest$ac_exeext conftest.$ac_ext
33832 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33833 echo "${ECHO_T}$ol_cv_db_db3" >&6
33835 if test $ol_cv_db_db3 = yes ; then
33840 if test $ol_cv_lib_db = no ; then
33841 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33842 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33843 if test "${ol_cv_db_db_3+set}" = set; then
33844 echo $ECHO_N "(cached) $ECHO_C" >&6
33849 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33851 cat >conftest.$ac_ext <<_ACEOF
33854 cat confdefs.h >>conftest.$ac_ext
33855 cat >>conftest.$ac_ext <<_ACEOF
33856 /* end confdefs.h. */
33858 #ifdef HAVE_DB_185_H
33859 # include <db_185.h>
33864 #ifndef DB_VERSION_MAJOR
33865 # define DB_VERSION_MAJOR 1
33869 #define NULL ((void*)0)
33876 #if DB_VERSION_MAJOR > 1
33879 int major, minor, patch;
33881 version = db_version( &major, &minor, &patch );
33883 if( major != DB_VERSION_MAJOR ||
33884 minor < DB_VERSION_MINOR )
33886 printf("Berkeley DB version mismatch\n"
33887 "\theader: %s\n\tlibrary: %s\n",
33888 DB_VERSION_STRING, version);
33894 #if DB_VERSION_MAJOR > 2
33895 db_env_create( NULL, 0 );
33896 #elif DB_VERSION_MAJOR > 1
33897 db_appexit( NULL );
33899 (void) dbopen( NULL, 0, 0, 0, NULL);
33906 rm -f conftest.$ac_objext conftest$ac_exeext
33907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33908 (eval $ac_link) 2>conftest.er1
33910 grep -v '^ *+' conftest.er1 >conftest.err
33912 cat conftest.err >&5
33913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914 (exit $ac_status); } &&
33915 { ac_try='test -z "$ac_c_werror_flag"
33916 || test ! -s conftest.err'
33917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33918 (eval $ac_try) 2>&5
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); }; } &&
33922 { ac_try='test -s conftest$ac_exeext'
33923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924 (eval $ac_try) 2>&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); }; }; then
33930 echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33935 rm -f conftest.err conftest.$ac_objext \
33936 conftest$ac_exeext conftest.$ac_ext
33941 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33942 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33944 if test $ol_cv_db_db_3 = yes ; then
33945 ol_cv_lib_db=-ldb-3
33950 elif test $ol_cv_bdb_major = 2 ; then
33951 if test $ol_cv_lib_db = no ; then
33952 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33953 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33954 if test "${ol_cv_db_db2+set}" = set; then
33955 echo $ECHO_N "(cached) $ECHO_C" >&6
33960 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33962 cat >conftest.$ac_ext <<_ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h. */
33969 #ifdef HAVE_DB_185_H
33970 # include <db_185.h>
33975 #ifndef DB_VERSION_MAJOR
33976 # define DB_VERSION_MAJOR 1
33980 #define NULL ((void*)0)
33987 #if DB_VERSION_MAJOR > 1
33990 int major, minor, patch;
33992 version = db_version( &major, &minor, &patch );
33994 if( major != DB_VERSION_MAJOR ||
33995 minor < DB_VERSION_MINOR )
33997 printf("Berkeley DB version mismatch\n"
33998 "\theader: %s\n\tlibrary: %s\n",
33999 DB_VERSION_STRING, version);
34005 #if DB_VERSION_MAJOR > 2
34006 db_env_create( NULL, 0 );
34007 #elif DB_VERSION_MAJOR > 1
34008 db_appexit( NULL );
34010 (void) dbopen( NULL, 0, 0, 0, NULL);
34017 rm -f conftest.$ac_objext conftest$ac_exeext
34018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34019 (eval $ac_link) 2>conftest.er1
34021 grep -v '^ *+' conftest.er1 >conftest.err
34023 cat conftest.err >&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); } &&
34026 { ac_try='test -z "$ac_c_werror_flag"
34027 || test ! -s conftest.err'
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; } &&
34033 { ac_try='test -s conftest$ac_exeext'
34034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035 (eval $ac_try) 2>&5
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
34041 echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34046 rm -f conftest.err conftest.$ac_objext \
34047 conftest$ac_exeext conftest.$ac_ext
34052 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34053 echo "${ECHO_T}$ol_cv_db_db2" >&6
34055 if test $ol_cv_db_db2 = yes ; then
34060 if test $ol_cv_lib_db = no ; then
34061 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34062 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34063 if test "${ol_cv_db_db_2+set}" = set; then
34064 echo $ECHO_N "(cached) $ECHO_C" >&6
34069 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34071 cat >conftest.$ac_ext <<_ACEOF
34074 cat confdefs.h >>conftest.$ac_ext
34075 cat >>conftest.$ac_ext <<_ACEOF
34076 /* end confdefs.h. */
34078 #ifdef HAVE_DB_185_H
34079 # include <db_185.h>
34084 #ifndef DB_VERSION_MAJOR
34085 # define DB_VERSION_MAJOR 1
34089 #define NULL ((void*)0)
34096 #if DB_VERSION_MAJOR > 1
34099 int major, minor, patch;
34101 version = db_version( &major, &minor, &patch );
34103 if( major != DB_VERSION_MAJOR ||
34104 minor < DB_VERSION_MINOR )
34106 printf("Berkeley DB version mismatch\n"
34107 "\theader: %s\n\tlibrary: %s\n",
34108 DB_VERSION_STRING, version);
34114 #if DB_VERSION_MAJOR > 2
34115 db_env_create( NULL, 0 );
34116 #elif DB_VERSION_MAJOR > 1
34117 db_appexit( NULL );
34119 (void) dbopen( NULL, 0, 0, 0, NULL);
34126 rm -f conftest.$ac_objext conftest$ac_exeext
34127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34128 (eval $ac_link) 2>conftest.er1
34130 grep -v '^ *+' conftest.er1 >conftest.err
34132 cat conftest.err >&5
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); } &&
34135 { ac_try='test -z "$ac_c_werror_flag"
34136 || test ! -s conftest.err'
34137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138 (eval $ac_try) 2>&5
34140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141 (exit $ac_status); }; } &&
34142 { ac_try='test -s conftest$ac_exeext'
34143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144 (eval $ac_try) 2>&5
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); }; }; then
34150 echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34155 rm -f conftest.err conftest.$ac_objext \
34156 conftest$ac_exeext conftest.$ac_ext
34161 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34162 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34164 if test $ol_cv_db_db_2 = yes ; then
34165 ol_cv_lib_db=-ldb-2
34170 elif test $ol_cv_bdb_major = 1 ; then
34171 if test $ol_cv_lib_db = no ; then
34172 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34173 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34174 if test "${ol_cv_db_db1+set}" = set; then
34175 echo $ECHO_N "(cached) $ECHO_C" >&6
34180 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34182 cat >conftest.$ac_ext <<_ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h. */
34189 #ifdef HAVE_DB_185_H
34190 # include <db_185.h>
34195 #ifndef DB_VERSION_MAJOR
34196 # define DB_VERSION_MAJOR 1
34200 #define NULL ((void*)0)
34207 #if DB_VERSION_MAJOR > 1
34210 int major, minor, patch;
34212 version = db_version( &major, &minor, &patch );
34214 if( major != DB_VERSION_MAJOR ||
34215 minor < DB_VERSION_MINOR )
34217 printf("Berkeley DB version mismatch\n"
34218 "\theader: %s\n\tlibrary: %s\n",
34219 DB_VERSION_STRING, version);
34225 #if DB_VERSION_MAJOR > 2
34226 db_env_create( NULL, 0 );
34227 #elif DB_VERSION_MAJOR > 1
34228 db_appexit( NULL );
34230 (void) dbopen( NULL, 0, 0, 0, NULL);
34237 rm -f conftest.$ac_objext conftest$ac_exeext
34238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34239 (eval $ac_link) 2>conftest.er1
34241 grep -v '^ *+' conftest.er1 >conftest.err
34243 cat conftest.err >&5
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245 (exit $ac_status); } &&
34246 { ac_try='test -z "$ac_c_werror_flag"
34247 || test ! -s conftest.err'
34248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34249 (eval $ac_try) 2>&5
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); }; } &&
34253 { ac_try='test -s conftest$ac_exeext'
34254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34255 (eval $ac_try) 2>&5
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
34261 echo "$as_me: failed program was:" >&5
34262 sed 's/^/| /' conftest.$ac_ext >&5
34266 rm -f conftest.err conftest.$ac_objext \
34267 conftest$ac_exeext conftest.$ac_ext
34272 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34273 echo "${ECHO_T}$ol_cv_db_db1" >&6
34275 if test $ol_cv_db_db1 = yes ; then
34280 if test $ol_cv_lib_db = no ; then
34281 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34282 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34283 if test "${ol_cv_db_db_1+set}" = set; then
34284 echo $ECHO_N "(cached) $ECHO_C" >&6
34289 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34291 cat >conftest.$ac_ext <<_ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h. */
34298 #ifdef HAVE_DB_185_H
34299 # include <db_185.h>
34304 #ifndef DB_VERSION_MAJOR
34305 # define DB_VERSION_MAJOR 1
34309 #define NULL ((void*)0)
34316 #if DB_VERSION_MAJOR > 1
34319 int major, minor, patch;
34321 version = db_version( &major, &minor, &patch );
34323 if( major != DB_VERSION_MAJOR ||
34324 minor < DB_VERSION_MINOR )
34326 printf("Berkeley DB version mismatch\n"
34327 "\theader: %s\n\tlibrary: %s\n",
34328 DB_VERSION_STRING, version);
34334 #if DB_VERSION_MAJOR > 2
34335 db_env_create( NULL, 0 );
34336 #elif DB_VERSION_MAJOR > 1
34337 db_appexit( NULL );
34339 (void) dbopen( NULL, 0, 0, 0, NULL);
34346 rm -f conftest.$ac_objext conftest$ac_exeext
34347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34348 (eval $ac_link) 2>conftest.er1
34350 grep -v '^ *+' conftest.er1 >conftest.err
34352 cat conftest.err >&5
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); } &&
34355 { ac_try='test -z "$ac_c_werror_flag"
34356 || test ! -s conftest.err'
34357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34358 (eval $ac_try) 2>&5
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 (exit $ac_status); }; } &&
34362 { ac_try='test -s conftest$ac_exeext'
34363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34364 (eval $ac_try) 2>&5
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); }; }; then
34370 echo "$as_me: failed program was:" >&5
34371 sed 's/^/| /' conftest.$ac_ext >&5
34375 rm -f conftest.err conftest.$ac_objext \
34376 conftest$ac_exeext conftest.$ac_ext
34381 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34382 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34384 if test $ol_cv_db_db_1 = yes ; then
34385 ol_cv_lib_db=-ldb-1
34390 if test $ol_cv_lib_db = no ; then
34391 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34392 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34393 if test "${ol_cv_db_none+set}" = set; then
34394 echo $ECHO_N "(cached) $ECHO_C" >&6
34399 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34401 cat >conftest.$ac_ext <<_ACEOF
34404 cat confdefs.h >>conftest.$ac_ext
34405 cat >>conftest.$ac_ext <<_ACEOF
34406 /* end confdefs.h. */
34408 #ifdef HAVE_DB_185_H
34409 # include <db_185.h>
34414 #ifndef DB_VERSION_MAJOR
34415 # define DB_VERSION_MAJOR 1
34419 #define NULL ((void*)0)
34426 #if DB_VERSION_MAJOR > 1
34429 int major, minor, patch;
34431 version = db_version( &major, &minor, &patch );
34433 if( major != DB_VERSION_MAJOR ||
34434 minor < DB_VERSION_MINOR )
34436 printf("Berkeley DB version mismatch\n"
34437 "\theader: %s\n\tlibrary: %s\n",
34438 DB_VERSION_STRING, version);
34444 #if DB_VERSION_MAJOR > 2
34445 db_env_create( NULL, 0 );
34446 #elif DB_VERSION_MAJOR > 1
34447 db_appexit( NULL );
34449 (void) dbopen( NULL, 0, 0, 0, NULL);
34456 rm -f conftest.$ac_objext conftest$ac_exeext
34457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34458 (eval $ac_link) 2>conftest.er1
34460 grep -v '^ *+' conftest.er1 >conftest.err
34462 cat conftest.err >&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } &&
34465 { ac_try='test -z "$ac_c_werror_flag"
34466 || test ! -s conftest.err'
34467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34468 (eval $ac_try) 2>&5
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); }; } &&
34472 { ac_try='test -s conftest$ac_exeext'
34473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34474 (eval $ac_try) 2>&5
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); }; }; then
34480 echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34485 rm -f conftest.err conftest.$ac_objext \
34486 conftest$ac_exeext conftest.$ac_ext
34491 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34492 echo "${ECHO_T}$ol_cv_db_none" >&6
34494 if test $ol_cv_db_none = yes ; then
34500 if test "$ol_cv_lib_db" != no ; then
34501 ol_cv_berkeley_db=yes
34502 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34503 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34504 if test "${ol_cv_berkeley_db_version+set}" = set; then
34505 echo $ECHO_N "(cached) $ECHO_C" >&6
34509 LIBS="$LTHREAD_LIBS $LIBS"
34510 if test $ol_cv_lib_db != yes ; then
34511 LIBS="$ol_cv_lib_db $LIBS"
34514 if test "$cross_compiling" = yes; then
34515 ol_cv_berkeley_db_version=cross
34517 cat >conftest.$ac_ext <<_ACEOF
34520 cat confdefs.h >>conftest.$ac_ext
34521 cat >>conftest.$ac_ext <<_ACEOF
34522 /* end confdefs.h. */
34524 #ifdef HAVE_DB_185_H
34529 #ifndef DB_VERSION_MAJOR
34530 # define DB_VERSION_MAJOR 1
34533 #define NULL ((void *)0)
34537 #if DB_VERSION_MAJOR > 1
34539 int major, minor, patch;
34541 version = db_version( &major, &minor, &patch );
34543 if( major != DB_VERSION_MAJOR ||
34544 minor != DB_VERSION_MINOR ||
34545 patch != DB_VERSION_PATCH )
34547 printf("Berkeley DB version mismatch\n"
34548 "\theader: %s\n\tlibrary: %s\n",
34549 DB_VERSION_STRING, version);
34557 rm -f conftest$ac_exeext
34558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34559 (eval $ac_link) 2>&5
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34564 (eval $ac_try) 2>&5
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); }; }; then
34568 ol_cv_berkeley_db_version=yes
34570 echo "$as_me: program exited with status $ac_status" >&5
34571 echo "$as_me: failed program was:" >&5
34572 sed 's/^/| /' conftest.$ac_ext >&5
34574 ( exit $ac_status )
34575 ol_cv_berkeley_db_version=no
34577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34583 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34584 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34586 if test $ol_cv_berkeley_db_version = no ; then
34587 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34588 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34589 { (exit 1); exit 1; }; }
34592 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34593 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34594 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34599 LIBS="$LTHREAD_LIBS $LIBS"
34600 if test $ol_cv_lib_db != yes ; then
34601 LIBS="$ol_cv_lib_db $LIBS"
34604 if test "$cross_compiling" = yes; then
34605 ol_cv_berkeley_db_thread=cross
34607 cat >conftest.$ac_ext <<_ACEOF
34610 cat confdefs.h >>conftest.$ac_ext
34611 cat >>conftest.$ac_ext <<_ACEOF
34612 /* end confdefs.h. */
34614 #ifdef HAVE_DB_185_H
34620 #define NULL ((void *)0)
34625 u_int32_t flags = DB_CREATE |
34631 #if DB_VERSION_MAJOR > 2
34632 DB_ENV *env = NULL;
34634 rc = db_env_create( &env, 0 );
34636 flags |= DB_INIT_MPOOL;
34637 #ifdef DB_MPOOL_PRIVATE
34638 flags |= DB_MPOOL_PRIVATE;
34642 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34646 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34647 rc = env->open( env, NULL, flags, 0 );
34649 rc = env->open( env, NULL, NULL, flags, 0 );
34653 rc = env->close( env, 0 );
34657 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34663 memset( &env, '\0', sizeof(env) );
34665 rc = db_appinit( NULL, NULL, &env, flags );
34668 db_appexit( &env );
34671 unlink("__db_mpool.share");
34672 unlink("__db_lock.share");
34678 rm -f conftest$ac_exeext
34679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34680 (eval $ac_link) 2>&5
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34685 (eval $ac_try) 2>&5
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); }; }; then
34689 ol_cv_berkeley_db_thread=yes
34691 echo "$as_me: program exited with status $ac_status" >&5
34692 echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34695 ( exit $ac_status )
34696 ol_cv_berkeley_db_thread=no
34698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34704 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34705 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34707 if test $ol_cv_berkeley_db_thread != no ; then
34709 cat >>confdefs.h <<\_ACEOF
34710 #define HAVE_BERKELEY_DB_THREAD 1
34720 if test $ol_cv_berkeley_db != no ; then
34722 cat >>confdefs.h <<\_ACEOF
34723 #define HAVE_BERKELEY_DB 1
34727 ol_link_ldbm=berkeley
34728 ol_enable_ldbm_api=berkeley
34730 if test $ol_enable_ldbm_type = hash ; then
34732 cat >>confdefs.h <<\_ACEOF
34733 #define LDBM_USE_DBHASH 1
34738 cat >>confdefs.h <<\_ACEOF
34739 #define LDBM_USE_DBBTREE 1
34744 if test $ol_cv_lib_db != yes ; then
34745 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34751 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34752 if test $ol_link_ldbm != berkeley ; then
34753 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34754 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34755 { (exit 1); exit 1; }; }
34757 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34758 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34759 if test "${ol_cv_bdb_compat+set}" = set; then
34760 echo $ECHO_N "(cached) $ECHO_C" >&6
34763 cat >conftest.$ac_ext <<_ACEOF
34766 cat confdefs.h >>conftest.$ac_ext
34767 cat >>conftest.$ac_ext <<_ACEOF
34768 /* end confdefs.h. */
34772 /* this check could be improved */
34773 #ifndef DB_VERSION_MAJOR
34774 # define DB_VERSION_MAJOR 1
34776 #ifndef DB_VERSION_MINOR
34777 # define DB_VERSION_MINOR 0
34780 /* require 4.2 or later */
34781 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34782 __db_version_compat
34786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34787 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34788 ol_cv_bdb_compat=yes
34790 ol_cv_bdb_compat=no
34795 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34796 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34799 if test $ol_cv_bdb_compat != yes ; then
34800 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34801 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34802 { (exit 1); exit 1; }; }
34807 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34808 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34809 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34810 ol_enable_ldbm_api=none
34813 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34814 echo "$as_me:$LINENO: checking for MDBM library" >&5
34815 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34816 if test "${ol_cv_lib_mdbm+set}" = set; then
34817 echo $ECHO_N "(cached) $ECHO_C" >&6
34820 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34821 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34822 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34823 echo $ECHO_N "(cached) $ECHO_C" >&6
34825 cat >conftest.$ac_ext <<_ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h. */
34831 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34833 #define mdbm_set_chain innocuous_mdbm_set_chain
34835 /* System header to define __stub macros and hopefully few prototypes,
34836 which can conflict with char mdbm_set_chain (); below.
34837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34838 <limits.h> exists even on freestanding compilers. */
34841 # include <limits.h>
34843 # include <assert.h>
34846 #undef mdbm_set_chain
34848 /* Override any gcc2 internal prototype to avoid an error. */
34853 /* We use char because int might match the return type of a gcc2
34854 builtin and then its argument prototype would still apply. */
34855 char mdbm_set_chain ();
34856 /* The GNU C library defines this for functions which it implements
34857 to always fail with ENOSYS. Some functions are actually named
34858 something starting with __ and the normal name is an alias. */
34859 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34862 char (*f) () = mdbm_set_chain;
34871 return f != mdbm_set_chain;
34876 rm -f conftest.$ac_objext conftest$ac_exeext
34877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34878 (eval $ac_link) 2>conftest.er1
34880 grep -v '^ *+' conftest.er1 >conftest.err
34882 cat conftest.err >&5
34883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884 (exit $ac_status); } &&
34885 { ac_try='test -z "$ac_c_werror_flag"
34886 || test ! -s conftest.err'
34887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34888 (eval $ac_try) 2>&5
34890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34891 (exit $ac_status); }; } &&
34892 { ac_try='test -s conftest$ac_exeext'
34893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894 (eval $ac_try) 2>&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; }; then
34898 ac_cv_func_mdbm_set_chain=yes
34900 echo "$as_me: failed program was:" >&5
34901 sed 's/^/| /' conftest.$ac_ext >&5
34903 ac_cv_func_mdbm_set_chain=no
34905 rm -f conftest.err conftest.$ac_objext \
34906 conftest$ac_exeext conftest.$ac_ext
34908 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34909 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34910 if test $ac_cv_func_mdbm_set_chain = yes; then
34914 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34915 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34916 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34917 echo $ECHO_N "(cached) $ECHO_C" >&6
34919 ac_check_lib_save_LIBS=$LIBS
34920 LIBS="-lmdbm $LIBS"
34921 cat >conftest.$ac_ext <<_ACEOF
34924 cat confdefs.h >>conftest.$ac_ext
34925 cat >>conftest.$ac_ext <<_ACEOF
34926 /* end confdefs.h. */
34928 /* Override any gcc2 internal prototype to avoid an error. */
34932 /* We use char because int might match the return type of a gcc2
34933 builtin and then its argument prototype would still apply. */
34934 char mdbm_set_chain ();
34943 rm -f conftest.$ac_objext conftest$ac_exeext
34944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34945 (eval $ac_link) 2>conftest.er1
34947 grep -v '^ *+' conftest.er1 >conftest.err
34949 cat conftest.err >&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); } &&
34952 { ac_try='test -z "$ac_c_werror_flag"
34953 || test ! -s conftest.err'
34954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955 (eval $ac_try) 2>&5
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; } &&
34959 { ac_try='test -s conftest$ac_exeext'
34960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34961 (eval $ac_try) 2>&5
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); }; }; then
34965 ac_cv_lib_mdbm_mdbm_set_chain=yes
34967 echo "$as_me: failed program was:" >&5
34968 sed 's/^/| /' conftest.$ac_ext >&5
34970 ac_cv_lib_mdbm_mdbm_set_chain=no
34972 rm -f conftest.err conftest.$ac_objext \
34973 conftest$ac_exeext conftest.$ac_ext
34974 LIBS=$ac_check_lib_save_LIBS
34976 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34977 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34978 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34979 ol_cv_lib_mdbm=-lmdbm
34990 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34991 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34995 for ac_header in mdbm.h
34997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34999 echo "$as_me:$LINENO: checking for $ac_header" >&5
35000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35002 echo $ECHO_N "(cached) $ECHO_C" >&6
35004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35007 # Is the header compilable?
35008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35010 cat >conftest.$ac_ext <<_ACEOF
35013 cat confdefs.h >>conftest.$ac_ext
35014 cat >>conftest.$ac_ext <<_ACEOF
35015 /* end confdefs.h. */
35016 $ac_includes_default
35017 #include <$ac_header>
35019 rm -f conftest.$ac_objext
35020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35021 (eval $ac_compile) 2>conftest.er1
35023 grep -v '^ *+' conftest.er1 >conftest.err
35025 cat conftest.err >&5
35026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027 (exit $ac_status); } &&
35028 { ac_try='test -z "$ac_c_werror_flag"
35029 || test ! -s conftest.err'
35030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031 (eval $ac_try) 2>&5
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); }; } &&
35035 { ac_try='test -s conftest.$ac_objext'
35036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037 (eval $ac_try) 2>&5
35039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); }; }; then
35041 ac_header_compiler=yes
35043 echo "$as_me: failed program was:" >&5
35044 sed 's/^/| /' conftest.$ac_ext >&5
35046 ac_header_compiler=no
35048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35050 echo "${ECHO_T}$ac_header_compiler" >&6
35052 # Is the header present?
35053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35055 cat >conftest.$ac_ext <<_ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h. */
35061 #include <$ac_header>
35063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35066 grep -v '^ *+' conftest.er1 >conftest.err
35068 cat conftest.err >&5
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); } >/dev/null; then
35071 if test -s conftest.err; then
35072 ac_cpp_err=$ac_c_preproc_warn_flag
35073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35080 if test -z "$ac_cpp_err"; then
35081 ac_header_preproc=yes
35083 echo "$as_me: failed program was:" >&5
35084 sed 's/^/| /' conftest.$ac_ext >&5
35086 ac_header_preproc=no
35088 rm -f conftest.err conftest.$ac_ext
35089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35090 echo "${ECHO_T}$ac_header_preproc" >&6
35092 # So? What about this header?
35093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35099 ac_header_preproc=yes
35102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35116 ## ------------------------------------------ ##
35117 ## Report this to the AC_PACKAGE_NAME lists. ##
35118 ## ------------------------------------------ ##
35121 sed "s/^/$as_me: WARNING: /" >&2
35124 echo "$as_me:$LINENO: checking for $ac_header" >&5
35125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35127 echo $ECHO_N "(cached) $ECHO_C" >&6
35129 eval "$as_ac_Header=\$ac_header_preproc"
35131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35136 cat >>confdefs.h <<_ACEOF
35137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35144 echo "$as_me:$LINENO: checking for db" >&5
35145 echo $ECHO_N "checking for db... $ECHO_C" >&6
35146 if test "${ol_cv_mdbm+set}" = set; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35150 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35157 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35158 echo "${ECHO_T}$ol_cv_mdbm" >&6
35159 if test $ol_cv_mdbm = yes ; then
35161 cat >>confdefs.h <<\_ACEOF
35162 #define HAVE_MDBM 1
35168 if test $ol_cv_mdbm = yes ; then
35170 ol_enable_ldbm_api=mdbm
35171 if test $ol_cv_lib_mdbm != yes ; then
35172 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35177 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35178 echo "$as_me:$LINENO: checking for GDBM library" >&5
35179 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35180 if test "${ol_cv_lib_gdbm+set}" = set; then
35181 echo $ECHO_N "(cached) $ECHO_C" >&6
35184 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35185 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35186 if test "${ac_cv_func_gdbm_open+set}" = set; then
35187 echo $ECHO_N "(cached) $ECHO_C" >&6
35189 cat >conftest.$ac_ext <<_ACEOF
35192 cat confdefs.h >>conftest.$ac_ext
35193 cat >>conftest.$ac_ext <<_ACEOF
35194 /* end confdefs.h. */
35195 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35197 #define gdbm_open innocuous_gdbm_open
35199 /* System header to define __stub macros and hopefully few prototypes,
35200 which can conflict with char gdbm_open (); below.
35201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35202 <limits.h> exists even on freestanding compilers. */
35205 # include <limits.h>
35207 # include <assert.h>
35212 /* Override any gcc2 internal prototype to avoid an error. */
35217 /* We use char because int might match the return type of a gcc2
35218 builtin and then its argument prototype would still apply. */
35220 /* The GNU C library defines this for functions which it implements
35221 to always fail with ENOSYS. Some functions are actually named
35222 something starting with __ and the normal name is an alias. */
35223 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35226 char (*f) () = gdbm_open;
35235 return f != gdbm_open;
35240 rm -f conftest.$ac_objext conftest$ac_exeext
35241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35242 (eval $ac_link) 2>conftest.er1
35244 grep -v '^ *+' conftest.er1 >conftest.err
35246 cat conftest.err >&5
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); } &&
35249 { ac_try='test -z "$ac_c_werror_flag"
35250 || test ! -s conftest.err'
35251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252 (eval $ac_try) 2>&5
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); }; } &&
35256 { ac_try='test -s conftest$ac_exeext'
35257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35258 (eval $ac_try) 2>&5
35260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35261 (exit $ac_status); }; }; then
35262 ac_cv_func_gdbm_open=yes
35264 echo "$as_me: failed program was:" >&5
35265 sed 's/^/| /' conftest.$ac_ext >&5
35267 ac_cv_func_gdbm_open=no
35269 rm -f conftest.err conftest.$ac_objext \
35270 conftest$ac_exeext conftest.$ac_ext
35272 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35273 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35274 if test $ac_cv_func_gdbm_open = yes; then
35278 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35279 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35280 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35281 echo $ECHO_N "(cached) $ECHO_C" >&6
35283 ac_check_lib_save_LIBS=$LIBS
35284 LIBS="-lgdbm $LIBS"
35285 cat >conftest.$ac_ext <<_ACEOF
35288 cat confdefs.h >>conftest.$ac_ext
35289 cat >>conftest.$ac_ext <<_ACEOF
35290 /* end confdefs.h. */
35292 /* Override any gcc2 internal prototype to avoid an error. */
35296 /* We use char because int might match the return type of a gcc2
35297 builtin and then its argument prototype would still apply. */
35307 rm -f conftest.$ac_objext conftest$ac_exeext
35308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35309 (eval $ac_link) 2>conftest.er1
35311 grep -v '^ *+' conftest.er1 >conftest.err
35313 cat conftest.err >&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } &&
35316 { ac_try='test -z "$ac_c_werror_flag"
35317 || test ! -s conftest.err'
35318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35319 (eval $ac_try) 2>&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); }; } &&
35323 { ac_try='test -s conftest$ac_exeext'
35324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35325 (eval $ac_try) 2>&5
35327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328 (exit $ac_status); }; }; then
35329 ac_cv_lib_gdbm_gdbm_open=yes
35331 echo "$as_me: failed program was:" >&5
35332 sed 's/^/| /' conftest.$ac_ext >&5
35334 ac_cv_lib_gdbm_gdbm_open=no
35336 rm -f conftest.err conftest.$ac_objext \
35337 conftest$ac_exeext conftest.$ac_ext
35338 LIBS=$ac_check_lib_save_LIBS
35340 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35341 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35342 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35343 ol_cv_lib_gdbm=-lgdbm
35354 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35355 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35359 for ac_header in gdbm.h
35361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35363 echo "$as_me:$LINENO: checking for $ac_header" >&5
35364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35366 echo $ECHO_N "(cached) $ECHO_C" >&6
35368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35371 # Is the header compilable?
35372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35374 cat >conftest.$ac_ext <<_ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h. */
35380 $ac_includes_default
35381 #include <$ac_header>
35383 rm -f conftest.$ac_objext
35384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35385 (eval $ac_compile) 2>conftest.er1
35387 grep -v '^ *+' conftest.er1 >conftest.err
35389 cat conftest.err >&5
35390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); } &&
35392 { ac_try='test -z "$ac_c_werror_flag"
35393 || test ! -s conftest.err'
35394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35395 (eval $ac_try) 2>&5
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); }; } &&
35399 { ac_try='test -s conftest.$ac_objext'
35400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35401 (eval $ac_try) 2>&5
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); }; }; then
35405 ac_header_compiler=yes
35407 echo "$as_me: failed program was:" >&5
35408 sed 's/^/| /' conftest.$ac_ext >&5
35410 ac_header_compiler=no
35412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35414 echo "${ECHO_T}$ac_header_compiler" >&6
35416 # Is the header present?
35417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35419 cat >conftest.$ac_ext <<_ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h. */
35425 #include <$ac_header>
35427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35430 grep -v '^ *+' conftest.er1 >conftest.err
35432 cat conftest.err >&5
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } >/dev/null; then
35435 if test -s conftest.err; then
35436 ac_cpp_err=$ac_c_preproc_warn_flag
35437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35444 if test -z "$ac_cpp_err"; then
35445 ac_header_preproc=yes
35447 echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35450 ac_header_preproc=no
35452 rm -f conftest.err conftest.$ac_ext
35453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35454 echo "${ECHO_T}$ac_header_preproc" >&6
35456 # So? What about this header?
35457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35463 ac_header_preproc=yes
35466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35480 ## ------------------------------------------ ##
35481 ## Report this to the AC_PACKAGE_NAME lists. ##
35482 ## ------------------------------------------ ##
35485 sed "s/^/$as_me: WARNING: /" >&2
35488 echo "$as_me:$LINENO: checking for $ac_header" >&5
35489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35491 echo $ECHO_N "(cached) $ECHO_C" >&6
35493 eval "$as_ac_Header=\$ac_header_preproc"
35495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35500 cat >>confdefs.h <<_ACEOF
35501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35508 echo "$as_me:$LINENO: checking for db" >&5
35509 echo $ECHO_N "checking for db... $ECHO_C" >&6
35510 if test "${ol_cv_gdbm+set}" = set; then
35511 echo $ECHO_N "(cached) $ECHO_C" >&6
35514 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35521 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35522 echo "${ECHO_T}$ol_cv_gdbm" >&6
35523 if test $ol_cv_gdbm = yes ; then
35525 cat >>confdefs.h <<\_ACEOF
35526 #define HAVE_GDBM 1
35532 if test $ol_cv_gdbm = yes ; then
35534 ol_enable_ldbm_api=gdbm
35536 if test $ol_cv_lib_gdbm != yes ; then
35537 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35542 if test $ol_enable_ldbm_api = ndbm ; then
35543 echo "$as_me:$LINENO: checking for NDBM library" >&5
35544 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35545 if test "${ol_cv_lib_ndbm+set}" = set; then
35546 echo $ECHO_N "(cached) $ECHO_C" >&6
35549 echo "$as_me:$LINENO: checking for dbm_open" >&5
35550 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35551 if test "${ac_cv_func_dbm_open+set}" = set; then
35552 echo $ECHO_N "(cached) $ECHO_C" >&6
35554 cat >conftest.$ac_ext <<_ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h. */
35560 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35562 #define dbm_open innocuous_dbm_open
35564 /* System header to define __stub macros and hopefully few prototypes,
35565 which can conflict with char dbm_open (); below.
35566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35567 <limits.h> exists even on freestanding compilers. */
35570 # include <limits.h>
35572 # include <assert.h>
35577 /* Override any gcc2 internal prototype to avoid an error. */
35582 /* We use char because int might match the return type of a gcc2
35583 builtin and then its argument prototype would still apply. */
35585 /* The GNU C library defines this for functions which it implements
35586 to always fail with ENOSYS. Some functions are actually named
35587 something starting with __ and the normal name is an alias. */
35588 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35591 char (*f) () = dbm_open;
35600 return f != dbm_open;
35605 rm -f conftest.$ac_objext conftest$ac_exeext
35606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35607 (eval $ac_link) 2>conftest.er1
35609 grep -v '^ *+' conftest.er1 >conftest.err
35611 cat conftest.err >&5
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } &&
35614 { ac_try='test -z "$ac_c_werror_flag"
35615 || test ! -s conftest.err'
35616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35617 (eval $ac_try) 2>&5
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); }; } &&
35621 { ac_try='test -s conftest$ac_exeext'
35622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35623 (eval $ac_try) 2>&5
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); }; }; then
35627 ac_cv_func_dbm_open=yes
35629 echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35632 ac_cv_func_dbm_open=no
35634 rm -f conftest.err conftest.$ac_objext \
35635 conftest$ac_exeext conftest.$ac_ext
35637 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35638 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35639 if test $ac_cv_func_dbm_open = yes; then
35643 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35644 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35645 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35646 echo $ECHO_N "(cached) $ECHO_C" >&6
35648 ac_check_lib_save_LIBS=$LIBS
35649 LIBS="-lndbm $LIBS"
35650 cat >conftest.$ac_ext <<_ACEOF
35653 cat confdefs.h >>conftest.$ac_ext
35654 cat >>conftest.$ac_ext <<_ACEOF
35655 /* end confdefs.h. */
35657 /* Override any gcc2 internal prototype to avoid an error. */
35661 /* We use char because int might match the return type of a gcc2
35662 builtin and then its argument prototype would still apply. */
35672 rm -f conftest.$ac_objext conftest$ac_exeext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35674 (eval $ac_link) 2>conftest.er1
35676 grep -v '^ *+' conftest.er1 >conftest.err
35678 cat conftest.err >&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } &&
35681 { ac_try='test -z "$ac_c_werror_flag"
35682 || test ! -s conftest.err'
35683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684 (eval $ac_try) 2>&5
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); }; } &&
35688 { ac_try='test -s conftest$ac_exeext'
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; }; then
35694 ac_cv_lib_ndbm_dbm_open=yes
35696 echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35699 ac_cv_lib_ndbm_dbm_open=no
35701 rm -f conftest.err conftest.$ac_objext \
35702 conftest$ac_exeext conftest.$ac_ext
35703 LIBS=$ac_check_lib_save_LIBS
35705 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35706 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35707 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35708 ol_cv_lib_ndbm=-lndbm
35711 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35712 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35713 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35714 echo $ECHO_N "(cached) $ECHO_C" >&6
35716 ac_check_lib_save_LIBS=$LIBS
35718 cat >conftest.$ac_ext <<_ACEOF
35721 cat confdefs.h >>conftest.$ac_ext
35722 cat >>conftest.$ac_ext <<_ACEOF
35723 /* end confdefs.h. */
35725 /* Override any gcc2 internal prototype to avoid an error. */
35729 /* We use char because int might match the return type of a gcc2
35730 builtin and then its argument prototype would still apply. */
35740 rm -f conftest.$ac_objext conftest$ac_exeext
35741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35742 (eval $ac_link) 2>conftest.er1
35744 grep -v '^ *+' conftest.er1 >conftest.err
35746 cat conftest.err >&5
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); } &&
35749 { ac_try='test -z "$ac_c_werror_flag"
35750 || test ! -s conftest.err'
35751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752 (eval $ac_try) 2>&5
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); }; } &&
35756 { ac_try='test -s conftest$ac_exeext'
35757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35758 (eval $ac_try) 2>&5
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); }; }; then
35762 ac_cv_lib_dbm_dbm_open=yes
35764 echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35767 ac_cv_lib_dbm_dbm_open=no
35769 rm -f conftest.err conftest.$ac_objext \
35770 conftest$ac_exeext conftest.$ac_ext
35771 LIBS=$ac_check_lib_save_LIBS
35773 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35774 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35775 if test $ac_cv_lib_dbm_dbm_open = yes; then
35776 ol_cv_lib_ndbm=-ldbm
35789 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35790 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35794 for ac_header in ndbm.h
35796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35798 echo "$as_me:$LINENO: checking for $ac_header" >&5
35799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35801 echo $ECHO_N "(cached) $ECHO_C" >&6
35803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35806 # Is the header compilable?
35807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35809 cat >conftest.$ac_ext <<_ACEOF
35812 cat confdefs.h >>conftest.$ac_ext
35813 cat >>conftest.$ac_ext <<_ACEOF
35814 /* end confdefs.h. */
35815 $ac_includes_default
35816 #include <$ac_header>
35818 rm -f conftest.$ac_objext
35819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35820 (eval $ac_compile) 2>conftest.er1
35822 grep -v '^ *+' conftest.er1 >conftest.err
35824 cat conftest.err >&5
35825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826 (exit $ac_status); } &&
35827 { ac_try='test -z "$ac_c_werror_flag"
35828 || test ! -s conftest.err'
35829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35830 (eval $ac_try) 2>&5
35832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833 (exit $ac_status); }; } &&
35834 { ac_try='test -s conftest.$ac_objext'
35835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35836 (eval $ac_try) 2>&5
35838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839 (exit $ac_status); }; }; then
35840 ac_header_compiler=yes
35842 echo "$as_me: failed program was:" >&5
35843 sed 's/^/| /' conftest.$ac_ext >&5
35845 ac_header_compiler=no
35847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35849 echo "${ECHO_T}$ac_header_compiler" >&6
35851 # Is the header present?
35852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35854 cat >conftest.$ac_ext <<_ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35860 #include <$ac_header>
35862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35865 grep -v '^ *+' conftest.er1 >conftest.err
35867 cat conftest.err >&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); } >/dev/null; then
35870 if test -s conftest.err; then
35871 ac_cpp_err=$ac_c_preproc_warn_flag
35872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35879 if test -z "$ac_cpp_err"; then
35880 ac_header_preproc=yes
35882 echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35885 ac_header_preproc=no
35887 rm -f conftest.err conftest.$ac_ext
35888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35889 echo "${ECHO_T}$ac_header_preproc" >&6
35891 # So? What about this header?
35892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35898 ac_header_preproc=yes
35901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35915 ## ------------------------------------------ ##
35916 ## Report this to the AC_PACKAGE_NAME lists. ##
35917 ## ------------------------------------------ ##
35920 sed "s/^/$as_me: WARNING: /" >&2
35923 echo "$as_me:$LINENO: checking for $ac_header" >&5
35924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35926 echo $ECHO_N "(cached) $ECHO_C" >&6
35928 eval "$as_ac_Header=\$ac_header_preproc"
35930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35935 cat >>confdefs.h <<_ACEOF
35936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35943 echo "$as_me:$LINENO: checking for db" >&5
35944 echo $ECHO_N "checking for db... $ECHO_C" >&6
35945 if test "${ol_cv_ndbm+set}" = set; then
35946 echo $ECHO_N "(cached) $ECHO_C" >&6
35949 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35956 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35957 echo "${ECHO_T}$ol_cv_ndbm" >&6
35958 if test $ol_cv_ndbm = yes ; then
35960 cat >>confdefs.h <<\_ACEOF
35961 #define HAVE_NDBM 1
35967 if test $ol_cv_ndbm = yes ; then
35969 ol_enable_ldbm_api=ndbm
35971 if test $ol_cv_lib_ndbm != yes ; then
35972 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35977 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35978 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35979 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35980 { (exit 1); exit 1; }; }
35983 if test $ol_enable_bdb = yes ||
35984 test $ol_enable_hdb = yes ||
35985 test $ol_enable_ldbm = yes ; then
35986 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35990 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35991 BUILD_LIBS_DYNAMIC=shared
35993 cat >>confdefs.h <<\_ACEOF
35994 #define LDAP_LIBS_DYNAMIC 1
35999 BUILD_LIBS_DYNAMIC=static
36003 if test $ol_enable_wrappers != no ; then
36005 for ac_header in tcpd.h
36007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36009 echo "$as_me:$LINENO: checking for $ac_header" >&5
36010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36012 echo $ECHO_N "(cached) $ECHO_C" >&6
36014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36017 # Is the header compilable?
36018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36020 cat >conftest.$ac_ext <<_ACEOF
36023 cat confdefs.h >>conftest.$ac_ext
36024 cat >>conftest.$ac_ext <<_ACEOF
36025 /* end confdefs.h. */
36026 $ac_includes_default
36027 #include <$ac_header>
36029 rm -f conftest.$ac_objext
36030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36031 (eval $ac_compile) 2>conftest.er1
36033 grep -v '^ *+' conftest.er1 >conftest.err
36035 cat conftest.err >&5
36036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037 (exit $ac_status); } &&
36038 { ac_try='test -z "$ac_c_werror_flag"
36039 || test ! -s conftest.err'
36040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36041 (eval $ac_try) 2>&5
36043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36044 (exit $ac_status); }; } &&
36045 { ac_try='test -s conftest.$ac_objext'
36046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36047 (eval $ac_try) 2>&5
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); }; }; then
36051 ac_header_compiler=yes
36053 echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36056 ac_header_compiler=no
36058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36060 echo "${ECHO_T}$ac_header_compiler" >&6
36062 # Is the header present?
36063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36065 cat >conftest.$ac_ext <<_ACEOF
36068 cat confdefs.h >>conftest.$ac_ext
36069 cat >>conftest.$ac_ext <<_ACEOF
36070 /* end confdefs.h. */
36071 #include <$ac_header>
36073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36076 grep -v '^ *+' conftest.er1 >conftest.err
36078 cat conftest.err >&5
36079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080 (exit $ac_status); } >/dev/null; then
36081 if test -s conftest.err; then
36082 ac_cpp_err=$ac_c_preproc_warn_flag
36083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36090 if test -z "$ac_cpp_err"; then
36091 ac_header_preproc=yes
36093 echo "$as_me: failed program was:" >&5
36094 sed 's/^/| /' conftest.$ac_ext >&5
36096 ac_header_preproc=no
36098 rm -f conftest.err conftest.$ac_ext
36099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36100 echo "${ECHO_T}$ac_header_preproc" >&6
36102 # So? What about this header?
36103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36109 ac_header_preproc=yes
36112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36126 ## ------------------------------------------ ##
36127 ## Report this to the AC_PACKAGE_NAME lists. ##
36128 ## ------------------------------------------ ##
36131 sed "s/^/$as_me: WARNING: /" >&2
36134 echo "$as_me:$LINENO: checking for $ac_header" >&5
36135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36137 echo $ECHO_N "(cached) $ECHO_C" >&6
36139 eval "$as_ac_Header=\$ac_header_preproc"
36141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36146 cat >>confdefs.h <<_ACEOF
36147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36150 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36151 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36153 LIBS="$LIBS -lwrap"
36154 cat >conftest.$ac_ext <<_ACEOF
36157 cat confdefs.h >>conftest.$ac_ext
36158 cat >>conftest.$ac_ext <<_ACEOF
36159 /* end confdefs.h. */
36162 int allow_severity = 0;
36163 int deny_severity = 0;
36165 struct request_info *req;
36177 rm -f conftest.$ac_objext conftest$ac_exeext
36178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36179 (eval $ac_link) 2>conftest.er1
36181 grep -v '^ *+' conftest.er1 >conftest.err
36183 cat conftest.err >&5
36184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 (exit $ac_status); } &&
36186 { ac_try='test -z "$ac_c_werror_flag"
36187 || test ! -s conftest.err'
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; } &&
36193 { ac_try='test -s conftest$ac_exeext'
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; }; then
36199 echo "$as_me:$LINENO: result: -lwrap" >&5
36200 echo "${ECHO_T}-lwrap" >&6
36204 echo "$as_me: failed program was:" >&5
36205 sed 's/^/| /' conftest.$ac_ext >&5
36209 cat >conftest.$ac_ext <<_ACEOF
36212 cat confdefs.h >>conftest.$ac_ext
36213 cat >>conftest.$ac_ext <<_ACEOF
36214 /* end confdefs.h. */
36217 int allow_severity = 0;
36218 int deny_severity = 0;
36220 struct request_info *req;
36232 rm -f conftest.$ac_objext conftest$ac_exeext
36233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36234 (eval $ac_link) 2>conftest.er1
36236 grep -v '^ *+' conftest.er1 >conftest.err
36238 cat conftest.err >&5
36239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240 (exit $ac_status); } &&
36241 { ac_try='test -z "$ac_c_werror_flag"
36242 || test ! -s conftest.err'
36243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36244 (eval $ac_try) 2>&5
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); }; } &&
36248 { ac_try='test -s conftest$ac_exeext'
36249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36250 (eval $ac_try) 2>&5
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); }; }; then
36254 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36255 echo "${ECHO_T}-lwrap -lnsl" >&6
36257 LIBS="$save_LIBS -lnsl"
36259 echo "$as_me: failed program was:" >&5
36260 sed 's/^/| /' conftest.$ac_ext >&5
36263 echo "$as_me:$LINENO: result: no" >&5
36264 echo "${ECHO_T}no" >&6
36268 rm -f conftest.err conftest.$ac_objext \
36269 conftest$ac_exeext conftest.$ac_ext
36271 rm -f conftest.err conftest.$ac_objext \
36272 conftest$ac_exeext conftest.$ac_ext
36280 if test $have_wrappers = yes ; then
36282 cat >>confdefs.h <<\_ACEOF
36283 #define HAVE_TCPD 1
36287 elif test $ol_enable_wrappers = yes ; then
36288 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36289 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36290 { (exit 1); exit 1; }; }
36292 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36293 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36298 if test $ol_enable_syslog != no ; then
36299 echo "$as_me:$LINENO: checking for openlog" >&5
36300 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36301 if test "${ac_cv_func_openlog+set}" = set; then
36302 echo $ECHO_N "(cached) $ECHO_C" >&6
36304 cat >conftest.$ac_ext <<_ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h. */
36310 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36312 #define openlog innocuous_openlog
36314 /* System header to define __stub macros and hopefully few prototypes,
36315 which can conflict with char openlog (); below.
36316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36317 <limits.h> exists even on freestanding compilers. */
36320 # include <limits.h>
36322 # include <assert.h>
36327 /* Override any gcc2 internal prototype to avoid an error. */
36332 /* We use char because int might match the return type of a gcc2
36333 builtin and then its argument prototype would still apply. */
36335 /* The GNU C library defines this for functions which it implements
36336 to always fail with ENOSYS. Some functions are actually named
36337 something starting with __ and the normal name is an alias. */
36338 #if defined (__stub_openlog) || defined (__stub___openlog)
36341 char (*f) () = openlog;
36350 return f != openlog;
36355 rm -f conftest.$ac_objext conftest$ac_exeext
36356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36357 (eval $ac_link) 2>conftest.er1
36359 grep -v '^ *+' conftest.er1 >conftest.err
36361 cat conftest.err >&5
36362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 (exit $ac_status); } &&
36364 { ac_try='test -z "$ac_c_werror_flag"
36365 || test ! -s conftest.err'
36366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367 (eval $ac_try) 2>&5
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); }; } &&
36371 { ac_try='test -s conftest$ac_exeext'
36372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373 (eval $ac_try) 2>&5
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); }; }; then
36377 ac_cv_func_openlog=yes
36379 echo "$as_me: failed program was:" >&5
36380 sed 's/^/| /' conftest.$ac_ext >&5
36382 ac_cv_func_openlog=no
36384 rm -f conftest.err conftest.$ac_objext \
36385 conftest$ac_exeext conftest.$ac_ext
36387 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36388 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36390 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36391 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36392 echo "$as_me: error: could not find syslog" >&2;}
36393 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36395 ol_enable_syslog=$ac_cv_func_openlog
36399 if test $ol_enable_sql != no ; then
36402 for ac_header in sql.h sqlext.h
36404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36406 echo "$as_me:$LINENO: checking for $ac_header" >&5
36407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36409 echo $ECHO_N "(cached) $ECHO_C" >&6
36411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36414 # Is the header compilable?
36415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36417 cat >conftest.$ac_ext <<_ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h. */
36423 $ac_includes_default
36424 #include <$ac_header>
36426 rm -f conftest.$ac_objext
36427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36428 (eval $ac_compile) 2>conftest.er1
36430 grep -v '^ *+' conftest.er1 >conftest.err
36432 cat conftest.err >&5
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); } &&
36435 { ac_try='test -z "$ac_c_werror_flag"
36436 || test ! -s conftest.err'
36437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36438 (eval $ac_try) 2>&5
36440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441 (exit $ac_status); }; } &&
36442 { ac_try='test -s conftest.$ac_objext'
36443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36444 (eval $ac_try) 2>&5
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); }; }; then
36448 ac_header_compiler=yes
36450 echo "$as_me: failed program was:" >&5
36451 sed 's/^/| /' conftest.$ac_ext >&5
36453 ac_header_compiler=no
36455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36457 echo "${ECHO_T}$ac_header_compiler" >&6
36459 # Is the header present?
36460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36462 cat >conftest.$ac_ext <<_ACEOF
36465 cat confdefs.h >>conftest.$ac_ext
36466 cat >>conftest.$ac_ext <<_ACEOF
36467 /* end confdefs.h. */
36468 #include <$ac_header>
36470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36473 grep -v '^ *+' conftest.er1 >conftest.err
36475 cat conftest.err >&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); } >/dev/null; then
36478 if test -s conftest.err; then
36479 ac_cpp_err=$ac_c_preproc_warn_flag
36480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36487 if test -z "$ac_cpp_err"; then
36488 ac_header_preproc=yes
36490 echo "$as_me: failed program was:" >&5
36491 sed 's/^/| /' conftest.$ac_ext >&5
36493 ac_header_preproc=no
36495 rm -f conftest.err conftest.$ac_ext
36496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36497 echo "${ECHO_T}$ac_header_preproc" >&6
36499 # So? What about this header?
36500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36506 ac_header_preproc=yes
36509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36523 ## ------------------------------------------ ##
36524 ## Report this to the AC_PACKAGE_NAME lists. ##
36525 ## ------------------------------------------ ##
36528 sed "s/^/$as_me: WARNING: /" >&2
36531 echo "$as_me:$LINENO: checking for $ac_header" >&5
36532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36534 echo $ECHO_N "(cached) $ECHO_C" >&6
36536 eval "$as_ac_Header=\$ac_header_preproc"
36538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36543 cat >>confdefs.h <<_ACEOF
36544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36549 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36550 echo "$as_me: error: could not locate SQL headers" >&2;}
36551 { (exit 1); exit 1; }; }
36559 LIBS="$LTHREAD_LIBS"
36561 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36562 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36563 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36564 echo $ECHO_N "(cached) $ECHO_C" >&6
36566 ac_check_lib_save_LIBS=$LIBS
36567 LIBS="-liodbc $LIBS"
36568 cat >conftest.$ac_ext <<_ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h. */
36575 /* Override any gcc2 internal prototype to avoid an error. */
36579 /* We use char because int might match the return type of a gcc2
36580 builtin and then its argument prototype would still apply. */
36581 char SQLDriverConnect ();
36585 SQLDriverConnect ();
36590 rm -f conftest.$ac_objext conftest$ac_exeext
36591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36592 (eval $ac_link) 2>conftest.er1
36594 grep -v '^ *+' conftest.er1 >conftest.err
36596 cat conftest.err >&5
36597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598 (exit $ac_status); } &&
36599 { ac_try='test -z "$ac_c_werror_flag"
36600 || test ! -s conftest.err'
36601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602 (eval $ac_try) 2>&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); }; } &&
36606 { ac_try='test -s conftest$ac_exeext'
36607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36608 (eval $ac_try) 2>&5
36610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611 (exit $ac_status); }; }; then
36612 ac_cv_lib_iodbc_SQLDriverConnect=yes
36614 echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36617 ac_cv_lib_iodbc_SQLDriverConnect=no
36619 rm -f conftest.err conftest.$ac_objext \
36620 conftest$ac_exeext conftest.$ac_ext
36621 LIBS=$ac_check_lib_save_LIBS
36623 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36624 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36625 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36631 if test $have_iodbc = yes ; then
36632 ol_link_sql="-liodbc"
36634 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36635 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36636 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36637 echo $ECHO_N "(cached) $ECHO_C" >&6
36639 ac_check_lib_save_LIBS=$LIBS
36640 LIBS="-lodbc $LIBS"
36641 cat >conftest.$ac_ext <<_ACEOF
36644 cat confdefs.h >>conftest.$ac_ext
36645 cat >>conftest.$ac_ext <<_ACEOF
36646 /* end confdefs.h. */
36648 /* Override any gcc2 internal prototype to avoid an error. */
36652 /* We use char because int might match the return type of a gcc2
36653 builtin and then its argument prototype would still apply. */
36654 char SQLDriverConnect ();
36658 SQLDriverConnect ();
36663 rm -f conftest.$ac_objext conftest$ac_exeext
36664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36665 (eval $ac_link) 2>conftest.er1
36667 grep -v '^ *+' conftest.er1 >conftest.err
36669 cat conftest.err >&5
36670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671 (exit $ac_status); } &&
36672 { ac_try='test -z "$ac_c_werror_flag"
36673 || test ! -s conftest.err'
36674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36675 (eval $ac_try) 2>&5
36677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678 (exit $ac_status); }; } &&
36679 { ac_try='test -s conftest$ac_exeext'
36680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36681 (eval $ac_try) 2>&5
36683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); }; }; then
36685 ac_cv_lib_odbc_SQLDriverConnect=yes
36687 echo "$as_me: failed program was:" >&5
36688 sed 's/^/| /' conftest.$ac_ext >&5
36690 ac_cv_lib_odbc_SQLDriverConnect=no
36692 rm -f conftest.err conftest.$ac_objext \
36693 conftest$ac_exeext conftest.$ac_ext
36694 LIBS=$ac_check_lib_save_LIBS
36696 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36697 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36698 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36704 if test $have_odbc = yes ; then
36705 ol_link_sql="-lodbc"
36711 if test $ol_link_sql != no ; then
36712 SLAPD_SQL_LIBS="$ol_link_sql"
36714 elif test $ol_enable_sql != auto ; then
36715 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36716 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36717 { (exit 1); exit 1; }; }
36723 for ac_header in unicode/utypes.h
36725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36727 echo "$as_me:$LINENO: checking for $ac_header" >&5
36728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36730 echo $ECHO_N "(cached) $ECHO_C" >&6
36732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36735 # Is the header compilable?
36736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36738 cat >conftest.$ac_ext <<_ACEOF
36741 cat confdefs.h >>conftest.$ac_ext
36742 cat >>conftest.$ac_ext <<_ACEOF
36743 /* end confdefs.h. */
36744 $ac_includes_default
36745 #include <$ac_header>
36747 rm -f conftest.$ac_objext
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749 (eval $ac_compile) 2>conftest.er1
36751 grep -v '^ *+' conftest.er1 >conftest.err
36753 cat conftest.err >&5
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } &&
36756 { ac_try='test -z "$ac_c_werror_flag"
36757 || test ! -s conftest.err'
36758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36759 (eval $ac_try) 2>&5
36761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762 (exit $ac_status); }; } &&
36763 { ac_try='test -s conftest.$ac_objext'
36764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765 (eval $ac_try) 2>&5
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); }; }; then
36769 ac_header_compiler=yes
36771 echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36774 ac_header_compiler=no
36776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36778 echo "${ECHO_T}$ac_header_compiler" >&6
36780 # Is the header present?
36781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36783 cat >conftest.$ac_ext <<_ACEOF
36786 cat confdefs.h >>conftest.$ac_ext
36787 cat >>conftest.$ac_ext <<_ACEOF
36788 /* end confdefs.h. */
36789 #include <$ac_header>
36791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36794 grep -v '^ *+' conftest.er1 >conftest.err
36796 cat conftest.err >&5
36797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798 (exit $ac_status); } >/dev/null; then
36799 if test -s conftest.err; then
36800 ac_cpp_err=$ac_c_preproc_warn_flag
36801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36808 if test -z "$ac_cpp_err"; then
36809 ac_header_preproc=yes
36811 echo "$as_me: failed program was:" >&5
36812 sed 's/^/| /' conftest.$ac_ext >&5
36814 ac_header_preproc=no
36816 rm -f conftest.err conftest.$ac_ext
36817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36818 echo "${ECHO_T}$ac_header_preproc" >&6
36820 # So? What about this header?
36821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36827 ac_header_preproc=yes
36830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36844 ## ------------------------------------------ ##
36845 ## Report this to the AC_PACKAGE_NAME lists. ##
36846 ## ------------------------------------------ ##
36849 sed "s/^/$as_me: WARNING: /" >&2
36852 echo "$as_me:$LINENO: checking for $ac_header" >&5
36853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36855 echo $ECHO_N "(cached) $ECHO_C" >&6
36857 eval "$as_ac_Header=\$ac_header_preproc"
36859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36864 cat >>confdefs.h <<_ACEOF
36865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36872 if test $ac_cv_header_unicode_utypes_h = yes ; then
36873 OL_ICULIBS="-licuuc -licudata"
36875 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36876 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36877 if test "${ol_cv_lib_icu+set}" = set; then
36878 echo $ECHO_N "(cached) $ECHO_C" >&6
36882 LIBS="$OL_ICULIBS $LIBS"
36883 cat >conftest.$ac_ext <<_ACEOF
36886 cat confdefs.h >>conftest.$ac_ext
36887 cat >>conftest.$ac_ext <<_ACEOF
36888 /* end confdefs.h. */
36890 #include <unicode/utypes.h>
36896 (void) u_errorName(0);
36902 rm -f conftest.$ac_objext conftest$ac_exeext
36903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36904 (eval $ac_link) 2>conftest.er1
36906 grep -v '^ *+' conftest.er1 >conftest.err
36908 cat conftest.err >&5
36909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910 (exit $ac_status); } &&
36911 { ac_try='test -z "$ac_c_werror_flag"
36912 || test ! -s conftest.err'
36913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36914 (eval $ac_try) 2>&5
36916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917 (exit $ac_status); }; } &&
36918 { ac_try='test -s conftest$ac_exeext'
36919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36920 (eval $ac_try) 2>&5
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); }; }; then
36926 echo "$as_me: failed program was:" >&5
36927 sed 's/^/| /' conftest.$ac_ext >&5
36931 rm -f conftest.err conftest.$ac_objext \
36932 conftest$ac_exeext conftest.$ac_ext
36936 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36937 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36939 if test $ol_cv_lib_icu != no ; then
36940 ol_icu="$OL_ICULIBS"
36942 cat >>confdefs.h <<\_ACEOF
36949 if test "$ol_icu" = no ; then
36950 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36951 echo "$as_me: WARNING: ICU not available" >&2;}
36958 if test $ol_with_cyrus_sasl != no ; then
36961 for ac_header in sasl/sasl.h sasl.h
36963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36965 echo "$as_me:$LINENO: checking for $ac_header" >&5
36966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36968 echo $ECHO_N "(cached) $ECHO_C" >&6
36970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36973 # Is the header compilable?
36974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36976 cat >conftest.$ac_ext <<_ACEOF
36979 cat confdefs.h >>conftest.$ac_ext
36980 cat >>conftest.$ac_ext <<_ACEOF
36981 /* end confdefs.h. */
36982 $ac_includes_default
36983 #include <$ac_header>
36985 rm -f conftest.$ac_objext
36986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36987 (eval $ac_compile) 2>conftest.er1
36989 grep -v '^ *+' conftest.er1 >conftest.err
36991 cat conftest.err >&5
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); } &&
36994 { ac_try='test -z "$ac_c_werror_flag"
36995 || test ! -s conftest.err'
36996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36997 (eval $ac_try) 2>&5
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); }; } &&
37001 { ac_try='test -s conftest.$ac_objext'
37002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37003 (eval $ac_try) 2>&5
37005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006 (exit $ac_status); }; }; then
37007 ac_header_compiler=yes
37009 echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37012 ac_header_compiler=no
37014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37016 echo "${ECHO_T}$ac_header_compiler" >&6
37018 # Is the header present?
37019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37021 cat >conftest.$ac_ext <<_ACEOF
37024 cat confdefs.h >>conftest.$ac_ext
37025 cat >>conftest.$ac_ext <<_ACEOF
37026 /* end confdefs.h. */
37027 #include <$ac_header>
37029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37032 grep -v '^ *+' conftest.er1 >conftest.err
37034 cat conftest.err >&5
37035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036 (exit $ac_status); } >/dev/null; then
37037 if test -s conftest.err; then
37038 ac_cpp_err=$ac_c_preproc_warn_flag
37039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37046 if test -z "$ac_cpp_err"; then
37047 ac_header_preproc=yes
37049 echo "$as_me: failed program was:" >&5
37050 sed 's/^/| /' conftest.$ac_ext >&5
37052 ac_header_preproc=no
37054 rm -f conftest.err conftest.$ac_ext
37055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37056 echo "${ECHO_T}$ac_header_preproc" >&6
37058 # So? What about this header?
37059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37065 ac_header_preproc=yes
37068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37082 ## ------------------------------------------ ##
37083 ## Report this to the AC_PACKAGE_NAME lists. ##
37084 ## ------------------------------------------ ##
37087 sed "s/^/$as_me: WARNING: /" >&2
37090 echo "$as_me:$LINENO: checking for $ac_header" >&5
37091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37093 echo $ECHO_N "(cached) $ECHO_C" >&6
37095 eval "$as_ac_Header=\$ac_header_preproc"
37097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37102 cat >>confdefs.h <<_ACEOF
37103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37111 if test $ac_cv_header_sasl_sasl_h = yes ||
37112 test $ac_cv_header_sasl_h = yes; then
37113 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37114 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37115 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37116 echo $ECHO_N "(cached) $ECHO_C" >&6
37118 ac_check_lib_save_LIBS=$LIBS
37119 LIBS="-lsasl2 $LIBS"
37120 cat >conftest.$ac_ext <<_ACEOF
37123 cat confdefs.h >>conftest.$ac_ext
37124 cat >>conftest.$ac_ext <<_ACEOF
37125 /* end confdefs.h. */
37127 /* Override any gcc2 internal prototype to avoid an error. */
37131 /* We use char because int might match the return type of a gcc2
37132 builtin and then its argument prototype would still apply. */
37133 char sasl_client_init ();
37137 sasl_client_init ();
37142 rm -f conftest.$ac_objext conftest$ac_exeext
37143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37144 (eval $ac_link) 2>conftest.er1
37146 grep -v '^ *+' conftest.er1 >conftest.err
37148 cat conftest.err >&5
37149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150 (exit $ac_status); } &&
37151 { ac_try='test -z "$ac_c_werror_flag"
37152 || test ! -s conftest.err'
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; } &&
37158 { ac_try='test -s conftest$ac_exeext'
37159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37160 (eval $ac_try) 2>&5
37162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163 (exit $ac_status); }; }; then
37164 ac_cv_lib_sasl2_sasl_client_init=yes
37166 echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37169 ac_cv_lib_sasl2_sasl_client_init=no
37171 rm -f conftest.err conftest.$ac_objext \
37172 conftest$ac_exeext conftest.$ac_ext
37173 LIBS=$ac_check_lib_save_LIBS
37175 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37176 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37177 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37178 ol_link_sasl="-lsasl2"
37180 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37181 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37182 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37183 echo $ECHO_N "(cached) $ECHO_C" >&6
37185 ac_check_lib_save_LIBS=$LIBS
37186 LIBS="-lsasl $LIBS"
37187 cat >conftest.$ac_ext <<_ACEOF
37190 cat confdefs.h >>conftest.$ac_ext
37191 cat >>conftest.$ac_ext <<_ACEOF
37192 /* end confdefs.h. */
37194 /* Override any gcc2 internal prototype to avoid an error. */
37198 /* We use char because int might match the return type of a gcc2
37199 builtin and then its argument prototype would still apply. */
37200 char sasl_client_init ();
37204 sasl_client_init ();
37209 rm -f conftest.$ac_objext conftest$ac_exeext
37210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37211 (eval $ac_link) 2>conftest.er1
37213 grep -v '^ *+' conftest.er1 >conftest.err
37215 cat conftest.err >&5
37216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217 (exit $ac_status); } &&
37218 { ac_try='test -z "$ac_c_werror_flag"
37219 || test ! -s conftest.err'
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; } &&
37225 { ac_try='test -s conftest$ac_exeext'
37226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227 (eval $ac_try) 2>&5
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; }; then
37231 ac_cv_lib_sasl_sasl_client_init=yes
37233 echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37236 ac_cv_lib_sasl_sasl_client_init=no
37238 rm -f conftest.err conftest.$ac_objext \
37239 conftest$ac_exeext conftest.$ac_ext
37240 LIBS=$ac_check_lib_save_LIBS
37242 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37243 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37244 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37245 ol_link_sasl="-lsasl"
37252 if test $ol_link_sasl = no ; then
37253 if test $ol_with_cyrus_sasl != auto ; then
37254 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37255 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37256 { (exit 1); exit 1; }; }
37258 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37259 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37260 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37261 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37262 if test $ol_link_tls = no ; then
37263 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37264 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37268 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37269 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37270 if test "${ol_cv_sasl_compat+set}" = set; then
37271 echo $ECHO_N "(cached) $ECHO_C" >&6
37274 cat >conftest.$ac_ext <<_ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37281 #ifdef HAVE_SASL_SASL_H
37282 #include <sasl/sasl.h>
37287 /* Require 2.1.15+ */
37288 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37289 char *__sasl_compat = "2.2+ or better okay (we guess)";
37290 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37291 && SASL_VERSION_STEP >=15
37292 char *__sasl_compat = "2.1.15+ or better okay";
37296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37297 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37298 ol_cv_sasl_compat=yes
37300 ol_cv_sasl_compat=no
37305 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37306 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37308 if test $ol_cv_sasl_compat = no ; then
37310 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37311 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37312 { (exit 1); exit 1; }; }
37316 cat >>confdefs.h <<\_ACEOF
37317 #define HAVE_CYRUS_SASL 1
37320 SASL_LIBS="$ol_link_sasl"
37321 if test $ol_enable_spasswd != no ; then
37322 ol_link_spasswd=yes
37325 ac_save_LIBS="$LIBS"
37326 LIBS="$LIBS $ol_link_sasl"
37327 echo "$as_me:$LINENO: checking for sasl_version" >&5
37328 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37329 if test "${ac_cv_func_sasl_version+set}" = set; then
37330 echo $ECHO_N "(cached) $ECHO_C" >&6
37332 cat >conftest.$ac_ext <<_ACEOF
37335 cat confdefs.h >>conftest.$ac_ext
37336 cat >>conftest.$ac_ext <<_ACEOF
37337 /* end confdefs.h. */
37338 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37340 #define sasl_version innocuous_sasl_version
37342 /* System header to define __stub macros and hopefully few prototypes,
37343 which can conflict with char sasl_version (); below.
37344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37345 <limits.h> exists even on freestanding compilers. */
37348 # include <limits.h>
37350 # include <assert.h>
37353 #undef sasl_version
37355 /* Override any gcc2 internal prototype to avoid an error. */
37360 /* We use char because int might match the return type of a gcc2
37361 builtin and then its argument prototype would still apply. */
37362 char sasl_version ();
37363 /* The GNU C library defines this for functions which it implements
37364 to always fail with ENOSYS. Some functions are actually named
37365 something starting with __ and the normal name is an alias. */
37366 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37369 char (*f) () = sasl_version;
37378 return f != sasl_version;
37383 rm -f conftest.$ac_objext conftest$ac_exeext
37384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37385 (eval $ac_link) 2>conftest.er1
37387 grep -v '^ *+' conftest.er1 >conftest.err
37389 cat conftest.err >&5
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); } &&
37392 { ac_try='test -z "$ac_c_werror_flag"
37393 || test ! -s conftest.err'
37394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395 (eval $ac_try) 2>&5
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); }; } &&
37399 { ac_try='test -s conftest$ac_exeext'
37400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401 (eval $ac_try) 2>&5
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); }; }; then
37405 ac_cv_func_sasl_version=yes
37407 echo "$as_me: failed program was:" >&5
37408 sed 's/^/| /' conftest.$ac_ext >&5
37410 ac_cv_func_sasl_version=no
37412 rm -f conftest.err conftest.$ac_objext \
37413 conftest$ac_exeext conftest.$ac_ext
37415 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37416 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37417 if test $ac_cv_func_sasl_version = yes; then
37419 cat >>confdefs.h <<\_ACEOF
37420 #define HAVE_SASL_VERSION 1
37425 LIBS="$ac_save_LIBS"
37431 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37432 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37433 if test $ol_link_tls = no ; then
37434 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37435 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37439 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37441 if test -r /dev/urandom ; then
37442 dev="/dev/urandom";
37443 elif test -r /idev/urandom ; then
37444 dev="/idev/urandom";
37445 elif test -r /dev/srandom ; then
37446 dev="/dev/srandom";
37447 elif test -r /dev/random ; then
37449 elif test -r /idev/random ; then
37450 dev="/idev/random";
37453 if test $dev != no ; then
37455 cat >>confdefs.h <<_ACEOF
37456 #define URANDOM_DEVICE "$dev"
37463 if test $ol_with_fetch != no ; then
37465 LIBS="-lfetch -lcom_err $LIBS"
37466 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37467 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37468 if test "${ol_cv_lib_fetch+set}" = set; then
37469 echo $ECHO_N "(cached) $ECHO_C" >&6
37472 cat >conftest.$ac_ext <<_ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h. */
37479 #include <sys/param.h>
37485 struct url *u = fetchParseURL("file:///");
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492 (eval $ac_link) 2>conftest.er1
37494 grep -v '^ *+' conftest.er1 >conftest.err
37496 cat conftest.err >&5
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); } &&
37499 { ac_try='test -z "$ac_c_werror_flag"
37500 || test ! -s conftest.err'
37501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502 (eval $ac_try) 2>&5
37504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505 (exit $ac_status); }; } &&
37506 { ac_try='test -s conftest$ac_exeext'
37507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508 (eval $ac_try) 2>&5
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); }; }; then
37512 ol_cv_lib_fetch=yes
37514 echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37519 rm -f conftest.err conftest.$ac_objext \
37520 conftest$ac_exeext conftest.$ac_ext
37522 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37523 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37525 if test $ol_cv_lib_fetch != no ; then
37526 ol_link_fetch="-lfetch -lcom_err"
37528 cat >>confdefs.h <<\_ACEOF
37529 #define HAVE_FETCH 1
37535 if test $ol_cv_lib_fetch != no ; then
37536 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37537 ol_link_fetch=freebsd
37539 elif test $ol_with_fetch != auto ; then
37540 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37541 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37542 { (exit 1); exit 1; }; }
37546 if test $ol_enable_crypt != no ; then
37548 LIBS="$TLS_LIBS $LIBS"
37550 echo "$as_me:$LINENO: checking for crypt" >&5
37551 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37552 if test "${ac_cv_func_crypt+set}" = set; then
37553 echo $ECHO_N "(cached) $ECHO_C" >&6
37555 cat >conftest.$ac_ext <<_ACEOF
37558 cat confdefs.h >>conftest.$ac_ext
37559 cat >>conftest.$ac_ext <<_ACEOF
37560 /* end confdefs.h. */
37561 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37563 #define crypt innocuous_crypt
37565 /* System header to define __stub macros and hopefully few prototypes,
37566 which can conflict with char crypt (); below.
37567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37568 <limits.h> exists even on freestanding compilers. */
37571 # include <limits.h>
37573 # include <assert.h>
37578 /* Override any gcc2 internal prototype to avoid an error. */
37583 /* We use char because int might match the return type of a gcc2
37584 builtin and then its argument prototype would still apply. */
37586 /* The GNU C library defines this for functions which it implements
37587 to always fail with ENOSYS. Some functions are actually named
37588 something starting with __ and the normal name is an alias. */
37589 #if defined (__stub_crypt) || defined (__stub___crypt)
37592 char (*f) () = crypt;
37606 rm -f conftest.$ac_objext conftest$ac_exeext
37607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37608 (eval $ac_link) 2>conftest.er1
37610 grep -v '^ *+' conftest.er1 >conftest.err
37612 cat conftest.err >&5
37613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614 (exit $ac_status); } &&
37615 { ac_try='test -z "$ac_c_werror_flag"
37616 || test ! -s conftest.err'
37617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37618 (eval $ac_try) 2>&5
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); }; } &&
37622 { ac_try='test -s conftest$ac_exeext'
37623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37624 (eval $ac_try) 2>&5
37626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); }; }; then
37628 ac_cv_func_crypt=yes
37630 echo "$as_me: failed program was:" >&5
37631 sed 's/^/| /' conftest.$ac_ext >&5
37633 ac_cv_func_crypt=no
37635 rm -f conftest.err conftest.$ac_objext \
37636 conftest$ac_exeext conftest.$ac_ext
37638 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37639 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37640 if test $ac_cv_func_crypt = yes; then
37645 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37646 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37647 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37648 echo $ECHO_N "(cached) $ECHO_C" >&6
37650 ac_check_lib_save_LIBS=$LIBS
37651 LIBS="-lcrypt $LIBS"
37652 cat >conftest.$ac_ext <<_ACEOF
37655 cat confdefs.h >>conftest.$ac_ext
37656 cat >>conftest.$ac_ext <<_ACEOF
37657 /* end confdefs.h. */
37659 /* Override any gcc2 internal prototype to avoid an error. */
37663 /* We use char because int might match the return type of a gcc2
37664 builtin and then its argument prototype would still apply. */
37674 rm -f conftest.$ac_objext conftest$ac_exeext
37675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37676 (eval $ac_link) 2>conftest.er1
37678 grep -v '^ *+' conftest.er1 >conftest.err
37680 cat conftest.err >&5
37681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682 (exit $ac_status); } &&
37683 { ac_try='test -z "$ac_c_werror_flag"
37684 || test ! -s conftest.err'
37685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37686 (eval $ac_try) 2>&5
37688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689 (exit $ac_status); }; } &&
37690 { ac_try='test -s conftest$ac_exeext'
37691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37692 (eval $ac_try) 2>&5
37694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695 (exit $ac_status); }; }; then
37696 ac_cv_lib_crypt_crypt=yes
37698 echo "$as_me: failed program was:" >&5
37699 sed 's/^/| /' conftest.$ac_ext >&5
37701 ac_cv_lib_crypt_crypt=no
37703 rm -f conftest.err conftest.$ac_objext \
37704 conftest$ac_exeext conftest.$ac_ext
37705 LIBS=$ac_check_lib_save_LIBS
37707 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37708 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37709 if test $ac_cv_lib_crypt_crypt = yes; then
37710 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37721 if test $have_crypt = yes ; then
37723 cat >>confdefs.h <<\_ACEOF
37724 #define HAVE_CRYPT 1
37728 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37729 echo "$as_me: WARNING: could not find crypt" >&2;}
37730 if test $ol_enable_crypt = yes ; then
37731 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37732 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37733 { (exit 1); exit 1; }; }
37736 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37737 echo "$as_me: WARNING: disabling crypt support" >&2;}
37742 if test $ol_enable_proctitle != no ; then
37743 echo "$as_me:$LINENO: checking for setproctitle" >&5
37744 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37745 if test "${ac_cv_func_setproctitle+set}" = set; then
37746 echo $ECHO_N "(cached) $ECHO_C" >&6
37748 cat >conftest.$ac_ext <<_ACEOF
37751 cat confdefs.h >>conftest.$ac_ext
37752 cat >>conftest.$ac_ext <<_ACEOF
37753 /* end confdefs.h. */
37754 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37756 #define setproctitle innocuous_setproctitle
37758 /* System header to define __stub macros and hopefully few prototypes,
37759 which can conflict with char setproctitle (); below.
37760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37761 <limits.h> exists even on freestanding compilers. */
37764 # include <limits.h>
37766 # include <assert.h>
37769 #undef setproctitle
37771 /* Override any gcc2 internal prototype to avoid an error. */
37776 /* We use char because int might match the return type of a gcc2
37777 builtin and then its argument prototype would still apply. */
37778 char setproctitle ();
37779 /* The GNU C library defines this for functions which it implements
37780 to always fail with ENOSYS. Some functions are actually named
37781 something starting with __ and the normal name is an alias. */
37782 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37785 char (*f) () = setproctitle;
37794 return f != setproctitle;
37799 rm -f conftest.$ac_objext conftest$ac_exeext
37800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37801 (eval $ac_link) 2>conftest.er1
37803 grep -v '^ *+' conftest.er1 >conftest.err
37805 cat conftest.err >&5
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); } &&
37808 { ac_try='test -z "$ac_c_werror_flag"
37809 || test ! -s conftest.err'
37810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811 (eval $ac_try) 2>&5
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); }; } &&
37815 { ac_try='test -s conftest$ac_exeext'
37816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817 (eval $ac_try) 2>&5
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); }; }; then
37821 ac_cv_func_setproctitle=yes
37823 echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.$ac_ext >&5
37826 ac_cv_func_setproctitle=no
37828 rm -f conftest.err conftest.$ac_objext \
37829 conftest$ac_exeext conftest.$ac_ext
37831 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37832 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37833 if test $ac_cv_func_setproctitle = yes; then
37834 have_setproctitle=yes
37837 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37838 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37839 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37840 echo $ECHO_N "(cached) $ECHO_C" >&6
37842 ac_check_lib_save_LIBS=$LIBS
37843 LIBS="-lutil $LIBS"
37844 cat >conftest.$ac_ext <<_ACEOF
37847 cat confdefs.h >>conftest.$ac_ext
37848 cat >>conftest.$ac_ext <<_ACEOF
37849 /* end confdefs.h. */
37851 /* Override any gcc2 internal prototype to avoid an error. */
37855 /* We use char because int might match the return type of a gcc2
37856 builtin and then its argument prototype would still apply. */
37857 char setproctitle ();
37866 rm -f conftest.$ac_objext conftest$ac_exeext
37867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37868 (eval $ac_link) 2>conftest.er1
37870 grep -v '^ *+' conftest.er1 >conftest.err
37872 cat conftest.err >&5
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); } &&
37875 { ac_try='test -z "$ac_c_werror_flag"
37876 || test ! -s conftest.err'
37877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37878 (eval $ac_try) 2>&5
37880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881 (exit $ac_status); }; } &&
37882 { ac_try='test -s conftest$ac_exeext'
37883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37884 (eval $ac_try) 2>&5
37886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887 (exit $ac_status); }; }; then
37888 ac_cv_lib_util_setproctitle=yes
37890 echo "$as_me: failed program was:" >&5
37891 sed 's/^/| /' conftest.$ac_ext >&5
37893 ac_cv_lib_util_setproctitle=no
37895 rm -f conftest.err conftest.$ac_objext \
37896 conftest$ac_exeext conftest.$ac_ext
37897 LIBS=$ac_check_lib_save_LIBS
37899 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37900 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37901 if test $ac_cv_lib_util_setproctitle = yes; then
37902 have_setproctitle=yes
37903 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37905 have_setproctitle=no
37907 "setproctitle.$ac_objext" | \
37908 *" setproctitle.$ac_objext" | \
37909 "setproctitle.$ac_objext "* | \
37910 *" setproctitle.$ac_objext "* ) ;;
37911 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37914 LIBSRCS="$LIBSRCS setproctitle.c"
37920 if test $have_setproctitle = yes ; then
37922 cat >>confdefs.h <<\_ACEOF
37923 #define HAVE_SETPROCTITLE 1
37929 if test $ol_enable_slp != no ; then
37931 for ac_header in slp.h
37933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37935 echo "$as_me:$LINENO: checking for $ac_header" >&5
37936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37938 echo $ECHO_N "(cached) $ECHO_C" >&6
37940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37943 # Is the header compilable?
37944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37946 cat >conftest.$ac_ext <<_ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h. */
37952 $ac_includes_default
37953 #include <$ac_header>
37955 rm -f conftest.$ac_objext
37956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37957 (eval $ac_compile) 2>conftest.er1
37959 grep -v '^ *+' conftest.er1 >conftest.err
37961 cat conftest.err >&5
37962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37963 (exit $ac_status); } &&
37964 { ac_try='test -z "$ac_c_werror_flag"
37965 || test ! -s conftest.err'
37966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967 (eval $ac_try) 2>&5
37969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); }; } &&
37971 { ac_try='test -s conftest.$ac_objext'
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; }; then
37977 ac_header_compiler=yes
37979 echo "$as_me: failed program was:" >&5
37980 sed 's/^/| /' conftest.$ac_ext >&5
37982 ac_header_compiler=no
37984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37986 echo "${ECHO_T}$ac_header_compiler" >&6
37988 # Is the header present?
37989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37991 cat >conftest.$ac_ext <<_ACEOF
37994 cat confdefs.h >>conftest.$ac_ext
37995 cat >>conftest.$ac_ext <<_ACEOF
37996 /* end confdefs.h. */
37997 #include <$ac_header>
37999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38002 grep -v '^ *+' conftest.er1 >conftest.err
38004 cat conftest.err >&5
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); } >/dev/null; then
38007 if test -s conftest.err; then
38008 ac_cpp_err=$ac_c_preproc_warn_flag
38009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38016 if test -z "$ac_cpp_err"; then
38017 ac_header_preproc=yes
38019 echo "$as_me: failed program was:" >&5
38020 sed 's/^/| /' conftest.$ac_ext >&5
38022 ac_header_preproc=no
38024 rm -f conftest.err conftest.$ac_ext
38025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38026 echo "${ECHO_T}$ac_header_preproc" >&6
38028 # So? What about this header?
38029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38035 ac_header_preproc=yes
38038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38052 ## ------------------------------------------ ##
38053 ## Report this to the AC_PACKAGE_NAME lists. ##
38054 ## ------------------------------------------ ##
38057 sed "s/^/$as_me: WARNING: /" >&2
38060 echo "$as_me:$LINENO: checking for $ac_header" >&5
38061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38063 echo $ECHO_N "(cached) $ECHO_C" >&6
38065 eval "$as_ac_Header=\$ac_header_preproc"
38067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38072 cat >>confdefs.h <<_ACEOF
38073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38081 if test $ac_cv_header_slp_h = yes ; then
38082 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38083 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38084 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38085 echo $ECHO_N "(cached) $ECHO_C" >&6
38087 ac_check_lib_save_LIBS=$LIBS
38089 cat >conftest.$ac_ext <<_ACEOF
38092 cat confdefs.h >>conftest.$ac_ext
38093 cat >>conftest.$ac_ext <<_ACEOF
38094 /* end confdefs.h. */
38096 /* Override any gcc2 internal prototype to avoid an error. */
38100 /* We use char because int might match the return type of a gcc2
38101 builtin and then its argument prototype would still apply. */
38111 rm -f conftest.$ac_objext conftest$ac_exeext
38112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38113 (eval $ac_link) 2>conftest.er1
38115 grep -v '^ *+' conftest.er1 >conftest.err
38117 cat conftest.err >&5
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); } &&
38120 { ac_try='test -z "$ac_c_werror_flag"
38121 || test ! -s conftest.err'
38122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38123 (eval $ac_try) 2>&5
38125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38126 (exit $ac_status); }; } &&
38127 { ac_try='test -s conftest$ac_exeext'
38128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38129 (eval $ac_try) 2>&5
38131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132 (exit $ac_status); }; }; then
38133 ac_cv_lib_slp_SLPOpen=yes
38135 echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38138 ac_cv_lib_slp_SLPOpen=no
38140 rm -f conftest.err conftest.$ac_objext \
38141 conftest$ac_exeext conftest.$ac_ext
38142 LIBS=$ac_check_lib_save_LIBS
38144 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38145 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38146 if test $ac_cv_lib_slp_SLPOpen = yes; then
38152 if test $have_slp = yes ; then
38154 cat >>confdefs.h <<\_ACEOF
38158 SLAPD_SLP_LIBS=-lslp
38161 elif test $ol_enable_slp = yes ; then
38162 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38163 echo "$as_me: error: SLP not found" >&2;}
38164 { (exit 1); exit 1; }; }
38168 if test "$ol_with_multiple_precision" != "no" ; then
38174 for ac_header in openssl/bn.h bn.h
38176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38178 echo "$as_me:$LINENO: checking for $ac_header" >&5
38179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38181 echo $ECHO_N "(cached) $ECHO_C" >&6
38183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38186 # Is the header compilable?
38187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38189 cat >conftest.$ac_ext <<_ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h. */
38195 $ac_includes_default
38196 #include <$ac_header>
38198 rm -f conftest.$ac_objext
38199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38200 (eval $ac_compile) 2>conftest.er1
38202 grep -v '^ *+' conftest.er1 >conftest.err
38204 cat conftest.err >&5
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); } &&
38207 { ac_try='test -z "$ac_c_werror_flag"
38208 || test ! -s conftest.err'
38209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210 (eval $ac_try) 2>&5
38212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); }; } &&
38214 { ac_try='test -s conftest.$ac_objext'
38215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38216 (eval $ac_try) 2>&5
38218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38219 (exit $ac_status); }; }; then
38220 ac_header_compiler=yes
38222 echo "$as_me: failed program was:" >&5
38223 sed 's/^/| /' conftest.$ac_ext >&5
38225 ac_header_compiler=no
38227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38229 echo "${ECHO_T}$ac_header_compiler" >&6
38231 # Is the header present?
38232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38234 cat >conftest.$ac_ext <<_ACEOF
38237 cat confdefs.h >>conftest.$ac_ext
38238 cat >>conftest.$ac_ext <<_ACEOF
38239 /* end confdefs.h. */
38240 #include <$ac_header>
38242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38245 grep -v '^ *+' conftest.er1 >conftest.err
38247 cat conftest.err >&5
38248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38249 (exit $ac_status); } >/dev/null; then
38250 if test -s conftest.err; then
38251 ac_cpp_err=$ac_c_preproc_warn_flag
38252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38259 if test -z "$ac_cpp_err"; then
38260 ac_header_preproc=yes
38262 echo "$as_me: failed program was:" >&5
38263 sed 's/^/| /' conftest.$ac_ext >&5
38265 ac_header_preproc=no
38267 rm -f conftest.err conftest.$ac_ext
38268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38269 echo "${ECHO_T}$ac_header_preproc" >&6
38271 # So? What about this header?
38272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38278 ac_header_preproc=yes
38281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38295 ## ------------------------------------------ ##
38296 ## Report this to the AC_PACKAGE_NAME lists. ##
38297 ## ------------------------------------------ ##
38300 sed "s/^/$as_me: WARNING: /" >&2
38303 echo "$as_me:$LINENO: checking for $ac_header" >&5
38304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38306 echo $ECHO_N "(cached) $ECHO_C" >&6
38308 eval "$as_ac_Header=\$ac_header_preproc"
38310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38315 cat >>confdefs.h <<_ACEOF
38316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38325 for ac_header in openssl/crypto.h crypto.h
38327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38329 echo "$as_me:$LINENO: checking for $ac_header" >&5
38330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38332 echo $ECHO_N "(cached) $ECHO_C" >&6
38334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38337 # Is the header compilable?
38338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38340 cat >conftest.$ac_ext <<_ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h. */
38346 $ac_includes_default
38347 #include <$ac_header>
38349 rm -f conftest.$ac_objext
38350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38351 (eval $ac_compile) 2>conftest.er1
38353 grep -v '^ *+' conftest.er1 >conftest.err
38355 cat conftest.err >&5
38356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357 (exit $ac_status); } &&
38358 { ac_try='test -z "$ac_c_werror_flag"
38359 || test ! -s conftest.err'
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361 (eval $ac_try) 2>&5
38363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; } &&
38365 { ac_try='test -s conftest.$ac_objext'
38366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367 (eval $ac_try) 2>&5
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370 (exit $ac_status); }; }; then
38371 ac_header_compiler=yes
38373 echo "$as_me: failed program was:" >&5
38374 sed 's/^/| /' conftest.$ac_ext >&5
38376 ac_header_compiler=no
38378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38380 echo "${ECHO_T}$ac_header_compiler" >&6
38382 # Is the header present?
38383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38385 cat >conftest.$ac_ext <<_ACEOF
38388 cat confdefs.h >>conftest.$ac_ext
38389 cat >>conftest.$ac_ext <<_ACEOF
38390 /* end confdefs.h. */
38391 #include <$ac_header>
38393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38396 grep -v '^ *+' conftest.er1 >conftest.err
38398 cat conftest.err >&5
38399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); } >/dev/null; then
38401 if test -s conftest.err; then
38402 ac_cpp_err=$ac_c_preproc_warn_flag
38403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38410 if test -z "$ac_cpp_err"; then
38411 ac_header_preproc=yes
38413 echo "$as_me: failed program was:" >&5
38414 sed 's/^/| /' conftest.$ac_ext >&5
38416 ac_header_preproc=no
38418 rm -f conftest.err conftest.$ac_ext
38419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38420 echo "${ECHO_T}$ac_header_preproc" >&6
38422 # So? What about this header?
38423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38429 ac_header_preproc=yes
38432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38446 ## ------------------------------------------ ##
38447 ## Report this to the AC_PACKAGE_NAME lists. ##
38448 ## ------------------------------------------ ##
38451 sed "s/^/$as_me: WARNING: /" >&2
38454 echo "$as_me:$LINENO: checking for $ac_header" >&5
38455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38457 echo $ECHO_N "(cached) $ECHO_C" >&6
38459 eval "$as_ac_Header=\$ac_header_preproc"
38461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38466 cat >>confdefs.h <<_ACEOF
38467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38475 for ac_header in gmp.h
38477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38479 echo "$as_me:$LINENO: checking for $ac_header" >&5
38480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38482 echo $ECHO_N "(cached) $ECHO_C" >&6
38484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38487 # Is the header compilable?
38488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38490 cat >conftest.$ac_ext <<_ACEOF
38493 cat confdefs.h >>conftest.$ac_ext
38494 cat >>conftest.$ac_ext <<_ACEOF
38495 /* end confdefs.h. */
38496 $ac_includes_default
38497 #include <$ac_header>
38499 rm -f conftest.$ac_objext
38500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38501 (eval $ac_compile) 2>conftest.er1
38503 grep -v '^ *+' conftest.er1 >conftest.err
38505 cat conftest.err >&5
38506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507 (exit $ac_status); } &&
38508 { ac_try='test -z "$ac_c_werror_flag"
38509 || test ! -s conftest.err'
38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511 (eval $ac_try) 2>&5
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); }; } &&
38515 { ac_try='test -s conftest.$ac_objext'
38516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38517 (eval $ac_try) 2>&5
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); }; }; then
38521 ac_header_compiler=yes
38523 echo "$as_me: failed program was:" >&5
38524 sed 's/^/| /' conftest.$ac_ext >&5
38526 ac_header_compiler=no
38528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38530 echo "${ECHO_T}$ac_header_compiler" >&6
38532 # Is the header present?
38533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38535 cat >conftest.$ac_ext <<_ACEOF
38538 cat confdefs.h >>conftest.$ac_ext
38539 cat >>conftest.$ac_ext <<_ACEOF
38540 /* end confdefs.h. */
38541 #include <$ac_header>
38543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38546 grep -v '^ *+' conftest.er1 >conftest.err
38548 cat conftest.err >&5
38549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550 (exit $ac_status); } >/dev/null; then
38551 if test -s conftest.err; then
38552 ac_cpp_err=$ac_c_preproc_warn_flag
38553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38560 if test -z "$ac_cpp_err"; then
38561 ac_header_preproc=yes
38563 echo "$as_me: failed program was:" >&5
38564 sed 's/^/| /' conftest.$ac_ext >&5
38566 ac_header_preproc=no
38568 rm -f conftest.err conftest.$ac_ext
38569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38570 echo "${ECHO_T}$ac_header_preproc" >&6
38572 # So? What about this header?
38573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38579 ac_header_preproc=yes
38582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38596 ## ------------------------------------------ ##
38597 ## Report this to the AC_PACKAGE_NAME lists. ##
38598 ## ------------------------------------------ ##
38601 sed "s/^/$as_me: WARNING: /" >&2
38604 echo "$as_me:$LINENO: checking for $ac_header" >&5
38605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38607 echo $ECHO_N "(cached) $ECHO_C" >&6
38609 eval "$as_ac_Header=\$ac_header_preproc"
38611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38616 cat >>confdefs.h <<_ACEOF
38617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38625 if test "$ol_with_tls" = "found" ; then
38627 ol_have_crypto_h=no
38629 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38630 test "$ac_cv_header_bn_h" = "yes" ; then
38634 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38635 test "$ac_cv_header_crypto_h" = "yes" ; then
38636 ol_have_crypto_h=yes
38639 if test "$ol_have_bn_h" = "yes" &&
38640 test "$ol_have_crypto_h" = "yes" ; then
38645 if test $ac_cv_header_gmp_h = yes ; then
38646 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38647 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38648 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38649 echo $ECHO_N "(cached) $ECHO_C" >&6
38651 ac_check_lib_save_LIBS=$LIBS
38653 cat >conftest.$ac_ext <<_ACEOF
38656 cat confdefs.h >>conftest.$ac_ext
38657 cat >>conftest.$ac_ext <<_ACEOF
38658 /* end confdefs.h. */
38660 /* Override any gcc2 internal prototype to avoid an error. */
38664 /* We use char because int might match the return type of a gcc2
38665 builtin and then its argument prototype would still apply. */
38666 char __gmpz_add_ui ();
38675 rm -f conftest.$ac_objext conftest$ac_exeext
38676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38677 (eval $ac_link) 2>conftest.er1
38679 grep -v '^ *+' conftest.er1 >conftest.err
38681 cat conftest.err >&5
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); } &&
38684 { ac_try='test -z "$ac_c_werror_flag"
38685 || test ! -s conftest.err'
38686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687 (eval $ac_try) 2>&5
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); }; } &&
38691 { ac_try='test -s conftest$ac_exeext'
38692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38693 (eval $ac_try) 2>&5
38695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696 (exit $ac_status); }; }; then
38697 ac_cv_lib_gmp___gmpz_add_ui=yes
38699 echo "$as_me: failed program was:" >&5
38700 sed 's/^/| /' conftest.$ac_ext >&5
38702 ac_cv_lib_gmp___gmpz_add_ui=no
38704 rm -f conftest.err conftest.$ac_objext \
38705 conftest$ac_exeext conftest.$ac_ext
38706 LIBS=$ac_check_lib_save_LIBS
38708 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38709 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38710 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38716 if test $have_gmp = yes ; then
38721 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38722 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38724 ol_mp_support="none"
38725 case "$ol_with_multiple_precision" in
38727 if test "$ol_have_bignum" = "yes" ; then
38728 ol_mp_support="bignum"
38730 if test "$ol_have_gmp" = "yes" ; then
38731 ol_mp_support="gmp"
38736 if test "$ol_have_bignum" != "yes" ; then
38737 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38738 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38739 { (exit 1); exit 1; }; }
38741 ol_mp_support="bignum"
38744 if test "$ol_have_gmp" != "yes" ; then
38745 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38746 echo "$as_me: error: GMP not available" >&2;}
38747 { (exit 1); exit 1; }; }
38749 ol_mp_support="gmp"
38752 if test "$ol_have_bignum" = "yes" ; then
38753 ol_mp_support="bignum"
38754 elif test "$ol_have_gmp" = "yes" ; then
38755 ol_mp_support="gmp"
38757 { { echo "$as_me:$LINENO: error: not available" >&5
38758 echo "$as_me: error: not available" >&2;}
38759 { (exit 1); exit 1; }; }
38764 case "$ol_mp_support" in
38767 cat >>confdefs.h <<\_ACEOF
38768 #define HAVE_BIGNUM 1
38774 cat >>confdefs.h <<\_ACEOF
38778 SLAPD_GMP_LIBS=-lgmp
38784 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38785 echo "${ECHO_T}$ol_mp_support" >&6
38789 echo "$as_me:$LINENO: checking for mode_t" >&5
38790 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38791 if test "${ac_cv_type_mode_t+set}" = set; then
38792 echo $ECHO_N "(cached) $ECHO_C" >&6
38794 cat >conftest.$ac_ext <<_ACEOF
38797 cat confdefs.h >>conftest.$ac_ext
38798 cat >>conftest.$ac_ext <<_ACEOF
38799 /* end confdefs.h. */
38800 $ac_includes_default
38806 if (sizeof (mode_t))
38812 rm -f conftest.$ac_objext
38813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38814 (eval $ac_compile) 2>conftest.er1
38816 grep -v '^ *+' conftest.er1 >conftest.err
38818 cat conftest.err >&5
38819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820 (exit $ac_status); } &&
38821 { ac_try='test -z "$ac_c_werror_flag"
38822 || test ! -s conftest.err'
38823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824 (eval $ac_try) 2>&5
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); }; } &&
38828 { ac_try='test -s conftest.$ac_objext'
38829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38830 (eval $ac_try) 2>&5
38832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833 (exit $ac_status); }; }; then
38834 ac_cv_type_mode_t=yes
38836 echo "$as_me: failed program was:" >&5
38837 sed 's/^/| /' conftest.$ac_ext >&5
38839 ac_cv_type_mode_t=no
38841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38843 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38844 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38845 if test $ac_cv_type_mode_t = yes; then
38849 cat >>confdefs.h <<_ACEOF
38855 echo "$as_me:$LINENO: checking for off_t" >&5
38856 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38857 if test "${ac_cv_type_off_t+set}" = set; then
38858 echo $ECHO_N "(cached) $ECHO_C" >&6
38860 cat >conftest.$ac_ext <<_ACEOF
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h. */
38866 $ac_includes_default
38872 if (sizeof (off_t))
38878 rm -f conftest.$ac_objext
38879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38880 (eval $ac_compile) 2>conftest.er1
38882 grep -v '^ *+' conftest.er1 >conftest.err
38884 cat conftest.err >&5
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); } &&
38887 { ac_try='test -z "$ac_c_werror_flag"
38888 || test ! -s conftest.err'
38889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890 (eval $ac_try) 2>&5
38892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893 (exit $ac_status); }; } &&
38894 { ac_try='test -s conftest.$ac_objext'
38895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896 (eval $ac_try) 2>&5
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); }; }; then
38900 ac_cv_type_off_t=yes
38902 echo "$as_me: failed program was:" >&5
38903 sed 's/^/| /' conftest.$ac_ext >&5
38905 ac_cv_type_off_t=no
38907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38909 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38910 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38911 if test $ac_cv_type_off_t = yes; then
38915 cat >>confdefs.h <<_ACEOF
38921 echo "$as_me:$LINENO: checking for pid_t" >&5
38922 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38923 if test "${ac_cv_type_pid_t+set}" = set; then
38924 echo $ECHO_N "(cached) $ECHO_C" >&6
38926 cat >conftest.$ac_ext <<_ACEOF
38929 cat confdefs.h >>conftest.$ac_ext
38930 cat >>conftest.$ac_ext <<_ACEOF
38931 /* end confdefs.h. */
38932 $ac_includes_default
38938 if (sizeof (pid_t))
38944 rm -f conftest.$ac_objext
38945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38946 (eval $ac_compile) 2>conftest.er1
38948 grep -v '^ *+' conftest.er1 >conftest.err
38950 cat conftest.err >&5
38951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952 (exit $ac_status); } &&
38953 { ac_try='test -z "$ac_c_werror_flag"
38954 || test ! -s conftest.err'
38955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956 (eval $ac_try) 2>&5
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); }; } &&
38960 { ac_try='test -s conftest.$ac_objext'
38961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962 (eval $ac_try) 2>&5
38964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965 (exit $ac_status); }; }; then
38966 ac_cv_type_pid_t=yes
38968 echo "$as_me: failed program was:" >&5
38969 sed 's/^/| /' conftest.$ac_ext >&5
38971 ac_cv_type_pid_t=no
38973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38975 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38976 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38977 if test $ac_cv_type_pid_t = yes; then
38981 cat >>confdefs.h <<_ACEOF
38987 echo "$as_me:$LINENO: checking for ssize_t" >&5
38988 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38989 if test "${ac_cv_type_ssize_t+set}" = set; then
38990 echo $ECHO_N "(cached) $ECHO_C" >&6
38992 cat >conftest.$ac_ext <<_ACEOF
38995 cat confdefs.h >>conftest.$ac_ext
38996 cat >>conftest.$ac_ext <<_ACEOF
38997 /* end confdefs.h. */
38998 $ac_includes_default
39004 if (sizeof (ssize_t))
39010 rm -f conftest.$ac_objext
39011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39012 (eval $ac_compile) 2>conftest.er1
39014 grep -v '^ *+' conftest.er1 >conftest.err
39016 cat conftest.err >&5
39017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018 (exit $ac_status); } &&
39019 { ac_try='test -z "$ac_c_werror_flag"
39020 || test ! -s conftest.err'
39021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022 (eval $ac_try) 2>&5
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); }; } &&
39026 { ac_try='test -s conftest.$ac_objext'
39027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39028 (eval $ac_try) 2>&5
39030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031 (exit $ac_status); }; }; then
39032 ac_cv_type_ssize_t=yes
39034 echo "$as_me: failed program was:" >&5
39035 sed 's/^/| /' conftest.$ac_ext >&5
39037 ac_cv_type_ssize_t=no
39039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39041 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39042 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39043 if test $ac_cv_type_ssize_t = yes; then
39047 cat >>confdefs.h <<_ACEOF
39048 #define ssize_t signed int
39053 echo "$as_me:$LINENO: checking for caddr_t" >&5
39054 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39055 if test "${ac_cv_type_caddr_t+set}" = set; then
39056 echo $ECHO_N "(cached) $ECHO_C" >&6
39058 cat >conftest.$ac_ext <<_ACEOF
39061 cat confdefs.h >>conftest.$ac_ext
39062 cat >>conftest.$ac_ext <<_ACEOF
39063 /* end confdefs.h. */
39064 $ac_includes_default
39070 if (sizeof (caddr_t))
39076 rm -f conftest.$ac_objext
39077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39078 (eval $ac_compile) 2>conftest.er1
39080 grep -v '^ *+' conftest.er1 >conftest.err
39082 cat conftest.err >&5
39083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); } &&
39085 { ac_try='test -z "$ac_c_werror_flag"
39086 || test ! -s conftest.err'
39087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39088 (eval $ac_try) 2>&5
39090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091 (exit $ac_status); }; } &&
39092 { ac_try='test -s conftest.$ac_objext'
39093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39094 (eval $ac_try) 2>&5
39096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097 (exit $ac_status); }; }; then
39098 ac_cv_type_caddr_t=yes
39100 echo "$as_me: failed program was:" >&5
39101 sed 's/^/| /' conftest.$ac_ext >&5
39103 ac_cv_type_caddr_t=no
39105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39107 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39108 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39109 if test $ac_cv_type_caddr_t = yes; then
39113 cat >>confdefs.h <<_ACEOF
39114 #define caddr_t char *
39119 echo "$as_me:$LINENO: checking for size_t" >&5
39120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39121 if test "${ac_cv_type_size_t+set}" = set; then
39122 echo $ECHO_N "(cached) $ECHO_C" >&6
39124 cat >conftest.$ac_ext <<_ACEOF
39127 cat confdefs.h >>conftest.$ac_ext
39128 cat >>conftest.$ac_ext <<_ACEOF
39129 /* end confdefs.h. */
39130 $ac_includes_default
39136 if (sizeof (size_t))
39142 rm -f conftest.$ac_objext
39143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39144 (eval $ac_compile) 2>conftest.er1
39146 grep -v '^ *+' conftest.er1 >conftest.err
39148 cat conftest.err >&5
39149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); } &&
39151 { ac_try='test -z "$ac_c_werror_flag"
39152 || test ! -s conftest.err'
39153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39154 (eval $ac_try) 2>&5
39156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39157 (exit $ac_status); }; } &&
39158 { ac_try='test -s conftest.$ac_objext'
39159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39160 (eval $ac_try) 2>&5
39162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163 (exit $ac_status); }; }; then
39164 ac_cv_type_size_t=yes
39166 echo "$as_me: failed program was:" >&5
39167 sed 's/^/| /' conftest.$ac_ext >&5
39169 ac_cv_type_size_t=no
39171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39173 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39174 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39175 if test $ac_cv_type_size_t = yes; then
39179 cat >>confdefs.h <<_ACEOF
39180 #define size_t unsigned
39186 echo "$as_me:$LINENO: checking for long long" >&5
39187 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39188 if test "${ac_cv_type_long_long+set}" = set; then
39189 echo $ECHO_N "(cached) $ECHO_C" >&6
39191 cat >conftest.$ac_ext <<_ACEOF
39194 cat confdefs.h >>conftest.$ac_ext
39195 cat >>conftest.$ac_ext <<_ACEOF
39196 /* end confdefs.h. */
39197 $ac_includes_default
39201 if ((long long *) 0)
39203 if (sizeof (long long))
39209 rm -f conftest.$ac_objext
39210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39211 (eval $ac_compile) 2>conftest.er1
39213 grep -v '^ *+' conftest.er1 >conftest.err
39215 cat conftest.err >&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); } &&
39218 { ac_try='test -z "$ac_c_werror_flag"
39219 || test ! -s conftest.err'
39220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39221 (eval $ac_try) 2>&5
39223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224 (exit $ac_status); }; } &&
39225 { ac_try='test -s conftest.$ac_objext'
39226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39227 (eval $ac_try) 2>&5
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); }; }; then
39231 ac_cv_type_long_long=yes
39233 echo "$as_me: failed program was:" >&5
39234 sed 's/^/| /' conftest.$ac_ext >&5
39236 ac_cv_type_long_long=no
39238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39240 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39241 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39242 if test $ac_cv_type_long_long = yes; then
39244 cat >>confdefs.h <<_ACEOF
39245 #define HAVE_LONG_LONG 1
39251 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39252 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39253 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39254 echo $ECHO_N "(cached) $ECHO_C" >&6
39256 cat >conftest.$ac_ext <<_ACEOF
39259 cat confdefs.h >>conftest.$ac_ext
39260 cat >>conftest.$ac_ext <<_ACEOF
39261 /* end confdefs.h. */
39262 $ac_includes_default
39266 if ((ptrdiff_t *) 0)
39268 if (sizeof (ptrdiff_t))
39274 rm -f conftest.$ac_objext
39275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39276 (eval $ac_compile) 2>conftest.er1
39278 grep -v '^ *+' conftest.er1 >conftest.err
39280 cat conftest.err >&5
39281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282 (exit $ac_status); } &&
39283 { ac_try='test -z "$ac_c_werror_flag"
39284 || test ! -s conftest.err'
39285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39286 (eval $ac_try) 2>&5
39288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289 (exit $ac_status); }; } &&
39290 { ac_try='test -s conftest.$ac_objext'
39291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39292 (eval $ac_try) 2>&5
39294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39295 (exit $ac_status); }; }; then
39296 ac_cv_type_ptrdiff_t=yes
39298 echo "$as_me: failed program was:" >&5
39299 sed 's/^/| /' conftest.$ac_ext >&5
39301 ac_cv_type_ptrdiff_t=no
39303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39305 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39306 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39307 if test $ac_cv_type_ptrdiff_t = yes; then
39309 cat >>confdefs.h <<_ACEOF
39310 #define HAVE_PTRDIFF_T 1
39317 echo "$as_me:$LINENO: checking for socklen_t" >&5
39318 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39319 if test "${ac_cv_type_socklen_t+set}" = set; then
39320 echo $ECHO_N "(cached) $ECHO_C" >&6
39322 cat >conftest.$ac_ext <<_ACEOF
39325 cat confdefs.h >>conftest.$ac_ext
39326 cat >>conftest.$ac_ext <<_ACEOF
39327 /* end confdefs.h. */
39328 $ac_includes_default
39329 #ifdef HAVE_SYS_SOCKET_H
39330 #include <sys/socket.h>
39337 if ((socklen_t *) 0)
39339 if (sizeof (socklen_t))
39345 rm -f conftest.$ac_objext
39346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39347 (eval $ac_compile) 2>conftest.er1
39349 grep -v '^ *+' conftest.er1 >conftest.err
39351 cat conftest.err >&5
39352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39353 (exit $ac_status); } &&
39354 { ac_try='test -z "$ac_c_werror_flag"
39355 || test ! -s conftest.err'
39356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39357 (eval $ac_try) 2>&5
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); }; } &&
39361 { ac_try='test -s conftest.$ac_objext'
39362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363 (eval $ac_try) 2>&5
39365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); }; }; then
39367 ac_cv_type_socklen_t=yes
39369 echo "$as_me: failed program was:" >&5
39370 sed 's/^/| /' conftest.$ac_ext >&5
39372 ac_cv_type_socklen_t=no
39374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39376 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39377 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39378 if test $ac_cv_type_socklen_t = yes; then
39382 cat >>confdefs.h <<_ACEOF
39383 #define socklen_t int
39389 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39390 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39391 if test "${ac_cv_type_signal+set}" = set; then
39392 echo $ECHO_N "(cached) $ECHO_C" >&6
39394 cat >conftest.$ac_ext <<_ACEOF
39397 cat confdefs.h >>conftest.$ac_ext
39398 cat >>conftest.$ac_ext <<_ACEOF
39399 /* end confdefs.h. */
39400 #include <sys/types.h>
39401 #include <signal.h>
39406 extern "C" void (*signal (int, void (*)(int)))(int);
39408 void (*signal ()) ();
39419 rm -f conftest.$ac_objext
39420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39421 (eval $ac_compile) 2>conftest.er1
39423 grep -v '^ *+' conftest.er1 >conftest.err
39425 cat conftest.err >&5
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); } &&
39428 { ac_try='test -z "$ac_c_werror_flag"
39429 || test ! -s conftest.err'
39430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39431 (eval $ac_try) 2>&5
39433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434 (exit $ac_status); }; } &&
39435 { ac_try='test -s conftest.$ac_objext'
39436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39437 (eval $ac_try) 2>&5
39439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); }; }; then
39441 ac_cv_type_signal=void
39443 echo "$as_me: failed program was:" >&5
39444 sed 's/^/| /' conftest.$ac_ext >&5
39446 ac_cv_type_signal=int
39448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39450 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39451 echo "${ECHO_T}$ac_cv_type_signal" >&6
39453 cat >>confdefs.h <<_ACEOF
39454 #define RETSIGTYPE $ac_cv_type_signal
39459 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39460 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39461 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39462 echo $ECHO_N "(cached) $ECHO_C" >&6
39464 cat >conftest.$ac_ext <<_ACEOF
39467 cat confdefs.h >>conftest.$ac_ext
39468 cat >>conftest.$ac_ext <<_ACEOF
39469 /* end confdefs.h. */
39470 $ac_includes_default
39471 #include <signal.h>
39477 if ((sig_atomic_t *) 0)
39479 if (sizeof (sig_atomic_t))
39485 rm -f conftest.$ac_objext
39486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39487 (eval $ac_compile) 2>conftest.er1
39489 grep -v '^ *+' conftest.er1 >conftest.err
39491 cat conftest.err >&5
39492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493 (exit $ac_status); } &&
39494 { ac_try='test -z "$ac_c_werror_flag"
39495 || test ! -s conftest.err'
39496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39497 (eval $ac_try) 2>&5
39499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500 (exit $ac_status); }; } &&
39501 { ac_try='test -s conftest.$ac_objext'
39502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503 (eval $ac_try) 2>&5
39505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); }; }; then
39507 ac_cv_type_sig_atomic_t=yes
39509 echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39512 ac_cv_type_sig_atomic_t=no
39514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39516 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39517 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39518 if test $ac_cv_type_sig_atomic_t = yes; then
39522 cat >>confdefs.h <<_ACEOF
39523 #define sig_atomic_t int
39529 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39530 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39531 if test "${ac_cv_type_uid_t+set}" = set; then
39532 echo $ECHO_N "(cached) $ECHO_C" >&6
39534 cat >conftest.$ac_ext <<_ACEOF
39537 cat confdefs.h >>conftest.$ac_ext
39538 cat >>conftest.$ac_ext <<_ACEOF
39539 /* end confdefs.h. */
39540 #include <sys/types.h>
39543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39544 $EGREP "uid_t" >/dev/null 2>&1; then
39545 ac_cv_type_uid_t=yes
39547 ac_cv_type_uid_t=no
39552 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39553 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39554 if test $ac_cv_type_uid_t = no; then
39556 cat >>confdefs.h <<\_ACEOF
39561 cat >>confdefs.h <<\_ACEOF
39568 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39569 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39570 if test "${ac_cv_header_time+set}" = set; then
39571 echo $ECHO_N "(cached) $ECHO_C" >&6
39573 cat >conftest.$ac_ext <<_ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h. */
39579 #include <sys/types.h>
39580 #include <sys/time.h>
39586 if ((struct tm *) 0)
39592 rm -f conftest.$ac_objext
39593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39594 (eval $ac_compile) 2>conftest.er1
39596 grep -v '^ *+' conftest.er1 >conftest.err
39598 cat conftest.err >&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); } &&
39601 { ac_try='test -z "$ac_c_werror_flag"
39602 || test ! -s conftest.err'
39603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604 (eval $ac_try) 2>&5
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); }; } &&
39608 { ac_try='test -s conftest.$ac_objext'
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; }; then
39614 ac_cv_header_time=yes
39616 echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39619 ac_cv_header_time=no
39621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39623 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39624 echo "${ECHO_T}$ac_cv_header_time" >&6
39625 if test $ac_cv_header_time = yes; then
39627 cat >>confdefs.h <<\_ACEOF
39628 #define TIME_WITH_SYS_TIME 1
39633 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39634 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39635 if test "${ac_cv_struct_tm+set}" = set; then
39636 echo $ECHO_N "(cached) $ECHO_C" >&6
39638 cat >conftest.$ac_ext <<_ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h. */
39644 #include <sys/types.h>
39650 struct tm *tp; tp->tm_sec;
39655 rm -f conftest.$ac_objext
39656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39657 (eval $ac_compile) 2>conftest.er1
39659 grep -v '^ *+' conftest.er1 >conftest.err
39661 cat conftest.err >&5
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); } &&
39664 { ac_try='test -z "$ac_c_werror_flag"
39665 || test ! -s conftest.err'
39666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667 (eval $ac_try) 2>&5
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); }; } &&
39671 { ac_try='test -s conftest.$ac_objext'
39672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39673 (eval $ac_try) 2>&5
39675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676 (exit $ac_status); }; }; then
39677 ac_cv_struct_tm=time.h
39679 echo "$as_me: failed program was:" >&5
39680 sed 's/^/| /' conftest.$ac_ext >&5
39682 ac_cv_struct_tm=sys/time.h
39684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39686 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39687 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39688 if test $ac_cv_struct_tm = sys/time.h; then
39690 cat >>confdefs.h <<\_ACEOF
39691 #define TM_IN_SYS_TIME 1
39696 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39697 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39698 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39699 echo $ECHO_N "(cached) $ECHO_C" >&6
39701 cat >conftest.$ac_ext <<_ACEOF
39704 cat confdefs.h >>conftest.$ac_ext
39705 cat >>conftest.$ac_ext <<_ACEOF
39706 /* end confdefs.h. */
39707 $ac_includes_default
39711 static struct stat ac_aggr;
39712 if (ac_aggr.st_blksize)
39718 rm -f conftest.$ac_objext
39719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39720 (eval $ac_compile) 2>conftest.er1
39722 grep -v '^ *+' conftest.er1 >conftest.err
39724 cat conftest.err >&5
39725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726 (exit $ac_status); } &&
39727 { ac_try='test -z "$ac_c_werror_flag"
39728 || test ! -s conftest.err'
39729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730 (eval $ac_try) 2>&5
39732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733 (exit $ac_status); }; } &&
39734 { ac_try='test -s conftest.$ac_objext'
39735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39736 (eval $ac_try) 2>&5
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); }; }; then
39740 ac_cv_member_struct_stat_st_blksize=yes
39742 echo "$as_me: failed program was:" >&5
39743 sed 's/^/| /' conftest.$ac_ext >&5
39745 cat >conftest.$ac_ext <<_ACEOF
39748 cat confdefs.h >>conftest.$ac_ext
39749 cat >>conftest.$ac_ext <<_ACEOF
39750 /* end confdefs.h. */
39751 $ac_includes_default
39755 static struct stat ac_aggr;
39756 if (sizeof ac_aggr.st_blksize)
39762 rm -f conftest.$ac_objext
39763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39764 (eval $ac_compile) 2>conftest.er1
39766 grep -v '^ *+' conftest.er1 >conftest.err
39768 cat conftest.err >&5
39769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770 (exit $ac_status); } &&
39771 { ac_try='test -z "$ac_c_werror_flag"
39772 || test ! -s conftest.err'
39773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774 (eval $ac_try) 2>&5
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); }; } &&
39778 { ac_try='test -s conftest.$ac_objext'
39779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780 (eval $ac_try) 2>&5
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); }; }; then
39784 ac_cv_member_struct_stat_st_blksize=yes
39786 echo "$as_me: failed program was:" >&5
39787 sed 's/^/| /' conftest.$ac_ext >&5
39789 ac_cv_member_struct_stat_st_blksize=no
39791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39795 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39796 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39797 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39799 cat >>confdefs.h <<_ACEOF
39800 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39806 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39807 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39808 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39809 echo $ECHO_N "(cached) $ECHO_C" >&6
39811 cat >conftest.$ac_ext <<_ACEOF
39814 cat confdefs.h >>conftest.$ac_ext
39815 cat >>conftest.$ac_ext <<_ACEOF
39816 /* end confdefs.h. */
39817 $ac_includes_default
39823 static struct passwd ac_aggr;
39824 if (ac_aggr.pw_gecos)
39830 rm -f conftest.$ac_objext
39831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39832 (eval $ac_compile) 2>conftest.er1
39834 grep -v '^ *+' conftest.er1 >conftest.err
39836 cat conftest.err >&5
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); } &&
39839 { ac_try='test -z "$ac_c_werror_flag"
39840 || test ! -s conftest.err'
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; } &&
39846 { ac_try='test -s conftest.$ac_objext'
39847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848 (eval $ac_try) 2>&5
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; }; then
39852 ac_cv_member_struct_passwd_pw_gecos=yes
39854 echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.$ac_ext >&5
39857 cat >conftest.$ac_ext <<_ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h. */
39863 $ac_includes_default
39869 static struct passwd ac_aggr;
39870 if (sizeof ac_aggr.pw_gecos)
39876 rm -f conftest.$ac_objext
39877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39878 (eval $ac_compile) 2>conftest.er1
39880 grep -v '^ *+' conftest.er1 >conftest.err
39882 cat conftest.err >&5
39883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884 (exit $ac_status); } &&
39885 { ac_try='test -z "$ac_c_werror_flag"
39886 || test ! -s conftest.err'
39887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888 (eval $ac_try) 2>&5
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); }; } &&
39892 { ac_try='test -s conftest.$ac_objext'
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; }; then
39898 ac_cv_member_struct_passwd_pw_gecos=yes
39900 echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39903 ac_cv_member_struct_passwd_pw_gecos=no
39905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39910 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39911 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39913 cat >>confdefs.h <<_ACEOF
39914 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39920 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39921 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39922 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39923 echo $ECHO_N "(cached) $ECHO_C" >&6
39925 cat >conftest.$ac_ext <<_ACEOF
39928 cat confdefs.h >>conftest.$ac_ext
39929 cat >>conftest.$ac_ext <<_ACEOF
39930 /* end confdefs.h. */
39931 $ac_includes_default
39937 static struct passwd ac_aggr;
39938 if (ac_aggr.pw_passwd)
39944 rm -f conftest.$ac_objext
39945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39946 (eval $ac_compile) 2>conftest.er1
39948 grep -v '^ *+' conftest.er1 >conftest.err
39950 cat conftest.err >&5
39951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952 (exit $ac_status); } &&
39953 { ac_try='test -z "$ac_c_werror_flag"
39954 || test ! -s conftest.err'
39955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956 (eval $ac_try) 2>&5
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); }; } &&
39960 { ac_try='test -s conftest.$ac_objext'
39961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962 (eval $ac_try) 2>&5
39964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965 (exit $ac_status); }; }; then
39966 ac_cv_member_struct_passwd_pw_passwd=yes
39968 echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39971 cat >conftest.$ac_ext <<_ACEOF
39974 cat confdefs.h >>conftest.$ac_ext
39975 cat >>conftest.$ac_ext <<_ACEOF
39976 /* end confdefs.h. */
39977 $ac_includes_default
39983 static struct passwd ac_aggr;
39984 if (sizeof ac_aggr.pw_passwd)
39990 rm -f conftest.$ac_objext
39991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39992 (eval $ac_compile) 2>conftest.er1
39994 grep -v '^ *+' conftest.er1 >conftest.err
39996 cat conftest.err >&5
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); } &&
39999 { ac_try='test -z "$ac_c_werror_flag"
40000 || test ! -s conftest.err'
40001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40002 (eval $ac_try) 2>&5
40004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40005 (exit $ac_status); }; } &&
40006 { ac_try='test -s conftest.$ac_objext'
40007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40008 (eval $ac_try) 2>&5
40010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011 (exit $ac_status); }; }; then
40012 ac_cv_member_struct_passwd_pw_passwd=yes
40014 echo "$as_me: failed program was:" >&5
40015 sed 's/^/| /' conftest.$ac_ext >&5
40017 ac_cv_member_struct_passwd_pw_passwd=no
40019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40024 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40025 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40027 cat >>confdefs.h <<_ACEOF
40028 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40035 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40036 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40037 if test "${ol_cv_c_upper_lower+set}" = set; then
40038 echo $ECHO_N "(cached) $ECHO_C" >&6
40041 if test "$cross_compiling" = yes; then
40042 ol_cv_c_upper_lower=safe
40044 cat >conftest.$ac_ext <<_ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h. */
40054 if ('C' == toupper('C'))
40060 rm -f conftest$ac_exeext
40061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40062 (eval $ac_link) 2>&5
40064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40067 (eval $ac_try) 2>&5
40069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40070 (exit $ac_status); }; }; then
40071 ol_cv_c_upper_lower=no
40073 echo "$as_me: program exited with status $ac_status" >&5
40074 echo "$as_me: failed program was:" >&5
40075 sed 's/^/| /' conftest.$ac_ext >&5
40077 ( exit $ac_status )
40078 ol_cv_c_upper_lower=yes
40080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40083 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40084 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40085 if test $ol_cv_c_upper_lower != no ; then
40087 cat >>confdefs.h <<\_ACEOF
40088 #define C_UPPER_LOWER 1
40093 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40095 if test "${ac_cv_c_const+set}" = set; then
40096 echo $ECHO_N "(cached) $ECHO_C" >&6
40098 cat >conftest.$ac_ext <<_ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h. */
40108 /* FIXME: Include the comments suggested by Paul. */
40109 #ifndef __cplusplus
40110 /* Ultrix mips cc rejects this. */
40111 typedef int charset[2];
40113 /* SunOS 4.1.1 cc rejects this. */
40114 char const *const *ccp;
40116 /* NEC SVR4.0.2 mips cc rejects this. */
40117 struct point {int x, y;};
40118 static struct point const zero = {0,0};
40119 /* AIX XL C 1.02.0.0 rejects this.
40120 It does not let you subtract one const X* pointer from another in
40121 an arm of an if-expression whose if-part is not a constant
40123 const char *g = "string";
40124 ccp = &g + (g ? g-g : 0);
40125 /* HPUX 7.0 cc rejects these. */
40128 ccp = (char const *const *) p;
40129 { /* SCO 3.2v4 cc rejects this. */
40131 char const *s = 0 ? (char *) 0 : (char const *) 0;
40135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40136 int x[] = {25, 17};
40137 const int *foo = &x[0];
40140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40141 typedef const int *iptr;
40145 { /* AIX XL C 1.02.0.0 rejects this saying
40146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40147 struct s { int j; const int *ap[3]; };
40148 struct s *b; b->j = 5;
40150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40151 const int foo = 10;
40159 rm -f conftest.$ac_objext
40160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40161 (eval $ac_compile) 2>conftest.er1
40163 grep -v '^ *+' conftest.er1 >conftest.err
40165 cat conftest.err >&5
40166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167 (exit $ac_status); } &&
40168 { ac_try='test -z "$ac_c_werror_flag"
40169 || test ! -s conftest.err'
40170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40171 (eval $ac_try) 2>&5
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); }; } &&
40175 { ac_try='test -s conftest.$ac_objext'
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; }; then
40183 echo "$as_me: failed program was:" >&5
40184 sed 's/^/| /' conftest.$ac_ext >&5
40188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40190 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40191 echo "${ECHO_T}$ac_cv_c_const" >&6
40192 if test $ac_cv_c_const = no; then
40194 cat >>confdefs.h <<\_ACEOF
40200 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40201 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40202 if test "${ol_cv_c_volatile+set}" = set; then
40203 echo $ECHO_N "(cached) $ECHO_C" >&6
40205 cat >conftest.$ac_ext <<_ACEOF
40208 cat confdefs.h >>conftest.$ac_ext
40209 cat >>conftest.$ac_ext <<_ACEOF
40210 /* end confdefs.h. */
40215 volatile int a; int * volatile b = x ? &y : &z;
40216 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40222 rm -f conftest.$ac_objext
40223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40224 (eval $ac_compile) 2>conftest.er1
40226 grep -v '^ *+' conftest.er1 >conftest.err
40228 cat conftest.err >&5
40229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230 (exit $ac_status); } &&
40231 { ac_try='test -z "$ac_c_werror_flag"
40232 || test ! -s conftest.err'
40233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40234 (eval $ac_try) 2>&5
40236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237 (exit $ac_status); }; } &&
40238 { ac_try='test -s conftest.$ac_objext'
40239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40240 (eval $ac_try) 2>&5
40242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40243 (exit $ac_status); }; }; then
40244 ol_cv_c_volatile=yes
40246 echo "$as_me: failed program was:" >&5
40247 sed 's/^/| /' conftest.$ac_ext >&5
40249 ol_cv_c_volatile=no
40251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40253 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40254 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40255 if test $ol_cv_c_volatile = yes; then
40259 cat >>confdefs.h <<\_ACEOF
40266 if test $cross_compiling = yes ; then
40267 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40268 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40270 cat >>confdefs.h <<\_ACEOF
40271 #define CROSS_COMPILING 1
40275 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40276 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40277 if test "${ac_cv_c_bigendian+set}" = set; then
40278 echo $ECHO_N "(cached) $ECHO_C" >&6
40280 # See if sys/param.h defines the BYTE_ORDER macro.
40281 cat >conftest.$ac_ext <<_ACEOF
40284 cat confdefs.h >>conftest.$ac_ext
40285 cat >>conftest.$ac_ext <<_ACEOF
40286 /* end confdefs.h. */
40287 #include <sys/types.h>
40288 #include <sys/param.h>
40293 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40294 bogus endian macros
40301 rm -f conftest.$ac_objext
40302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40303 (eval $ac_compile) 2>conftest.er1
40305 grep -v '^ *+' conftest.er1 >conftest.err
40307 cat conftest.err >&5
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); } &&
40310 { ac_try='test -z "$ac_c_werror_flag"
40311 || test ! -s conftest.err'
40312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313 (eval $ac_try) 2>&5
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); }; } &&
40317 { ac_try='test -s conftest.$ac_objext'
40318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40319 (eval $ac_try) 2>&5
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); }; }; then
40323 # It does; now see whether it defined to BIG_ENDIAN or not.
40324 cat >conftest.$ac_ext <<_ACEOF
40327 cat confdefs.h >>conftest.$ac_ext
40328 cat >>conftest.$ac_ext <<_ACEOF
40329 /* end confdefs.h. */
40330 #include <sys/types.h>
40331 #include <sys/param.h>
40336 #if BYTE_ORDER != BIG_ENDIAN
40344 rm -f conftest.$ac_objext
40345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40346 (eval $ac_compile) 2>conftest.er1
40348 grep -v '^ *+' conftest.er1 >conftest.err
40350 cat conftest.err >&5
40351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352 (exit $ac_status); } &&
40353 { ac_try='test -z "$ac_c_werror_flag"
40354 || test ! -s conftest.err'
40355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40356 (eval $ac_try) 2>&5
40358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40359 (exit $ac_status); }; } &&
40360 { ac_try='test -s conftest.$ac_objext'
40361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40362 (eval $ac_try) 2>&5
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); }; }; then
40366 ac_cv_c_bigendian=yes
40368 echo "$as_me: failed program was:" >&5
40369 sed 's/^/| /' conftest.$ac_ext >&5
40371 ac_cv_c_bigendian=no
40373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40375 echo "$as_me: failed program was:" >&5
40376 sed 's/^/| /' conftest.$ac_ext >&5
40378 # It does not; compile a test program.
40379 if test "$cross_compiling" = yes; then
40380 # try to guess the endianness by grepping values into an object file
40381 ac_cv_c_bigendian=unknown
40382 cat >conftest.$ac_ext <<_ACEOF
40385 cat confdefs.h >>conftest.$ac_ext
40386 cat >>conftest.$ac_ext <<_ACEOF
40387 /* end confdefs.h. */
40388 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40389 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40390 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40391 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40392 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40393 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40397 _ascii (); _ebcdic ();
40402 rm -f conftest.$ac_objext
40403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40404 (eval $ac_compile) 2>conftest.er1
40406 grep -v '^ *+' conftest.er1 >conftest.err
40408 cat conftest.err >&5
40409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40410 (exit $ac_status); } &&
40411 { ac_try='test -z "$ac_c_werror_flag"
40412 || test ! -s conftest.err'
40413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40414 (eval $ac_try) 2>&5
40416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417 (exit $ac_status); }; } &&
40418 { ac_try='test -s conftest.$ac_objext'
40419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40420 (eval $ac_try) 2>&5
40422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40423 (exit $ac_status); }; }; then
40424 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40425 ac_cv_c_bigendian=yes
40427 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40428 if test "$ac_cv_c_bigendian" = unknown; then
40429 ac_cv_c_bigendian=no
40431 # finding both strings is unlikely to happen, but who knows?
40432 ac_cv_c_bigendian=unknown
40436 echo "$as_me: failed program was:" >&5
40437 sed 's/^/| /' conftest.$ac_ext >&5
40440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40442 cat >conftest.$ac_ext <<_ACEOF
40445 cat confdefs.h >>conftest.$ac_ext
40446 cat >>conftest.$ac_ext <<_ACEOF
40447 /* end confdefs.h. */
40451 /* Are we little or big endian? From Harbison&Steele. */
40455 char c[sizeof (long)];
40458 exit (u.c[sizeof (long) - 1] == 1);
40461 rm -f conftest$ac_exeext
40462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40463 (eval $ac_link) 2>&5
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40468 (eval $ac_try) 2>&5
40470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471 (exit $ac_status); }; }; then
40472 ac_cv_c_bigendian=no
40474 echo "$as_me: program exited with status $ac_status" >&5
40475 echo "$as_me: failed program was:" >&5
40476 sed 's/^/| /' conftest.$ac_ext >&5
40478 ( exit $ac_status )
40479 ac_cv_c_bigendian=yes
40481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40486 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40487 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40488 case $ac_cv_c_bigendian in
40491 cat >>confdefs.h <<\_ACEOF
40492 #define WORDS_BIGENDIAN 1
40498 { { echo "$as_me:$LINENO: error: unknown endianness
40499 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40500 echo "$as_me: error: unknown endianness
40501 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40502 { (exit 1); exit 1; }; } ;;
40507 echo "$as_me:$LINENO: checking for short" >&5
40508 echo $ECHO_N "checking for short... $ECHO_C" >&6
40509 if test "${ac_cv_type_short+set}" = set; then
40510 echo $ECHO_N "(cached) $ECHO_C" >&6
40512 cat >conftest.$ac_ext <<_ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h. */
40518 $ac_includes_default
40524 if (sizeof (short))
40530 rm -f conftest.$ac_objext
40531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40532 (eval $ac_compile) 2>conftest.er1
40534 grep -v '^ *+' conftest.er1 >conftest.err
40536 cat conftest.err >&5
40537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538 (exit $ac_status); } &&
40539 { ac_try='test -z "$ac_c_werror_flag"
40540 || test ! -s conftest.err'
40541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40542 (eval $ac_try) 2>&5
40544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40545 (exit $ac_status); }; } &&
40546 { ac_try='test -s conftest.$ac_objext'
40547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40548 (eval $ac_try) 2>&5
40550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551 (exit $ac_status); }; }; then
40552 ac_cv_type_short=yes
40554 echo "$as_me: failed program was:" >&5
40555 sed 's/^/| /' conftest.$ac_ext >&5
40557 ac_cv_type_short=no
40559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40561 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40562 echo "${ECHO_T}$ac_cv_type_short" >&6
40564 echo "$as_me:$LINENO: checking size of short" >&5
40565 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40566 if test "${ac_cv_sizeof_short+set}" = set; then
40567 echo $ECHO_N "(cached) $ECHO_C" >&6
40569 if test "$ac_cv_type_short" = yes; then
40570 # The cast to unsigned long works around a bug in the HP C Compiler
40571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40573 # This bug is HP SR number 8606223364.
40574 if test "$cross_compiling" = yes; then
40575 # Depending upon the size, compute the lo and hi bounds.
40576 cat >conftest.$ac_ext <<_ACEOF
40579 cat confdefs.h >>conftest.$ac_ext
40580 cat >>conftest.$ac_ext <<_ACEOF
40581 /* end confdefs.h. */
40582 $ac_includes_default
40586 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40593 rm -f conftest.$ac_objext
40594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40595 (eval $ac_compile) 2>conftest.er1
40597 grep -v '^ *+' conftest.er1 >conftest.err
40599 cat conftest.err >&5
40600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601 (exit $ac_status); } &&
40602 { ac_try='test -z "$ac_c_werror_flag"
40603 || test ! -s conftest.err'
40604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40605 (eval $ac_try) 2>&5
40607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40608 (exit $ac_status); }; } &&
40609 { ac_try='test -s conftest.$ac_objext'
40610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40611 (eval $ac_try) 2>&5
40613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40614 (exit $ac_status); }; }; then
40617 cat >conftest.$ac_ext <<_ACEOF
40620 cat confdefs.h >>conftest.$ac_ext
40621 cat >>conftest.$ac_ext <<_ACEOF
40622 /* end confdefs.h. */
40623 $ac_includes_default
40627 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40634 rm -f conftest.$ac_objext
40635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40636 (eval $ac_compile) 2>conftest.er1
40638 grep -v '^ *+' conftest.er1 >conftest.err
40640 cat conftest.err >&5
40641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642 (exit $ac_status); } &&
40643 { ac_try='test -z "$ac_c_werror_flag"
40644 || test ! -s conftest.err'
40645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40646 (eval $ac_try) 2>&5
40648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; } &&
40650 { ac_try='test -s conftest.$ac_objext'
40651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40652 (eval $ac_try) 2>&5
40654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655 (exit $ac_status); }; }; then
40656 ac_hi=$ac_mid; break
40658 echo "$as_me: failed program was:" >&5
40659 sed 's/^/| /' conftest.$ac_ext >&5
40661 ac_lo=`expr $ac_mid + 1`
40662 if test $ac_lo -le $ac_mid; then
40666 ac_mid=`expr 2 '*' $ac_mid + 1`
40668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40671 echo "$as_me: failed program was:" >&5
40672 sed 's/^/| /' conftest.$ac_ext >&5
40674 cat >conftest.$ac_ext <<_ACEOF
40677 cat confdefs.h >>conftest.$ac_ext
40678 cat >>conftest.$ac_ext <<_ACEOF
40679 /* end confdefs.h. */
40680 $ac_includes_default
40684 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40691 rm -f conftest.$ac_objext
40692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40693 (eval $ac_compile) 2>conftest.er1
40695 grep -v '^ *+' conftest.er1 >conftest.err
40697 cat conftest.err >&5
40698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40699 (exit $ac_status); } &&
40700 { ac_try='test -z "$ac_c_werror_flag"
40701 || test ! -s conftest.err'
40702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40703 (eval $ac_try) 2>&5
40705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40706 (exit $ac_status); }; } &&
40707 { ac_try='test -s conftest.$ac_objext'
40708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40709 (eval $ac_try) 2>&5
40711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40712 (exit $ac_status); }; }; then
40715 cat >conftest.$ac_ext <<_ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h. */
40721 $ac_includes_default
40725 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40732 rm -f conftest.$ac_objext
40733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40734 (eval $ac_compile) 2>conftest.er1
40736 grep -v '^ *+' conftest.er1 >conftest.err
40738 cat conftest.err >&5
40739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740 (exit $ac_status); } &&
40741 { ac_try='test -z "$ac_c_werror_flag"
40742 || test ! -s conftest.err'
40743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40744 (eval $ac_try) 2>&5
40746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747 (exit $ac_status); }; } &&
40748 { ac_try='test -s conftest.$ac_objext'
40749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40750 (eval $ac_try) 2>&5
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); }; }; then
40754 ac_lo=$ac_mid; break
40756 echo "$as_me: failed program was:" >&5
40757 sed 's/^/| /' conftest.$ac_ext >&5
40759 ac_hi=`expr '(' $ac_mid ')' - 1`
40760 if test $ac_mid -le $ac_hi; then
40764 ac_mid=`expr 2 '*' $ac_mid`
40766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40769 echo "$as_me: failed program was:" >&5
40770 sed 's/^/| /' conftest.$ac_ext >&5
40774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40777 # Binary search between lo and hi bounds.
40778 while test "x$ac_lo" != "x$ac_hi"; do
40779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40780 cat >conftest.$ac_ext <<_ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h. */
40786 $ac_includes_default
40790 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40797 rm -f conftest.$ac_objext
40798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40799 (eval $ac_compile) 2>conftest.er1
40801 grep -v '^ *+' conftest.er1 >conftest.err
40803 cat conftest.err >&5
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); } &&
40806 { ac_try='test -z "$ac_c_werror_flag"
40807 || test ! -s conftest.err'
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; } &&
40813 { ac_try='test -s conftest.$ac_objext'
40814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815 (eval $ac_try) 2>&5
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); }; }; then
40821 echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40824 ac_lo=`expr '(' $ac_mid ')' + 1`
40826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40829 ?*) ac_cv_sizeof_short=$ac_lo;;
40830 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40831 See \`config.log' for more details." >&5
40832 echo "$as_me: error: cannot compute sizeof (short), 77
40833 See \`config.log' for more details." >&2;}
40834 { (exit 1); exit 1; }; } ;;
40837 if test "$cross_compiling" = yes; then
40838 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40839 See \`config.log' for more details." >&5
40840 echo "$as_me: error: cannot run test program while cross compiling
40841 See \`config.log' for more details." >&2;}
40842 { (exit 1); exit 1; }; }
40844 cat >conftest.$ac_ext <<_ACEOF
40847 cat confdefs.h >>conftest.$ac_ext
40848 cat >>conftest.$ac_ext <<_ACEOF
40849 /* end confdefs.h. */
40850 $ac_includes_default
40851 long longval () { return (long) (sizeof (short)); }
40852 unsigned long ulongval () { return (long) (sizeof (short)); }
40854 #include <stdlib.h>
40859 FILE *f = fopen ("conftest.val", "w");
40862 if (((long) (sizeof (short))) < 0)
40864 long i = longval ();
40865 if (i != ((long) (sizeof (short))))
40867 fprintf (f, "%ld\n", i);
40871 unsigned long i = ulongval ();
40872 if (i != ((long) (sizeof (short))))
40874 fprintf (f, "%lu\n", i);
40876 exit (ferror (f) || fclose (f) != 0);
40882 rm -f conftest$ac_exeext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40884 (eval $ac_link) 2>&5
40886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40889 (eval $ac_try) 2>&5
40891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40892 (exit $ac_status); }; }; then
40893 ac_cv_sizeof_short=`cat conftest.val`
40895 echo "$as_me: program exited with status $ac_status" >&5
40896 echo "$as_me: failed program was:" >&5
40897 sed 's/^/| /' conftest.$ac_ext >&5
40899 ( exit $ac_status )
40900 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40901 See \`config.log' for more details." >&5
40902 echo "$as_me: error: cannot compute sizeof (short), 77
40903 See \`config.log' for more details." >&2;}
40904 { (exit 1); exit 1; }; }
40906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40911 ac_cv_sizeof_short=0
40914 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40915 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40916 cat >>confdefs.h <<_ACEOF
40917 #define SIZEOF_SHORT $ac_cv_sizeof_short
40921 echo "$as_me:$LINENO: checking for int" >&5
40922 echo $ECHO_N "checking for int... $ECHO_C" >&6
40923 if test "${ac_cv_type_int+set}" = set; then
40924 echo $ECHO_N "(cached) $ECHO_C" >&6
40926 cat >conftest.$ac_ext <<_ACEOF
40929 cat confdefs.h >>conftest.$ac_ext
40930 cat >>conftest.$ac_ext <<_ACEOF
40931 /* end confdefs.h. */
40932 $ac_includes_default
40944 rm -f conftest.$ac_objext
40945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40946 (eval $ac_compile) 2>conftest.er1
40948 grep -v '^ *+' conftest.er1 >conftest.err
40950 cat conftest.err >&5
40951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952 (exit $ac_status); } &&
40953 { ac_try='test -z "$ac_c_werror_flag"
40954 || test ! -s conftest.err'
40955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956 (eval $ac_try) 2>&5
40958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); }; } &&
40960 { ac_try='test -s conftest.$ac_objext'
40961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962 (eval $ac_try) 2>&5
40964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965 (exit $ac_status); }; }; then
40968 echo "$as_me: failed program was:" >&5
40969 sed 's/^/| /' conftest.$ac_ext >&5
40973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40975 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40976 echo "${ECHO_T}$ac_cv_type_int" >&6
40978 echo "$as_me:$LINENO: checking size of int" >&5
40979 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40980 if test "${ac_cv_sizeof_int+set}" = set; then
40981 echo $ECHO_N "(cached) $ECHO_C" >&6
40983 if test "$ac_cv_type_int" = yes; then
40984 # The cast to unsigned long works around a bug in the HP C Compiler
40985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40987 # This bug is HP SR number 8606223364.
40988 if test "$cross_compiling" = yes; then
40989 # Depending upon the size, compute the lo and hi bounds.
40990 cat >conftest.$ac_ext <<_ACEOF
40993 cat confdefs.h >>conftest.$ac_ext
40994 cat >>conftest.$ac_ext <<_ACEOF
40995 /* end confdefs.h. */
40996 $ac_includes_default
41000 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41007 rm -f conftest.$ac_objext
41008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41009 (eval $ac_compile) 2>conftest.er1
41011 grep -v '^ *+' conftest.er1 >conftest.err
41013 cat conftest.err >&5
41014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015 (exit $ac_status); } &&
41016 { ac_try='test -z "$ac_c_werror_flag"
41017 || test ! -s conftest.err'
41018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019 (eval $ac_try) 2>&5
41021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); }; } &&
41023 { ac_try='test -s conftest.$ac_objext'
41024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41025 (eval $ac_try) 2>&5
41027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028 (exit $ac_status); }; }; then
41031 cat >conftest.$ac_ext <<_ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h. */
41037 $ac_includes_default
41041 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41048 rm -f conftest.$ac_objext
41049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41050 (eval $ac_compile) 2>conftest.er1
41052 grep -v '^ *+' conftest.er1 >conftest.err
41054 cat conftest.err >&5
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); } &&
41057 { ac_try='test -z "$ac_c_werror_flag"
41058 || test ! -s conftest.err'
41059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41060 (eval $ac_try) 2>&5
41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); }; } &&
41064 { ac_try='test -s conftest.$ac_objext'
41065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066 (eval $ac_try) 2>&5
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); }; }; then
41070 ac_hi=$ac_mid; break
41072 echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41075 ac_lo=`expr $ac_mid + 1`
41076 if test $ac_lo -le $ac_mid; then
41080 ac_mid=`expr 2 '*' $ac_mid + 1`
41082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41085 echo "$as_me: failed program was:" >&5
41086 sed 's/^/| /' conftest.$ac_ext >&5
41088 cat >conftest.$ac_ext <<_ACEOF
41091 cat confdefs.h >>conftest.$ac_ext
41092 cat >>conftest.$ac_ext <<_ACEOF
41093 /* end confdefs.h. */
41094 $ac_includes_default
41098 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41105 rm -f conftest.$ac_objext
41106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41107 (eval $ac_compile) 2>conftest.er1
41109 grep -v '^ *+' conftest.er1 >conftest.err
41111 cat conftest.err >&5
41112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41113 (exit $ac_status); } &&
41114 { ac_try='test -z "$ac_c_werror_flag"
41115 || test ! -s conftest.err'
41116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41117 (eval $ac_try) 2>&5
41119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41120 (exit $ac_status); }; } &&
41121 { ac_try='test -s conftest.$ac_objext'
41122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41123 (eval $ac_try) 2>&5
41125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41126 (exit $ac_status); }; }; then
41129 cat >conftest.$ac_ext <<_ACEOF
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h. */
41135 $ac_includes_default
41139 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41146 rm -f conftest.$ac_objext
41147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41148 (eval $ac_compile) 2>conftest.er1
41150 grep -v '^ *+' conftest.er1 >conftest.err
41152 cat conftest.err >&5
41153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154 (exit $ac_status); } &&
41155 { ac_try='test -z "$ac_c_werror_flag"
41156 || test ! -s conftest.err'
41157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41158 (eval $ac_try) 2>&5
41160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161 (exit $ac_status); }; } &&
41162 { ac_try='test -s conftest.$ac_objext'
41163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41164 (eval $ac_try) 2>&5
41166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167 (exit $ac_status); }; }; then
41168 ac_lo=$ac_mid; break
41170 echo "$as_me: failed program was:" >&5
41171 sed 's/^/| /' conftest.$ac_ext >&5
41173 ac_hi=`expr '(' $ac_mid ')' - 1`
41174 if test $ac_mid -le $ac_hi; then
41178 ac_mid=`expr 2 '*' $ac_mid`
41180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41183 echo "$as_me: failed program was:" >&5
41184 sed 's/^/| /' conftest.$ac_ext >&5
41188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41191 # Binary search between lo and hi bounds.
41192 while test "x$ac_lo" != "x$ac_hi"; do
41193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41194 cat >conftest.$ac_ext <<_ACEOF
41197 cat confdefs.h >>conftest.$ac_ext
41198 cat >>conftest.$ac_ext <<_ACEOF
41199 /* end confdefs.h. */
41200 $ac_includes_default
41204 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41211 rm -f conftest.$ac_objext
41212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41213 (eval $ac_compile) 2>conftest.er1
41215 grep -v '^ *+' conftest.er1 >conftest.err
41217 cat conftest.err >&5
41218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 (exit $ac_status); } &&
41220 { ac_try='test -z "$ac_c_werror_flag"
41221 || test ! -s conftest.err'
41222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41223 (eval $ac_try) 2>&5
41225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41226 (exit $ac_status); }; } &&
41227 { ac_try='test -s conftest.$ac_objext'
41228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41229 (eval $ac_try) 2>&5
41231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232 (exit $ac_status); }; }; then
41235 echo "$as_me: failed program was:" >&5
41236 sed 's/^/| /' conftest.$ac_ext >&5
41238 ac_lo=`expr '(' $ac_mid ')' + 1`
41240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41243 ?*) ac_cv_sizeof_int=$ac_lo;;
41244 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41245 See \`config.log' for more details." >&5
41246 echo "$as_me: error: cannot compute sizeof (int), 77
41247 See \`config.log' for more details." >&2;}
41248 { (exit 1); exit 1; }; } ;;
41251 if test "$cross_compiling" = yes; then
41252 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41253 See \`config.log' for more details." >&5
41254 echo "$as_me: error: cannot run test program while cross compiling
41255 See \`config.log' for more details." >&2;}
41256 { (exit 1); exit 1; }; }
41258 cat >conftest.$ac_ext <<_ACEOF
41261 cat confdefs.h >>conftest.$ac_ext
41262 cat >>conftest.$ac_ext <<_ACEOF
41263 /* end confdefs.h. */
41264 $ac_includes_default
41265 long longval () { return (long) (sizeof (int)); }
41266 unsigned long ulongval () { return (long) (sizeof (int)); }
41268 #include <stdlib.h>
41273 FILE *f = fopen ("conftest.val", "w");
41276 if (((long) (sizeof (int))) < 0)
41278 long i = longval ();
41279 if (i != ((long) (sizeof (int))))
41281 fprintf (f, "%ld\n", i);
41285 unsigned long i = ulongval ();
41286 if (i != ((long) (sizeof (int))))
41288 fprintf (f, "%lu\n", i);
41290 exit (ferror (f) || fclose (f) != 0);
41296 rm -f conftest$ac_exeext
41297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41298 (eval $ac_link) 2>&5
41300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41303 (eval $ac_try) 2>&5
41305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41306 (exit $ac_status); }; }; then
41307 ac_cv_sizeof_int=`cat conftest.val`
41309 echo "$as_me: program exited with status $ac_status" >&5
41310 echo "$as_me: failed program was:" >&5
41311 sed 's/^/| /' conftest.$ac_ext >&5
41313 ( exit $ac_status )
41314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41315 See \`config.log' for more details." >&5
41316 echo "$as_me: error: cannot compute sizeof (int), 77
41317 See \`config.log' for more details." >&2;}
41318 { (exit 1); exit 1; }; }
41320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41329 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41330 cat >>confdefs.h <<_ACEOF
41331 #define SIZEOF_INT $ac_cv_sizeof_int
41335 echo "$as_me:$LINENO: checking for long" >&5
41336 echo $ECHO_N "checking for long... $ECHO_C" >&6
41337 if test "${ac_cv_type_long+set}" = set; then
41338 echo $ECHO_N "(cached) $ECHO_C" >&6
41340 cat >conftest.$ac_ext <<_ACEOF
41343 cat confdefs.h >>conftest.$ac_ext
41344 cat >>conftest.$ac_ext <<_ACEOF
41345 /* end confdefs.h. */
41346 $ac_includes_default
41358 rm -f conftest.$ac_objext
41359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41360 (eval $ac_compile) 2>conftest.er1
41362 grep -v '^ *+' conftest.er1 >conftest.err
41364 cat conftest.err >&5
41365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41366 (exit $ac_status); } &&
41367 { ac_try='test -z "$ac_c_werror_flag"
41368 || test ! -s conftest.err'
41369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41370 (eval $ac_try) 2>&5
41372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); }; } &&
41374 { ac_try='test -s conftest.$ac_objext'
41375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41376 (eval $ac_try) 2>&5
41378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379 (exit $ac_status); }; }; then
41380 ac_cv_type_long=yes
41382 echo "$as_me: failed program was:" >&5
41383 sed 's/^/| /' conftest.$ac_ext >&5
41387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41389 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41390 echo "${ECHO_T}$ac_cv_type_long" >&6
41392 echo "$as_me:$LINENO: checking size of long" >&5
41393 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41394 if test "${ac_cv_sizeof_long+set}" = set; then
41395 echo $ECHO_N "(cached) $ECHO_C" >&6
41397 if test "$ac_cv_type_long" = yes; then
41398 # The cast to unsigned long works around a bug in the HP C Compiler
41399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41401 # This bug is HP SR number 8606223364.
41402 if test "$cross_compiling" = yes; then
41403 # Depending upon the size, compute the lo and hi bounds.
41404 cat >conftest.$ac_ext <<_ACEOF
41407 cat confdefs.h >>conftest.$ac_ext
41408 cat >>conftest.$ac_ext <<_ACEOF
41409 /* end confdefs.h. */
41410 $ac_includes_default
41414 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41421 rm -f conftest.$ac_objext
41422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41423 (eval $ac_compile) 2>conftest.er1
41425 grep -v '^ *+' conftest.er1 >conftest.err
41427 cat conftest.err >&5
41428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429 (exit $ac_status); } &&
41430 { ac_try='test -z "$ac_c_werror_flag"
41431 || test ! -s conftest.err'
41432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41433 (eval $ac_try) 2>&5
41435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41436 (exit $ac_status); }; } &&
41437 { ac_try='test -s conftest.$ac_objext'
41438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439 (eval $ac_try) 2>&5
41441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442 (exit $ac_status); }; }; then
41445 cat >conftest.$ac_ext <<_ACEOF
41448 cat confdefs.h >>conftest.$ac_ext
41449 cat >>conftest.$ac_ext <<_ACEOF
41450 /* end confdefs.h. */
41451 $ac_includes_default
41455 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41462 rm -f conftest.$ac_objext
41463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41464 (eval $ac_compile) 2>conftest.er1
41466 grep -v '^ *+' conftest.er1 >conftest.err
41468 cat conftest.err >&5
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); } &&
41471 { ac_try='test -z "$ac_c_werror_flag"
41472 || test ! -s conftest.err'
41473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41474 (eval $ac_try) 2>&5
41476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477 (exit $ac_status); }; } &&
41478 { ac_try='test -s conftest.$ac_objext'
41479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41480 (eval $ac_try) 2>&5
41482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483 (exit $ac_status); }; }; then
41484 ac_hi=$ac_mid; break
41486 echo "$as_me: failed program was:" >&5
41487 sed 's/^/| /' conftest.$ac_ext >&5
41489 ac_lo=`expr $ac_mid + 1`
41490 if test $ac_lo -le $ac_mid; then
41494 ac_mid=`expr 2 '*' $ac_mid + 1`
41496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41499 echo "$as_me: failed program was:" >&5
41500 sed 's/^/| /' conftest.$ac_ext >&5
41502 cat >conftest.$ac_ext <<_ACEOF
41505 cat confdefs.h >>conftest.$ac_ext
41506 cat >>conftest.$ac_ext <<_ACEOF
41507 /* end confdefs.h. */
41508 $ac_includes_default
41512 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41519 rm -f conftest.$ac_objext
41520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41521 (eval $ac_compile) 2>conftest.er1
41523 grep -v '^ *+' conftest.er1 >conftest.err
41525 cat conftest.err >&5
41526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527 (exit $ac_status); } &&
41528 { ac_try='test -z "$ac_c_werror_flag"
41529 || test ! -s conftest.err'
41530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41531 (eval $ac_try) 2>&5
41533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534 (exit $ac_status); }; } &&
41535 { ac_try='test -s conftest.$ac_objext'
41536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41537 (eval $ac_try) 2>&5
41539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41540 (exit $ac_status); }; }; then
41543 cat >conftest.$ac_ext <<_ACEOF
41546 cat confdefs.h >>conftest.$ac_ext
41547 cat >>conftest.$ac_ext <<_ACEOF
41548 /* end confdefs.h. */
41549 $ac_includes_default
41553 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41560 rm -f conftest.$ac_objext
41561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41562 (eval $ac_compile) 2>conftest.er1
41564 grep -v '^ *+' conftest.er1 >conftest.err
41566 cat conftest.err >&5
41567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568 (exit $ac_status); } &&
41569 { ac_try='test -z "$ac_c_werror_flag"
41570 || test ! -s conftest.err'
41571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572 (eval $ac_try) 2>&5
41574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575 (exit $ac_status); }; } &&
41576 { ac_try='test -s conftest.$ac_objext'
41577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41578 (eval $ac_try) 2>&5
41580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581 (exit $ac_status); }; }; then
41582 ac_lo=$ac_mid; break
41584 echo "$as_me: failed program was:" >&5
41585 sed 's/^/| /' conftest.$ac_ext >&5
41587 ac_hi=`expr '(' $ac_mid ')' - 1`
41588 if test $ac_mid -le $ac_hi; then
41592 ac_mid=`expr 2 '*' $ac_mid`
41594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41597 echo "$as_me: failed program was:" >&5
41598 sed 's/^/| /' conftest.$ac_ext >&5
41602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41605 # Binary search between lo and hi bounds.
41606 while test "x$ac_lo" != "x$ac_hi"; do
41607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41608 cat >conftest.$ac_ext <<_ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h. */
41614 $ac_includes_default
41618 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41625 rm -f conftest.$ac_objext
41626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41627 (eval $ac_compile) 2>conftest.er1
41629 grep -v '^ *+' conftest.er1 >conftest.err
41631 cat conftest.err >&5
41632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41633 (exit $ac_status); } &&
41634 { ac_try='test -z "$ac_c_werror_flag"
41635 || test ! -s conftest.err'
41636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41637 (eval $ac_try) 2>&5
41639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41640 (exit $ac_status); }; } &&
41641 { ac_try='test -s conftest.$ac_objext'
41642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643 (eval $ac_try) 2>&5
41645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646 (exit $ac_status); }; }; then
41649 echo "$as_me: failed program was:" >&5
41650 sed 's/^/| /' conftest.$ac_ext >&5
41652 ac_lo=`expr '(' $ac_mid ')' + 1`
41654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41657 ?*) ac_cv_sizeof_long=$ac_lo;;
41658 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41659 See \`config.log' for more details." >&5
41660 echo "$as_me: error: cannot compute sizeof (long), 77
41661 See \`config.log' for more details." >&2;}
41662 { (exit 1); exit 1; }; } ;;
41665 if test "$cross_compiling" = yes; then
41666 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41667 See \`config.log' for more details." >&5
41668 echo "$as_me: error: cannot run test program while cross compiling
41669 See \`config.log' for more details." >&2;}
41670 { (exit 1); exit 1; }; }
41672 cat >conftest.$ac_ext <<_ACEOF
41675 cat confdefs.h >>conftest.$ac_ext
41676 cat >>conftest.$ac_ext <<_ACEOF
41677 /* end confdefs.h. */
41678 $ac_includes_default
41679 long longval () { return (long) (sizeof (long)); }
41680 unsigned long ulongval () { return (long) (sizeof (long)); }
41682 #include <stdlib.h>
41687 FILE *f = fopen ("conftest.val", "w");
41690 if (((long) (sizeof (long))) < 0)
41692 long i = longval ();
41693 if (i != ((long) (sizeof (long))))
41695 fprintf (f, "%ld\n", i);
41699 unsigned long i = ulongval ();
41700 if (i != ((long) (sizeof (long))))
41702 fprintf (f, "%lu\n", i);
41704 exit (ferror (f) || fclose (f) != 0);
41710 rm -f conftest$ac_exeext
41711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41712 (eval $ac_link) 2>&5
41714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41717 (eval $ac_try) 2>&5
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); }; }; then
41721 ac_cv_sizeof_long=`cat conftest.val`
41723 echo "$as_me: program exited with status $ac_status" >&5
41724 echo "$as_me: failed program was:" >&5
41725 sed 's/^/| /' conftest.$ac_ext >&5
41727 ( exit $ac_status )
41728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41729 See \`config.log' for more details." >&5
41730 echo "$as_me: error: cannot compute sizeof (long), 77
41731 See \`config.log' for more details." >&2;}
41732 { (exit 1); exit 1; }; }
41734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41739 ac_cv_sizeof_long=0
41742 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41743 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41744 cat >>confdefs.h <<_ACEOF
41745 #define SIZEOF_LONG $ac_cv_sizeof_long
41749 echo "$as_me:$LINENO: checking for wchar_t" >&5
41750 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41751 if test "${ac_cv_type_wchar_t+set}" = set; then
41752 echo $ECHO_N "(cached) $ECHO_C" >&6
41754 cat >conftest.$ac_ext <<_ACEOF
41757 cat confdefs.h >>conftest.$ac_ext
41758 cat >>conftest.$ac_ext <<_ACEOF
41759 /* end confdefs.h. */
41760 $ac_includes_default
41766 if (sizeof (wchar_t))
41772 rm -f conftest.$ac_objext
41773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41774 (eval $ac_compile) 2>conftest.er1
41776 grep -v '^ *+' conftest.er1 >conftest.err
41778 cat conftest.err >&5
41779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780 (exit $ac_status); } &&
41781 { ac_try='test -z "$ac_c_werror_flag"
41782 || test ! -s conftest.err'
41783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41784 (eval $ac_try) 2>&5
41786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787 (exit $ac_status); }; } &&
41788 { ac_try='test -s conftest.$ac_objext'
41789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790 (eval $ac_try) 2>&5
41792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); }; }; then
41794 ac_cv_type_wchar_t=yes
41796 echo "$as_me: failed program was:" >&5
41797 sed 's/^/| /' conftest.$ac_ext >&5
41799 ac_cv_type_wchar_t=no
41801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41803 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41804 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41806 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41807 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41808 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41809 echo $ECHO_N "(cached) $ECHO_C" >&6
41811 if test "$ac_cv_type_wchar_t" = yes; then
41812 # The cast to unsigned long works around a bug in the HP C Compiler
41813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41815 # This bug is HP SR number 8606223364.
41816 if test "$cross_compiling" = yes; then
41817 # Depending upon the size, compute the lo and hi bounds.
41818 cat >conftest.$ac_ext <<_ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h. */
41824 $ac_includes_default
41828 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41835 rm -f conftest.$ac_objext
41836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41837 (eval $ac_compile) 2>conftest.er1
41839 grep -v '^ *+' conftest.er1 >conftest.err
41841 cat conftest.err >&5
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); } &&
41844 { ac_try='test -z "$ac_c_werror_flag"
41845 || test ! -s conftest.err'
41846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41847 (eval $ac_try) 2>&5
41849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41850 (exit $ac_status); }; } &&
41851 { ac_try='test -s conftest.$ac_objext'
41852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41853 (eval $ac_try) 2>&5
41855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856 (exit $ac_status); }; }; then
41859 cat >conftest.$ac_ext <<_ACEOF
41862 cat confdefs.h >>conftest.$ac_ext
41863 cat >>conftest.$ac_ext <<_ACEOF
41864 /* end confdefs.h. */
41865 $ac_includes_default
41869 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41876 rm -f conftest.$ac_objext
41877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41878 (eval $ac_compile) 2>conftest.er1
41880 grep -v '^ *+' conftest.er1 >conftest.err
41882 cat conftest.err >&5
41883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41884 (exit $ac_status); } &&
41885 { ac_try='test -z "$ac_c_werror_flag"
41886 || test ! -s conftest.err'
41887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41888 (eval $ac_try) 2>&5
41890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41891 (exit $ac_status); }; } &&
41892 { ac_try='test -s conftest.$ac_objext'
41893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41894 (eval $ac_try) 2>&5
41896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41897 (exit $ac_status); }; }; then
41898 ac_hi=$ac_mid; break
41900 echo "$as_me: failed program was:" >&5
41901 sed 's/^/| /' conftest.$ac_ext >&5
41903 ac_lo=`expr $ac_mid + 1`
41904 if test $ac_lo -le $ac_mid; then
41908 ac_mid=`expr 2 '*' $ac_mid + 1`
41910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41913 echo "$as_me: failed program was:" >&5
41914 sed 's/^/| /' conftest.$ac_ext >&5
41916 cat >conftest.$ac_ext <<_ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h. */
41922 $ac_includes_default
41926 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41933 rm -f conftest.$ac_objext
41934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41935 (eval $ac_compile) 2>conftest.er1
41937 grep -v '^ *+' conftest.er1 >conftest.err
41939 cat conftest.err >&5
41940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41941 (exit $ac_status); } &&
41942 { ac_try='test -z "$ac_c_werror_flag"
41943 || test ! -s conftest.err'
41944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41945 (eval $ac_try) 2>&5
41947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41948 (exit $ac_status); }; } &&
41949 { ac_try='test -s conftest.$ac_objext'
41950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41951 (eval $ac_try) 2>&5
41953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41954 (exit $ac_status); }; }; then
41957 cat >conftest.$ac_ext <<_ACEOF
41960 cat confdefs.h >>conftest.$ac_ext
41961 cat >>conftest.$ac_ext <<_ACEOF
41962 /* end confdefs.h. */
41963 $ac_includes_default
41967 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41974 rm -f conftest.$ac_objext
41975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41976 (eval $ac_compile) 2>conftest.er1
41978 grep -v '^ *+' conftest.er1 >conftest.err
41980 cat conftest.err >&5
41981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982 (exit $ac_status); } &&
41983 { ac_try='test -z "$ac_c_werror_flag"
41984 || test ! -s conftest.err'
41985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41986 (eval $ac_try) 2>&5
41988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989 (exit $ac_status); }; } &&
41990 { ac_try='test -s conftest.$ac_objext'
41991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41992 (eval $ac_try) 2>&5
41994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41995 (exit $ac_status); }; }; then
41996 ac_lo=$ac_mid; break
41998 echo "$as_me: failed program was:" >&5
41999 sed 's/^/| /' conftest.$ac_ext >&5
42001 ac_hi=`expr '(' $ac_mid ')' - 1`
42002 if test $ac_mid -le $ac_hi; then
42006 ac_mid=`expr 2 '*' $ac_mid`
42008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42011 echo "$as_me: failed program was:" >&5
42012 sed 's/^/| /' conftest.$ac_ext >&5
42016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42019 # Binary search between lo and hi bounds.
42020 while test "x$ac_lo" != "x$ac_hi"; do
42021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42022 cat >conftest.$ac_ext <<_ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h. */
42028 $ac_includes_default
42032 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42039 rm -f conftest.$ac_objext
42040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42041 (eval $ac_compile) 2>conftest.er1
42043 grep -v '^ *+' conftest.er1 >conftest.err
42045 cat conftest.err >&5
42046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42047 (exit $ac_status); } &&
42048 { ac_try='test -z "$ac_c_werror_flag"
42049 || test ! -s conftest.err'
42050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42051 (eval $ac_try) 2>&5
42053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054 (exit $ac_status); }; } &&
42055 { ac_try='test -s conftest.$ac_objext'
42056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42057 (eval $ac_try) 2>&5
42059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060 (exit $ac_status); }; }; then
42063 echo "$as_me: failed program was:" >&5
42064 sed 's/^/| /' conftest.$ac_ext >&5
42066 ac_lo=`expr '(' $ac_mid ')' + 1`
42068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42071 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42073 See \`config.log' for more details." >&5
42074 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42075 See \`config.log' for more details." >&2;}
42076 { (exit 1); exit 1; }; } ;;
42079 if test "$cross_compiling" = yes; then
42080 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42081 See \`config.log' for more details." >&5
42082 echo "$as_me: error: cannot run test program while cross compiling
42083 See \`config.log' for more details." >&2;}
42084 { (exit 1); exit 1; }; }
42086 cat >conftest.$ac_ext <<_ACEOF
42089 cat confdefs.h >>conftest.$ac_ext
42090 cat >>conftest.$ac_ext <<_ACEOF
42091 /* end confdefs.h. */
42092 $ac_includes_default
42093 long longval () { return (long) (sizeof (wchar_t)); }
42094 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42096 #include <stdlib.h>
42101 FILE *f = fopen ("conftest.val", "w");
42104 if (((long) (sizeof (wchar_t))) < 0)
42106 long i = longval ();
42107 if (i != ((long) (sizeof (wchar_t))))
42109 fprintf (f, "%ld\n", i);
42113 unsigned long i = ulongval ();
42114 if (i != ((long) (sizeof (wchar_t))))
42116 fprintf (f, "%lu\n", i);
42118 exit (ferror (f) || fclose (f) != 0);
42124 rm -f conftest$ac_exeext
42125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42126 (eval $ac_link) 2>&5
42128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42131 (eval $ac_try) 2>&5
42133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134 (exit $ac_status); }; }; then
42135 ac_cv_sizeof_wchar_t=`cat conftest.val`
42137 echo "$as_me: program exited with status $ac_status" >&5
42138 echo "$as_me: failed program was:" >&5
42139 sed 's/^/| /' conftest.$ac_ext >&5
42141 ( exit $ac_status )
42142 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42143 See \`config.log' for more details." >&5
42144 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42145 See \`config.log' for more details." >&2;}
42146 { (exit 1); exit 1; }; }
42148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42153 ac_cv_sizeof_wchar_t=0
42156 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42157 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42158 cat >>confdefs.h <<_ACEOF
42159 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42164 if test "$ac_cv_sizeof_int" -lt 4 ; then
42165 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42166 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42169 cat >>confdefs.h <<\_ACEOF
42170 #define LBER_INT_T long
42175 cat >>confdefs.h <<\_ACEOF
42176 #define LBER_INT_T int
42182 cat >>confdefs.h <<\_ACEOF
42183 #define LBER_LEN_T long
42187 cat >>confdefs.h <<\_ACEOF
42188 #define LBER_SOCKET_T int
42192 cat >>confdefs.h <<\_ACEOF
42193 #define LBER_TAG_T long
42197 echo "$as_me:$LINENO: checking for working memcmp" >&5
42198 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42199 if test "${ac_cv_func_memcmp_working+set}" = set; then
42200 echo $ECHO_N "(cached) $ECHO_C" >&6
42202 if test "$cross_compiling" = yes; then
42203 ac_cv_func_memcmp_working=no
42205 cat >conftest.$ac_ext <<_ACEOF
42208 cat confdefs.h >>conftest.$ac_ext
42209 cat >>conftest.$ac_ext <<_ACEOF
42210 /* end confdefs.h. */
42211 $ac_includes_default
42216 /* Some versions of memcmp are not 8-bit clean. */
42217 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42218 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42221 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42222 or more and with at least one buffer not starting on a 4-byte boundary.
42223 William Lewis provided this test program. */
42228 for (i = 0; i < 4; i++)
42232 strcpy (a, "--------01111111");
42233 strcpy (b, "--------10000000");
42234 if (memcmp (a, b, 16) >= 0)
42244 rm -f conftest$ac_exeext
42245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42246 (eval $ac_link) 2>&5
42248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42251 (eval $ac_try) 2>&5
42253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254 (exit $ac_status); }; }; then
42255 ac_cv_func_memcmp_working=yes
42257 echo "$as_me: program exited with status $ac_status" >&5
42258 echo "$as_me: failed program was:" >&5
42259 sed 's/^/| /' conftest.$ac_ext >&5
42261 ( exit $ac_status )
42262 ac_cv_func_memcmp_working=no
42264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42267 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42268 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42269 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42270 "memcmp.$ac_objext" | \
42271 *" memcmp.$ac_objext" | \
42272 "memcmp.$ac_objext "* | \
42273 *" memcmp.$ac_objext "* ) ;;
42274 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42279 if test $ac_cv_func_memcmp_working = no ; then
42281 cat >>confdefs.h <<\_ACEOF
42282 #define NEED_MEMCMP_REPLACEMENT 1
42288 for ac_func in strftime
42290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42291 echo "$as_me:$LINENO: checking for $ac_func" >&5
42292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42293 if eval "test \"\${$as_ac_var+set}\" = set"; then
42294 echo $ECHO_N "(cached) $ECHO_C" >&6
42296 cat >conftest.$ac_ext <<_ACEOF
42299 cat confdefs.h >>conftest.$ac_ext
42300 cat >>conftest.$ac_ext <<_ACEOF
42301 /* end confdefs.h. */
42302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42304 #define $ac_func innocuous_$ac_func
42306 /* System header to define __stub macros and hopefully few prototypes,
42307 which can conflict with char $ac_func (); below.
42308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42309 <limits.h> exists even on freestanding compilers. */
42312 # include <limits.h>
42314 # include <assert.h>
42319 /* Override any gcc2 internal prototype to avoid an error. */
42324 /* We use char because int might match the return type of a gcc2
42325 builtin and then its argument prototype would still apply. */
42327 /* The GNU C library defines this for functions which it implements
42328 to always fail with ENOSYS. Some functions are actually named
42329 something starting with __ and the normal name is an alias. */
42330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42333 char (*f) () = $ac_func;
42342 return f != $ac_func;
42347 rm -f conftest.$ac_objext conftest$ac_exeext
42348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42349 (eval $ac_link) 2>conftest.er1
42351 grep -v '^ *+' conftest.er1 >conftest.err
42353 cat conftest.err >&5
42354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355 (exit $ac_status); } &&
42356 { ac_try='test -z "$ac_c_werror_flag"
42357 || test ! -s conftest.err'
42358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42359 (eval $ac_try) 2>&5
42361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42362 (exit $ac_status); }; } &&
42363 { ac_try='test -s conftest$ac_exeext'
42364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42365 (eval $ac_try) 2>&5
42367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368 (exit $ac_status); }; }; then
42369 eval "$as_ac_var=yes"
42371 echo "$as_me: failed program was:" >&5
42372 sed 's/^/| /' conftest.$ac_ext >&5
42374 eval "$as_ac_var=no"
42376 rm -f conftest.err conftest.$ac_objext \
42377 conftest$ac_exeext conftest.$ac_ext
42379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42381 if test `eval echo '${'$as_ac_var'}'` = yes; then
42382 cat >>confdefs.h <<_ACEOF
42383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42387 # strftime is in -lintl on SCO UNIX.
42388 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42389 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42390 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42391 echo $ECHO_N "(cached) $ECHO_C" >&6
42393 ac_check_lib_save_LIBS=$LIBS
42394 LIBS="-lintl $LIBS"
42395 cat >conftest.$ac_ext <<_ACEOF
42398 cat confdefs.h >>conftest.$ac_ext
42399 cat >>conftest.$ac_ext <<_ACEOF
42400 /* end confdefs.h. */
42402 /* Override any gcc2 internal prototype to avoid an error. */
42406 /* We use char because int might match the return type of a gcc2
42407 builtin and then its argument prototype would still apply. */
42417 rm -f conftest.$ac_objext conftest$ac_exeext
42418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42419 (eval $ac_link) 2>conftest.er1
42421 grep -v '^ *+' conftest.er1 >conftest.err
42423 cat conftest.err >&5
42424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425 (exit $ac_status); } &&
42426 { ac_try='test -z "$ac_c_werror_flag"
42427 || test ! -s conftest.err'
42428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42429 (eval $ac_try) 2>&5
42431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432 (exit $ac_status); }; } &&
42433 { ac_try='test -s conftest$ac_exeext'
42434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42435 (eval $ac_try) 2>&5
42437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438 (exit $ac_status); }; }; then
42439 ac_cv_lib_intl_strftime=yes
42441 echo "$as_me: failed program was:" >&5
42442 sed 's/^/| /' conftest.$ac_ext >&5
42444 ac_cv_lib_intl_strftime=no
42446 rm -f conftest.err conftest.$ac_objext \
42447 conftest$ac_exeext conftest.$ac_ext
42448 LIBS=$ac_check_lib_save_LIBS
42450 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42451 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42452 if test $ac_cv_lib_intl_strftime = yes; then
42453 cat >>confdefs.h <<\_ACEOF
42454 #define HAVE_STRFTIME 1
42457 LIBS="-lintl $LIBS"
42464 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42465 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42466 if test "${ol_cv_func_inet_aton+set}" = set; then
42467 echo $ECHO_N "(cached) $ECHO_C" >&6
42469 cat >conftest.$ac_ext <<_ACEOF
42472 cat confdefs.h >>conftest.$ac_ext
42473 cat >>conftest.$ac_ext <<_ACEOF
42474 /* end confdefs.h. */
42476 #ifdef HAVE_SYS_TYPES_H
42477 # include <sys/types.h>
42479 #ifdef HAVE_SYS_SOCKET_H
42480 # include <sys/socket.h>
42481 # ifdef HAVE_SYS_SELECT_H
42482 # include <sys/select.h>
42484 # include <netinet/in.h>
42485 # ifdef HAVE_ARPA_INET_H
42486 # include <arpa/inet.h>
42494 int rc = inet_aton( "255.255.255.255", &in );
42499 rm -f conftest.$ac_objext conftest$ac_exeext
42500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42501 (eval $ac_link) 2>conftest.er1
42503 grep -v '^ *+' conftest.er1 >conftest.err
42505 cat conftest.err >&5
42506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507 (exit $ac_status); } &&
42508 { ac_try='test -z "$ac_c_werror_flag"
42509 || test ! -s conftest.err'
42510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42511 (eval $ac_try) 2>&5
42513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514 (exit $ac_status); }; } &&
42515 { ac_try='test -s conftest$ac_exeext'
42516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42517 (eval $ac_try) 2>&5
42519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520 (exit $ac_status); }; }; then
42521 ol_cv_func_inet_aton=yes
42523 echo "$as_me: failed program was:" >&5
42524 sed 's/^/| /' conftest.$ac_ext >&5
42526 ol_cv_func_inet_aton=no
42528 rm -f conftest.err conftest.$ac_objext \
42529 conftest$ac_exeext conftest.$ac_ext
42531 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42532 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42533 if test $ol_cv_func_inet_aton != no; then
42535 cat >>confdefs.h <<\_ACEOF
42536 #define HAVE_INET_ATON 1
42542 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42543 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42544 if test "${ac_cv_func__spawnlp+set}" = set; then
42545 echo $ECHO_N "(cached) $ECHO_C" >&6
42547 cat >conftest.$ac_ext <<_ACEOF
42550 cat confdefs.h >>conftest.$ac_ext
42551 cat >>conftest.$ac_ext <<_ACEOF
42552 /* end confdefs.h. */
42553 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42555 #define _spawnlp innocuous__spawnlp
42557 /* System header to define __stub macros and hopefully few prototypes,
42558 which can conflict with char _spawnlp (); below.
42559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42560 <limits.h> exists even on freestanding compilers. */
42563 # include <limits.h>
42565 # include <assert.h>
42570 /* Override any gcc2 internal prototype to avoid an error. */
42575 /* We use char because int might match the return type of a gcc2
42576 builtin and then its argument prototype would still apply. */
42578 /* The GNU C library defines this for functions which it implements
42579 to always fail with ENOSYS. Some functions are actually named
42580 something starting with __ and the normal name is an alias. */
42581 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42584 char (*f) () = _spawnlp;
42593 return f != _spawnlp;
42598 rm -f conftest.$ac_objext conftest$ac_exeext
42599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42600 (eval $ac_link) 2>conftest.er1
42602 grep -v '^ *+' conftest.er1 >conftest.err
42604 cat conftest.err >&5
42605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606 (exit $ac_status); } &&
42607 { ac_try='test -z "$ac_c_werror_flag"
42608 || test ! -s conftest.err'
42609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42610 (eval $ac_try) 2>&5
42612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42613 (exit $ac_status); }; } &&
42614 { ac_try='test -s conftest$ac_exeext'
42615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42616 (eval $ac_try) 2>&5
42618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619 (exit $ac_status); }; }; then
42620 ac_cv_func__spawnlp=yes
42622 echo "$as_me: failed program was:" >&5
42623 sed 's/^/| /' conftest.$ac_ext >&5
42625 ac_cv_func__spawnlp=no
42627 rm -f conftest.err conftest.$ac_objext \
42628 conftest$ac_exeext conftest.$ac_ext
42630 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42631 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42632 if test $ac_cv_func__spawnlp = yes; then
42634 cat >>confdefs.h <<\_ACEOF
42635 #define HAVE_SPAWNLP 1
42641 echo "$as_me:$LINENO: checking for _snprintf" >&5
42642 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42643 if test "${ac_cv_func__snprintf+set}" = set; then
42644 echo $ECHO_N "(cached) $ECHO_C" >&6
42646 cat >conftest.$ac_ext <<_ACEOF
42649 cat confdefs.h >>conftest.$ac_ext
42650 cat >>conftest.$ac_ext <<_ACEOF
42651 /* end confdefs.h. */
42652 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42654 #define _snprintf innocuous__snprintf
42656 /* System header to define __stub macros and hopefully few prototypes,
42657 which can conflict with char _snprintf (); below.
42658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42659 <limits.h> exists even on freestanding compilers. */
42662 # include <limits.h>
42664 # include <assert.h>
42669 /* Override any gcc2 internal prototype to avoid an error. */
42674 /* We use char because int might match the return type of a gcc2
42675 builtin and then its argument prototype would still apply. */
42677 /* The GNU C library defines this for functions which it implements
42678 to always fail with ENOSYS. Some functions are actually named
42679 something starting with __ and the normal name is an alias. */
42680 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42683 char (*f) () = _snprintf;
42692 return f != _snprintf;
42697 rm -f conftest.$ac_objext conftest$ac_exeext
42698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42699 (eval $ac_link) 2>conftest.er1
42701 grep -v '^ *+' conftest.er1 >conftest.err
42703 cat conftest.err >&5
42704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); } &&
42706 { ac_try='test -z "$ac_c_werror_flag"
42707 || test ! -s conftest.err'
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; } &&
42713 { ac_try='test -s conftest$ac_exeext'
42714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42715 (eval $ac_try) 2>&5
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); }; }; then
42719 ac_cv_func__snprintf=yes
42721 echo "$as_me: failed program was:" >&5
42722 sed 's/^/| /' conftest.$ac_ext >&5
42724 ac_cv_func__snprintf=no
42726 rm -f conftest.err conftest.$ac_objext \
42727 conftest$ac_exeext conftest.$ac_ext
42729 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42730 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42731 if test $ac_cv_func__snprintf = yes; then
42732 ac_cv_func_snprintf=yes
42734 cat >>confdefs.h <<\_ACEOF
42735 #define snprintf _snprintf
42742 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42743 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42744 if test "${ac_cv_func__vsnprintf+set}" = set; then
42745 echo $ECHO_N "(cached) $ECHO_C" >&6
42747 cat >conftest.$ac_ext <<_ACEOF
42750 cat confdefs.h >>conftest.$ac_ext
42751 cat >>conftest.$ac_ext <<_ACEOF
42752 /* end confdefs.h. */
42753 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42755 #define _vsnprintf innocuous__vsnprintf
42757 /* System header to define __stub macros and hopefully few prototypes,
42758 which can conflict with char _vsnprintf (); below.
42759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42760 <limits.h> exists even on freestanding compilers. */
42763 # include <limits.h>
42765 # include <assert.h>
42770 /* Override any gcc2 internal prototype to avoid an error. */
42775 /* We use char because int might match the return type of a gcc2
42776 builtin and then its argument prototype would still apply. */
42777 char _vsnprintf ();
42778 /* The GNU C library defines this for functions which it implements
42779 to always fail with ENOSYS. Some functions are actually named
42780 something starting with __ and the normal name is an alias. */
42781 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42784 char (*f) () = _vsnprintf;
42793 return f != _vsnprintf;
42798 rm -f conftest.$ac_objext conftest$ac_exeext
42799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42800 (eval $ac_link) 2>conftest.er1
42802 grep -v '^ *+' conftest.er1 >conftest.err
42804 cat conftest.err >&5
42805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42806 (exit $ac_status); } &&
42807 { ac_try='test -z "$ac_c_werror_flag"
42808 || test ! -s conftest.err'
42809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42810 (eval $ac_try) 2>&5
42812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42813 (exit $ac_status); }; } &&
42814 { ac_try='test -s conftest$ac_exeext'
42815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42816 (eval $ac_try) 2>&5
42818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819 (exit $ac_status); }; }; then
42820 ac_cv_func__vsnprintf=yes
42822 echo "$as_me: failed program was:" >&5
42823 sed 's/^/| /' conftest.$ac_ext >&5
42825 ac_cv_func__vsnprintf=no
42827 rm -f conftest.err conftest.$ac_objext \
42828 conftest$ac_exeext conftest.$ac_ext
42830 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42831 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42832 if test $ac_cv_func__vsnprintf = yes; then
42833 ac_cv_func_vsnprintf=yes
42835 cat >>confdefs.h <<\_ACEOF
42836 #define vsnprintf _vsnprintf
42844 for ac_func in vprintf
42846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42847 echo "$as_me:$LINENO: checking for $ac_func" >&5
42848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42849 if eval "test \"\${$as_ac_var+set}\" = set"; then
42850 echo $ECHO_N "(cached) $ECHO_C" >&6
42852 cat >conftest.$ac_ext <<_ACEOF
42855 cat confdefs.h >>conftest.$ac_ext
42856 cat >>conftest.$ac_ext <<_ACEOF
42857 /* end confdefs.h. */
42858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42860 #define $ac_func innocuous_$ac_func
42862 /* System header to define __stub macros and hopefully few prototypes,
42863 which can conflict with char $ac_func (); below.
42864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42865 <limits.h> exists even on freestanding compilers. */
42868 # include <limits.h>
42870 # include <assert.h>
42875 /* Override any gcc2 internal prototype to avoid an error. */
42880 /* We use char because int might match the return type of a gcc2
42881 builtin and then its argument prototype would still apply. */
42883 /* The GNU C library defines this for functions which it implements
42884 to always fail with ENOSYS. Some functions are actually named
42885 something starting with __ and the normal name is an alias. */
42886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42889 char (*f) () = $ac_func;
42898 return f != $ac_func;
42903 rm -f conftest.$ac_objext conftest$ac_exeext
42904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42905 (eval $ac_link) 2>conftest.er1
42907 grep -v '^ *+' conftest.er1 >conftest.err
42909 cat conftest.err >&5
42910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42911 (exit $ac_status); } &&
42912 { ac_try='test -z "$ac_c_werror_flag"
42913 || test ! -s conftest.err'
42914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42915 (eval $ac_try) 2>&5
42917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42918 (exit $ac_status); }; } &&
42919 { ac_try='test -s conftest$ac_exeext'
42920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42921 (eval $ac_try) 2>&5
42923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42924 (exit $ac_status); }; }; then
42925 eval "$as_ac_var=yes"
42927 echo "$as_me: failed program was:" >&5
42928 sed 's/^/| /' conftest.$ac_ext >&5
42930 eval "$as_ac_var=no"
42932 rm -f conftest.err conftest.$ac_objext \
42933 conftest$ac_exeext conftest.$ac_ext
42935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42937 if test `eval echo '${'$as_ac_var'}'` = yes; then
42938 cat >>confdefs.h <<_ACEOF
42939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42942 echo "$as_me:$LINENO: checking for _doprnt" >&5
42943 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42944 if test "${ac_cv_func__doprnt+set}" = set; then
42945 echo $ECHO_N "(cached) $ECHO_C" >&6
42947 cat >conftest.$ac_ext <<_ACEOF
42950 cat confdefs.h >>conftest.$ac_ext
42951 cat >>conftest.$ac_ext <<_ACEOF
42952 /* end confdefs.h. */
42953 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42955 #define _doprnt innocuous__doprnt
42957 /* System header to define __stub macros and hopefully few prototypes,
42958 which can conflict with char _doprnt (); below.
42959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42960 <limits.h> exists even on freestanding compilers. */
42963 # include <limits.h>
42965 # include <assert.h>
42970 /* Override any gcc2 internal prototype to avoid an error. */
42975 /* We use char because int might match the return type of a gcc2
42976 builtin and then its argument prototype would still apply. */
42978 /* The GNU C library defines this for functions which it implements
42979 to always fail with ENOSYS. Some functions are actually named
42980 something starting with __ and the normal name is an alias. */
42981 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42984 char (*f) () = _doprnt;
42993 return f != _doprnt;
42998 rm -f conftest.$ac_objext conftest$ac_exeext
42999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43000 (eval $ac_link) 2>conftest.er1
43002 grep -v '^ *+' conftest.er1 >conftest.err
43004 cat conftest.err >&5
43005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006 (exit $ac_status); } &&
43007 { ac_try='test -z "$ac_c_werror_flag"
43008 || test ! -s conftest.err'
43009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43010 (eval $ac_try) 2>&5
43012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013 (exit $ac_status); }; } &&
43014 { ac_try='test -s conftest$ac_exeext'
43015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43016 (eval $ac_try) 2>&5
43018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43019 (exit $ac_status); }; }; then
43020 ac_cv_func__doprnt=yes
43022 echo "$as_me: failed program was:" >&5
43023 sed 's/^/| /' conftest.$ac_ext >&5
43025 ac_cv_func__doprnt=no
43027 rm -f conftest.err conftest.$ac_objext \
43028 conftest$ac_exeext conftest.$ac_ext
43030 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43031 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43032 if test $ac_cv_func__doprnt = yes; then
43034 cat >>confdefs.h <<\_ACEOF
43035 #define HAVE_DOPRNT 1
43045 if test $ac_cv_func_vprintf = yes ; then
43048 for ac_func in snprintf vsnprintf
43050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43051 echo "$as_me:$LINENO: checking for $ac_func" >&5
43052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43053 if eval "test \"\${$as_ac_var+set}\" = set"; then
43054 echo $ECHO_N "(cached) $ECHO_C" >&6
43056 cat >conftest.$ac_ext <<_ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h. */
43062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43064 #define $ac_func innocuous_$ac_func
43066 /* System header to define __stub macros and hopefully few prototypes,
43067 which can conflict with char $ac_func (); below.
43068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43069 <limits.h> exists even on freestanding compilers. */
43072 # include <limits.h>
43074 # include <assert.h>
43079 /* Override any gcc2 internal prototype to avoid an error. */
43084 /* We use char because int might match the return type of a gcc2
43085 builtin and then its argument prototype would still apply. */
43087 /* The GNU C library defines this for functions which it implements
43088 to always fail with ENOSYS. Some functions are actually named
43089 something starting with __ and the normal name is an alias. */
43090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43093 char (*f) () = $ac_func;
43102 return f != $ac_func;
43107 rm -f conftest.$ac_objext conftest$ac_exeext
43108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43109 (eval $ac_link) 2>conftest.er1
43111 grep -v '^ *+' conftest.er1 >conftest.err
43113 cat conftest.err >&5
43114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43115 (exit $ac_status); } &&
43116 { ac_try='test -z "$ac_c_werror_flag"
43117 || test ! -s conftest.err'
43118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43119 (eval $ac_try) 2>&5
43121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43122 (exit $ac_status); }; } &&
43123 { ac_try='test -s conftest$ac_exeext'
43124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43125 (eval $ac_try) 2>&5
43127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43128 (exit $ac_status); }; }; then
43129 eval "$as_ac_var=yes"
43131 echo "$as_me: failed program was:" >&5
43132 sed 's/^/| /' conftest.$ac_ext >&5
43134 eval "$as_ac_var=no"
43136 rm -f conftest.err conftest.$ac_objext \
43137 conftest$ac_exeext conftest.$ac_ext
43139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43141 if test `eval echo '${'$as_ac_var'}'` = yes; then
43142 cat >>confdefs.h <<_ACEOF
43143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43263 echo "$as_me:$LINENO: checking for $ac_func" >&5
43264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43265 if eval "test \"\${$as_ac_var+set}\" = set"; then
43266 echo $ECHO_N "(cached) $ECHO_C" >&6
43268 cat >conftest.$ac_ext <<_ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h. */
43274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43276 #define $ac_func innocuous_$ac_func
43278 /* System header to define __stub macros and hopefully few prototypes,
43279 which can conflict with char $ac_func (); below.
43280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43281 <limits.h> exists even on freestanding compilers. */
43284 # include <limits.h>
43286 # include <assert.h>
43291 /* Override any gcc2 internal prototype to avoid an error. */
43296 /* We use char because int might match the return type of a gcc2
43297 builtin and then its argument prototype would still apply. */
43299 /* The GNU C library defines this for functions which it implements
43300 to always fail with ENOSYS. Some functions are actually named
43301 something starting with __ and the normal name is an alias. */
43302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43305 char (*f) () = $ac_func;
43314 return f != $ac_func;
43319 rm -f conftest.$ac_objext conftest$ac_exeext
43320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43321 (eval $ac_link) 2>conftest.er1
43323 grep -v '^ *+' conftest.er1 >conftest.err
43325 cat conftest.err >&5
43326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327 (exit $ac_status); } &&
43328 { ac_try='test -z "$ac_c_werror_flag"
43329 || test ! -s conftest.err'
43330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43331 (eval $ac_try) 2>&5
43333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43334 (exit $ac_status); }; } &&
43335 { ac_try='test -s conftest$ac_exeext'
43336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337 (eval $ac_try) 2>&5
43339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340 (exit $ac_status); }; }; then
43341 eval "$as_ac_var=yes"
43343 echo "$as_me: failed program was:" >&5
43344 sed 's/^/| /' conftest.$ac_ext >&5
43346 eval "$as_ac_var=no"
43348 rm -f conftest.err conftest.$ac_objext \
43349 conftest$ac_exeext conftest.$ac_ext
43351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43353 if test `eval echo '${'$as_ac_var'}'` = yes; then
43354 cat >>confdefs.h <<_ACEOF
43355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43364 for ac_func in getopt getpeereid
43366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43367 echo "$as_me:$LINENO: checking for $ac_func" >&5
43368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43369 if eval "test \"\${$as_ac_var+set}\" = set"; then
43370 echo $ECHO_N "(cached) $ECHO_C" >&6
43372 cat >conftest.$ac_ext <<_ACEOF
43375 cat confdefs.h >>conftest.$ac_ext
43376 cat >>conftest.$ac_ext <<_ACEOF
43377 /* end confdefs.h. */
43378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43380 #define $ac_func innocuous_$ac_func
43382 /* System header to define __stub macros and hopefully few prototypes,
43383 which can conflict with char $ac_func (); below.
43384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43385 <limits.h> exists even on freestanding compilers. */
43388 # include <limits.h>
43390 # include <assert.h>
43395 /* Override any gcc2 internal prototype to avoid an error. */
43400 /* We use char because int might match the return type of a gcc2
43401 builtin and then its argument prototype would still apply. */
43403 /* The GNU C library defines this for functions which it implements
43404 to always fail with ENOSYS. Some functions are actually named
43405 something starting with __ and the normal name is an alias. */
43406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43409 char (*f) () = $ac_func;
43418 return f != $ac_func;
43423 rm -f conftest.$ac_objext conftest$ac_exeext
43424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43425 (eval $ac_link) 2>conftest.er1
43427 grep -v '^ *+' conftest.er1 >conftest.err
43429 cat conftest.err >&5
43430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43431 (exit $ac_status); } &&
43432 { ac_try='test -z "$ac_c_werror_flag"
43433 || test ! -s conftest.err'
43434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43435 (eval $ac_try) 2>&5
43437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438 (exit $ac_status); }; } &&
43439 { ac_try='test -s conftest$ac_exeext'
43440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43441 (eval $ac_try) 2>&5
43443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444 (exit $ac_status); }; }; then
43445 eval "$as_ac_var=yes"
43447 echo "$as_me: failed program was:" >&5
43448 sed 's/^/| /' conftest.$ac_ext >&5
43450 eval "$as_ac_var=no"
43452 rm -f conftest.err conftest.$ac_objext \
43453 conftest$ac_exeext conftest.$ac_ext
43455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43457 if test `eval echo '${'$as_ac_var'}'` = yes; then
43458 cat >>confdefs.h <<_ACEOF
43459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43464 "$ac_func.$ac_objext" | \
43465 *" $ac_func.$ac_objext" | \
43466 "$ac_func.$ac_objext "* | \
43467 *" $ac_func.$ac_objext "* ) ;;
43468 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43476 if test "$ac_cv_func_getopt" != yes; then
43477 LIBSRCS="$LIBSRCS getopt.c"
43480 if test "$ac_cv_func_getpeereid" != yes; then
43482 for ac_func in getpeerucred
43484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43485 echo "$as_me:$LINENO: checking for $ac_func" >&5
43486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43487 if eval "test \"\${$as_ac_var+set}\" = set"; then
43488 echo $ECHO_N "(cached) $ECHO_C" >&6
43490 cat >conftest.$ac_ext <<_ACEOF
43493 cat confdefs.h >>conftest.$ac_ext
43494 cat >>conftest.$ac_ext <<_ACEOF
43495 /* end confdefs.h. */
43496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43498 #define $ac_func innocuous_$ac_func
43500 /* System header to define __stub macros and hopefully few prototypes,
43501 which can conflict with char $ac_func (); below.
43502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43503 <limits.h> exists even on freestanding compilers. */
43506 # include <limits.h>
43508 # include <assert.h>
43513 /* Override any gcc2 internal prototype to avoid an error. */
43518 /* We use char because int might match the return type of a gcc2
43519 builtin and then its argument prototype would still apply. */
43521 /* The GNU C library defines this for functions which it implements
43522 to always fail with ENOSYS. Some functions are actually named
43523 something starting with __ and the normal name is an alias. */
43524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43527 char (*f) () = $ac_func;
43536 return f != $ac_func;
43541 rm -f conftest.$ac_objext conftest$ac_exeext
43542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43543 (eval $ac_link) 2>conftest.er1
43545 grep -v '^ *+' conftest.er1 >conftest.err
43547 cat conftest.err >&5
43548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549 (exit $ac_status); } &&
43550 { ac_try='test -z "$ac_c_werror_flag"
43551 || test ! -s conftest.err'
43552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43553 (eval $ac_try) 2>&5
43555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43556 (exit $ac_status); }; } &&
43557 { ac_try='test -s conftest$ac_exeext'
43558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43559 (eval $ac_try) 2>&5
43561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43562 (exit $ac_status); }; }; then
43563 eval "$as_ac_var=yes"
43565 echo "$as_me: failed program was:" >&5
43566 sed 's/^/| /' conftest.$ac_ext >&5
43568 eval "$as_ac_var=no"
43570 rm -f conftest.err conftest.$ac_objext \
43571 conftest$ac_exeext conftest.$ac_ext
43573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43575 if test `eval echo '${'$as_ac_var'}'` = yes; then
43576 cat >>confdefs.h <<_ACEOF
43577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43583 if test "$ac_cv_func_getpeerucred" != yes ; then
43584 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43585 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43586 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43587 echo $ECHO_N "(cached) $ECHO_C" >&6
43589 cat >conftest.$ac_ext <<_ACEOF
43592 cat confdefs.h >>conftest.$ac_ext
43593 cat >>conftest.$ac_ext <<_ACEOF
43594 /* end confdefs.h. */
43595 $ac_includes_default
43596 #ifdef HAVE_SYS_SOCKET_H
43597 #include <sys/socket.h>
43603 static struct msghdr ac_aggr;
43604 if (ac_aggr.msg_accrightslen)
43610 rm -f conftest.$ac_objext
43611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43612 (eval $ac_compile) 2>conftest.er1
43614 grep -v '^ *+' conftest.er1 >conftest.err
43616 cat conftest.err >&5
43617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618 (exit $ac_status); } &&
43619 { ac_try='test -z "$ac_c_werror_flag"
43620 || test ! -s conftest.err'
43621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43622 (eval $ac_try) 2>&5
43624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43625 (exit $ac_status); }; } &&
43626 { ac_try='test -s conftest.$ac_objext'
43627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43628 (eval $ac_try) 2>&5
43630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43631 (exit $ac_status); }; }; then
43632 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43634 echo "$as_me: failed program was:" >&5
43635 sed 's/^/| /' conftest.$ac_ext >&5
43637 cat >conftest.$ac_ext <<_ACEOF
43640 cat confdefs.h >>conftest.$ac_ext
43641 cat >>conftest.$ac_ext <<_ACEOF
43642 /* end confdefs.h. */
43643 $ac_includes_default
43644 #ifdef HAVE_SYS_SOCKET_H
43645 #include <sys/socket.h>
43651 static struct msghdr ac_aggr;
43652 if (sizeof ac_aggr.msg_accrightslen)
43658 rm -f conftest.$ac_objext
43659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43660 (eval $ac_compile) 2>conftest.er1
43662 grep -v '^ *+' conftest.er1 >conftest.err
43664 cat conftest.err >&5
43665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43666 (exit $ac_status); } &&
43667 { ac_try='test -z "$ac_c_werror_flag"
43668 || test ! -s conftest.err'
43669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43670 (eval $ac_try) 2>&5
43672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43673 (exit $ac_status); }; } &&
43674 { ac_try='test -s conftest.$ac_objext'
43675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43676 (eval $ac_try) 2>&5
43678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43679 (exit $ac_status); }; }; then
43680 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43682 echo "$as_me: failed program was:" >&5
43683 sed 's/^/| /' conftest.$ac_ext >&5
43685 ac_cv_member_struct_msghdr_msg_accrightslen=no
43687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43692 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43693 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43695 cat >>confdefs.h <<_ACEOF
43696 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43702 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43703 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43704 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43705 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43706 echo $ECHO_N "(cached) $ECHO_C" >&6
43708 cat >conftest.$ac_ext <<_ACEOF
43711 cat confdefs.h >>conftest.$ac_ext
43712 cat >>conftest.$ac_ext <<_ACEOF
43713 /* end confdefs.h. */
43714 $ac_includes_default
43715 #ifdef HAVE_SYS_SOCKET_H
43716 #include <sys/socket.h>
43722 static struct msghdr ac_aggr;
43723 if (ac_aggr.msg_control)
43729 rm -f conftest.$ac_objext
43730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43731 (eval $ac_compile) 2>conftest.er1
43733 grep -v '^ *+' conftest.er1 >conftest.err
43735 cat conftest.err >&5
43736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43737 (exit $ac_status); } &&
43738 { ac_try='test -z "$ac_c_werror_flag"
43739 || test ! -s conftest.err'
43740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43741 (eval $ac_try) 2>&5
43743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43744 (exit $ac_status); }; } &&
43745 { ac_try='test -s conftest.$ac_objext'
43746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747 (eval $ac_try) 2>&5
43749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750 (exit $ac_status); }; }; then
43751 ac_cv_member_struct_msghdr_msg_control=yes
43753 echo "$as_me: failed program was:" >&5
43754 sed 's/^/| /' conftest.$ac_ext >&5
43756 cat >conftest.$ac_ext <<_ACEOF
43759 cat confdefs.h >>conftest.$ac_ext
43760 cat >>conftest.$ac_ext <<_ACEOF
43761 /* end confdefs.h. */
43762 $ac_includes_default
43763 #ifdef HAVE_SYS_SOCKET_H
43764 #include <sys/socket.h>
43770 static struct msghdr ac_aggr;
43771 if (sizeof ac_aggr.msg_control)
43777 rm -f conftest.$ac_objext
43778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43779 (eval $ac_compile) 2>conftest.er1
43781 grep -v '^ *+' conftest.er1 >conftest.err
43783 cat conftest.err >&5
43784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785 (exit $ac_status); } &&
43786 { ac_try='test -z "$ac_c_werror_flag"
43787 || test ! -s conftest.err'
43788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43789 (eval $ac_try) 2>&5
43791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43792 (exit $ac_status); }; } &&
43793 { ac_try='test -s conftest.$ac_objext'
43794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43795 (eval $ac_try) 2>&5
43797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43798 (exit $ac_status); }; }; then
43799 ac_cv_member_struct_msghdr_msg_control=yes
43801 echo "$as_me: failed program was:" >&5
43802 sed 's/^/| /' conftest.$ac_ext >&5
43804 ac_cv_member_struct_msghdr_msg_control=no
43806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43810 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43811 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43812 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43814 cat >>confdefs.h <<_ACEOF
43815 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43823 LIBSRCS="$LIBSRCS getpeereid.c"
43826 if test "$ac_cv_func_snprintf" != yes ||
43827 test "$ac_cv_func_vsnprintf" != yes; then
43828 if test "$ac_cv_func_snprintf" != yes; then
43830 cat >>confdefs.h <<\_ACEOF
43831 #define snprintf ber_pvt_snprintf
43835 if test "$ac_cv_func_vsnprintf" != yes; then
43837 cat >>confdefs.h <<\_ACEOF
43838 #define vsnprintf ber_pvt_vsnprintf
43845 if test "$ol_enable_slapi" != no ; then
43847 for ac_header in ltdl.h
43849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43851 echo "$as_me:$LINENO: checking for $ac_header" >&5
43852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43854 echo $ECHO_N "(cached) $ECHO_C" >&6
43856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43859 # Is the header compilable?
43860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43862 cat >conftest.$ac_ext <<_ACEOF
43865 cat confdefs.h >>conftest.$ac_ext
43866 cat >>conftest.$ac_ext <<_ACEOF
43867 /* end confdefs.h. */
43868 $ac_includes_default
43869 #include <$ac_header>
43871 rm -f conftest.$ac_objext
43872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43873 (eval $ac_compile) 2>conftest.er1
43875 grep -v '^ *+' conftest.er1 >conftest.err
43877 cat conftest.err >&5
43878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43879 (exit $ac_status); } &&
43880 { ac_try='test -z "$ac_c_werror_flag"
43881 || test ! -s conftest.err'
43882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43883 (eval $ac_try) 2>&5
43885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43886 (exit $ac_status); }; } &&
43887 { ac_try='test -s conftest.$ac_objext'
43888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43889 (eval $ac_try) 2>&5
43891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43892 (exit $ac_status); }; }; then
43893 ac_header_compiler=yes
43895 echo "$as_me: failed program was:" >&5
43896 sed 's/^/| /' conftest.$ac_ext >&5
43898 ac_header_compiler=no
43900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43902 echo "${ECHO_T}$ac_header_compiler" >&6
43904 # Is the header present?
43905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43907 cat >conftest.$ac_ext <<_ACEOF
43910 cat confdefs.h >>conftest.$ac_ext
43911 cat >>conftest.$ac_ext <<_ACEOF
43912 /* end confdefs.h. */
43913 #include <$ac_header>
43915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43918 grep -v '^ *+' conftest.er1 >conftest.err
43920 cat conftest.err >&5
43921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922 (exit $ac_status); } >/dev/null; then
43923 if test -s conftest.err; then
43924 ac_cpp_err=$ac_c_preproc_warn_flag
43925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43932 if test -z "$ac_cpp_err"; then
43933 ac_header_preproc=yes
43935 echo "$as_me: failed program was:" >&5
43936 sed 's/^/| /' conftest.$ac_ext >&5
43938 ac_header_preproc=no
43940 rm -f conftest.err conftest.$ac_ext
43941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43942 echo "${ECHO_T}$ac_header_preproc" >&6
43944 # So? What about this header?
43945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43951 ac_header_preproc=yes
43954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43968 ## ------------------------------------------ ##
43969 ## Report this to the AC_PACKAGE_NAME lists. ##
43970 ## ------------------------------------------ ##
43973 sed "s/^/$as_me: WARNING: /" >&2
43976 echo "$as_me:$LINENO: checking for $ac_header" >&5
43977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43979 echo $ECHO_N "(cached) $ECHO_C" >&6
43981 eval "$as_ac_Header=\$ac_header_preproc"
43983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43988 cat >>confdefs.h <<_ACEOF
43989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43997 if test $ac_cv_header_ltdl_h != yes ; then
43998 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43999 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44000 { (exit 1); exit 1; }; }
44002 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44003 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44004 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44005 echo $ECHO_N "(cached) $ECHO_C" >&6
44007 ac_check_lib_save_LIBS=$LIBS
44008 LIBS="-lltdl $LIBS"
44009 cat >conftest.$ac_ext <<_ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h. */
44016 /* Override any gcc2 internal prototype to avoid an error. */
44020 /* We use char because int might match the return type of a gcc2
44021 builtin and then its argument prototype would still apply. */
44031 rm -f conftest.$ac_objext conftest$ac_exeext
44032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44033 (eval $ac_link) 2>conftest.er1
44035 grep -v '^ *+' conftest.er1 >conftest.err
44037 cat conftest.err >&5
44038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039 (exit $ac_status); } &&
44040 { ac_try='test -z "$ac_c_werror_flag"
44041 || test ! -s conftest.err'
44042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043 (eval $ac_try) 2>&5
44045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046 (exit $ac_status); }; } &&
44047 { ac_try='test -s conftest$ac_exeext'
44048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049 (eval $ac_try) 2>&5
44051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052 (exit $ac_status); }; }; then
44053 ac_cv_lib_ltdl_lt_dlinit=yes
44055 echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44058 ac_cv_lib_ltdl_lt_dlinit=no
44060 rm -f conftest.err conftest.$ac_objext \
44061 conftest$ac_exeext conftest.$ac_ext
44062 LIBS=$ac_check_lib_save_LIBS
44064 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44065 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44066 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44069 LIBSLAPI=libslapi.a
44070 LIBSLAPITOOLS=../libslapi.a
44072 cat >>confdefs.h <<\_ACEOF
44073 #define HAVE_LIBLTDL 1
44078 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44079 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44080 { (exit 1); exit 1; }; }
44085 cat >>confdefs.h <<\_ACEOF
44086 #define LDAP_SLAPI 1
44091 if test "$ol_enable_debug" != no ; then
44092 if test "$ol_enable_debug" = traditional; then
44094 cat >>confdefs.h <<\_ACEOF
44095 #define OLD_DEBUG 1
44100 cat >>confdefs.h <<\_ACEOF
44101 #define LDAP_DEBUG 1
44105 if test "$ol_enable_syslog" = yes ; then
44107 cat >>confdefs.h <<\_ACEOF
44108 #define LDAP_SYSLOG 1
44112 if test "$ol_link_kbind" != no ; then
44114 cat >>confdefs.h <<\_ACEOF
44115 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44119 if test "$ol_enable_proctitle" != no ; then
44121 cat >>confdefs.h <<\_ACEOF
44122 #define LDAP_PROCTITLE 1
44126 if test "$ol_enable_referrals" != no ; then
44128 cat >>confdefs.h <<\_ACEOF
44129 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44133 if test "$ol_enable_local" != no; then
44135 cat >>confdefs.h <<\_ACEOF
44136 #define LDAP_PF_LOCAL 1
44140 if test "$ol_link_ipv6" != no; then
44142 cat >>confdefs.h <<\_ACEOF
44143 #define LDAP_PF_INET6 1
44147 if test "$ol_enable_cleartext" != no ; then
44149 cat >>confdefs.h <<\_ACEOF
44150 #define SLAPD_CLEARTEXT 1
44154 if test "$ol_enable_crypt" != no ; then
44156 cat >>confdefs.h <<\_ACEOF
44157 #define SLAPD_CRYPT 1
44161 if test "$ol_link_spasswd" != no ; then
44163 cat >>confdefs.h <<\_ACEOF
44164 #define SLAPD_SPASSWD 1
44168 if test "$ol_enable_multimaster" != no ; then
44170 cat >>confdefs.h <<\_ACEOF
44171 #define SLAPD_MULTIMASTER 1
44175 if test "$ol_enable_rlookups" != no ; then
44177 cat >>confdefs.h <<\_ACEOF
44178 #define SLAPD_RLOOKUPS 1
44182 if test "$ol_enable_aci" != no ; then
44183 if test $ol_enable_dynacl = no ; then
44184 ol_enable_dynacl=yes
44185 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44186 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44188 if test "$ol_enable_aci" = mod ; then
44189 MFLAG=SLAPD_MOD_DYNAMIC
44190 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44191 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44192 { (exit 1); exit 1; }; }
44194 MFLAG=SLAPD_MOD_STATIC
44196 WITH_ACI_ENABLED=$ol_enable_aci
44198 cat >>confdefs.h <<_ACEOF
44199 #define SLAPD_ACI_ENABLED $MFLAG
44203 WITH_ACI_ENABLED=no
44205 if test "$ol_enable_dynacl" != no ; then
44207 cat >>confdefs.h <<\_ACEOF
44208 #define SLAP_DYNACL 1
44213 if test "$ol_link_modules" != no ; then
44215 cat >>confdefs.h <<\_ACEOF
44216 #define SLAPD_MODULES 1
44220 SLAPD_MODULES_LDFLAGS="-dlopen self"
44224 cat >>confdefs.h <<\_ACEOF
44225 #define SLAPD_MOD_STATIC 1
44229 cat >>confdefs.h <<\_ACEOF
44230 #define SLAPD_MOD_DYNAMIC 2
44234 if test "$ol_enable_bdb" != no ; then
44236 BUILD_BDB=$ol_enable_bdb
44237 if test "$ol_enable_bdb" = mod ; then
44238 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44239 MFLAG=SLAPD_MOD_DYNAMIC
44241 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44242 MFLAG=SLAPD_MOD_STATIC
44245 cat >>confdefs.h <<_ACEOF
44246 #define SLAPD_BDB $MFLAG
44251 if test "$ol_enable_dnssrv" != no ; then
44253 BUILD_DNSSRV=$ol_enable_dnssrv
44254 if test "$ol_enable_dnssrv" = mod ; then
44255 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44256 MFLAG=SLAPD_MOD_DYNAMIC
44258 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44259 MFLAG=SLAPD_MOD_STATIC
44262 cat >>confdefs.h <<_ACEOF
44263 #define SLAPD_DNSSRV $MFLAG
44268 if test "$ol_enable_hdb" != no ; then
44270 BUILD_HDB=$ol_enable_hdb
44271 if test "$ol_enable_hdb" = mod ; then
44272 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44273 MFLAG=SLAPD_MOD_DYNAMIC
44275 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44276 MFLAG=SLAPD_MOD_STATIC
44279 cat >>confdefs.h <<_ACEOF
44280 #define SLAPD_HDB $MFLAG
44285 if test "$ol_enable_ldap" != no ; then
44287 BUILD_LDAP=$ol_enable_ldap
44288 if test "$ol_enable_ldap" = mod ; then
44289 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44290 MFLAG=SLAPD_MOD_DYNAMIC
44292 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44293 MFLAG=SLAPD_MOD_STATIC
44296 cat >>confdefs.h <<_ACEOF
44297 #define SLAPD_LDAP $MFLAG
44302 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44304 BUILD_LDBM=$ol_enable_ldbm
44305 if test "$ol_enable_ldbm" = mod ; then
44306 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44307 MFLAG=SLAPD_MOD_DYNAMIC
44309 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44310 MFLAG=SLAPD_MOD_STATIC
44313 cat >>confdefs.h <<_ACEOF
44314 #define SLAPD_LDBM $MFLAG
44319 if test "$ol_enable_meta" != no ; then
44321 BUILD_META=$ol_enable_meta
44323 if test "$ol_enable_meta" = mod ; then
44324 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44325 MFLAG=SLAPD_MOD_DYNAMIC
44327 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44328 MFLAG=SLAPD_MOD_STATIC
44331 cat >>confdefs.h <<_ACEOF
44332 #define SLAPD_META $MFLAG
44337 if test "$ol_enable_monitor" != no ; then
44339 BUILD_MONITOR=$ol_enable_monitor
44340 if test "$ol_enable_monitor" = mod ; then
44341 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44342 MFLAG=SLAPD_MOD_DYNAMIC
44344 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44345 MFLAG=SLAPD_MOD_STATIC
44348 cat >>confdefs.h <<_ACEOF
44349 #define SLAPD_MONITOR $MFLAG
44354 if test "$ol_enable_null" != no ; then
44356 BUILD_NULL=$ol_enable_null
44357 if test "$ol_enable_null" = mod ; then
44358 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44359 MFLAG=SLAPD_MOD_DYNAMIC
44361 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44362 MFLAG=SLAPD_MOD_STATIC
44365 cat >>confdefs.h <<_ACEOF
44366 #define SLAPD_NULL $MFLAG
44371 if test "$ol_enable_passwd" != no ; then
44373 BUILD_PASSWD=$ol_enable_passwd
44374 if test "$ol_enable_passwd" = mod ; then
44375 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44376 MFLAG=SLAPD_MOD_DYNAMIC
44378 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44379 MFLAG=SLAPD_MOD_STATIC
44382 cat >>confdefs.h <<_ACEOF
44383 #define SLAPD_PASSWD $MFLAG
44388 if test "$ol_link_perl" != no ; then
44390 BUILD_PERL=$ol_enable_perl
44391 if test "$ol_enable_perl" = mod ; then
44392 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44393 MFLAG=SLAPD_MOD_DYNAMIC
44395 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44396 MFLAG=SLAPD_MOD_STATIC
44399 cat >>confdefs.h <<_ACEOF
44400 #define SLAPD_PERL $MFLAG
44405 if test "$ol_enable_relay" != no ; then
44407 BUILD_RELAY=$ol_enable_relay
44408 if test "$ol_enable_relay" = mod ; then
44409 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44410 MFLAG=SLAPD_MOD_DYNAMIC
44412 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44413 MFLAG=SLAPD_MOD_STATIC
44416 cat >>confdefs.h <<_ACEOF
44417 #define SLAPD_RELAY $MFLAG
44422 if test "$ol_enable_shell" != no ; then
44423 if test "$ol_link_threads" != no ; then
44424 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44425 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44428 BUILD_SHELL=$ol_enable_shell
44429 if test "$ol_enable_shell" = mod ; then
44430 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44431 MFLAG=SLAPD_MOD_DYNAMIC
44433 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44434 MFLAG=SLAPD_MOD_STATIC
44437 cat >>confdefs.h <<_ACEOF
44438 #define SLAPD_SHELL $MFLAG
44443 if test "$ol_link_sql" != no ; then
44445 BUILD_SQL=$ol_enable_sql
44446 if test "$ol_enable_sql" = mod; then
44447 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44448 MFLAG=SLAPD_MOD_DYNAMIC
44450 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44451 MFLAG=SLAPD_MOD_STATIC
44454 cat >>confdefs.h <<_ACEOF
44455 #define SLAPD_SQL $MFLAG
44460 if test "$ol_enable_accesslog" != no ; then
44461 BUILD_ACCESSLOG=$ol_enable_accesslog
44462 if test "$ol_enable_accesslog" = mod ; then
44463 MFLAG=SLAPD_MOD_DYNAMIC
44464 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44466 MFLAG=SLAPD_MOD_STATIC
44467 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44470 cat >>confdefs.h <<_ACEOF
44471 #define SLAPD_OVER_ACCESSLOG $MFLAG
44476 if test "$ol_enable_dds" != no ; then
44477 BUILD_DDS=$ol_enable_dds
44478 if test "$ol_enable_dds" = mod ; then
44479 MFLAG=SLAPD_MOD_DYNAMIC
44480 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44482 MFLAG=SLAPD_MOD_STATIC
44483 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44486 cat >>confdefs.h <<_ACEOF
44487 #define SLAPD_OVER_DDS $MFLAG
44492 if test "$ol_enable_denyop" != no ; then
44493 BUILD_DENYOP=$ol_enable_denyop
44494 if test "$ol_enable_denyop" = mod ; then
44495 MFLAG=SLAPD_MOD_DYNAMIC
44496 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44498 MFLAG=SLAPD_MOD_STATIC
44499 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44502 cat >>confdefs.h <<_ACEOF
44503 #define SLAPD_OVER_DENYOP $MFLAG
44508 if test "$ol_enable_dyngroup" != no ; then
44509 BUILD_DYNGROUP=$ol_enable_dyngroup
44510 if test "$ol_enable_dyngroup" = mod ; then
44511 MFLAG=SLAPD_MOD_DYNAMIC
44512 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44514 MFLAG=SLAPD_MOD_STATIC
44515 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44518 cat >>confdefs.h <<_ACEOF
44519 #define SLAPD_OVER_DYNGROUP $MFLAG
44524 if test "$ol_enable_dynlist" != no ; then
44525 BUILD_DYNLIST=$ol_enable_dynlist
44526 if test "$ol_enable_dynlist" = mod ; then
44527 MFLAG=SLAPD_MOD_DYNAMIC
44528 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44530 MFLAG=SLAPD_MOD_STATIC
44531 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44534 cat >>confdefs.h <<_ACEOF
44535 #define SLAPD_OVER_DYNLIST $MFLAG
44540 if test "$ol_enable_lastmod" != no ; then
44541 BUILD_LASTMOD=$ol_enable_lastmod
44542 if test "$ol_enable_lastmod" = mod ; then
44543 MFLAG=SLAPD_MOD_DYNAMIC
44544 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44546 MFLAG=SLAPD_MOD_STATIC
44547 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44550 cat >>confdefs.h <<_ACEOF
44551 #define SLAPD_OVER_LASTMOD $MFLAG
44556 if test "$ol_enable_ppolicy" != no ; then
44557 BUILD_PPOLICY=$ol_enable_ppolicy
44558 if test "$ol_enable_ppolicy" = mod ; then
44559 MFLAG=SLAPD_MOD_DYNAMIC
44560 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44562 MFLAG=SLAPD_MOD_STATIC
44563 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44566 cat >>confdefs.h <<_ACEOF
44567 #define SLAPD_OVER_PPOLICY $MFLAG
44572 if test "$ol_enable_proxycache" != no ; then
44573 BUILD_PROXYCACHE=$ol_enable_proxycache
44574 if test "$ol_enable_proxycache" = mod ; then
44575 MFLAG=SLAPD_MOD_DYNAMIC
44576 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44578 MFLAG=SLAPD_MOD_STATIC
44579 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44582 cat >>confdefs.h <<_ACEOF
44583 #define SLAPD_OVER_PROXYCACHE $MFLAG
44588 if test "$ol_enable_refint" != no ; then
44589 BUILD_REFINT=$ol_enable_refint
44590 if test "$ol_enable_refint" = mod ; then
44591 MFLAG=SLAPD_MOD_DYNAMIC
44592 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44594 MFLAG=SLAPD_MOD_STATIC
44595 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44598 cat >>confdefs.h <<_ACEOF
44599 #define SLAPD_OVER_REFINT $MFLAG
44604 if test "$ol_enable_retcode" != no ; then
44605 BUILD_RETCODE=$ol_enable_retcode
44606 if test "$ol_enable_retcode" = mod ; then
44607 MFLAG=SLAPD_MOD_DYNAMIC
44608 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44610 MFLAG=SLAPD_MOD_STATIC
44611 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44614 cat >>confdefs.h <<_ACEOF
44615 #define SLAPD_OVER_RETCODE $MFLAG
44620 if test "$ol_enable_rwm" != no ; then
44622 BUILD_RWM=$ol_enable_rwm
44623 if test "$ol_enable_rwm" = mod ; then
44624 MFLAG=SLAPD_MOD_DYNAMIC
44625 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44627 MFLAG=SLAPD_MOD_STATIC
44628 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44631 cat >>confdefs.h <<_ACEOF
44632 #define SLAPD_OVER_RWM $MFLAG
44637 if test "$ol_enable_syncprov" != no ; then
44638 BUILD_SYNCPROV=$ol_enable_syncprov
44639 if test "$ol_enable_syncprov" = mod ; then
44640 MFLAG=SLAPD_MOD_DYNAMIC
44641 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44643 MFLAG=SLAPD_MOD_STATIC
44644 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44647 cat >>confdefs.h <<_ACEOF
44648 #define SLAPD_OVER_SYNCPROV $MFLAG
44653 if test "$ol_enable_translucent" != no ; then
44654 BUILD_TRANSLUCENT=$ol_enable_translucent
44655 if test "$ol_enable_translucent" = mod ; then
44656 MFLAG=SLAPD_MOD_DYNAMIC
44657 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44659 MFLAG=SLAPD_MOD_STATIC
44660 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44663 cat >>confdefs.h <<_ACEOF
44664 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44669 if test "$ol_enable_unique" != no ; then
44670 BUILD_UNIQUE=$ol_enable_unique
44671 if test "$ol_enable_unique" = mod ; then
44672 MFLAG=SLAPD_MOD_DYNAMIC
44673 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44675 MFLAG=SLAPD_MOD_STATIC
44676 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44679 cat >>confdefs.h <<_ACEOF
44680 #define SLAPD_OVER_UNIQUE $MFLAG
44685 if test "$ol_enable_valsort" != no ; then
44686 BUILD_VALSORT=$ol_enable_valsort
44687 if test "$ol_enable_valsort" = mod ; then
44688 MFLAG=SLAPD_MOD_DYNAMIC
44689 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44691 MFLAG=SLAPD_MOD_STATIC
44692 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44695 cat >>confdefs.h <<_ACEOF
44696 #define SLAPD_OVER_VALSORT $MFLAG
44701 if test "$ol_enable_slurpd" != no &&
44702 test "$ol_link_threads" != no &&
44703 test $BUILD_SLAPD = yes ; then
44707 if test "$ol_enable_rewrite" != no ; then
44709 cat >>confdefs.h <<\_ACEOF
44710 #define ENABLE_REWRITE 1
44716 if test "$ol_enable_slapi" != no ; then
44718 cat >>confdefs.h <<\_ACEOF
44719 #define ENABLE_SLAPI 1
44723 SLAPD_SLAPI_DEPEND=libslapi.a
44728 if test "$ac_cv_mingw32" = yes ; then
44730 SLAPD_MODULES_LDFLAGS=
44817 # Check whether --with-xxinstall or --without-xxinstall was given.
44818 if test "${with_xxinstall+set}" = set; then
44819 withval="$with_xxinstall"
44824 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"
44827 ac_config_commands="$ac_config_commands default"
44831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44832 # Let make expand exec_prefix.
44833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44837 # trailing colons and then remove the whole line if VPATH becomes empty
44838 # (actually we leave an empty line to preserve line numbers).
44839 if test "x$srcdir" = x.; then
44840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44841 s/:*\$(srcdir):*/:/;
44842 s/:*\${srcdir}:*/:/;
44844 s/^\([^=]*=[ ]*\):*/\1/;
44850 DEFS=-DHAVE_CONFIG_H
44854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44855 # 1. Remove the extension, and $U if already installed.
44856 ac_i=`echo "$ac_i" |
44857 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44859 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44860 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44862 LIBOBJS=$ac_libobjs
44864 LTLIBOBJS=$ac_ltlibobjs
44867 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44868 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44869 Usually this means the macro was only invoked conditionally." >&5
44870 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44871 Usually this means the macro was only invoked conditionally." >&2;}
44872 { (exit 1); exit 1; }; }
44874 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44875 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44876 Usually this means the macro was only invoked conditionally." >&5
44877 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44878 Usually this means the macro was only invoked conditionally." >&2;}
44879 { (exit 1); exit 1; }; }
44881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44882 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44883 Usually this means the macro was only invoked conditionally." >&5
44884 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44885 Usually this means the macro was only invoked conditionally." >&2;}
44886 { (exit 1); exit 1; }; }
44889 : ${CONFIG_STATUS=./config.status}
44890 ac_clean_files_save=$ac_clean_files
44891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44894 cat >$CONFIG_STATUS <<_ACEOF
44896 # Generated by $as_me.
44897 # Run this file to recreate the current configuration.
44898 # Compiler output produced by configure, useful for debugging
44899 # configure, is in config.log if it exists.
44902 ac_cs_recheck=false
44904 SHELL=\${CONFIG_SHELL-$SHELL}
44907 cat >>$CONFIG_STATUS <<\_ACEOF
44908 ## --------------------- ##
44909 ## M4sh Initialization. ##
44910 ## --------------------- ##
44912 # Be Bourne compatible
44913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44916 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44917 # is contrary to our usage. Disable this feature.
44918 alias -g '${1+"$@"}'='"$@"'
44919 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44922 DUALCASE=1; export DUALCASE # for MKS sh
44924 # Support unset when possible.
44925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44932 # Work around bugs in pre-3.0 UWIN ksh.
44933 $as_unset ENV MAIL MAILPATH
44940 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44941 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44942 LC_TELEPHONE LC_TIME
44944 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44945 eval $as_var=C; export $as_var
44951 # Required to use basename.
44952 if expr a : '\(a\)' >/dev/null 2>&1; then
44958 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44959 as_basename=basename
44965 # Name of the executable.
44966 as_me=`$as_basename "$0" ||
44967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44968 X"$0" : 'X\(//\)$' \| \
44969 X"$0" : 'X\(/\)$' \| \
44970 . : '\(.\)' 2>/dev/null ||
44972 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44973 /^X\/\(\/\/\)$/{ s//\1/; q; }
44974 /^X\/\(\/\).*/{ s//\1/; q; }
44978 # PATH needs CR, and LINENO needs CR and PATH.
44979 # Avoid depending upon Character Ranges.
44980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44983 as_cr_digits='0123456789'
44984 as_cr_alnum=$as_cr_Letters$as_cr_digits
44986 # The user is always right.
44987 if test "${PATH_SEPARATOR+set}" != set; then
44988 echo "#! /bin/sh" >conf$$.sh
44989 echo "exit 0" >>conf$$.sh
44991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45000 as_lineno_1=$LINENO
45001 as_lineno_2=$LINENO
45002 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45003 test "x$as_lineno_1" != "x$as_lineno_2" &&
45004 test "x$as_lineno_3" = "x$as_lineno_2" || {
45005 # Find who we are. Look in the path if we contain no path at all
45008 *[\\/]* ) as_myself=$0 ;;
45009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45010 for as_dir in $PATH
45013 test -z "$as_dir" && as_dir=.
45014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45019 # We did not find ourselves, most probably we were run as `sh COMMAND'
45020 # in which case we are not to be found in the path.
45021 if test "x$as_myself" = x; then
45024 if test ! -f "$as_myself"; then
45025 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45026 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45027 { (exit 1); exit 1; }; }
45029 case $CONFIG_SHELL in
45031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45032 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45035 test -z "$as_dir" && as_dir=.
45036 for as_base in sh bash ksh sh5; do
45039 if ("$as_dir/$as_base" -c '
45040 as_lineno_1=$LINENO
45041 as_lineno_2=$LINENO
45042 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45043 test "x$as_lineno_1" != "x$as_lineno_2" &&
45044 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45045 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45046 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45047 CONFIG_SHELL=$as_dir/$as_base
45048 export CONFIG_SHELL
45049 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45057 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45058 # uniformly replaced by the line number. The first 'sed' inserts a
45059 # line-number line before each line; the second 'sed' does the real
45060 # work. The second script uses 'N' to pair each line-number line
45061 # with the numbered line, and appends trailing '-' during
45062 # substitution so that $LINENO is not a special case at line end.
45063 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45064 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45065 sed '=' <$as_myself |
45070 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45073 s,^['$as_cr_digits']*\n,,
45074 ' >$as_me.lineno &&
45075 chmod +x $as_me.lineno ||
45076 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45077 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45078 { (exit 1); exit 1; }; }
45080 # Don't try to exec as it changes $[0], causing all sort of problems
45081 # (the dirname of $[0] is not the place where we might find the
45082 # original and so on. Autoconf is especially sensible to this).
45084 # Exit status is that of the last command.
45089 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45090 *c*,-n*) ECHO_N= ECHO_C='
45092 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45093 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45096 if expr a : '\(a\)' >/dev/null 2>&1; then
45102 rm -f conf$$ conf$$.exe conf$$.file
45104 if ln -s conf$$.file conf$$ 2>/dev/null; then
45105 # We could just check for DJGPP; but this test a) works b) is more generic
45106 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45107 if test -f conf$$.exe; then
45108 # Don't use ln at all; we don't have any links
45113 elif ln conf$$.file conf$$ 2>/dev/null; then
45118 rm -f conf$$ conf$$.exe conf$$.file
45120 if mkdir -p . 2>/dev/null; then
45123 test -d ./-p && rmdir ./-p
45127 as_executable_p="test -f"
45129 # Sed expression to map a string onto a valid CPP name.
45130 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45132 # Sed expression to map a string onto a valid variable name.
45133 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45137 # We need space, tab and new line, in precisely that order.
45147 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45148 # report actual input values of CONFIG_FILES etc. instead of their
45149 # values after options handling. Logging --version etc. is OK.
45153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45154 ## Running $as_me. ##
45159 This file was extended by $as_me, which was
45160 generated by GNU Autoconf 2.59. Invocation command line was
45162 CONFIG_FILES = $CONFIG_FILES
45163 CONFIG_HEADERS = $CONFIG_HEADERS
45164 CONFIG_LINKS = $CONFIG_LINKS
45165 CONFIG_COMMANDS = $CONFIG_COMMANDS
45169 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45173 # Files that config.status was made for.
45174 if test -n "$ac_config_files"; then
45175 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45178 if test -n "$ac_config_headers"; then
45179 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45182 if test -n "$ac_config_links"; then
45183 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45186 if test -n "$ac_config_commands"; then
45187 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45190 cat >>$CONFIG_STATUS <<\_ACEOF
45193 \`$as_me' instantiates files from templates according to the
45194 current configuration.
45196 Usage: $0 [OPTIONS] [FILE]...
45198 -h, --help print this help, then exit
45199 -V, --version print version number, then exit
45200 -q, --quiet do not print progress messages
45201 -d, --debug don't remove temporary files
45202 --recheck update $as_me by reconfiguring in the same conditions
45203 --file=FILE[:TEMPLATE]
45204 instantiate the configuration file FILE
45205 --header=FILE[:TEMPLATE]
45206 instantiate the configuration header FILE
45208 Configuration files:
45211 Configuration headers:
45214 Configuration commands:
45217 Report bugs to <bug-autoconf@gnu.org>."
45220 cat >>$CONFIG_STATUS <<_ACEOF
45223 configured by $0, generated by GNU Autoconf 2.59,
45224 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45226 Copyright (C) 2003 Free Software Foundation, Inc.
45227 This config.status script is free software; the Free Software Foundation
45228 gives unlimited permission to copy, distribute and modify it."
45233 cat >>$CONFIG_STATUS <<\_ACEOF
45234 # If no file are specified by the user, then we need to provide default
45235 # value. By we need to know if files were specified by the user.
45241 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45242 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45250 *) # This is not an option, so the user has probably given explicit
45253 ac_need_defaults=false;;
45257 # Handling of the options.
45259 cat >>$CONFIG_STATUS <<\_ACEOF
45260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45262 --version | --vers* | -V )
45263 echo "$ac_cs_version"; exit 0 ;;
45265 # Conflict between --help and --header
45266 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45267 Try \`$0 --help' for more information." >&5
45268 echo "$as_me: error: ambiguous option: $1
45269 Try \`$0 --help' for more information." >&2;}
45270 { (exit 1); exit 1; }; };;
45271 --help | --hel | -h )
45272 echo "$ac_cs_usage"; exit 0 ;;
45273 --debug | --d* | -d )
45275 --file | --fil | --fi | --f )
45277 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45278 ac_need_defaults=false;;
45279 --header | --heade | --head | --hea )
45281 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45282 ac_need_defaults=false;;
45283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45284 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45287 # This is an error.
45288 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45289 Try \`$0 --help' for more information." >&5
45290 echo "$as_me: error: unrecognized option: $1
45291 Try \`$0 --help' for more information." >&2;}
45292 { (exit 1); exit 1; }; } ;;
45294 *) ac_config_targets="$ac_config_targets $1" ;;
45300 ac_configure_extra_args=
45302 if $ac_cs_silent; then
45304 ac_configure_extra_args="$ac_configure_extra_args --silent"
45308 cat >>$CONFIG_STATUS <<_ACEOF
45309 if \$ac_cs_recheck; then
45310 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45311 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45316 cat >>$CONFIG_STATUS <<_ACEOF
45318 # INIT-COMMANDS section.
45321 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45323 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45324 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45331 cat >>$CONFIG_STATUS <<\_ACEOF
45332 for ac_config_target in $ac_config_targets
45334 case "$ac_config_target" in
45335 # Handling of arguments.
45336 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45337 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45338 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45339 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45340 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45341 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45342 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45343 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45344 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45345 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45346 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45347 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45348 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45349 "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" ;;
45350 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45351 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45352 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45353 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45354 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45355 "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" ;;
45356 "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" ;;
45357 "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" ;;
45358 "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" ;;
45359 "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" ;;
45360 "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" ;;
45361 "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" ;;
45362 "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" ;;
45363 "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" ;;
45364 "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" ;;
45365 "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" ;;
45366 "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" ;;
45367 "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" ;;
45368 "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" ;;
45369 "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" ;;
45370 "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" ;;
45371 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45372 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45373 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45374 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45375 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45376 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45377 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45378 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45379 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45380 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45381 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45383 { (exit 1); exit 1; }; };;
45387 # If the user did not use the arguments to specify the items to instantiate,
45388 # then the envvar interface is used. Set only those that are not.
45389 # We use the long form for the default assignment because of an extremely
45390 # bizarre bug on SunOS 4.1.3.
45391 if $ac_need_defaults; then
45392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45397 # Have a temporary directory for convenience. Make it in the build tree
45398 # simply because there is no reason to put it here, and in addition,
45399 # creating and moving files from /tmp can sometimes cause problems.
45400 # Create a temporary directory, and hook for its removal unless debugging.
45403 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45404 trap '{ (exit 1); exit 1; }' 1 2 13 15
45407 # Create a (secure) tmp directory for tmp files.
45410 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45411 test -n "$tmp" && test -d "$tmp"
45414 tmp=./confstat$$-$RANDOM
45415 (umask 077 && mkdir $tmp)
45418 echo "$me: cannot create a temporary directory in ." >&2
45419 { (exit 1); exit 1; }
45424 cat >>$CONFIG_STATUS <<_ACEOF
45427 # CONFIG_FILES section.
45430 # No need to generate the scripts if there are no CONFIG_FILES.
45431 # This happens for instance when ./config.status config.h
45432 if test -n "\$CONFIG_FILES"; then
45433 # Protect against being on the right side of a sed subst in config.status.
45434 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45435 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45436 s,@SHELL@,$SHELL,;t t
45437 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45438 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45439 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45440 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45441 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45442 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45443 s,@exec_prefix@,$exec_prefix,;t t
45444 s,@prefix@,$prefix,;t t
45445 s,@program_transform_name@,$program_transform_name,;t t
45446 s,@bindir@,$bindir,;t t
45447 s,@sbindir@,$sbindir,;t t
45448 s,@libexecdir@,$libexecdir,;t t
45449 s,@datadir@,$datadir,;t t
45450 s,@sysconfdir@,$sysconfdir,;t t
45451 s,@sharedstatedir@,$sharedstatedir,;t t
45452 s,@localstatedir@,$localstatedir,;t t
45453 s,@libdir@,$libdir,;t t
45454 s,@includedir@,$includedir,;t t
45455 s,@oldincludedir@,$oldincludedir,;t t
45456 s,@infodir@,$infodir,;t t
45457 s,@mandir@,$mandir,;t t
45458 s,@build_alias@,$build_alias,;t t
45459 s,@host_alias@,$host_alias,;t t
45460 s,@target_alias@,$target_alias,;t t
45461 s,@DEFS@,$DEFS,;t t
45462 s,@ECHO_C@,$ECHO_C,;t t
45463 s,@ECHO_N@,$ECHO_N,;t t
45464 s,@ECHO_T@,$ECHO_T,;t t
45465 s,@LIBS@,$LIBS,;t t
45466 s,@build@,$build,;t t
45467 s,@build_cpu@,$build_cpu,;t t
45468 s,@build_vendor@,$build_vendor,;t t
45469 s,@build_os@,$build_os,;t t
45470 s,@host@,$host,;t t
45471 s,@host_cpu@,$host_cpu,;t t
45472 s,@host_vendor@,$host_vendor,;t t
45473 s,@host_os@,$host_os,;t t
45474 s,@target@,$target,;t t
45475 s,@target_cpu@,$target_cpu,;t t
45476 s,@target_vendor@,$target_vendor,;t t
45477 s,@target_os@,$target_os,;t t
45478 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45479 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45480 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45481 s,@CYGPATH_W@,$CYGPATH_W,;t t
45482 s,@PACKAGE@,$PACKAGE,;t t
45483 s,@VERSION@,$VERSION,;t t
45484 s,@ACLOCAL@,$ACLOCAL,;t t
45485 s,@AUTOCONF@,$AUTOCONF,;t t
45486 s,@AUTOMAKE@,$AUTOMAKE,;t t
45487 s,@AUTOHEADER@,$AUTOHEADER,;t t
45488 s,@MAKEINFO@,$MAKEINFO,;t t
45489 s,@install_sh@,$install_sh,;t t
45490 s,@STRIP@,$STRIP,;t t
45491 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45492 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45493 s,@mkdir_p@,$mkdir_p,;t t
45495 s,@SET_MAKE@,$SET_MAKE,;t t
45496 s,@am__leading_dot@,$am__leading_dot,;t t
45497 s,@AMTAR@,$AMTAR,;t t
45498 s,@am__tar@,$am__tar,;t t
45499 s,@am__untar@,$am__untar,;t t
45500 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45501 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45502 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45503 s,@top_builddir@,$top_builddir,;t t
45504 s,@ldap_subdir@,$ldap_subdir,;t t
45507 s,@CFLAGS@,$CFLAGS,;t t
45508 s,@LDFLAGS@,$LDFLAGS,;t t
45509 s,@CPPFLAGS@,$CPPFLAGS,;t t
45510 s,@ac_ct_CC@,$ac_ct_CC,;t t
45511 s,@EXEEXT@,$EXEEXT,;t t
45512 s,@OBJEXT@,$OBJEXT,;t t
45513 s,@DEPDIR@,$DEPDIR,;t t
45514 s,@am__include@,$am__include,;t t
45515 s,@am__quote@,$am__quote,;t t
45516 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45517 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45518 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45519 s,@CCDEPMODE@,$CCDEPMODE,;t t
45520 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45521 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45522 s,@EGREP@,$EGREP,;t t
45523 s,@LN_S@,$LN_S,;t t
45524 s,@ECHO@,$ECHO,;t t
45525 s,@ac_ct_AR@,$ac_ct_AR,;t t
45526 s,@RANLIB@,$RANLIB,;t t
45527 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45528 s,@DLLTOOL@,$DLLTOOL,;t t
45529 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45531 s,@ac_ct_AS@,$ac_ct_AS,;t t
45532 s,@OBJDUMP@,$OBJDUMP,;t t
45533 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45535 s,@LIBTOOL@,$LIBTOOL,;t t
45536 s,@PERLBIN@,$PERLBIN,;t t
45537 s,@OL_MKDEP@,$OL_MKDEP,;t t
45538 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45539 s,@LTSTATIC@,$LTSTATIC,;t t
45540 s,@LIBOBJS@,$LIBOBJS,;t t
45541 s,@LIBSRCS@,$LIBSRCS,;t t
45542 s,@PLAT@,$PLAT,;t t
45543 s,@WITH_SASL@,$WITH_SASL,;t t
45544 s,@WITH_TLS@,$WITH_TLS,;t t
45545 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45546 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45547 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45548 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45549 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45550 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45551 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45552 s,@BUILD_BDB@,$BUILD_BDB,;t t
45553 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45554 s,@BUILD_HDB@,$BUILD_HDB,;t t
45555 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45556 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45557 s,@BUILD_META@,$BUILD_META,;t t
45558 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45559 s,@BUILD_NULL@,$BUILD_NULL,;t t
45560 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45561 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45562 s,@BUILD_PERL@,$BUILD_PERL,;t t
45563 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45564 s,@BUILD_SQL@,$BUILD_SQL,;t t
45565 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45566 s,@BUILD_DDS@,$BUILD_DDS,;t t
45567 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45568 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45569 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45570 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45571 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45572 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45573 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45574 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45575 s,@BUILD_RWM@,$BUILD_RWM,;t t
45576 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45577 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45578 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45579 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45580 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45581 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45582 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45583 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45584 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45585 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45586 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45587 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45588 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45589 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45590 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45591 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45592 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45593 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45594 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45595 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45596 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45597 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45598 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45599 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45600 s,@SASL_LIBS@,$SASL_LIBS,;t t
45601 s,@TLS_LIBS@,$TLS_LIBS,;t t
45602 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45603 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45604 s,@LIBSLAPI@,$LIBSLAPI,;t t
45605 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45606 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45607 s,@ICU_LIBS@,$ICU_LIBS,;t t
45608 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45609 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45610 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45611 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45612 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45613 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45618 cat >>$CONFIG_STATUS <<\_ACEOF
45619 # Split the substitutions into bite-sized pieces for seds with
45620 # small command number limits, like on Digital OSF/1 and HP-UX.
45621 ac_max_sed_lines=48
45622 ac_sed_frag=1 # Number of current file.
45623 ac_beg=1 # First line for current file.
45624 ac_end=$ac_max_sed_lines # Line after last line for current file.
45627 while $ac_more_lines; do
45628 if test $ac_beg -gt 1; then
45629 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45631 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45633 if test ! -s $tmp/subs.frag; then
45634 ac_more_lines=false
45636 # The purpose of the label and of the branching condition is to
45637 # speed up the sed processing (if there are no `@' at all, there
45638 # is no need to browse any of the substitutions).
45639 # These are the two extra sed commands mentioned above.
45641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45642 if test -z "$ac_sed_cmds"; then
45643 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45645 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45647 ac_sed_frag=`expr $ac_sed_frag + 1`
45649 ac_end=`expr $ac_end + $ac_max_sed_lines`
45652 if test -z "$ac_sed_cmds"; then
45655 fi # test -n "$CONFIG_FILES"
45658 cat >>$CONFIG_STATUS <<\_ACEOF
45659 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45662 - | *:- | *:-:* ) # input from stdin
45664 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45666 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45668 * ) ac_file_in=$ac_file.in ;;
45671 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45674 X"$ac_file" : 'X\(//\)[^/]' \| \
45675 X"$ac_file" : 'X\(//\)$' \| \
45676 X"$ac_file" : 'X\(/\)' \| \
45677 . : '\(.\)' 2>/dev/null ||
45679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45681 /^X\(\/\/\)$/{ s//\1/; q; }
45682 /^X\(\/\).*/{ s//\1/; q; }
45684 { if $as_mkdir_p; then
45689 while test ! -d "$as_dir"; do
45690 as_dirs="$as_dir $as_dirs"
45691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45693 X"$as_dir" : 'X\(//\)[^/]' \| \
45694 X"$as_dir" : 'X\(//\)$' \| \
45695 X"$as_dir" : 'X\(/\)' \| \
45696 . : '\(.\)' 2>/dev/null ||
45698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45700 /^X\(\/\/\)$/{ s//\1/; q; }
45701 /^X\(\/\).*/{ s//\1/; q; }
45704 test ! -n "$as_dirs" || mkdir $as_dirs
45705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45707 { (exit 1); exit 1; }; }; }
45711 if test "$ac_dir" != .; then
45712 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45713 # A "../" for each directory in $ac_dir_suffix.
45714 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45716 ac_dir_suffix= ac_top_builddir=
45720 .) # No --srcdir option. We are building in place.
45722 if test -z "$ac_top_builddir"; then
45725 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45727 [\\/]* | ?:[\\/]* ) # Absolute path.
45728 ac_srcdir=$srcdir$ac_dir_suffix;
45729 ac_top_srcdir=$srcdir ;;
45730 *) # Relative path.
45731 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45732 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45735 # Do not use `cd foo && pwd` to compute absolute paths, because
45736 # the directories may not exist.
45738 .) ac_abs_builddir="$ac_dir";;
45741 .) ac_abs_builddir=`pwd`;;
45742 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45743 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45746 case $ac_abs_builddir in
45747 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45749 case ${ac_top_builddir}. in
45750 .) ac_abs_top_builddir=$ac_abs_builddir;;
45751 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45752 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45755 case $ac_abs_builddir in
45756 .) ac_abs_srcdir=$ac_srcdir;;
45759 .) ac_abs_srcdir=$ac_abs_builddir;;
45760 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45761 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45764 case $ac_abs_builddir in
45765 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45767 case $ac_top_srcdir in
45768 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45769 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45770 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45776 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45777 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45780 if test x"$ac_file" != x-; then
45781 { echo "$as_me:$LINENO: creating $ac_file" >&5
45782 echo "$as_me: creating $ac_file" >&6;}
45785 # Let's still pretend it is `configure' which instantiates (i.e., don't
45786 # use $as_me), people would be surprised to read:
45787 # /* config.h. Generated by config.status. */
45788 if test x"$ac_file" = x-; then
45791 configure_input="$ac_file. "
45793 configure_input=$configure_input"Generated from `echo $ac_file_in |
45794 sed 's,.*/,,'` by configure."
45796 # First look for the input files in the build tree, otherwise in the
45798 ac_file_inputs=`IFS=:
45799 for f in $ac_file_in; do
45801 -) echo $tmp/stdin ;;
45803 # Absolute (can't be DOS-style, as IFS=:)
45804 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45805 echo "$as_me: error: cannot find input file: $f" >&2;}
45806 { (exit 1); exit 1; }; }
45809 if test -f "$f"; then
45812 elif test -f "$srcdir/$f"; then
45817 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45818 echo "$as_me: error: cannot find input file: $f" >&2;}
45819 { (exit 1); exit 1; }; }
45822 done` || { (exit 1); exit 1; }
45824 cat >>$CONFIG_STATUS <<_ACEOF
45828 cat >>$CONFIG_STATUS <<\_ACEOF
45830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45831 s,@configure_input@,$configure_input,;t t
45832 s,@srcdir@,$ac_srcdir,;t t
45833 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45834 s,@top_srcdir@,$ac_top_srcdir,;t t
45835 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45836 s,@builddir@,$ac_builddir,;t t
45837 s,@abs_builddir@,$ac_abs_builddir,;t t
45838 s,@top_builddir@,$ac_top_builddir,;t t
45839 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45840 s,@INSTALL@,$ac_INSTALL,;t t
45841 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45843 if test x"$ac_file" != x-; then
45844 mv $tmp/out $ac_file
45852 cat >>$CONFIG_STATUS <<\_ACEOF
45855 # CONFIG_HEADER section.
45858 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45859 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45861 # ac_d sets the value in "#define NAME VALUE" lines.
45862 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45863 ac_dB='[ ].*$,\1#\2'
45866 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45867 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45868 ac_uB='$,\1#\2define\3'
45872 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45873 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45875 - | *:- | *:-:* ) # input from stdin
45877 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45879 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45881 * ) ac_file_in=$ac_file.in ;;
45884 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45885 echo "$as_me: creating $ac_file" >&6;}
45887 # First look for the input files in the build tree, otherwise in the
45889 ac_file_inputs=`IFS=:
45890 for f in $ac_file_in; do
45892 -) echo $tmp/stdin ;;
45894 # Absolute (can't be DOS-style, as IFS=:)
45895 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45896 echo "$as_me: error: cannot find input file: $f" >&2;}
45897 { (exit 1); exit 1; }; }
45898 # Do quote $f, to prevent DOS paths from being IFS'd.
45901 if test -f "$f"; then
45904 elif test -f "$srcdir/$f"; then
45909 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45910 echo "$as_me: error: cannot find input file: $f" >&2;}
45911 { (exit 1); exit 1; }; }
45914 done` || { (exit 1); exit 1; }
45915 # Remove the trailing spaces.
45916 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45920 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45921 # `conftest.undefs', that substitutes the proper values into
45922 # config.h.in to produce config.h. The first handles `#define'
45923 # templates, and the second `#undef' templates.
45924 # And first: Protect against being on the right side of a sed subst in
45925 # config.status. Protect against being in an unquoted here document
45926 # in config.status.
45927 rm -f conftest.defines conftest.undefs
45928 # Using a here document instead of a string reduces the quoting nightmare.
45929 # Putting comments in sed scripts is not portable.
45931 # `end' is used to avoid that the second main sed command (meant for
45932 # 0-ary CPP macros) applies to n-ary macro definitions.
45933 # See the Autoconf documentation for `clear'.
45934 cat >confdef2sed.sed <<\_ACEOF
45939 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45941 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45944 # If some macros were called several times there might be several times
45945 # the same #defines, which is useless. Nevertheless, we may not want to
45946 # sort them, since we want the *last* AC-DEFINE to be honored.
45947 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45948 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45949 rm -f confdef2sed.sed
45951 # This sed command replaces #undef with comments. This is necessary, for
45952 # example, in the case of _POSIX_SOURCE, which is predefined and required
45953 # on some systems where configure will not decide to define it.
45954 cat >>conftest.undefs <<\_ACEOF
45955 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45958 # Break up conftest.defines because some shells have a limit on the size
45959 # of here documents, and old seds have small limits too (100 cmds).
45960 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45961 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45962 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45963 echo ' :' >>$CONFIG_STATUS
45964 rm -f conftest.tail
45965 while grep . conftest.defines >/dev/null
45967 # Write a limited-size here document to $tmp/defines.sed.
45968 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45969 # Speed up: don't consider the non `#define' lines.
45970 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
45971 # Work around the forget-to-reset-the-flag bug.
45972 echo 't clr' >>$CONFIG_STATUS
45973 echo ': clr' >>$CONFIG_STATUS
45974 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45976 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45978 mv $tmp/out $tmp/in
45980 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45981 rm -f conftest.defines
45982 mv conftest.tail conftest.defines
45984 rm -f conftest.defines
45985 echo ' fi # grep' >>$CONFIG_STATUS
45986 echo >>$CONFIG_STATUS
45988 # Break up conftest.undefs because some shells have a limit on the size
45989 # of here documents, and old seds have small limits too (100 cmds).
45990 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45991 rm -f conftest.tail
45992 while grep . conftest.undefs >/dev/null
45994 # Write a limited-size here document to $tmp/undefs.sed.
45995 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45996 # Speed up: don't consider the non `#undef'
45997 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
45998 # Work around the forget-to-reset-the-flag bug.
45999 echo 't clr' >>$CONFIG_STATUS
46000 echo ': clr' >>$CONFIG_STATUS
46001 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46003 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46005 mv $tmp/out $tmp/in
46007 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46008 rm -f conftest.undefs
46009 mv conftest.tail conftest.undefs
46011 rm -f conftest.undefs
46013 cat >>$CONFIG_STATUS <<\_ACEOF
46014 # Let's still pretend it is `configure' which instantiates (i.e., don't
46015 # use $as_me), people would be surprised to read:
46016 # /* config.h. Generated by config.status. */
46017 if test x"$ac_file" = x-; then
46018 echo "/* Generated by configure. */" >$tmp/config.h
46020 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46022 cat $tmp/in >>$tmp/config.h
46024 if test x"$ac_file" != x-; then
46025 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46026 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46027 echo "$as_me: $ac_file is unchanged" >&6;}
46029 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46031 X"$ac_file" : 'X\(//\)[^/]' \| \
46032 X"$ac_file" : 'X\(//\)$' \| \
46033 X"$ac_file" : 'X\(/\)' \| \
46034 . : '\(.\)' 2>/dev/null ||
46036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46038 /^X\(\/\/\)$/{ s//\1/; q; }
46039 /^X\(\/\).*/{ s//\1/; q; }
46041 { if $as_mkdir_p; then
46046 while test ! -d "$as_dir"; do
46047 as_dirs="$as_dir $as_dirs"
46048 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46050 X"$as_dir" : 'X\(//\)[^/]' \| \
46051 X"$as_dir" : 'X\(//\)$' \| \
46052 X"$as_dir" : 'X\(/\)' \| \
46053 . : '\(.\)' 2>/dev/null ||
46055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46057 /^X\(\/\/\)$/{ s//\1/; q; }
46058 /^X\(\/\).*/{ s//\1/; q; }
46061 test ! -n "$as_dirs" || mkdir $as_dirs
46062 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46063 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46064 { (exit 1); exit 1; }; }; }
46067 mv $tmp/config.h $ac_file
46071 rm -f $tmp/config.h
46073 # Compute $ac_file's index in $config_headers.
46075 for _am_header in $config_headers :; do
46076 case $_am_header in
46077 $ac_file | $ac_file:* )
46080 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46083 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46084 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46085 X$ac_file : 'X\(//\)[^/]' \| \
46086 X$ac_file : 'X\(//\)$' \| \
46087 X$ac_file : 'X\(/\)' \| \
46088 . : '\(.\)' 2>/dev/null ||
46090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46092 /^X\(\/\/\)$/{ s//\1/; q; }
46093 /^X\(\/\).*/{ s//\1/; q; }
46094 s/.*/./; q'`/stamp-h$_am_stamp_count
46097 cat >>$CONFIG_STATUS <<\_ACEOF
46100 # CONFIG_COMMANDS section.
46102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46105 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46107 X"$ac_dest" : 'X\(//\)[^/]' \| \
46108 X"$ac_dest" : 'X\(//\)$' \| \
46109 X"$ac_dest" : 'X\(/\)' \| \
46110 . : '\(.\)' 2>/dev/null ||
46112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46114 /^X\(\/\/\)$/{ s//\1/; q; }
46115 /^X\(\/\).*/{ s//\1/; q; }
46117 { if $as_mkdir_p; then
46122 while test ! -d "$as_dir"; do
46123 as_dirs="$as_dir $as_dirs"
46124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46126 X"$as_dir" : 'X\(//\)[^/]' \| \
46127 X"$as_dir" : 'X\(//\)$' \| \
46128 X"$as_dir" : 'X\(/\)' \| \
46129 . : '\(.\)' 2>/dev/null ||
46131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46133 /^X\(\/\/\)$/{ s//\1/; q; }
46134 /^X\(\/\).*/{ s//\1/; q; }
46137 test ! -n "$as_dirs" || mkdir $as_dirs
46138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46140 { (exit 1); exit 1; }; }; }
46144 if test "$ac_dir" != .; then
46145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46146 # A "../" for each directory in $ac_dir_suffix.
46147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46149 ac_dir_suffix= ac_top_builddir=
46153 .) # No --srcdir option. We are building in place.
46155 if test -z "$ac_top_builddir"; then
46158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46160 [\\/]* | ?:[\\/]* ) # Absolute path.
46161 ac_srcdir=$srcdir$ac_dir_suffix;
46162 ac_top_srcdir=$srcdir ;;
46163 *) # Relative path.
46164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46168 # Do not use `cd foo && pwd` to compute absolute paths, because
46169 # the directories may not exist.
46171 .) ac_abs_builddir="$ac_dir";;
46174 .) ac_abs_builddir=`pwd`;;
46175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46179 case $ac_abs_builddir in
46180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46182 case ${ac_top_builddir}. in
46183 .) ac_abs_top_builddir=$ac_abs_builddir;;
46184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46188 case $ac_abs_builddir in
46189 .) ac_abs_srcdir=$ac_srcdir;;
46192 .) ac_abs_srcdir=$ac_abs_builddir;;
46193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46197 case $ac_abs_builddir in
46198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46200 case $ac_top_srcdir in
46201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46208 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46209 echo "$as_me: executing $ac_dest commands" >&6;}
46211 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46212 # Strip MF so we end up with the name of the file.
46213 mf=`echo "$mf" | sed -e 's/:.*$//'`
46214 # Check whether this is an Automake generated Makefile or not.
46215 # We used to match only the files named `Makefile.in', but
46216 # some people rename them; so instead we look at the file content.
46217 # Grep'ing the first line is not enough: some people post-process
46218 # each Makefile.in and add a new line on top of each file to say so.
46219 # So let's grep whole file.
46220 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46221 dirpart=`(dirname "$mf") 2>/dev/null ||
46222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46223 X"$mf" : 'X\(//\)[^/]' \| \
46224 X"$mf" : 'X\(//\)$' \| \
46225 X"$mf" : 'X\(/\)' \| \
46226 . : '\(.\)' 2>/dev/null ||
46228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46230 /^X\(\/\/\)$/{ s//\1/; q; }
46231 /^X\(\/\).*/{ s//\1/; q; }
46236 # Extract the definition of DEPDIR, am__include, and am__quote
46237 # from the Makefile without running `make'.
46238 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46239 test -z "$DEPDIR" && continue
46240 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46241 test -z "am__include" && continue
46242 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46243 # When using ansi2knr, U may be empty or an underscore; expand it
46244 U=`sed -n 's/^U = //p' < "$mf"`
46245 # Find all dependency output files, they are included files with
46246 # $(DEPDIR) in their names. We invoke sed twice because it is the
46247 # simplest approach to changing $(DEPDIR) to its actual value in the
46249 for file in `sed -n "
46250 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46251 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46252 # Make sure the directory exists.
46253 test -f "$dirpart/$file" && continue
46254 fdir=`(dirname "$file") 2>/dev/null ||
46255 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46256 X"$file" : 'X\(//\)[^/]' \| \
46257 X"$file" : 'X\(//\)$' \| \
46258 X"$file" : 'X\(/\)' \| \
46259 . : '\(.\)' 2>/dev/null ||
46261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46263 /^X\(\/\/\)$/{ s//\1/; q; }
46264 /^X\(\/\).*/{ s//\1/; q; }
46266 { if $as_mkdir_p; then
46267 mkdir -p $dirpart/$fdir
46269 as_dir=$dirpart/$fdir
46271 while test ! -d "$as_dir"; do
46272 as_dirs="$as_dir $as_dirs"
46273 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46275 X"$as_dir" : 'X\(//\)[^/]' \| \
46276 X"$as_dir" : 'X\(//\)$' \| \
46277 X"$as_dir" : 'X\(/\)' \| \
46278 . : '\(.\)' 2>/dev/null ||
46280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46282 /^X\(\/\/\)$/{ s//\1/; q; }
46283 /^X\(\/\).*/{ s//\1/; q; }
46286 test ! -n "$as_dirs" || mkdir $as_dirs
46287 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46288 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46289 { (exit 1); exit 1; }; }; }
46291 # echo "creating $dirpart/$file"
46292 echo '# dummy' > "$dirpart/$file"
46299 BACKENDSC="servers/slapd/backends.c"
46300 echo "Making $BACKENDSC"
46302 cat > $BACKENDSC << ENDX
46303 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46305 * Copyright 1998-2006 The OpenLDAP Foundation.
46306 * All rights reserved.
46308 * Redistribution and use in source and binary forms, with or without
46309 * modification, are permitted only as authorized by the OpenLDAP
46312 * A copy of this license is available in the file LICENSE in the
46313 * top-level directory of the distribution or, alternatively, at
46314 * <http://www.OpenLDAP.org/license.html>.
46316 /* This file is automatically generated by configure; please do not edit. */
46318 #include "portable.h"
46322 if test "${STATIC_BACKENDS}"; then
46323 for b in config ${STATIC_BACKENDS}; do
46324 bb=`echo "${b}" | sed -e 's/back-//'`
46325 cat >> $BACKENDSC << ENDX
46326 extern BI_init ${bb}_back_initialize;
46330 cat >> $BACKENDSC << ENDX
46332 BackendInfo slap_binfo[] = {
46335 for b in config ${STATIC_BACKENDS}; do
46336 bb=`echo "${b}" | sed -e 's/back-//'`
46337 echo " Add ${bb} ..."
46338 cat >> $BACKENDSC << ENDX
46339 { "${bb}", ${bb}_back_initialize },
46343 cat >> $BACKENDSC << ENDX
46347 /* end of generated file */
46350 OVERLAYSC="servers/slapd/overlays/statover.c"
46351 echo "Making $OVERLAYSC"
46353 cat > $OVERLAYSC << ENDX
46354 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46356 * Copyright 1998-2006 The OpenLDAP Foundation.
46357 * All rights reserved.
46359 * Redistribution and use in source and binary forms, with or without
46360 * modification, are permitted only as authorized by the OpenLDAP
46363 * A copy of this license is available in the file LICENSE in the
46364 * top-level directory of the distribution or, alternatively, at
46365 * <http://www.OpenLDAP.org/license.html>.
46367 /* This file is automatically generated by configure; please do not edit. */
46369 #include "portable.h"
46373 if test "${STATIC_OVERLAYS}"; then
46374 for o in ${STATIC_OVERLAYS}; do
46375 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46376 cat >> $OVERLAYSC << ENDX
46377 extern OV_init ${oo}_initialize;
46382 cat >> $OVERLAYSC << ENDX
46384 OverlayInit slap_oinfo[] = {
46387 if test "${STATIC_OVERLAYS}"; then
46388 for o in ${STATIC_OVERLAYS}; do
46389 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46390 echo " Add ${oo} ..."
46391 cat >> $OVERLAYSC << ENDX
46392 { "${oo}", ${oo}_initialize },
46397 cat >> $OVERLAYSC << ENDX
46401 /* end of generated file */
46404 echo Please run \"make depend\" to build dependencies
46410 cat >>$CONFIG_STATUS <<\_ACEOF
46412 { (exit 0); exit 0; }
46414 chmod +x $CONFIG_STATUS
46415 ac_clean_files=$ac_clean_files_save
46418 # configure is writing to config.log, and then calls config.status.
46419 # config.status does its own redirection, appending to config.log.
46420 # Unfortunately, on DOS this fails, as config.log is still kept open
46421 # by configure, so config.status won't be able to write to it; its
46422 # output is simply discarded. So we exec the FD to /dev/null,
46423 # effectively closing config.log, so it can be properly (re)opened and
46424 # appended to by config.status. When coming back to configure, we
46425 # need to make the FD available again.
46426 if test "$no_create" != yes; then
46428 ac_config_status_args=
46429 test "$silent" = yes &&
46430 ac_config_status_args="$ac_config_status_args --quiet"
46432 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46434 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46435 # would make configure fail if this is the last instruction.
46436 $ac_cs_success || { (exit 1); exit 1; }