2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.620 2006/01/06 17:01:12 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_dynacl = yes ; then
3692 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3695 if test $ol_enable_aci != no ; then
3696 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3699 if test $ol_enable_ldbm_api != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3703 if test $ol_enable_ldbm_type != auto ; then
3704 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3705 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3707 if test $ol_enable_slurpd = yes ; then
3708 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3709 echo "$as_me: error: slurpd requires slapd" >&2;}
3710 { (exit 1); exit 1; }; }
3712 if test $ol_enable_rewrite = yes ; then
3713 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3716 case "$ol_enable_overlays" in yes | mod)
3717 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3720 for i in $Overlays; do
3721 eval "ol_tmp=\$ol_enable_$i"
3722 if test $ol_tmp != no ; then
3723 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3724 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3725 eval "ol_enable_$i=no"
3729 # force settings to no
3734 ol_enable_modules=no
3735 ol_enable_multimaster=no
3736 ol_enable_rlookups=no
3739 ol_enable_wrappers=no
3741 ol_enable_ldbm_api=no
3742 ol_enable_ldbm_type=no
3746 ol_enable_rewrite=no
3748 elif test $ol_enable_ldbm = no ; then
3750 if test $ol_enable_ldbm_api != auto ; then
3751 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3752 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3755 if test $ol_enable_ldbm_type != auto ; then
3756 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3757 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3760 if test $ol_enable_modules != yes &&
3761 test $ol_enable_bdb = no &&
3762 test $ol_enable_dnssrv = no &&
3763 test $ol_enable_hdb = no &&
3764 test $ol_enable_ldap = no &&
3765 test $ol_enable_meta = no &&
3766 test $ol_enable_monitor = no &&
3767 test $ol_enable_null = no &&
3768 test $ol_enable_passwd = no &&
3769 test $ol_enable_perl = no &&
3770 test $ol_enable_relay = no &&
3771 test $ol_enable_shell = no &&
3772 test $ol_enable_sql = no ; then
3774 if test $ol_enable_slapd = yes ; then
3775 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3776 echo "$as_me: error: slapd requires a backend" >&2;}
3777 { (exit 1); exit 1; }; }
3779 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3780 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3785 ol_enable_ldbm_api=no
3786 ol_enable_ldbm_type=no
3788 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3789 ol_enable_ldbm_api=berkeley
3793 if test $ol_enable_ldbm_api = gdbm &&
3794 test $ol_enable_ldbm_type = btree ; then
3795 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3796 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3797 { (exit 1); exit 1; }; }
3799 if test $ol_enable_ldbm_api = mdbm &&
3800 test $ol_enable_ldbm_type = btree ; then
3801 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3802 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3803 { (exit 1); exit 1; }; }
3805 if test $ol_enable_ldbm_api = ndbm &&
3806 test $ol_enable_ldbm_type = btree ; then
3807 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3808 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3809 { (exit 1); exit 1; }; }
3812 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3813 if test $ol_enable_ldbm_api = auto ; then
3814 ol_enable_ldbm_api=berkeley
3815 elif test $ol_enable_ldbm_api != berkeley ; then
3816 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3817 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3818 { (exit 1); exit 1; }; }
3823 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3824 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3825 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3826 { (exit 1); exit 1; }; }
3829 if test $ol_enable_slurpd = yes ; then
3830 if test $ol_with_threads = no ; then
3831 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3832 echo "$as_me: error: slurpd requires threads" >&2;}
3833 { (exit 1); exit 1; }; }
3837 if test $ol_enable_lmpasswd = yes ; then
3838 if test $ol_with_tls = no ; then
3839 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3840 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3841 { (exit 1); exit 1; }; }
3845 if test $ol_enable_kbind = yes ; then
3846 if test $ol_with_kerberos = no ; then
3847 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3848 echo "$as_me: error: options require --with-kerberos" >&2;}
3849 { (exit 1); exit 1; }; }
3850 elif test $ol_with_kerberos = auto ; then
3851 ol_with_kerberos=yes
3854 elif test $ol_enable_kbind = no ; then
3855 if test $ol_with_kerberos = auto ; then
3857 elif test $ol_with_kerberos != no ; then
3858 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3859 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3864 if test $ol_enable_spasswd = yes ; then
3865 if test $ol_with_cyrus_sasl = no ; then
3866 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3867 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3868 { (exit 1); exit 1; }; }
3870 ol_with_cyrus_sasl=yes
3873 echo "$as_me:$LINENO: result: done" >&5
3874 echo "${ECHO_T}done" >&6
3918 BUILD_TRANSLUCENT=no
3922 SLAPD_STATIC_OVERLAYS=
3923 SLAPD_DYNAMIC_OVERLAYS=
3925 SLAPD_MODULES_LDFLAGS=
3926 SLAPD_MODULES_CPPFLAGS=
3928 SLAPD_STATIC_BACKENDS=back-ldif
3929 SLAPD_DYNAMIC_BACKENDS=
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_MKVERSION 1
3964 *-*-aix*) if test -z "$CC" ; then
3965 case "$ol_with_threads" in
3966 auto | yes | posix) ol_aix_threads=yes ;;
3972 if test $ol_aix_threads = yes ; then
3973 if test -z "${CC}" ; then
3974 for ac_prog in cc_r xlc_r cc
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_CC+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC="$CC" # Let the user override the test.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_CC="$ac_prog"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 if test -n "$CC"; then
4004 echo "$as_me:$LINENO: result: $CC" >&5
4005 echo "${ECHO_T}$CC" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4011 test -n "$CC" && break
4015 if test "$CC" = cc ; then
4016 if test $ol_with_threads != auto ; then
4017 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4018 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4019 { (exit 1); exit 1; }; }
4021 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4022 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4028 case ${CC} in cc_r | xlc_r)
4029 ol_with_threads=posix
4030 ol_cv_pthread_create=yes
4035 if test -z "${CC}"; then
4036 for ac_prog in cc gcc
4038 # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy $ac_prog; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_CC+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_CC="$ac_prog"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 if test -n "$CC"; then
4066 echo "$as_me:$LINENO: result: $CC" >&5
4067 echo "${ECHO_T}$CC" >&6
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4073 test -n "$CC" && break
4075 test -n "$CC" || CC="missing"
4078 if test "${CC}" = "missing" ; then
4079 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4080 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4081 { (exit 1); exit 1; }; }
4085 if test -z "${AR}"; then
4086 for ac_prog in ar gar
4088 # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_AR+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if test -n "$AR"; then
4096 ac_cv_prog_AR="$AR" # Let the user override the test.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_AR="$ac_prog"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$AR"; then
4116 echo "$as_me:$LINENO: result: $AR" >&5
4117 echo "${ECHO_T}$AR" >&6
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4123 test -n "$AR" && break
4125 test -n "$AR" || AR="missing"
4128 if test "${AR}" = "missing" ; then
4129 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4130 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4131 { (exit 1); exit 1; }; }
4139 # Check whether --enable-fast-install or --disable-fast-install was given.
4140 if test "${enable_fast_install+set}" = set; then
4141 enableval="$enable_fast_install"
4142 p=${PACKAGE-default}
4144 yes) enable_fast_install=yes ;;
4145 no) enable_fast_install=no ;;
4147 enable_fast_install=no
4148 # Look at the argument we got. We use all the common list separators.
4149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4150 for pkg in $enableval; do
4152 if test "X$pkg" = "X$p"; then
4153 enable_fast_install=yes
4160 enable_fast_install=yes
4163 DEPDIR="${am__leading_dot}deps"
4165 ac_config_commands="$ac_config_commands depfiles"
4168 am_make=${MAKE-make}
4169 cat > confinc << 'END'
4174 # If we don't find an include directive, just comment out the code.
4175 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4176 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4180 # First try GNU make style include.
4181 echo "include confinc" > confmf
4182 # We grep out `Entering directory' and `Leaving directory'
4183 # messages which can occur if `w' ends up in MAKEFLAGS.
4184 # In particular we don't look at `^make:' because GNU make might
4185 # be invoked under some other name (usually "gmake"), in which
4186 # case it prints its new name instead of `make'.
4187 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4192 # Now try BSD make style include.
4193 if test "$am__include" = "#"; then
4194 echo '.include "confinc"' > confmf
4195 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4196 am__include=.include
4203 echo "$as_me:$LINENO: result: $_am_result" >&5
4204 echo "${ECHO_T}$_am_result" >&6
4205 rm -f confinc confmf
4207 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4208 if test "${enable_dependency_tracking+set}" = set; then
4209 enableval="$enable_dependency_tracking"
4212 if test "x$enable_dependency_tracking" != xno; then
4213 am_depcomp="$ac_aux_dir/depcomp"
4218 if test "x$enable_dependency_tracking" != xno; then
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_prog_CC+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CC"; then
4262 echo "$as_me:$LINENO: result: $CC" >&5
4263 echo "${ECHO_T}$CC" >&6
4265 echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4270 if test -z "$ac_cv_prog_CC"; then
4272 # Extract the first word of "gcc", so it can be a program name with args.
4273 set dummy gcc; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 if test -n "$ac_ct_CC"; then
4280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_ac_ct_CC="gcc"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4299 if test -n "$ac_ct_CC"; then
4300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4301 echo "${ECHO_T}$ac_ct_CC" >&6
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4312 if test -z "$CC"; then
4313 if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4315 set dummy ${ac_tool_prefix}cc; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_CC+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 if test -n "$CC"; then
4322 ac_cv_prog_CC="$CC" # Let the user override the test.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_CC="${ac_tool_prefix}cc"
4332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 if test -n "$CC"; then
4342 echo "$as_me:$LINENO: result: $CC" >&5
4343 echo "${ECHO_T}$CC" >&6
4345 echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4350 if test -z "$ac_cv_prog_CC"; then
4352 # Extract the first word of "cc", so it can be a program name with args.
4353 set dummy cc; ac_word=$2
4354 echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 if test -n "$ac_ct_CC"; then
4360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_ac_ct_CC="cc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4379 if test -n "$ac_ct_CC"; then
4380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4381 echo "${ECHO_T}$ac_ct_CC" >&6
4383 echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4393 if test -z "$CC"; then
4394 # Extract the first word of "cc", so it can be a program name with args.
4395 set dummy cc; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_CC+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4413 ac_prog_rejected=yes
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test $ac_prog_rejected = yes; then
4424 # We found a bogon in the path, so make sure we never use it.
4425 set dummy $ac_cv_prog_CC
4427 if test $# != 0; then
4428 # We chose a different compiler from the bogus one.
4429 # However, it has the same basename, so the bogon will be chosen
4430 # first if we set CC to just the basename; use the full file name.
4432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4438 if test -n "$CC"; then
4439 echo "$as_me:$LINENO: result: $CC" >&5
4440 echo "${ECHO_T}$CC" >&6
4442 echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4447 if test -z "$CC"; then
4448 if test -n "$ac_tool_prefix"; then
4451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453 echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455 if test "${ac_cv_prog_CC+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 if test -n "$CC"; then
4479 echo "$as_me:$LINENO: result: $CC" >&5
4480 echo "${ECHO_T}$CC" >&6
4482 echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4486 test -n "$CC" && break
4489 if test -z "$CC"; then
4493 # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$ac_ct_CC"; then
4501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_ac_ct_CC="$ac_prog"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4520 if test -n "$ac_ct_CC"; then
4521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4522 echo "${ECHO_T}$ac_ct_CC" >&6
4524 echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4528 test -n "$ac_ct_CC" && break
4537 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4538 See \`config.log' for more details." >&5
4539 echo "$as_me: error: no acceptable C compiler found in \$PATH
4540 See \`config.log' for more details." >&2;}
4541 { (exit 1); exit 1; }; }
4543 # Provide some information about the compiler.
4544 echo "$as_me:$LINENO:" \
4545 "checking for C compiler version" >&5
4546 ac_compiler=`set X $ac_compile; echo $2`
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4548 (eval $ac_compiler --version </dev/null >&5) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4553 (eval $ac_compiler -v </dev/null >&5) 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4558 (eval $ac_compiler -V </dev/null >&5) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4578 ac_clean_files_save=$ac_clean_files
4579 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4580 # Try to create an executable without -o first, disregard a.out.
4581 # It will help us diagnose broken compilers, and finding out an intuition
4583 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4584 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4585 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4587 (eval $ac_link_default) 2>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; then
4591 # Find the output, starting from the most likely. This scheme is
4592 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4595 # Be careful to initialize this variable, since it used to be cached.
4596 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4598 # b.out is created by i960 compilers.
4599 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4601 test -f "$ac_file" || continue
4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4606 # This is the source file.
4609 # We found the default executable, but exeext='' is most
4613 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4614 # FIXME: I believe we export ac_cv_exeext for Libtool,
4615 # but it would be cool to find out if it's true. Does anybody
4616 # maintain Libtool? --akim.
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: C compiler cannot create executables
4630 See \`config.log' for more details." >&2;}
4631 { (exit 77); exit 77; }; }
4634 ac_exeext=$ac_cv_exeext
4635 echo "$as_me:$LINENO: result: $ac_file" >&5
4636 echo "${ECHO_T}$ac_file" >&6
4638 # Check the compiler produces executables we can run. If not, either
4639 # the compiler is broken, or we cross compile.
4640 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4641 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4642 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4643 # If not cross compiling, check that we can run a simple program.
4644 if test "$cross_compiling" != yes; then
4645 if { ac_try='./$ac_file'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4653 if test "$cross_compiling" = maybe; then
4656 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4657 If you meant to cross compile, use \`--host'.
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot run C compiled programs.
4660 If you meant to cross compile, use \`--host'.
4661 See \`config.log' for more details." >&2;}
4662 { (exit 1); exit 1; }; }
4666 echo "$as_me:$LINENO: result: yes" >&5
4667 echo "${ECHO_T}yes" >&6
4669 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4670 ac_clean_files=$ac_clean_files_save
4671 # Check the compiler produces executables we can run. If not, either
4672 # the compiler is broken, or we cross compile.
4673 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4674 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4675 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4676 echo "${ECHO_T}$cross_compiling" >&6
4678 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4679 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; then
4685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4686 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4687 # work properly (i.e., refer to `conftest.exe'), while it won't with
4689 for ac_file in conftest.exe conftest conftest.*; do
4690 test -f "$ac_file" || continue
4692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4700 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4703 See \`config.log' for more details." >&2;}
4704 { (exit 1); exit 1; }; }
4707 rm -f conftest$ac_cv_exeext
4708 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4709 echo "${ECHO_T}$ac_cv_exeext" >&6
4711 rm -f conftest.$ac_ext
4712 EXEEXT=$ac_cv_exeext
4714 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4715 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4716 if test "${ac_cv_objext+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4734 rm -f conftest.o conftest.obj
4735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736 (eval $ac_compile) 2>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; then
4740 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4752 See \`config.log' for more details." >&5
4753 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4754 See \`config.log' for more details." >&2;}
4755 { (exit 1); exit 1; }; }
4758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4760 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4761 echo "${ECHO_T}$ac_cv_objext" >&6
4762 OBJEXT=$ac_cv_objext
4764 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4820 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4821 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4822 GCC=`test $ac_compiler_gnu = yes && echo yes`
4823 ac_test_CFLAGS=${CFLAGS+set}
4824 ac_save_CFLAGS=$CFLAGS
4826 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4827 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4828 if test "${ac_cv_prog_cc_g+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_c_werror_flag"
4856 || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4878 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4879 if test "$ac_test_CFLAGS" = set; then
4880 CFLAGS=$ac_save_CFLAGS
4881 elif test $ac_cv_prog_cc_g = yes; then
4882 if test "$GCC" = yes; then
4888 if test "$GCC" = yes; then
4894 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4895 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4896 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_cv_prog_cc_stdc=no
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4909 #include <sys/types.h>
4910 #include <sys/stat.h>
4911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4912 struct buf { int x; };
4913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914 static char *e (p, i)
4920 static char *f (char * (*g) (char **, int), char **p, ...)
4925 s = g (p, va_arg (v,int));
4930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4931 function prototypes and stuff, but not '\xHH' hex character constants.
4932 These don't provoke an error unfortunately, instead are silently treated
4933 as 'x'. The following induces an error, until -std1 is added to get
4934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4935 array size at least. It's necessary to write '\x00'==0 to get something
4936 that's true only with -std1. */
4937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939 int test (int i, double x);
4940 struct s1 {int (*f) (int a);};
4941 struct s2 {int (*f) (double a);};
4942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4948 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4953 # Don't try gcc -ansi; that turns off useful extensions and
4954 # breaks some systems' header files.
4955 # AIX -qlanglvl=ansi
4956 # Ultrix and OSF/1 -std1
4957 # HP-UX 10.20 and later -Ae
4958 # HP-UX older versions -Aa -D_HPUX_SOURCE
4959 # SVR4 -Xc -D__EXTENSIONS__
4960 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4962 CC="$ac_save_CC $ac_arg"
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } &&
4972 { ac_try='test -z "$ac_c_werror_flag"
4973 || test ! -s conftest.err'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; } &&
4979 { ac_try='test -s conftest.$ac_objext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 ac_cv_prog_cc_stdc=$ac_arg
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4992 rm -f conftest.err conftest.$ac_objext
4994 rm -f conftest.$ac_ext conftest.$ac_objext
4999 case "x$ac_cv_prog_cc_stdc" in
5001 echo "$as_me:$LINENO: result: none needed" >&5
5002 echo "${ECHO_T}none needed" >&6 ;;
5004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5005 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5006 CC="$CC $ac_cv_prog_cc_stdc" ;;
5009 # Some people use a C++ compiler to compile C. Since we use `exit',
5010 # in C++ we need to declare it. In case someone uses the same compiler
5011 # for both compiling C and C++ we need to have the C++ compiler decide
5012 # the declaration of exit, since it's the most demanding environment.
5013 cat >conftest.$ac_ext <<_ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>conftest.er1
5022 grep -v '^ *+' conftest.er1 >conftest.err
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest.$ac_objext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 for ac_declaration in \
5042 'extern "C" void std::exit (int) throw (); using std::exit;' \
5043 'extern "C" void std::exit (int); using std::exit;' \
5044 'extern "C" void exit (int) throw ();' \
5045 'extern "C" void exit (int);' \
5048 cat >conftest.$ac_ext <<_ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 cat >conftest.$ac_ext <<_ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -z "$ac_c_werror_flag"
5119 || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5140 if test -n "$ac_declaration"; then
5141 echo '#ifdef __cplusplus' >>confdefs.h
5142 echo $ac_declaration >>confdefs.h
5143 echo '#endif' >>confdefs.h
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158 depcc="$CC" am_compiler_list=
5160 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5166 # We make a subdir and do the tests there. Otherwise we can end up
5167 # making bogus files that we don't know about and never remove. For
5168 # instance it was reported that on HP-UX the gcc test will end up
5169 # making a dummy file named `D' -- because `-MD' means `put the output
5172 # Copy depcomp to subdir because otherwise we won't find it if we're
5173 # using a relative directory.
5174 cp "$am_depcomp" conftest.dir
5176 # We will build objects and dependencies in a subdirectory because
5177 # it helps to detect inapplicable dependency modes. For instance
5178 # both Tru64's cc and ICC support -MD to output dependencies as a
5179 # side effect of compilation, but ICC will put the dependencies in
5180 # the current directory while Tru64 will put them in the object
5184 am_cv_CC_dependencies_compiler_type=none
5185 if test "$am_compiler_list" = ""; then
5186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5188 for depmode in $am_compiler_list; do
5189 # Setup a source with many dependencies, because some compilers
5190 # like to wrap large dependency lists on column 80 (with \), and
5191 # we should not choose a depcomp mode which is confused by this.
5193 # We need to recreate these files for each test, as the compiler may
5194 # overwrite some of them when testing with obscure command lines.
5195 # This happens at least with the AIX C compiler.
5197 for i in 1 2 3 4 5 6; do
5198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5200 # Solaris 8's {/usr,}/bin/sh.
5201 touch sub/conftst$i.h
5203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5207 # after this tag, mechanisms are not by side-effect, so they'll
5208 # only be used when explicitly requested
5209 if test "x$enable_dependency_tracking" = xyes; then
5217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5218 # mode. It turns out that the SunPro C++ compiler does not properly
5219 # handle `-M -o', and we need to detect this.
5220 if depmode=$depmode \
5221 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5223 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5224 >/dev/null 2>conftest.err &&
5225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5226 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5228 # icc doesn't choke on unknown options, it will just issue warnings
5229 # or remarks (even with -Werror). So we grep stderr for any message
5230 # that says an option was ignored or not supported.
5231 # When given -MP, icc 7.0 and 7.1 complain thusly:
5232 # icc: Command line warning: ignoring option '-M'; no argument required
5233 # The diagnosis changed in icc 8.0:
5234 # icc: Command line remark: option '-MP' not supported
5235 if (grep 'ignoring option' conftest.err ||
5236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5237 am_cv_CC_dependencies_compiler_type=$depmode
5246 am_cv_CC_dependencies_compiler_type=none
5250 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5257 test "x$enable_dependency_tracking" != xno \
5258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5260 am__fastdepCC_FALSE='#'
5262 am__fastdepCC_TRUE='#'
5263 am__fastdepCC_FALSE=
5267 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5268 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5269 if test "${lt_cv_path_SED+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 # Loop through the user's path and test for sed and gsed.
5273 # Then use that list of sed's as ones to test for truncation.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir=.
5279 for lt_ac_prog in sed gsed; do
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5282 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5289 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5290 # along with /bin/sed that truncates output.
5291 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5292 test ! -f $lt_ac_sed && continue
5293 cat /dev/null > conftest.in
5295 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5296 # Check for GNU sed and select it if it is found.
5297 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5298 lt_cv_path_SED=$lt_ac_sed
5302 cat conftest.in conftest.in >conftest.tmp
5303 mv conftest.tmp conftest.in
5304 cp conftest.in conftest.nl
5306 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5307 cmp -s conftest.out conftest.nl || break
5308 # 10000 chars as input seems more than enough
5309 test $lt_ac_count -gt 10 && break
5310 lt_ac_count=`expr $lt_ac_count + 1`
5311 if test $lt_ac_count -gt $lt_ac_max; then
5312 lt_ac_max=$lt_ac_count
5313 lt_cv_path_SED=$lt_ac_sed
5321 echo "$as_me:$LINENO: result: $SED" >&5
5322 echo "${ECHO_T}$SED" >&6
5324 echo "$as_me:$LINENO: checking for egrep" >&5
5325 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5326 if test "${ac_cv_prog_egrep+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5330 then ac_cv_prog_egrep='grep -E'
5331 else ac_cv_prog_egrep='egrep'
5334 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5335 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5336 EGREP=$ac_cv_prog_egrep
5340 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5341 if test "${with_gnu_ld+set}" = set; then
5342 withval="$with_gnu_ld"
5343 test "$withval" = no || with_gnu_ld=yes
5348 if test "$GCC" = yes; then
5349 # Check if gcc -print-prog-name=ld gives a path.
5350 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5351 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5354 # gcc leaves a trailing carriage return which upsets mingw
5355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5360 # Accept absolute paths.
5362 re_direlt='/[^/][^/]*/\.\./'
5363 # Canonicalize the pathname of ld
5364 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5365 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5366 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5368 test -z "$LD" && LD="$ac_prog"
5371 # If it fails, then pretend we aren't using GCC.
5375 # If it is relative, then search for the first ld in PATH.
5379 elif test "$with_gnu_ld" = yes; then
5380 echo "$as_me:$LINENO: checking for GNU ld" >&5
5381 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5383 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5384 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5386 if test "${lt_cv_path_LD+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 if test -z "$LD"; then
5390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5391 for ac_dir in $PATH; do
5393 test -z "$ac_dir" && ac_dir=.
5394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5395 lt_cv_path_LD="$ac_dir/$ac_prog"
5396 # Check to see if the program is GNU ld. I'd rather use --version,
5397 # but apparently some variants of GNU ld only accept -v.
5398 # Break only if it was the GNU/non-GNU ld that we prefer.
5399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5400 *GNU* | *'with BFD'*)
5401 test "$with_gnu_ld" != no && break
5404 test "$with_gnu_ld" != yes && break
5411 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5416 if test -n "$LD"; then
5417 echo "$as_me:$LINENO: result: $LD" >&5
5418 echo "${ECHO_T}$LD" >&6
5420 echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5423 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5424 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5425 { (exit 1); exit 1; }; }
5426 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5427 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5428 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5432 case `$LD -v 2>&1 </dev/null` in
5433 *GNU* | *'with BFD'*)
5434 lt_cv_prog_gnu_ld=yes
5437 lt_cv_prog_gnu_ld=no
5441 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5442 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5443 with_gnu_ld=$lt_cv_prog_gnu_ld
5446 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5447 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5448 if test "${lt_cv_ld_reload_flag+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 lt_cv_ld_reload_flag='-r'
5453 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5454 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5455 reload_flag=$lt_cv_ld_reload_flag
5456 case $reload_flag in
5458 *) reload_flag=" $reload_flag" ;;
5460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5463 if test "$GCC" = yes; then
5464 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5466 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5471 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5472 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5473 if test "${lt_cv_path_NM+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 if test -n "$NM"; then
5477 # Let the user override the test.
5480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5481 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5483 test -z "$ac_dir" && ac_dir=.
5484 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5485 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5486 # Check to see if the nm accepts a BSD-compat flag.
5487 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5488 # nm: unknown option "B" ignored
5489 # Tru64's nm complains that /dev/null is an invalid object file
5490 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5491 */dev/null* | *'Invalid file or object type'*)
5492 lt_cv_path_NM="$tmp_nm -B"
5496 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5498 lt_cv_path_NM="$tmp_nm -p"
5502 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5503 continue # so that we can try to find one that supports BSD flags
5510 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5513 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5514 echo "${ECHO_T}$lt_cv_path_NM" >&6
5517 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5518 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5520 if test "$LN_S" = "ln -s"; then
5521 echo "$as_me:$LINENO: result: yes" >&5
5522 echo "${ECHO_T}yes" >&6
5524 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5525 echo "${ECHO_T}no, using $LN_S" >&6
5528 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5529 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5530 if test "${lt_cv_deplibs_check_method+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 lt_cv_file_magic_cmd='$MAGIC_CMD'
5534 lt_cv_file_magic_test_file=
5535 lt_cv_deplibs_check_method='unknown'
5536 # Need to set the preceding variable on all platforms that support
5537 # interlibrary dependencies.
5538 # 'none' -- dependencies not supported.
5539 # `unknown' -- same as none, but documents that we really don't know.
5540 # 'pass_all' -- all dependencies passed with no checks.
5541 # 'test_compile' -- check by making test program.
5542 # 'file_magic [[regex]]' -- check by looking for files in library path
5543 # which responds to the $file_magic_cmd with a given extended regex.
5544 # If you have `file' or equivalent on your system and you're not sure
5545 # whether `pass_all' will *always* work, you probably want this one.
5549 lt_cv_deplibs_check_method=pass_all
5553 lt_cv_deplibs_check_method=pass_all
5557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5558 lt_cv_file_magic_cmd='/usr/bin/file -L'
5559 lt_cv_file_magic_test_file=/shlib/libc.so
5563 # func_win32_libid is a shell function defined in ltmain.sh
5564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5565 lt_cv_file_magic_cmd='func_win32_libid'
5569 # Base MSYS/MinGW do not provide the 'file' command needed by
5570 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5571 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5572 lt_cv_file_magic_cmd='$OBJDUMP -f'
5575 darwin* | rhapsody*)
5576 lt_cv_deplibs_check_method=pass_all
5579 freebsd* | kfreebsd*-gnu | dragonfly*)
5580 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5583 # Not sure whether the presence of OpenBSD here was a mistake.
5584 # Let's accept both of them until this is cleared up.
5585 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5586 lt_cv_file_magic_cmd=/usr/bin/file
5587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5591 lt_cv_deplibs_check_method=pass_all
5596 lt_cv_deplibs_check_method=pass_all
5599 hpux10.20* | hpux11*)
5600 lt_cv_file_magic_cmd=/usr/bin/file
5603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5604 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607 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]'
5608 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5612 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5617 irix5* | irix6* | nonstopux*)
5619 *-32|*"-32 ") libmagic=32-bit;;
5620 *-n32|*"-n32 ") libmagic=N32;;
5621 *-64|*"-64 ") libmagic=64-bit;;
5622 *) libmagic=never-match;;
5624 lt_cv_deplibs_check_method=pass_all
5627 # This must be Linux ELF.
5629 lt_cv_deplibs_check_method=pass_all
5633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5642 lt_cv_file_magic_cmd=/usr/bin/file
5643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5647 lt_cv_deplibs_check_method=unknown
5651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658 osf3* | osf4* | osf5*)
5659 lt_cv_deplibs_check_method=pass_all
5663 lt_cv_deplibs_check_method=pass_all
5667 lt_cv_deplibs_check_method=pass_all
5670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5671 case $host_vendor in
5673 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]'
5674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5677 lt_cv_deplibs_check_method=pass_all
5680 lt_cv_file_magic_cmd='/bin/file'
5681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5684 lt_cv_file_magic_cmd='/bin/file'
5685 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5686 lt_cv_file_magic_test_file=/lib/libc.so
5689 lt_cv_deplibs_check_method=pass_all
5694 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5695 lt_cv_deplibs_check_method=pass_all
5700 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5701 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5702 file_magic_cmd=$lt_cv_file_magic_cmd
5703 deplibs_check_method=$lt_cv_deplibs_check_method
5704 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5709 # If no C compiler was specified, use CC.
5712 # Allow CC to be a program name with arguments.
5716 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5717 if test "${enable_libtool_lock+set}" = set; then
5718 enableval="$enable_libtool_lock"
5721 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5723 # Some flags need to be propagated to the compiler or linker for good
5727 # Find out which ABI we are using.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 case `/usr/bin/file conftest.$ac_objext` in
5746 # Find out which ABI we are using.
5747 echo '#line 5747 "configure"' > conftest.$ac_ext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; then
5753 if test "$lt_cv_prog_gnu_ld" = yes; then
5754 case `/usr/bin/file conftest.$ac_objext` in
5756 LD="${LD-ld} -melf32bsmip"
5759 LD="${LD-ld} -melf32bmipn32"
5762 LD="${LD-ld} -melf64bmip"
5766 case `/usr/bin/file conftest.$ac_objext` in
5782 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5783 # Find out which ABI we are using.
5784 echo 'int i;' > conftest.$ac_ext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; then
5790 case `/usr/bin/file conftest.o` in
5794 LD="${LD-ld} -m elf_i386"
5796 ppc64-*linux*|powerpc64-*linux*)
5797 LD="${LD-ld} -m elf32ppclinux"
5800 LD="${LD-ld} -m elf_s390"
5803 LD="${LD-ld} -m elf32_sparc"
5810 LD="${LD-ld} -m elf_x86_64"
5812 ppc*-*linux*|powerpc*-*linux*)
5813 LD="${LD-ld} -m elf64ppc"
5816 LD="${LD-ld} -m elf64_s390"
5819 LD="${LD-ld} -m elf64_sparc"
5829 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5830 SAVE_CFLAGS="$CFLAGS"
5831 CFLAGS="$CFLAGS -belf"
5832 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5833 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5834 if test "${lt_cv_cc_needs_belf+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843 cat >conftest.$ac_ext <<_ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest$ac_exeext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 lt_cv_cc_needs_belf=yes
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 lt_cv_cc_needs_belf=no
5887 rm -f conftest.err conftest.$ac_objext \
5888 conftest$ac_exeext conftest.$ac_ext
5890 ac_cpp='$CPP $CPPFLAGS'
5891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5896 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5897 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5900 CFLAGS="$SAVE_CFLAGS"
5903 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5907 echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 if test -n "$DLLTOOL"; then
5913 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 DLLTOOL=$ac_cv_prog_DLLTOOL
5932 if test -n "$DLLTOOL"; then
5933 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5934 echo "${ECHO_T}$DLLTOOL" >&6
5936 echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5941 if test -z "$ac_cv_prog_DLLTOOL"; then
5942 ac_ct_DLLTOOL=$DLLTOOL
5943 # Extract the first word of "dlltool", so it can be a program name with args.
5944 set dummy dlltool; ac_word=$2
5945 echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5947 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 if test -n "$ac_ct_DLLTOOL"; then
5951 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5970 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5971 if test -n "$ac_ct_DLLTOOL"; then
5972 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5973 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5975 echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5979 DLLTOOL=$ac_ct_DLLTOOL
5981 DLLTOOL="$ac_cv_prog_DLLTOOL"
5984 if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5986 set dummy ${ac_tool_prefix}as; ac_word=$2
5987 echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989 if test "${ac_cv_prog_AS+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 if test -n "$AS"; then
5993 ac_cv_prog_AS="$AS" # Let the user override the test.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002 ac_cv_prog_AS="${ac_tool_prefix}as"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 if test -n "$AS"; then
6013 echo "$as_me:$LINENO: result: $AS" >&5
6014 echo "${ECHO_T}$AS" >&6
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6021 if test -z "$ac_cv_prog_AS"; then
6023 # Extract the first word of "as", so it can be a program name with args.
6024 set dummy as; ac_word=$2
6025 echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 if test -n "$ac_ct_AS"; then
6031 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_AS="as"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6050 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6051 if test -n "$ac_ct_AS"; then
6052 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6053 echo "${ECHO_T}$ac_ct_AS" >&6
6055 echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6064 if test -n "$ac_tool_prefix"; then
6065 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6067 echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 if test -n "$OBJDUMP"; then
6073 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 OBJDUMP=$ac_cv_prog_OBJDUMP
6092 if test -n "$OBJDUMP"; then
6093 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6094 echo "${ECHO_T}$OBJDUMP" >&6
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6101 if test -z "$ac_cv_prog_OBJDUMP"; then
6102 ac_ct_OBJDUMP=$OBJDUMP
6103 # Extract the first word of "objdump", so it can be a program name with args.
6104 set dummy objdump; ac_word=$2
6105 echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if test -n "$ac_ct_OBJDUMP"; then
6111 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6130 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6131 if test -n "$ac_ct_OBJDUMP"; then
6132 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6133 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6135 echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6
6139 OBJDUMP=$ac_ct_OBJDUMP
6141 OBJDUMP="$ac_cv_prog_OBJDUMP"
6148 need_locks="$enable_libtool_lock"
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6157 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6158 # On Suns, sometimes $CPP names a directory.
6159 if test -n "$CPP" && test -d "$CPP"; then
6162 if test -z "$CPP"; then
6163 if test "${ac_cv_prog_CPP+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 # Double quotes because CPP needs to be expanded
6167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6170 for ac_c_preproc_warn_flag in '' yes
6172 # Use a header file that comes with gcc, so configuring glibc
6173 # with a fresh cross-compiler works.
6174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6175 # <limits.h> exists even on freestanding compilers.
6176 # On the NeXT, cc -E runs the code through the compiler's parser,
6177 # not just through cpp. "Syntax error" is here to catch this case.
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6185 # include <limits.h>
6187 # include <assert.h>
6191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } >/dev/null; then
6199 if test -s conftest.err; then
6200 ac_cpp_err=$ac_c_preproc_warn_flag
6201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6208 if test -z "$ac_cpp_err"; then
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 # Broken: fails on valid input.
6217 rm -f conftest.err conftest.$ac_ext
6219 # OK, works on sane cases. Now check whether non-existent headers
6220 # can be detected and how.
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <ac_nonexistent.h>
6229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } >/dev/null; then
6237 if test -s conftest.err; then
6238 ac_cpp_err=$ac_c_preproc_warn_flag
6239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6246 if test -z "$ac_cpp_err"; then
6247 # Broken: success on invalid input.
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 # Passes both tests.
6257 rm -f conftest.err conftest.$ac_ext
6260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6261 rm -f conftest.err conftest.$ac_ext
6262 if $ac_preproc_ok; then
6274 echo "$as_me:$LINENO: result: $CPP" >&5
6275 echo "${ECHO_T}$CPP" >&6
6277 for ac_c_preproc_warn_flag in '' yes
6279 # Use a header file that comes with gcc, so configuring glibc
6280 # with a fresh cross-compiler works.
6281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282 # <limits.h> exists even on freestanding compilers.
6283 # On the NeXT, cc -E runs the code through the compiler's parser,
6284 # not just through cpp. "Syntax error" is here to catch this case.
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6292 # include <limits.h>
6294 # include <assert.h>
6298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6301 grep -v '^ *+' conftest.er1 >conftest.err
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } >/dev/null; then
6306 if test -s conftest.err; then
6307 ac_cpp_err=$ac_c_preproc_warn_flag
6308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6315 if test -z "$ac_cpp_err"; then
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 # Broken: fails on valid input.
6324 rm -f conftest.err conftest.$ac_ext
6326 # OK, works on sane cases. Now check whether non-existent headers
6327 # can be detected and how.
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #include <ac_nonexistent.h>
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null; then
6344 if test -s conftest.err; then
6345 ac_cpp_err=$ac_c_preproc_warn_flag
6346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6353 if test -z "$ac_cpp_err"; then
6354 # Broken: success on invalid input.
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 # Passes both tests.
6364 rm -f conftest.err conftest.$ac_ext
6367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368 rm -f conftest.err conftest.$ac_ext
6369 if $ac_preproc_ok; then
6372 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6373 See \`config.log' for more details." >&5
6374 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6375 See \`config.log' for more details." >&2;}
6376 { (exit 1); exit 1; }; }
6380 ac_cpp='$CPP $CPPFLAGS'
6381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6388 if test "${ac_cv_header_stdc+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>conftest.er1
6414 grep -v '^ *+' conftest.er1 >conftest.err
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_c_werror_flag"
6420 || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_cv_header_stdc=yes
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 ac_cv_header_stdc=no
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 if test $ac_cv_header_stdc = yes; then
6442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6443 cat >conftest.$ac_ext <<_ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6453 $EGREP "memchr" >/dev/null 2>&1; then
6456 ac_cv_header_stdc=no
6462 if test $ac_cv_header_stdc = yes; then
6463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6464 cat >conftest.$ac_ext <<_ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6474 $EGREP "free" >/dev/null 2>&1; then
6477 ac_cv_header_stdc=no
6483 if test $ac_cv_header_stdc = yes; then
6484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6485 if test "$cross_compiling" = yes; then
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6495 #if ((' ' & 0x0FF) == 0x020)
6496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6499 # define ISLOWER(c) \
6500 (('a' <= (c) && (c) <= 'i') \
6501 || ('j' <= (c) && (c) <= 'r') \
6502 || ('s' <= (c) && (c) <= 'z'))
6503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6511 for (i = 0; i < 256; i++)
6512 if (XOR (islower (i), ISLOWER (i))
6513 || toupper (i) != TOUPPER (i))
6518 rm -f conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520 (eval $ac_link) 2>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6531 echo "$as_me: program exited with status $ac_status" >&5
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_cv_header_stdc=no
6538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6543 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6544 if test $ac_cv_header_stdc = yes; then
6546 cat >>confdefs.h <<\_ACEOF
6547 #define STDC_HEADERS 1
6552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6563 inttypes.h stdint.h unistd.h
6565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6566 echo "$as_me:$LINENO: checking for $ac_header" >&5
6567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 $ac_includes_default
6579 #include <$ac_header>
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583 (eval $ac_compile) 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try='test -z "$ac_c_werror_flag"
6591 || test ! -s conftest.err'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 eval "$as_ac_Header=yes"
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6608 eval "$as_ac_Header=no"
6610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6625 for ac_header in dlfcn.h
6627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6629 echo "$as_me:$LINENO: checking for $ac_header" >&5
6630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6637 # Is the header compilable?
6638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6640 cat >conftest.$ac_ext <<_ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6647 #include <$ac_header>
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>conftest.er1
6653 grep -v '^ *+' conftest.er1 >conftest.err
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_header_compiler=yes
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_header_compiler=no
6678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6680 echo "${ECHO_T}$ac_header_compiler" >&6
6682 # Is the header present?
6683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <$ac_header>
6693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } >/dev/null; then
6701 if test -s conftest.err; then
6702 ac_cpp_err=$ac_c_preproc_warn_flag
6703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6710 if test -z "$ac_cpp_err"; then
6711 ac_header_preproc=yes
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_header_preproc=no
6718 rm -f conftest.err conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6720 echo "${ECHO_T}$ac_header_preproc" >&6
6722 # So? What about this header?
6723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6729 ac_header_preproc=yes
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6746 ## ------------------------------------------ ##
6747 ## Report this to the AC_PACKAGE_NAME lists. ##
6748 ## ------------------------------------------ ##
6751 sed "s/^/$as_me: WARNING: /" >&2
6754 echo "$as_me:$LINENO: checking for $ac_header" >&5
6755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 eval "$as_ac_Header=\$ac_header_preproc"
6761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6766 cat >>confdefs.h <<_ACEOF
6767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6775 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6777 # find the maximum length of command line arguments
6778 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6779 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6780 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 # On DJGPP, this test can blow up pretty badly due to problems in libc
6789 # (any single argument exceeding 2000 bytes causes a buffer overrun
6790 # during glob expansion). Even if it were fixed, the result of this
6791 # check would be larger than it should be.
6792 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6796 # Under GNU Hurd, this test is not required because there is
6797 # no limit to the length of command line arguments.
6798 # Libtool will interpret -1 as no limit whatsoever
6799 lt_cv_sys_max_cmd_len=-1;
6803 # On Win9x/ME, this test blows up -- it succeeds, but takes
6804 # about 5 minutes as the teststring grows exponentially.
6805 # Worse, since 9x/ME are not pre-emptively multitasking,
6806 # you end up with a "frozen" computer, even though with patience
6807 # the test eventually succeeds (with a max line length of 256k).
6808 # Instead, let's just punt: use the minimum linelength reported by
6809 # all of the supported platforms: 8192 (on NT/2K/XP).
6810 lt_cv_sys_max_cmd_len=8192;
6814 # On AmigaOS with pdksh, this test takes hours, literally.
6815 # So we just punt and use a minimum line length of 8192.
6816 lt_cv_sys_max_cmd_len=8192;
6819 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6820 # This has been around since 386BSD, at least. Likely further.
6821 if test -x /sbin/sysctl; then
6822 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6823 elif test -x /usr/sbin/sysctl; then
6824 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6826 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6828 # And add a safety zone
6829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6833 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6834 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6835 # nice to cause kernel panics so lets avoid the loop below.
6836 # First set a reasonable default.
6837 lt_cv_sys_max_cmd_len=16384
6839 if test -x /sbin/sysconfig; then
6840 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6841 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6846 # If test is not a shell built-in, we'll probably end up computing a
6847 # maximum length that is only half of the actual maximum length, but
6849 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6850 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6851 = "XX$teststring") >/dev/null 2>&1 &&
6852 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6853 lt_cv_sys_max_cmd_len=$new_result &&
6854 test $i != 17 # 1/2 MB should be enough
6857 teststring=$teststring$teststring
6860 # Add a significant safety factor because C++ compilers can tack on massive
6861 # amounts of additional arguments before passing them to the linker.
6862 # It appears as though 1/2 is a usable value.
6863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6869 if test -n $lt_cv_sys_max_cmd_len ; then
6870 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6871 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6873 echo "$as_me:$LINENO: result: none" >&5
6874 echo "${ECHO_T}none" >&6
6880 # Check for command to grab the raw symbol name followed by C symbol from nm.
6881 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6882 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6883 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 # These are sane defaults that work on at least a few old systems.
6888 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6890 # Character class describing NM global symbol codes.
6891 symcode='[BCDEGRST]'
6893 # Regexp to match symbols that can be accessed directly from C.
6894 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896 # Transform an extracted symbol line into a proper C declaration
6897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6899 # Transform an extracted symbol line into symbol name and symbol address
6900 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'"
6902 # Define system-specific variables.
6907 cygwin* | mingw* | pw32*)
6908 symcode='[ABCDGISTW]'
6910 hpux*) # Its linker distinguishes data from code symbols
6911 if test "$host_cpu" = ia64; then
6912 symcode='[ABCDEGRST]'
6914 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6915 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'"
6918 if test "$host_cpu" = ia64; then
6919 symcode='[ABCDGIRSTW]'
6920 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6921 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'"
6925 symcode='[BCDEGRST]'
6928 symcode='[BCDEGQRST]'
6938 # Handle CRLF in mingw tool chain
6942 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6946 # If we're using GNU nm, then use its standard symbol codes.
6947 case `$NM -V 2>&1` in
6948 *GNU* | *'with BFD'*)
6949 symcode='[ABCDGIRSTW]' ;;
6952 # Try without a prefix undercore, then with it.
6953 for ac_symprfx in "" "_"; do
6955 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956 symxfrm="\\1 $ac_symprfx\\2 \\2"
6958 # Write the raw and C identifiers.
6959 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6961 # Check to see that the pipe works correctly.
6965 cat > conftest.$ac_ext <<EOF
6970 void nm_test_func(){}
6974 int main(){nm_test_var='a';nm_test_func();return(0);}
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; then
6982 # Now try to grab the symbols.
6984 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6985 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && test -s "$nlist"; then
6989 # Try sorting and uniquifying the output.
6990 if sort "$nlist" | uniq > "$nlist"T; then
6991 mv -f "$nlist"T "$nlist"
6996 # Make sure that we snagged all the symbols we need.
6997 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6998 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6999 cat <<EOF > conftest.$ac_ext
7005 # Now generate the symbol file.
7006 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7008 cat <<EOF >> conftest.$ac_ext
7009 #if defined (__STDC__) && __STDC__
7010 # define lt_ptr_t void *
7012 # define lt_ptr_t char *
7016 /* The mapping between symbol names and symbols. */
7021 lt_preloaded_symbols[] =
7024 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7025 cat <<\EOF >> conftest.$ac_ext
7033 # Now try linking the two files.
7034 mv conftest.$ac_objext conftstm.$ac_objext
7035 lt_save_LIBS="$LIBS"
7036 lt_save_CFLAGS="$CFLAGS"
7037 LIBS="conftstm.$ac_objext"
7038 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7046 LIBS="$lt_save_LIBS"
7047 CFLAGS="$lt_save_CFLAGS"
7049 echo "cannot find nm_test_func in $nlist" >&5
7052 echo "cannot find nm_test_var in $nlist" >&5
7055 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7058 echo "$progname: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 rm -f conftest* conftst*
7063 # Do not use the global_symbol_pipe unless it works.
7064 if test "$pipe_works" = yes; then
7067 lt_cv_sys_global_symbol_pipe=
7073 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7074 lt_cv_sys_global_symbol_to_cdecl=
7076 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7077 echo "$as_me:$LINENO: result: failed" >&5
7078 echo "${ECHO_T}failed" >&6
7080 echo "$as_me:$LINENO: result: ok" >&5
7081 echo "${ECHO_T}ok" >&6
7084 echo "$as_me:$LINENO: checking for objdir" >&5
7085 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7086 if test "${lt_cv_objdir+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 rm -f .libs 2>/dev/null
7090 mkdir .libs 2>/dev/null
7091 if test -d .libs; then
7094 # MS-DOS does not allow filenames that begin with a dot.
7097 rmdir .libs 2>/dev/null
7099 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7100 echo "${ECHO_T}$lt_cv_objdir" >&6
7101 objdir=$lt_cv_objdir
7109 # AIX sometimes has problems with the GCC collect2 program. For some
7110 # reason, if we set the COLLECT_NAMES environment variable, the problems
7111 # vanish in a puff of smoke.
7112 if test "X${COLLECT_NAMES+set}" != Xset; then
7114 export COLLECT_NAMES
7119 # Sed substitution that helps us do robust quoting. It backslashifies
7120 # metacharacters that are still active within double-quoted strings.
7121 Xsed='sed -e 1s/^X//'
7122 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7124 # Same as above, but do not quote variable references.
7125 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7127 # Sed substitution to delay expansion of an escaped shell variable in a
7128 # double_quote_subst'ed string.
7129 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7131 # Sed substitution to avoid accidental globbing in evaled expressions
7132 no_glob_subst='s/\*/\\\*/g'
7138 default_ofile=libtool
7139 can_build_shared=yes
7141 # All known linkers require a `.a' archive for static linking (except MSVC,
7142 # which needs '.lib').
7144 ltmain="$ac_aux_dir/ltmain.sh"
7145 ofile="$default_ofile"
7146 with_gnu_ld="$lt_cv_prog_gnu_ld"
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}ar; ac_word=$2
7151 echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7153 if test "${ac_cv_prog_AR+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 if test -n "$AR"; then
7157 ac_cv_prog_AR="$AR" # Let the user override the test.
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_AR="${ac_tool_prefix}ar"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 if test -n "$AR"; then
7177 echo "$as_me:$LINENO: result: $AR" >&5
7178 echo "${ECHO_T}$AR" >&6
7180 echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7185 if test -z "$ac_cv_prog_AR"; then
7187 # Extract the first word of "ar", so it can be a program name with args.
7188 set dummy ar; ac_word=$2
7189 echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 if test -n "$ac_ct_AR"; then
7195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_ac_ct_AR="ar"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7215 if test -n "$ac_ct_AR"; then
7216 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7217 echo "${ECHO_T}$ac_ct_AR" >&6
7219 echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6
7228 if test -n "$ac_tool_prefix"; then
7229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_RANLIB+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 if test -n "$RANLIB"; then
7237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 RANLIB=$ac_cv_prog_RANLIB
7256 if test -n "$RANLIB"; then
7257 echo "$as_me:$LINENO: result: $RANLIB" >&5
7258 echo "${ECHO_T}$RANLIB" >&6
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7265 if test -z "$ac_cv_prog_RANLIB"; then
7266 ac_ct_RANLIB=$RANLIB
7267 # Extract the first word of "ranlib", so it can be a program name with args.
7268 set dummy ranlib; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 if test -n "$ac_ct_RANLIB"; then
7275 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_ac_ct_RANLIB="ranlib"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7295 if test -n "$ac_ct_RANLIB"; then
7296 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7297 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7299 echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7303 RANLIB=$ac_ct_RANLIB
7305 RANLIB="$ac_cv_prog_RANLIB"
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}strip; ac_word=$2
7311 echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313 if test "${ac_cv_prog_STRIP+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 if test -n "$STRIP"; then
7317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 STRIP=$ac_cv_prog_STRIP
7336 if test -n "$STRIP"; then
7337 echo "$as_me:$LINENO: result: $STRIP" >&5
7338 echo "${ECHO_T}$STRIP" >&6
7340 echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7345 if test -z "$ac_cv_prog_STRIP"; then
7347 # Extract the first word of "strip", so it can be a program name with args.
7348 set dummy strip; ac_word=$2
7349 echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 if test -n "$ac_ct_STRIP"; then
7355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_STRIP="strip"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7375 if test -n "$ac_ct_STRIP"; then
7376 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7377 echo "${ECHO_T}$ac_ct_STRIP" >&6
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7385 STRIP="$ac_cv_prog_STRIP"
7390 old_CFLAGS="$CFLAGS"
7392 # Set sane defaults for various variables
7393 test -z "$AR" && AR=ar
7394 test -z "$AR_FLAGS" && AR_FLAGS=cru
7395 test -z "$AS" && AS=as
7396 test -z "$CC" && CC=cc
7397 test -z "$LTCC" && LTCC=$CC
7398 test -z "$DLLTOOL" && DLLTOOL=dlltool
7399 test -z "$LD" && LD=ld
7400 test -z "$LN_S" && LN_S="ln -s"
7401 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7402 test -z "$NM" && NM=nm
7403 test -z "$SED" && SED=sed
7404 test -z "$OBJDUMP" && OBJDUMP=objdump
7405 test -z "$RANLIB" && RANLIB=:
7406 test -z "$STRIP" && STRIP=:
7407 test -z "$ac_objext" && ac_objext=o
7409 # Determine commands to create old-style static archives.
7410 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7411 old_postinstall_cmds='chmod 644 $oldlib'
7412 old_postuninstall_cmds=
7414 if test -n "$RANLIB"; then
7417 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7420 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7423 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7426 for cc_temp in $compiler""; do
7428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7437 # Only perform the check for file, if the check method requires it
7438 case $deplibs_check_method in
7440 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7441 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7442 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7443 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7451 lt_save_MAGIC_CMD="$MAGIC_CMD"
7452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7453 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7454 for ac_dir in $ac_dummy; do
7456 test -z "$ac_dir" && ac_dir=.
7457 if test -f $ac_dir/${ac_tool_prefix}file; then
7458 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7459 if test -n "$file_magic_test_file"; then
7460 case $deplibs_check_method in
7462 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7465 $EGREP "$file_magic_regex" > /dev/null; then
7470 *** Warning: the command libtool uses to detect shared libraries,
7471 *** $file_magic_cmd, produces output that libtool cannot recognize.
7472 *** The result is that libtool may fail to recognize shared libraries
7473 *** as such. This will affect the creation of libtool libraries that
7474 *** depend on shared libraries, but programs linked with such libtool
7475 *** libraries will work regardless of this problem. Nevertheless, you
7476 *** may want to report the problem to your system manager and/or to
7477 *** bug-libtool@gnu.org
7487 MAGIC_CMD="$lt_save_MAGIC_CMD"
7492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7493 if test -n "$MAGIC_CMD"; then
7494 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7495 echo "${ECHO_T}$MAGIC_CMD" >&6
7497 echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7501 if test -z "$lt_cv_path_MAGIC_CMD"; then
7502 if test -n "$ac_tool_prefix"; then
7503 echo "$as_me:$LINENO: checking for file" >&5
7504 echo $ECHO_N "checking for file... $ECHO_C" >&6
7505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7513 lt_save_MAGIC_CMD="$MAGIC_CMD"
7514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516 for ac_dir in $ac_dummy; do
7518 test -z "$ac_dir" && ac_dir=.
7519 if test -f $ac_dir/file; then
7520 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7521 if test -n "$file_magic_test_file"; then
7522 case $deplibs_check_method in
7524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527 $EGREP "$file_magic_regex" > /dev/null; then
7532 *** Warning: the command libtool uses to detect shared libraries,
7533 *** $file_magic_cmd, produces output that libtool cannot recognize.
7534 *** The result is that libtool may fail to recognize shared libraries
7535 *** as such. This will affect the creation of libtool libraries that
7536 *** depend on shared libraries, but programs linked with such libtool
7537 *** libraries will work regardless of this problem. Nevertheless, you
7538 *** may want to report the problem to your system manager and/or to
7539 *** bug-libtool@gnu.org
7549 MAGIC_CMD="$lt_save_MAGIC_CMD"
7554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555 if test -n "$MAGIC_CMD"; then
7556 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7557 echo "${ECHO_T}$MAGIC_CMD" >&6
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7573 enable_win32_dll=yes
7575 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7576 if test "${enable_libtool_lock+set}" = set; then
7577 enableval="$enable_libtool_lock"
7580 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7583 # Check whether --with-pic or --without-pic was given.
7584 if test "${with_pic+set}" = set; then
7590 test -z "$pic_mode" && pic_mode=default
7592 # Use C for the default configuration in the libtool script
7596 ac_cpp='$CPP $CPPFLAGS'
7597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602 # Source file extension for C test sources.
7605 # Object file extension for compiled C test sources.
7609 # Code to be used in simple compile tests
7610 lt_simple_compile_test_code="int some_variable = 0;\n"
7612 # Code to be used in simple link tests
7613 lt_simple_link_test_code='int main(){return(0);}\n'
7616 # If no C compiler was specified, use CC.
7619 # Allow CC to be a program name with arguments.
7623 # save warnings/boilerplate of simple test code
7624 ac_outfile=conftest.$ac_objext
7625 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7627 _lt_compiler_boilerplate=`cat conftest.err`
7630 ac_outfile=conftest.$ac_objext
7631 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7633 _lt_linker_boilerplate=`cat conftest.err`
7638 # Check for any special shared library compilation flags.
7641 if test "$GCC" = no; then
7644 lt_prog_cc_shlib='-belf'
7648 if test -n "$lt_prog_cc_shlib"; then
7649 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7650 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7651 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7653 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7654 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7655 lt_cv_prog_cc_can_build_shared=no
7661 # Check to make sure the static flag actually works.
7663 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7664 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7665 if test "${lt_prog_compiler_static_works+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 lt_prog_compiler_static_works=no
7669 save_LDFLAGS="$LDFLAGS"
7670 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7671 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7673 # The linker can only warn and ignore the option if not recognized
7674 # So say no if there are warnings
7675 if test -s conftest.err; then
7676 # Append any errors to the config.log.
7677 cat conftest.err 1>&5
7678 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7679 $SED '/^$/d' conftest.err >conftest.er2
7680 if diff conftest.exp conftest.er2 >/dev/null; then
7681 lt_prog_compiler_static_works=yes
7684 lt_prog_compiler_static_works=yes
7688 LDFLAGS="$save_LDFLAGS"
7691 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7692 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7694 if test x"$lt_prog_compiler_static_works" = xyes; then
7697 lt_prog_compiler_static=
7703 lt_prog_compiler_no_builtin_flag=
7705 if test "$GCC" = yes; then
7706 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7709 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 lt_cv_prog_compiler_rtti_exceptions=no
7715 ac_outfile=conftest.$ac_objext
7716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7717 lt_compiler_flag="-fno-rtti -fno-exceptions"
7718 # Insert the option either (1) after the last *FLAGS variable, or
7719 # (2) before a word containing "conftest.", or (3) at the end.
7720 # Note that $ac_compile itself does not contain backslashes and begins
7721 # with a dollar sign (not a hyphen), so the echo should work correctly.
7722 # The option is referenced via a variable to avoid confusing sed.
7723 lt_compile=`echo "$ac_compile" | $SED \
7724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726 -e 's:$: $lt_compiler_flag:'`
7727 (eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
7728 (eval "$lt_compile" 2>conftest.err)
7730 cat conftest.err >&5
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 if (exit $ac_status) && test -s "$ac_outfile"; then
7733 # The compiler can only warn and ignore the option if not recognized
7734 # So say no if there are warnings other than the usual output.
7735 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7736 $SED '/^$/d' conftest.err >conftest.er2
7737 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7738 lt_cv_prog_compiler_rtti_exceptions=yes
7744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7755 lt_prog_compiler_wl=
7756 lt_prog_compiler_pic=
7757 lt_prog_compiler_static=
7759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7762 if test "$GCC" = yes; then
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_static='-static'
7768 # All AIX code is PIC.
7769 if test "$host_cpu" = ia64; then
7770 # AIX 5 now supports IA64 processor
7771 lt_prog_compiler_static='-Bstatic'
7776 # FIXME: we need at least 68020 code to build shared libraries, but
7777 # adding the `-m68020' flag to GCC prevents building anything better,
7779 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7783 # PIC is the default for these OSes.
7786 mingw* | pw32* | os2*)
7787 # This hack is so that the source file can tell whether it is being
7788 # built for inclusion in a dll (and should export symbols for example).
7789 lt_prog_compiler_pic='-DDLL_EXPORT'
7792 darwin* | rhapsody*)
7793 # PIC is the default on this platform
7794 # Common symbols not allowed in MH_DYLIB files
7795 lt_prog_compiler_pic='-fno-common'
7799 # Just because we use GCC doesn't mean we suddenly get shared libraries
7800 # on systems that don't support them.
7801 lt_prog_compiler_can_build_shared=no
7806 if test -d /usr/nec; then
7807 lt_prog_compiler_pic=-Kconform_pic
7812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7819 lt_prog_compiler_pic='-fPIC'
7825 lt_prog_compiler_pic='-fPIC'
7829 # PORTME Check for flag to pass linker flags through the system compiler.
7832 lt_prog_compiler_wl='-Wl,'
7833 if test "$host_cpu" = ia64; then
7834 # AIX 5 now supports IA64 processor
7835 lt_prog_compiler_static='-Bstatic'
7837 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7841 # PIC is the default on this platform
7842 # Common symbols not allowed in MH_DYLIB files
7843 case $cc_basename in
7845 lt_prog_compiler_pic='-qnocommon'
7846 lt_prog_compiler_wl='-Wl,'
7851 mingw* | pw32* | os2*)
7852 # This hack is so that the source file can tell whether it is being
7853 # built for inclusion in a dll (and should export symbols for example).
7854 lt_prog_compiler_pic='-DDLL_EXPORT'
7857 hpux9* | hpux10* | hpux11*)
7858 lt_prog_compiler_wl='-Wl,'
7859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7866 lt_prog_compiler_pic='+Z'
7869 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7870 lt_prog_compiler_static='${wl}-a ${wl}archive'
7873 irix5* | irix6* | nonstopux*)
7874 lt_prog_compiler_wl='-Wl,'
7875 # PIC (with -KPIC) is the default.
7876 lt_prog_compiler_static='-non_shared'
7880 lt_prog_compiler_pic='-KPIC'
7881 lt_prog_compiler_static='-Bstatic'
7885 case $cc_basename in
7887 lt_prog_compiler_wl='-Wl,'
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-static'
7891 pgcc* | pgf77* | pgf90* | pgf95*)
7892 # Portland Group compilers (*not* the Pentium gcc compiler,
7893 # which looks to be a dead project)
7894 lt_prog_compiler_wl='-Wl,'
7895 lt_prog_compiler_pic='-fpic'
7896 lt_prog_compiler_static='-Bstatic'
7899 lt_prog_compiler_wl='-Wl,'
7900 # All Alpha code is PIC.
7901 lt_prog_compiler_static='-non_shared'
7906 osf3* | osf4* | osf5*)
7907 lt_prog_compiler_wl='-Wl,'
7908 # All OSF/1 code is PIC.
7909 lt_prog_compiler_static='-non_shared'
7913 lt_prog_compiler_pic='-Kpic'
7914 lt_prog_compiler_static='-dn'
7918 lt_prog_compiler_pic='-KPIC'
7919 lt_prog_compiler_static='-Bstatic'
7920 case $cc_basename in
7922 lt_prog_compiler_wl='-Qoption ld ';;
7924 lt_prog_compiler_wl='-Wl,';;
7929 lt_prog_compiler_wl='-Qoption ld '
7930 lt_prog_compiler_pic='-PIC'
7931 lt_prog_compiler_static='-Bstatic'
7934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7935 lt_prog_compiler_wl='-Wl,'
7936 lt_prog_compiler_pic='-KPIC'
7937 lt_prog_compiler_static='-Bstatic'
7941 if test -d /usr/nec ;then
7942 lt_prog_compiler_pic='-Kconform_pic'
7943 lt_prog_compiler_static='-Bstatic'
7948 lt_prog_compiler_wl='-Wl,'
7949 lt_prog_compiler_can_build_shared=no
7953 lt_prog_compiler_pic='-pic'
7954 lt_prog_compiler_static='-Bstatic'
7958 lt_prog_compiler_can_build_shared=no
7963 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7964 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7967 # Check to make sure the PIC flag actually works.
7969 if test -n "$lt_prog_compiler_pic"; then
7971 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7972 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7973 if test "${lt_prog_compiler_pic_works+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 lt_prog_compiler_pic_works=no
7977 ac_outfile=conftest.$ac_objext
7978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7979 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7980 # Insert the option either (1) after the last *FLAGS variable, or
7981 # (2) before a word containing "conftest.", or (3) at the end.
7982 # Note that $ac_compile itself does not contain backslashes and begins
7983 # with a dollar sign (not a hyphen), so the echo should work correctly.
7984 # The option is referenced via a variable to avoid confusing sed.
7985 lt_compile=`echo "$ac_compile" | $SED \
7986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7988 -e 's:$: $lt_compiler_flag:'`
7989 (eval echo "\"\$as_me:7989: $lt_compile\"" >&5)
7990 (eval "$lt_compile" 2>conftest.err)
7992 cat conftest.err >&5
7993 echo "$as_me:7993: \$? = $ac_status" >&5
7994 if (exit $ac_status) && test -s "$ac_outfile"; then
7995 # The compiler can only warn and ignore the option if not recognized
7996 # So say no if there are warnings other than the usual output.
7997 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7998 $SED '/^$/d' conftest.err >conftest.er2
7999 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8000 lt_prog_compiler_pic_works=yes
8006 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8007 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8009 if test x"$lt_prog_compiler_pic_works" = xyes; then
8010 case $lt_prog_compiler_pic in
8012 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8015 lt_prog_compiler_pic=
8016 lt_prog_compiler_can_build_shared=no
8021 # For platforms which do not support PIC, -DPIC is meaningless:
8023 lt_prog_compiler_pic=
8026 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8030 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8031 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8032 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 lt_cv_prog_compiler_c_o=no
8036 $rm -r conftest 2>/dev/null
8040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8042 lt_compiler_flag="-o out/conftest2.$ac_objext"
8043 # Insert the option either (1) after the last *FLAGS variable, or
8044 # (2) before a word containing "conftest.", or (3) at the end.
8045 # Note that $ac_compile itself does not contain backslashes and begins
8046 # with a dollar sign (not a hyphen), so the echo should work correctly.
8047 lt_compile=`echo "$ac_compile" | $SED \
8048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050 -e 's:$: $lt_compiler_flag:'`
8051 (eval echo "\"\$as_me:8051: $lt_compile\"" >&5)
8052 (eval "$lt_compile" 2>out/conftest.err)
8054 cat out/conftest.err >&5
8055 echo "$as_me:8055: \$? = $ac_status" >&5
8056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8058 # The compiler can only warn and ignore the option if not recognized
8059 # So say no if there are warnings
8060 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8061 $SED '/^$/d' out/conftest.err >out/conftest.er2
8062 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8063 lt_cv_prog_compiler_c_o=yes
8068 # SGI C++ compiler will create directory out/ii_files/ for
8069 # template instantiation
8070 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8071 $rm out/* && rmdir out
8077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8081 hard_links="nottested"
8082 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8083 # do not overwrite the value of need_locks provided by the user
8084 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8090 ln conftest.a conftest.b 2>&5 || hard_links=no
8091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8092 echo "$as_me:$LINENO: result: $hard_links" >&5
8093 echo "${ECHO_T}$hard_links" >&6
8094 if test "$hard_links" = no; then
8095 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8107 allow_undefined_flag=
8108 enable_shared_with_static_runtimes=no
8110 archive_expsym_cmds=
8111 old_archive_From_new_cmds=
8112 old_archive_from_expsyms_cmds=
8113 export_dynamic_flag_spec=
8114 whole_archive_flag_spec=
8115 thread_safe_flag_spec=
8116 hardcode_libdir_flag_spec=
8117 hardcode_libdir_flag_spec_ld=
8118 hardcode_libdir_separator=
8121 hardcode_shlibpath_var=unsupported
8122 link_all_deplibs=unknown
8123 hardcode_automatic=no
8126 always_export_symbols=no
8127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8128 # include_expsyms should be a list of space-separated symbols to be *always*
8129 # included in the symbol list
8131 # exclude_expsyms can be an extended regexp of symbols to exclude
8132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8134 # as well as any symbol that contains `d'.
8135 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8137 # platforms (ab)use it in PIC code, but their linkers get confused if
8138 # the symbol is explicitly referenced. Since portable code cannot
8139 # rely on this symbol name, it's probably fine to never include it in
8140 # preloaded symbol tables.
8141 extract_expsyms_cmds=
8142 # Just being paranoid about ensuring that cc_basename is set.
8143 for cc_temp in $compiler""; do
8145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8154 cygwin* | mingw* | pw32*)
8155 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8156 # When not using gcc, we currently assume that we are using
8157 # Microsoft Visual C++.
8158 if test "$GCC" != yes; then
8168 if test "$with_gnu_ld" = yes; then
8169 # If archive_cmds runs LD, not CC, wlarc should be empty
8172 # Set some defaults for GNU ld with shared library support. These
8173 # are reset later if shared libraries are not supported. Putting them
8174 # here allows them to be overridden if necessary.
8175 runpath_var=LD_RUN_PATH
8176 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8177 export_dynamic_flag_spec='${wl}--export-dynamic'
8178 # ancient GNU ld didn't support --whole-archive et. al.
8179 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8180 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8182 whole_archive_flag_spec=
8184 supports_anon_versioning=no
8185 case `$LD -v 2>/dev/null` in
8186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8189 *\ 2.11.*) ;; # other 2.11 versions
8190 *) supports_anon_versioning=yes ;;
8193 # See if GNU ld supports shared libraries.
8195 aix3* | aix4* | aix5*)
8196 # On AIX/PPC, the GNU linker is very broken
8197 if test "$host_cpu" != ia64; then
8201 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8202 *** to be unable to reliably create shared libraries on AIX.
8203 *** Therefore, libtool is disabling shared libraries support. If you
8204 *** really care for shared libraries, you may want to modify your PATH
8205 *** so that a non-GNU linker is found, and then restart.
8212 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)'
8213 hardcode_libdir_flag_spec='-L$libdir'
8214 hardcode_minus_L=yes
8216 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8217 # that the semantics of dynamic libraries on AmigaOS, at least up
8218 # to version 4, is to share data among multiple programs linked
8219 # with the same dynamic library. Since this doesn't match the
8220 # behavior of shared libraries on other platforms, we can't use
8226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8227 allow_undefined_flag=unsupported
8228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8229 # support --undefined. This deserves some investigation. FIXME
8230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 cygwin* | mingw* | pw32*)
8237 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8238 # as there is no search path for DLLs.
8239 hardcode_libdir_flag_spec='-L$libdir'
8240 allow_undefined_flag=unsupported
8241 always_export_symbols=no
8242 enable_shared_with_static_runtimes=yes
8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8245 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8247 # If the export-symbols file already is a .def file (1st line
8248 # is EXPORTS), use it as is; otherwise, prepend...
8249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8250 cp $export_symbols $output_objdir/$soname.def;
8252 echo EXPORTS > $output_objdir/$soname.def;
8253 cat $export_symbols >> $output_objdir/$soname.def;
8255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8264 case $cc_basename,$host_cpu in
8265 pgcc*) # Portland Group C compiler
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'
8269 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8270 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'
8271 tmp_addflag=' $pic_flag -Mnomain' ;;
8272 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8273 tmp_addflag=' -i_dynamic' ;;
8274 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8275 tmp_addflag=' -i_dynamic -nofor_main' ;;
8276 ifc* | ifort*) # Intel Fortran compiler
8277 tmp_addflag=' -nofor_main' ;;
8279 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281 if test $supports_anon_versioning = yes; then
8282 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8284 $echo "local: *; };" >> $output_objdir/$libname.ver~
8285 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8303 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8308 *** create shared libraries on Solaris systems. Therefore, libtool
8309 *** is disabling shared libraries support. We urge you to upgrade GNU
8310 *** binutils to release 2.9.1 or newer. Another option is to modify
8311 *** your PATH or compiler configuration so that the native linker is
8312 *** used, and then restart.
8315 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8324 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8327 hardcode_shlibpath_var=no
8331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340 if test "$ld_shlibs" = no; then
8342 hardcode_libdir_flag_spec=
8343 export_dynamic_flag_spec=
8344 whole_archive_flag_spec=
8347 # PORTME fill in a description of your system's linker (not GNU ld)
8350 allow_undefined_flag=unsupported
8351 always_export_symbols=yes
8352 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'
8353 # Note: this linker hardcodes the directories in LIBPATH if there
8354 # are no directories specified by -L.
8355 hardcode_minus_L=yes
8356 if test "$GCC" = yes && test -z "$link_static_flag"; then
8357 # Neither direct hardcoding nor static linking is supported with a
8359 hardcode_direct=unsupported
8364 if test "$host_cpu" = ia64; then
8365 # On IA64, the linker does run time linking by default, so we don't
8366 # have to do anything special.
8367 aix_use_runtimelinking=no
8368 exp_sym_flag='-Bexport'
8371 # If we're using GNU nm, then we don't want the "-C" option.
8372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8373 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8374 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'
8376 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'
8378 aix_use_runtimelinking=no
8380 # Test if we are trying to use run time linking or normal
8381 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8382 # need to do runtime linking.
8383 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8384 for ld_flag in $LDFLAGS; do
8385 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8386 aix_use_runtimelinking=yes
8392 exp_sym_flag='-bexport'
8393 no_entry_flag='-bnoentry'
8396 # When large executables or shared objects are built, AIX ld can
8397 # have problems creating the table of contents. If linking a library
8398 # or program results in "error TOC overflow" add -mminimal-toc to
8399 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8400 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8404 hardcode_libdir_separator=':'
8405 link_all_deplibs=yes
8407 if test "$GCC" = yes; then
8408 case $host_os in aix4.[012]|aix4.[012].*)
8409 # We only want to do this on AIX 4.2 and lower, the check
8410 # below for broken collect2 doesn't work under 4.3+
8411 collect2name=`${CC} -print-prog-name=collect2`
8412 if test -f "$collect2name" && \
8413 strings "$collect2name" | grep resolve_lib_name >/dev/null
8415 # We have reworked collect2
8418 # We have old collect2
8419 hardcode_direct=unsupported
8420 # It fails to find uninstalled libraries when the uninstalled
8421 # path is not listed in the libpath. Setting hardcode_minus_L
8422 # to unsupported forces relinking
8423 hardcode_minus_L=yes
8424 hardcode_libdir_flag_spec='-L$libdir'
8425 hardcode_libdir_separator=
8428 shared_flag='-shared'
8429 if test "$aix_use_runtimelinking" = yes; then
8430 shared_flag="$shared_flag "'${wl}-G'
8434 if test "$host_cpu" = ia64; then
8435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8436 # chokes on -Wl,-G. The following line is correct:
8439 if test "$aix_use_runtimelinking" = yes; then
8440 shared_flag='${wl}-G'
8442 shared_flag='${wl}-bM:SRE'
8447 # It seems that -bexpall does not export symbols beginning with
8448 # underscore (_), so it is better to generate a list of symbols to export.
8449 always_export_symbols=yes
8450 if test "$aix_use_runtimelinking" = yes; then
8451 # Warning - without using the other runtime loading flags (-brtl),
8452 # -berok will link without error, but may produce a broken library.
8453 allow_undefined_flag='-berok'
8454 # Determine the default libpath from the value encoded in an empty executable.
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472 (eval $ac_link) 2>conftest.er1
8474 grep -v '^ *+' conftest.er1 >conftest.err
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -z "$ac_c_werror_flag"
8480 || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8495 # Check for a 64-bit object if we didn't find anything.
8496 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; }
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8503 rm -f conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508 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"
8510 if test "$host_cpu" = ia64; then
8511 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8512 allow_undefined_flag="-z nodefs"
8513 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"
8515 # Determine the default libpath from the value encoded in an empty executable.
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag"
8541 || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try='test -s conftest$ac_exeext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8556 # Check for a 64-bit object if we didn't find anything.
8557 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; }
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8564 rm -f conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8568 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8569 # Warning - without using the other run time loading flags,
8570 # -berok will link without error, but may produce a broken library.
8571 no_undefined_flag=' ${wl}-bernotok'
8572 allow_undefined_flag=' ${wl}-berok'
8573 # -bexpall does not export symbols beginning with underscore (_)
8574 always_export_symbols=yes
8575 # Exported symbols can be pulled into shared objects from archives
8576 whole_archive_flag_spec=' '
8577 archive_cmds_need_lc=yes
8578 # This is similar to how AIX traditionally builds its shared libraries.
8579 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'
8585 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)'
8586 hardcode_libdir_flag_spec='-L$libdir'
8587 hardcode_minus_L=yes
8588 # see comment about different semantics on the GNU ld section
8593 export_dynamic_flag_spec=-rdynamic
8596 cygwin* | mingw* | pw32*)
8597 # When not using gcc, we currently assume that we are using
8598 # Microsoft Visual C++.
8599 # hardcode_libdir_flag_spec is actually meaningless, as there is
8600 # no search path for DLLs.
8601 hardcode_libdir_flag_spec=' '
8602 allow_undefined_flag=unsupported
8603 # Tell ltmain to make .lib files, not .a files.
8605 # Tell ltmain to make .dll files, not .so files.
8607 # FIXME: Setting linknames here is a bad hack.
8608 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8609 # The linker will automatically build a .lib file if we build a DLL.
8610 old_archive_From_new_cmds='true'
8611 # FIXME: Should let the user specify the lib program.
8612 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8613 fix_srcfile_path='`cygpath -w "$srcfile"`'
8614 enable_shared_with_static_runtimes=yes
8617 darwin* | rhapsody*)
8619 rhapsody* | darwin1.[012])
8620 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626 case ${MACOSX_DEPLOYMENT_TARGET} in
8628 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8631 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8637 archive_cmds_need_lc=no
8639 hardcode_automatic=yes
8640 hardcode_shlibpath_var=unsupported
8641 whole_archive_flag_spec=''
8642 link_all_deplibs=yes
8643 if test "$GCC" = yes ; then
8644 output_verbose_link_cmd='echo'
8645 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8646 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8648 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}'
8649 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}'
8651 case $cc_basename in
8653 output_verbose_link_cmd='echo'
8654 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8655 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8657 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}'
8658 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}'
8668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669 hardcode_libdir_flag_spec='-L$libdir'
8670 hardcode_shlibpath_var=no
8677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8678 # support. Future versions do this automatically, but an explicit c++rt0.o
8679 # does not break anything, and helps significantly (at the cost of a little
8682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8683 hardcode_libdir_flag_spec='-R$libdir'
8685 hardcode_shlibpath_var=no
8688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8692 hardcode_minus_L=yes
8693 hardcode_shlibpath_var=no
8696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8697 freebsd* | kfreebsd*-gnu | dragonfly*)
8698 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8699 hardcode_libdir_flag_spec='-R$libdir'
8701 hardcode_shlibpath_var=no
8705 if test "$GCC" = yes; then
8706 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'
8708 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'
8710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8711 hardcode_libdir_separator=:
8714 # hardcode_minus_L: Not really in the search PATH,
8715 # but as the default location of the library.
8716 hardcode_minus_L=yes
8717 export_dynamic_flag_spec='${wl}-E'
8721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8724 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8740 if test "$with_gnu_ld" = no; then
8743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8744 hardcode_libdir_flag_spec_ld='+b $libdir'
8745 hardcode_libdir_separator=:
8747 hardcode_shlibpath_var=no
8750 hardcode_libdir_flag_spec='-L$libdir'
8752 hardcode_shlibpath_var=no
8754 # hardcode_minus_L: Not really in the search PATH,
8755 # but as the default location of the library.
8756 hardcode_minus_L=yes
8759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8760 hardcode_libdir_separator=:
8762 export_dynamic_flag_spec='${wl}-E'
8764 # hardcode_minus_L: Not really in the search PATH,
8765 # but as the default location of the library.
8766 hardcode_minus_L=yes
8772 irix5* | irix6* | nonstopux*)
8773 if test "$GCC" = yes; then
8774 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'
8776 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'
8777 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 hardcode_libdir_separator=:
8781 link_all_deplibs=yes
8785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8788 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8790 hardcode_libdir_flag_spec='-R$libdir'
8792 hardcode_shlibpath_var=no
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799 hardcode_libdir_separator=:
8800 hardcode_shlibpath_var=no
8805 hardcode_shlibpath_var=no
8806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8808 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810 export_dynamic_flag_spec='${wl}-E'
8813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8815 hardcode_libdir_flag_spec='-R$libdir'
8818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8826 hardcode_libdir_flag_spec='-L$libdir'
8827 hardcode_minus_L=yes
8828 allow_undefined_flag=unsupported
8829 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'
8830 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8834 if test "$GCC" = yes; then
8835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8836 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'
8838 allow_undefined_flag=' -expect_unresolved \*'
8839 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'
8841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842 hardcode_libdir_separator=:
8845 osf4* | osf5*) # as osf3* with the addition of -msym flag
8846 if test "$GCC" = yes; then
8847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8848 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'
8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8851 allow_undefined_flag=' -expect_unresolved \*'
8852 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'
8853 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8854 $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'
8856 # Both c and cxx compiler support -rpath directly
8857 hardcode_libdir_flag_spec='-rpath $libdir'
8859 hardcode_libdir_separator=:
8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_shlibpath_var=no
8865 export_dynamic_flag_spec='${wl}-Bexport'
8866 runpath_var=LD_RUN_PATH
8867 hardcode_runpath_var=yes
8871 no_undefined_flag=' -z text'
8872 if test "$GCC" = yes; then
8874 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8876 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8883 hardcode_libdir_flag_spec='-R$libdir'
8884 hardcode_shlibpath_var=no
8886 solaris2.[0-5] | solaris2.[0-5].*) ;;
8888 # The compiler driver will combine linker options so we
8889 # cannot just pass the convience library names through
8890 # without $wl, iff we do not link with $LD.
8891 # Luckily, gcc supports the same syntax we need for Sun Studio.
8892 # Supported since Solaris 2.6 (maybe 2.5.1?)
8895 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8897 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' ;;
8900 link_all_deplibs=yes
8904 if test "x$host_vendor" = xsequent; then
8905 # Use $CC to link under sequent, because it throws in some extra .o
8906 # files that make .init and .fini sections work.
8907 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_minus_L=yes
8914 hardcode_shlibpath_var=no
8918 case $host_vendor in
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_direct=yes # is this really true???
8924 ## LD is ld it makes a PLAMLIB
8925 ## CC just makes a GrossModule.
8926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8927 reload_cmds='$CC -r -o $output$reload_objs'
8931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8935 runpath_var='LD_RUN_PATH'
8936 hardcode_shlibpath_var=no
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_shlibpath_var=no
8942 export_dynamic_flag_spec='-Bexport'
8946 if test -d /usr/nec; then
8947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 hardcode_shlibpath_var=no
8949 runpath_var=LD_RUN_PATH
8950 hardcode_runpath_var=yes
8956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8959 hardcode_shlibpath_var=no
8960 hardcode_runpath_var=yes
8961 runpath_var=LD_RUN_PATH
8964 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8965 no_undefined_flag='${wl}-z ${wl}text'
8966 if test "$GCC" = yes; then
8967 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971 runpath_var='LD_RUN_PATH'
8972 hardcode_shlibpath_var=no
8976 no_undefined_flag=' -z text'
8977 # $CC -shared without GNU ld will not create a library from C++
8978 # object files and a static libstdc++, better avoid it by now
8979 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8982 hardcode_libdir_flag_spec=
8983 hardcode_shlibpath_var=no
8984 runpath_var='LD_RUN_PATH'
8988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8989 hardcode_libdir_flag_spec='-L$libdir'
8990 hardcode_shlibpath_var=no
8999 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9000 echo "${ECHO_T}$ld_shlibs" >&6
9001 test "$ld_shlibs" = no && can_build_shared=no
9003 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9004 if test "$GCC" = yes; then
9005 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9009 # Do we need to explicitly link libc?
9011 case "x$archive_cmds_need_lc" in
9013 # Assume -lc should be added
9014 archive_cmds_need_lc=yes
9016 if test "$enable_shared" = yes && test "$GCC" = yes; then
9017 case $archive_cmds in
9019 # FIXME: we may have to deal with multi-command sequences.
9022 # Test whether the compiler implicitly links with -lc since on some
9023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9024 # to ld, don't add -lc before -lgcc.
9025 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9026 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } 2>conftest.err; then
9037 libobjs=conftest.$ac_objext
9039 wl=$lt_prog_compiler_wl
9045 lt_save_allow_undefined_flag=$allow_undefined_flag
9046 allow_undefined_flag=
9047 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9048 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }
9053 archive_cmds_need_lc=no
9055 archive_cmds_need_lc=yes
9057 allow_undefined_flag=$lt_save_allow_undefined_flag
9059 cat conftest.err 1>&5
9062 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9063 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9070 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9071 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9073 libname_spec='lib$name'
9081 shlibpath_overrides_runpath=unknown
9083 dynamic_linker="$host_os ld.so"
9084 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9085 if test "$GCC" = yes; then
9086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9087 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9088 # if the path contains ";" then we assume it to be the separator
9089 # otherwise default to the standard path separator (i.e. ":") - it is
9090 # assumed that no part of a normal pathname contains ";" but that should
9091 # okay in the real world where ";" in dirpaths is itself problematic.
9092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9099 need_lib_prefix=unknown
9100 hardcode_into_libs=no
9102 # when you set need_version to no, make sure it does not cause -set_version
9103 # flags to be left without arguments
9104 need_version=unknown
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9110 shlibpath_var=LIBPATH
9112 # AIX 3 has no versioning support, so we append a major version to the name.
9113 soname_spec='${libname}${release}${shared_ext}$major'
9120 hardcode_into_libs=yes
9121 if test "$host_cpu" = ia64; then
9122 # AIX 5 supports IA64
9123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9124 shlibpath_var=LD_LIBRARY_PATH
9126 # With GCC up to 2.95.x, collect2 would create an import file
9127 # for dependence libraries. The import file would start with
9128 # the line `#! .'. This would cause the generated library to
9129 # depend on `.', always an invalid library. This was fixed in
9130 # development snapshots of GCC prior to 3.0.
9132 aix4 | aix4.[01] | aix4.[01].*)
9133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9135 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9143 # soname into executable. Probably we can add versioning support to
9144 # collect2, so additional links can be useful in future.
9145 if test "$aix_use_runtimelinking" = yes; then
9146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9147 # instead of lib<name>.a to let people know that these are not
9148 # typical AIX shared libraries.
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 # We preserve .a as extension for shared libraries through AIX4.2
9152 # and later when we are not doing run time linking.
9153 library_names_spec='${libname}${release}.a $libname.a'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LIBPATH
9161 library_names_spec='$libname.ixlibrary $libname.a'
9162 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9163 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'
9167 library_names_spec='${libname}${shared_ext}'
9168 dynamic_linker="$host_os ld.so"
9169 shlibpath_var=LIBRARY_PATH
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9181 # the default ld.so.conf also contains /usr/contrib/lib and
9182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9183 # libtool to hard-code these into programs
9186 cygwin* | mingw* | pw32*)
9187 version_type=windows
9192 case $GCC,$host_os in
9193 yes,cygwin* | yes,mingw* | yes,pw32*)
9194 library_names_spec='$libname.dll.a'
9195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9196 postinstall_cmds='base_file=`basename \${file}`~
9197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9198 dldir=$destdir/`dirname \$dlpath`~
9199 test -d \$dldir || mkdir -p \$dldir~
9200 $install_prog $dir/$dlname \$dldir/$dlname~
9201 chmod a+x \$dldir/$dlname'
9202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9203 dlpath=$dir/\$dldll~
9205 shlibpath_overrides_runpath=yes
9209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9214 # MinGW DLLs use traditional 'lib' prefix
9215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9218 # It is most probably a Windows format PATH printed by
9219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9220 # path with ; separators, and with drive letters. We can handle the
9221 # drive letters (cygwin fileutils understands them), so leave them,
9222 # especially as we might pass files found there to a mingw objdump,
9223 # which wouldn't understand a cygwinified path. Ahh.
9224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9230 # pw32 DLLs use 'pw' prefix rather than 'lib'
9231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9240 dynamic_linker='Win32 ld.exe'
9241 # FIXME: first we should search . and the directory the executable is in
9245 darwin* | rhapsody*)
9246 dynamic_linker="$host_os dyld"
9250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9251 soname_spec='${libname}${release}${major}$shared_ext'
9252 shlibpath_overrides_runpath=yes
9253 shlibpath_var=DYLD_LIBRARY_PATH
9254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9256 if test "$GCC" = yes; then
9257 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"`
9259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=no
9285 hardcode_into_libs=yes
9286 dynamic_linker='GNU ld.so'
9289 freebsd* | dragonfly*)
9290 # DragonFly does not have aout. When/if they implement a new
9291 # versioning mechanism, adjust this.
9292 if test -x /usr/bin/objformat; then
9293 objformat=`/usr/bin/objformat`
9296 freebsd[123]*) objformat=aout ;;
9300 version_type=freebsd-$objformat
9301 case $version_type in
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9312 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=yes
9317 freebsd3.[01]* | freebsdelf3.[01]*)
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9322 shlibpath_overrides_runpath=no
9323 hardcode_into_libs=yes
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 hardcode_into_libs=yes
9338 hpux9* | hpux10* | hpux11*)
9339 # Give a soname corresponding to the major version so that dld.sl refuses to
9340 # link against other versions.
9347 hardcode_into_libs=yes
9348 dynamic_linker="$host_os dld.so"
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 if test "X$HPUX_IA64_MODE" = X32; then
9354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362 hardcode_into_libs=yes
9363 dynamic_linker="$host_os dld.sl"
9364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9373 dynamic_linker="$host_os dld.sl"
9374 shlibpath_var=SHLIB_PATH
9375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9380 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9381 postinstall_cmds='chmod 555 $lib'
9384 irix5* | irix6* | nonstopux*)
9386 nonstopux*) version_type=nonstopux ;;
9388 if test "$lt_cv_prog_gnu_ld" = yes; then
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9399 irix5* | nonstopux*)
9403 case $LD in # libtool.m4 will add one of these switches to LD
9404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9405 libsuff= shlibsuff= libmagic=32-bit;;
9406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9407 libsuff=32 shlibsuff=N32 libmagic=N32;;
9408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9410 *) libsuff= shlibsuff= libmagic=never-match;;
9414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9415 shlibpath_overrides_runpath=no
9416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9418 hardcode_into_libs=yes
9421 # No shared lib support for Linux oldld, aout, or coff.
9422 linux*oldld* | linux*aout* | linux*coff*)
9426 # This must be Linux ELF.
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=no
9436 # This implies no fast_install, which is unacceptable.
9437 # Some rework will be needed to allow for fast_install
9438 # before this can be enabled.
9439 hardcode_into_libs=yes
9441 # Append ld.so.conf contents to the search path
9442 if test -f /etc/ld.so.conf; then
9443 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' ' '`
9444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9447 # We used to test for /lib/ld.so.1 and disable shared libraries on
9448 # powerpc, because MkLinux only supported shared libraries with the
9449 # GNU dynamic linker. Since this was broken with cross compilers,
9450 # most powerpc-linux boxes support dynamic linking these days and
9451 # people can always --disable-shared, the test was removed, and we
9452 # assume the GNU/Linux dynamic linker is in use.
9453 dynamic_linker='GNU/Linux ld.so'
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=no
9464 hardcode_into_libs=yes
9465 dynamic_linker='GNU ld.so'
9472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9475 dynamic_linker='NetBSD (a.out) ld.so'
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 dynamic_linker='NetBSD ld.elf_so'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 shlibpath_overrides_runpath=yes
9483 hardcode_into_libs=yes
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 shlibpath_overrides_runpath=yes
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 shlibpath_overrides_runpath=yes
9506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9509 *) need_version=no ;;
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9516 openbsd2.[89] | openbsd2.[89].*)
9517 shlibpath_overrides_runpath=no
9520 shlibpath_overrides_runpath=yes
9524 shlibpath_overrides_runpath=yes
9529 libname_spec='$name'
9532 library_names_spec='$libname${shared_ext} $libname.a'
9533 dynamic_linker='OS/2 ld.exe'
9534 shlibpath_var=LIBPATH
9537 osf3* | osf4* | osf5*)
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 shlibpath_var=LD_LIBRARY_PATH
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=yes
9563 hardcode_into_libs=yes
9564 # ldd complains unless libraries are executable
9565 postinstall_cmds='chmod +x $lib'
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=yes
9574 if test "$with_gnu_ld" = yes; then
9580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 shlibpath_var=LD_LIBRARY_PATH
9585 case $host_vendor in
9587 shlibpath_overrides_runpath=no
9589 export_dynamic_flag_spec='${wl}-Blargedynsym'
9590 runpath_var=LD_RUN_PATH
9598 shlibpath_overrides_runpath=no
9599 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9605 if test -d /usr/nec ;then
9607 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9608 soname_spec='$libname${shared_ext}.$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616 soname_spec='${libname}${release}${shared_ext}$major'
9617 shlibpath_var=LD_LIBRARY_PATH
9624 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9625 echo "${ECHO_T}$dynamic_linker" >&6
9626 test "$dynamic_linker" = no && can_build_shared=no
9628 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9629 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9631 if test -n "$hardcode_libdir_flag_spec" || \
9632 test -n "$runpath_var" || \
9633 test "X$hardcode_automatic" = "Xyes" ; then
9635 # We can hardcode non-existant directories.
9636 if test "$hardcode_direct" != no &&
9637 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9638 # have to relink, otherwise we might link with an installed library
9639 # when we should be linking with a yet-to-be-installed one
9640 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9641 test "$hardcode_minus_L" != no; then
9642 # Linking always hardcodes the temporary library directory.
9643 hardcode_action=relink
9645 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9646 hardcode_action=immediate
9649 # We cannot hardcode anything, or else we can only hardcode existing
9651 hardcode_action=unsupported
9653 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9654 echo "${ECHO_T}$hardcode_action" >&6
9656 if test "$hardcode_action" = relink; then
9657 # Fast installation is not supported
9658 enable_fast_install=no
9659 elif test "$shlibpath_overrides_runpath" = yes ||
9660 test "$enable_shared" = no; then
9661 # Fast installation is not necessary
9662 enable_fast_install=needless
9667 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9668 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9669 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9670 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9671 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9672 echo "$as_me:$LINENO: result: yes" >&5
9673 echo "${ECHO_T}yes" >&6
9675 # FIXME - insert some real tests, host_os isn't really good enough
9678 if test -n "$STRIP" ; then
9679 striplib="$STRIP -x"
9680 echo "$as_me:$LINENO: result: yes" >&5
9681 echo "${ECHO_T}yes" >&6
9683 echo "$as_me:$LINENO: result: no" >&5
9684 echo "${ECHO_T}no" >&6
9688 echo "$as_me:$LINENO: result: no" >&5
9689 echo "${ECHO_T}no" >&6
9694 if test "x$enable_dlopen" != xyes; then
9695 enable_dlopen=unknown
9696 enable_dlopen_self=unknown
9697 enable_dlopen_self_static=unknown
9704 lt_cv_dlopen="load_add_on"
9706 lt_cv_dlopen_self=yes
9710 lt_cv_dlopen="LoadLibrary"
9715 lt_cv_dlopen="dlopen"
9720 # if libdl is installed we need to link against it
9721 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9722 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_check_lib_save_LIBS=$LIBS
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9735 /* Override any gcc2 internal prototype to avoid an error. */
9739 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag"
9760 || test ! -s conftest.err'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_lib_dl_dlopen=yes
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_cv_lib_dl_dlopen=no
9779 rm -f conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9783 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9784 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9785 if test $ac_cv_lib_dl_dlopen = yes; then
9786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9791 lt_cv_dlopen_self=yes
9798 echo "$as_me:$LINENO: checking for shl_load" >&5
9799 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9800 if test "${ac_cv_func_shl_load+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define shl_load innocuous_shl_load
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char shl_load (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9819 # include <limits.h>
9821 # include <assert.h>
9826 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9840 char (*f) () = shl_load;
9849 return f != shl_load;
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856 (eval $ac_link) 2>conftest.er1
9858 grep -v '^ *+' conftest.er1 >conftest.err
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag"
9864 || test ! -s conftest.err'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest$ac_exeext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_cv_func_shl_load=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_func_shl_load=no
9883 rm -f conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9886 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9887 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9888 if test $ac_cv_func_shl_load = yes; then
9889 lt_cv_dlopen="shl_load"
9891 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9892 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 ac_check_lib_save_LIBS=$LIBS
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9905 /* Override any gcc2 internal prototype to avoid an error. */
9909 /* We use char because int might match the return type of a gcc2
9910 builtin and then its argument prototype would still apply. */
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag"
9930 || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 ac_cv_lib_dld_shl_load=yes
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 ac_cv_lib_dld_shl_load=no
9949 rm -f conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9953 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9954 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9955 if test $ac_cv_lib_dld_shl_load = yes; then
9956 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9958 echo "$as_me:$LINENO: checking for dlopen" >&5
9959 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9960 if test "${ac_cv_func_dlopen+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9971 #define dlopen innocuous_dlopen
9973 /* System header to define __stub macros and hopefully few prototypes,
9974 which can conflict with char dlopen (); below.
9975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9976 <limits.h> exists even on freestanding compilers. */
9979 # include <limits.h>
9981 # include <assert.h>
9986 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9994 /* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10000 char (*f) () = dlopen;
10009 return f != dlopen;
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_func_dlopen=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_func_dlopen=no
10043 rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10046 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10047 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10048 if test $ac_cv_func_dlopen = yes; then
10049 lt_cv_dlopen="dlopen"
10051 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10052 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10053 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 ac_check_lib_save_LIBS=$LIBS
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_cv_lib_dl_dlopen=yes
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10107 ac_cv_lib_dl_dlopen=no
10109 rm -f conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10114 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10115 if test $ac_cv_lib_dl_dlopen = yes; then
10116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10118 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10119 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10120 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 ac_check_lib_save_LIBS=$LIBS
10124 LIBS="-lsvld $LIBS"
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10132 /* Override any gcc2 internal prototype to avoid an error. */
10136 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149 (eval $ac_link) 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag"
10157 || test ! -s conftest.err'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; } &&
10163 { ac_try='test -s conftest$ac_exeext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_lib_svld_dlopen=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_lib_svld_dlopen=no
10176 rm -f conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10180 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10181 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10182 if test $ac_cv_lib_svld_dlopen = yes; then
10183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10185 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10186 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10187 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 ac_check_lib_save_LIBS=$LIBS
10192 cat >conftest.$ac_ext <<_ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10199 /* Override any gcc2 internal prototype to avoid an error. */
10203 /* We use char because int might match the return type of a gcc2
10204 builtin and then its argument prototype would still apply. */
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216 (eval $ac_link) 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_c_werror_flag"
10224 || test ! -s conftest.err'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest$ac_exeext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 ac_cv_lib_dld_dld_link=yes
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_cv_lib_dld_dld_link=no
10243 rm -f conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10249 if test $ac_cv_lib_dld_dld_link = yes; then
10250 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10271 if test "x$lt_cv_dlopen" != xno; then
10277 case $lt_cv_dlopen in
10279 save_CPPFLAGS="$CPPFLAGS"
10280 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10282 save_LDFLAGS="$LDFLAGS"
10283 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10286 LIBS="$lt_cv_dlopen_libs $LIBS"
10288 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10289 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10290 if test "${lt_cv_dlopen_self+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 if test "$cross_compiling" = yes; then :
10294 lt_cv_dlopen_self=cross
10296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10297 lt_status=$lt_dlunknown
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10299 "configure"
10300 #include "confdefs.h"
10309 # define LT_DLGLOBAL RTLD_GLOBAL
10312 # define LT_DLGLOBAL DL_GLOBAL
10314 # define LT_DLGLOBAL 0
10318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10319 find out it does not work in some platform. */
10320 #ifndef LT_DLLAZY_OR_NOW
10322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10325 # define LT_DLLAZY_OR_NOW DL_LAZY
10328 # define LT_DLLAZY_OR_NOW RTLD_NOW
10331 # define LT_DLLAZY_OR_NOW DL_NOW
10333 # define LT_DLLAZY_OR_NOW 0
10341 extern "C" void exit (int);
10344 void fnord() { int i=42;}
10347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10348 int status = $lt_dlunknown;
10352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10354 /* dlclose (self); */
10360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361 (eval $ac_link) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10365 (./conftest; exit; ) >&5 2>/dev/null
10367 case x$lt_status in
10368 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10369 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10370 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10373 # compilation failed
10374 lt_cv_dlopen_self=no
10381 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10382 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10384 if test "x$lt_cv_dlopen_self" = xyes; then
10385 LDFLAGS="$LDFLAGS $link_static_flag"
10386 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10387 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10388 if test "${lt_cv_dlopen_self_static+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 if test "$cross_compiling" = yes; then :
10392 lt_cv_dlopen_self_static=cross
10394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10395 lt_status=$lt_dlunknown
10396 cat > conftest.$ac_ext <<EOF
10397 #line 10397 "configure"
10398 #include "confdefs.h"
10407 # define LT_DLGLOBAL RTLD_GLOBAL
10410 # define LT_DLGLOBAL DL_GLOBAL
10412 # define LT_DLGLOBAL 0
10416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10417 find out it does not work in some platform. */
10418 #ifndef LT_DLLAZY_OR_NOW
10420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10423 # define LT_DLLAZY_OR_NOW DL_LAZY
10426 # define LT_DLLAZY_OR_NOW RTLD_NOW
10429 # define LT_DLLAZY_OR_NOW DL_NOW
10431 # define LT_DLLAZY_OR_NOW 0
10439 extern "C" void exit (int);
10442 void fnord() { int i=42;}
10445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10446 int status = $lt_dlunknown;
10450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10451 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10452 /* dlclose (self); */
10458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459 (eval $ac_link) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10463 (./conftest; exit; ) >&5 2>/dev/null
10465 case x$lt_status in
10466 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10467 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10468 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10471 # compilation failed
10472 lt_cv_dlopen_self_static=no
10479 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10480 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10483 CPPFLAGS="$save_CPPFLAGS"
10484 LDFLAGS="$save_LDFLAGS"
10489 case $lt_cv_dlopen_self in
10490 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10491 *) enable_dlopen_self=unknown ;;
10494 case $lt_cv_dlopen_self_static in
10495 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10496 *) enable_dlopen_self_static=unknown ;;
10501 # Report which librarie types wil actually be built
10502 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10503 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10504 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10505 echo "${ECHO_T}$can_build_shared" >&6
10507 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10508 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10509 test "$can_build_shared" = "no" && enable_shared=no
10511 # On AIX, shared libraries and static libraries use the same namespace, and
10512 # are all built from PIC.
10515 test "$enable_shared" = yes && enable_static=no
10516 if test -n "$RANLIB"; then
10517 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10518 postinstall_cmds='$RANLIB $lib'
10523 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10524 test "$enable_shared" = yes && enable_static=no
10528 echo "$as_me:$LINENO: result: $enable_shared" >&5
10529 echo "${ECHO_T}$enable_shared" >&6
10531 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10532 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10533 # Make sure either enable_shared or enable_static is yes.
10534 test "$enable_shared" = yes || enable_static=yes
10535 echo "$as_me:$LINENO: result: $enable_static" >&5
10536 echo "${ECHO_T}$enable_static" >&6
10538 # The else clause should only fire when bootstrapping the
10539 # libtool distribution, otherwise you forgot to ship ltmain.sh
10540 # with your package, and you will get complaints that there are
10541 # no rules to generate ltmain.sh.
10542 if test -f "$ltmain"; then
10543 # See if we are running on zsh, and set the options which allow our commands through
10544 # without removal of \ escapes.
10545 if test -n "${ZSH_VERSION+set}" ; then
10546 setopt NO_GLOB_SUBST
10548 # Now quote all the things that may contain metacharacters while being
10549 # careful not to overquote the AC_SUBSTed values. We take copies of the
10550 # variables and quote the copies for generation of the libtool script.
10551 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10553 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10554 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10555 deplibs_check_method reload_flag reload_cmds need_locks \
10556 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10557 lt_cv_sys_global_symbol_to_c_name_address \
10558 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10559 old_postinstall_cmds old_postuninstall_cmds \
10563 lt_prog_compiler_wl \
10564 lt_prog_compiler_pic \
10565 lt_prog_compiler_static \
10566 lt_prog_compiler_no_builtin_flag \
10567 export_dynamic_flag_spec \
10568 thread_safe_flag_spec \
10569 whole_archive_flag_spec \
10570 enable_shared_with_static_runtimes \
10572 old_archive_from_new_cmds \
10577 compiler_lib_search_path \
10579 archive_expsym_cmds \
10581 postuninstall_cmds \
10582 old_archive_from_expsyms_cmds \
10583 allow_undefined_flag \
10584 no_undefined_flag \
10585 export_symbols_cmds \
10586 hardcode_libdir_flag_spec \
10587 hardcode_libdir_flag_spec_ld \
10588 hardcode_libdir_separator \
10589 hardcode_automatic \
10591 module_expsym_cmds \
10592 lt_cv_prog_compiler_c_o \
10594 include_expsyms; do
10597 old_archive_cmds | \
10598 old_archive_from_new_cmds | \
10600 archive_expsym_cmds | \
10602 module_expsym_cmds | \
10603 old_archive_from_expsyms_cmds | \
10604 export_symbols_cmds | \
10605 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10606 postinstall_cmds | postuninstall_cmds | \
10607 old_postinstall_cmds | old_postuninstall_cmds | \
10608 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10609 # Double-quote double-evaled strings.
10610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10619 *'\$0 --fallback-echo"')
10620 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10624 cfgfile="${ofile}T"
10625 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10627 { echo "$as_me:$LINENO: creating $ofile" >&5
10628 echo "$as_me: creating $ofile" >&6;}
10630 cat <<__EOF__ >> "$cfgfile"
10633 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10634 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10635 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10637 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10638 # Free Software Foundation, Inc.
10640 # This file is part of GNU Libtool:
10641 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10643 # This program is free software; you can redistribute it and/or modify
10644 # it under the terms of the GNU General Public License as published by
10645 # the Free Software Foundation; either version 2 of the License, or
10646 # (at your option) any later version.
10648 # This program is distributed in the hope that it will be useful, but
10649 # WITHOUT ANY WARRANTY; without even the implied warranty of
10650 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10651 # General Public License for more details.
10653 # You should have received a copy of the GNU General Public License
10654 # along with this program; if not, write to the Free Software
10655 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10657 # As a special exception to the GNU General Public License, if you
10658 # distribute this file as part of a program that contains a
10659 # configuration script generated by Autoconf, you may include it under
10660 # the same distribution terms that you use for the rest of that program.
10662 # A sed program that does not truncate output.
10665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10666 Xsed="$SED -e 1s/^X//"
10668 # The HP-UX ksh and POSIX shell print the target directory to stdout
10669 # if CDPATH is set.
10670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10672 # The names of the tagged configurations supported by this script.
10675 # ### BEGIN LIBTOOL CONFIG
10677 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10679 # Shell to use when invoking shell scripts.
10682 # Whether or not to build shared libraries.
10683 build_libtool_libs=$enable_shared
10685 # Whether or not to build static libraries.
10686 build_old_libs=$enable_static
10688 # Whether or not to add -lc for building shared libraries.
10689 build_libtool_need_lc=$archive_cmds_need_lc
10691 # Whether or not to disallow shared libs when runtime libs are static
10692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10694 # Whether or not to optimize for fast installation.
10695 fast_install=$enable_fast_install
10698 host_alias=$host_alias
10702 # The build system.
10703 build_alias=$build_alias
10707 # An echo program that does not interpret backslashes.
10712 AR_FLAGS=$lt_AR_FLAGS
10717 # A language-specific compiler.
10720 # Is the compiler the GNU C compiler?
10726 # The linker used to build libraries.
10729 # Whether we need hard or soft links.
10732 # A BSD-compatible nm program.
10735 # A symbol stripping program
10738 # Used to examine libraries when file_magic_cmd begins "file"
10739 MAGIC_CMD=$MAGIC_CMD
10741 # Used on cygwin: DLL creation program.
10744 # Used on cygwin: object dumper.
10747 # Used on cygwin: assembler.
10750 # The name of the directory that contains temporary libtool files.
10753 # How to create reloadable object files.
10754 reload_flag=$lt_reload_flag
10755 reload_cmds=$lt_reload_cmds
10757 # How to pass a linker flag through the compiler.
10758 wl=$lt_lt_prog_compiler_wl
10760 # Object file suffix (normally "o").
10761 objext="$ac_objext"
10763 # Old archive suffix (normally "a").
10766 # Shared library suffix (normally ".so").
10767 shrext_cmds='$shrext_cmds'
10769 # Executable file suffix (normally "").
10772 # Additional compiler flags for building library objects.
10773 pic_flag=$lt_lt_prog_compiler_pic
10776 # What is the maximum length of a command?
10777 max_cmd_len=$lt_cv_sys_max_cmd_len
10779 # Does compiler simultaneously support -c and -o options?
10780 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10782 # Must we lock files when doing compilation?
10783 need_locks=$lt_need_locks
10785 # Do we need the lib prefix for modules?
10786 need_lib_prefix=$need_lib_prefix
10788 # Do we need a version for libraries?
10789 need_version=$need_version
10791 # Whether dlopen is supported.
10792 dlopen_support=$enable_dlopen
10794 # Whether dlopen of programs is supported.
10795 dlopen_self=$enable_dlopen_self
10797 # Whether dlopen of statically linked programs is supported.
10798 dlopen_self_static=$enable_dlopen_self_static
10800 # Compiler flag to prevent dynamic linking.
10801 link_static_flag=$lt_lt_prog_compiler_static
10803 # Compiler flag to turn off builtin functions.
10804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10806 # Compiler flag to allow reflexive dlopens.
10807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10809 # Compiler flag to generate shared objects directly from archives.
10810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10812 # Compiler flag to generate thread-safe objects.
10813 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10815 # Library versioning type.
10816 version_type=$version_type
10818 # Format of library name prefix.
10819 libname_spec=$lt_libname_spec
10821 # List of archive names. First name is the real one, the rest are links.
10822 # The last name is the one that the linker finds with -lNAME.
10823 library_names_spec=$lt_library_names_spec
10825 # The coded name of the library, if different from the real name.
10826 soname_spec=$lt_soname_spec
10828 # Commands used to build and install an old-style archive.
10830 old_archive_cmds=$lt_old_archive_cmds
10831 old_postinstall_cmds=$lt_old_postinstall_cmds
10832 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10834 # Create an old-style archive from a shared archive.
10835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10837 # Create a temporary old-style archive to link instead of a shared archive.
10838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10840 # Commands used to build and install a shared archive.
10841 archive_cmds=$lt_archive_cmds
10842 archive_expsym_cmds=$lt_archive_expsym_cmds
10843 postinstall_cmds=$lt_postinstall_cmds
10844 postuninstall_cmds=$lt_postuninstall_cmds
10846 # Commands used to build a loadable module (assumed same as above if empty)
10847 module_cmds=$lt_module_cmds
10848 module_expsym_cmds=$lt_module_expsym_cmds
10850 # Commands to strip libraries.
10851 old_striplib=$lt_old_striplib
10852 striplib=$lt_striplib
10854 # Dependencies to place before the objects being linked to create a
10856 predep_objects=$lt_predep_objects
10858 # Dependencies to place after the objects being linked to create a
10860 postdep_objects=$lt_postdep_objects
10862 # Dependencies to place before the objects being linked to create a
10864 predeps=$lt_predeps
10866 # Dependencies to place after the objects being linked to create a
10868 postdeps=$lt_postdeps
10870 # The library search path used internally by the compiler when linking
10871 # a shared library.
10872 compiler_lib_search_path=$lt_compiler_lib_search_path
10874 # Method to check whether dependent libraries are shared objects.
10875 deplibs_check_method=$lt_deplibs_check_method
10877 # Command to use when deplibs_check_method == file_magic.
10878 file_magic_cmd=$lt_file_magic_cmd
10880 # Flag that allows shared libraries with undefined symbols to be built.
10881 allow_undefined_flag=$lt_allow_undefined_flag
10883 # Flag that forces no undefined symbols.
10884 no_undefined_flag=$lt_no_undefined_flag
10886 # Commands used to finish a libtool library installation in a directory.
10887 finish_cmds=$lt_finish_cmds
10889 # Same as above, but a single script fragment to be evaled but not shown.
10890 finish_eval=$lt_finish_eval
10892 # Take the output of nm and produce a listing of raw symbols and C names.
10893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10895 # Transform the output of nm in a proper C declaration
10896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10898 # Transform the output of nm in a C name address pair
10899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10901 # This is the shared library runtime path variable.
10902 runpath_var=$runpath_var
10904 # This is the shared library path variable.
10905 shlibpath_var=$shlibpath_var
10907 # Is shlibpath searched before the hard-coded library search path?
10908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10910 # How to hardcode a shared library path into an executable.
10911 hardcode_action=$hardcode_action
10913 # Whether we should hardcode library paths into libraries.
10914 hardcode_into_libs=$hardcode_into_libs
10916 # Flag to hardcode \$libdir into a binary during linking.
10917 # This must work even if \$libdir does not exist.
10918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10920 # If ld is used when linking, flag to hardcode \$libdir into
10921 # a binary during linking. This must work even if \$libdir does
10923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10925 # Whether we need a single -rpath flag with a separated argument.
10926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10929 # resulting binary.
10930 hardcode_direct=$hardcode_direct
10932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10933 # resulting binary.
10934 hardcode_minus_L=$hardcode_minus_L
10936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10937 # the resulting binary.
10938 hardcode_shlibpath_var=$hardcode_shlibpath_var
10940 # Set to yes if building a shared library automatically hardcodes DIR into the library
10941 # and all subsequent libraries and executables linked against it.
10942 hardcode_automatic=$hardcode_automatic
10944 # Variables whose values should be saved in libtool wrapper scripts and
10945 # restored at relink time.
10946 variables_saved_for_relink="$variables_saved_for_relink"
10948 # Whether libtool must link a program against all its dependency libraries.
10949 link_all_deplibs=$link_all_deplibs
10951 # Compile-time system search path for libraries
10952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10954 # Run-time system search path for libraries
10955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10957 # Fix the shell variable \$srcfile for the compiler.
10958 fix_srcfile_path="$fix_srcfile_path"
10960 # Set to yes if exported symbols are required.
10961 always_export_symbols=$always_export_symbols
10963 # The commands to list exported symbols.
10964 export_symbols_cmds=$lt_export_symbols_cmds
10966 # The commands to extract the exported symbol list from a shared archive.
10967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10969 # Symbols that should not be listed in the preloaded symbols.
10970 exclude_expsyms=$lt_exclude_expsyms
10972 # Symbols that must always be exported.
10973 include_expsyms=$lt_include_expsyms
10975 # ### END LIBTOOL CONFIG
10982 cat <<\EOF >> "$cfgfile"
10984 # AIX sometimes has problems with the GCC collect2 program. For some
10985 # reason, if we set the COLLECT_NAMES environment variable, the problems
10986 # vanish in a puff of smoke.
10987 if test "X${COLLECT_NAMES+set}" != Xset; then
10989 export COLLECT_NAMES
10995 # We use sed instead of cat because bash on DJGPP gets confused if
10996 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10997 # text mode, it properly converts lines to CR/LF. This bash problem
10998 # is reportedly fixed, but why not run on old versions too?
10999 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11001 mv -f "$cfgfile" "$ofile" || \
11002 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11006 # If there is no Makefile yet, we rely on a make rule to execute
11007 # `config.status --recheck' to rerun these tests and create the
11008 # libtool script then.
11009 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11010 if test -f "$ltmain_in"; then
11011 test -f Makefile && make "$ltmain"
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11025 # Check whether --with-tags or --without-tags was given.
11026 if test "${with_tags+set}" = set; then
11027 withval="$with_tags"
11028 tagnames="$withval"
11031 if test -f "$ltmain" && test -n "$tagnames"; then
11032 if test ! -f "${ofile}"; then
11033 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11034 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11037 if test -z "$LTCC"; then
11038 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11039 if test -z "$LTCC"; then
11040 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11041 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11044 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11048 # Extract list of available tagged configurations in $ofile.
11049 # Note that this assumes the entire list is on one line.
11050 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11053 for tagname in $tagnames; do
11055 # Check whether tagname contains only valid characters
11056 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11058 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11059 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11060 { (exit 1); exit 1; }; }
11064 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11066 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11067 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11068 { (exit 1); exit 1; }; }
11071 # Update the list of available tags.
11072 if test -n "$tagname"; then
11073 echo appending configuration tag \"$tagname\" to $ofile
11077 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11078 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11079 (test "X$CXX" != "Xg++"))) ; then
11087 if test -n "$F77" && test "X$F77" != "Xno"; then
11095 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11106 # Source file extension for RC test sources.
11109 # Object file extension for compiled RC test sources.
11113 # Code to be used in simple compile tests
11114 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11116 # Code to be used in simple link tests
11117 lt_simple_link_test_code="$lt_simple_compile_test_code"
11119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11121 # If no C compiler was specified, use CC.
11124 # Allow CC to be a program name with arguments.
11128 # save warnings/boilerplate of simple test code
11129 ac_outfile=conftest.$ac_objext
11130 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11132 _lt_compiler_boilerplate=`cat conftest.err`
11135 ac_outfile=conftest.$ac_objext
11136 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11138 _lt_linker_boilerplate=`cat conftest.err`
11142 # Allow CC to be a program name with arguments.
11147 for cc_temp in $compiler""; do
11149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11155 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11157 lt_cv_prog_compiler_c_o_RC=yes
11159 # The else clause should only fire when bootstrapping the
11160 # libtool distribution, otherwise you forgot to ship ltmain.sh
11161 # with your package, and you will get complaints that there are
11162 # no rules to generate ltmain.sh.
11163 if test -f "$ltmain"; then
11164 # See if we are running on zsh, and set the options which allow our commands through
11165 # without removal of \ escapes.
11166 if test -n "${ZSH_VERSION+set}" ; then
11167 setopt NO_GLOB_SUBST
11169 # Now quote all the things that may contain metacharacters while being
11170 # careful not to overquote the AC_SUBSTed values. We take copies of the
11171 # variables and quote the copies for generation of the libtool script.
11172 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11176 deplibs_check_method reload_flag reload_cmds need_locks \
11177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11178 lt_cv_sys_global_symbol_to_c_name_address \
11179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11180 old_postinstall_cmds old_postuninstall_cmds \
11184 lt_prog_compiler_wl_RC \
11185 lt_prog_compiler_pic_RC \
11186 lt_prog_compiler_static_RC \
11187 lt_prog_compiler_no_builtin_flag_RC \
11188 export_dynamic_flag_spec_RC \
11189 thread_safe_flag_spec_RC \
11190 whole_archive_flag_spec_RC \
11191 enable_shared_with_static_runtimes_RC \
11192 old_archive_cmds_RC \
11193 old_archive_from_new_cmds_RC \
11194 predep_objects_RC \
11195 postdep_objects_RC \
11198 compiler_lib_search_path_RC \
11200 archive_expsym_cmds_RC \
11201 postinstall_cmds_RC \
11202 postuninstall_cmds_RC \
11203 old_archive_from_expsyms_cmds_RC \
11204 allow_undefined_flag_RC \
11205 no_undefined_flag_RC \
11206 export_symbols_cmds_RC \
11207 hardcode_libdir_flag_spec_RC \
11208 hardcode_libdir_flag_spec_ld_RC \
11209 hardcode_libdir_separator_RC \
11210 hardcode_automatic_RC \
11212 module_expsym_cmds_RC \
11213 lt_cv_prog_compiler_c_o_RC \
11214 exclude_expsyms_RC \
11215 include_expsyms_RC; do
11218 old_archive_cmds_RC | \
11219 old_archive_from_new_cmds_RC | \
11220 archive_cmds_RC | \
11221 archive_expsym_cmds_RC | \
11223 module_expsym_cmds_RC | \
11224 old_archive_from_expsyms_cmds_RC | \
11225 export_symbols_cmds_RC | \
11226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11227 postinstall_cmds | postuninstall_cmds | \
11228 old_postinstall_cmds | old_postuninstall_cmds | \
11229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11230 # Double-quote double-evaled strings.
11231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11240 *'\$0 --fallback-echo"')
11241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11247 cat <<__EOF__ >> "$cfgfile"
11248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11252 # Shell to use when invoking shell scripts.
11255 # Whether or not to build shared libraries.
11256 build_libtool_libs=$enable_shared
11258 # Whether or not to build static libraries.
11259 build_old_libs=$enable_static
11261 # Whether or not to add -lc for building shared libraries.
11262 build_libtool_need_lc=$archive_cmds_need_lc_RC
11264 # Whether or not to disallow shared libs when runtime libs are static
11265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11267 # Whether or not to optimize for fast installation.
11268 fast_install=$enable_fast_install
11271 host_alias=$host_alias
11275 # The build system.
11276 build_alias=$build_alias
11280 # An echo program that does not interpret backslashes.
11285 AR_FLAGS=$lt_AR_FLAGS
11290 # A language-specific compiler.
11293 # Is the compiler the GNU C compiler?
11299 # The linker used to build libraries.
11302 # Whether we need hard or soft links.
11305 # A BSD-compatible nm program.
11308 # A symbol stripping program
11311 # Used to examine libraries when file_magic_cmd begins "file"
11312 MAGIC_CMD=$MAGIC_CMD
11314 # Used on cygwin: DLL creation program.
11317 # Used on cygwin: object dumper.
11320 # Used on cygwin: assembler.
11323 # The name of the directory that contains temporary libtool files.
11326 # How to create reloadable object files.
11327 reload_flag=$lt_reload_flag
11328 reload_cmds=$lt_reload_cmds
11330 # How to pass a linker flag through the compiler.
11331 wl=$lt_lt_prog_compiler_wl_RC
11333 # Object file suffix (normally "o").
11334 objext="$ac_objext"
11336 # Old archive suffix (normally "a").
11339 # Shared library suffix (normally ".so").
11340 shrext_cmds='$shrext_cmds'
11342 # Executable file suffix (normally "").
11345 # Additional compiler flags for building library objects.
11346 pic_flag=$lt_lt_prog_compiler_pic_RC
11349 # What is the maximum length of a command?
11350 max_cmd_len=$lt_cv_sys_max_cmd_len
11352 # Does compiler simultaneously support -c and -o options?
11353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11355 # Must we lock files when doing compilation?
11356 need_locks=$lt_need_locks
11358 # Do we need the lib prefix for modules?
11359 need_lib_prefix=$need_lib_prefix
11361 # Do we need a version for libraries?
11362 need_version=$need_version
11364 # Whether dlopen is supported.
11365 dlopen_support=$enable_dlopen
11367 # Whether dlopen of programs is supported.
11368 dlopen_self=$enable_dlopen_self
11370 # Whether dlopen of statically linked programs is supported.
11371 dlopen_self_static=$enable_dlopen_self_static
11373 # Compiler flag to prevent dynamic linking.
11374 link_static_flag=$lt_lt_prog_compiler_static_RC
11376 # Compiler flag to turn off builtin functions.
11377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11379 # Compiler flag to allow reflexive dlopens.
11380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11382 # Compiler flag to generate shared objects directly from archives.
11383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11385 # Compiler flag to generate thread-safe objects.
11386 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11388 # Library versioning type.
11389 version_type=$version_type
11391 # Format of library name prefix.
11392 libname_spec=$lt_libname_spec
11394 # List of archive names. First name is the real one, the rest are links.
11395 # The last name is the one that the linker finds with -lNAME.
11396 library_names_spec=$lt_library_names_spec
11398 # The coded name of the library, if different from the real name.
11399 soname_spec=$lt_soname_spec
11401 # Commands used to build and install an old-style archive.
11403 old_archive_cmds=$lt_old_archive_cmds_RC
11404 old_postinstall_cmds=$lt_old_postinstall_cmds
11405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11407 # Create an old-style archive from a shared archive.
11408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11410 # Create a temporary old-style archive to link instead of a shared archive.
11411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11413 # Commands used to build and install a shared archive.
11414 archive_cmds=$lt_archive_cmds_RC
11415 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11416 postinstall_cmds=$lt_postinstall_cmds
11417 postuninstall_cmds=$lt_postuninstall_cmds
11419 # Commands used to build a loadable module (assumed same as above if empty)
11420 module_cmds=$lt_module_cmds_RC
11421 module_expsym_cmds=$lt_module_expsym_cmds_RC
11423 # Commands to strip libraries.
11424 old_striplib=$lt_old_striplib
11425 striplib=$lt_striplib
11427 # Dependencies to place before the objects being linked to create a
11429 predep_objects=$lt_predep_objects_RC
11431 # Dependencies to place after the objects being linked to create a
11433 postdep_objects=$lt_postdep_objects_RC
11435 # Dependencies to place before the objects being linked to create a
11437 predeps=$lt_predeps_RC
11439 # Dependencies to place after the objects being linked to create a
11441 postdeps=$lt_postdeps_RC
11443 # The library search path used internally by the compiler when linking
11444 # a shared library.
11445 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11447 # Method to check whether dependent libraries are shared objects.
11448 deplibs_check_method=$lt_deplibs_check_method
11450 # Command to use when deplibs_check_method == file_magic.
11451 file_magic_cmd=$lt_file_magic_cmd
11453 # Flag that allows shared libraries with undefined symbols to be built.
11454 allow_undefined_flag=$lt_allow_undefined_flag_RC
11456 # Flag that forces no undefined symbols.
11457 no_undefined_flag=$lt_no_undefined_flag_RC
11459 # Commands used to finish a libtool library installation in a directory.
11460 finish_cmds=$lt_finish_cmds
11462 # Same as above, but a single script fragment to be evaled but not shown.
11463 finish_eval=$lt_finish_eval
11465 # Take the output of nm and produce a listing of raw symbols and C names.
11466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11468 # Transform the output of nm in a proper C declaration
11469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11471 # Transform the output of nm in a C name address pair
11472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11474 # This is the shared library runtime path variable.
11475 runpath_var=$runpath_var
11477 # This is the shared library path variable.
11478 shlibpath_var=$shlibpath_var
11480 # Is shlibpath searched before the hard-coded library search path?
11481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11483 # How to hardcode a shared library path into an executable.
11484 hardcode_action=$hardcode_action_RC
11486 # Whether we should hardcode library paths into libraries.
11487 hardcode_into_libs=$hardcode_into_libs
11489 # Flag to hardcode \$libdir into a binary during linking.
11490 # This must work even if \$libdir does not exist.
11491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11493 # If ld is used when linking, flag to hardcode \$libdir into
11494 # a binary during linking. This must work even if \$libdir does
11496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11498 # Whether we need a single -rpath flag with a separated argument.
11499 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11501 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11502 # resulting binary.
11503 hardcode_direct=$hardcode_direct_RC
11505 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11506 # resulting binary.
11507 hardcode_minus_L=$hardcode_minus_L_RC
11509 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11510 # the resulting binary.
11511 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11513 # Set to yes if building a shared library automatically hardcodes DIR into the library
11514 # and all subsequent libraries and executables linked against it.
11515 hardcode_automatic=$hardcode_automatic_RC
11517 # Variables whose values should be saved in libtool wrapper scripts and
11518 # restored at relink time.
11519 variables_saved_for_relink="$variables_saved_for_relink"
11521 # Whether libtool must link a program against all its dependency libraries.
11522 link_all_deplibs=$link_all_deplibs_RC
11524 # Compile-time system search path for libraries
11525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11527 # Run-time system search path for libraries
11528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11530 # Fix the shell variable \$srcfile for the compiler.
11531 fix_srcfile_path="$fix_srcfile_path_RC"
11533 # Set to yes if exported symbols are required.
11534 always_export_symbols=$always_export_symbols_RC
11536 # The commands to list exported symbols.
11537 export_symbols_cmds=$lt_export_symbols_cmds_RC
11539 # The commands to extract the exported symbol list from a shared archive.
11540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11542 # Symbols that should not be listed in the preloaded symbols.
11543 exclude_expsyms=$lt_exclude_expsyms_RC
11545 # Symbols that must always be exported.
11546 include_expsyms=$lt_include_expsyms_RC
11548 # ### END LIBTOOL TAG CONFIG: $tagname
11554 # If there is no Makefile yet, we rely on a make rule to execute
11555 # `config.status --recheck' to rerun these tests and create the
11556 # libtool script then.
11557 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11558 if test -f "$ltmain_in"; then
11559 test -f Makefile && make "$ltmain"
11565 ac_cpp='$CPP $CPPFLAGS'
11566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11575 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11576 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11577 { (exit 1); exit 1; }; }
11581 # Append the new tag name to the list of available tags.
11582 if test -n "$tagname" ; then
11583 available_tags="$available_tags $tagname"
11589 # Now substitute the updated list of available tags.
11590 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11591 mv "${ofile}T" "$ofile"
11595 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11596 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11597 { (exit 1); exit 1; }; }
11603 # This can be used to rebuild libtool when needed
11604 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11606 # Always use our own libtool.
11607 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11609 # Prevent multiple expansion
11621 if test $ol_enable_perl != no ; then
11622 # Extract the first word of "perl", so it can be a program name with args.
11623 set dummy perl; ac_word=$2
11624 echo "$as_me:$LINENO: checking for $ac_word" >&5
11625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11626 if test "${ac_cv_path_PERLBIN+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11652 PERLBIN=$ac_cv_path_PERLBIN
11654 if test -n "$PERLBIN"; then
11655 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11656 echo "${ECHO_T}$PERLBIN" >&6
11658 echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6
11663 if test "no$PERLBIN" = "no" ; then
11664 if test $ol_enable_perl = yes ; then
11665 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11666 echo "$as_me: error: could not locate perl" >&2;}
11667 { (exit 1); exit 1; }; }
11671 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11672 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11674 if test x"$ol_enable_perl" = "xyes" ; then
11675 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11677 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11684 ac_cpp='$CPP $CPPFLAGS'
11685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11690 # On Suns, sometimes $CPP names a directory.
11691 if test -n "$CPP" && test -d "$CPP"; then
11694 if test -z "$CPP"; then
11695 if test "${ac_cv_prog_CPP+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 # Double quotes because CPP needs to be expanded
11699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11701 ac_preproc_ok=false
11702 for ac_c_preproc_warn_flag in '' yes
11704 # Use a header file that comes with gcc, so configuring glibc
11705 # with a fresh cross-compiler works.
11706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11707 # <limits.h> exists even on freestanding compilers.
11708 # On the NeXT, cc -E runs the code through the compiler's parser,
11709 # not just through cpp. "Syntax error" is here to catch this case.
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11717 # include <limits.h>
11719 # include <assert.h>
11723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11726 grep -v '^ *+' conftest.er1 >conftest.err
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } >/dev/null; then
11731 if test -s conftest.err; then
11732 ac_cpp_err=$ac_c_preproc_warn_flag
11733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11740 if test -z "$ac_cpp_err"; then
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 # Broken: fails on valid input.
11749 rm -f conftest.err conftest.$ac_ext
11751 # OK, works on sane cases. Now check whether non-existent headers
11752 # can be detected and how.
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <ac_nonexistent.h>
11761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } >/dev/null; then
11769 if test -s conftest.err; then
11770 ac_cpp_err=$ac_c_preproc_warn_flag
11771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11778 if test -z "$ac_cpp_err"; then
11779 # Broken: success on invalid input.
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 # Passes both tests.
11789 rm -f conftest.err conftest.$ac_ext
11792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11793 rm -f conftest.err conftest.$ac_ext
11794 if $ac_preproc_ok; then
11799 ac_cv_prog_CPP=$CPP
11802 CPP=$ac_cv_prog_CPP
11804 ac_cv_prog_CPP=$CPP
11806 echo "$as_me:$LINENO: result: $CPP" >&5
11807 echo "${ECHO_T}$CPP" >&6
11808 ac_preproc_ok=false
11809 for ac_c_preproc_warn_flag in '' yes
11811 # Use a header file that comes with gcc, so configuring glibc
11812 # with a fresh cross-compiler works.
11813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 # <limits.h> exists even on freestanding compilers.
11815 # On the NeXT, cc -E runs the code through the compiler's parser,
11816 # not just through cpp. "Syntax error" is here to catch this case.
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11824 # include <limits.h>
11826 # include <assert.h>
11830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev/null; then
11838 if test -s conftest.err; then
11839 ac_cpp_err=$ac_c_preproc_warn_flag
11840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11847 if test -z "$ac_cpp_err"; then
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 # Broken: fails on valid input.
11856 rm -f conftest.err conftest.$ac_ext
11858 # OK, works on sane cases. Now check whether non-existent headers
11859 # can be detected and how.
11860 cat >conftest.$ac_ext <<_ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 #include <ac_nonexistent.h>
11868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11871 grep -v '^ *+' conftest.er1 >conftest.err
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } >/dev/null; then
11876 if test -s conftest.err; then
11877 ac_cpp_err=$ac_c_preproc_warn_flag
11878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11885 if test -z "$ac_cpp_err"; then
11886 # Broken: success on invalid input.
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 # Passes both tests.
11896 rm -f conftest.err conftest.$ac_ext
11899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11900 rm -f conftest.err conftest.$ac_ext
11901 if $ac_preproc_ok; then
11904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11905 See \`config.log' for more details." >&5
11906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11907 See \`config.log' for more details." >&2;}
11908 { (exit 1); exit 1; }; }
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11919 *mingw32* ) ac_cv_mingw32=yes ;;
11920 *cygwin* ) ac_cv_cygwin=yes ;;
11926 cat >>confdefs.h <<_ACEOF
11927 #define EXEEXT "${EXEEXT}"
11931 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11932 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11933 if test "${ac_cv_lib_be_be_app+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lbe -lroot -lnet $LIBS"
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11945 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_lib_be_be_app=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_lib_be_be_app=no
11989 rm -f conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 LIBS=$ac_check_lib_save_LIBS
11993 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11994 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11995 if test $ac_cv_lib_be_be_app = yes; then
11996 LIBS="$LIBS -lbe -lroot -lnet"
12003 ac_cpp='$CPP $CPPFLAGS'
12004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12007 if test -n "$ac_tool_prefix"; then
12008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12010 echo "$as_me:$LINENO: checking for $ac_word" >&5
12011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12012 if test "${ac_cv_prog_CC+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 if test -n "$CC"; then
12016 ac_cv_prog_CC="$CC" # Let the user override the test.
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 if test -n "$CC"; then
12036 echo "$as_me:$LINENO: result: $CC" >&5
12037 echo "${ECHO_T}$CC" >&6
12039 echo "$as_me:$LINENO: result: no" >&5
12040 echo "${ECHO_T}no" >&6
12044 if test -z "$ac_cv_prog_CC"; then
12046 # Extract the first word of "gcc", so it can be a program name with args.
12047 set dummy gcc; ac_word=$2
12048 echo "$as_me:$LINENO: checking for $ac_word" >&5
12049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 if test -n "$ac_ct_CC"; then
12054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12063 ac_cv_prog_ac_ct_CC="gcc"
12064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12073 if test -n "$ac_ct_CC"; then
12074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12075 echo "${ECHO_T}$ac_ct_CC" >&6
12077 echo "$as_me:$LINENO: result: no" >&5
12078 echo "${ECHO_T}no" >&6
12083 CC="$ac_cv_prog_CC"
12086 if test -z "$CC"; then
12087 if test -n "$ac_tool_prefix"; then
12088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12089 set dummy ${ac_tool_prefix}cc; ac_word=$2
12090 echo "$as_me:$LINENO: checking for $ac_word" >&5
12091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12092 if test "${ac_cv_prog_CC+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 if test -n "$CC"; then
12096 ac_cv_prog_CC="$CC" # Let the user override the test.
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105 ac_cv_prog_CC="${ac_tool_prefix}cc"
12106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 if test -n "$CC"; then
12116 echo "$as_me:$LINENO: result: $CC" >&5
12117 echo "${ECHO_T}$CC" >&6
12119 echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6
12124 if test -z "$ac_cv_prog_CC"; then
12126 # Extract the first word of "cc", so it can be a program name with args.
12127 set dummy cc; ac_word=$2
12128 echo "$as_me:$LINENO: checking for $ac_word" >&5
12129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 if test -n "$ac_ct_CC"; then
12134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_prog_ac_ct_CC="cc"
12144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12153 if test -n "$ac_ct_CC"; then
12154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12155 echo "${ECHO_T}$ac_ct_CC" >&6
12157 echo "$as_me:$LINENO: result: no" >&5
12158 echo "${ECHO_T}no" >&6
12163 CC="$ac_cv_prog_CC"
12167 if test -z "$CC"; then
12168 # Extract the first word of "cc", so it can be a program name with args.
12169 set dummy cc; ac_word=$2
12170 echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172 if test "${ac_cv_prog_CC+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 if test -n "$CC"; then
12176 ac_cv_prog_CC="$CC" # Let the user override the test.
12178 ac_prog_rejected=no
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12187 ac_prog_rejected=yes
12191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 if test $ac_prog_rejected = yes; then
12198 # We found a bogon in the path, so make sure we never use it.
12199 set dummy $ac_cv_prog_CC
12201 if test $# != 0; then
12202 # We chose a different compiler from the bogus one.
12203 # However, it has the same basename, so the bogon will be chosen
12204 # first if we set CC to just the basename; use the full file name.
12206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12212 if test -n "$CC"; then
12213 echo "$as_me:$LINENO: result: $CC" >&5
12214 echo "${ECHO_T}$CC" >&6
12216 echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12221 if test -z "$CC"; then
12222 if test -n "$ac_tool_prefix"; then
12225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12227 echo "$as_me:$LINENO: checking for $ac_word" >&5
12228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12229 if test "${ac_cv_prog_CC+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 if test -n "$CC"; then
12233 ac_cv_prog_CC="$CC" # Let the user override the test.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 if test -n "$CC"; then
12253 echo "$as_me:$LINENO: result: $CC" >&5
12254 echo "${ECHO_T}$CC" >&6
12256 echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6
12260 test -n "$CC" && break
12263 if test -z "$CC"; then
12267 # Extract the first word of "$ac_prog", so it can be a program name with args.
12268 set dummy $ac_prog; ac_word=$2
12269 echo "$as_me:$LINENO: checking for $ac_word" >&5
12270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 if test -n "$ac_ct_CC"; then
12275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284 ac_cv_prog_ac_ct_CC="$ac_prog"
12285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12294 if test -n "$ac_ct_CC"; then
12295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12296 echo "${ECHO_T}$ac_ct_CC" >&6
12298 echo "$as_me:$LINENO: result: no" >&5
12299 echo "${ECHO_T}no" >&6
12302 test -n "$ac_ct_CC" && break
12311 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12312 See \`config.log' for more details." >&5
12313 echo "$as_me: error: no acceptable C compiler found in \$PATH
12314 See \`config.log' for more details." >&2;}
12315 { (exit 1); exit 1; }; }
12317 # Provide some information about the compiler.
12318 echo "$as_me:$LINENO:" \
12319 "checking for C compiler version" >&5
12320 ac_compiler=`set X $ac_compile; echo $2`
12321 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12322 (eval $ac_compiler --version </dev/null >&5) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }
12326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12327 (eval $ac_compiler -v </dev/null >&5) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }
12331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12332 (eval $ac_compiler -V </dev/null >&5) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }
12337 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 cat >conftest.$ac_ext <<_ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362 (eval $ac_compile) 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag"
12370 || test ! -s conftest.err'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_compiler_gnu=yes
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12393 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12394 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12395 GCC=`test $ac_compiler_gnu = yes && echo yes`
12396 ac_test_CFLAGS=${CFLAGS+set}
12397 ac_save_CFLAGS=$CFLAGS
12399 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12400 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12401 if test "${ac_cv_prog_cc_g+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12419 rm -f conftest.$ac_objext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421 (eval $ac_compile) 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag"
12429 || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_cv_prog_cc_g=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12451 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12452 if test "$ac_test_CFLAGS" = set; then
12453 CFLAGS=$ac_save_CFLAGS
12454 elif test $ac_cv_prog_cc_g = yes; then
12455 if test "$GCC" = yes; then
12461 if test "$GCC" = yes; then
12467 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 ac_cv_prog_cc_stdc=no
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 #include <stdarg.h>
12482 #include <sys/types.h>
12483 #include <sys/stat.h>
12484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12485 struct buf { int x; };
12486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12487 static char *e (p, i)
12493 static char *f (char * (*g) (char **, int), char **p, ...)
12498 s = g (p, va_arg (v,int));
12503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12504 function prototypes and stuff, but not '\xHH' hex character constants.
12505 These don't provoke an error unfortunately, instead are silently treated
12506 as 'x'. The following induces an error, until -std1 is added to get
12507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12508 array size at least. It's necessary to write '\x00'==0 to get something
12509 that's true only with -std1. */
12510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12512 int test (int i, double x);
12513 struct s1 {int (*f) (int a);};
12514 struct s2 {int (*f) (double a);};
12515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12526 # Don't try gcc -ansi; that turns off useful extensions and
12527 # breaks some systems' header files.
12528 # AIX -qlanglvl=ansi
12529 # Ultrix and OSF/1 -std1
12530 # HP-UX 10.20 and later -Ae
12531 # HP-UX older versions -Aa -D_HPUX_SOURCE
12532 # SVR4 -Xc -D__EXTENSIONS__
12533 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12535 CC="$ac_save_CC $ac_arg"
12536 rm -f conftest.$ac_objext
12537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12538 (eval $ac_compile) 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag"
12546 || test ! -s conftest.err'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_prog_cc_stdc=$ac_arg
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12565 rm -f conftest.err conftest.$ac_objext
12567 rm -f conftest.$ac_ext conftest.$ac_objext
12572 case "x$ac_cv_prog_cc_stdc" in
12574 echo "$as_me:$LINENO: result: none needed" >&5
12575 echo "${ECHO_T}none needed" >&6 ;;
12577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12578 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12579 CC="$CC $ac_cv_prog_cc_stdc" ;;
12582 # Some people use a C++ compiler to compile C. Since we use `exit',
12583 # in C++ we need to declare it. In case someone uses the same compiler
12584 # for both compiling C and C++ we need to have the C++ compiler decide
12585 # the declaration of exit, since it's the most demanding environment.
12586 cat >conftest.$ac_ext <<_ACEOF
12587 #ifndef __cplusplus
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag"
12601 || test ! -s conftest.err'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest.$ac_objext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 for ac_declaration in \
12615 'extern "C" void std::exit (int) throw (); using std::exit;' \
12616 'extern "C" void std::exit (int); using std::exit;' \
12617 'extern "C" void exit (int) throw ();' \
12618 'extern "C" void exit (int);' \
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12628 #include <stdlib.h>
12637 rm -f conftest.$ac_objext
12638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12639 (eval $ac_compile) 2>conftest.er1
12641 grep -v '^ *+' conftest.er1 >conftest.err
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -z "$ac_c_werror_flag"
12647 || test ! -s conftest.err'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest.$ac_objext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>conftest.er1
12686 grep -v '^ *+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -z "$ac_c_werror_flag"
12692 || test ! -s conftest.err'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12713 if test -n "$ac_declaration"; then
12714 echo '#ifdef __cplusplus' >>confdefs.h
12715 echo $ac_declaration >>confdefs.h
12716 echo '#endif' >>confdefs.h
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12726 ac_cpp='$CPP $CPPFLAGS'
12727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731 depcc="$CC" am_compiler_list=
12733 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12739 # We make a subdir and do the tests there. Otherwise we can end up
12740 # making bogus files that we don't know about and never remove. For
12741 # instance it was reported that on HP-UX the gcc test will end up
12742 # making a dummy file named `D' -- because `-MD' means `put the output
12745 # Copy depcomp to subdir because otherwise we won't find it if we're
12746 # using a relative directory.
12747 cp "$am_depcomp" conftest.dir
12749 # We will build objects and dependencies in a subdirectory because
12750 # it helps to detect inapplicable dependency modes. For instance
12751 # both Tru64's cc and ICC support -MD to output dependencies as a
12752 # side effect of compilation, but ICC will put the dependencies in
12753 # the current directory while Tru64 will put them in the object
12757 am_cv_CC_dependencies_compiler_type=none
12758 if test "$am_compiler_list" = ""; then
12759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12761 for depmode in $am_compiler_list; do
12762 # Setup a source with many dependencies, because some compilers
12763 # like to wrap large dependency lists on column 80 (with \), and
12764 # we should not choose a depcomp mode which is confused by this.
12766 # We need to recreate these files for each test, as the compiler may
12767 # overwrite some of them when testing with obscure command lines.
12768 # This happens at least with the AIX C compiler.
12770 for i in 1 2 3 4 5 6; do
12771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12773 # Solaris 8's {/usr,}/bin/sh.
12774 touch sub/conftst$i.h
12776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12780 # after this tag, mechanisms are not by side-effect, so they'll
12781 # only be used when explicitly requested
12782 if test "x$enable_dependency_tracking" = xyes; then
12790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12791 # mode. It turns out that the SunPro C++ compiler does not properly
12792 # handle `-M -o', and we need to detect this.
12793 if depmode=$depmode \
12794 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12796 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12797 >/dev/null 2>conftest.err &&
12798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12799 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12801 # icc doesn't choke on unknown options, it will just issue warnings
12802 # or remarks (even with -Werror). So we grep stderr for any message
12803 # that says an option was ignored or not supported.
12804 # When given -MP, icc 7.0 and 7.1 complain thusly:
12805 # icc: Command line warning: ignoring option '-M'; no argument required
12806 # The diagnosis changed in icc 8.0:
12807 # icc: Command line remark: option '-MP' not supported
12808 if (grep 'ignoring option' conftest.err ||
12809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12810 am_cv_CC_dependencies_compiler_type=$depmode
12817 rm -rf conftest.dir
12819 am_cv_CC_dependencies_compiler_type=none
12823 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12830 test "x$enable_dependency_tracking" != xno \
12831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12832 am__fastdepCC_TRUE=
12833 am__fastdepCC_FALSE='#'
12835 am__fastdepCC_TRUE='#'
12836 am__fastdepCC_FALSE=
12840 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12841 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12842 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12843 { (exit 1); exit 1; }; }
12846 # test for make depend flag
12849 if test -z "${MKDEP}"; then
12850 OL_MKDEP="${CC-cc}"
12851 if test -z "${MKDEP_FLAGS}"; then
12852 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12853 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12854 if test "${ol_cv_mkdep+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 for flag in "-M" "-xM"; do
12860 cat > conftest.c <<EOF
12863 if { ac_try='$OL_MKDEP $flag conftest.c'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } \
12869 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12871 if test ! -f conftest."${ac_object}" ; then
12873 OL_MKDEP_FLAGS="$flag"
12881 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12882 echo "${ECHO_T}$ol_cv_mkdep" >&6
12885 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12889 OL_MKDEP="${MKDEP}"
12890 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12895 if test "${ol_cv_mkdep}" = no ; then
12896 # this will soon become an error
12897 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12898 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12901 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12902 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12903 if test "${ac_cv_lib_s_afopen+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 ac_check_lib_save_LIBS=$LIBS
12908 cat >conftest.$ac_ext <<_ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12915 /* Override any gcc2 internal prototype to avoid an error. */
12919 /* We use char because int might match the return type of a gcc2
12920 builtin and then its argument prototype would still apply. */
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12932 (eval $ac_link) 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag"
12940 || test ! -s conftest.err'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest$ac_exeext'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_cv_lib_s_afopen=yes
12954 echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12957 ac_cv_lib_s_afopen=no
12959 rm -f conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12963 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12964 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12965 if test $ac_cv_lib_s_afopen = yes; then
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_AIX_SECURITY 1
12979 ac_cv_func_getopt=no
12981 cat >>confdefs.h <<\_ACEOF
12982 #define BOTH_STRINGS_H 1
12989 WITH_MODULES_ENABLED=no
12990 if test $ol_enable_modules != no ; then
12992 for ac_header in ltdl.h
12994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12996 echo "$as_me:$LINENO: checking for $ac_header" >&5
12997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13004 # Is the header compilable?
13005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 $ac_includes_default
13014 #include <$ac_header>
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>conftest.er1
13020 grep -v '^ *+' conftest.er1 >conftest.err
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest.$ac_objext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_header_compiler=yes
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ac_header_compiler=no
13045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13047 echo "${ECHO_T}$ac_header_compiler" >&6
13049 # Is the header present?
13050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13052 cat >conftest.$ac_ext <<_ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13058 #include <$ac_header>
13060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13063 grep -v '^ *+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } >/dev/null; then
13068 if test -s conftest.err; then
13069 ac_cpp_err=$ac_c_preproc_warn_flag
13070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13077 if test -z "$ac_cpp_err"; then
13078 ac_header_preproc=yes
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ac_header_preproc=no
13085 rm -f conftest.err conftest.$ac_ext
13086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13087 echo "${ECHO_T}$ac_header_preproc" >&6
13089 # So? What about this header?
13090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13096 ac_header_preproc=yes
13099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13113 ## ------------------------------------------ ##
13114 ## Report this to the AC_PACKAGE_NAME lists. ##
13115 ## ------------------------------------------ ##
13118 sed "s/^/$as_me: WARNING: /" >&2
13121 echo "$as_me:$LINENO: checking for $ac_header" >&5
13122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 eval "$as_ac_Header=\$ac_header_preproc"
13128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13133 cat >>confdefs.h <<_ACEOF
13134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13142 if test $ac_cv_header_ltdl_h = no ; then
13143 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13144 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13145 { (exit 1); exit 1; }; }
13148 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13149 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13150 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13153 ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-lltdl $LIBS"
13155 cat >conftest.$ac_ext <<_ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13162 /* Override any gcc2 internal prototype to avoid an error. */
13166 /* We use char because int might match the return type of a gcc2
13167 builtin and then its argument prototype would still apply. */
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13179 (eval $ac_link) 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } &&
13186 { ac_try='test -z "$ac_c_werror_flag"
13187 || test ! -s conftest.err'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest$ac_exeext'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 ac_cv_lib_ltdl_lt_dlinit=yes
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 ac_cv_lib_ltdl_lt_dlinit=no
13206 rm -f conftest.err conftest.$ac_objext \
13207 conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13210 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13211 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13212 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13214 MODULES_LIBS=-lltdl
13216 cat >>confdefs.h <<\_ACEOF
13217 #define HAVE_LIBLTDL 1
13224 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13225 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13226 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13227 { (exit 1); exit 1; }; }
13229 ol_link_modules=yes
13230 WITH_MODULES_ENABLED=yes
13233 for i in $Backends; do
13234 eval "ol_tmp=\$ol_enable_$i"
13235 if test $ol_tmp = mod ; then
13236 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13237 echo "$as_me: WARNING: building static $i backend" >&2;}
13238 eval "ol_enable_$i=yes"
13241 for i in $Overlays; do
13242 eval "ol_tmp=\$ol_enable_$i"
13243 if test $ol_tmp = mod ; then
13244 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13245 echo "$as_me: WARNING: building static $i overlay" >&2;}
13246 eval "ol_enable_$i=yes"
13252 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13253 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13254 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 cat >conftest.$ac_ext <<_ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13266 #include <__ASCII__/generate_error.h>
13270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13273 grep -v '^ *+' conftest.er1 >conftest.err
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } >/dev/null; then
13278 if test -s conftest.err; then
13279 ac_cpp_err=$ac_c_preproc_warn_flag
13280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13287 if test -z "$ac_cpp_err"; then
13288 ol_cv_cpp_ebcdic=yes
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 ol_cv_cpp_ebcdic=no
13295 rm -f conftest.err conftest.$ac_ext
13297 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13298 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13299 if test $ol_cv_cpp_ebcdic = yes ; then
13301 cat >>confdefs.h <<\_ACEOF
13302 #define HAVE_EBCDIC 1
13307 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13309 if test "${ol_cv_header_stdc+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 #include <stdlib.h>
13319 #include <stdarg.h>
13320 #include <string.h>
13323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } >/dev/null; then
13331 if test -s conftest.err; then
13332 ac_cpp_err=$ac_c_preproc_warn_flag
13333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13340 if test -z "$ac_cpp_err"; then
13341 ol_cv_header_stdc=yes
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13346 ol_cv_header_stdc=no
13348 rm -f conftest.err conftest.$ac_ext
13350 if test $ol_cv_header_stdc = yes; then
13351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <string.h>
13361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13362 $EGREP "memchr" >/dev/null 2>&1; then
13365 ol_cv_header_stdc=no
13371 if test $ol_cv_header_stdc = yes; then
13372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13379 #include <stdlib.h>
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "free" >/dev/null 2>&1; then
13386 ol_cv_header_stdc=no
13392 if test $ol_cv_header_stdc = yes; then
13393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13394 if test "$cross_compiling" = yes; then
13397 cat >conftest.$ac_ext <<_ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13404 #ifndef HAVE_EBCDIC
13405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13408 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13409 || ('j' <= (c) && (c) <= 'r') \
13410 || ('s' <= (c) && (c) <= 'z'))
13411 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13414 int main () { int i; for (i = 0; i < 256; i++)
13415 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13419 rm -f conftest$ac_exeext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13432 echo "$as_me: program exited with status $ac_status" >&5
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ( exit $ac_status )
13437 ol_cv_header_stdc=no
13439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13443 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13444 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13445 if test $ol_cv_header_stdc = yes; then
13446 cat >>confdefs.h <<\_ACEOF
13447 #define STDC_HEADERS 1
13451 ac_cv_header_stdc=disable
13454 if test $ol_cv_header_stdc != yes; then
13455 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13456 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13464 ac_header_dirent=no
13465 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13466 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13467 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13468 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 #include <sys/types.h>
13490 rm -f conftest.$ac_objext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13492 (eval $ac_compile) 2>conftest.er1
13494 grep -v '^ *+' conftest.er1 >conftest.err
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try='test -z "$ac_c_werror_flag"
13500 || test ! -s conftest.err'
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 eval "$as_ac_Header=yes"
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 eval "$as_ac_Header=no"
13519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13524 cat >>confdefs.h <<_ACEOF
13525 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13528 ac_header_dirent=$ac_hdr; break
13532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13533 if test $ac_header_dirent = dirent.h; then
13534 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13536 if test "${ac_cv_search_opendir+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 ac_func_search_save_LIBS=$LIBS
13540 ac_cv_search_opendir=no
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 /* Override any gcc2 internal prototype to avoid an error. */
13552 /* We use char because int might match the return type of a gcc2
13553 builtin and then its argument prototype would still apply. */
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565 (eval $ac_link) 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag"
13573 || test ! -s conftest.err'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest$ac_exeext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_search_opendir="none required"
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13591 rm -f conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 if test "$ac_cv_search_opendir" = no; then
13594 for ac_lib in dir; do
13595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13603 /* Override any gcc2 internal prototype to avoid an error. */
13607 /* We use char because int might match the return type of a gcc2
13608 builtin and then its argument prototype would still apply. */
13618 rm -f conftest.$ac_objext conftest$ac_exeext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13620 (eval $ac_link) 2>conftest.er1
13622 grep -v '^ *+' conftest.er1 >conftest.err
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest$ac_exeext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_search_opendir="-l$ac_lib"
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13647 rm -f conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_func_search_save_LIBS
13653 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13654 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13655 if test "$ac_cv_search_opendir" != no; then
13656 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13661 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13662 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13663 if test "${ac_cv_search_opendir+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 ac_func_search_save_LIBS=$LIBS
13667 ac_cv_search_opendir=no
13668 cat >conftest.$ac_ext <<_ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13675 /* Override any gcc2 internal prototype to avoid an error. */
13679 /* We use char because int might match the return type of a gcc2
13680 builtin and then its argument prototype would still apply. */
13690 rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692 (eval $ac_link) 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag"
13700 || test ! -s conftest.err'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest$ac_exeext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_cv_search_opendir="none required"
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13718 rm -f conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 if test "$ac_cv_search_opendir" = no; then
13721 for ac_lib in x; do
13722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13723 cat >conftest.$ac_ext <<_ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13730 /* Override any gcc2 internal prototype to avoid an error. */
13734 /* We use char because int might match the return type of a gcc2
13735 builtin and then its argument prototype would still apply. */
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_search_opendir="-l$ac_lib"
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13774 rm -f conftest.err conftest.$ac_objext \
13775 conftest$ac_exeext conftest.$ac_ext
13778 LIBS=$ac_func_search_save_LIBS
13780 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13781 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13782 if test "$ac_cv_search_opendir" != no; then
13783 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13789 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13790 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13791 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 cat >conftest.$ac_ext <<_ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 #include <sys/types.h>
13801 #include <sys/wait.h>
13802 #ifndef WEXITSTATUS
13803 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13806 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13814 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13819 rm -f conftest.$ac_objext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13821 (eval $ac_compile) 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try='test -z "$ac_c_werror_flag"
13829 || test ! -s conftest.err'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_cv_header_sys_wait_h=yes
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13846 ac_cv_header_sys_wait_h=no
13848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13851 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13852 if test $ac_cv_header_sys_wait_h = yes; then
13854 cat >>confdefs.h <<\_ACEOF
13855 #define HAVE_SYS_WAIT_H 1
13860 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13861 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13862 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 #include <sys/types.h>
13872 #include <termios.h>
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879 $EGREP "yes" >/dev/null 2>&1; then
13880 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13882 ac_cv_sys_tiocgwinsz_in_termios_h=no
13887 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13888 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13890 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13891 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13892 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13893 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 cat >conftest.$ac_ext <<_ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 #include <sys/types.h>
13903 #include <sys/ioctl.h>
13909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13910 $EGREP "yes" >/dev/null 2>&1; then
13911 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13913 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13918 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13919 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13921 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13923 cat >>confdefs.h <<\_ACEOF
13924 #define GWINSZ_IN_SYS_IOCTL 1
14028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14030 echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14038 # Is the header compilable?
14039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 $ac_includes_default
14048 #include <$ac_header>
14050 rm -f conftest.$ac_objext
14051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14052 (eval $ac_compile) 2>conftest.er1
14054 grep -v '^ *+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag"
14060 || test ! -s conftest.err'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_header_compiler=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_header_compiler=no
14079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14081 echo "${ECHO_T}$ac_header_compiler" >&6
14083 # Is the header present?
14084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14086 cat >conftest.$ac_ext <<_ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 #include <$ac_header>
14094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14097 grep -v '^ *+' conftest.er1 >conftest.err
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } >/dev/null; then
14102 if test -s conftest.err; then
14103 ac_cpp_err=$ac_c_preproc_warn_flag
14104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14111 if test -z "$ac_cpp_err"; then
14112 ac_header_preproc=yes
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_header_preproc=no
14119 rm -f conftest.err conftest.$ac_ext
14120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14121 echo "${ECHO_T}$ac_header_preproc" >&6
14123 # So? What about this header?
14124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14130 ac_header_preproc=yes
14133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14147 ## ------------------------------------------ ##
14148 ## Report this to the AC_PACKAGE_NAME lists. ##
14149 ## ------------------------------------------ ##
14152 sed "s/^/$as_me: WARNING: /" >&2
14155 echo "$as_me:$LINENO: checking for $ac_header" >&5
14156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 eval "$as_ac_Header=\$ac_header_preproc"
14162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14167 cat >>confdefs.h <<_ACEOF
14168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14177 for ac_header in resolv.h
14179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14180 echo "$as_me:$LINENO: checking for $ac_header" >&5
14181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 cat >conftest.$ac_ext <<_ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 $ac_includes_default
14192 #include <netinet/in.h>
14195 #include <$ac_header>
14197 rm -f conftest.$ac_objext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199 (eval $ac_compile) 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag"
14207 || test ! -s conftest.err'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest.$ac_objext'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 eval "$as_ac_Header=yes"
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 eval "$as_ac_Header=no"
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14241 for ac_header in sys/ucred.h
14243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 echo "$as_me:$LINENO: checking for $ac_header" >&5
14245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 #ifdef HAVE_SYS_PARAM_H
14257 #include <sys/param.h>
14261 #include <$ac_header>
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>conftest.er1
14267 grep -v '^ *+' conftest.er1 >conftest.err
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag"
14273 || test ! -s conftest.err'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest.$ac_objext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 eval "$as_ac_Header=yes"
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 eval "$as_ac_Header=no"
14292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14297 cat >>confdefs.h <<_ACEOF
14298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14309 for ac_func in sigaction sigset
14311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14312 echo "$as_me:$LINENO: checking for $ac_func" >&5
14313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14314 if eval "test \"\${$as_ac_var+set}\" = set"; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 cat >conftest.$ac_ext <<_ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14325 #define $ac_func innocuous_$ac_func
14327 /* System header to define __stub macros and hopefully few prototypes,
14328 which can conflict with char $ac_func (); below.
14329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14330 <limits.h> exists even on freestanding compilers. */
14333 # include <limits.h>
14335 # include <assert.h>
14340 /* Override any gcc2 internal prototype to avoid an error. */
14345 /* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14348 /* The GNU C library defines this for functions which it implements
14349 to always fail with ENOSYS. Some functions are actually named
14350 something starting with __ and the normal name is an alias. */
14351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14354 char (*f) () = $ac_func;
14363 return f != $ac_func;
14368 rm -f conftest.$ac_objext conftest$ac_exeext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14370 (eval $ac_link) 2>conftest.er1
14372 grep -v '^ *+' conftest.er1 >conftest.err
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -z "$ac_c_werror_flag"
14378 || test ! -s conftest.err'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; } &&
14384 { ac_try='test -s conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 eval "$as_ac_var=yes"
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 eval "$as_ac_var=no"
14397 rm -f conftest.err conftest.$ac_objext \
14398 conftest$ac_exeext conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14402 if test `eval echo '${'$as_ac_var'}'` = yes; then
14403 cat >>confdefs.h <<_ACEOF
14404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14411 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14413 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14414 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14415 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 ac_check_lib_save_LIBS=$LIBS
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 /* Override any gcc2 internal prototype to avoid an error. */
14431 /* We use char because int might match the return type of a gcc2
14432 builtin and then its argument prototype would still apply. */
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>conftest.er1
14446 grep -v '^ *+' conftest.er1 >conftest.err
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_cv_lib_V3_sigset=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_cv_lib_V3_sigset=no
14471 rm -f conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14475 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14476 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14477 if test $ac_cv_lib_V3_sigset = yes; then
14478 cat >>confdefs.h <<_ACEOF
14479 #define HAVE_LIBV3 1
14488 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14489 echo "$as_me:$LINENO: checking for winsock" >&5
14490 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14491 if test "${ol_cv_winsock+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 for curlib in ws2_32 wsock32; do
14496 LIBS="$LIBS -l$curlib"
14497 cat >conftest.$ac_ext <<_ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 #include <winsock.h>
14510 select(0,NULL,NULL,NULL,NULL);
14512 gethostname(NULL,0);
14518 rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14520 (eval $ac_link) 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -z "$ac_c_werror_flag"
14528 || test ! -s conftest.err'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest$ac_exeext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14547 rm -f conftest.err conftest.$ac_objext \
14548 conftest$ac_exeext conftest.$ac_ext
14550 if test $ol_cv_winsock = yes; then
14552 cat >>confdefs.h <<\_ACEOF
14553 #define HAVE_WINSOCK 1
14556 ac_cv_func_socket=yes
14557 ac_cv_func_select=yes
14558 ac_cv_func_closesocket=yes
14559 ac_cv_func_gethostname=yes
14560 if test $curlib = ws2_32; then
14561 ol_cv_winsock=winsock2
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_WINSOCK2 1
14573 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14574 echo "${ECHO_T}$ol_cv_winsock" >&6
14578 echo "$as_me:$LINENO: checking for socket" >&5
14579 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14580 if test "${ac_cv_func_socket+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 cat >conftest.$ac_ext <<_ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14591 #define socket innocuous_socket
14593 /* System header to define __stub macros and hopefully few prototypes,
14594 which can conflict with char socket (); below.
14595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14596 <limits.h> exists even on freestanding compilers. */
14599 # include <limits.h>
14601 # include <assert.h>
14606 /* Override any gcc2 internal prototype to avoid an error. */
14611 /* We use char because int might match the return type of a gcc2
14612 builtin and then its argument prototype would still apply. */
14614 /* The GNU C library defines this for functions which it implements
14615 to always fail with ENOSYS. Some functions are actually named
14616 something starting with __ and the normal name is an alias. */
14617 #if defined (__stub_socket) || defined (__stub___socket)
14620 char (*f) () = socket;
14629 return f != socket;
14634 rm -f conftest.$ac_objext conftest$ac_exeext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14636 (eval $ac_link) 2>conftest.er1
14638 grep -v '^ *+' conftest.er1 >conftest.err
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } &&
14643 { ac_try='test -z "$ac_c_werror_flag"
14644 || test ! -s conftest.err'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest$ac_exeext'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; }; then
14656 ac_cv_func_socket=yes
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 ac_cv_func_socket=no
14663 rm -f conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14666 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14667 echo "${ECHO_T}$ac_cv_func_socket" >&6
14668 if test $ac_cv_func_socket = yes; then
14673 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14674 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14675 if test "${ac_cv_lib_socket_main+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-lsocket $LIBS"
14680 cat >conftest.$ac_ext <<_ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_lib_socket_main=yes
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_cv_lib_socket_main=no
14725 rm -f conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14729 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14730 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14731 if test $ac_cv_lib_socket_main = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_LIBSOCKET 1
14736 LIBS="-lsocket $LIBS"
14741 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14742 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14743 if test "${ac_cv_lib_net_main+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 ac_check_lib_save_LIBS=$LIBS
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766 (eval $ac_link) 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -z "$ac_c_werror_flag"
14774 || test ! -s conftest.err'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest$ac_exeext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_lib_net_main=yes
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_lib_net_main=no
14793 rm -f conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14798 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14799 if test $ac_cv_lib_net_main = yes; then
14800 cat >>confdefs.h <<_ACEOF
14801 #define HAVE_LIBNET 1
14809 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14810 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14811 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 ac_check_lib_save_LIBS=$LIBS
14815 LIBS="-lnsl_s $LIBS"
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834 (eval $ac_link) 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest$ac_exeext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_lib_nsl_s_main=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_lib_nsl_s_main=no
14861 rm -f conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14865 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14866 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14867 if test $ac_cv_lib_nsl_s_main = yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_LIBNSL_S 1
14872 LIBS="-lnsl_s $LIBS"
14877 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14878 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14879 if test "${ac_cv_lib_nsl_main+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 ac_check_lib_save_LIBS=$LIBS
14884 cat >conftest.$ac_ext <<_ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902 (eval $ac_link) 2>conftest.er1
14904 grep -v '^ *+' conftest.er1 >conftest.err
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -z "$ac_c_werror_flag"
14910 || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_lib_nsl_main=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_lib_nsl_main=no
14929 rm -f conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14934 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14935 if test $ac_cv_lib_nsl_main = yes; then
14936 cat >>confdefs.h <<_ACEOF
14937 #define HAVE_LIBNSL 1
14945 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14946 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14947 if test "${ac_cv_lib_inet_socket+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 ac_check_lib_save_LIBS=$LIBS
14951 LIBS="-linet $LIBS"
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14959 /* Override any gcc2 internal prototype to avoid an error. */
14963 /* We use char because int might match the return type of a gcc2
14964 builtin and then its argument prototype would still apply. */
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976 (eval $ac_link) 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } &&
14983 { ac_try='test -z "$ac_c_werror_flag"
14984 || test ! -s conftest.err'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_lib_inet_socket=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_cv_lib_inet_socket=no
15003 rm -f conftest.err conftest.$ac_objext \
15004 conftest$ac_exeext conftest.$ac_ext
15005 LIBS=$ac_check_lib_save_LIBS
15007 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15008 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15009 if test $ac_cv_lib_inet_socket = yes; then
15010 cat >>confdefs.h <<_ACEOF
15011 #define HAVE_LIBINET 1
15014 LIBS="-linet $LIBS"
15019 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15020 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15021 if test "${ac_cv_lib_gen_main+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 ac_check_lib_save_LIBS=$LIBS
15026 cat >conftest.$ac_ext <<_ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest$ac_exeext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 ac_cv_lib_gen_main=yes
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 ac_cv_lib_gen_main=no
15071 rm -f conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15075 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15076 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15077 if test $ac_cv_lib_gen_main = yes; then
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_LIBGEN 1
15090 echo "$as_me:$LINENO: checking for select" >&5
15091 echo $ECHO_N "checking for select... $ECHO_C" >&6
15092 if test "${ac_cv_func_select+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 /* Define select to an innocuous variant, in case <limits.h> declares select.
15102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15103 #define select innocuous_select
15105 /* System header to define __stub macros and hopefully few prototypes,
15106 which can conflict with char select (); below.
15107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15108 <limits.h> exists even on freestanding compilers. */
15111 # include <limits.h>
15113 # include <assert.h>
15118 /* Override any gcc2 internal prototype to avoid an error. */
15123 /* We use char because int might match the return type of a gcc2
15124 builtin and then its argument prototype would still apply. */
15126 /* The GNU C library defines this for functions which it implements
15127 to always fail with ENOSYS. Some functions are actually named
15128 something starting with __ and the normal name is an alias. */
15129 #if defined (__stub_select) || defined (__stub___select)
15132 char (*f) () = select;
15141 return f != select;
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag"
15156 || test ! -s conftest.err'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; } &&
15162 { ac_try='test -s conftest$ac_exeext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_func_select=yes
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ac_cv_func_select=no
15175 rm -f conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
15178 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15179 echo "${ECHO_T}$ac_cv_func_select" >&6
15180 if test $ac_cv_func_select = yes; then
15183 { { echo "$as_me:$LINENO: error: select() required." >&5
15184 echo "$as_me: error: select() required." >&2;}
15185 { (exit 1); exit 1; }; }
15189 if test "${ac_cv_header_winsock_h}" != yes; then
15192 for ac_header in sys/select.h sys/socket.h
15194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15196 echo "$as_me:$LINENO: checking for $ac_header" >&5
15197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15204 # Is the header compilable?
15205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <$ac_header>
15216 rm -f conftest.$ac_objext
15217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15218 (eval $ac_compile) 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -z "$ac_c_werror_flag"
15226 || test ! -s conftest.err'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; } &&
15232 { ac_try='test -s conftest.$ac_objext'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 ac_header_compiler=yes
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 ac_header_compiler=no
15245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15247 echo "${ECHO_T}$ac_header_compiler" >&6
15249 # Is the header present?
15250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 #include <$ac_header>
15260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } >/dev/null; then
15268 if test -s conftest.err; then
15269 ac_cpp_err=$ac_c_preproc_warn_flag
15270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15277 if test -z "$ac_cpp_err"; then
15278 ac_header_preproc=yes
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 ac_header_preproc=no
15285 rm -f conftest.err conftest.$ac_ext
15286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15287 echo "${ECHO_T}$ac_header_preproc" >&6
15289 # So? What about this header?
15290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15296 ac_header_preproc=yes
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15313 ## ------------------------------------------ ##
15314 ## Report this to the AC_PACKAGE_NAME lists. ##
15315 ## ------------------------------------------ ##
15318 sed "s/^/$as_me: WARNING: /" >&2
15321 echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 eval "$as_ac_Header=\$ac_header_preproc"
15328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15341 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15342 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15343 if test "${ac_cv_func_select_args+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15347 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15348 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 $ac_includes_default
15356 #if HAVE_SYS_SELECT_H
15357 # include <sys/select.h>
15359 #if HAVE_SYS_SOCKET_H
15360 # include <sys/socket.h>
15366 extern int select ($ac_arg1,
15367 $ac_arg234, $ac_arg234, $ac_arg234,
15373 rm -f conftest.$ac_objext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15375 (eval $ac_compile) 2>conftest.er1
15377 grep -v '^ *+' conftest.er1 >conftest.err
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -z "$ac_c_werror_flag"
15383 || test ! -s conftest.err'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; } &&
15389 { ac_try='test -s conftest.$ac_objext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405 # Provide a safe default value.
15406 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15409 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15410 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15411 ac_save_IFS=$IFS; IFS=','
15412 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15416 cat >>confdefs.h <<_ACEOF
15417 #define SELECT_TYPE_ARG1 $1
15421 cat >>confdefs.h <<_ACEOF
15422 #define SELECT_TYPE_ARG234 ($2)
15426 cat >>confdefs.h <<_ACEOF
15427 #define SELECT_TYPE_ARG5 ($3)
15436 for ac_func in poll
15438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15439 echo "$as_me:$LINENO: checking for $ac_func" >&5
15440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15441 if eval "test \"\${$as_ac_var+set}\" = set"; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 cat >conftest.$ac_ext <<_ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15452 #define $ac_func innocuous_$ac_func
15454 /* System header to define __stub macros and hopefully few prototypes,
15455 which can conflict with char $ac_func (); below.
15456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15457 <limits.h> exists even on freestanding compilers. */
15460 # include <limits.h>
15462 # include <assert.h>
15467 /* Override any gcc2 internal prototype to avoid an error. */
15472 /* We use char because int might match the return type of a gcc2
15473 builtin and then its argument prototype would still apply. */
15475 /* The GNU C library defines this for functions which it implements
15476 to always fail with ENOSYS. Some functions are actually named
15477 something starting with __ and the normal name is an alias. */
15478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15481 char (*f) () = $ac_func;
15490 return f != $ac_func;
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15497 (eval $ac_link) 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -z "$ac_c_werror_flag"
15505 || test ! -s conftest.err'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest$ac_exeext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 eval "$as_ac_var=yes"
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 eval "$as_ac_var=no"
15524 rm -f conftest.err conftest.$ac_objext \
15525 conftest$ac_exeext conftest.$ac_ext
15527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15529 if test `eval echo '${'$as_ac_var'}'` = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15538 for ac_header in poll.h
15540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15542 echo "$as_me:$LINENO: checking for $ac_header" >&5
15543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15550 # Is the header compilable?
15551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15560 #include <$ac_header>
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest.$ac_objext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_header_compiler=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_header_compiler=no
15591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15593 echo "${ECHO_T}$ac_header_compiler" >&6
15595 # Is the header present?
15596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #include <$ac_header>
15606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } >/dev/null; then
15614 if test -s conftest.err; then
15615 ac_cpp_err=$ac_c_preproc_warn_flag
15616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15623 if test -z "$ac_cpp_err"; then
15624 ac_header_preproc=yes
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_header_preproc=no
15631 rm -f conftest.err conftest.$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6
15635 # So? What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642 ac_header_preproc=yes
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15659 ## ------------------------------------------ ##
15660 ## Report this to the AC_PACKAGE_NAME lists. ##
15661 ## ------------------------------------------ ##
15664 sed "s/^/$as_me: WARNING: /" >&2
15667 echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 eval "$as_ac_Header=\$ac_header_preproc"
15674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15679 cat >>confdefs.h <<_ACEOF
15680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15689 for ac_header in sys/epoll.h
15691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15693 echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15701 # Is the header compilable?
15702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 $ac_includes_default
15711 #include <$ac_header>
15713 rm -f conftest.$ac_objext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715 (eval $ac_compile) 2>conftest.er1
15717 grep -v '^ *+' conftest.er1 >conftest.err
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag"
15723 || test ! -s conftest.err'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest.$ac_objext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15735 ac_header_compiler=yes
15737 echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 ac_header_compiler=no
15742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15744 echo "${ECHO_T}$ac_header_compiler" >&6
15746 # Is the header present?
15747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 #include <$ac_header>
15757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } >/dev/null; then
15765 if test -s conftest.err; then
15766 ac_cpp_err=$ac_c_preproc_warn_flag
15767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15774 if test -z "$ac_cpp_err"; then
15775 ac_header_preproc=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_preproc=no
15782 rm -f conftest.err conftest.$ac_ext
15783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15784 echo "${ECHO_T}$ac_header_preproc" >&6
15786 # So? What about this header?
15787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15793 ac_header_preproc=yes
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15810 ## ------------------------------------------ ##
15811 ## Report this to the AC_PACKAGE_NAME lists. ##
15812 ## ------------------------------------------ ##
15815 sed "s/^/$as_me: WARNING: /" >&2
15818 echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 eval "$as_ac_Header=\$ac_header_preproc"
15825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15838 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15839 echo "$as_me:$LINENO: checking for epoll system call" >&5
15840 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15841 if test "$cross_compiling" = yes; then
15842 echo "$as_me:$LINENO: result: no" >&5
15843 echo "${ECHO_T}no" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 int main(int argc, char *argv)
15853 int epfd = epoll_create(256);
15854 exit (epfd == -1 ? 1 : 0);
15857 rm -f conftest$ac_exeext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15859 (eval $ac_link) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 echo "$as_me:$LINENO: result: yes" >&5
15869 echo "${ECHO_T}yes" >&6
15871 cat >>confdefs.h <<\_ACEOF
15872 #define HAVE_EPOLL 1
15876 echo "$as_me: program exited with status $ac_status" >&5
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ( exit $ac_status )
15881 echo "$as_me:$LINENO: result: no" >&5
15882 echo "${ECHO_T}no" >&6
15884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15889 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15890 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15891 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15903 #include <sys/types.h>
15906 #include <stdlib.h>
15911 char *c = (char *) *sys_errlist
15916 rm -f conftest.$ac_objext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15918 (eval $ac_compile) 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -z "$ac_c_werror_flag"
15926 || test ! -s conftest.err'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } &&
15932 { ac_try='test -s conftest.$ac_objext'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 ol_cv_dcl_sys_errlist=yes
15939 ol_cv_have_sys_errlist=yes
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ol_cv_dcl_sys_errlist=no
15946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15948 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15949 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15951 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15952 if test $ol_cv_dcl_sys_errlist = no ; then
15954 cat >>confdefs.h <<\_ACEOF
15955 #define DECL_SYS_ERRLIST 1
15959 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15960 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15961 if test "${ol_cv_have_sys_errlist+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15975 char *c = (char *) *sys_errlist
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15982 (eval $ac_link) 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -z "$ac_c_werror_flag"
15990 || test ! -s conftest.err'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; } &&
15996 { ac_try='test -s conftest$ac_exeext'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 ol_cv_have_sys_errlist=yes
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 ol_cv_have_sys_errlist=no
16009 rm -f conftest.err conftest.$ac_objext \
16010 conftest$ac_exeext conftest.$ac_ext
16012 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16013 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16015 if test $ol_cv_have_sys_errlist = yes ; then
16017 cat >>confdefs.h <<\_ACEOF
16018 #define HAVE_SYS_ERRLIST 1
16024 for ac_func in strerror strerror_r
16026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16027 echo "$as_me:$LINENO: checking for $ac_func" >&5
16028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16029 if eval "test \"\${$as_ac_var+set}\" = set"; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16040 #define $ac_func innocuous_$ac_func
16042 /* System header to define __stub macros and hopefully few prototypes,
16043 which can conflict with char $ac_func (); below.
16044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16045 <limits.h> exists even on freestanding compilers. */
16048 # include <limits.h>
16050 # include <assert.h>
16055 /* Override any gcc2 internal prototype to avoid an error. */
16060 /* We use char because int might match the return type of a gcc2
16061 builtin and then its argument prototype would still apply. */
16063 /* The GNU C library defines this for functions which it implements
16064 to always fail with ENOSYS. Some functions are actually named
16065 something starting with __ and the normal name is an alias. */
16066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16069 char (*f) () = $ac_func;
16078 return f != $ac_func;
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085 (eval $ac_link) 2>conftest.er1
16087 grep -v '^ *+' conftest.er1 >conftest.err
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -z "$ac_c_werror_flag"
16093 || test ! -s conftest.err'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest$ac_exeext'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 eval "$as_ac_var=yes"
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 eval "$as_ac_var=no"
16112 rm -f conftest.err conftest.$ac_objext \
16113 conftest$ac_exeext conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16117 if test `eval echo '${'$as_ac_var'}'` = yes; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16125 ol_cv_func_strerror_r=no
16126 if test "${ac_cv_func_strerror_r}" = yes ; then
16127 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16128 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16129 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 cat >conftest.$ac_ext <<_ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 #include <string.h>
16141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16142 $EGREP "strerror_r" >/dev/null 2>&1; then
16143 ol_decl_strerror_r=yes
16145 ol_decl_strerror_r=no
16149 if test $ol_decl_strerror_r = yes ; then
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <string.h>
16160 /* from autoconf 2.59 */
16162 char x = *strerror_r (0, buf, sizeof buf);
16163 char *p = strerror_r (0, buf, sizeof buf);
16169 rm -f conftest.$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag"
16179 || test ! -s conftest.err'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ol_cv_nonposix_strerror_r=yes
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ol_cv_nonposix_strerror_r=no
16198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16200 if test "$cross_compiling" = yes; then
16201 ol_cv_nonposix_strerror=no
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16213 strerror_r( 1, buf, sizeof buf );
16214 exit( buf[0] == 0 );
16218 rm -f conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16229 ol_cv_nonposix_strerror_r=yes
16231 echo "$as_me: program exited with status $ac_status" >&5
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ( exit $ac_status )
16236 ol_cv_nonposix_strerror=no
16238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16243 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16244 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16245 if test $ol_cv_nonposix_strerror_r = yes ; then
16247 cat >>confdefs.h <<\_ACEOF
16248 #define HAVE_NONPOSIX_STRERROR_R 1
16253 elif test "${ac_cv_func_strerror}" = no ; then
16254 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16255 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16256 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16268 #include <sys/types.h>
16271 #include <stdlib.h>
16276 char *c = (char *) *sys_errlist
16281 rm -f conftest.$ac_objext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16283 (eval $ac_compile) 2>conftest.er1
16285 grep -v '^ *+' conftest.er1 >conftest.err
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
16290 { ac_try='test -z "$ac_c_werror_flag"
16291 || test ! -s conftest.err'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; } &&
16297 { ac_try='test -s conftest.$ac_objext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 ol_cv_dcl_sys_errlist=yes
16304 ol_cv_have_sys_errlist=yes
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ol_cv_dcl_sys_errlist=no
16311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16313 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16314 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16316 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16317 if test $ol_cv_dcl_sys_errlist = no ; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define DECL_SYS_ERRLIST 1
16324 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16325 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16326 if test "${ol_cv_have_sys_errlist+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 cat >conftest.$ac_ext <<_ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16340 char *c = (char *) *sys_errlist
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>conftest.er1
16349 grep -v '^ *+' conftest.er1 >conftest.err
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest$ac_exeext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ol_cv_have_sys_errlist=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ol_cv_have_sys_errlist=no
16374 rm -f conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16377 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16378 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16380 if test $ol_cv_have_sys_errlist = yes ; then
16382 cat >>confdefs.h <<\_ACEOF
16383 #define HAVE_SYS_ERRLIST 1
16392 for ac_header in regex.h
16394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16396 echo "$as_me:$LINENO: checking for $ac_header" >&5
16397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16404 # Is the header compilable?
16405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 $ac_includes_default
16414 #include <$ac_header>
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418 (eval $ac_compile) 2>conftest.er1
16420 grep -v '^ *+' conftest.er1 >conftest.err
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_header_compiler=yes
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_header_compiler=no
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16447 echo "${ECHO_T}$ac_header_compiler" >&6
16449 # Is the header present?
16450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16452 cat >conftest.$ac_ext <<_ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <$ac_header>
16460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16463 grep -v '^ *+' conftest.er1 >conftest.err
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } >/dev/null; then
16468 if test -s conftest.err; then
16469 ac_cpp_err=$ac_c_preproc_warn_flag
16470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16477 if test -z "$ac_cpp_err"; then
16478 ac_header_preproc=yes
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ac_header_preproc=no
16485 rm -f conftest.err conftest.$ac_ext
16486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16487 echo "${ECHO_T}$ac_header_preproc" >&6
16489 # So? What about this header?
16490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16496 ac_header_preproc=yes
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16513 ## ------------------------------------------ ##
16514 ## Report this to the AC_PACKAGE_NAME lists. ##
16515 ## ------------------------------------------ ##
16518 sed "s/^/$as_me: WARNING: /" >&2
16521 echo "$as_me:$LINENO: checking for $ac_header" >&5
16522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 eval "$as_ac_Header=\$ac_header_preproc"
16528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16541 if test "$ac_cv_header_regex_h" != yes ; then
16542 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16543 echo "$as_me: error: POSIX regex.h required." >&2;}
16544 { (exit 1); exit 1; }; }
16546 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16547 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16548 if test "${ac_cv_search_regfree+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 ac_func_search_save_LIBS=$LIBS
16552 ac_cv_search_regfree=no
16553 cat >conftest.$ac_ext <<_ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16560 /* Override any gcc2 internal prototype to avoid an error. */
16564 /* We use char because int might match the return type of a gcc2
16565 builtin and then its argument prototype would still apply. */
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577 (eval $ac_link) 2>conftest.er1
16579 grep -v '^ *+' conftest.er1 >conftest.err
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } &&
16584 { ac_try='test -z "$ac_c_werror_flag"
16585 || test ! -s conftest.err'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } &&
16591 { ac_try='test -s conftest$ac_exeext'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_search_regfree="none required"
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16603 rm -f conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605 if test "$ac_cv_search_regfree" = no; then
16606 for ac_lib in regex gnuregex; do
16607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16615 /* Override any gcc2 internal prototype to avoid an error. */
16619 /* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16632 (eval $ac_link) 2>conftest.er1
16634 grep -v '^ *+' conftest.er1 >conftest.err
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag"
16640 || test ! -s conftest.err'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest$ac_exeext'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_search_regfree="-l$ac_lib"
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16659 rm -f conftest.err conftest.$ac_objext \
16660 conftest$ac_exeext conftest.$ac_ext
16663 LIBS=$ac_func_search_save_LIBS
16665 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16666 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16667 if test "$ac_cv_search_regfree" != no; then
16668 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16671 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16672 echo "$as_me: error: POSIX regex required." >&2;}
16673 { (exit 1); exit 1; }; }
16678 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16679 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16680 if test "${ol_cv_c_posix_regex+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 if test "$cross_compiling" = yes; then
16685 ol_cv_c_posix_regex=cross
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16694 #include <sys/types.h>
16696 static char *pattern, *string;
16704 if(regcomp(&re, pattern, 0)) {
16708 string = "ALL MATCH";
16710 rc = regexec(&re, string, 0, (void*)0, 0);
16717 rm -f conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719 (eval $ac_link) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ol_cv_c_posix_regex=yes
16730 echo "$as_me: program exited with status $ac_status" >&5
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ( exit $ac_status )
16735 ol_cv_c_posix_regex=no
16737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16741 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16743 if test "$ol_cv_c_posix_regex" = no ; then
16744 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16745 echo "$as_me: error: broken POSIX regex!" >&2;}
16746 { (exit 1); exit 1; }; }
16752 for ac_header in sys/uuid.h
16754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16756 echo "$as_me:$LINENO: checking for $ac_header" >&5
16757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16764 # Is the header compilable?
16765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16767 cat >conftest.$ac_ext <<_ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 $ac_includes_default
16774 #include <$ac_header>
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>conftest.er1
16780 grep -v '^ *+' conftest.er1 >conftest.err
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag"
16786 || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_header_compiler=yes
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_header_compiler=no
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16807 echo "${ECHO_T}$ac_header_compiler" >&6
16809 # Is the header present?
16810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16812 cat >conftest.$ac_ext <<_ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 #include <$ac_header>
16820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } >/dev/null; then
16828 if test -s conftest.err; then
16829 ac_cpp_err=$ac_c_preproc_warn_flag
16830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16837 if test -z "$ac_cpp_err"; then
16838 ac_header_preproc=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_header_preproc=no
16845 rm -f conftest.err conftest.$ac_ext
16846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16847 echo "${ECHO_T}$ac_header_preproc" >&6
16849 # So? What about this header?
16850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16856 ac_header_preproc=yes
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16873 ## ------------------------------------------ ##
16874 ## Report this to the AC_PACKAGE_NAME lists. ##
16875 ## ------------------------------------------ ##
16878 sed "s/^/$as_me: WARNING: /" >&2
16881 echo "$as_me:$LINENO: checking for $ac_header" >&5
16882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 eval "$as_ac_Header=\$ac_header_preproc"
16888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16893 cat >>confdefs.h <<_ACEOF
16894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16901 if test $ac_cv_header_sys_uuid_h = yes ; then
16903 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16904 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16905 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 ac_func_search_save_LIBS=$LIBS
16909 ac_cv_search_uuid_to_str=no
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16917 /* Override any gcc2 internal prototype to avoid an error. */
16921 /* We use char because int might match the return type of a gcc2
16922 builtin and then its argument prototype would still apply. */
16923 char uuid_to_str ();
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16934 (eval $ac_link) 2>conftest.er1
16936 grep -v '^ *+' conftest.er1 >conftest.err
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try='test -z "$ac_c_werror_flag"
16942 || test ! -s conftest.err'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest$ac_exeext'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_cv_search_uuid_to_str="none required"
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16960 rm -f conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962 if test "$ac_cv_search_uuid_to_str" = no; then
16963 for ac_lib in uuid; do
16964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16965 cat >conftest.$ac_ext <<_ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16972 /* Override any gcc2 internal prototype to avoid an error. */
16976 /* We use char because int might match the return type of a gcc2
16977 builtin and then its argument prototype would still apply. */
16978 char uuid_to_str ();
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989 (eval $ac_link) 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag"
16997 || test ! -s conftest.err'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest$ac_exeext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_cv_search_uuid_to_str="-l$ac_lib"
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17016 rm -f conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
17020 LIBS=$ac_func_search_save_LIBS
17022 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17023 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17024 if test "$ac_cv_search_uuid_to_str" != no; then
17025 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17033 if test have_uuid = yes ; then
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_UUID_TO_STR 1
17040 test "$ac_cv_search_uuid_to_str" = "none required" || \
17041 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17045 if test $have_uuid = no ; then
17046 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17047 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17049 LIBS="$LIBS -lrpcrt4"
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17057 int __stdcall UuidCreate(void *);
17058 int __stdcall UuidToStringA(void *,void **);
17065 UuidToStringA(0,0);
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073 (eval $ac_link) 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag"
17081 || test ! -s conftest.err'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17100 rm -f conftest.err conftest.$ac_objext \
17101 conftest$ac_exeext conftest.$ac_ext
17102 if test $need_rpcrt = yes; then
17103 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17106 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17107 echo "${ECHO_T}$need_rpcrt" >&6
17110 ol_cv_lib_resolver=no
17111 if test $ol_cv_lib_resolver = no ; then
17112 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17113 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17114 if test "${ol_cv_resolver_none+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 LIBS="$ol_RESOLVER_LIB $LIBS"
17122 cat >conftest.$ac_ext <<_ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17129 #ifdef HAVE_SYS_TYPES_H
17130 # include <sys/types.h>
17132 #include <netinet/in.h>
17133 #ifdef HAVE_ARPA_NAMESER_H
17134 # include <arpa/nameser.h>
17136 #ifdef HAVE_RESOLV_H
17137 # include <resolv.h>
17145 char *request = NULL;
17146 unsigned char reply[64*1024];
17147 unsigned char host[64*1024];
17151 /* Bind 8/9 interface */
17152 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17154 /* Bind 4 interface */
17158 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17162 /* Bind 8/9 interface */
17164 #elif defined(HFIXEDSZ)
17165 /* Bind 4 interface w/ HFIXEDSZ */
17168 /* Bind 4 interface w/o HFIXEDSZ */
17169 p += sizeof(HEADER);
17171 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179 (eval $ac_link) 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest$ac_exeext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ol_cv_resolver_none=yes
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ol_cv_resolver_none=no
17206 rm -f conftest.err conftest.$ac_objext \
17207 conftest$ac_exeext conftest.$ac_ext
17212 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17213 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17215 if test $ol_cv_resolver_none = yes ; then
17216 ol_cv_lib_resolver=yes
17220 if test $ol_cv_lib_resolver = no ; then
17221 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17222 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17223 if test "${ol_cv_resolver_resolv+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 ol_RESOLVER_LIB=-lresolv
17229 LIBS="$ol_RESOLVER_LIB $LIBS"
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17238 #ifdef HAVE_SYS_TYPES_H
17239 # include <sys/types.h>
17241 #include <netinet/in.h>
17242 #ifdef HAVE_ARPA_NAMESER_H
17243 # include <arpa/nameser.h>
17245 #ifdef HAVE_RESOLV_H
17246 # include <resolv.h>
17254 char *request = NULL;
17255 unsigned char reply[64*1024];
17256 unsigned char host[64*1024];
17260 /* Bind 8/9 interface */
17261 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17263 /* Bind 4 interface */
17267 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17271 /* Bind 8/9 interface */
17273 #elif defined(HFIXEDSZ)
17274 /* Bind 4 interface w/ HFIXEDSZ */
17277 /* Bind 4 interface w/o HFIXEDSZ */
17278 p += sizeof(HEADER);
17280 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288 (eval $ac_link) 2>conftest.er1
17290 grep -v '^ *+' conftest.er1 >conftest.err
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag"
17296 || test ! -s conftest.err'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; } &&
17302 { ac_try='test -s conftest$ac_exeext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 ol_cv_resolver_resolv=yes
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17313 ol_cv_resolver_resolv=no
17315 rm -f conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17321 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17322 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17324 if test $ol_cv_resolver_resolv = yes ; then
17325 ol_cv_lib_resolver=-lresolv
17329 if test $ol_cv_lib_resolver = no ; then
17330 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17331 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17332 if test "${ol_cv_resolver_bind+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 ol_RESOLVER_LIB=-lbind
17338 LIBS="$ol_RESOLVER_LIB $LIBS"
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17347 #ifdef HAVE_SYS_TYPES_H
17348 # include <sys/types.h>
17350 #include <netinet/in.h>
17351 #ifdef HAVE_ARPA_NAMESER_H
17352 # include <arpa/nameser.h>
17354 #ifdef HAVE_RESOLV_H
17355 # include <resolv.h>
17363 char *request = NULL;
17364 unsigned char reply[64*1024];
17365 unsigned char host[64*1024];
17369 /* Bind 8/9 interface */
17370 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17372 /* Bind 4 interface */
17376 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17380 /* Bind 8/9 interface */
17382 #elif defined(HFIXEDSZ)
17383 /* Bind 4 interface w/ HFIXEDSZ */
17386 /* Bind 4 interface w/o HFIXEDSZ */
17387 p += sizeof(HEADER);
17389 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -z "$ac_c_werror_flag"
17405 || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ol_cv_resolver_bind=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ol_cv_resolver_bind=no
17424 rm -f conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17430 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17431 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17433 if test $ol_cv_resolver_bind = yes ; then
17434 ol_cv_lib_resolver=-lbind
17441 if test "$ol_cv_lib_resolver" != no ; then
17443 cat >>confdefs.h <<\_ACEOF
17444 #define HAVE_RES_QUERY 1
17448 if test "$ol_enable_dnssrv" != no ; then
17452 if test "$ol_cv_lib_resolver" != yes ; then
17453 LIBS="$ol_cv_lib_resolver $LIBS"
17457 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17458 if test "$ol_link_dnssrv" = no ; then
17459 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17460 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17461 { (exit 1); exit 1; }; }
17464 ol_enable_dnssrv=no
17468 for ac_func in hstrerror
17470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17471 echo "$as_me:$LINENO: checking for $ac_func" >&5
17472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17473 if eval "test \"\${$as_ac_var+set}\" = set"; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17484 #define $ac_func innocuous_$ac_func
17486 /* System header to define __stub macros and hopefully few prototypes,
17487 which can conflict with char $ac_func (); below.
17488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17489 <limits.h> exists even on freestanding compilers. */
17492 # include <limits.h>
17494 # include <assert.h>
17499 /* Override any gcc2 internal prototype to avoid an error. */
17504 /* We use char because int might match the return type of a gcc2
17505 builtin and then its argument prototype would still apply. */
17507 /* The GNU C library defines this for functions which it implements
17508 to always fail with ENOSYS. Some functions are actually named
17509 something starting with __ and the normal name is an alias. */
17510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17513 char (*f) () = $ac_func;
17522 return f != $ac_func;
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag"
17537 || test ! -s conftest.err'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 eval "$as_ac_var=yes"
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 eval "$as_ac_var=no"
17556 rm -f conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17574 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17577 echo "$as_me:$LINENO: checking for $ac_func" >&5
17578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17579 if eval "test \"\${$as_ac_var+set}\" = set"; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17590 #define $ac_func innocuous_$ac_func
17592 /* System header to define __stub macros and hopefully few prototypes,
17593 which can conflict with char $ac_func (); below.
17594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17595 <limits.h> exists even on freestanding compilers. */
17598 # include <limits.h>
17600 # include <assert.h>
17605 /* Override any gcc2 internal prototype to avoid an error. */
17610 /* We use char because int might match the return type of a gcc2
17611 builtin and then its argument prototype would still apply. */
17613 /* The GNU C library defines this for functions which it implements
17614 to always fail with ENOSYS. Some functions are actually named
17615 something starting with __ and the normal name is an alias. */
17616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17619 char (*f) () = $ac_func;
17628 return f != $ac_func;
17633 rm -f conftest.$ac_objext conftest$ac_exeext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635 (eval $ac_link) 2>conftest.er1
17637 grep -v '^ *+' conftest.er1 >conftest.err
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
17642 { ac_try='test -z "$ac_c_werror_flag"
17643 || test ! -s conftest.err'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest$ac_exeext'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 eval "$as_ac_var=yes"
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 eval "$as_ac_var=no"
17662 rm -f conftest.err conftest.$ac_objext \
17663 conftest$ac_exeext conftest.$ac_ext
17665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17667 if test `eval echo '${'$as_ac_var'}'` = yes; then
17668 cat >>confdefs.h <<_ACEOF
17669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17677 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17678 if test $ol_enable_ipv6 = yes ; then
17679 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17680 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17681 { (exit 1); exit 1; }; }
17683 elif test $ol_enable_ipv6 != no ; then
17684 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17685 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17686 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17697 # include <netinet/in.h>
17698 # ifdef INET6_ADDRSTRLEN
17699 __has_inet6_addrstrlen__;
17703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17704 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17705 ol_cv_inet6_addrstrlen=yes
17707 ol_cv_inet6_addrstrlen=no
17712 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17713 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17716 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17717 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17718 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 cat >conftest.$ac_ext <<_ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17729 #include <sys/types.h>
17730 #include <sys/socket.h>
17736 struct sockaddr_storage ss;
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744 (eval $ac_compile) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_c_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest.$ac_objext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ol_cv_struct_sockaddr_storage=yes
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ol_cv_struct_sockaddr_storage=no
17771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17773 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17774 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17776 if test $ol_cv_inet6_addrstrlen = yes &&
17777 test $ol_cv_struct_sockaddr_storage = yes ; then
17779 elif test $ol_enable_ipv6 = yes &&
17780 test $ol_cv_inet6_addrstrlen = no ; then
17781 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17782 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17783 { (exit 1); exit 1; }; }
17784 elif test $ol_enable_ipv6 = yes &&
17785 test $ol_cv_struct_sockaddr_storage = no ; then
17786 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17787 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17788 { (exit 1); exit 1; }; }
17792 if test $ol_enable_local != no ; then
17794 for ac_header in sys/un.h
17796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17798 echo "$as_me:$LINENO: checking for $ac_header" >&5
17799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17806 # Is the header compilable?
17807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17809 cat >conftest.$ac_ext <<_ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 $ac_includes_default
17816 #include <$ac_header>
17818 rm -f conftest.$ac_objext
17819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17820 (eval $ac_compile) 2>conftest.er1
17822 grep -v '^ *+' conftest.er1 >conftest.err
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
17827 { ac_try='test -z "$ac_c_werror_flag"
17828 || test ! -s conftest.err'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest.$ac_objext'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_header_compiler=yes
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_header_compiler=no
17847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17849 echo "${ECHO_T}$ac_header_compiler" >&6
17851 # Is the header present?
17852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 #include <$ac_header>
17862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17865 grep -v '^ *+' conftest.er1 >conftest.err
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } >/dev/null; then
17870 if test -s conftest.err; then
17871 ac_cpp_err=$ac_c_preproc_warn_flag
17872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17879 if test -z "$ac_cpp_err"; then
17880 ac_header_preproc=yes
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17885 ac_header_preproc=no
17887 rm -f conftest.err conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17889 echo "${ECHO_T}$ac_header_preproc" >&6
17891 # So? What about this header?
17892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17898 ac_header_preproc=yes
17901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17915 ## ------------------------------------------ ##
17916 ## Report this to the AC_PACKAGE_NAME lists. ##
17917 ## ------------------------------------------ ##
17920 sed "s/^/$as_me: WARNING: /" >&2
17923 echo "$as_me:$LINENO: checking for $ac_header" >&5
17924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 eval "$as_ac_Header=\$ac_header_preproc"
17930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17935 cat >>confdefs.h <<_ACEOF
17936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17944 if test $ol_enable_local = auto ; then
17945 ol_enable_local=$ac_cv_header_sys_un_h
17946 elif test $ac_cv_header_sys_un_h = no ; then
17947 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17948 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17949 { (exit 1); exit 1; }; }
17957 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17960 for ac_header in krb5.h
17962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17964 echo "$as_me:$LINENO: checking for $ac_header" >&5
17965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17972 # Is the header compilable?
17973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17975 cat >conftest.$ac_ext <<_ACEOF
17978 cat confdefs.h >>conftest.$ac_ext
17979 cat >>conftest.$ac_ext <<_ACEOF
17980 /* end confdefs.h. */
17981 $ac_includes_default
17982 #include <$ac_header>
17984 rm -f conftest.$ac_objext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17986 (eval $ac_compile) 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_c_werror_flag"
17994 || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest.$ac_objext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_header_compiler=yes
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_header_compiler=no
18013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18015 echo "${ECHO_T}$ac_header_compiler" >&6
18017 # Is the header present?
18018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18020 cat >conftest.$ac_ext <<_ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18026 #include <$ac_header>
18028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18031 grep -v '^ *+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } >/dev/null; then
18036 if test -s conftest.err; then
18037 ac_cpp_err=$ac_c_preproc_warn_flag
18038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18045 if test -z "$ac_cpp_err"; then
18046 ac_header_preproc=yes
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ac_header_preproc=no
18053 rm -f conftest.err conftest.$ac_ext
18054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18055 echo "${ECHO_T}$ac_header_preproc" >&6
18057 # So? What about this header?
18058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18064 ac_header_preproc=yes
18067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18081 ## ------------------------------------------ ##
18082 ## Report this to the AC_PACKAGE_NAME lists. ##
18083 ## ------------------------------------------ ##
18086 sed "s/^/$as_me: WARNING: /" >&2
18089 echo "$as_me:$LINENO: checking for $ac_header" >&5
18090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 eval "$as_ac_Header=\$ac_header_preproc"
18096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18101 cat >>confdefs.h <<_ACEOF
18102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18110 if test $ac_cv_header_krb5_h = yes ; then
18112 for ac_header in heim_err.h
18114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18116 echo "$as_me:$LINENO: checking for $ac_header" >&5
18117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18124 # Is the header compilable?
18125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 #include <$ac_header>
18136 rm -f conftest.$ac_objext
18137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18138 (eval $ac_compile) 2>conftest.er1
18140 grep -v '^ *+' conftest.er1 >conftest.err
18142 cat conftest.err >&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } &&
18145 { ac_try='test -z "$ac_c_werror_flag"
18146 || test ! -s conftest.err'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; } &&
18152 { ac_try='test -s conftest.$ac_objext'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18158 ac_header_compiler=yes
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_header_compiler=no
18165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18167 echo "${ECHO_T}$ac_header_compiler" >&6
18169 # Is the header present?
18170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 #include <$ac_header>
18180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18183 grep -v '^ *+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } >/dev/null; then
18188 if test -s conftest.err; then
18189 ac_cpp_err=$ac_c_preproc_warn_flag
18190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18197 if test -z "$ac_cpp_err"; then
18198 ac_header_preproc=yes
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 ac_header_preproc=no
18205 rm -f conftest.err conftest.$ac_ext
18206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18207 echo "${ECHO_T}$ac_header_preproc" >&6
18209 # So? What about this header?
18210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18216 ac_header_preproc=yes
18219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18233 ## ------------------------------------------ ##
18234 ## Report this to the AC_PACKAGE_NAME lists. ##
18235 ## ------------------------------------------ ##
18238 sed "s/^/$as_me: WARNING: /" >&2
18241 echo "$as_me:$LINENO: checking for $ac_header" >&5
18242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 eval "$as_ac_Header=\$ac_header_preproc"
18248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18253 cat >>confdefs.h <<_ACEOF
18254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18261 if test $ac_cv_header_heim_err_h = yes ; then
18267 if test $krb5_impl = mit; then
18268 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18269 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18270 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lk5crypto $LIBS"
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18291 rm -f conftest.$ac_objext conftest$ac_exeext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18293 (eval $ac_link) 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag"
18301 || test ! -s conftest.err'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest$ac_exeext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 ac_cv_lib_k5crypto_main=yes
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 ac_cv_lib_k5crypto_main=no
18320 rm -f conftest.err conftest.$ac_objext \
18321 conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18324 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18325 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18326 if test $ac_cv_lib_k5crypto_main = yes; then
18327 krb5crypto=k5crypto
18333 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18334 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18335 if test "${ac_cv_lib_krb5_main+set}" = set; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 ac_check_lib_save_LIBS=$LIBS
18339 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18358 (eval $ac_link) 2>conftest.er1
18360 grep -v '^ *+' conftest.er1 >conftest.err
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } &&
18365 { ac_try='test -z "$ac_c_werror_flag"
18366 || test ! -s conftest.err'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest$ac_exeext'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
18378 ac_cv_lib_krb5_main=yes
18380 echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 ac_cv_lib_krb5_main=no
18385 rm -f conftest.err conftest.$ac_objext \
18386 conftest$ac_exeext conftest.$ac_ext
18387 LIBS=$ac_check_lib_save_LIBS
18389 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18390 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18391 if test $ac_cv_lib_krb5_main = yes; then
18393 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18399 elif test $krb5_impl = heimdal; then
18400 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18401 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18402 if test "${ac_cv_lib_des_main+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 ac_check_lib_save_LIBS=$LIBS
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>conftest.er1
18427 grep -v '^ *+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest$ac_exeext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_lib_des_main=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 ac_cv_lib_des_main=no
18452 rm -f conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18454 LIBS=$ac_check_lib_save_LIBS
18456 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18457 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18458 if test $ac_cv_lib_des_main = yes; then
18465 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18466 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18467 if test "${ac_cv_lib_krb5_main+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 ac_check_lib_save_LIBS=$LIBS
18471 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18488 rm -f conftest.$ac_objext conftest$ac_exeext
18489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18490 (eval $ac_link) 2>conftest.er1
18492 grep -v '^ *+' conftest.er1 >conftest.err
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_c_werror_flag"
18498 || test ! -s conftest.err'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; } &&
18504 { ac_try='test -s conftest$ac_exeext'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_cv_lib_krb5_main=yes
18512 echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18515 ac_cv_lib_krb5_main=no
18517 rm -f conftest.err conftest.$ac_objext \
18518 conftest$ac_exeext conftest.$ac_ext
18519 LIBS=$ac_check_lib_save_LIBS
18521 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18522 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18523 if test $ac_cv_lib_krb5_main = yes; then
18525 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE_HEIMDAL_KERBEROS 1
18539 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18540 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18543 if test $have_krb5 = yes ; then
18547 cat >>confdefs.h <<\_ACEOF
18548 #define HAVE_KRB5 1
18552 if test $ol_with_kerberos = k5only ; then
18553 ol_with_kerberos=found
18556 elif test $ol_with_kerberos != auto ; then
18557 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18558 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18559 { (exit 1); exit 1; }; }
18566 if test $ol_link_krb5 = yes &&
18567 { test $ol_with_kerberos = yes ||
18568 test $ol_with_kerberos = auto ||
18569 test $ol_with_kerberos = k425; }; then
18573 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18577 echo "$as_me:$LINENO: checking for $ac_header" >&5
18578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18585 # Is the header compilable?
18586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 $ac_includes_default
18595 #include <$ac_header>
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599 (eval $ac_compile) 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_c_werror_flag"
18607 || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest.$ac_objext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_header_compiler=yes
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_header_compiler=no
18626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18628 echo "${ECHO_T}$ac_header_compiler" >&6
18630 # Is the header present?
18631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 #include <$ac_header>
18641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } >/dev/null; then
18649 if test -s conftest.err; then
18650 ac_cpp_err=$ac_c_preproc_warn_flag
18651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18658 if test -z "$ac_cpp_err"; then
18659 ac_header_preproc=yes
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_header_preproc=no
18666 rm -f conftest.err conftest.$ac_ext
18667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18668 echo "${ECHO_T}$ac_header_preproc" >&6
18670 # So? What about this header?
18671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18677 ac_header_preproc=yes
18680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18694 ## ------------------------------------------ ##
18695 ## Report this to the AC_PACKAGE_NAME lists. ##
18696 ## ------------------------------------------ ##
18699 sed "s/^/$as_me: WARNING: /" >&2
18702 echo "$as_me:$LINENO: checking for $ac_header" >&5
18703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 eval "$as_ac_Header=\$ac_header_preproc"
18709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18714 cat >>confdefs.h <<_ACEOF
18715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18723 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18724 if test $krb5_impl = mit; then
18725 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18726 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18727 if test "${ac_cv_lib_krb4_main+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 ac_check_lib_save_LIBS=$LIBS
18731 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18732 cat >conftest.$ac_ext <<_ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18748 rm -f conftest.$ac_objext conftest$ac_exeext
18749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18750 (eval $ac_link) 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
18757 { ac_try='test -z "$ac_c_werror_flag"
18758 || test ! -s conftest.err'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest$ac_exeext'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_cv_lib_krb4_main=yes
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775 ac_cv_lib_krb4_main=no
18777 rm -f conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18779 LIBS=$ac_check_lib_save_LIBS
18781 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18782 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18783 if test $ac_cv_lib_krb4_main = yes; then
18785 KRB4_LIBS="-lkrb4 -ldes425"
18791 elif test $krb5_impl = heimdal; then
18792 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18793 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18794 if test "${ac_cv_lib_krb4_main+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 ac_check_lib_save_LIBS=$LIBS
18798 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18817 (eval $ac_link) 2>conftest.er1
18819 grep -v '^ *+' conftest.er1 >conftest.err
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag"
18825 || test ! -s conftest.err'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; } &&
18831 { ac_try='test -s conftest$ac_exeext'
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_cv_lib_krb4_main=yes
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_lib_krb4_main=no
18844 rm -f conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18848 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18849 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18850 if test $ac_cv_lib_krb4_main = yes; then
18860 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18861 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18864 if test $have_k425 = yes ; then
18865 ol_with_kerberos=found
18869 cat >>confdefs.h <<\_ACEOF
18870 #define HAVE_KRB425 1
18874 cat >>confdefs.h <<\_ACEOF
18875 #define HAVE_KRB4 1
18879 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18880 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18881 if test "${ol_cv_var_des_debug+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18894 #include <kerberosIV/krb.h>
18895 #include <kerberosIV/des.h>
18896 extern int des_debug;
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910 (eval $ac_link) 2>conftest.er1
18912 grep -v '^ *+' conftest.er1 >conftest.err
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag"
18918 || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ol_cv_var_des_debug=yes
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ol_cv_var_des_debug=no
18937 rm -f conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18942 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18943 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18945 if test $ol_cv_var_des_debug = yes ; then
18947 cat >>confdefs.h <<\_ACEOF
18948 #define HAVE_DES_DEBUG 1
18958 if test $ol_link_krb5 = yes ; then
18959 ol_with_kerberos=found
18962 case $ol_with_kerberos in yes | auto | k4 | kth)
18967 for ac_header in krb.h des.h krb-archaeology.h
18969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18971 echo "$as_me:$LINENO: checking for $ac_header" >&5
18972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18979 # Is the header compilable?
18980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988 $ac_includes_default
18989 #include <$ac_header>
18991 rm -f conftest.$ac_objext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993 (eval $ac_compile) 2>conftest.er1
18995 grep -v '^ *+' conftest.er1 >conftest.err
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_c_werror_flag"
19001 || test ! -s conftest.err'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest.$ac_objext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_header_compiler=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_header_compiler=no
19020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19022 echo "${ECHO_T}$ac_header_compiler" >&6
19024 # Is the header present?
19025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19027 cat >conftest.$ac_ext <<_ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h. */
19033 #include <$ac_header>
19035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19038 grep -v '^ *+' conftest.er1 >conftest.err
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } >/dev/null; then
19043 if test -s conftest.err; then
19044 ac_cpp_err=$ac_c_preproc_warn_flag
19045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19052 if test -z "$ac_cpp_err"; then
19053 ac_header_preproc=yes
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_header_preproc=no
19060 rm -f conftest.err conftest.$ac_ext
19061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19062 echo "${ECHO_T}$ac_header_preproc" >&6
19064 # So? What about this header?
19065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19071 ac_header_preproc=yes
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19088 ## ------------------------------------------ ##
19089 ## Report this to the AC_PACKAGE_NAME lists. ##
19090 ## ------------------------------------------ ##
19093 sed "s/^/$as_me: WARNING: /" >&2
19096 echo "$as_me:$LINENO: checking for $ac_header" >&5
19097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 eval "$as_ac_Header=\$ac_header_preproc"
19103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19108 cat >>confdefs.h <<_ACEOF
19109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19117 if test $ac_cv_header_krb_h = yes ; then
19118 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19119 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19120 if test "${ac_cv_lib_krb_main+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 ac_check_lib_save_LIBS=$LIBS
19124 LIBS="-lkrb -ldes $LIBS"
19125 cat >conftest.$ac_ext <<_ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143 (eval $ac_link) 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_c_werror_flag"
19151 || test ! -s conftest.err'
19152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153 (eval $ac_try) 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; } &&
19157 { ac_try='test -s conftest$ac_exeext'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; }; then
19163 ac_cv_lib_krb_main=yes
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 ac_cv_lib_krb_main=no
19170 rm -f conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
19172 LIBS=$ac_check_lib_save_LIBS
19174 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19175 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19176 if test $ac_cv_lib_krb_main = yes; then
19183 if test $have_k4 = yes ; then
19184 ol_with_kerberos=found
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_KRB4 1
19193 KRB4_LIBS="-lkrb -ldes"
19195 if test $ac_cv_header_krb_archaeology_h = yes ; then
19197 cat >>confdefs.h <<\_ACEOF
19198 #define HAVE_KTH_KERBEROS 1
19207 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19210 elif test $ol_enable_kbind = yes ; then
19211 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19212 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19213 { (exit 1); exit 1; }; }
19216 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_KERBEROS 1
19223 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19224 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19225 echo "$as_me: error: Kerberos detection failed" >&2;}
19226 { (exit 1); exit 1; }; }
19231 if test $ol_with_tls != no ; then
19233 for ac_header in openssl/ssl.h
19235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19237 echo "$as_me:$LINENO: checking for $ac_header" >&5
19238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19245 # Is the header compilable?
19246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 $ac_includes_default
19255 #include <$ac_header>
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_header_compiler=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_compiler=no
19286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19288 echo "${ECHO_T}$ac_header_compiler" >&6
19290 # Is the header present?
19291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 #include <$ac_header>
19301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19304 grep -v '^ *+' conftest.er1 >conftest.err
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } >/dev/null; then
19309 if test -s conftest.err; then
19310 ac_cpp_err=$ac_c_preproc_warn_flag
19311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19318 if test -z "$ac_cpp_err"; then
19319 ac_header_preproc=yes
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 ac_header_preproc=no
19326 rm -f conftest.err conftest.$ac_ext
19327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6
19330 # So? What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19337 ac_header_preproc=yes
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19354 ## ------------------------------------------ ##
19355 ## Report this to the AC_PACKAGE_NAME lists. ##
19356 ## ------------------------------------------ ##
19359 sed "s/^/$as_me: WARNING: /" >&2
19362 echo "$as_me:$LINENO: checking for $ac_header" >&5
19363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 eval "$as_ac_Header=\$ac_header_preproc"
19369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19383 if test $ac_cv_header_openssl_ssl_h = yes ; then
19384 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19385 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19386 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 ac_check_lib_save_LIBS=$LIBS
19390 LIBS="-lssl -lcrypto $LIBS"
19391 cat >conftest.$ac_ext <<_ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19398 /* Override any gcc2 internal prototype to avoid an error. */
19402 /* We use char because int might match the return type of a gcc2
19403 builtin and then its argument prototype would still apply. */
19404 char SSL_library_init ();
19408 SSL_library_init ();
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415 (eval $ac_link) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest$ac_exeext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_cv_lib_ssl_SSL_library_init=yes
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_cv_lib_ssl_SSL_library_init=no
19442 rm -f conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
19444 LIBS=$ac_check_lib_save_LIBS
19446 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19447 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19448 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19456 if test $have_openssl = no ; then
19457 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19458 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19459 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19471 /* Override any gcc2 internal prototype to avoid an error. */
19475 /* We use char because int might match the return type of a gcc2
19476 builtin and then its argument prototype would still apply. */
19477 char ssl3_accept ();
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19488 (eval $ac_link) 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest$ac_exeext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_cv_lib_ssl_ssl3_accept=yes
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_cv_lib_ssl_ssl3_accept=no
19515 rm -f conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19519 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19520 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19521 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19530 if test $have_openssl = yes ; then
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_OPENSSL 1
19540 if test $need_rsaref = yes; then
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE_RSAREF 1
19547 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19549 TLS_LIBS="-lssl -lcrypto"
19552 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19553 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19554 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 cat >conftest.$ac_ext <<_ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19565 #ifdef HAVE_OPENSSL_SSL_H
19566 #include <openssl/ssl.h>
19571 /* Require 0.9.7d+ */
19572 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19573 char *__ssl_compat = "0.9.7d";
19577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19578 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19579 ol_cv_ssl_crl_compat=yes
19581 ol_cv_ssl_crl_compat=no
19586 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19587 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19589 if test $ol_cv_ssl_crl_compat = no ; then
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_OPENSSL_CRL 1
19601 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19602 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19606 if test $ol_link_tls = yes ; then
19608 cat >>confdefs.h <<\_ACEOF
19614 elif test $ol_with_tls = auto ; then
19615 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19616 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19617 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19618 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19620 elif test $ol_with_tls != no ; then
19621 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19622 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19623 { (exit 1); exit 1; }; }
19626 if test $ol_enable_lmpasswd != no; then
19627 if test $ol_link_tls != yes ; then
19628 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19629 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19630 { (exit 1); exit 1; }; }
19634 cat >>confdefs.h <<\_ACEOF
19635 #define SLAPD_LMHASH 1
19642 case $ol_with_threads in auto | yes | nt)
19645 echo "$as_me:$LINENO: checking for _beginthread" >&5
19646 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19647 if test "${ac_cv_func__beginthread+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19658 #define _beginthread innocuous__beginthread
19660 /* System header to define __stub macros and hopefully few prototypes,
19661 which can conflict with char _beginthread (); below.
19662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19663 <limits.h> exists even on freestanding compilers. */
19666 # include <limits.h>
19668 # include <assert.h>
19671 #undef _beginthread
19673 /* Override any gcc2 internal prototype to avoid an error. */
19678 /* We use char because int might match the return type of a gcc2
19679 builtin and then its argument prototype would still apply. */
19680 char _beginthread ();
19681 /* The GNU C library defines this for functions which it implements
19682 to always fail with ENOSYS. Some functions are actually named
19683 something starting with __ and the normal name is an alias. */
19684 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19687 char (*f) () = _beginthread;
19696 return f != _beginthread;
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19703 (eval $ac_link) 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag"
19711 || test ! -s conftest.err'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest$ac_exeext'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_cv_func__beginthread=yes
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_cv_func__beginthread=no
19730 rm -f conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19733 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19734 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19737 if test $ac_cv_func__beginthread = yes ; then
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_NT_THREADS 1
19743 ol_cv_nt_threads=yes
19747 if test "$ol_cv_nt_threads" = yes ; then
19749 ol_with_threads=found
19750 ol_with_yielding_select=yes
19753 cat >>confdefs.h <<\_ACEOF
19754 #define HAVE_NT_SERVICE_MANAGER 1
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_NT_EVENT_LOG 1
19764 if test $ol_with_threads = nt ; then
19765 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19766 echo "$as_me: error: could not locate NT Threads" >&2;}
19767 { (exit 1); exit 1; }; }
19772 case $ol_with_threads in auto | yes | posix)
19775 for ac_header in pthread.h
19777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779 echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19787 # Is the header compilable?
19788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19790 cat >conftest.$ac_ext <<_ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 $ac_includes_default
19797 #include <$ac_header>
19799 rm -f conftest.$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_c_werror_flag"
19809 || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_header_compiler=yes
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_compiler=no
19828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19830 echo "${ECHO_T}$ac_header_compiler" >&6
19832 # Is the header present?
19833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <$ac_header>
19843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } >/dev/null; then
19851 if test -s conftest.err; then
19852 ac_cpp_err=$ac_c_preproc_warn_flag
19853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19860 if test -z "$ac_cpp_err"; then
19861 ac_header_preproc=yes
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_header_preproc=no
19868 rm -f conftest.err conftest.$ac_ext
19869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19870 echo "${ECHO_T}$ac_header_preproc" >&6
19872 # So? What about this header?
19873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19879 ac_header_preproc=yes
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19896 ## ------------------------------------------ ##
19897 ## Report this to the AC_PACKAGE_NAME lists. ##
19898 ## ------------------------------------------ ##
19901 sed "s/^/$as_me: WARNING: /" >&2
19904 echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 eval "$as_ac_Header=\$ac_header_preproc"
19911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19916 cat >>confdefs.h <<_ACEOF
19917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19925 if test $ac_cv_header_pthread_h = yes ; then
19926 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19927 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19928 if test "${ol_cv_pthread_version+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19939 # include <pthread.h>
19945 int i = PTHREAD_CREATE_JOINABLE;
19951 rm -f conftest.$ac_objext
19952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19953 (eval $ac_compile) 2>conftest.er1
19955 grep -v '^ *+' conftest.er1 >conftest.err
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -z "$ac_c_werror_flag"
19961 || test ! -s conftest.err'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 #include <pthread.h>
19983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19984 $EGREP "pthread_detach" >/dev/null 2>&1; then
19985 ol_cv_pthread_version=10
19987 ol_cv_pthread_version=8
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19996 cat >conftest.$ac_ext <<_ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20003 # include <pthread.h>
20004 # ifdef PTHREAD_CREATE_UNDETACHED
20009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20010 $EGREP "draft7" >/dev/null 2>&1; then
20011 ol_cv_pthread_version=7
20014 cat >conftest.$ac_ext <<_ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 #include <pthread.h>
20023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20024 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20025 ol_cv_pthread_version=6
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 # include <pthread.h>
20036 #ifdef PTHREAD_MUTEX_INITIALIZER
20041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20042 $EGREP "draft5" >/dev/null 2>&1; then
20043 ol_cv_pthread_version=5
20045 ol_cv_pthread_version=4
20056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20059 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20060 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20063 if test $ol_cv_pthread_version != 0 ; then
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_PTHREADS $ol_cv_pthread_version
20070 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20071 echo "$as_me: error: unknown pthread version" >&2;}
20072 { (exit 1); exit 1; }; }
20075 # consider threads found
20076 ol_with_threads=found
20079 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20080 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20081 if test "${ol_cv_header_linux_threads+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 #include <pthread.h>
20092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20093 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20094 ol_cv_header_linux_threads=yes
20096 ol_cv_header_linux_threads=no
20102 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20103 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20104 if test $ol_cv_header_linux_threads = yes; then
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_LINUX_THREADS 1
20113 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20114 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20115 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #include <pthread.h>
20125 #ifdef _POSIX_THREAD_IS_GNU_PTH
20130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20131 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20132 ol_cv_header_gnu_pth_pthread_h=yes
20134 ol_cv_header_gnu_pth_pthread_h=no
20140 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20141 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20144 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20146 for ac_header in sched.h
20148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20150 echo "$as_me:$LINENO: checking for $ac_header" >&5
20151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20158 # Is the header compilable?
20159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20161 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 $ac_includes_default
20168 #include <$ac_header>
20170 rm -f conftest.$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172 (eval $ac_compile) 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_header_compiler=yes
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_header_compiler=no
20199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20201 echo "${ECHO_T}$ac_header_compiler" >&6
20203 # Is the header present?
20204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20206 cat >conftest.$ac_ext <<_ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20212 #include <$ac_header>
20214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20217 grep -v '^ *+' conftest.er1 >conftest.err
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } >/dev/null; then
20222 if test -s conftest.err; then
20223 ac_cpp_err=$ac_c_preproc_warn_flag
20224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20231 if test -z "$ac_cpp_err"; then
20232 ac_header_preproc=yes
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 ac_header_preproc=no
20239 rm -f conftest.err conftest.$ac_ext
20240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20241 echo "${ECHO_T}$ac_header_preproc" >&6
20243 # So? What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20250 ac_header_preproc=yes
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20267 ## ------------------------------------------ ##
20268 ## Report this to the AC_PACKAGE_NAME lists. ##
20269 ## ------------------------------------------ ##
20272 sed "s/^/$as_me: WARNING: /" >&2
20275 echo "$as_me:$LINENO: checking for $ac_header" >&5
20276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 eval "$as_ac_Header=\$ac_header_preproc"
20282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20298 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20299 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20300 if test "${ol_cv_pthread_create+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 if test "$cross_compiling" = yes; then
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20312 /* pthread test headers */
20313 #include <pthread.h>
20314 #if HAVE_PTHREADS < 7
20318 #define NULL (void*)0
20321 static void *task(p)
20324 return (void *) (p == NULL);
20331 /* pthread test function */
20332 #ifndef PTHREAD_CREATE_DETACHED
20333 #define PTHREAD_CREATE_DETACHED 1
20337 int detach = PTHREAD_CREATE_DETACHED;
20339 #if HAVE_PTHREADS > 4
20340 /* Final pthreads */
20341 pthread_attr_t attr;
20343 status = pthread_attr_init(&attr);
20344 if( status ) return status;
20346 #if HAVE_PTHREADS < 7
20347 status = pthread_attr_setdetachstate(&attr, &detach);
20348 if( status < 0 ) status = errno;
20350 status = pthread_attr_setdetachstate(&attr, detach);
20352 if( status ) return status;
20353 status = pthread_create( &t, &attr, task, NULL );
20354 #if HAVE_PTHREADS < 7
20355 if( status < 0 ) status = errno;
20357 if( status ) return status;
20359 /* Draft 4 pthreads */
20360 status = pthread_create( &t, pthread_attr_default, task, NULL );
20361 if( status ) return errno;
20363 /* give thread a chance to complete */
20364 /* it should remain joinable and hence detachable */
20367 status = pthread_detach( &t );
20368 if( status ) return errno;
20371 #ifdef HAVE_LINUX_THREADS
20372 pthread_kill_other_threads_np();
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383 (eval $ac_link) 2>conftest.er1
20385 grep -v '^ *+' conftest.er1 >conftest.err
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } &&
20390 { ac_try='test -z "$ac_c_werror_flag"
20391 || test ! -s conftest.err'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest$ac_exeext'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20403 ol_cv_pthread_create=yes
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ol_cv_pthread_create=no
20410 rm -f conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext conftest.$ac_ext
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20420 /* pthread test headers */
20421 #include <pthread.h>
20422 #if HAVE_PTHREADS < 7
20426 #define NULL (void*)0
20429 static void *task(p)
20432 return (void *) (p == NULL);
20436 int main(argc, argv)
20441 /* pthread test function */
20442 #ifndef PTHREAD_CREATE_DETACHED
20443 #define PTHREAD_CREATE_DETACHED 1
20447 int detach = PTHREAD_CREATE_DETACHED;
20449 #if HAVE_PTHREADS > 4
20450 /* Final pthreads */
20451 pthread_attr_t attr;
20453 status = pthread_attr_init(&attr);
20454 if( status ) return status;
20456 #if HAVE_PTHREADS < 7
20457 status = pthread_attr_setdetachstate(&attr, &detach);
20458 if( status < 0 ) status = errno;
20460 status = pthread_attr_setdetachstate(&attr, detach);
20462 if( status ) return status;
20463 status = pthread_create( &t, &attr, task, NULL );
20464 #if HAVE_PTHREADS < 7
20465 if( status < 0 ) status = errno;
20467 if( status ) return status;
20469 /* Draft 4 pthreads */
20470 status = pthread_create( &t, pthread_attr_default, task, NULL );
20471 if( status ) return errno;
20473 /* give thread a chance to complete */
20474 /* it should remain joinable and hence detachable */
20477 status = pthread_detach( &t );
20478 if( status ) return errno;
20481 #ifdef HAVE_LINUX_THREADS
20482 pthread_kill_other_threads_np();
20490 rm -f conftest$ac_exeext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492 (eval $ac_link) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 ol_cv_pthread_create=yes
20503 echo "$as_me: program exited with status $ac_status" >&5
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ( exit $ac_status )
20508 ol_cv_pthread_create=no
20510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20513 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20514 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20516 if test $ol_cv_pthread_create != no ; then
20517 ol_link_threads=posix
20518 ol_link_pthreads=""
20521 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20522 if test "$ol_link_threads" = no ; then
20524 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20525 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20526 if test "${ol_cv_pthread_kthread+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20532 LIBS="-kthread $LIBS"
20534 if test "$cross_compiling" = yes; then
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20542 /* pthread test headers */
20543 #include <pthread.h>
20544 #if HAVE_PTHREADS < 7
20548 #define NULL (void*)0
20551 static void *task(p)
20554 return (void *) (p == NULL);
20561 /* pthread test function */
20562 #ifndef PTHREAD_CREATE_DETACHED
20563 #define PTHREAD_CREATE_DETACHED 1
20567 int detach = PTHREAD_CREATE_DETACHED;
20569 #if HAVE_PTHREADS > 4
20570 /* Final pthreads */
20571 pthread_attr_t attr;
20573 status = pthread_attr_init(&attr);
20574 if( status ) return status;
20576 #if HAVE_PTHREADS < 7
20577 status = pthread_attr_setdetachstate(&attr, &detach);
20578 if( status < 0 ) status = errno;
20580 status = pthread_attr_setdetachstate(&attr, detach);
20582 if( status ) return status;
20583 status = pthread_create( &t, &attr, task, NULL );
20584 #if HAVE_PTHREADS < 7
20585 if( status < 0 ) status = errno;
20587 if( status ) return status;
20589 /* Draft 4 pthreads */
20590 status = pthread_create( &t, pthread_attr_default, task, NULL );
20591 if( status ) return errno;
20593 /* give thread a chance to complete */
20594 /* it should remain joinable and hence detachable */
20597 status = pthread_detach( &t );
20598 if( status ) return errno;
20601 #ifdef HAVE_LINUX_THREADS
20602 pthread_kill_other_threads_np();
20611 rm -f conftest.$ac_objext conftest$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613 (eval $ac_link) 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag"
20621 || test ! -s conftest.err'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; } &&
20627 { ac_try='test -s conftest$ac_exeext'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ol_cv_pthread_kthread=yes
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ol_cv_pthread_kthread=no
20640 rm -f conftest.err conftest.$ac_objext \
20641 conftest$ac_exeext conftest.$ac_ext
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20650 /* pthread test headers */
20651 #include <pthread.h>
20652 #if HAVE_PTHREADS < 7
20656 #define NULL (void*)0
20659 static void *task(p)
20662 return (void *) (p == NULL);
20666 int main(argc, argv)
20671 /* pthread test function */
20672 #ifndef PTHREAD_CREATE_DETACHED
20673 #define PTHREAD_CREATE_DETACHED 1
20677 int detach = PTHREAD_CREATE_DETACHED;
20679 #if HAVE_PTHREADS > 4
20680 /* Final pthreads */
20681 pthread_attr_t attr;
20683 status = pthread_attr_init(&attr);
20684 if( status ) return status;
20686 #if HAVE_PTHREADS < 7
20687 status = pthread_attr_setdetachstate(&attr, &detach);
20688 if( status < 0 ) status = errno;
20690 status = pthread_attr_setdetachstate(&attr, detach);
20692 if( status ) return status;
20693 status = pthread_create( &t, &attr, task, NULL );
20694 #if HAVE_PTHREADS < 7
20695 if( status < 0 ) status = errno;
20697 if( status ) return status;
20699 /* Draft 4 pthreads */
20700 status = pthread_create( &t, pthread_attr_default, task, NULL );
20701 if( status ) return errno;
20703 /* give thread a chance to complete */
20704 /* it should remain joinable and hence detachable */
20707 status = pthread_detach( &t );
20708 if( status ) return errno;
20711 #ifdef HAVE_LINUX_THREADS
20712 pthread_kill_other_threads_np();
20720 rm -f conftest$ac_exeext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ol_cv_pthread_kthread=yes
20733 echo "$as_me: program exited with status $ac_status" >&5
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ( exit $ac_status )
20738 ol_cv_pthread_kthread=no
20740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20747 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20748 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20750 if test $ol_cv_pthread_kthread = yes ; then
20751 ol_link_pthreads="-kthread"
20752 ol_link_threads=posix
20756 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20757 if test "$ol_link_threads" = no ; then
20759 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20760 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20761 if test "${ol_cv_pthread_pthread+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 LIBS="-pthread $LIBS"
20769 if test "$cross_compiling" = yes; then
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 /* pthread test headers */
20778 #include <pthread.h>
20779 #if HAVE_PTHREADS < 7
20783 #define NULL (void*)0
20786 static void *task(p)
20789 return (void *) (p == NULL);
20796 /* pthread test function */
20797 #ifndef PTHREAD_CREATE_DETACHED
20798 #define PTHREAD_CREATE_DETACHED 1
20802 int detach = PTHREAD_CREATE_DETACHED;
20804 #if HAVE_PTHREADS > 4
20805 /* Final pthreads */
20806 pthread_attr_t attr;
20808 status = pthread_attr_init(&attr);
20809 if( status ) return status;
20811 #if HAVE_PTHREADS < 7
20812 status = pthread_attr_setdetachstate(&attr, &detach);
20813 if( status < 0 ) status = errno;
20815 status = pthread_attr_setdetachstate(&attr, detach);
20817 if( status ) return status;
20818 status = pthread_create( &t, &attr, task, NULL );
20819 #if HAVE_PTHREADS < 7
20820 if( status < 0 ) status = errno;
20822 if( status ) return status;
20824 /* Draft 4 pthreads */
20825 status = pthread_create( &t, pthread_attr_default, task, NULL );
20826 if( status ) return errno;
20828 /* give thread a chance to complete */
20829 /* it should remain joinable and hence detachable */
20832 status = pthread_detach( &t );
20833 if( status ) return errno;
20836 #ifdef HAVE_LINUX_THREADS
20837 pthread_kill_other_threads_np();
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848 (eval $ac_link) 2>conftest.er1
20850 grep -v '^ *+' conftest.er1 >conftest.err
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } &&
20855 { ac_try='test -z "$ac_c_werror_flag"
20856 || test ! -s conftest.err'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; } &&
20862 { ac_try='test -s conftest$ac_exeext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ol_cv_pthread_pthread=yes
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ol_cv_pthread_pthread=no
20875 rm -f conftest.err conftest.$ac_objext \
20876 conftest$ac_exeext conftest.$ac_ext
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20885 /* pthread test headers */
20886 #include <pthread.h>
20887 #if HAVE_PTHREADS < 7
20891 #define NULL (void*)0
20894 static void *task(p)
20897 return (void *) (p == NULL);
20901 int main(argc, argv)
20906 /* pthread test function */
20907 #ifndef PTHREAD_CREATE_DETACHED
20908 #define PTHREAD_CREATE_DETACHED 1
20912 int detach = PTHREAD_CREATE_DETACHED;
20914 #if HAVE_PTHREADS > 4
20915 /* Final pthreads */
20916 pthread_attr_t attr;
20918 status = pthread_attr_init(&attr);
20919 if( status ) return status;
20921 #if HAVE_PTHREADS < 7
20922 status = pthread_attr_setdetachstate(&attr, &detach);
20923 if( status < 0 ) status = errno;
20925 status = pthread_attr_setdetachstate(&attr, detach);
20927 if( status ) return status;
20928 status = pthread_create( &t, &attr, task, NULL );
20929 #if HAVE_PTHREADS < 7
20930 if( status < 0 ) status = errno;
20932 if( status ) return status;
20934 /* Draft 4 pthreads */
20935 status = pthread_create( &t, pthread_attr_default, task, NULL );
20936 if( status ) return errno;
20938 /* give thread a chance to complete */
20939 /* it should remain joinable and hence detachable */
20942 status = pthread_detach( &t );
20943 if( status ) return errno;
20946 #ifdef HAVE_LINUX_THREADS
20947 pthread_kill_other_threads_np();
20955 rm -f conftest$ac_exeext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20957 (eval $ac_link) 2>&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ol_cv_pthread_pthread=yes
20968 echo "$as_me: program exited with status $ac_status" >&5
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 ( exit $ac_status )
20973 ol_cv_pthread_pthread=no
20975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20982 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20983 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20985 if test $ol_cv_pthread_pthread = yes ; then
20986 ol_link_pthreads="-pthread"
20987 ol_link_threads=posix
20991 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20992 if test "$ol_link_threads" = no ; then
20994 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20995 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20996 if test "${ol_cv_pthread_pthreads+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 LIBS="-pthreads $LIBS"
21004 if test "$cross_compiling" = yes; then
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21012 /* pthread test headers */
21013 #include <pthread.h>
21014 #if HAVE_PTHREADS < 7
21018 #define NULL (void*)0
21021 static void *task(p)
21024 return (void *) (p == NULL);
21031 /* pthread test function */
21032 #ifndef PTHREAD_CREATE_DETACHED
21033 #define PTHREAD_CREATE_DETACHED 1
21037 int detach = PTHREAD_CREATE_DETACHED;
21039 #if HAVE_PTHREADS > 4
21040 /* Final pthreads */
21041 pthread_attr_t attr;
21043 status = pthread_attr_init(&attr);
21044 if( status ) return status;
21046 #if HAVE_PTHREADS < 7
21047 status = pthread_attr_setdetachstate(&attr, &detach);
21048 if( status < 0 ) status = errno;
21050 status = pthread_attr_setdetachstate(&attr, detach);
21052 if( status ) return status;
21053 status = pthread_create( &t, &attr, task, NULL );
21054 #if HAVE_PTHREADS < 7
21055 if( status < 0 ) status = errno;
21057 if( status ) return status;
21059 /* Draft 4 pthreads */
21060 status = pthread_create( &t, pthread_attr_default, task, NULL );
21061 if( status ) return errno;
21063 /* give thread a chance to complete */
21064 /* it should remain joinable and hence detachable */
21067 status = pthread_detach( &t );
21068 if( status ) return errno;
21071 #ifdef HAVE_LINUX_THREADS
21072 pthread_kill_other_threads_np();
21081 rm -f conftest.$ac_objext conftest$ac_exeext
21082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21083 (eval $ac_link) 2>conftest.er1
21085 grep -v '^ *+' conftest.er1 >conftest.err
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 { ac_try='test -z "$ac_c_werror_flag"
21091 || test ! -s conftest.err'
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; } &&
21097 { ac_try='test -s conftest$ac_exeext'
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; }; then
21103 ol_cv_pthread_pthreads=yes
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ol_cv_pthread_pthreads=no
21110 rm -f conftest.err conftest.$ac_objext \
21111 conftest$ac_exeext conftest.$ac_ext
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21120 /* pthread test headers */
21121 #include <pthread.h>
21122 #if HAVE_PTHREADS < 7
21126 #define NULL (void*)0
21129 static void *task(p)
21132 return (void *) (p == NULL);
21136 int main(argc, argv)
21141 /* pthread test function */
21142 #ifndef PTHREAD_CREATE_DETACHED
21143 #define PTHREAD_CREATE_DETACHED 1
21147 int detach = PTHREAD_CREATE_DETACHED;
21149 #if HAVE_PTHREADS > 4
21150 /* Final pthreads */
21151 pthread_attr_t attr;
21153 status = pthread_attr_init(&attr);
21154 if( status ) return status;
21156 #if HAVE_PTHREADS < 7
21157 status = pthread_attr_setdetachstate(&attr, &detach);
21158 if( status < 0 ) status = errno;
21160 status = pthread_attr_setdetachstate(&attr, detach);
21162 if( status ) return status;
21163 status = pthread_create( &t, &attr, task, NULL );
21164 #if HAVE_PTHREADS < 7
21165 if( status < 0 ) status = errno;
21167 if( status ) return status;
21169 /* Draft 4 pthreads */
21170 status = pthread_create( &t, pthread_attr_default, task, NULL );
21171 if( status ) return errno;
21173 /* give thread a chance to complete */
21174 /* it should remain joinable and hence detachable */
21177 status = pthread_detach( &t );
21178 if( status ) return errno;
21181 #ifdef HAVE_LINUX_THREADS
21182 pthread_kill_other_threads_np();
21190 rm -f conftest$ac_exeext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21192 (eval $ac_link) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }; then
21201 ol_cv_pthread_pthreads=yes
21203 echo "$as_me: program exited with status $ac_status" >&5
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ( exit $ac_status )
21208 ol_cv_pthread_pthreads=no
21210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21217 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21218 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21220 if test $ol_cv_pthread_pthreads = yes ; then
21221 ol_link_pthreads="-pthreads"
21222 ol_link_threads=posix
21226 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21227 if test "$ol_link_threads" = no ; then
21229 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21230 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21231 if test "${ol_cv_pthread_mthreads+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 LIBS="-mthreads $LIBS"
21239 if test "$cross_compiling" = yes; then
21240 cat >conftest.$ac_ext <<_ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21247 /* pthread test headers */
21248 #include <pthread.h>
21249 #if HAVE_PTHREADS < 7
21253 #define NULL (void*)0
21256 static void *task(p)
21259 return (void *) (p == NULL);
21266 /* pthread test function */
21267 #ifndef PTHREAD_CREATE_DETACHED
21268 #define PTHREAD_CREATE_DETACHED 1
21272 int detach = PTHREAD_CREATE_DETACHED;
21274 #if HAVE_PTHREADS > 4
21275 /* Final pthreads */
21276 pthread_attr_t attr;
21278 status = pthread_attr_init(&attr);
21279 if( status ) return status;
21281 #if HAVE_PTHREADS < 7
21282 status = pthread_attr_setdetachstate(&attr, &detach);
21283 if( status < 0 ) status = errno;
21285 status = pthread_attr_setdetachstate(&attr, detach);
21287 if( status ) return status;
21288 status = pthread_create( &t, &attr, task, NULL );
21289 #if HAVE_PTHREADS < 7
21290 if( status < 0 ) status = errno;
21292 if( status ) return status;
21294 /* Draft 4 pthreads */
21295 status = pthread_create( &t, pthread_attr_default, task, NULL );
21296 if( status ) return errno;
21298 /* give thread a chance to complete */
21299 /* it should remain joinable and hence detachable */
21302 status = pthread_detach( &t );
21303 if( status ) return errno;
21306 #ifdef HAVE_LINUX_THREADS
21307 pthread_kill_other_threads_np();
21316 rm -f conftest.$ac_objext conftest$ac_exeext
21317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21318 (eval $ac_link) 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
21325 { ac_try='test -z "$ac_c_werror_flag"
21326 || test ! -s conftest.err'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; } &&
21332 { ac_try='test -s conftest$ac_exeext'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 ol_cv_pthread_mthreads=yes
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 ol_cv_pthread_mthreads=no
21345 rm -f conftest.err conftest.$ac_objext \
21346 conftest$ac_exeext conftest.$ac_ext
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21355 /* pthread test headers */
21356 #include <pthread.h>
21357 #if HAVE_PTHREADS < 7
21361 #define NULL (void*)0
21364 static void *task(p)
21367 return (void *) (p == NULL);
21371 int main(argc, argv)
21376 /* pthread test function */
21377 #ifndef PTHREAD_CREATE_DETACHED
21378 #define PTHREAD_CREATE_DETACHED 1
21382 int detach = PTHREAD_CREATE_DETACHED;
21384 #if HAVE_PTHREADS > 4
21385 /* Final pthreads */
21386 pthread_attr_t attr;
21388 status = pthread_attr_init(&attr);
21389 if( status ) return status;
21391 #if HAVE_PTHREADS < 7
21392 status = pthread_attr_setdetachstate(&attr, &detach);
21393 if( status < 0 ) status = errno;
21395 status = pthread_attr_setdetachstate(&attr, detach);
21397 if( status ) return status;
21398 status = pthread_create( &t, &attr, task, NULL );
21399 #if HAVE_PTHREADS < 7
21400 if( status < 0 ) status = errno;
21402 if( status ) return status;
21404 /* Draft 4 pthreads */
21405 status = pthread_create( &t, pthread_attr_default, task, NULL );
21406 if( status ) return errno;
21408 /* give thread a chance to complete */
21409 /* it should remain joinable and hence detachable */
21412 status = pthread_detach( &t );
21413 if( status ) return errno;
21416 #ifdef HAVE_LINUX_THREADS
21417 pthread_kill_other_threads_np();
21425 rm -f conftest$ac_exeext
21426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21427 (eval $ac_link) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ol_cv_pthread_mthreads=yes
21438 echo "$as_me: program exited with status $ac_status" >&5
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ( exit $ac_status )
21443 ol_cv_pthread_mthreads=no
21445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21452 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21453 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21455 if test $ol_cv_pthread_mthreads = yes ; then
21456 ol_link_pthreads="-mthreads"
21457 ol_link_threads=posix
21461 # Pthread try link: -thread (ol_cv_pthread_thread)
21462 if test "$ol_link_threads" = no ; then
21464 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21465 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21466 if test "${ol_cv_pthread_thread+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 LIBS="-thread $LIBS"
21474 if test "$cross_compiling" = yes; then
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21482 /* pthread test headers */
21483 #include <pthread.h>
21484 #if HAVE_PTHREADS < 7
21488 #define NULL (void*)0
21491 static void *task(p)
21494 return (void *) (p == NULL);
21501 /* pthread test function */
21502 #ifndef PTHREAD_CREATE_DETACHED
21503 #define PTHREAD_CREATE_DETACHED 1
21507 int detach = PTHREAD_CREATE_DETACHED;
21509 #if HAVE_PTHREADS > 4
21510 /* Final pthreads */
21511 pthread_attr_t attr;
21513 status = pthread_attr_init(&attr);
21514 if( status ) return status;
21516 #if HAVE_PTHREADS < 7
21517 status = pthread_attr_setdetachstate(&attr, &detach);
21518 if( status < 0 ) status = errno;
21520 status = pthread_attr_setdetachstate(&attr, detach);
21522 if( status ) return status;
21523 status = pthread_create( &t, &attr, task, NULL );
21524 #if HAVE_PTHREADS < 7
21525 if( status < 0 ) status = errno;
21527 if( status ) return status;
21529 /* Draft 4 pthreads */
21530 status = pthread_create( &t, pthread_attr_default, task, NULL );
21531 if( status ) return errno;
21533 /* give thread a chance to complete */
21534 /* it should remain joinable and hence detachable */
21537 status = pthread_detach( &t );
21538 if( status ) return errno;
21541 #ifdef HAVE_LINUX_THREADS
21542 pthread_kill_other_threads_np();
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21553 (eval $ac_link) 2>conftest.er1
21555 grep -v '^ *+' conftest.er1 >conftest.err
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } &&
21560 { ac_try='test -z "$ac_c_werror_flag"
21561 || test ! -s conftest.err'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; } &&
21567 { ac_try='test -s conftest$ac_exeext'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; }; then
21573 ol_cv_pthread_thread=yes
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ol_cv_pthread_thread=no
21580 rm -f conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
21583 cat >conftest.$ac_ext <<_ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21590 /* pthread test headers */
21591 #include <pthread.h>
21592 #if HAVE_PTHREADS < 7
21596 #define NULL (void*)0
21599 static void *task(p)
21602 return (void *) (p == NULL);
21606 int main(argc, argv)
21611 /* pthread test function */
21612 #ifndef PTHREAD_CREATE_DETACHED
21613 #define PTHREAD_CREATE_DETACHED 1
21617 int detach = PTHREAD_CREATE_DETACHED;
21619 #if HAVE_PTHREADS > 4
21620 /* Final pthreads */
21621 pthread_attr_t attr;
21623 status = pthread_attr_init(&attr);
21624 if( status ) return status;
21626 #if HAVE_PTHREADS < 7
21627 status = pthread_attr_setdetachstate(&attr, &detach);
21628 if( status < 0 ) status = errno;
21630 status = pthread_attr_setdetachstate(&attr, detach);
21632 if( status ) return status;
21633 status = pthread_create( &t, &attr, task, NULL );
21634 #if HAVE_PTHREADS < 7
21635 if( status < 0 ) status = errno;
21637 if( status ) return status;
21639 /* Draft 4 pthreads */
21640 status = pthread_create( &t, pthread_attr_default, task, NULL );
21641 if( status ) return errno;
21643 /* give thread a chance to complete */
21644 /* it should remain joinable and hence detachable */
21647 status = pthread_detach( &t );
21648 if( status ) return errno;
21651 #ifdef HAVE_LINUX_THREADS
21652 pthread_kill_other_threads_np();
21660 rm -f conftest$ac_exeext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21662 (eval $ac_link) 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; }; then
21671 ol_cv_pthread_thread=yes
21673 echo "$as_me: program exited with status $ac_status" >&5
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ( exit $ac_status )
21678 ol_cv_pthread_thread=no
21680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21687 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21688 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21690 if test $ol_cv_pthread_thread = yes ; then
21691 ol_link_pthreads="-thread"
21692 ol_link_threads=posix
21697 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21698 if test "$ol_link_threads" = no ; then
21699 # try -lpthread -lmach -lexc -lc_r
21700 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21701 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21702 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21710 if test "$cross_compiling" = yes; then
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21718 /* pthread test headers */
21719 #include <pthread.h>
21720 #if HAVE_PTHREADS < 7
21724 #define NULL (void*)0
21727 static void *task(p)
21730 return (void *) (p == NULL);
21737 /* pthread test function */
21738 #ifndef PTHREAD_CREATE_DETACHED
21739 #define PTHREAD_CREATE_DETACHED 1
21743 int detach = PTHREAD_CREATE_DETACHED;
21745 #if HAVE_PTHREADS > 4
21746 /* Final pthreads */
21747 pthread_attr_t attr;
21749 status = pthread_attr_init(&attr);
21750 if( status ) return status;
21752 #if HAVE_PTHREADS < 7
21753 status = pthread_attr_setdetachstate(&attr, &detach);
21754 if( status < 0 ) status = errno;
21756 status = pthread_attr_setdetachstate(&attr, detach);
21758 if( status ) return status;
21759 status = pthread_create( &t, &attr, task, NULL );
21760 #if HAVE_PTHREADS < 7
21761 if( status < 0 ) status = errno;
21763 if( status ) return status;
21765 /* Draft 4 pthreads */
21766 status = pthread_create( &t, pthread_attr_default, task, NULL );
21767 if( status ) return errno;
21769 /* give thread a chance to complete */
21770 /* it should remain joinable and hence detachable */
21773 status = pthread_detach( &t );
21774 if( status ) return errno;
21777 #ifdef HAVE_LINUX_THREADS
21778 pthread_kill_other_threads_np();
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789 (eval $ac_link) 2>conftest.er1
21791 grep -v '^ *+' conftest.er1 >conftest.err
21793 cat conftest.err >&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } &&
21796 { ac_try='test -z "$ac_c_werror_flag"
21797 || test ! -s conftest.err'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; } &&
21803 { ac_try='test -s conftest$ac_exeext'
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; }; then
21809 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21816 rm -f conftest.err conftest.$ac_objext \
21817 conftest$ac_exeext conftest.$ac_ext
21819 cat >conftest.$ac_ext <<_ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21826 /* pthread test headers */
21827 #include <pthread.h>
21828 #if HAVE_PTHREADS < 7
21832 #define NULL (void*)0
21835 static void *task(p)
21838 return (void *) (p == NULL);
21842 int main(argc, argv)
21847 /* pthread test function */
21848 #ifndef PTHREAD_CREATE_DETACHED
21849 #define PTHREAD_CREATE_DETACHED 1
21853 int detach = PTHREAD_CREATE_DETACHED;
21855 #if HAVE_PTHREADS > 4
21856 /* Final pthreads */
21857 pthread_attr_t attr;
21859 status = pthread_attr_init(&attr);
21860 if( status ) return status;
21862 #if HAVE_PTHREADS < 7
21863 status = pthread_attr_setdetachstate(&attr, &detach);
21864 if( status < 0 ) status = errno;
21866 status = pthread_attr_setdetachstate(&attr, detach);
21868 if( status ) return status;
21869 status = pthread_create( &t, &attr, task, NULL );
21870 #if HAVE_PTHREADS < 7
21871 if( status < 0 ) status = errno;
21873 if( status ) return status;
21875 /* Draft 4 pthreads */
21876 status = pthread_create( &t, pthread_attr_default, task, NULL );
21877 if( status ) return errno;
21879 /* give thread a chance to complete */
21880 /* it should remain joinable and hence detachable */
21883 status = pthread_detach( &t );
21884 if( status ) return errno;
21887 #ifdef HAVE_LINUX_THREADS
21888 pthread_kill_other_threads_np();
21896 rm -f conftest$ac_exeext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21898 (eval $ac_link) 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21909 echo "$as_me: program exited with status $ac_status" >&5
21910 echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21913 ( exit $ac_status )
21914 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21923 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21924 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21926 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21927 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21928 ol_link_threads=posix
21932 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21933 if test "$ol_link_threads" = no ; then
21934 # try -lpthread -lmach -lexc
21935 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21936 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21937 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21943 LIBS="-lpthread -lmach -lexc $LIBS"
21945 if test "$cross_compiling" = yes; then
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21953 /* pthread test headers */
21954 #include <pthread.h>
21955 #if HAVE_PTHREADS < 7
21959 #define NULL (void*)0
21962 static void *task(p)
21965 return (void *) (p == NULL);
21972 /* pthread test function */
21973 #ifndef PTHREAD_CREATE_DETACHED
21974 #define PTHREAD_CREATE_DETACHED 1
21978 int detach = PTHREAD_CREATE_DETACHED;
21980 #if HAVE_PTHREADS > 4
21981 /* Final pthreads */
21982 pthread_attr_t attr;
21984 status = pthread_attr_init(&attr);
21985 if( status ) return status;
21987 #if HAVE_PTHREADS < 7
21988 status = pthread_attr_setdetachstate(&attr, &detach);
21989 if( status < 0 ) status = errno;
21991 status = pthread_attr_setdetachstate(&attr, detach);
21993 if( status ) return status;
21994 status = pthread_create( &t, &attr, task, NULL );
21995 #if HAVE_PTHREADS < 7
21996 if( status < 0 ) status = errno;
21998 if( status ) return status;
22000 /* Draft 4 pthreads */
22001 status = pthread_create( &t, pthread_attr_default, task, NULL );
22002 if( status ) return errno;
22004 /* give thread a chance to complete */
22005 /* it should remain joinable and hence detachable */
22008 status = pthread_detach( &t );
22009 if( status ) return errno;
22012 #ifdef HAVE_LINUX_THREADS
22013 pthread_kill_other_threads_np();
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22024 (eval $ac_link) 2>conftest.er1
22026 grep -v '^ *+' conftest.er1 >conftest.err
22028 cat conftest.err >&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } &&
22031 { ac_try='test -z "$ac_c_werror_flag"
22032 || test ! -s conftest.err'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; } &&
22038 { ac_try='test -s conftest$ac_exeext'
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; }; then
22044 ol_cv_pthread_lpthread_lmach_lexc=yes
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ol_cv_pthread_lpthread_lmach_lexc=no
22051 rm -f conftest.err conftest.$ac_objext \
22052 conftest$ac_exeext conftest.$ac_ext
22054 cat >conftest.$ac_ext <<_ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22061 /* pthread test headers */
22062 #include <pthread.h>
22063 #if HAVE_PTHREADS < 7
22067 #define NULL (void*)0
22070 static void *task(p)
22073 return (void *) (p == NULL);
22077 int main(argc, argv)
22082 /* pthread test function */
22083 #ifndef PTHREAD_CREATE_DETACHED
22084 #define PTHREAD_CREATE_DETACHED 1
22088 int detach = PTHREAD_CREATE_DETACHED;
22090 #if HAVE_PTHREADS > 4
22091 /* Final pthreads */
22092 pthread_attr_t attr;
22094 status = pthread_attr_init(&attr);
22095 if( status ) return status;
22097 #if HAVE_PTHREADS < 7
22098 status = pthread_attr_setdetachstate(&attr, &detach);
22099 if( status < 0 ) status = errno;
22101 status = pthread_attr_setdetachstate(&attr, detach);
22103 if( status ) return status;
22104 status = pthread_create( &t, &attr, task, NULL );
22105 #if HAVE_PTHREADS < 7
22106 if( status < 0 ) status = errno;
22108 if( status ) return status;
22110 /* Draft 4 pthreads */
22111 status = pthread_create( &t, pthread_attr_default, task, NULL );
22112 if( status ) return errno;
22114 /* give thread a chance to complete */
22115 /* it should remain joinable and hence detachable */
22118 status = pthread_detach( &t );
22119 if( status ) return errno;
22122 #ifdef HAVE_LINUX_THREADS
22123 pthread_kill_other_threads_np();
22131 rm -f conftest$ac_exeext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22133 (eval $ac_link) 2>&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142 ol_cv_pthread_lpthread_lmach_lexc=yes
22144 echo "$as_me: program exited with status $ac_status" >&5
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ( exit $ac_status )
22149 ol_cv_pthread_lpthread_lmach_lexc=no
22151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22158 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22159 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22161 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22162 ol_link_pthreads="-lpthread -lmach -lexc"
22163 ol_link_threads=posix
22168 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22169 if test "$ol_link_threads" = no ; then
22170 # try -lpthread -Wl,-woff,85
22171 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22172 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22173 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22181 if test "$cross_compiling" = yes; then
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22189 /* pthread test headers */
22190 #include <pthread.h>
22191 #if HAVE_PTHREADS < 7
22195 #define NULL (void*)0
22198 static void *task(p)
22201 return (void *) (p == NULL);
22208 /* pthread test function */
22209 #ifndef PTHREAD_CREATE_DETACHED
22210 #define PTHREAD_CREATE_DETACHED 1
22214 int detach = PTHREAD_CREATE_DETACHED;
22216 #if HAVE_PTHREADS > 4
22217 /* Final pthreads */
22218 pthread_attr_t attr;
22220 status = pthread_attr_init(&attr);
22221 if( status ) return status;
22223 #if HAVE_PTHREADS < 7
22224 status = pthread_attr_setdetachstate(&attr, &detach);
22225 if( status < 0 ) status = errno;
22227 status = pthread_attr_setdetachstate(&attr, detach);
22229 if( status ) return status;
22230 status = pthread_create( &t, &attr, task, NULL );
22231 #if HAVE_PTHREADS < 7
22232 if( status < 0 ) status = errno;
22234 if( status ) return status;
22236 /* Draft 4 pthreads */
22237 status = pthread_create( &t, pthread_attr_default, task, NULL );
22238 if( status ) return errno;
22240 /* give thread a chance to complete */
22241 /* it should remain joinable and hence detachable */
22244 status = pthread_detach( &t );
22245 if( status ) return errno;
22248 #ifdef HAVE_LINUX_THREADS
22249 pthread_kill_other_threads_np();
22258 rm -f conftest.$ac_objext conftest$ac_exeext
22259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22260 (eval $ac_link) 2>conftest.er1
22262 grep -v '^ *+' conftest.er1 >conftest.err
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } &&
22267 { ac_try='test -z "$ac_c_werror_flag"
22268 || test ! -s conftest.err'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; } &&
22274 { ac_try='test -s conftest$ac_exeext'
22275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22276 (eval $ac_try) 2>&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); }; }; then
22280 ol_cv_pthread_lib_lpthread_woff=yes
22282 echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22285 ol_cv_pthread_lib_lpthread_woff=no
22287 rm -f conftest.err conftest.$ac_objext \
22288 conftest$ac_exeext conftest.$ac_ext
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22297 /* pthread test headers */
22298 #include <pthread.h>
22299 #if HAVE_PTHREADS < 7
22303 #define NULL (void*)0
22306 static void *task(p)
22309 return (void *) (p == NULL);
22313 int main(argc, argv)
22318 /* pthread test function */
22319 #ifndef PTHREAD_CREATE_DETACHED
22320 #define PTHREAD_CREATE_DETACHED 1
22324 int detach = PTHREAD_CREATE_DETACHED;
22326 #if HAVE_PTHREADS > 4
22327 /* Final pthreads */
22328 pthread_attr_t attr;
22330 status = pthread_attr_init(&attr);
22331 if( status ) return status;
22333 #if HAVE_PTHREADS < 7
22334 status = pthread_attr_setdetachstate(&attr, &detach);
22335 if( status < 0 ) status = errno;
22337 status = pthread_attr_setdetachstate(&attr, detach);
22339 if( status ) return status;
22340 status = pthread_create( &t, &attr, task, NULL );
22341 #if HAVE_PTHREADS < 7
22342 if( status < 0 ) status = errno;
22344 if( status ) return status;
22346 /* Draft 4 pthreads */
22347 status = pthread_create( &t, pthread_attr_default, task, NULL );
22348 if( status ) return errno;
22350 /* give thread a chance to complete */
22351 /* it should remain joinable and hence detachable */
22354 status = pthread_detach( &t );
22355 if( status ) return errno;
22358 #ifdef HAVE_LINUX_THREADS
22359 pthread_kill_other_threads_np();
22367 rm -f conftest$ac_exeext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369 (eval $ac_link) 2>&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ol_cv_pthread_lib_lpthread_woff=yes
22380 echo "$as_me: program exited with status $ac_status" >&5
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ( exit $ac_status )
22385 ol_cv_pthread_lib_lpthread_woff=no
22387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22394 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22395 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22397 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22398 ol_link_pthreads="-lpthread -Wl,-woff,85"
22399 ol_link_threads=posix
22404 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22405 if test "$ol_link_threads" = no ; then
22407 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22408 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22409 if test "${ol_cv_pthread_lpthread+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22415 LIBS="-lpthread $LIBS"
22417 if test "$cross_compiling" = yes; then
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22425 /* pthread test headers */
22426 #include <pthread.h>
22427 #if HAVE_PTHREADS < 7
22431 #define NULL (void*)0
22434 static void *task(p)
22437 return (void *) (p == NULL);
22444 /* pthread test function */
22445 #ifndef PTHREAD_CREATE_DETACHED
22446 #define PTHREAD_CREATE_DETACHED 1
22450 int detach = PTHREAD_CREATE_DETACHED;
22452 #if HAVE_PTHREADS > 4
22453 /* Final pthreads */
22454 pthread_attr_t attr;
22456 status = pthread_attr_init(&attr);
22457 if( status ) return status;
22459 #if HAVE_PTHREADS < 7
22460 status = pthread_attr_setdetachstate(&attr, &detach);
22461 if( status < 0 ) status = errno;
22463 status = pthread_attr_setdetachstate(&attr, detach);
22465 if( status ) return status;
22466 status = pthread_create( &t, &attr, task, NULL );
22467 #if HAVE_PTHREADS < 7
22468 if( status < 0 ) status = errno;
22470 if( status ) return status;
22472 /* Draft 4 pthreads */
22473 status = pthread_create( &t, pthread_attr_default, task, NULL );
22474 if( status ) return errno;
22476 /* give thread a chance to complete */
22477 /* it should remain joinable and hence detachable */
22480 status = pthread_detach( &t );
22481 if( status ) return errno;
22484 #ifdef HAVE_LINUX_THREADS
22485 pthread_kill_other_threads_np();
22494 rm -f conftest.$ac_objext conftest$ac_exeext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496 (eval $ac_link) 2>conftest.er1
22498 grep -v '^ *+' conftest.er1 >conftest.err
22500 cat conftest.err >&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } &&
22503 { ac_try='test -z "$ac_c_werror_flag"
22504 || test ! -s conftest.err'
22505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; } &&
22510 { ac_try='test -s conftest$ac_exeext'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ol_cv_pthread_lpthread=yes
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22521 ol_cv_pthread_lpthread=no
22523 rm -f conftest.err conftest.$ac_objext \
22524 conftest$ac_exeext conftest.$ac_ext
22526 cat >conftest.$ac_ext <<_ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h. */
22533 /* pthread test headers */
22534 #include <pthread.h>
22535 #if HAVE_PTHREADS < 7
22539 #define NULL (void*)0
22542 static void *task(p)
22545 return (void *) (p == NULL);
22549 int main(argc, argv)
22554 /* pthread test function */
22555 #ifndef PTHREAD_CREATE_DETACHED
22556 #define PTHREAD_CREATE_DETACHED 1
22560 int detach = PTHREAD_CREATE_DETACHED;
22562 #if HAVE_PTHREADS > 4
22563 /* Final pthreads */
22564 pthread_attr_t attr;
22566 status = pthread_attr_init(&attr);
22567 if( status ) return status;
22569 #if HAVE_PTHREADS < 7
22570 status = pthread_attr_setdetachstate(&attr, &detach);
22571 if( status < 0 ) status = errno;
22573 status = pthread_attr_setdetachstate(&attr, detach);
22575 if( status ) return status;
22576 status = pthread_create( &t, &attr, task, NULL );
22577 #if HAVE_PTHREADS < 7
22578 if( status < 0 ) status = errno;
22580 if( status ) return status;
22582 /* Draft 4 pthreads */
22583 status = pthread_create( &t, pthread_attr_default, task, NULL );
22584 if( status ) return errno;
22586 /* give thread a chance to complete */
22587 /* it should remain joinable and hence detachable */
22590 status = pthread_detach( &t );
22591 if( status ) return errno;
22594 #ifdef HAVE_LINUX_THREADS
22595 pthread_kill_other_threads_np();
22603 rm -f conftest$ac_exeext
22604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22605 (eval $ac_link) 2>&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22614 ol_cv_pthread_lpthread=yes
22616 echo "$as_me: program exited with status $ac_status" >&5
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ( exit $ac_status )
22621 ol_cv_pthread_lpthread=no
22623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22630 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22631 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22633 if test $ol_cv_pthread_lpthread = yes ; then
22634 ol_link_pthreads="-lpthread"
22635 ol_link_threads=posix
22639 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22640 if test "$ol_link_threads" = no ; then
22642 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22643 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22644 if test "${ol_cv_pthread_lc_r+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 if test "$cross_compiling" = yes; then
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22660 /* pthread test headers */
22661 #include <pthread.h>
22662 #if HAVE_PTHREADS < 7
22666 #define NULL (void*)0
22669 static void *task(p)
22672 return (void *) (p == NULL);
22679 /* pthread test function */
22680 #ifndef PTHREAD_CREATE_DETACHED
22681 #define PTHREAD_CREATE_DETACHED 1
22685 int detach = PTHREAD_CREATE_DETACHED;
22687 #if HAVE_PTHREADS > 4
22688 /* Final pthreads */
22689 pthread_attr_t attr;
22691 status = pthread_attr_init(&attr);
22692 if( status ) return status;
22694 #if HAVE_PTHREADS < 7
22695 status = pthread_attr_setdetachstate(&attr, &detach);
22696 if( status < 0 ) status = errno;
22698 status = pthread_attr_setdetachstate(&attr, detach);
22700 if( status ) return status;
22701 status = pthread_create( &t, &attr, task, NULL );
22702 #if HAVE_PTHREADS < 7
22703 if( status < 0 ) status = errno;
22705 if( status ) return status;
22707 /* Draft 4 pthreads */
22708 status = pthread_create( &t, pthread_attr_default, task, NULL );
22709 if( status ) return errno;
22711 /* give thread a chance to complete */
22712 /* it should remain joinable and hence detachable */
22715 status = pthread_detach( &t );
22716 if( status ) return errno;
22719 #ifdef HAVE_LINUX_THREADS
22720 pthread_kill_other_threads_np();
22729 rm -f conftest.$ac_objext conftest$ac_exeext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22731 (eval $ac_link) 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
22738 { ac_try='test -z "$ac_c_werror_flag"
22739 || test ! -s conftest.err'
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; } &&
22745 { ac_try='test -s conftest$ac_exeext'
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; }; then
22751 ol_cv_pthread_lc_r=yes
22753 echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22756 ol_cv_pthread_lc_r=no
22758 rm -f conftest.err conftest.$ac_objext \
22759 conftest$ac_exeext conftest.$ac_ext
22761 cat >conftest.$ac_ext <<_ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22768 /* pthread test headers */
22769 #include <pthread.h>
22770 #if HAVE_PTHREADS < 7
22774 #define NULL (void*)0
22777 static void *task(p)
22780 return (void *) (p == NULL);
22784 int main(argc, argv)
22789 /* pthread test function */
22790 #ifndef PTHREAD_CREATE_DETACHED
22791 #define PTHREAD_CREATE_DETACHED 1
22795 int detach = PTHREAD_CREATE_DETACHED;
22797 #if HAVE_PTHREADS > 4
22798 /* Final pthreads */
22799 pthread_attr_t attr;
22801 status = pthread_attr_init(&attr);
22802 if( status ) return status;
22804 #if HAVE_PTHREADS < 7
22805 status = pthread_attr_setdetachstate(&attr, &detach);
22806 if( status < 0 ) status = errno;
22808 status = pthread_attr_setdetachstate(&attr, detach);
22810 if( status ) return status;
22811 status = pthread_create( &t, &attr, task, NULL );
22812 #if HAVE_PTHREADS < 7
22813 if( status < 0 ) status = errno;
22815 if( status ) return status;
22817 /* Draft 4 pthreads */
22818 status = pthread_create( &t, pthread_attr_default, task, NULL );
22819 if( status ) return errno;
22821 /* give thread a chance to complete */
22822 /* it should remain joinable and hence detachable */
22825 status = pthread_detach( &t );
22826 if( status ) return errno;
22829 #ifdef HAVE_LINUX_THREADS
22830 pthread_kill_other_threads_np();
22838 rm -f conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840 (eval $ac_link) 2>&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }; then
22849 ol_cv_pthread_lc_r=yes
22851 echo "$as_me: program exited with status $ac_status" >&5
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 ( exit $ac_status )
22856 ol_cv_pthread_lc_r=no
22858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22865 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22866 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22868 if test $ol_cv_pthread_lc_r = yes ; then
22869 ol_link_pthreads="-lc_r"
22870 ol_link_threads=posix
22875 # Pthread try link: -threads (ol_cv_pthread_threads)
22876 if test "$ol_link_threads" = no ; then
22878 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22879 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22880 if test "${ol_cv_pthread_threads+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 LIBS="-threads $LIBS"
22888 if test "$cross_compiling" = yes; then
22889 cat >conftest.$ac_ext <<_ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22896 /* pthread test headers */
22897 #include <pthread.h>
22898 #if HAVE_PTHREADS < 7
22902 #define NULL (void*)0
22905 static void *task(p)
22908 return (void *) (p == NULL);
22915 /* pthread test function */
22916 #ifndef PTHREAD_CREATE_DETACHED
22917 #define PTHREAD_CREATE_DETACHED 1
22921 int detach = PTHREAD_CREATE_DETACHED;
22923 #if HAVE_PTHREADS > 4
22924 /* Final pthreads */
22925 pthread_attr_t attr;
22927 status = pthread_attr_init(&attr);
22928 if( status ) return status;
22930 #if HAVE_PTHREADS < 7
22931 status = pthread_attr_setdetachstate(&attr, &detach);
22932 if( status < 0 ) status = errno;
22934 status = pthread_attr_setdetachstate(&attr, detach);
22936 if( status ) return status;
22937 status = pthread_create( &t, &attr, task, NULL );
22938 #if HAVE_PTHREADS < 7
22939 if( status < 0 ) status = errno;
22941 if( status ) return status;
22943 /* Draft 4 pthreads */
22944 status = pthread_create( &t, pthread_attr_default, task, NULL );
22945 if( status ) return errno;
22947 /* give thread a chance to complete */
22948 /* it should remain joinable and hence detachable */
22951 status = pthread_detach( &t );
22952 if( status ) return errno;
22955 #ifdef HAVE_LINUX_THREADS
22956 pthread_kill_other_threads_np();
22965 rm -f conftest.$ac_objext conftest$ac_exeext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22967 (eval $ac_link) 2>conftest.er1
22969 grep -v '^ *+' conftest.er1 >conftest.err
22971 cat conftest.err >&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } &&
22974 { ac_try='test -z "$ac_c_werror_flag"
22975 || test ! -s conftest.err'
22976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977 (eval $ac_try) 2>&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); }; } &&
22981 { ac_try='test -s conftest$ac_exeext'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; }; then
22987 ol_cv_pthread_threads=yes
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ol_cv_pthread_threads=no
22994 rm -f conftest.err conftest.$ac_objext \
22995 conftest$ac_exeext conftest.$ac_ext
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23004 /* pthread test headers */
23005 #include <pthread.h>
23006 #if HAVE_PTHREADS < 7
23010 #define NULL (void*)0
23013 static void *task(p)
23016 return (void *) (p == NULL);
23020 int main(argc, argv)
23025 /* pthread test function */
23026 #ifndef PTHREAD_CREATE_DETACHED
23027 #define PTHREAD_CREATE_DETACHED 1
23031 int detach = PTHREAD_CREATE_DETACHED;
23033 #if HAVE_PTHREADS > 4
23034 /* Final pthreads */
23035 pthread_attr_t attr;
23037 status = pthread_attr_init(&attr);
23038 if( status ) return status;
23040 #if HAVE_PTHREADS < 7
23041 status = pthread_attr_setdetachstate(&attr, &detach);
23042 if( status < 0 ) status = errno;
23044 status = pthread_attr_setdetachstate(&attr, detach);
23046 if( status ) return status;
23047 status = pthread_create( &t, &attr, task, NULL );
23048 #if HAVE_PTHREADS < 7
23049 if( status < 0 ) status = errno;
23051 if( status ) return status;
23053 /* Draft 4 pthreads */
23054 status = pthread_create( &t, pthread_attr_default, task, NULL );
23055 if( status ) return errno;
23057 /* give thread a chance to complete */
23058 /* it should remain joinable and hence detachable */
23061 status = pthread_detach( &t );
23062 if( status ) return errno;
23065 #ifdef HAVE_LINUX_THREADS
23066 pthread_kill_other_threads_np();
23074 rm -f conftest$ac_exeext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23076 (eval $ac_link) 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 ol_cv_pthread_threads=yes
23087 echo "$as_me: program exited with status $ac_status" >&5
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23091 ( exit $ac_status )
23092 ol_cv_pthread_threads=no
23094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23101 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23102 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23104 if test $ol_cv_pthread_threads = yes ; then
23105 ol_link_pthreads="-threads"
23106 ol_link_threads=posix
23111 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23112 if test "$ol_link_threads" = no ; then
23113 # try -lpthreads -lmach -lexc -lc_r
23114 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23115 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23116 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23124 if test "$cross_compiling" = yes; then
23125 cat >conftest.$ac_ext <<_ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23132 /* pthread test headers */
23133 #include <pthread.h>
23134 #if HAVE_PTHREADS < 7
23138 #define NULL (void*)0
23141 static void *task(p)
23144 return (void *) (p == NULL);
23151 /* pthread test function */
23152 #ifndef PTHREAD_CREATE_DETACHED
23153 #define PTHREAD_CREATE_DETACHED 1
23157 int detach = PTHREAD_CREATE_DETACHED;
23159 #if HAVE_PTHREADS > 4
23160 /* Final pthreads */
23161 pthread_attr_t attr;
23163 status = pthread_attr_init(&attr);
23164 if( status ) return status;
23166 #if HAVE_PTHREADS < 7
23167 status = pthread_attr_setdetachstate(&attr, &detach);
23168 if( status < 0 ) status = errno;
23170 status = pthread_attr_setdetachstate(&attr, detach);
23172 if( status ) return status;
23173 status = pthread_create( &t, &attr, task, NULL );
23174 #if HAVE_PTHREADS < 7
23175 if( status < 0 ) status = errno;
23177 if( status ) return status;
23179 /* Draft 4 pthreads */
23180 status = pthread_create( &t, pthread_attr_default, task, NULL );
23181 if( status ) return errno;
23183 /* give thread a chance to complete */
23184 /* it should remain joinable and hence detachable */
23187 status = pthread_detach( &t );
23188 if( status ) return errno;
23191 #ifdef HAVE_LINUX_THREADS
23192 pthread_kill_other_threads_np();
23201 rm -f conftest.$ac_objext conftest$ac_exeext
23202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23203 (eval $ac_link) 2>conftest.er1
23205 grep -v '^ *+' conftest.er1 >conftest.err
23207 cat conftest.err >&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } &&
23210 { ac_try='test -z "$ac_c_werror_flag"
23211 || test ! -s conftest.err'
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; } &&
23217 { ac_try='test -s conftest$ac_exeext'
23218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219 (eval $ac_try) 2>&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); }; }; then
23223 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23230 rm -f conftest.err conftest.$ac_objext \
23231 conftest$ac_exeext conftest.$ac_ext
23233 cat >conftest.$ac_ext <<_ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23240 /* pthread test headers */
23241 #include <pthread.h>
23242 #if HAVE_PTHREADS < 7
23246 #define NULL (void*)0
23249 static void *task(p)
23252 return (void *) (p == NULL);
23256 int main(argc, argv)
23261 /* pthread test function */
23262 #ifndef PTHREAD_CREATE_DETACHED
23263 #define PTHREAD_CREATE_DETACHED 1
23267 int detach = PTHREAD_CREATE_DETACHED;
23269 #if HAVE_PTHREADS > 4
23270 /* Final pthreads */
23271 pthread_attr_t attr;
23273 status = pthread_attr_init(&attr);
23274 if( status ) return status;
23276 #if HAVE_PTHREADS < 7
23277 status = pthread_attr_setdetachstate(&attr, &detach);
23278 if( status < 0 ) status = errno;
23280 status = pthread_attr_setdetachstate(&attr, detach);
23282 if( status ) return status;
23283 status = pthread_create( &t, &attr, task, NULL );
23284 #if HAVE_PTHREADS < 7
23285 if( status < 0 ) status = errno;
23287 if( status ) return status;
23289 /* Draft 4 pthreads */
23290 status = pthread_create( &t, pthread_attr_default, task, NULL );
23291 if( status ) return errno;
23293 /* give thread a chance to complete */
23294 /* it should remain joinable and hence detachable */
23297 status = pthread_detach( &t );
23298 if( status ) return errno;
23301 #ifdef HAVE_LINUX_THREADS
23302 pthread_kill_other_threads_np();
23310 rm -f conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312 (eval $ac_link) 2>&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; }; then
23321 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23323 echo "$as_me: program exited with status $ac_status" >&5
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23327 ( exit $ac_status )
23328 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23337 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23338 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23340 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23341 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23342 ol_link_threads=posix
23346 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23347 if test "$ol_link_threads" = no ; then
23348 # try -lpthreads -lmach -lexc
23349 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23350 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23351 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23357 LIBS="-lpthreads -lmach -lexc $LIBS"
23359 if test "$cross_compiling" = yes; then
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23367 /* pthread test headers */
23368 #include <pthread.h>
23369 #if HAVE_PTHREADS < 7
23373 #define NULL (void*)0
23376 static void *task(p)
23379 return (void *) (p == NULL);
23386 /* pthread test function */
23387 #ifndef PTHREAD_CREATE_DETACHED
23388 #define PTHREAD_CREATE_DETACHED 1
23392 int detach = PTHREAD_CREATE_DETACHED;
23394 #if HAVE_PTHREADS > 4
23395 /* Final pthreads */
23396 pthread_attr_t attr;
23398 status = pthread_attr_init(&attr);
23399 if( status ) return status;
23401 #if HAVE_PTHREADS < 7
23402 status = pthread_attr_setdetachstate(&attr, &detach);
23403 if( status < 0 ) status = errno;
23405 status = pthread_attr_setdetachstate(&attr, detach);
23407 if( status ) return status;
23408 status = pthread_create( &t, &attr, task, NULL );
23409 #if HAVE_PTHREADS < 7
23410 if( status < 0 ) status = errno;
23412 if( status ) return status;
23414 /* Draft 4 pthreads */
23415 status = pthread_create( &t, pthread_attr_default, task, NULL );
23416 if( status ) return errno;
23418 /* give thread a chance to complete */
23419 /* it should remain joinable and hence detachable */
23422 status = pthread_detach( &t );
23423 if( status ) return errno;
23426 #ifdef HAVE_LINUX_THREADS
23427 pthread_kill_other_threads_np();
23436 rm -f conftest.$ac_objext conftest$ac_exeext
23437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23438 (eval $ac_link) 2>conftest.er1
23440 grep -v '^ *+' conftest.er1 >conftest.err
23442 cat conftest.err >&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } &&
23445 { ac_try='test -z "$ac_c_werror_flag"
23446 || test ! -s conftest.err'
23447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448 (eval $ac_try) 2>&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; } &&
23452 { ac_try='test -s conftest$ac_exeext'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; }; then
23458 ol_cv_pthread_lpthreads_lmach_lexc=yes
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ol_cv_pthread_lpthreads_lmach_lexc=no
23465 rm -f conftest.err conftest.$ac_objext \
23466 conftest$ac_exeext conftest.$ac_ext
23468 cat >conftest.$ac_ext <<_ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h. */
23475 /* pthread test headers */
23476 #include <pthread.h>
23477 #if HAVE_PTHREADS < 7
23481 #define NULL (void*)0
23484 static void *task(p)
23487 return (void *) (p == NULL);
23491 int main(argc, argv)
23496 /* pthread test function */
23497 #ifndef PTHREAD_CREATE_DETACHED
23498 #define PTHREAD_CREATE_DETACHED 1
23502 int detach = PTHREAD_CREATE_DETACHED;
23504 #if HAVE_PTHREADS > 4
23505 /* Final pthreads */
23506 pthread_attr_t attr;
23508 status = pthread_attr_init(&attr);
23509 if( status ) return status;
23511 #if HAVE_PTHREADS < 7
23512 status = pthread_attr_setdetachstate(&attr, &detach);
23513 if( status < 0 ) status = errno;
23515 status = pthread_attr_setdetachstate(&attr, detach);
23517 if( status ) return status;
23518 status = pthread_create( &t, &attr, task, NULL );
23519 #if HAVE_PTHREADS < 7
23520 if( status < 0 ) status = errno;
23522 if( status ) return status;
23524 /* Draft 4 pthreads */
23525 status = pthread_create( &t, pthread_attr_default, task, NULL );
23526 if( status ) return errno;
23528 /* give thread a chance to complete */
23529 /* it should remain joinable and hence detachable */
23532 status = pthread_detach( &t );
23533 if( status ) return errno;
23536 #ifdef HAVE_LINUX_THREADS
23537 pthread_kill_other_threads_np();
23545 rm -f conftest$ac_exeext
23546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23547 (eval $ac_link) 2>&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ol_cv_pthread_lpthreads_lmach_lexc=yes
23558 echo "$as_me: program exited with status $ac_status" >&5
23559 echo "$as_me: failed program was:" >&5
23560 sed 's/^/| /' conftest.$ac_ext >&5
23562 ( exit $ac_status )
23563 ol_cv_pthread_lpthreads_lmach_lexc=no
23565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23572 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23573 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23575 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23576 ol_link_pthreads="-lpthreads -lmach -lexc"
23577 ol_link_threads=posix
23581 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23582 if test "$ol_link_threads" = no ; then
23583 # try -lpthreads -lexc
23584 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23585 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23586 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23587 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 LIBS="-lpthreads -lexc $LIBS"
23594 if test "$cross_compiling" = yes; then
23595 cat >conftest.$ac_ext <<_ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h. */
23602 /* pthread test headers */
23603 #include <pthread.h>
23604 #if HAVE_PTHREADS < 7
23608 #define NULL (void*)0
23611 static void *task(p)
23614 return (void *) (p == NULL);
23621 /* pthread test function */
23622 #ifndef PTHREAD_CREATE_DETACHED
23623 #define PTHREAD_CREATE_DETACHED 1
23627 int detach = PTHREAD_CREATE_DETACHED;
23629 #if HAVE_PTHREADS > 4
23630 /* Final pthreads */
23631 pthread_attr_t attr;
23633 status = pthread_attr_init(&attr);
23634 if( status ) return status;
23636 #if HAVE_PTHREADS < 7
23637 status = pthread_attr_setdetachstate(&attr, &detach);
23638 if( status < 0 ) status = errno;
23640 status = pthread_attr_setdetachstate(&attr, detach);
23642 if( status ) return status;
23643 status = pthread_create( &t, &attr, task, NULL );
23644 #if HAVE_PTHREADS < 7
23645 if( status < 0 ) status = errno;
23647 if( status ) return status;
23649 /* Draft 4 pthreads */
23650 status = pthread_create( &t, pthread_attr_default, task, NULL );
23651 if( status ) return errno;
23653 /* give thread a chance to complete */
23654 /* it should remain joinable and hence detachable */
23657 status = pthread_detach( &t );
23658 if( status ) return errno;
23661 #ifdef HAVE_LINUX_THREADS
23662 pthread_kill_other_threads_np();
23671 rm -f conftest.$ac_objext conftest$ac_exeext
23672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23673 (eval $ac_link) 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } &&
23680 { ac_try='test -z "$ac_c_werror_flag"
23681 || test ! -s conftest.err'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; } &&
23687 { ac_try='test -s conftest$ac_exeext'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; }; then
23693 ol_cv_pthread_lpthreads_lexc=yes
23695 echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23698 ol_cv_pthread_lpthreads_lexc=no
23700 rm -f conftest.err conftest.$ac_objext \
23701 conftest$ac_exeext conftest.$ac_ext
23703 cat >conftest.$ac_ext <<_ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23710 /* pthread test headers */
23711 #include <pthread.h>
23712 #if HAVE_PTHREADS < 7
23716 #define NULL (void*)0
23719 static void *task(p)
23722 return (void *) (p == NULL);
23726 int main(argc, argv)
23731 /* pthread test function */
23732 #ifndef PTHREAD_CREATE_DETACHED
23733 #define PTHREAD_CREATE_DETACHED 1
23737 int detach = PTHREAD_CREATE_DETACHED;
23739 #if HAVE_PTHREADS > 4
23740 /* Final pthreads */
23741 pthread_attr_t attr;
23743 status = pthread_attr_init(&attr);
23744 if( status ) return status;
23746 #if HAVE_PTHREADS < 7
23747 status = pthread_attr_setdetachstate(&attr, &detach);
23748 if( status < 0 ) status = errno;
23750 status = pthread_attr_setdetachstate(&attr, detach);
23752 if( status ) return status;
23753 status = pthread_create( &t, &attr, task, NULL );
23754 #if HAVE_PTHREADS < 7
23755 if( status < 0 ) status = errno;
23757 if( status ) return status;
23759 /* Draft 4 pthreads */
23760 status = pthread_create( &t, pthread_attr_default, task, NULL );
23761 if( status ) return errno;
23763 /* give thread a chance to complete */
23764 /* it should remain joinable and hence detachable */
23767 status = pthread_detach( &t );
23768 if( status ) return errno;
23771 #ifdef HAVE_LINUX_THREADS
23772 pthread_kill_other_threads_np();
23780 rm -f conftest$ac_exeext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782 (eval $ac_link) 2>&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ol_cv_pthread_lpthreads_lexc=yes
23793 echo "$as_me: program exited with status $ac_status" >&5
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 ( exit $ac_status )
23798 ol_cv_pthread_lpthreads_lexc=no
23800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23807 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23808 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23810 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23811 ol_link_pthreads="-lpthreads -lexc"
23812 ol_link_threads=posix
23817 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23818 if test "$ol_link_threads" = no ; then
23820 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23821 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23822 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 LIBS="-lpthreads $LIBS"
23830 if test "$cross_compiling" = yes; then
23831 cat >conftest.$ac_ext <<_ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23838 /* pthread test headers */
23839 #include <pthread.h>
23840 #if HAVE_PTHREADS < 7
23844 #define NULL (void*)0
23847 static void *task(p)
23850 return (void *) (p == NULL);
23857 /* pthread test function */
23858 #ifndef PTHREAD_CREATE_DETACHED
23859 #define PTHREAD_CREATE_DETACHED 1
23863 int detach = PTHREAD_CREATE_DETACHED;
23865 #if HAVE_PTHREADS > 4
23866 /* Final pthreads */
23867 pthread_attr_t attr;
23869 status = pthread_attr_init(&attr);
23870 if( status ) return status;
23872 #if HAVE_PTHREADS < 7
23873 status = pthread_attr_setdetachstate(&attr, &detach);
23874 if( status < 0 ) status = errno;
23876 status = pthread_attr_setdetachstate(&attr, detach);
23878 if( status ) return status;
23879 status = pthread_create( &t, &attr, task, NULL );
23880 #if HAVE_PTHREADS < 7
23881 if( status < 0 ) status = errno;
23883 if( status ) return status;
23885 /* Draft 4 pthreads */
23886 status = pthread_create( &t, pthread_attr_default, task, NULL );
23887 if( status ) return errno;
23889 /* give thread a chance to complete */
23890 /* it should remain joinable and hence detachable */
23893 status = pthread_detach( &t );
23894 if( status ) return errno;
23897 #ifdef HAVE_LINUX_THREADS
23898 pthread_kill_other_threads_np();
23907 rm -f conftest.$ac_objext conftest$ac_exeext
23908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23909 (eval $ac_link) 2>conftest.er1
23911 grep -v '^ *+' conftest.er1 >conftest.err
23913 cat conftest.err >&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } &&
23916 { ac_try='test -z "$ac_c_werror_flag"
23917 || test ! -s conftest.err'
23918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919 (eval $ac_try) 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; } &&
23923 { ac_try='test -s conftest$ac_exeext'
23924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925 (eval $ac_try) 2>&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; }; then
23929 ol_cv_pthread_lib_lpthreads=yes
23931 echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23934 ol_cv_pthread_lib_lpthreads=no
23936 rm -f conftest.err conftest.$ac_objext \
23937 conftest$ac_exeext conftest.$ac_ext
23939 cat >conftest.$ac_ext <<_ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h. */
23946 /* pthread test headers */
23947 #include <pthread.h>
23948 #if HAVE_PTHREADS < 7
23952 #define NULL (void*)0
23955 static void *task(p)
23958 return (void *) (p == NULL);
23962 int main(argc, argv)
23967 /* pthread test function */
23968 #ifndef PTHREAD_CREATE_DETACHED
23969 #define PTHREAD_CREATE_DETACHED 1
23973 int detach = PTHREAD_CREATE_DETACHED;
23975 #if HAVE_PTHREADS > 4
23976 /* Final pthreads */
23977 pthread_attr_t attr;
23979 status = pthread_attr_init(&attr);
23980 if( status ) return status;
23982 #if HAVE_PTHREADS < 7
23983 status = pthread_attr_setdetachstate(&attr, &detach);
23984 if( status < 0 ) status = errno;
23986 status = pthread_attr_setdetachstate(&attr, detach);
23988 if( status ) return status;
23989 status = pthread_create( &t, &attr, task, NULL );
23990 #if HAVE_PTHREADS < 7
23991 if( status < 0 ) status = errno;
23993 if( status ) return status;
23995 /* Draft 4 pthreads */
23996 status = pthread_create( &t, pthread_attr_default, task, NULL );
23997 if( status ) return errno;
23999 /* give thread a chance to complete */
24000 /* it should remain joinable and hence detachable */
24003 status = pthread_detach( &t );
24004 if( status ) return errno;
24007 #ifdef HAVE_LINUX_THREADS
24008 pthread_kill_other_threads_np();
24016 rm -f conftest$ac_exeext
24017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24018 (eval $ac_link) 2>&5
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023 (eval $ac_try) 2>&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
24027 ol_cv_pthread_lib_lpthreads=yes
24029 echo "$as_me: program exited with status $ac_status" >&5
24030 echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24033 ( exit $ac_status )
24034 ol_cv_pthread_lib_lpthreads=no
24036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24043 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24044 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24046 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24047 ol_link_pthreads="-lpthreads"
24048 ol_link_threads=posix
24053 if test $ol_link_threads != no ; then
24054 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24056 save_CPPFLAGS="$CPPFLAGS"
24058 LIBS="$LTHREAD_LIBS $LIBS"
24063 for ac_func in sched_yield pthread_yield thr_yield
24065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24066 echo "$as_me:$LINENO: checking for $ac_func" >&5
24067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24068 if eval "test \"\${$as_ac_var+set}\" = set"; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 cat >conftest.$ac_ext <<_ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24079 #define $ac_func innocuous_$ac_func
24081 /* System header to define __stub macros and hopefully few prototypes,
24082 which can conflict with char $ac_func (); below.
24083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24084 <limits.h> exists even on freestanding compilers. */
24087 # include <limits.h>
24089 # include <assert.h>
24094 /* Override any gcc2 internal prototype to avoid an error. */
24099 /* We use char because int might match the return type of a gcc2
24100 builtin and then its argument prototype would still apply. */
24102 /* The GNU C library defines this for functions which it implements
24103 to always fail with ENOSYS. Some functions are actually named
24104 something starting with __ and the normal name is an alias. */
24105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24108 char (*f) () = $ac_func;
24117 return f != $ac_func;
24122 rm -f conftest.$ac_objext conftest$ac_exeext
24123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24124 (eval $ac_link) 2>conftest.er1
24126 grep -v '^ *+' conftest.er1 >conftest.err
24128 cat conftest.err >&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } &&
24131 { ac_try='test -z "$ac_c_werror_flag"
24132 || test ! -s conftest.err'
24133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134 (eval $ac_try) 2>&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); }; } &&
24138 { ac_try='test -s conftest$ac_exeext'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; }; then
24144 eval "$as_ac_var=yes"
24146 echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24149 eval "$as_ac_var=no"
24151 rm -f conftest.err conftest.$ac_objext \
24152 conftest$ac_exeext conftest.$ac_ext
24154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24156 if test `eval echo '${'$as_ac_var'}'` = yes; then
24157 cat >>confdefs.h <<_ACEOF
24158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24165 if test $ac_cv_func_sched_yield = no &&
24166 test $ac_cv_func_pthread_yield = no &&
24167 test $ac_cv_func_thr_yield = no ; then
24168 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24169 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24170 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24173 ac_check_lib_save_LIBS=$LIBS
24175 cat >conftest.$ac_ext <<_ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h. */
24182 /* Override any gcc2 internal prototype to avoid an error. */
24186 /* We use char because int might match the return type of a gcc2
24187 builtin and then its argument prototype would still apply. */
24188 char sched_yield ();
24197 rm -f conftest.$ac_objext conftest$ac_exeext
24198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24199 (eval $ac_link) 2>conftest.er1
24201 grep -v '^ *+' conftest.er1 >conftest.err
24203 cat conftest.err >&5
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); } &&
24206 { ac_try='test -z "$ac_c_werror_flag"
24207 || test ! -s conftest.err'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; } &&
24213 { ac_try='test -s conftest$ac_exeext'
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; }; then
24219 ac_cv_lib_rt_sched_yield=yes
24221 echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24224 ac_cv_lib_rt_sched_yield=no
24226 rm -f conftest.err conftest.$ac_objext \
24227 conftest$ac_exeext conftest.$ac_ext
24228 LIBS=$ac_check_lib_save_LIBS
24230 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24231 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24232 if test $ac_cv_lib_rt_sched_yield = yes; then
24233 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24235 cat >>confdefs.h <<\_ACEOF
24236 #define HAVE_SCHED_YIELD 1
24239 ac_cv_func_sched_yield=yes
24241 ac_cv_func_sched_yield=no
24245 if test $ac_cv_func_sched_yield = no &&
24246 test $ac_cv_func_pthread_yield = no &&
24247 test "$ac_cv_func_thr_yield" = no ; then
24248 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24249 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24254 for ac_func in pthread_kill pthread_rwlock_destroy
24256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24257 echo "$as_me:$LINENO: checking for $ac_func" >&5
24258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24259 if eval "test \"\${$as_ac_var+set}\" = set"; then
24260 echo $ECHO_N "(cached) $ECHO_C" >&6
24262 cat >conftest.$ac_ext <<_ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h. */
24268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24270 #define $ac_func innocuous_$ac_func
24272 /* System header to define __stub macros and hopefully few prototypes,
24273 which can conflict with char $ac_func (); below.
24274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24275 <limits.h> exists even on freestanding compilers. */
24278 # include <limits.h>
24280 # include <assert.h>
24285 /* Override any gcc2 internal prototype to avoid an error. */
24290 /* We use char because int might match the return type of a gcc2
24291 builtin and then its argument prototype would still apply. */
24293 /* The GNU C library defines this for functions which it implements
24294 to always fail with ENOSYS. Some functions are actually named
24295 something starting with __ and the normal name is an alias. */
24296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24299 char (*f) () = $ac_func;
24308 return f != $ac_func;
24313 rm -f conftest.$ac_objext conftest$ac_exeext
24314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24315 (eval $ac_link) 2>conftest.er1
24317 grep -v '^ *+' conftest.er1 >conftest.err
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } &&
24322 { ac_try='test -z "$ac_c_werror_flag"
24323 || test ! -s conftest.err'
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; } &&
24329 { ac_try='test -s conftest$ac_exeext'
24330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331 (eval $ac_try) 2>&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); }; }; then
24335 eval "$as_ac_var=yes"
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 eval "$as_ac_var=no"
24342 rm -f conftest.err conftest.$ac_objext \
24343 conftest$ac_exeext conftest.$ac_ext
24345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24347 if test `eval echo '${'$as_ac_var'}'` = yes; then
24348 cat >>confdefs.h <<_ACEOF
24349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24356 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24357 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24358 if test "${ol_cv_func_pthread_detach+set}" = set; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24362 cat >conftest.$ac_ext <<_ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24369 #include <pthread.h>
24371 #define NULL (void*)0
24377 pthread_detach(NULL);
24382 rm -f conftest.$ac_objext conftest$ac_exeext
24383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24384 (eval $ac_link) 2>conftest.er1
24386 grep -v '^ *+' conftest.er1 >conftest.err
24388 cat conftest.err >&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } &&
24391 { ac_try='test -z "$ac_c_werror_flag"
24392 || test ! -s conftest.err'
24393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24394 (eval $ac_try) 2>&5
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); }; } &&
24398 { ac_try='test -s conftest$ac_exeext'
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; }; then
24404 ol_cv_func_pthread_detach=yes
24406 echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24409 ol_cv_func_pthread_detach=no
24411 rm -f conftest.err conftest.$ac_objext \
24412 conftest$ac_exeext conftest.$ac_ext
24415 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24416 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24418 if test $ol_cv_func_pthread_detach = no ; then
24419 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24420 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24421 { (exit 1); exit 1; }; }
24425 cat >>confdefs.h <<\_ACEOF
24426 #define HAVE_PTHREAD_DETACH 1
24435 pthread_setconcurrency \
24436 pthread_getconcurrency \
24437 thr_setconcurrency \
24438 thr_getconcurrency \
24441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24442 echo "$as_me:$LINENO: checking for $ac_func" >&5
24443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24444 if eval "test \"\${$as_ac_var+set}\" = set"; then
24445 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 cat >conftest.$ac_ext <<_ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24455 #define $ac_func innocuous_$ac_func
24457 /* System header to define __stub macros and hopefully few prototypes,
24458 which can conflict with char $ac_func (); below.
24459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24460 <limits.h> exists even on freestanding compilers. */
24463 # include <limits.h>
24465 # include <assert.h>
24470 /* Override any gcc2 internal prototype to avoid an error. */
24475 /* We use char because int might match the return type of a gcc2
24476 builtin and then its argument prototype would still apply. */
24478 /* The GNU C library defines this for functions which it implements
24479 to always fail with ENOSYS. Some functions are actually named
24480 something starting with __ and the normal name is an alias. */
24481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24484 char (*f) () = $ac_func;
24493 return f != $ac_func;
24498 rm -f conftest.$ac_objext conftest$ac_exeext
24499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24500 (eval $ac_link) 2>conftest.er1
24502 grep -v '^ *+' conftest.er1 >conftest.err
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } &&
24507 { ac_try='test -z "$ac_c_werror_flag"
24508 || test ! -s conftest.err'
24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510 (eval $ac_try) 2>&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; } &&
24514 { ac_try='test -s conftest$ac_exeext'
24515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516 (eval $ac_try) 2>&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; }; then
24520 eval "$as_ac_var=yes"
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 eval "$as_ac_var=no"
24527 rm -f conftest.err conftest.$ac_objext \
24528 conftest$ac_exeext conftest.$ac_ext
24530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24532 if test `eval echo '${'$as_ac_var'}'` = yes; then
24533 cat >>confdefs.h <<_ACEOF
24534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24543 for ac_func in pthread_kill_other_threads_np
24545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24546 echo "$as_me:$LINENO: checking for $ac_func" >&5
24547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24548 if eval "test \"\${$as_ac_var+set}\" = set"; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24559 #define $ac_func innocuous_$ac_func
24561 /* System header to define __stub macros and hopefully few prototypes,
24562 which can conflict with char $ac_func (); below.
24563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564 <limits.h> exists even on freestanding compilers. */
24567 # include <limits.h>
24569 # include <assert.h>
24574 /* Override any gcc2 internal prototype to avoid an error. */
24579 /* We use char because int might match the return type of a gcc2
24580 builtin and then its argument prototype would still apply. */
24582 /* The GNU C library defines this for functions which it implements
24583 to always fail with ENOSYS. Some functions are actually named
24584 something starting with __ and the normal name is an alias. */
24585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24588 char (*f) () = $ac_func;
24597 return f != $ac_func;
24602 rm -f conftest.$ac_objext conftest$ac_exeext
24603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24604 (eval $ac_link) 2>conftest.er1
24606 grep -v '^ *+' conftest.er1 >conftest.err
24608 cat conftest.err >&5
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } &&
24611 { ac_try='test -z "$ac_c_werror_flag"
24612 || test ! -s conftest.err'
24613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614 (eval $ac_try) 2>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; } &&
24618 { ac_try='test -s conftest$ac_exeext'
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; }; then
24624 eval "$as_ac_var=yes"
24626 echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24629 eval "$as_ac_var=no"
24631 rm -f conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
24634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24636 if test `eval echo '${'$as_ac_var'}'` = yes; then
24637 cat >>confdefs.h <<_ACEOF
24638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24644 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24645 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24646 if test "${ol_cv_sys_linux_threads+set}" = set; then
24647 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24651 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24652 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24657 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24658 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24659 if test "${ol_cv_linux_threads+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 if test $ol_cv_header_linux_threads = yes &&
24664 test $ol_cv_sys_linux_threads = yes; then
24665 ol_cv_linux_threads=yes
24666 elif test $ol_cv_header_linux_threads = no &&
24667 test $ol_cv_sys_linux_threads = no; then
24668 ol_cv_linux_threads=no
24670 ol_cv_linux_threads=error
24674 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24675 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24678 if test $ol_cv_linux_threads = error; then
24679 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24680 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24681 { (exit 1); exit 1; }; };
24684 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24685 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24686 if test "${ol_cv_pthread_create_works+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24690 if test "$cross_compiling" = yes; then
24691 ol_cv_pthread_create_works=yes
24693 cat >conftest.$ac_ext <<_ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h. */
24700 /* pthread test headers */
24701 #include <pthread.h>
24702 #if HAVE_PTHREADS < 7
24706 #define NULL (void*)0
24709 static void *task(p)
24712 return (void *) (p == NULL);
24716 int main(argc, argv)
24721 /* pthread test function */
24722 #ifndef PTHREAD_CREATE_DETACHED
24723 #define PTHREAD_CREATE_DETACHED 1
24727 int detach = PTHREAD_CREATE_DETACHED;
24729 #if HAVE_PTHREADS > 4
24730 /* Final pthreads */
24731 pthread_attr_t attr;
24733 status = pthread_attr_init(&attr);
24734 if( status ) return status;
24736 #if HAVE_PTHREADS < 7
24737 status = pthread_attr_setdetachstate(&attr, &detach);
24738 if( status < 0 ) status = errno;
24740 status = pthread_attr_setdetachstate(&attr, detach);
24742 if( status ) return status;
24743 status = pthread_create( &t, &attr, task, NULL );
24744 #if HAVE_PTHREADS < 7
24745 if( status < 0 ) status = errno;
24747 if( status ) return status;
24749 /* Draft 4 pthreads */
24750 status = pthread_create( &t, pthread_attr_default, task, NULL );
24751 if( status ) return errno;
24753 /* give thread a chance to complete */
24754 /* it should remain joinable and hence detachable */
24757 status = pthread_detach( &t );
24758 if( status ) return errno;
24761 #ifdef HAVE_LINUX_THREADS
24762 pthread_kill_other_threads_np();
24770 rm -f conftest$ac_exeext
24771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24772 (eval $ac_link) 2>&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777 (eval $ac_try) 2>&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 ol_cv_pthread_create_works=yes
24783 echo "$as_me: program exited with status $ac_status" >&5
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24787 ( exit $ac_status )
24788 ol_cv_pthread_create_works=no
24790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24793 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24794 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24796 if test $ol_cv_pthread_create_works = no ; then
24797 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24798 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24799 { (exit 1); exit 1; }; }
24802 ol_replace_broken_yield=no
24805 ol_replace_broken_yield=yes
24809 if test $ol_replace_broken_yield = yes ; then
24811 cat >>confdefs.h <<\_ACEOF
24812 #define REPLACE_BROKEN_YIELD 1
24817 if test $ol_with_yielding_select = auto ; then
24818 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24819 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24820 if test "${ol_cv_pthread_select_yields+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24824 if test "$cross_compiling" = yes; then
24825 ol_cv_pthread_select_yields=cross
24827 cat >conftest.$ac_ext <<_ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24834 #include <sys/types.h>
24835 #include <sys/time.h>
24836 #include <unistd.h>
24837 #include <pthread.h>
24839 #define NULL (void*) 0
24842 static int fildes[2];
24844 static void *task(p)
24856 FD_SET(fildes[0], &rfds);
24858 /* we're not interested in any fds */
24859 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24866 exit(0); /* if we exit here, the select blocked the whole process */
24869 int main(argc, argv)
24875 /* create a pipe to select */
24876 if(pipe(&fildes[0])) {
24881 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24882 (void) pthread_setconcurrency(2);
24884 #ifdef HAVE_THR_SETCONCURRENCY
24885 /* Set Solaris LWP concurrency to 2 */
24886 thr_setconcurrency(2);
24890 #if HAVE_PTHREADS < 6
24891 pthread_create(&t, pthread_attr_default, task, NULL);
24893 pthread_create(&t, NULL, task, NULL);
24896 /* make sure task runs first */
24899 #elif defined( HAVE_SCHED_YIELD )
24901 #elif defined( HAVE_PTHREAD_YIELD )
24908 rm -f conftest$ac_exeext
24909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24910 (eval $ac_link) 2>&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; }; then
24919 ol_cv_pthread_select_yields=no
24921 echo "$as_me: program exited with status $ac_status" >&5
24922 echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ( exit $ac_status )
24926 ol_cv_pthread_select_yields=yes
24928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24931 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24932 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24934 if test $ol_cv_pthread_select_yields = cross ; then
24935 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24936 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24937 { (exit 1); exit 1; }; }
24940 if test $ol_cv_pthread_select_yields = yes ; then
24941 ol_with_yielding_select=yes
24945 CPPFLAGS="$save_CPPFLAGS"
24948 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24949 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24950 { (exit 1); exit 1; }; }
24954 if test $ol_with_threads = posix ; then
24955 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24956 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24957 { (exit 1); exit 1; }; }
24962 case $ol_with_threads in auto | yes | mach)
24966 for ac_header in mach/cthreads.h cthreads.h
24968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24970 echo "$as_me:$LINENO: checking for $ac_header" >&5
24971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24973 echo $ECHO_N "(cached) $ECHO_C" >&6
24975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24978 # Is the header compilable?
24979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24981 cat >conftest.$ac_ext <<_ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24987 $ac_includes_default
24988 #include <$ac_header>
24990 rm -f conftest.$ac_objext
24991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24992 (eval $ac_compile) 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
24999 { ac_try='test -z "$ac_c_werror_flag"
25000 || test ! -s conftest.err'
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; } &&
25006 { ac_try='test -s conftest.$ac_objext'
25007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008 (eval $ac_try) 2>&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); }; }; then
25012 ac_header_compiler=yes
25014 echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 ac_header_compiler=no
25019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25021 echo "${ECHO_T}$ac_header_compiler" >&6
25023 # Is the header present?
25024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 #include <$ac_header>
25034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25037 grep -v '^ *+' conftest.er1 >conftest.err
25039 cat conftest.err >&5
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); } >/dev/null; then
25042 if test -s conftest.err; then
25043 ac_cpp_err=$ac_c_preproc_warn_flag
25044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25051 if test -z "$ac_cpp_err"; then
25052 ac_header_preproc=yes
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 ac_header_preproc=no
25059 rm -f conftest.err conftest.$ac_ext
25060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25061 echo "${ECHO_T}$ac_header_preproc" >&6
25063 # So? What about this header?
25064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25070 ac_header_preproc=yes
25073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25087 ## ------------------------------------------ ##
25088 ## Report this to the AC_PACKAGE_NAME lists. ##
25089 ## ------------------------------------------ ##
25092 sed "s/^/$as_me: WARNING: /" >&2
25095 echo "$as_me:$LINENO: checking for $ac_header" >&5
25096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25100 eval "$as_ac_Header=\$ac_header_preproc"
25102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25107 cat >>confdefs.h <<_ACEOF
25108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25115 if test $ac_cv_header_mach_cthreads_h = yes ; then
25116 ol_with_threads=found
25118 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25119 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25120 if test "${ac_cv_func_cthread_fork+set}" = set; then
25121 echo $ECHO_N "(cached) $ECHO_C" >&6
25123 cat >conftest.$ac_ext <<_ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25129 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25131 #define cthread_fork innocuous_cthread_fork
25133 /* System header to define __stub macros and hopefully few prototypes,
25134 which can conflict with char cthread_fork (); below.
25135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25136 <limits.h> exists even on freestanding compilers. */
25139 # include <limits.h>
25141 # include <assert.h>
25144 #undef cthread_fork
25146 /* Override any gcc2 internal prototype to avoid an error. */
25151 /* We use char because int might match the return type of a gcc2
25152 builtin and then its argument prototype would still apply. */
25153 char cthread_fork ();
25154 /* The GNU C library defines this for functions which it implements
25155 to always fail with ENOSYS. Some functions are actually named
25156 something starting with __ and the normal name is an alias. */
25157 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25160 char (*f) () = cthread_fork;
25169 return f != cthread_fork;
25174 rm -f conftest.$ac_objext conftest$ac_exeext
25175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25176 (eval $ac_link) 2>conftest.er1
25178 grep -v '^ *+' conftest.er1 >conftest.err
25180 cat conftest.err >&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } &&
25183 { ac_try='test -z "$ac_c_werror_flag"
25184 || test ! -s conftest.err'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; } &&
25190 { ac_try='test -s conftest$ac_exeext'
25191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25192 (eval $ac_try) 2>&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; }; then
25196 ac_cv_func_cthread_fork=yes
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25201 ac_cv_func_cthread_fork=no
25203 rm -f conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
25206 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25207 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25208 if test $ac_cv_func_cthread_fork = yes; then
25209 ol_link_threads=yes
25213 if test $ol_link_threads = no ; then
25214 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25215 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25216 if test "${ol_cv_cthread_all_load+set}" = set; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25221 LIBS="-all_load $LIBS"
25222 cat >conftest.$ac_ext <<_ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25228 #include <mach/cthreads.h>
25233 cthread_fork((void *)0, (void *)0);
25239 rm -f conftest.$ac_objext conftest$ac_exeext
25240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25241 (eval $ac_link) 2>conftest.er1
25243 grep -v '^ *+' conftest.er1 >conftest.err
25245 cat conftest.err >&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } &&
25248 { ac_try='test -z "$ac_c_werror_flag"
25249 || test ! -s conftest.err'
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; } &&
25255 { ac_try='test -s conftest$ac_exeext'
25256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25257 (eval $ac_try) 2>&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); }; }; then
25261 ol_cv_cthread_all_load=yes
25263 echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25266 ol_cv_cthread_all_load=no
25268 rm -f conftest.err conftest.$ac_objext \
25269 conftest$ac_exeext conftest.$ac_ext
25273 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25274 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25276 if test $ol_cv_cthread_all_load = yes ; then
25277 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25278 ol_link_threads=mach
25279 ol_with_threads=found
25283 elif test $ac_cv_header_cthreads_h = yes ; then
25285 ol_with_threads=found
25288 LIBS="$LIBS -lthreads"
25289 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25290 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25291 if test "${ac_cv_func_cthread_fork+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25294 cat >conftest.$ac_ext <<_ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25302 #define cthread_fork innocuous_cthread_fork
25304 /* System header to define __stub macros and hopefully few prototypes,
25305 which can conflict with char cthread_fork (); below.
25306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25307 <limits.h> exists even on freestanding compilers. */
25310 # include <limits.h>
25312 # include <assert.h>
25315 #undef cthread_fork
25317 /* Override any gcc2 internal prototype to avoid an error. */
25322 /* We use char because int might match the return type of a gcc2
25323 builtin and then its argument prototype would still apply. */
25324 char cthread_fork ();
25325 /* The GNU C library defines this for functions which it implements
25326 to always fail with ENOSYS. Some functions are actually named
25327 something starting with __ and the normal name is an alias. */
25328 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25331 char (*f) () = cthread_fork;
25340 return f != cthread_fork;
25345 rm -f conftest.$ac_objext conftest$ac_exeext
25346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25347 (eval $ac_link) 2>conftest.er1
25349 grep -v '^ *+' conftest.er1 >conftest.err
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } &&
25354 { ac_try='test -z "$ac_c_werror_flag"
25355 || test ! -s conftest.err'
25356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); }; } &&
25361 { ac_try='test -s conftest$ac_exeext'
25362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363 (eval $ac_try) 2>&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); }; }; then
25367 ac_cv_func_cthread_fork=yes
25369 echo "$as_me: failed program was:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25372 ac_cv_func_cthread_fork=no
25374 rm -f conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
25377 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25378 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25379 if test $ac_cv_func_cthread_fork = yes; then
25380 ol_link_threads=yes
25385 if test $ol_link_threads = yes ; then
25386 LTHREAD_LIBS="-lthreads"
25387 ol_link_threads=mach
25388 ol_with_threads=found
25390 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25391 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25392 { (exit 1); exit 1; }; }
25395 elif test $ol_with_threads = mach ; then
25396 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25397 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25398 { (exit 1); exit 1; }; }
25401 if test $ol_link_threads = mach ; then
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_MACH_CTHREADS 1
25407 elif test $ol_with_threads = found ; then
25408 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25409 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25410 { (exit 1); exit 1; }; }
25415 case $ol_with_threads in auto | yes | pth)
25418 for ac_header in pth.h
25420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25422 echo "$as_me:$LINENO: checking for $ac_header" >&5
25423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25430 # Is the header compilable?
25431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25440 #include <$ac_header>
25442 rm -f conftest.$ac_objext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25444 (eval $ac_compile) 2>conftest.er1
25446 grep -v '^ *+' conftest.er1 >conftest.err
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
25451 { ac_try='test -z "$ac_c_werror_flag"
25452 || test ! -s conftest.err'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; } &&
25458 { ac_try='test -s conftest.$ac_objext'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25464 ac_header_compiler=yes
25466 echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25469 ac_header_compiler=no
25471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25473 echo "${ECHO_T}$ac_header_compiler" >&6
25475 # Is the header present?
25476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25478 cat >conftest.$ac_ext <<_ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 #include <$ac_header>
25486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25489 grep -v '^ *+' conftest.er1 >conftest.err
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } >/dev/null; then
25494 if test -s conftest.err; then
25495 ac_cpp_err=$ac_c_preproc_warn_flag
25496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25503 if test -z "$ac_cpp_err"; then
25504 ac_header_preproc=yes
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ac_header_preproc=no
25511 rm -f conftest.err conftest.$ac_ext
25512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25513 echo "${ECHO_T}$ac_header_preproc" >&6
25515 # So? What about this header?
25516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25522 ac_header_preproc=yes
25525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25539 ## ------------------------------------------ ##
25540 ## Report this to the AC_PACKAGE_NAME lists. ##
25541 ## ------------------------------------------ ##
25544 sed "s/^/$as_me: WARNING: /" >&2
25547 echo "$as_me:$LINENO: checking for $ac_header" >&5
25548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25552 eval "$as_ac_Header=\$ac_header_preproc"
25554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25559 cat >>confdefs.h <<_ACEOF
25560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25568 if test $ac_cv_header_pth_h = yes ; then
25569 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25570 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25571 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25572 echo $ECHO_N "(cached) $ECHO_C" >&6
25574 ac_check_lib_save_LIBS=$LIBS
25576 cat >conftest.$ac_ext <<_ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h. */
25583 /* Override any gcc2 internal prototype to avoid an error. */
25587 /* We use char because int might match the return type of a gcc2
25588 builtin and then its argument prototype would still apply. */
25589 char pth_version ();
25598 rm -f conftest.$ac_objext conftest$ac_exeext
25599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25600 (eval $ac_link) 2>conftest.er1
25602 grep -v '^ *+' conftest.er1 >conftest.err
25604 cat conftest.err >&5
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); } &&
25607 { ac_try='test -z "$ac_c_werror_flag"
25608 || test ! -s conftest.err'
25609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25610 (eval $ac_try) 2>&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); }; } &&
25614 { ac_try='test -s conftest$ac_exeext'
25615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616 (eval $ac_try) 2>&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); }; }; then
25620 ac_cv_lib_pth_pth_version=yes
25622 echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25625 ac_cv_lib_pth_pth_version=no
25627 rm -f conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
25629 LIBS=$ac_check_lib_save_LIBS
25631 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25632 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25633 if test $ac_cv_lib_pth_pth_version = yes; then
25640 if test $have_pth = yes ; then
25642 cat >>confdefs.h <<\_ACEOF
25643 #define HAVE_GNU_PTH 1
25646 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25647 ol_link_threads=pth
25648 ol_with_threads=found
25650 if test $ol_with_yielding_select = auto ; then
25651 ol_with_yielding_select=yes
25658 case $ol_with_threads in auto | yes | lwp)
25662 for ac_header in thread.h synch.h
25664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25666 echo "$as_me:$LINENO: checking for $ac_header" >&5
25667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25674 # Is the header compilable?
25675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25677 cat >conftest.$ac_ext <<_ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25683 $ac_includes_default
25684 #include <$ac_header>
25686 rm -f conftest.$ac_objext
25687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25688 (eval $ac_compile) 2>conftest.er1
25690 grep -v '^ *+' conftest.er1 >conftest.err
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
25695 { ac_try='test -z "$ac_c_werror_flag"
25696 || test ! -s conftest.err'
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; } &&
25702 { ac_try='test -s conftest.$ac_objext'
25703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704 (eval $ac_try) 2>&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); }; }; then
25708 ac_header_compiler=yes
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25713 ac_header_compiler=no
25715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25717 echo "${ECHO_T}$ac_header_compiler" >&6
25719 # Is the header present?
25720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25722 cat >conftest.$ac_ext <<_ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h. */
25728 #include <$ac_header>
25730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25733 grep -v '^ *+' conftest.er1 >conftest.err
25735 cat conftest.err >&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } >/dev/null; then
25738 if test -s conftest.err; then
25739 ac_cpp_err=$ac_c_preproc_warn_flag
25740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25747 if test -z "$ac_cpp_err"; then
25748 ac_header_preproc=yes
25750 echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25753 ac_header_preproc=no
25755 rm -f conftest.err conftest.$ac_ext
25756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25757 echo "${ECHO_T}$ac_header_preproc" >&6
25759 # So? What about this header?
25760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25766 ac_header_preproc=yes
25769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25783 ## ------------------------------------------ ##
25784 ## Report this to the AC_PACKAGE_NAME lists. ##
25785 ## ------------------------------------------ ##
25788 sed "s/^/$as_me: WARNING: /" >&2
25791 echo "$as_me:$LINENO: checking for $ac_header" >&5
25792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 eval "$as_ac_Header=\$ac_header_preproc"
25798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25803 cat >>confdefs.h <<_ACEOF
25804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25811 if test $ac_cv_header_thread_h = yes &&
25812 test $ac_cv_header_synch_h = yes ; then
25813 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25814 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25815 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25818 ac_check_lib_save_LIBS=$LIBS
25819 LIBS="-lthread $LIBS"
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25827 /* Override any gcc2 internal prototype to avoid an error. */
25831 /* We use char because int might match the return type of a gcc2
25832 builtin and then its argument prototype would still apply. */
25833 char thr_create ();
25842 rm -f conftest.$ac_objext conftest$ac_exeext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25844 (eval $ac_link) 2>conftest.er1
25846 grep -v '^ *+' conftest.er1 >conftest.err
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } &&
25851 { ac_try='test -z "$ac_c_werror_flag"
25852 || test ! -s conftest.err'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; } &&
25858 { ac_try='test -s conftest$ac_exeext'
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25864 ac_cv_lib_thread_thr_create=yes
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25869 ac_cv_lib_thread_thr_create=no
25871 rm -f conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
25873 LIBS=$ac_check_lib_save_LIBS
25875 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25876 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25877 if test $ac_cv_lib_thread_thr_create = yes; then
25884 if test $have_thr = yes ; then
25886 cat >>confdefs.h <<\_ACEOF
25890 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25891 ol_link_threads=thr
25893 if test $ol_with_yielding_select = auto ; then
25894 ol_with_yielding_select=yes
25900 thr_setconcurrency \
25901 thr_getconcurrency \
25904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25905 echo "$as_me:$LINENO: checking for $ac_func" >&5
25906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25907 if eval "test \"\${$as_ac_var+set}\" = set"; then
25908 echo $ECHO_N "(cached) $ECHO_C" >&6
25910 cat >conftest.$ac_ext <<_ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25918 #define $ac_func innocuous_$ac_func
25920 /* System header to define __stub macros and hopefully few prototypes,
25921 which can conflict with char $ac_func (); below.
25922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25923 <limits.h> exists even on freestanding compilers. */
25926 # include <limits.h>
25928 # include <assert.h>
25933 /* Override any gcc2 internal prototype to avoid an error. */
25938 /* We use char because int might match the return type of a gcc2
25939 builtin and then its argument prototype would still apply. */
25941 /* The GNU C library defines this for functions which it implements
25942 to always fail with ENOSYS. Some functions are actually named
25943 something starting with __ and the normal name is an alias. */
25944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25947 char (*f) () = $ac_func;
25956 return f != $ac_func;
25961 rm -f conftest.$ac_objext conftest$ac_exeext
25962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25963 (eval $ac_link) 2>conftest.er1
25965 grep -v '^ *+' conftest.er1 >conftest.err
25967 cat conftest.err >&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } &&
25970 { ac_try='test -z "$ac_c_werror_flag"
25971 || test ! -s conftest.err'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; } &&
25977 { ac_try='test -s conftest$ac_exeext'
25978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979 (eval $ac_try) 2>&5
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; }; then
25983 eval "$as_ac_var=yes"
25985 echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25988 eval "$as_ac_var=no"
25990 rm -f conftest.err conftest.$ac_objext \
25991 conftest$ac_exeext conftest.$ac_ext
25993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25995 if test `eval echo '${'$as_ac_var'}'` = yes; then
25996 cat >>confdefs.h <<_ACEOF
25997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26007 for ac_header in lwp/lwp.h
26009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26011 echo "$as_me:$LINENO: checking for $ac_header" >&5
26012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26014 echo $ECHO_N "(cached) $ECHO_C" >&6
26016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26019 # Is the header compilable?
26020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26022 cat >conftest.$ac_ext <<_ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26028 $ac_includes_default
26029 #include <$ac_header>
26031 rm -f conftest.$ac_objext
26032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26033 (eval $ac_compile) 2>conftest.er1
26035 grep -v '^ *+' conftest.er1 >conftest.err
26037 cat conftest.err >&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } &&
26040 { ac_try='test -z "$ac_c_werror_flag"
26041 || test ! -s conftest.err'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; } &&
26047 { ac_try='test -s conftest.$ac_objext'
26048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049 (eval $ac_try) 2>&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); }; }; then
26053 ac_header_compiler=yes
26055 echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26058 ac_header_compiler=no
26060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26062 echo "${ECHO_T}$ac_header_compiler" >&6
26064 # Is the header present?
26065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26067 cat >conftest.$ac_ext <<_ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h. */
26073 #include <$ac_header>
26075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26078 grep -v '^ *+' conftest.er1 >conftest.err
26080 cat conftest.err >&5
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); } >/dev/null; then
26083 if test -s conftest.err; then
26084 ac_cpp_err=$ac_c_preproc_warn_flag
26085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26092 if test -z "$ac_cpp_err"; then
26093 ac_header_preproc=yes
26095 echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26098 ac_header_preproc=no
26100 rm -f conftest.err conftest.$ac_ext
26101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26102 echo "${ECHO_T}$ac_header_preproc" >&6
26104 # So? What about this header?
26105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26111 ac_header_preproc=yes
26114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26128 ## ------------------------------------------ ##
26129 ## Report this to the AC_PACKAGE_NAME lists. ##
26130 ## ------------------------------------------ ##
26133 sed "s/^/$as_me: WARNING: /" >&2
26136 echo "$as_me:$LINENO: checking for $ac_header" >&5
26137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26141 eval "$as_ac_Header=\$ac_header_preproc"
26143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26148 cat >>confdefs.h <<_ACEOF
26149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26156 if test $ac_cv_header_lwp_lwp_h = yes ; then
26157 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26158 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26159 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26160 echo $ECHO_N "(cached) $ECHO_C" >&6
26162 ac_check_lib_save_LIBS=$LIBS
26164 cat >conftest.$ac_ext <<_ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26171 /* Override any gcc2 internal prototype to avoid an error. */
26175 /* We use char because int might match the return type of a gcc2
26176 builtin and then its argument prototype would still apply. */
26177 char lwp_create ();
26186 rm -f conftest.$ac_objext conftest$ac_exeext
26187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26188 (eval $ac_link) 2>conftest.er1
26190 grep -v '^ *+' conftest.er1 >conftest.err
26192 cat conftest.err >&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); } &&
26195 { ac_try='test -z "$ac_c_werror_flag"
26196 || test ! -s conftest.err'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; } &&
26202 { ac_try='test -s conftest$ac_exeext'
26203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204 (eval $ac_try) 2>&5
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); }; }; then
26208 ac_cv_lib_lwp_lwp_create=yes
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 ac_cv_lib_lwp_lwp_create=no
26215 rm -f conftest.err conftest.$ac_objext \
26216 conftest$ac_exeext conftest.$ac_ext
26217 LIBS=$ac_check_lib_save_LIBS
26219 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26220 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26221 if test $ac_cv_lib_lwp_lwp_create = yes; then
26228 if test $have_lwp = yes ; then
26230 cat >>confdefs.h <<\_ACEOF
26234 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26235 ol_link_threads=lwp
26237 if test $ol_with_yielding_select = auto ; then
26238 ol_with_yielding_select=no
26245 if test $ol_with_yielding_select = yes ; then
26247 cat >>confdefs.h <<\_ACEOF
26248 #define HAVE_YIELDING_SELECT 1
26253 if test $ol_with_threads = manual ; then
26254 ol_link_threads=yes
26256 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26257 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26261 for ac_header in pthread.h sched.h
26263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26265 echo "$as_me:$LINENO: checking for $ac_header" >&5
26266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26268 echo $ECHO_N "(cached) $ECHO_C" >&6
26270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26273 # Is the header compilable?
26274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26276 cat >conftest.$ac_ext <<_ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26282 $ac_includes_default
26283 #include <$ac_header>
26285 rm -f conftest.$ac_objext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26287 (eval $ac_compile) 2>conftest.er1
26289 grep -v '^ *+' conftest.er1 >conftest.err
26291 cat conftest.err >&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
26294 { ac_try='test -z "$ac_c_werror_flag"
26295 || test ! -s conftest.err'
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; } &&
26301 { ac_try='test -s conftest.$ac_objext'
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; }; then
26307 ac_header_compiler=yes
26309 echo "$as_me: failed program was:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26312 ac_header_compiler=no
26314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26316 echo "${ECHO_T}$ac_header_compiler" >&6
26318 # Is the header present?
26319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26321 cat >conftest.$ac_ext <<_ACEOF
26324 cat confdefs.h >>conftest.$ac_ext
26325 cat >>conftest.$ac_ext <<_ACEOF
26326 /* end confdefs.h. */
26327 #include <$ac_header>
26329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26332 grep -v '^ *+' conftest.er1 >conftest.err
26334 cat conftest.err >&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); } >/dev/null; then
26337 if test -s conftest.err; then
26338 ac_cpp_err=$ac_c_preproc_warn_flag
26339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26346 if test -z "$ac_cpp_err"; then
26347 ac_header_preproc=yes
26349 echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26352 ac_header_preproc=no
26354 rm -f conftest.err conftest.$ac_ext
26355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26356 echo "${ECHO_T}$ac_header_preproc" >&6
26358 # So? What about this header?
26359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26365 ac_header_preproc=yes
26368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26382 ## ------------------------------------------ ##
26383 ## Report this to the AC_PACKAGE_NAME lists. ##
26384 ## ------------------------------------------ ##
26387 sed "s/^/$as_me: WARNING: /" >&2
26390 echo "$as_me:$LINENO: checking for $ac_header" >&5
26391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26393 echo $ECHO_N "(cached) $ECHO_C" >&6
26395 eval "$as_ac_Header=\$ac_header_preproc"
26397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26402 cat >>confdefs.h <<_ACEOF
26403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26412 for ac_func in sched_yield pthread_yield
26414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26415 echo "$as_me:$LINENO: checking for $ac_func" >&5
26416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26417 if eval "test \"\${$as_ac_var+set}\" = set"; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26420 cat >conftest.$ac_ext <<_ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h. */
26426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26428 #define $ac_func innocuous_$ac_func
26430 /* System header to define __stub macros and hopefully few prototypes,
26431 which can conflict with char $ac_func (); below.
26432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26433 <limits.h> exists even on freestanding compilers. */
26436 # include <limits.h>
26438 # include <assert.h>
26443 /* Override any gcc2 internal prototype to avoid an error. */
26448 /* We use char because int might match the return type of a gcc2
26449 builtin and then its argument prototype would still apply. */
26451 /* The GNU C library defines this for functions which it implements
26452 to always fail with ENOSYS. Some functions are actually named
26453 something starting with __ and the normal name is an alias. */
26454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26457 char (*f) () = $ac_func;
26466 return f != $ac_func;
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26473 (eval $ac_link) 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest$ac_exeext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 eval "$as_ac_var=yes"
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26498 eval "$as_ac_var=no"
26500 rm -f conftest.err conftest.$ac_objext \
26501 conftest$ac_exeext conftest.$ac_ext
26503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26505 if test `eval echo '${'$as_ac_var'}'` = yes; then
26506 cat >>confdefs.h <<_ACEOF
26507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26514 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26515 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26516 if test "${ol_cv_header_linux_threads+set}" = set; then
26517 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 cat >conftest.$ac_ext <<_ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26525 #include <pthread.h>
26527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26528 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26529 ol_cv_header_linux_threads=yes
26531 ol_cv_header_linux_threads=no
26537 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26538 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26539 if test $ol_cv_header_linux_threads = yes; then
26541 cat >>confdefs.h <<\_ACEOF
26542 #define HAVE_LINUX_THREADS 1
26549 for ac_header in mach/cthreads.h
26551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26553 echo "$as_me:$LINENO: checking for $ac_header" >&5
26554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26561 # Is the header compilable?
26562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26564 cat >conftest.$ac_ext <<_ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h. */
26570 $ac_includes_default
26571 #include <$ac_header>
26573 rm -f conftest.$ac_objext
26574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26575 (eval $ac_compile) 2>conftest.er1
26577 grep -v '^ *+' conftest.er1 >conftest.err
26579 cat conftest.err >&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } &&
26582 { ac_try='test -z "$ac_c_werror_flag"
26583 || test ! -s conftest.err'
26584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585 (eval $ac_try) 2>&5
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); }; } &&
26589 { ac_try='test -s conftest.$ac_objext'
26590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26591 (eval $ac_try) 2>&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); }; }; then
26595 ac_header_compiler=yes
26597 echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26600 ac_header_compiler=no
26602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26604 echo "${ECHO_T}$ac_header_compiler" >&6
26606 # Is the header present?
26607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26609 cat >conftest.$ac_ext <<_ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26615 #include <$ac_header>
26617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26620 grep -v '^ *+' conftest.er1 >conftest.err
26622 cat conftest.err >&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); } >/dev/null; then
26625 if test -s conftest.err; then
26626 ac_cpp_err=$ac_c_preproc_warn_flag
26627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26634 if test -z "$ac_cpp_err"; then
26635 ac_header_preproc=yes
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 ac_header_preproc=no
26642 rm -f conftest.err conftest.$ac_ext
26643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26644 echo "${ECHO_T}$ac_header_preproc" >&6
26646 # So? What about this header?
26647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26653 ac_header_preproc=yes
26656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26670 ## ------------------------------------------ ##
26671 ## Report this to the AC_PACKAGE_NAME lists. ##
26672 ## ------------------------------------------ ##
26675 sed "s/^/$as_me: WARNING: /" >&2
26678 echo "$as_me:$LINENO: checking for $ac_header" >&5
26679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26681 echo $ECHO_N "(cached) $ECHO_C" >&6
26683 eval "$as_ac_Header=\$ac_header_preproc"
26685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26690 cat >>confdefs.h <<_ACEOF
26691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26699 for ac_header in lwp/lwp.h
26701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26703 echo "$as_me:$LINENO: checking for $ac_header" >&5
26704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26711 # Is the header compilable?
26712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26714 cat >conftest.$ac_ext <<_ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h. */
26720 $ac_includes_default
26721 #include <$ac_header>
26723 rm -f conftest.$ac_objext
26724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26725 (eval $ac_compile) 2>conftest.er1
26727 grep -v '^ *+' conftest.er1 >conftest.err
26729 cat conftest.err >&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } &&
26732 { ac_try='test -z "$ac_c_werror_flag"
26733 || test ! -s conftest.err'
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; } &&
26739 { ac_try='test -s conftest.$ac_objext'
26740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741 (eval $ac_try) 2>&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); }; }; then
26745 ac_header_compiler=yes
26747 echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26750 ac_header_compiler=no
26752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26754 echo "${ECHO_T}$ac_header_compiler" >&6
26756 # Is the header present?
26757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26759 cat >conftest.$ac_ext <<_ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h. */
26765 #include <$ac_header>
26767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26770 grep -v '^ *+' conftest.er1 >conftest.err
26772 cat conftest.err >&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); } >/dev/null; then
26775 if test -s conftest.err; then
26776 ac_cpp_err=$ac_c_preproc_warn_flag
26777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26784 if test -z "$ac_cpp_err"; then
26785 ac_header_preproc=yes
26787 echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26790 ac_header_preproc=no
26792 rm -f conftest.err conftest.$ac_ext
26793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26794 echo "${ECHO_T}$ac_header_preproc" >&6
26796 # So? What about this header?
26797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26803 ac_header_preproc=yes
26806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26820 ## ------------------------------------------ ##
26821 ## Report this to the AC_PACKAGE_NAME lists. ##
26822 ## ------------------------------------------ ##
26825 sed "s/^/$as_me: WARNING: /" >&2
26828 echo "$as_me:$LINENO: checking for $ac_header" >&5
26829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26831 echo $ECHO_N "(cached) $ECHO_C" >&6
26833 eval "$as_ac_Header=\$ac_header_preproc"
26835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26840 cat >>confdefs.h <<_ACEOF
26841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26850 for ac_header in thread.h synch.h
26852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26854 echo "$as_me:$LINENO: checking for $ac_header" >&5
26855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26857 echo $ECHO_N "(cached) $ECHO_C" >&6
26859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26862 # Is the header compilable?
26863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26865 cat >conftest.$ac_ext <<_ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26871 $ac_includes_default
26872 #include <$ac_header>
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876 (eval $ac_compile) 2>conftest.er1
26878 grep -v '^ *+' conftest.er1 >conftest.err
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } &&
26883 { ac_try='test -z "$ac_c_werror_flag"
26884 || test ! -s conftest.err'
26885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886 (eval $ac_try) 2>&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; } &&
26890 { ac_try='test -s conftest.$ac_objext'
26891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892 (eval $ac_try) 2>&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); }; }; then
26896 ac_header_compiler=yes
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ac_header_compiler=no
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26905 echo "${ECHO_T}$ac_header_compiler" >&6
26907 # Is the header present?
26908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26910 cat >conftest.$ac_ext <<_ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h. */
26916 #include <$ac_header>
26918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26921 grep -v '^ *+' conftest.er1 >conftest.err
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } >/dev/null; then
26926 if test -s conftest.err; then
26927 ac_cpp_err=$ac_c_preproc_warn_flag
26928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26935 if test -z "$ac_cpp_err"; then
26936 ac_header_preproc=yes
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ac_header_preproc=no
26943 rm -f conftest.err conftest.$ac_ext
26944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26945 echo "${ECHO_T}$ac_header_preproc" >&6
26947 # So? What about this header?
26948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26954 ac_header_preproc=yes
26957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26971 ## ------------------------------------------ ##
26972 ## Report this to the AC_PACKAGE_NAME lists. ##
26973 ## ------------------------------------------ ##
26976 sed "s/^/$as_me: WARNING: /" >&2
26979 echo "$as_me:$LINENO: checking for $ac_header" >&5
26980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26982 echo $ECHO_N "(cached) $ECHO_C" >&6
26984 eval "$as_ac_Header=\$ac_header_preproc"
26986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26991 cat >>confdefs.h <<_ACEOF
26992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27001 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27002 cat >>confdefs.h <<\_ACEOF
27003 #define REENTRANT 1
27006 cat >>confdefs.h <<\_ACEOF
27007 #define _REENTRANT 1
27010 cat >>confdefs.h <<\_ACEOF
27011 #define THREAD_SAFE 1
27014 cat >>confdefs.h <<\_ACEOF
27015 #define _THREAD_SAFE 1
27018 cat >>confdefs.h <<\_ACEOF
27019 #define THREADSAFE 1
27022 cat >>confdefs.h <<\_ACEOF
27023 #define _THREADSAFE 1
27026 cat >>confdefs.h <<\_ACEOF
27027 #define _SGI_MP_SOURCE 1
27031 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27032 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27033 if test "${ol_cv_errno_thread_specific+set}" = set; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27037 cat >conftest.$ac_ext <<_ACEOF
27040 cat confdefs.h >>conftest.$ac_ext
27041 cat >>conftest.$ac_ext <<_ACEOF
27042 /* end confdefs.h. */
27052 rm -f conftest.$ac_objext conftest$ac_exeext
27053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27054 (eval $ac_link) 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } &&
27061 { ac_try='test -z "$ac_c_werror_flag"
27062 || test ! -s conftest.err'
27063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064 (eval $ac_try) 2>&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; } &&
27068 { ac_try='test -s conftest$ac_exeext'
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; }; then
27074 ol_cv_errno_thread_specific=yes
27076 echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27079 ol_cv_errno_thread_specific=no
27081 rm -f conftest.err conftest.$ac_objext \
27082 conftest$ac_exeext conftest.$ac_ext
27085 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27086 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27088 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27089 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27090 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27094 cat >conftest.$ac_ext <<_ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27109 rm -f conftest.$ac_objext conftest$ac_exeext
27110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27111 (eval $ac_link) 2>conftest.er1
27113 grep -v '^ *+' conftest.er1 >conftest.err
27115 cat conftest.err >&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); } &&
27118 { ac_try='test -z "$ac_c_werror_flag"
27119 || test ! -s conftest.err'
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; }; then
27131 ol_cv_h_errno_thread_specific=yes
27133 echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27136 ol_cv_h_errno_thread_specific=no
27138 rm -f conftest.err conftest.$ac_objext \
27139 conftest$ac_exeext conftest.$ac_ext
27142 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27143 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27145 if test $ol_cv_errno_thread_specific != yes ||
27146 test $ol_cv_h_errno_thread_specific != yes ; then
27147 LIBS="$LTHREAD_LIBS $LIBS"
27153 if test $ol_link_threads = no ; then
27154 if test $ol_with_threads = yes ; then
27155 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27156 echo "$as_me: error: no suitable thread support" >&2;}
27157 { (exit 1); exit 1; }; }
27160 if test $ol_with_threads = auto ; then
27161 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27162 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27167 cat >>confdefs.h <<\_ACEOF
27168 #define NO_THREADS 1
27177 if test $ol_link_threads != no ; then
27179 cat >>confdefs.h <<\_ACEOF
27180 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27190 gethostbyname_r gethostbyaddr_r \
27193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27194 echo "$as_me:$LINENO: checking for $ac_func" >&5
27195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27196 if eval "test \"\${$as_ac_var+set}\" = set"; then
27197 echo $ECHO_N "(cached) $ECHO_C" >&6
27199 cat >conftest.$ac_ext <<_ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h. */
27205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27207 #define $ac_func innocuous_$ac_func
27209 /* System header to define __stub macros and hopefully few prototypes,
27210 which can conflict with char $ac_func (); below.
27211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27212 <limits.h> exists even on freestanding compilers. */
27215 # include <limits.h>
27217 # include <assert.h>
27222 /* Override any gcc2 internal prototype to avoid an error. */
27227 /* We use char because int might match the return type of a gcc2
27228 builtin and then its argument prototype would still apply. */
27230 /* The GNU C library defines this for functions which it implements
27231 to always fail with ENOSYS. Some functions are actually named
27232 something starting with __ and the normal name is an alias. */
27233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27236 char (*f) () = $ac_func;
27245 return f != $ac_func;
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27252 (eval $ac_link) 2>conftest.er1
27254 grep -v '^ *+' conftest.er1 >conftest.err
27256 cat conftest.err >&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } &&
27259 { ac_try='test -z "$ac_c_werror_flag"
27260 || test ! -s conftest.err'
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; } &&
27266 { ac_try='test -s conftest$ac_exeext'
27267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268 (eval $ac_try) 2>&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; }; then
27272 eval "$as_ac_var=yes"
27274 echo "$as_me: failed program was:" >&5
27275 sed 's/^/| /' conftest.$ac_ext >&5
27277 eval "$as_ac_var=no"
27279 rm -f conftest.err conftest.$ac_objext \
27280 conftest$ac_exeext conftest.$ac_ext
27282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27284 if test `eval echo '${'$as_ac_var'}'` = yes; then
27285 cat >>confdefs.h <<_ACEOF
27286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27293 if test "$ac_cv_func_ctime_r" = no ; then
27294 ol_cv_func_ctime_r_nargs=0
27296 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27297 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27298 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27301 cat >conftest.$ac_ext <<_ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h. */
27311 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318 (eval $ac_compile) 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -z "$ac_c_werror_flag"
27326 || test ! -s conftest.err'
27327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328 (eval $ac_try) 2>&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); }; } &&
27332 { ac_try='test -s conftest.$ac_objext'
27333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334 (eval $ac_try) 2>&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
27338 ol_cv_func_ctime_r_nargs3=yes
27340 echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27343 ol_cv_func_ctime_r_nargs3=no
27345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27347 cat >conftest.$ac_ext <<_ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h. */
27357 time_t ti; char *buffer; ctime_r(&ti,buffer);
27362 rm -f conftest.$ac_objext
27363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27364 (eval $ac_compile) 2>conftest.er1
27366 grep -v '^ *+' conftest.er1 >conftest.err
27368 cat conftest.err >&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
27371 { ac_try='test -z "$ac_c_werror_flag"
27372 || test ! -s conftest.err'
27373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374 (eval $ac_try) 2>&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; } &&
27378 { ac_try='test -s conftest.$ac_objext'
27379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380 (eval $ac_try) 2>&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; }; then
27384 ol_cv_func_ctime_r_nargs2=yes
27386 echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27389 ol_cv_func_ctime_r_nargs2=no
27391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27393 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27394 test $ol_cv_func_ctime_r_nargs2 = no ; then
27396 ol_cv_func_ctime_r_nargs=3
27398 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27399 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27401 ol_cv_func_ctime_r_nargs=2
27404 ol_cv_func_ctime_r_nargs=0
27408 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27409 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27411 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27413 cat >>confdefs.h <<_ACEOF
27414 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27421 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27422 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27423 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27424 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27433 #include <sys/types.h>
27434 #include <sys/socket.h>
27435 #include <netinet/in.h>
27437 #define BUFSIZE (sizeof(struct hostent)+10)
27441 struct hostent hent; char buffer[BUFSIZE];
27442 int bufsize=BUFSIZE;int h_errno;
27443 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27444 buffer, bufsize, &h_errno);
27449 rm -f conftest.$ac_objext
27450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27451 (eval $ac_compile) 2>conftest.er1
27453 grep -v '^ *+' conftest.er1 >conftest.err
27455 cat conftest.err >&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } &&
27458 { ac_try='test -z "$ac_c_werror_flag"
27459 || test ! -s conftest.err'
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest.$ac_objext'
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; }; then
27471 ol_cv_func_gethostbyname_r_nargs5=yes
27473 echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27476 ol_cv_func_gethostbyname_r_nargs5=no
27478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27480 cat >conftest.$ac_ext <<_ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27486 #include <sys/types.h>
27487 #include <sys/socket.h>
27488 #include <netinet/in.h>
27490 #define BUFSIZE (sizeof(struct hostent)+10)
27494 struct hostent hent;struct hostent *rhent;
27495 char buffer[BUFSIZE];
27496 int bufsize=BUFSIZE;int h_errno;
27497 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27503 rm -f conftest.$ac_objext
27504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27505 (eval $ac_compile) 2>conftest.er1
27507 grep -v '^ *+' conftest.er1 >conftest.err
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } &&
27512 { ac_try='test -z "$ac_c_werror_flag"
27513 || test ! -s conftest.err'
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; } &&
27519 { ac_try='test -s conftest.$ac_objext'
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
27525 ol_cv_func_gethostbyname_r_nargs6=yes
27527 echo "$as_me: failed program was:" >&5
27528 sed 's/^/| /' conftest.$ac_ext >&5
27530 ol_cv_func_gethostbyname_r_nargs6=no
27532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27534 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27535 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27537 ol_cv_func_gethostbyname_r_nargs=5
27539 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27540 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27542 ol_cv_func_gethostbyname_r_nargs=6
27545 ol_cv_func_gethostbyname_r_nargs=0
27549 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27550 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27551 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27553 cat >>confdefs.h <<_ACEOF
27554 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27560 ol_cv_func_gethostbyname_r_nargs=0
27563 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27564 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27565 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27566 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27567 echo $ECHO_N "(cached) $ECHO_C" >&6
27569 cat >conftest.$ac_ext <<_ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27575 #include <sys/types.h>
27576 #include <sys/socket.h>
27577 #include <netinet/in.h>
27579 #define BUFSIZE (sizeof(struct hostent)+10)
27583 struct hostent hent; char buffer[BUFSIZE];
27584 struct in_addr add;
27585 size_t alen=sizeof(struct in_addr);
27586 int bufsize=BUFSIZE;int h_errno;
27587 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27588 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27593 rm -f conftest.$ac_objext
27594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27595 (eval $ac_compile) 2>conftest.er1
27597 grep -v '^ *+' conftest.er1 >conftest.err
27599 cat conftest.err >&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); } &&
27602 { ac_try='test -z "$ac_c_werror_flag"
27603 || test ! -s conftest.err'
27604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605 (eval $ac_try) 2>&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; } &&
27609 { ac_try='test -s conftest.$ac_objext'
27610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611 (eval $ac_try) 2>&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
27615 ol_cv_func_gethostbyaddr_r_nargs7=yes
27617 echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27620 ol_cv_func_gethostbyaddr_r_nargs7=no
27622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27624 cat >conftest.$ac_ext <<_ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h. */
27630 #include <sys/types.h>
27631 #include <sys/socket.h>
27632 #include <netinet/in.h>
27634 #define BUFSIZE (sizeof(struct hostent)+10)
27638 struct hostent hent;
27639 struct hostent *rhent; char buffer[BUFSIZE];
27640 struct in_addr add;
27641 size_t alen=sizeof(struct in_addr);
27642 int bufsize=BUFSIZE;int h_errno;
27643 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27644 alen, AF_INET, &hent, buffer, bufsize,
27650 rm -f conftest.$ac_objext
27651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27652 (eval $ac_compile) 2>conftest.er1
27654 grep -v '^ *+' conftest.er1 >conftest.err
27656 cat conftest.err >&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } &&
27659 { ac_try='test -z "$ac_c_werror_flag"
27660 || test ! -s conftest.err'
27661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662 (eval $ac_try) 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest.$ac_objext'
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; }; then
27672 ol_cv_func_gethostbyaddr_r_nargs8=yes
27674 echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ol_cv_func_gethostbyaddr_r_nargs8=no
27679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27681 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27682 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27684 ol_cv_func_gethostbyaddr_r_nargs=7
27686 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27687 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27689 ol_cv_func_gethostbyaddr_r_nargs=8
27692 ol_cv_func_gethostbyaddr_r_nargs=0
27696 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27697 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27698 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27700 cat >>confdefs.h <<_ACEOF
27701 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27707 ol_cv_func_gethostbyaddr_r_nargs=0
27712 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27714 if test $ol_enable_ldbm_api = bcompat; then \
27717 for ac_header in db_185.h db.h
27719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27721 echo "$as_me:$LINENO: checking for $ac_header" >&5
27722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27724 echo $ECHO_N "(cached) $ECHO_C" >&6
27726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27729 # Is the header compilable?
27730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27738 $ac_includes_default
27739 #include <$ac_header>
27741 rm -f conftest.$ac_objext
27742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27743 (eval $ac_compile) 2>conftest.er1
27745 grep -v '^ *+' conftest.er1 >conftest.err
27747 cat conftest.err >&5
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); } &&
27750 { ac_try='test -z "$ac_c_werror_flag"
27751 || test ! -s conftest.err'
27752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753 (eval $ac_try) 2>&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); }; } &&
27757 { ac_try='test -s conftest.$ac_objext'
27758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27759 (eval $ac_try) 2>&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; }; then
27763 ac_header_compiler=yes
27765 echo "$as_me: failed program was:" >&5
27766 sed 's/^/| /' conftest.$ac_ext >&5
27768 ac_header_compiler=no
27770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27772 echo "${ECHO_T}$ac_header_compiler" >&6
27774 # Is the header present?
27775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 #include <$ac_header>
27785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27788 grep -v '^ *+' conftest.er1 >conftest.err
27790 cat conftest.err >&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); } >/dev/null; then
27793 if test -s conftest.err; then
27794 ac_cpp_err=$ac_c_preproc_warn_flag
27795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27802 if test -z "$ac_cpp_err"; then
27803 ac_header_preproc=yes
27805 echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27808 ac_header_preproc=no
27810 rm -f conftest.err conftest.$ac_ext
27811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27812 echo "${ECHO_T}$ac_header_preproc" >&6
27814 # So? What about this header?
27815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27821 ac_header_preproc=yes
27824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27838 ## ------------------------------------------ ##
27839 ## Report this to the AC_PACKAGE_NAME lists. ##
27840 ## ------------------------------------------ ##
27843 sed "s/^/$as_me: WARNING: /" >&2
27846 echo "$as_me:$LINENO: checking for $ac_header" >&5
27847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27851 eval "$as_ac_Header=\$ac_header_preproc"
27853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27858 cat >>confdefs.h <<_ACEOF
27859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27866 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27867 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27868 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27869 if test "${ol_cv_header_db1+set}" = set; then
27870 echo $ECHO_N "(cached) $ECHO_C" >&6
27873 cat >conftest.$ac_ext <<_ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h. */
27881 # include <db_185.h>
27886 /* this check could be improved */
27887 #ifndef DB_VERSION_MAJOR
27888 # define DB_VERSION_MAJOR 1
27891 #if DB_VERSION_MAJOR == 1
27896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27897 $EGREP "__db_version_1" >/dev/null 2>&1; then
27898 ol_cv_header_db1=yes
27900 ol_cv_header_db1=no
27905 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27906 echo "${ECHO_T}$ol_cv_header_db1" >&6
27908 if test $ol_cv_header_db1 = yes ; then
27911 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27912 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27913 if test "${ol_cv_bdb_major+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27918 if test $ol_cv_bdb_major = 0 ; then
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27927 #ifndef DB_VERSION_MAJOR
27928 # define DB_VERSION_MAJOR 1
27930 #if DB_VERSION_MAJOR == 4
27935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27936 $EGREP "__db_version" >/dev/null 2>&1; then
27944 if test $ol_cv_bdb_major = 0 ; then
27945 cat >conftest.$ac_ext <<_ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27953 #ifndef DB_VERSION_MAJOR
27954 # define DB_VERSION_MAJOR 1
27956 #if DB_VERSION_MAJOR == 3
27961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27962 $EGREP "__db_version" >/dev/null 2>&1; then
27970 if test $ol_cv_bdb_major = 0 ; then
27971 cat >conftest.$ac_ext <<_ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h. */
27979 #ifndef DB_VERSION_MAJOR
27980 # define DB_VERSION_MAJOR 1
27982 #if DB_VERSION_MAJOR == 2
27987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27988 $EGREP "__db_version" >/dev/null 2>&1; then
27996 if test $ol_cv_bdb_major = 0 ; then
27997 cat >conftest.$ac_ext <<_ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28005 #ifndef DB_VERSION_MAJOR
28006 # define DB_VERSION_MAJOR 1
28008 #if DB_VERSION_MAJOR == 1
28013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014 $EGREP "__db_version" >/dev/null 2>&1; then
28023 if test $ol_cv_bdb_major = 0 ; then
28024 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28025 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28026 { (exit 1); exit 1; }; }
28030 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28031 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28033 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28034 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28035 if test "${ol_cv_bdb_minor+set}" = set; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28040 if test $ol_cv_bdb_minor = 0 ; then
28041 cat >conftest.$ac_ext <<_ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h. */
28049 #ifndef DB_VERSION_MINOR
28050 # define DB_VERSION_MINOR 0
28052 #if DB_VERSION_MINOR == 9
28057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28058 $EGREP "__db_version" >/dev/null 2>&1; then
28066 if test $ol_cv_bdb_minor = 0 ; then
28067 cat >conftest.$ac_ext <<_ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h. */
28075 #ifndef DB_VERSION_MINOR
28076 # define DB_VERSION_MINOR 0
28078 #if DB_VERSION_MINOR == 8
28083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28084 $EGREP "__db_version" >/dev/null 2>&1; then
28092 if test $ol_cv_bdb_minor = 0 ; then
28093 cat >conftest.$ac_ext <<_ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h. */
28101 #ifndef DB_VERSION_MINOR
28102 # define DB_VERSION_MINOR 0
28104 #if DB_VERSION_MINOR == 7
28109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28110 $EGREP "__db_version" >/dev/null 2>&1; then
28118 if test $ol_cv_bdb_minor = 0 ; then
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28127 #ifndef DB_VERSION_MINOR
28128 # define DB_VERSION_MINOR 0
28130 #if DB_VERSION_MINOR == 6
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136 $EGREP "__db_version" >/dev/null 2>&1; then
28144 if test $ol_cv_bdb_minor = 0 ; then
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28153 #ifndef DB_VERSION_MINOR
28154 # define DB_VERSION_MINOR 0
28156 #if DB_VERSION_MINOR == 5
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162 $EGREP "__db_version" >/dev/null 2>&1; then
28170 if test $ol_cv_bdb_minor = 0 ; then
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28179 #ifndef DB_VERSION_MINOR
28180 # define DB_VERSION_MINOR 0
28182 #if DB_VERSION_MINOR == 4
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188 $EGREP "__db_version" >/dev/null 2>&1; then
28196 if test $ol_cv_bdb_minor = 0 ; then
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28205 #ifndef DB_VERSION_MINOR
28206 # define DB_VERSION_MINOR 0
28208 #if DB_VERSION_MINOR == 3
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214 $EGREP "__db_version" >/dev/null 2>&1; then
28222 if test $ol_cv_bdb_minor = 0 ; then
28223 cat >conftest.$ac_ext <<_ACEOF
28226 cat confdefs.h >>conftest.$ac_ext
28227 cat >>conftest.$ac_ext <<_ACEOF
28228 /* end confdefs.h. */
28231 #ifndef DB_VERSION_MINOR
28232 # define DB_VERSION_MINOR 0
28234 #if DB_VERSION_MINOR == 2
28239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28240 $EGREP "__db_version" >/dev/null 2>&1; then
28248 if test $ol_cv_bdb_minor = 0 ; then
28249 cat >conftest.$ac_ext <<_ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h. */
28257 #ifndef DB_VERSION_MINOR
28258 # define DB_VERSION_MINOR 0
28260 #if DB_VERSION_MINOR == 1
28265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28266 $EGREP "__db_version" >/dev/null 2>&1; then
28276 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28277 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28279 if test $ol_cv_bdb_major = 4 ; then
28280 if test $ol_cv_bdb_minor = 4 ; then
28281 if test $ol_cv_lib_db = no ; then
28282 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28283 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28284 if test "${ol_cv_db_db44+set}" = set; then
28285 echo $ECHO_N "(cached) $ECHO_C" >&6
28290 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28292 cat >conftest.$ac_ext <<_ACEOF
28295 cat confdefs.h >>conftest.$ac_ext
28296 cat >>conftest.$ac_ext <<_ACEOF
28297 /* end confdefs.h. */
28299 #ifdef HAVE_DB_185_H
28300 # include <db_185.h>
28305 #ifndef DB_VERSION_MAJOR
28306 # define DB_VERSION_MAJOR 1
28310 #define NULL ((void*)0)
28317 #if DB_VERSION_MAJOR > 1
28320 int major, minor, patch;
28322 version = db_version( &major, &minor, &patch );
28324 if( major != DB_VERSION_MAJOR ||
28325 minor < DB_VERSION_MINOR )
28327 printf("Berkeley DB version mismatch\n"
28328 "\theader: %s\n\tlibrary: %s\n",
28329 DB_VERSION_STRING, version);
28335 #if DB_VERSION_MAJOR > 2
28336 db_env_create( NULL, 0 );
28337 #elif DB_VERSION_MAJOR > 1
28338 db_appexit( NULL );
28340 (void) dbopen( NULL, 0, 0, 0, NULL);
28347 rm -f conftest.$ac_objext conftest$ac_exeext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28349 (eval $ac_link) 2>conftest.er1
28351 grep -v '^ *+' conftest.er1 >conftest.err
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
28356 { ac_try='test -z "$ac_c_werror_flag"
28357 || test ! -s conftest.err'
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest$ac_exeext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28376 rm -f conftest.err conftest.$ac_objext \
28377 conftest$ac_exeext conftest.$ac_ext
28382 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28383 echo "${ECHO_T}$ol_cv_db_db44" >&6
28385 if test $ol_cv_db_db44 = yes ; then
28386 ol_cv_lib_db=-ldb44
28390 if test $ol_cv_lib_db = no ; then
28391 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28392 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28393 if test "${ol_cv_db_db_44+set}" = set; then
28394 echo $ECHO_N "(cached) $ECHO_C" >&6
28399 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28401 cat >conftest.$ac_ext <<_ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h. */
28408 #ifdef HAVE_DB_185_H
28409 # include <db_185.h>
28414 #ifndef DB_VERSION_MAJOR
28415 # define DB_VERSION_MAJOR 1
28419 #define NULL ((void*)0)
28426 #if DB_VERSION_MAJOR > 1
28429 int major, minor, patch;
28431 version = db_version( &major, &minor, &patch );
28433 if( major != DB_VERSION_MAJOR ||
28434 minor < DB_VERSION_MINOR )
28436 printf("Berkeley DB version mismatch\n"
28437 "\theader: %s\n\tlibrary: %s\n",
28438 DB_VERSION_STRING, version);
28444 #if DB_VERSION_MAJOR > 2
28445 db_env_create( NULL, 0 );
28446 #elif DB_VERSION_MAJOR > 1
28447 db_appexit( NULL );
28449 (void) dbopen( NULL, 0, 0, 0, NULL);
28456 rm -f conftest.$ac_objext conftest$ac_exeext
28457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28458 (eval $ac_link) 2>conftest.er1
28460 grep -v '^ *+' conftest.er1 >conftest.err
28462 cat conftest.err >&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } &&
28465 { ac_try='test -z "$ac_c_werror_flag"
28466 || test ! -s conftest.err'
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; } &&
28472 { ac_try='test -s conftest$ac_exeext'
28473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474 (eval $ac_try) 2>&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; }; then
28480 echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28485 rm -f conftest.err conftest.$ac_objext \
28486 conftest$ac_exeext conftest.$ac_ext
28491 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28492 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28494 if test $ol_cv_db_db_44 = yes ; then
28495 ol_cv_lib_db=-ldb-44
28499 if test $ol_cv_lib_db = no ; then
28500 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28501 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28502 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28503 echo $ECHO_N "(cached) $ECHO_C" >&6
28508 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28510 cat >conftest.$ac_ext <<_ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h. */
28517 #ifdef HAVE_DB_185_H
28518 # include <db_185.h>
28523 #ifndef DB_VERSION_MAJOR
28524 # define DB_VERSION_MAJOR 1
28528 #define NULL ((void*)0)
28535 #if DB_VERSION_MAJOR > 1
28538 int major, minor, patch;
28540 version = db_version( &major, &minor, &patch );
28542 if( major != DB_VERSION_MAJOR ||
28543 minor < DB_VERSION_MINOR )
28545 printf("Berkeley DB version mismatch\n"
28546 "\theader: %s\n\tlibrary: %s\n",
28547 DB_VERSION_STRING, version);
28553 #if DB_VERSION_MAJOR > 2
28554 db_env_create( NULL, 0 );
28555 #elif DB_VERSION_MAJOR > 1
28556 db_appexit( NULL );
28558 (void) dbopen( NULL, 0, 0, 0, NULL);
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28567 (eval $ac_link) 2>conftest.er1
28569 grep -v '^ *+' conftest.er1 >conftest.err
28571 cat conftest.err >&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); } &&
28574 { ac_try='test -z "$ac_c_werror_flag"
28575 || test ! -s conftest.err'
28576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577 (eval $ac_try) 2>&5
28579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580 (exit $ac_status); }; } &&
28581 { ac_try='test -s conftest$ac_exeext'
28582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583 (eval $ac_try) 2>&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; }; then
28587 ol_cv_db_db_4_dot_4=yes
28589 echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28592 ol_cv_db_db_4_dot_4=no
28594 rm -f conftest.err conftest.$ac_objext \
28595 conftest$ac_exeext conftest.$ac_ext
28600 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28601 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28603 if test $ol_cv_db_db_4_dot_4 = yes ; then
28604 ol_cv_lib_db=-ldb-4.4
28608 if test $ol_cv_lib_db = no ; then
28609 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28610 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28611 if test "${ol_cv_db_db_4_4+set}" = set; then
28612 echo $ECHO_N "(cached) $ECHO_C" >&6
28617 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28619 cat >conftest.$ac_ext <<_ACEOF
28622 cat confdefs.h >>conftest.$ac_ext
28623 cat >>conftest.$ac_ext <<_ACEOF
28624 /* end confdefs.h. */
28626 #ifdef HAVE_DB_185_H
28627 # include <db_185.h>
28632 #ifndef DB_VERSION_MAJOR
28633 # define DB_VERSION_MAJOR 1
28637 #define NULL ((void*)0)
28644 #if DB_VERSION_MAJOR > 1
28647 int major, minor, patch;
28649 version = db_version( &major, &minor, &patch );
28651 if( major != DB_VERSION_MAJOR ||
28652 minor < DB_VERSION_MINOR )
28654 printf("Berkeley DB version mismatch\n"
28655 "\theader: %s\n\tlibrary: %s\n",
28656 DB_VERSION_STRING, version);
28662 #if DB_VERSION_MAJOR > 2
28663 db_env_create( NULL, 0 );
28664 #elif DB_VERSION_MAJOR > 1
28665 db_appexit( NULL );
28667 (void) dbopen( NULL, 0, 0, 0, NULL);
28674 rm -f conftest.$ac_objext conftest$ac_exeext
28675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28676 (eval $ac_link) 2>conftest.er1
28678 grep -v '^ *+' conftest.er1 >conftest.err
28680 cat conftest.err >&5
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); } &&
28683 { ac_try='test -z "$ac_c_werror_flag"
28684 || test ! -s conftest.err'
28685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28686 (eval $ac_try) 2>&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; } &&
28690 { ac_try='test -s conftest$ac_exeext'
28691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692 (eval $ac_try) 2>&5
28694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; }; then
28696 ol_cv_db_db_4_4=yes
28698 echo "$as_me: failed program was:" >&5
28699 sed 's/^/| /' conftest.$ac_ext >&5
28703 rm -f conftest.err conftest.$ac_objext \
28704 conftest$ac_exeext conftest.$ac_ext
28709 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28710 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28712 if test $ol_cv_db_db_4_4 = yes ; then
28713 ol_cv_lib_db=-ldb-4-4
28717 elif test $ol_cv_bdb_minor = 3 ; then
28718 if test $ol_cv_lib_db = no ; then
28719 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28720 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28721 if test "${ol_cv_db_db43+set}" = set; then
28722 echo $ECHO_N "(cached) $ECHO_C" >&6
28727 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28729 cat >conftest.$ac_ext <<_ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h. */
28736 #ifdef HAVE_DB_185_H
28737 # include <db_185.h>
28742 #ifndef DB_VERSION_MAJOR
28743 # define DB_VERSION_MAJOR 1
28747 #define NULL ((void*)0)
28754 #if DB_VERSION_MAJOR > 1
28757 int major, minor, patch;
28759 version = db_version( &major, &minor, &patch );
28761 if( major != DB_VERSION_MAJOR ||
28762 minor < DB_VERSION_MINOR )
28764 printf("Berkeley DB version mismatch\n"
28765 "\theader: %s\n\tlibrary: %s\n",
28766 DB_VERSION_STRING, version);
28772 #if DB_VERSION_MAJOR > 2
28773 db_env_create( NULL, 0 );
28774 #elif DB_VERSION_MAJOR > 1
28775 db_appexit( NULL );
28777 (void) dbopen( NULL, 0, 0, 0, NULL);
28784 rm -f conftest.$ac_objext conftest$ac_exeext
28785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28786 (eval $ac_link) 2>conftest.er1
28788 grep -v '^ *+' conftest.er1 >conftest.err
28790 cat conftest.err >&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } &&
28793 { ac_try='test -z "$ac_c_werror_flag"
28794 || test ! -s conftest.err'
28795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796 (eval $ac_try) 2>&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; } &&
28800 { ac_try='test -s conftest$ac_exeext'
28801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802 (eval $ac_try) 2>&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; }; then
28808 echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28813 rm -f conftest.err conftest.$ac_objext \
28814 conftest$ac_exeext conftest.$ac_ext
28819 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28820 echo "${ECHO_T}$ol_cv_db_db43" >&6
28822 if test $ol_cv_db_db43 = yes ; then
28823 ol_cv_lib_db=-ldb43
28827 if test $ol_cv_lib_db = no ; then
28828 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28829 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28830 if test "${ol_cv_db_db_43+set}" = set; then
28831 echo $ECHO_N "(cached) $ECHO_C" >&6
28836 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28838 cat >conftest.$ac_ext <<_ACEOF
28841 cat confdefs.h >>conftest.$ac_ext
28842 cat >>conftest.$ac_ext <<_ACEOF
28843 /* end confdefs.h. */
28845 #ifdef HAVE_DB_185_H
28846 # include <db_185.h>
28851 #ifndef DB_VERSION_MAJOR
28852 # define DB_VERSION_MAJOR 1
28856 #define NULL ((void*)0)
28863 #if DB_VERSION_MAJOR > 1
28866 int major, minor, patch;
28868 version = db_version( &major, &minor, &patch );
28870 if( major != DB_VERSION_MAJOR ||
28871 minor < DB_VERSION_MINOR )
28873 printf("Berkeley DB version mismatch\n"
28874 "\theader: %s\n\tlibrary: %s\n",
28875 DB_VERSION_STRING, version);
28881 #if DB_VERSION_MAJOR > 2
28882 db_env_create( NULL, 0 );
28883 #elif DB_VERSION_MAJOR > 1
28884 db_appexit( NULL );
28886 (void) dbopen( NULL, 0, 0, 0, NULL);
28893 rm -f conftest.$ac_objext conftest$ac_exeext
28894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28895 (eval $ac_link) 2>conftest.er1
28897 grep -v '^ *+' conftest.er1 >conftest.err
28899 cat conftest.err >&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); } &&
28902 { ac_try='test -z "$ac_c_werror_flag"
28903 || test ! -s conftest.err'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; } &&
28909 { ac_try='test -s conftest$ac_exeext'
28910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28922 rm -f conftest.err conftest.$ac_objext \
28923 conftest$ac_exeext conftest.$ac_ext
28928 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28929 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28931 if test $ol_cv_db_db_43 = yes ; then
28932 ol_cv_lib_db=-ldb-43
28936 if test $ol_cv_lib_db = no ; then
28937 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28938 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28939 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28945 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28947 cat >conftest.$ac_ext <<_ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h. */
28954 #ifdef HAVE_DB_185_H
28955 # include <db_185.h>
28960 #ifndef DB_VERSION_MAJOR
28961 # define DB_VERSION_MAJOR 1
28965 #define NULL ((void*)0)
28972 #if DB_VERSION_MAJOR > 1
28975 int major, minor, patch;
28977 version = db_version( &major, &minor, &patch );
28979 if( major != DB_VERSION_MAJOR ||
28980 minor < DB_VERSION_MINOR )
28982 printf("Berkeley DB version mismatch\n"
28983 "\theader: %s\n\tlibrary: %s\n",
28984 DB_VERSION_STRING, version);
28990 #if DB_VERSION_MAJOR > 2
28991 db_env_create( NULL, 0 );
28992 #elif DB_VERSION_MAJOR > 1
28993 db_appexit( NULL );
28995 (void) dbopen( NULL, 0, 0, 0, NULL);
29002 rm -f conftest.$ac_objext conftest$ac_exeext
29003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29004 (eval $ac_link) 2>conftest.er1
29006 grep -v '^ *+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } &&
29011 { ac_try='test -z "$ac_c_werror_flag"
29012 || test ! -s conftest.err'
29013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29014 (eval $ac_try) 2>&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); }; } &&
29018 { ac_try='test -s conftest$ac_exeext'
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; }; then
29024 ol_cv_db_db_4_dot_3=yes
29026 echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 ol_cv_db_db_4_dot_3=no
29031 rm -f conftest.err conftest.$ac_objext \
29032 conftest$ac_exeext conftest.$ac_ext
29037 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29038 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29040 if test $ol_cv_db_db_4_dot_3 = yes ; then
29041 ol_cv_lib_db=-ldb-4.3
29045 if test $ol_cv_lib_db = no ; then
29046 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29047 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29048 if test "${ol_cv_db_db_4_3+set}" = set; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29054 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29056 cat >conftest.$ac_ext <<_ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h. */
29063 #ifdef HAVE_DB_185_H
29064 # include <db_185.h>
29069 #ifndef DB_VERSION_MAJOR
29070 # define DB_VERSION_MAJOR 1
29074 #define NULL ((void*)0)
29081 #if DB_VERSION_MAJOR > 1
29084 int major, minor, patch;
29086 version = db_version( &major, &minor, &patch );
29088 if( major != DB_VERSION_MAJOR ||
29089 minor < DB_VERSION_MINOR )
29091 printf("Berkeley DB version mismatch\n"
29092 "\theader: %s\n\tlibrary: %s\n",
29093 DB_VERSION_STRING, version);
29099 #if DB_VERSION_MAJOR > 2
29100 db_env_create( NULL, 0 );
29101 #elif DB_VERSION_MAJOR > 1
29102 db_appexit( NULL );
29104 (void) dbopen( NULL, 0, 0, 0, NULL);
29111 rm -f conftest.$ac_objext conftest$ac_exeext
29112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29113 (eval $ac_link) 2>conftest.er1
29115 grep -v '^ *+' conftest.er1 >conftest.err
29117 cat conftest.err >&5
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } &&
29120 { ac_try='test -z "$ac_c_werror_flag"
29121 || test ! -s conftest.err'
29122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29123 (eval $ac_try) 2>&5
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; } &&
29127 { ac_try='test -s conftest$ac_exeext'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
29133 ol_cv_db_db_4_3=yes
29135 echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29140 rm -f conftest.err conftest.$ac_objext \
29141 conftest$ac_exeext conftest.$ac_ext
29146 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29147 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29149 if test $ol_cv_db_db_4_3 = yes ; then
29150 ol_cv_lib_db=-ldb-4-3
29154 elif test $ol_cv_bdb_minor = 2 ; then
29155 if test $ol_cv_lib_db = no ; then
29156 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29157 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29158 if test "${ol_cv_db_db42+set}" = set; then
29159 echo $ECHO_N "(cached) $ECHO_C" >&6
29164 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29166 cat >conftest.$ac_ext <<_ACEOF
29169 cat confdefs.h >>conftest.$ac_ext
29170 cat >>conftest.$ac_ext <<_ACEOF
29171 /* end confdefs.h. */
29173 #ifdef HAVE_DB_185_H
29174 # include <db_185.h>
29179 #ifndef DB_VERSION_MAJOR
29180 # define DB_VERSION_MAJOR 1
29184 #define NULL ((void*)0)
29191 #if DB_VERSION_MAJOR > 1
29194 int major, minor, patch;
29196 version = db_version( &major, &minor, &patch );
29198 if( major != DB_VERSION_MAJOR ||
29199 minor < DB_VERSION_MINOR )
29201 printf("Berkeley DB version mismatch\n"
29202 "\theader: %s\n\tlibrary: %s\n",
29203 DB_VERSION_STRING, version);
29209 #if DB_VERSION_MAJOR > 2
29210 db_env_create( NULL, 0 );
29211 #elif DB_VERSION_MAJOR > 1
29212 db_appexit( NULL );
29214 (void) dbopen( NULL, 0, 0, 0, NULL);
29221 rm -f conftest.$ac_objext conftest$ac_exeext
29222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29223 (eval $ac_link) 2>conftest.er1
29225 grep -v '^ *+' conftest.er1 >conftest.err
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
29230 { ac_try='test -z "$ac_c_werror_flag"
29231 || test ! -s conftest.err'
29232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29233 (eval $ac_try) 2>&5
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); }; } &&
29237 { ac_try='test -s conftest$ac_exeext'
29238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29239 (eval $ac_try) 2>&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); }; }; then
29245 echo "$as_me: failed program was:" >&5
29246 sed 's/^/| /' conftest.$ac_ext >&5
29250 rm -f conftest.err conftest.$ac_objext \
29251 conftest$ac_exeext conftest.$ac_ext
29256 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29257 echo "${ECHO_T}$ol_cv_db_db42" >&6
29259 if test $ol_cv_db_db42 = yes ; then
29260 ol_cv_lib_db=-ldb42
29264 if test $ol_cv_lib_db = no ; then
29265 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29266 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29267 if test "${ol_cv_db_db_42+set}" = set; then
29268 echo $ECHO_N "(cached) $ECHO_C" >&6
29273 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29275 cat >conftest.$ac_ext <<_ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29282 #ifdef HAVE_DB_185_H
29283 # include <db_185.h>
29288 #ifndef DB_VERSION_MAJOR
29289 # define DB_VERSION_MAJOR 1
29293 #define NULL ((void*)0)
29300 #if DB_VERSION_MAJOR > 1
29303 int major, minor, patch;
29305 version = db_version( &major, &minor, &patch );
29307 if( major != DB_VERSION_MAJOR ||
29308 minor < DB_VERSION_MINOR )
29310 printf("Berkeley DB version mismatch\n"
29311 "\theader: %s\n\tlibrary: %s\n",
29312 DB_VERSION_STRING, version);
29318 #if DB_VERSION_MAJOR > 2
29319 db_env_create( NULL, 0 );
29320 #elif DB_VERSION_MAJOR > 1
29321 db_appexit( NULL );
29323 (void) dbopen( NULL, 0, 0, 0, NULL);
29330 rm -f conftest.$ac_objext conftest$ac_exeext
29331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29332 (eval $ac_link) 2>conftest.er1
29334 grep -v '^ *+' conftest.er1 >conftest.err
29336 cat conftest.err >&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); } &&
29339 { ac_try='test -z "$ac_c_werror_flag"
29340 || test ! -s conftest.err'
29341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29342 (eval $ac_try) 2>&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest$ac_exeext'
29347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29348 (eval $ac_try) 2>&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; }; then
29354 echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29359 rm -f conftest.err conftest.$ac_objext \
29360 conftest$ac_exeext conftest.$ac_ext
29365 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29366 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29368 if test $ol_cv_db_db_42 = yes ; then
29369 ol_cv_lib_db=-ldb-42
29373 if test $ol_cv_lib_db = no ; then
29374 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29375 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29376 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29377 echo $ECHO_N "(cached) $ECHO_C" >&6
29382 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29384 cat >conftest.$ac_ext <<_ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h. */
29391 #ifdef HAVE_DB_185_H
29392 # include <db_185.h>
29397 #ifndef DB_VERSION_MAJOR
29398 # define DB_VERSION_MAJOR 1
29402 #define NULL ((void*)0)
29409 #if DB_VERSION_MAJOR > 1
29412 int major, minor, patch;
29414 version = db_version( &major, &minor, &patch );
29416 if( major != DB_VERSION_MAJOR ||
29417 minor < DB_VERSION_MINOR )
29419 printf("Berkeley DB version mismatch\n"
29420 "\theader: %s\n\tlibrary: %s\n",
29421 DB_VERSION_STRING, version);
29427 #if DB_VERSION_MAJOR > 2
29428 db_env_create( NULL, 0 );
29429 #elif DB_VERSION_MAJOR > 1
29430 db_appexit( NULL );
29432 (void) dbopen( NULL, 0, 0, 0, NULL);
29439 rm -f conftest.$ac_objext conftest$ac_exeext
29440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29441 (eval $ac_link) 2>conftest.er1
29443 grep -v '^ *+' conftest.er1 >conftest.err
29445 cat conftest.err >&5
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); } &&
29448 { ac_try='test -z "$ac_c_werror_flag"
29449 || test ! -s conftest.err'
29450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29451 (eval $ac_try) 2>&5
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); }; } &&
29455 { ac_try='test -s conftest$ac_exeext'
29456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457 (eval $ac_try) 2>&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; }; then
29461 ol_cv_db_db_4_dot_2=yes
29463 echo "$as_me: failed program was:" >&5
29464 sed 's/^/| /' conftest.$ac_ext >&5
29466 ol_cv_db_db_4_dot_2=no
29468 rm -f conftest.err conftest.$ac_objext \
29469 conftest$ac_exeext conftest.$ac_ext
29474 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29475 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29477 if test $ol_cv_db_db_4_dot_2 = yes ; then
29478 ol_cv_lib_db=-ldb-4.2
29482 if test $ol_cv_lib_db = no ; then
29483 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29484 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29485 if test "${ol_cv_db_db_4_2+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29491 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29493 cat >conftest.$ac_ext <<_ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h. */
29500 #ifdef HAVE_DB_185_H
29501 # include <db_185.h>
29506 #ifndef DB_VERSION_MAJOR
29507 # define DB_VERSION_MAJOR 1
29511 #define NULL ((void*)0)
29518 #if DB_VERSION_MAJOR > 1
29521 int major, minor, patch;
29523 version = db_version( &major, &minor, &patch );
29525 if( major != DB_VERSION_MAJOR ||
29526 minor < DB_VERSION_MINOR )
29528 printf("Berkeley DB version mismatch\n"
29529 "\theader: %s\n\tlibrary: %s\n",
29530 DB_VERSION_STRING, version);
29536 #if DB_VERSION_MAJOR > 2
29537 db_env_create( NULL, 0 );
29538 #elif DB_VERSION_MAJOR > 1
29539 db_appexit( NULL );
29541 (void) dbopen( NULL, 0, 0, 0, NULL);
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29550 (eval $ac_link) 2>conftest.er1
29552 grep -v '^ *+' conftest.er1 >conftest.err
29554 cat conftest.err >&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } &&
29557 { ac_try='test -z "$ac_c_werror_flag"
29558 || test ! -s conftest.err'
29559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560 (eval $ac_try) 2>&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); }; } &&
29564 { ac_try='test -s conftest$ac_exeext'
29565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29566 (eval $ac_try) 2>&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; }; then
29570 ol_cv_db_db_4_2=yes
29572 echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29577 rm -f conftest.err conftest.$ac_objext \
29578 conftest$ac_exeext conftest.$ac_ext
29583 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29584 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29586 if test $ol_cv_db_db_4_2 = yes ; then
29587 ol_cv_lib_db=-ldb-4-2
29591 elif test $ol_cv_bdb_minor = 1 ; then
29592 if test $ol_cv_lib_db = no ; then
29593 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29594 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29595 if test "${ol_cv_db_db41+set}" = set; then
29596 echo $ECHO_N "(cached) $ECHO_C" >&6
29601 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29603 cat >conftest.$ac_ext <<_ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h. */
29610 #ifdef HAVE_DB_185_H
29611 # include <db_185.h>
29616 #ifndef DB_VERSION_MAJOR
29617 # define DB_VERSION_MAJOR 1
29621 #define NULL ((void*)0)
29628 #if DB_VERSION_MAJOR > 1
29631 int major, minor, patch;
29633 version = db_version( &major, &minor, &patch );
29635 if( major != DB_VERSION_MAJOR ||
29636 minor < DB_VERSION_MINOR )
29638 printf("Berkeley DB version mismatch\n"
29639 "\theader: %s\n\tlibrary: %s\n",
29640 DB_VERSION_STRING, version);
29646 #if DB_VERSION_MAJOR > 2
29647 db_env_create( NULL, 0 );
29648 #elif DB_VERSION_MAJOR > 1
29649 db_appexit( NULL );
29651 (void) dbopen( NULL, 0, 0, 0, NULL);
29658 rm -f conftest.$ac_objext conftest$ac_exeext
29659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29660 (eval $ac_link) 2>conftest.er1
29662 grep -v '^ *+' conftest.er1 >conftest.err
29664 cat conftest.err >&5
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); } &&
29667 { ac_try='test -z "$ac_c_werror_flag"
29668 || test ! -s conftest.err'
29669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670 (eval $ac_try) 2>&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; } &&
29674 { ac_try='test -s conftest$ac_exeext'
29675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676 (eval $ac_try) 2>&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; }; then
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29687 rm -f conftest.err conftest.$ac_objext \
29688 conftest$ac_exeext conftest.$ac_ext
29693 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29694 echo "${ECHO_T}$ol_cv_db_db41" >&6
29696 if test $ol_cv_db_db41 = yes ; then
29697 ol_cv_lib_db=-ldb41
29701 if test $ol_cv_lib_db = no ; then
29702 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29703 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29704 if test "${ol_cv_db_db_41+set}" = set; then
29705 echo $ECHO_N "(cached) $ECHO_C" >&6
29710 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29712 cat >conftest.$ac_ext <<_ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h. */
29719 #ifdef HAVE_DB_185_H
29720 # include <db_185.h>
29725 #ifndef DB_VERSION_MAJOR
29726 # define DB_VERSION_MAJOR 1
29730 #define NULL ((void*)0)
29737 #if DB_VERSION_MAJOR > 1
29740 int major, minor, patch;
29742 version = db_version( &major, &minor, &patch );
29744 if( major != DB_VERSION_MAJOR ||
29745 minor < DB_VERSION_MINOR )
29747 printf("Berkeley DB version mismatch\n"
29748 "\theader: %s\n\tlibrary: %s\n",
29749 DB_VERSION_STRING, version);
29755 #if DB_VERSION_MAJOR > 2
29756 db_env_create( NULL, 0 );
29757 #elif DB_VERSION_MAJOR > 1
29758 db_appexit( NULL );
29760 (void) dbopen( NULL, 0, 0, 0, NULL);
29767 rm -f conftest.$ac_objext conftest$ac_exeext
29768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29769 (eval $ac_link) 2>conftest.er1
29771 grep -v '^ *+' conftest.er1 >conftest.err
29773 cat conftest.err >&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); } &&
29776 { ac_try='test -z "$ac_c_werror_flag"
29777 || test ! -s conftest.err'
29778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29779 (eval $ac_try) 2>&5
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); }; } &&
29783 { ac_try='test -s conftest$ac_exeext'
29784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785 (eval $ac_try) 2>&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; }; then
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29796 rm -f conftest.err conftest.$ac_objext \
29797 conftest$ac_exeext conftest.$ac_ext
29802 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29803 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29805 if test $ol_cv_db_db_41 = yes ; then
29806 ol_cv_lib_db=-ldb-41
29810 if test $ol_cv_lib_db = no ; then
29811 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29812 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29813 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
29819 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29821 cat >conftest.$ac_ext <<_ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h. */
29828 #ifdef HAVE_DB_185_H
29829 # include <db_185.h>
29834 #ifndef DB_VERSION_MAJOR
29835 # define DB_VERSION_MAJOR 1
29839 #define NULL ((void*)0)
29846 #if DB_VERSION_MAJOR > 1
29849 int major, minor, patch;
29851 version = db_version( &major, &minor, &patch );
29853 if( major != DB_VERSION_MAJOR ||
29854 minor < DB_VERSION_MINOR )
29856 printf("Berkeley DB version mismatch\n"
29857 "\theader: %s\n\tlibrary: %s\n",
29858 DB_VERSION_STRING, version);
29864 #if DB_VERSION_MAJOR > 2
29865 db_env_create( NULL, 0 );
29866 #elif DB_VERSION_MAJOR > 1
29867 db_appexit( NULL );
29869 (void) dbopen( NULL, 0, 0, 0, NULL);
29876 rm -f conftest.$ac_objext conftest$ac_exeext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29878 (eval $ac_link) 2>conftest.er1
29880 grep -v '^ *+' conftest.er1 >conftest.err
29882 cat conftest.err >&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
29885 { ac_try='test -z "$ac_c_werror_flag"
29886 || test ! -s conftest.err'
29887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888 (eval $ac_try) 2>&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); }; } &&
29892 { ac_try='test -s conftest$ac_exeext'
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; }; then
29898 ol_cv_db_db_4_dot_1=yes
29900 echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 ol_cv_db_db_4_dot_1=no
29905 rm -f conftest.err conftest.$ac_objext \
29906 conftest$ac_exeext conftest.$ac_ext
29911 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29912 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29914 if test $ol_cv_db_db_4_dot_1 = yes ; then
29915 ol_cv_lib_db=-ldb-4.1
29919 if test $ol_cv_lib_db = no ; then
29920 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29921 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29922 if test "${ol_cv_db_db_4_1+set}" = set; then
29923 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29930 cat >conftest.$ac_ext <<_ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h. */
29937 #ifdef HAVE_DB_185_H
29938 # include <db_185.h>
29943 #ifndef DB_VERSION_MAJOR
29944 # define DB_VERSION_MAJOR 1
29948 #define NULL ((void*)0)
29955 #if DB_VERSION_MAJOR > 1
29958 int major, minor, patch;
29960 version = db_version( &major, &minor, &patch );
29962 if( major != DB_VERSION_MAJOR ||
29963 minor < DB_VERSION_MINOR )
29965 printf("Berkeley DB version mismatch\n"
29966 "\theader: %s\n\tlibrary: %s\n",
29967 DB_VERSION_STRING, version);
29973 #if DB_VERSION_MAJOR > 2
29974 db_env_create( NULL, 0 );
29975 #elif DB_VERSION_MAJOR > 1
29976 db_appexit( NULL );
29978 (void) dbopen( NULL, 0, 0, 0, NULL);
29985 rm -f conftest.$ac_objext conftest$ac_exeext
29986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29987 (eval $ac_link) 2>conftest.er1
29989 grep -v '^ *+' conftest.er1 >conftest.err
29991 cat conftest.err >&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); } &&
29994 { ac_try='test -z "$ac_c_werror_flag"
29995 || test ! -s conftest.err'
29996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997 (eval $ac_try) 2>&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); }; } &&
30001 { ac_try='test -s conftest$ac_exeext'
30002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003 (eval $ac_try) 2>&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; }; then
30007 ol_cv_db_db_4_1=yes
30009 echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30014 rm -f conftest.err conftest.$ac_objext \
30015 conftest$ac_exeext conftest.$ac_ext
30020 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30021 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30023 if test $ol_cv_db_db_4_1 = yes ; then
30024 ol_cv_lib_db=-ldb-4-1
30029 if test $ol_cv_lib_db = no ; then
30030 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30031 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30032 if test "${ol_cv_db_db_4+set}" = set; then
30033 echo $ECHO_N "(cached) $ECHO_C" >&6
30038 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30040 cat >conftest.$ac_ext <<_ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h. */
30047 #ifdef HAVE_DB_185_H
30048 # include <db_185.h>
30053 #ifndef DB_VERSION_MAJOR
30054 # define DB_VERSION_MAJOR 1
30058 #define NULL ((void*)0)
30065 #if DB_VERSION_MAJOR > 1
30068 int major, minor, patch;
30070 version = db_version( &major, &minor, &patch );
30072 if( major != DB_VERSION_MAJOR ||
30073 minor < DB_VERSION_MINOR )
30075 printf("Berkeley DB version mismatch\n"
30076 "\theader: %s\n\tlibrary: %s\n",
30077 DB_VERSION_STRING, version);
30083 #if DB_VERSION_MAJOR > 2
30084 db_env_create( NULL, 0 );
30085 #elif DB_VERSION_MAJOR > 1
30086 db_appexit( NULL );
30088 (void) dbopen( NULL, 0, 0, 0, NULL);
30095 rm -f conftest.$ac_objext conftest$ac_exeext
30096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30097 (eval $ac_link) 2>conftest.er1
30099 grep -v '^ *+' conftest.er1 >conftest.err
30101 cat conftest.err >&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); } &&
30104 { ac_try='test -z "$ac_c_werror_flag"
30105 || test ! -s conftest.err'
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; } &&
30111 { ac_try='test -s conftest$ac_exeext'
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
30119 echo "$as_me: failed program was:" >&5
30120 sed 's/^/| /' conftest.$ac_ext >&5
30124 rm -f conftest.err conftest.$ac_objext \
30125 conftest$ac_exeext conftest.$ac_ext
30130 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30131 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30133 if test $ol_cv_db_db_4 = yes ; then
30134 ol_cv_lib_db=-ldb-4
30138 if test $ol_cv_lib_db = no ; then
30139 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30140 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30141 if test "${ol_cv_db_db4+set}" = set; then
30142 echo $ECHO_N "(cached) $ECHO_C" >&6
30147 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30149 cat >conftest.$ac_ext <<_ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h. */
30156 #ifdef HAVE_DB_185_H
30157 # include <db_185.h>
30162 #ifndef DB_VERSION_MAJOR
30163 # define DB_VERSION_MAJOR 1
30167 #define NULL ((void*)0)
30174 #if DB_VERSION_MAJOR > 1
30177 int major, minor, patch;
30179 version = db_version( &major, &minor, &patch );
30181 if( major != DB_VERSION_MAJOR ||
30182 minor < DB_VERSION_MINOR )
30184 printf("Berkeley DB version mismatch\n"
30185 "\theader: %s\n\tlibrary: %s\n",
30186 DB_VERSION_STRING, version);
30192 #if DB_VERSION_MAJOR > 2
30193 db_env_create( NULL, 0 );
30194 #elif DB_VERSION_MAJOR > 1
30195 db_appexit( NULL );
30197 (void) dbopen( NULL, 0, 0, 0, NULL);
30204 rm -f conftest.$ac_objext conftest$ac_exeext
30205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30206 (eval $ac_link) 2>conftest.er1
30208 grep -v '^ *+' conftest.er1 >conftest.err
30210 cat conftest.err >&5
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } &&
30213 { ac_try='test -z "$ac_c_werror_flag"
30214 || test ! -s conftest.err'
30215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30216 (eval $ac_try) 2>&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); }; } &&
30220 { ac_try='test -s conftest$ac_exeext'
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
30228 echo "$as_me: failed program was:" >&5
30229 sed 's/^/| /' conftest.$ac_ext >&5
30233 rm -f conftest.err conftest.$ac_objext \
30234 conftest$ac_exeext conftest.$ac_ext
30239 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30240 echo "${ECHO_T}$ol_cv_db_db4" >&6
30242 if test $ol_cv_db_db4 = yes ; then
30247 if test $ol_cv_lib_db = no ; then
30248 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30249 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30250 if test "${ol_cv_db_db+set}" = set; then
30251 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h. */
30265 #ifdef HAVE_DB_185_H
30266 # include <db_185.h>
30271 #ifndef DB_VERSION_MAJOR
30272 # define DB_VERSION_MAJOR 1
30276 #define NULL ((void*)0)
30283 #if DB_VERSION_MAJOR > 1
30286 int major, minor, patch;
30288 version = db_version( &major, &minor, &patch );
30290 if( major != DB_VERSION_MAJOR ||
30291 minor < DB_VERSION_MINOR )
30293 printf("Berkeley DB version mismatch\n"
30294 "\theader: %s\n\tlibrary: %s\n",
30295 DB_VERSION_STRING, version);
30301 #if DB_VERSION_MAJOR > 2
30302 db_env_create( NULL, 0 );
30303 #elif DB_VERSION_MAJOR > 1
30304 db_appexit( NULL );
30306 (void) dbopen( NULL, 0, 0, 0, NULL);
30313 rm -f conftest.$ac_objext conftest$ac_exeext
30314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30315 (eval $ac_link) 2>conftest.er1
30317 grep -v '^ *+' conftest.er1 >conftest.err
30319 cat conftest.err >&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } &&
30322 { ac_try='test -z "$ac_c_werror_flag"
30323 || test ! -s conftest.err'
30324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30325 (eval $ac_try) 2>&5
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; } &&
30329 { ac_try='test -s conftest$ac_exeext'
30330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331 (eval $ac_try) 2>&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
30337 echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30342 rm -f conftest.err conftest.$ac_objext \
30343 conftest$ac_exeext conftest.$ac_ext
30348 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30349 echo "${ECHO_T}$ol_cv_db_db" >&6
30351 if test $ol_cv_db_db = yes ; then
30357 elif test $ol_cv_bdb_major = 3 ; then
30358 if test $ol_cv_lib_db = no ; then
30359 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30360 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30361 if test "${ol_cv_db_db3+set}" = set; then
30362 echo $ECHO_N "(cached) $ECHO_C" >&6
30367 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30369 cat >conftest.$ac_ext <<_ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h. */
30376 #ifdef HAVE_DB_185_H
30377 # include <db_185.h>
30382 #ifndef DB_VERSION_MAJOR
30383 # define DB_VERSION_MAJOR 1
30387 #define NULL ((void*)0)
30394 #if DB_VERSION_MAJOR > 1
30397 int major, minor, patch;
30399 version = db_version( &major, &minor, &patch );
30401 if( major != DB_VERSION_MAJOR ||
30402 minor < DB_VERSION_MINOR )
30404 printf("Berkeley DB version mismatch\n"
30405 "\theader: %s\n\tlibrary: %s\n",
30406 DB_VERSION_STRING, version);
30412 #if DB_VERSION_MAJOR > 2
30413 db_env_create( NULL, 0 );
30414 #elif DB_VERSION_MAJOR > 1
30415 db_appexit( NULL );
30417 (void) dbopen( NULL, 0, 0, 0, NULL);
30424 rm -f conftest.$ac_objext conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426 (eval $ac_link) 2>conftest.er1
30428 grep -v '^ *+' conftest.er1 >conftest.err
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
30433 { ac_try='test -z "$ac_c_werror_flag"
30434 || test ! -s conftest.err'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; } &&
30440 { ac_try='test -s conftest$ac_exeext'
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30448 echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30453 rm -f conftest.err conftest.$ac_objext \
30454 conftest$ac_exeext conftest.$ac_ext
30459 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30460 echo "${ECHO_T}$ol_cv_db_db3" >&6
30462 if test $ol_cv_db_db3 = yes ; then
30467 if test $ol_cv_lib_db = no ; then
30468 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30469 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30470 if test "${ol_cv_db_db_3+set}" = set; then
30471 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30478 cat >conftest.$ac_ext <<_ACEOF
30481 cat confdefs.h >>conftest.$ac_ext
30482 cat >>conftest.$ac_ext <<_ACEOF
30483 /* end confdefs.h. */
30485 #ifdef HAVE_DB_185_H
30486 # include <db_185.h>
30491 #ifndef DB_VERSION_MAJOR
30492 # define DB_VERSION_MAJOR 1
30496 #define NULL ((void*)0)
30503 #if DB_VERSION_MAJOR > 1
30506 int major, minor, patch;
30508 version = db_version( &major, &minor, &patch );
30510 if( major != DB_VERSION_MAJOR ||
30511 minor < DB_VERSION_MINOR )
30513 printf("Berkeley DB version mismatch\n"
30514 "\theader: %s\n\tlibrary: %s\n",
30515 DB_VERSION_STRING, version);
30521 #if DB_VERSION_MAJOR > 2
30522 db_env_create( NULL, 0 );
30523 #elif DB_VERSION_MAJOR > 1
30524 db_appexit( NULL );
30526 (void) dbopen( NULL, 0, 0, 0, NULL);
30533 rm -f conftest.$ac_objext conftest$ac_exeext
30534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30535 (eval $ac_link) 2>conftest.er1
30537 grep -v '^ *+' conftest.er1 >conftest.err
30539 cat conftest.err >&5
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); } &&
30542 { ac_try='test -z "$ac_c_werror_flag"
30543 || test ! -s conftest.err'
30544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30545 (eval $ac_try) 2>&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; } &&
30549 { ac_try='test -s conftest$ac_exeext'
30550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30551 (eval $ac_try) 2>&5
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); }; }; then
30557 echo "$as_me: failed program was:" >&5
30558 sed 's/^/| /' conftest.$ac_ext >&5
30562 rm -f conftest.err conftest.$ac_objext \
30563 conftest$ac_exeext conftest.$ac_ext
30568 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30569 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30571 if test $ol_cv_db_db_3 = yes ; then
30572 ol_cv_lib_db=-ldb-3
30577 elif test $ol_cv_bdb_major = 2 ; then
30578 if test $ol_cv_lib_db = no ; then
30579 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30580 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30581 if test "${ol_cv_db_db2+set}" = set; then
30582 echo $ECHO_N "(cached) $ECHO_C" >&6
30587 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30589 cat >conftest.$ac_ext <<_ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h. */
30596 #ifdef HAVE_DB_185_H
30597 # include <db_185.h>
30602 #ifndef DB_VERSION_MAJOR
30603 # define DB_VERSION_MAJOR 1
30607 #define NULL ((void*)0)
30614 #if DB_VERSION_MAJOR > 1
30617 int major, minor, patch;
30619 version = db_version( &major, &minor, &patch );
30621 if( major != DB_VERSION_MAJOR ||
30622 minor < DB_VERSION_MINOR )
30624 printf("Berkeley DB version mismatch\n"
30625 "\theader: %s\n\tlibrary: %s\n",
30626 DB_VERSION_STRING, version);
30632 #if DB_VERSION_MAJOR > 2
30633 db_env_create( NULL, 0 );
30634 #elif DB_VERSION_MAJOR > 1
30635 db_appexit( NULL );
30637 (void) dbopen( NULL, 0, 0, 0, NULL);
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
30653 { ac_try='test -z "$ac_c_werror_flag"
30654 || test ! -s conftest.err'
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
30661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30673 rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
30679 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30680 echo "${ECHO_T}$ol_cv_db_db2" >&6
30682 if test $ol_cv_db_db2 = yes ; then
30687 if test $ol_cv_lib_db = no ; then
30688 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30689 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30690 if test "${ol_cv_db_db_2+set}" = set; then
30691 echo $ECHO_N "(cached) $ECHO_C" >&6
30696 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30698 cat >conftest.$ac_ext <<_ACEOF
30701 cat confdefs.h >>conftest.$ac_ext
30702 cat >>conftest.$ac_ext <<_ACEOF
30703 /* end confdefs.h. */
30705 #ifdef HAVE_DB_185_H
30706 # include <db_185.h>
30711 #ifndef DB_VERSION_MAJOR
30712 # define DB_VERSION_MAJOR 1
30716 #define NULL ((void*)0)
30723 #if DB_VERSION_MAJOR > 1
30726 int major, minor, patch;
30728 version = db_version( &major, &minor, &patch );
30730 if( major != DB_VERSION_MAJOR ||
30731 minor < DB_VERSION_MINOR )
30733 printf("Berkeley DB version mismatch\n"
30734 "\theader: %s\n\tlibrary: %s\n",
30735 DB_VERSION_STRING, version);
30741 #if DB_VERSION_MAJOR > 2
30742 db_env_create( NULL, 0 );
30743 #elif DB_VERSION_MAJOR > 1
30744 db_appexit( NULL );
30746 (void) dbopen( NULL, 0, 0, 0, NULL);
30753 rm -f conftest.$ac_objext conftest$ac_exeext
30754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30755 (eval $ac_link) 2>conftest.er1
30757 grep -v '^ *+' conftest.er1 >conftest.err
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } &&
30762 { ac_try='test -z "$ac_c_werror_flag"
30763 || test ! -s conftest.err'
30764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30765 (eval $ac_try) 2>&5
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); }; } &&
30769 { ac_try='test -s conftest$ac_exeext'
30770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771 (eval $ac_try) 2>&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; }; then
30777 echo "$as_me: failed program was:" >&5
30778 sed 's/^/| /' conftest.$ac_ext >&5
30782 rm -f conftest.err conftest.$ac_objext \
30783 conftest$ac_exeext conftest.$ac_ext
30788 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30789 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30791 if test $ol_cv_db_db_2 = yes ; then
30792 ol_cv_lib_db=-ldb-2
30797 elif test $ol_cv_bdb_major = 1 ; then
30798 if test $ol_cv_lib_db = no ; then
30799 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30800 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30801 if test "${ol_cv_db_db1+set}" = set; then
30802 echo $ECHO_N "(cached) $ECHO_C" >&6
30807 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30809 cat >conftest.$ac_ext <<_ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h. */
30816 #ifdef HAVE_DB_185_H
30817 # include <db_185.h>
30822 #ifndef DB_VERSION_MAJOR
30823 # define DB_VERSION_MAJOR 1
30827 #define NULL ((void*)0)
30834 #if DB_VERSION_MAJOR > 1
30837 int major, minor, patch;
30839 version = db_version( &major, &minor, &patch );
30841 if( major != DB_VERSION_MAJOR ||
30842 minor < DB_VERSION_MINOR )
30844 printf("Berkeley DB version mismatch\n"
30845 "\theader: %s\n\tlibrary: %s\n",
30846 DB_VERSION_STRING, version);
30852 #if DB_VERSION_MAJOR > 2
30853 db_env_create( NULL, 0 );
30854 #elif DB_VERSION_MAJOR > 1
30855 db_appexit( NULL );
30857 (void) dbopen( NULL, 0, 0, 0, NULL);
30864 rm -f conftest.$ac_objext conftest$ac_exeext
30865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30866 (eval $ac_link) 2>conftest.er1
30868 grep -v '^ *+' conftest.er1 >conftest.err
30870 cat conftest.err >&5
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); } &&
30873 { ac_try='test -z "$ac_c_werror_flag"
30874 || test ! -s conftest.err'
30875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876 (eval $ac_try) 2>&5
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); }; } &&
30880 { ac_try='test -s conftest$ac_exeext'
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; }; then
30888 echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30893 rm -f conftest.err conftest.$ac_objext \
30894 conftest$ac_exeext conftest.$ac_ext
30899 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30900 echo "${ECHO_T}$ol_cv_db_db1" >&6
30902 if test $ol_cv_db_db1 = yes ; then
30907 if test $ol_cv_lib_db = no ; then
30908 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30909 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30910 if test "${ol_cv_db_db_1+set}" = set; then
30911 echo $ECHO_N "(cached) $ECHO_C" >&6
30916 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30918 cat >conftest.$ac_ext <<_ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h. */
30925 #ifdef HAVE_DB_185_H
30926 # include <db_185.h>
30931 #ifndef DB_VERSION_MAJOR
30932 # define DB_VERSION_MAJOR 1
30936 #define NULL ((void*)0)
30943 #if DB_VERSION_MAJOR > 1
30946 int major, minor, patch;
30948 version = db_version( &major, &minor, &patch );
30950 if( major != DB_VERSION_MAJOR ||
30951 minor < DB_VERSION_MINOR )
30953 printf("Berkeley DB version mismatch\n"
30954 "\theader: %s\n\tlibrary: %s\n",
30955 DB_VERSION_STRING, version);
30961 #if DB_VERSION_MAJOR > 2
30962 db_env_create( NULL, 0 );
30963 #elif DB_VERSION_MAJOR > 1
30964 db_appexit( NULL );
30966 (void) dbopen( NULL, 0, 0, 0, NULL);
30973 rm -f conftest.$ac_objext conftest$ac_exeext
30974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30975 (eval $ac_link) 2>conftest.er1
30977 grep -v '^ *+' conftest.er1 >conftest.err
30979 cat conftest.err >&5
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } &&
30982 { ac_try='test -z "$ac_c_werror_flag"
30983 || test ! -s conftest.err'
30984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985 (eval $ac_try) 2>&5
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); }; } &&
30989 { ac_try='test -s conftest$ac_exeext'
30990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991 (eval $ac_try) 2>&5
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; }; then
30997 echo "$as_me: failed program was:" >&5
30998 sed 's/^/| /' conftest.$ac_ext >&5
31002 rm -f conftest.err conftest.$ac_objext \
31003 conftest$ac_exeext conftest.$ac_ext
31008 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31009 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31011 if test $ol_cv_db_db_1 = yes ; then
31012 ol_cv_lib_db=-ldb-1
31017 if test $ol_cv_lib_db = no ; then
31018 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31019 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31020 if test "${ol_cv_db_none+set}" = set; then
31021 echo $ECHO_N "(cached) $ECHO_C" >&6
31026 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31028 cat >conftest.$ac_ext <<_ACEOF
31031 cat confdefs.h >>conftest.$ac_ext
31032 cat >>conftest.$ac_ext <<_ACEOF
31033 /* end confdefs.h. */
31035 #ifdef HAVE_DB_185_H
31036 # include <db_185.h>
31041 #ifndef DB_VERSION_MAJOR
31042 # define DB_VERSION_MAJOR 1
31046 #define NULL ((void*)0)
31053 #if DB_VERSION_MAJOR > 1
31056 int major, minor, patch;
31058 version = db_version( &major, &minor, &patch );
31060 if( major != DB_VERSION_MAJOR ||
31061 minor < DB_VERSION_MINOR )
31063 printf("Berkeley DB version mismatch\n"
31064 "\theader: %s\n\tlibrary: %s\n",
31065 DB_VERSION_STRING, version);
31071 #if DB_VERSION_MAJOR > 2
31072 db_env_create( NULL, 0 );
31073 #elif DB_VERSION_MAJOR > 1
31074 db_appexit( NULL );
31076 (void) dbopen( NULL, 0, 0, 0, NULL);
31083 rm -f conftest.$ac_objext conftest$ac_exeext
31084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31085 (eval $ac_link) 2>conftest.er1
31087 grep -v '^ *+' conftest.er1 >conftest.err
31089 cat conftest.err >&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } &&
31092 { ac_try='test -z "$ac_c_werror_flag"
31093 || test ! -s conftest.err'
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; } &&
31099 { ac_try='test -s conftest$ac_exeext'
31100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31101 (eval $ac_try) 2>&5
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; }; then
31107 echo "$as_me: failed program was:" >&5
31108 sed 's/^/| /' conftest.$ac_ext >&5
31112 rm -f conftest.err conftest.$ac_objext \
31113 conftest$ac_exeext conftest.$ac_ext
31118 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31119 echo "${ECHO_T}$ol_cv_db_none" >&6
31121 if test $ol_cv_db_none = yes ; then
31127 if test "$ol_cv_lib_db" != no ; then
31128 ol_cv_berkeley_db=yes
31134 ol_cv_berkeley_db=no
31136 for ac_header in db.h
31138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31140 echo "$as_me:$LINENO: checking for $ac_header" >&5
31141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31143 echo $ECHO_N "(cached) $ECHO_C" >&6
31145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31148 # Is the header compilable?
31149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31151 cat >conftest.$ac_ext <<_ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h. */
31157 $ac_includes_default
31158 #include <$ac_header>
31160 rm -f conftest.$ac_objext
31161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31162 (eval $ac_compile) 2>conftest.er1
31164 grep -v '^ *+' conftest.er1 >conftest.err
31166 cat conftest.err >&5
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); } &&
31169 { ac_try='test -z "$ac_c_werror_flag"
31170 || test ! -s conftest.err'
31171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31172 (eval $ac_try) 2>&5
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); }; } &&
31176 { ac_try='test -s conftest.$ac_objext'
31177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31178 (eval $ac_try) 2>&5
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; }; then
31182 ac_header_compiler=yes
31184 echo "$as_me: failed program was:" >&5
31185 sed 's/^/| /' conftest.$ac_ext >&5
31187 ac_header_compiler=no
31189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31191 echo "${ECHO_T}$ac_header_compiler" >&6
31193 # Is the header present?
31194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31196 cat >conftest.$ac_ext <<_ACEOF
31199 cat confdefs.h >>conftest.$ac_ext
31200 cat >>conftest.$ac_ext <<_ACEOF
31201 /* end confdefs.h. */
31202 #include <$ac_header>
31204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31207 grep -v '^ *+' conftest.er1 >conftest.err
31209 cat conftest.err >&5
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); } >/dev/null; then
31212 if test -s conftest.err; then
31213 ac_cpp_err=$ac_c_preproc_warn_flag
31214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31221 if test -z "$ac_cpp_err"; then
31222 ac_header_preproc=yes
31224 echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31227 ac_header_preproc=no
31229 rm -f conftest.err conftest.$ac_ext
31230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31231 echo "${ECHO_T}$ac_header_preproc" >&6
31233 # So? What about this header?
31234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31240 ac_header_preproc=yes
31243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31257 ## ------------------------------------------ ##
31258 ## Report this to the AC_PACKAGE_NAME lists. ##
31259 ## ------------------------------------------ ##
31262 sed "s/^/$as_me: WARNING: /" >&2
31265 echo "$as_me:$LINENO: checking for $ac_header" >&5
31266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31270 eval "$as_ac_Header=\$ac_header_preproc"
31272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31277 cat >>confdefs.h <<_ACEOF
31278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31285 if test $ac_cv_header_db_h = yes; then
31288 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31289 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31290 if test "${ol_cv_bdb_major+set}" = set; then
31291 echo $ECHO_N "(cached) $ECHO_C" >&6
31295 if test $ol_cv_bdb_major = 0 ; then
31296 cat >conftest.$ac_ext <<_ACEOF
31299 cat confdefs.h >>conftest.$ac_ext
31300 cat >>conftest.$ac_ext <<_ACEOF
31301 /* end confdefs.h. */
31304 #ifndef DB_VERSION_MAJOR
31305 # define DB_VERSION_MAJOR 1
31307 #if DB_VERSION_MAJOR == 4
31312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31313 $EGREP "__db_version" >/dev/null 2>&1; then
31321 if test $ol_cv_bdb_major = 0 ; then
31322 cat >conftest.$ac_ext <<_ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31330 #ifndef DB_VERSION_MAJOR
31331 # define DB_VERSION_MAJOR 1
31333 #if DB_VERSION_MAJOR == 3
31338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31339 $EGREP "__db_version" >/dev/null 2>&1; then
31347 if test $ol_cv_bdb_major = 0 ; then
31348 cat >conftest.$ac_ext <<_ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h. */
31356 #ifndef DB_VERSION_MAJOR
31357 # define DB_VERSION_MAJOR 1
31359 #if DB_VERSION_MAJOR == 2
31364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31365 $EGREP "__db_version" >/dev/null 2>&1; then
31373 if test $ol_cv_bdb_major = 0 ; then
31374 cat >conftest.$ac_ext <<_ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h. */
31382 #ifndef DB_VERSION_MAJOR
31383 # define DB_VERSION_MAJOR 1
31385 #if DB_VERSION_MAJOR == 1
31390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31391 $EGREP "__db_version" >/dev/null 2>&1; then
31400 if test $ol_cv_bdb_major = 0 ; then
31401 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31402 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31403 { (exit 1); exit 1; }; }
31407 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31408 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31410 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31411 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31412 if test "${ol_cv_bdb_minor+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31417 if test $ol_cv_bdb_minor = 0 ; then
31418 cat >conftest.$ac_ext <<_ACEOF
31421 cat confdefs.h >>conftest.$ac_ext
31422 cat >>conftest.$ac_ext <<_ACEOF
31423 /* end confdefs.h. */
31426 #ifndef DB_VERSION_MINOR
31427 # define DB_VERSION_MINOR 0
31429 #if DB_VERSION_MINOR == 9
31434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31435 $EGREP "__db_version" >/dev/null 2>&1; then
31443 if test $ol_cv_bdb_minor = 0 ; then
31444 cat >conftest.$ac_ext <<_ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h. */
31452 #ifndef DB_VERSION_MINOR
31453 # define DB_VERSION_MINOR 0
31455 #if DB_VERSION_MINOR == 8
31460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31461 $EGREP "__db_version" >/dev/null 2>&1; then
31469 if test $ol_cv_bdb_minor = 0 ; then
31470 cat >conftest.$ac_ext <<_ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h. */
31478 #ifndef DB_VERSION_MINOR
31479 # define DB_VERSION_MINOR 0
31481 #if DB_VERSION_MINOR == 7
31486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31487 $EGREP "__db_version" >/dev/null 2>&1; then
31495 if test $ol_cv_bdb_minor = 0 ; then
31496 cat >conftest.$ac_ext <<_ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h. */
31504 #ifndef DB_VERSION_MINOR
31505 # define DB_VERSION_MINOR 0
31507 #if DB_VERSION_MINOR == 6
31512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31513 $EGREP "__db_version" >/dev/null 2>&1; then
31521 if test $ol_cv_bdb_minor = 0 ; then
31522 cat >conftest.$ac_ext <<_ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h. */
31530 #ifndef DB_VERSION_MINOR
31531 # define DB_VERSION_MINOR 0
31533 #if DB_VERSION_MINOR == 5
31538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31539 $EGREP "__db_version" >/dev/null 2>&1; then
31547 if test $ol_cv_bdb_minor = 0 ; then
31548 cat >conftest.$ac_ext <<_ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h. */
31556 #ifndef DB_VERSION_MINOR
31557 # define DB_VERSION_MINOR 0
31559 #if DB_VERSION_MINOR == 4
31564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31565 $EGREP "__db_version" >/dev/null 2>&1; then
31573 if test $ol_cv_bdb_minor = 0 ; then
31574 cat >conftest.$ac_ext <<_ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31582 #ifndef DB_VERSION_MINOR
31583 # define DB_VERSION_MINOR 0
31585 #if DB_VERSION_MINOR == 3
31590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31591 $EGREP "__db_version" >/dev/null 2>&1; then
31599 if test $ol_cv_bdb_minor = 0 ; then
31600 cat >conftest.$ac_ext <<_ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h. */
31608 #ifndef DB_VERSION_MINOR
31609 # define DB_VERSION_MINOR 0
31611 #if DB_VERSION_MINOR == 2
31616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31617 $EGREP "__db_version" >/dev/null 2>&1; then
31625 if test $ol_cv_bdb_minor = 0 ; then
31626 cat >conftest.$ac_ext <<_ACEOF
31629 cat confdefs.h >>conftest.$ac_ext
31630 cat >>conftest.$ac_ext <<_ACEOF
31631 /* end confdefs.h. */
31634 #ifndef DB_VERSION_MINOR
31635 # define DB_VERSION_MINOR 0
31637 #if DB_VERSION_MINOR == 1
31642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31643 $EGREP "__db_version" >/dev/null 2>&1; then
31653 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31654 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31656 if test $ol_cv_bdb_major = 4 ; then
31657 if test $ol_cv_bdb_minor = 4 ; then
31658 if test $ol_cv_lib_db = no ; then
31659 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31660 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31661 if test "${ol_cv_db_db44+set}" = set; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31667 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31669 cat >conftest.$ac_ext <<_ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h. */
31676 #ifdef HAVE_DB_185_H
31677 # include <db_185.h>
31682 #ifndef DB_VERSION_MAJOR
31683 # define DB_VERSION_MAJOR 1
31687 #define NULL ((void*)0)
31694 #if DB_VERSION_MAJOR > 1
31697 int major, minor, patch;
31699 version = db_version( &major, &minor, &patch );
31701 if( major != DB_VERSION_MAJOR ||
31702 minor < DB_VERSION_MINOR )
31704 printf("Berkeley DB version mismatch\n"
31705 "\theader: %s\n\tlibrary: %s\n",
31706 DB_VERSION_STRING, version);
31712 #if DB_VERSION_MAJOR > 2
31713 db_env_create( NULL, 0 );
31714 #elif DB_VERSION_MAJOR > 1
31715 db_appexit( NULL );
31717 (void) dbopen( NULL, 0, 0, 0, NULL);
31724 rm -f conftest.$ac_objext conftest$ac_exeext
31725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31726 (eval $ac_link) 2>conftest.er1
31728 grep -v '^ *+' conftest.er1 >conftest.err
31730 cat conftest.err >&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); } &&
31733 { ac_try='test -z "$ac_c_werror_flag"
31734 || test ! -s conftest.err'
31735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736 (eval $ac_try) 2>&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; } &&
31740 { ac_try='test -s conftest$ac_exeext'
31741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742 (eval $ac_try) 2>&5
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); }; }; then
31748 echo "$as_me: failed program was:" >&5
31749 sed 's/^/| /' conftest.$ac_ext >&5
31753 rm -f conftest.err conftest.$ac_objext \
31754 conftest$ac_exeext conftest.$ac_ext
31759 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31760 echo "${ECHO_T}$ol_cv_db_db44" >&6
31762 if test $ol_cv_db_db44 = yes ; then
31763 ol_cv_lib_db=-ldb44
31767 if test $ol_cv_lib_db = no ; then
31768 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31769 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31770 if test "${ol_cv_db_db_44+set}" = set; then
31771 echo $ECHO_N "(cached) $ECHO_C" >&6
31776 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31778 cat >conftest.$ac_ext <<_ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h. */
31785 #ifdef HAVE_DB_185_H
31786 # include <db_185.h>
31791 #ifndef DB_VERSION_MAJOR
31792 # define DB_VERSION_MAJOR 1
31796 #define NULL ((void*)0)
31803 #if DB_VERSION_MAJOR > 1
31806 int major, minor, patch;
31808 version = db_version( &major, &minor, &patch );
31810 if( major != DB_VERSION_MAJOR ||
31811 minor < DB_VERSION_MINOR )
31813 printf("Berkeley DB version mismatch\n"
31814 "\theader: %s\n\tlibrary: %s\n",
31815 DB_VERSION_STRING, version);
31821 #if DB_VERSION_MAJOR > 2
31822 db_env_create( NULL, 0 );
31823 #elif DB_VERSION_MAJOR > 1
31824 db_appexit( NULL );
31826 (void) dbopen( NULL, 0, 0, 0, NULL);
31833 rm -f conftest.$ac_objext conftest$ac_exeext
31834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31835 (eval $ac_link) 2>conftest.er1
31837 grep -v '^ *+' conftest.er1 >conftest.err
31839 cat conftest.err >&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } &&
31842 { ac_try='test -z "$ac_c_werror_flag"
31843 || test ! -s conftest.err'
31844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31845 (eval $ac_try) 2>&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); }; } &&
31849 { ac_try='test -s conftest$ac_exeext'
31850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31851 (eval $ac_try) 2>&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); }; }; then
31857 echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31862 rm -f conftest.err conftest.$ac_objext \
31863 conftest$ac_exeext conftest.$ac_ext
31868 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31869 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31871 if test $ol_cv_db_db_44 = yes ; then
31872 ol_cv_lib_db=-ldb-44
31876 if test $ol_cv_lib_db = no ; then
31877 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31878 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31879 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31880 echo $ECHO_N "(cached) $ECHO_C" >&6
31885 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31887 cat >conftest.$ac_ext <<_ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31894 #ifdef HAVE_DB_185_H
31895 # include <db_185.h>
31900 #ifndef DB_VERSION_MAJOR
31901 # define DB_VERSION_MAJOR 1
31905 #define NULL ((void*)0)
31912 #if DB_VERSION_MAJOR > 1
31915 int major, minor, patch;
31917 version = db_version( &major, &minor, &patch );
31919 if( major != DB_VERSION_MAJOR ||
31920 minor < DB_VERSION_MINOR )
31922 printf("Berkeley DB version mismatch\n"
31923 "\theader: %s\n\tlibrary: %s\n",
31924 DB_VERSION_STRING, version);
31930 #if DB_VERSION_MAJOR > 2
31931 db_env_create( NULL, 0 );
31932 #elif DB_VERSION_MAJOR > 1
31933 db_appexit( NULL );
31935 (void) dbopen( NULL, 0, 0, 0, NULL);
31942 rm -f conftest.$ac_objext conftest$ac_exeext
31943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31944 (eval $ac_link) 2>conftest.er1
31946 grep -v '^ *+' conftest.er1 >conftest.err
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -z "$ac_c_werror_flag"
31952 || test ! -s conftest.err'
31953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31954 (eval $ac_try) 2>&5
31956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957 (exit $ac_status); }; } &&
31958 { ac_try='test -s conftest$ac_exeext'
31959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31960 (eval $ac_try) 2>&5
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); }; }; then
31964 ol_cv_db_db_4_dot_4=yes
31966 echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31969 ol_cv_db_db_4_dot_4=no
31971 rm -f conftest.err conftest.$ac_objext \
31972 conftest$ac_exeext conftest.$ac_ext
31977 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31978 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31980 if test $ol_cv_db_db_4_dot_4 = yes ; then
31981 ol_cv_lib_db=-ldb-4.4
31985 if test $ol_cv_lib_db = no ; then
31986 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31987 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31988 if test "${ol_cv_db_db_4_4+set}" = set; then
31989 echo $ECHO_N "(cached) $ECHO_C" >&6
31994 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31996 cat >conftest.$ac_ext <<_ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h. */
32003 #ifdef HAVE_DB_185_H
32004 # include <db_185.h>
32009 #ifndef DB_VERSION_MAJOR
32010 # define DB_VERSION_MAJOR 1
32014 #define NULL ((void*)0)
32021 #if DB_VERSION_MAJOR > 1
32024 int major, minor, patch;
32026 version = db_version( &major, &minor, &patch );
32028 if( major != DB_VERSION_MAJOR ||
32029 minor < DB_VERSION_MINOR )
32031 printf("Berkeley DB version mismatch\n"
32032 "\theader: %s\n\tlibrary: %s\n",
32033 DB_VERSION_STRING, version);
32039 #if DB_VERSION_MAJOR > 2
32040 db_env_create( NULL, 0 );
32041 #elif DB_VERSION_MAJOR > 1
32042 db_appexit( NULL );
32044 (void) dbopen( NULL, 0, 0, 0, NULL);
32051 rm -f conftest.$ac_objext conftest$ac_exeext
32052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32053 (eval $ac_link) 2>conftest.er1
32055 grep -v '^ *+' conftest.er1 >conftest.err
32057 cat conftest.err >&5
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); } &&
32060 { ac_try='test -z "$ac_c_werror_flag"
32061 || test ! -s conftest.err'
32062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063 (eval $ac_try) 2>&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest$ac_exeext'
32068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069 (eval $ac_try) 2>&5
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); }; }; then
32073 ol_cv_db_db_4_4=yes
32075 echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32080 rm -f conftest.err conftest.$ac_objext \
32081 conftest$ac_exeext conftest.$ac_ext
32086 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32087 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32089 if test $ol_cv_db_db_4_4 = yes ; then
32090 ol_cv_lib_db=-ldb-4-4
32094 elif test $ol_cv_bdb_minor = 3 ; then
32095 if test $ol_cv_lib_db = no ; then
32096 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32097 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32098 if test "${ol_cv_db_db43+set}" = set; then
32099 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32106 cat >conftest.$ac_ext <<_ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h. */
32113 #ifdef HAVE_DB_185_H
32114 # include <db_185.h>
32119 #ifndef DB_VERSION_MAJOR
32120 # define DB_VERSION_MAJOR 1
32124 #define NULL ((void*)0)
32131 #if DB_VERSION_MAJOR > 1
32134 int major, minor, patch;
32136 version = db_version( &major, &minor, &patch );
32138 if( major != DB_VERSION_MAJOR ||
32139 minor < DB_VERSION_MINOR )
32141 printf("Berkeley DB version mismatch\n"
32142 "\theader: %s\n\tlibrary: %s\n",
32143 DB_VERSION_STRING, version);
32149 #if DB_VERSION_MAJOR > 2
32150 db_env_create( NULL, 0 );
32151 #elif DB_VERSION_MAJOR > 1
32152 db_appexit( NULL );
32154 (void) dbopen( NULL, 0, 0, 0, NULL);
32161 rm -f conftest.$ac_objext conftest$ac_exeext
32162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32163 (eval $ac_link) 2>conftest.er1
32165 grep -v '^ *+' conftest.er1 >conftest.err
32167 cat conftest.err >&5
32168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169 (exit $ac_status); } &&
32170 { ac_try='test -z "$ac_c_werror_flag"
32171 || test ! -s conftest.err'
32172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173 (eval $ac_try) 2>&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; } &&
32177 { ac_try='test -s conftest$ac_exeext'
32178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179 (eval $ac_try) 2>&5
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; }; then
32185 echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32190 rm -f conftest.err conftest.$ac_objext \
32191 conftest$ac_exeext conftest.$ac_ext
32196 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32197 echo "${ECHO_T}$ol_cv_db_db43" >&6
32199 if test $ol_cv_db_db43 = yes ; then
32200 ol_cv_lib_db=-ldb43
32204 if test $ol_cv_lib_db = no ; then
32205 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32206 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32207 if test "${ol_cv_db_db_43+set}" = set; then
32208 echo $ECHO_N "(cached) $ECHO_C" >&6
32213 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32215 cat >conftest.$ac_ext <<_ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h. */
32222 #ifdef HAVE_DB_185_H
32223 # include <db_185.h>
32228 #ifndef DB_VERSION_MAJOR
32229 # define DB_VERSION_MAJOR 1
32233 #define NULL ((void*)0)
32240 #if DB_VERSION_MAJOR > 1
32243 int major, minor, patch;
32245 version = db_version( &major, &minor, &patch );
32247 if( major != DB_VERSION_MAJOR ||
32248 minor < DB_VERSION_MINOR )
32250 printf("Berkeley DB version mismatch\n"
32251 "\theader: %s\n\tlibrary: %s\n",
32252 DB_VERSION_STRING, version);
32258 #if DB_VERSION_MAJOR > 2
32259 db_env_create( NULL, 0 );
32260 #elif DB_VERSION_MAJOR > 1
32261 db_appexit( NULL );
32263 (void) dbopen( NULL, 0, 0, 0, NULL);
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272 (eval $ac_link) 2>conftest.er1
32274 grep -v '^ *+' conftest.er1 >conftest.err
32276 cat conftest.err >&5
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } &&
32279 { ac_try='test -z "$ac_c_werror_flag"
32280 || test ! -s conftest.err'
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; } &&
32286 { ac_try='test -s conftest$ac_exeext'
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; }; then
32294 echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32299 rm -f conftest.err conftest.$ac_objext \
32300 conftest$ac_exeext conftest.$ac_ext
32305 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32306 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32308 if test $ol_cv_db_db_43 = yes ; then
32309 ol_cv_lib_db=-ldb-43
32313 if test $ol_cv_lib_db = no ; then
32314 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32315 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32316 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32317 echo $ECHO_N "(cached) $ECHO_C" >&6
32322 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32324 cat >conftest.$ac_ext <<_ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h. */
32331 #ifdef HAVE_DB_185_H
32332 # include <db_185.h>
32337 #ifndef DB_VERSION_MAJOR
32338 # define DB_VERSION_MAJOR 1
32342 #define NULL ((void*)0)
32349 #if DB_VERSION_MAJOR > 1
32352 int major, minor, patch;
32354 version = db_version( &major, &minor, &patch );
32356 if( major != DB_VERSION_MAJOR ||
32357 minor < DB_VERSION_MINOR )
32359 printf("Berkeley DB version mismatch\n"
32360 "\theader: %s\n\tlibrary: %s\n",
32361 DB_VERSION_STRING, version);
32367 #if DB_VERSION_MAJOR > 2
32368 db_env_create( NULL, 0 );
32369 #elif DB_VERSION_MAJOR > 1
32370 db_appexit( NULL );
32372 (void) dbopen( NULL, 0, 0, 0, NULL);
32379 rm -f conftest.$ac_objext conftest$ac_exeext
32380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32381 (eval $ac_link) 2>conftest.er1
32383 grep -v '^ *+' conftest.er1 >conftest.err
32385 cat conftest.err >&5
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); } &&
32388 { ac_try='test -z "$ac_c_werror_flag"
32389 || test ! -s conftest.err'
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; } &&
32395 { ac_try='test -s conftest$ac_exeext'
32396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32397 (eval $ac_try) 2>&5
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); }; }; then
32401 ol_cv_db_db_4_dot_3=yes
32403 echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32406 ol_cv_db_db_4_dot_3=no
32408 rm -f conftest.err conftest.$ac_objext \
32409 conftest$ac_exeext conftest.$ac_ext
32414 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32415 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32417 if test $ol_cv_db_db_4_dot_3 = yes ; then
32418 ol_cv_lib_db=-ldb-4.3
32422 if test $ol_cv_lib_db = no ; then
32423 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32424 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32425 if test "${ol_cv_db_db_4_3+set}" = set; then
32426 echo $ECHO_N "(cached) $ECHO_C" >&6
32431 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32433 cat >conftest.$ac_ext <<_ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32440 #ifdef HAVE_DB_185_H
32441 # include <db_185.h>
32446 #ifndef DB_VERSION_MAJOR
32447 # define DB_VERSION_MAJOR 1
32451 #define NULL ((void*)0)
32458 #if DB_VERSION_MAJOR > 1
32461 int major, minor, patch;
32463 version = db_version( &major, &minor, &patch );
32465 if( major != DB_VERSION_MAJOR ||
32466 minor < DB_VERSION_MINOR )
32468 printf("Berkeley DB version mismatch\n"
32469 "\theader: %s\n\tlibrary: %s\n",
32470 DB_VERSION_STRING, version);
32476 #if DB_VERSION_MAJOR > 2
32477 db_env_create( NULL, 0 );
32478 #elif DB_VERSION_MAJOR > 1
32479 db_appexit( NULL );
32481 (void) dbopen( NULL, 0, 0, 0, NULL);
32488 rm -f conftest.$ac_objext conftest$ac_exeext
32489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32490 (eval $ac_link) 2>conftest.er1
32492 grep -v '^ *+' conftest.er1 >conftest.err
32494 cat conftest.err >&5
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } &&
32497 { ac_try='test -z "$ac_c_werror_flag"
32498 || test ! -s conftest.err'
32499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500 (eval $ac_try) 2>&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); }; } &&
32504 { ac_try='test -s conftest$ac_exeext'
32505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506 (eval $ac_try) 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
32510 ol_cv_db_db_4_3=yes
32512 echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32517 rm -f conftest.err conftest.$ac_objext \
32518 conftest$ac_exeext conftest.$ac_ext
32523 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32524 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32526 if test $ol_cv_db_db_4_3 = yes ; then
32527 ol_cv_lib_db=-ldb-4-3
32531 elif test $ol_cv_bdb_minor = 2 ; then
32532 if test $ol_cv_lib_db = no ; then
32533 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32534 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32535 if test "${ol_cv_db_db42+set}" = set; then
32536 echo $ECHO_N "(cached) $ECHO_C" >&6
32541 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32543 cat >conftest.$ac_ext <<_ACEOF
32546 cat confdefs.h >>conftest.$ac_ext
32547 cat >>conftest.$ac_ext <<_ACEOF
32548 /* end confdefs.h. */
32550 #ifdef HAVE_DB_185_H
32551 # include <db_185.h>
32556 #ifndef DB_VERSION_MAJOR
32557 # define DB_VERSION_MAJOR 1
32561 #define NULL ((void*)0)
32568 #if DB_VERSION_MAJOR > 1
32571 int major, minor, patch;
32573 version = db_version( &major, &minor, &patch );
32575 if( major != DB_VERSION_MAJOR ||
32576 minor < DB_VERSION_MINOR )
32578 printf("Berkeley DB version mismatch\n"
32579 "\theader: %s\n\tlibrary: %s\n",
32580 DB_VERSION_STRING, version);
32586 #if DB_VERSION_MAJOR > 2
32587 db_env_create( NULL, 0 );
32588 #elif DB_VERSION_MAJOR > 1
32589 db_appexit( NULL );
32591 (void) dbopen( NULL, 0, 0, 0, NULL);
32598 rm -f conftest.$ac_objext conftest$ac_exeext
32599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32600 (eval $ac_link) 2>conftest.er1
32602 grep -v '^ *+' conftest.er1 >conftest.err
32604 cat conftest.err >&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } &&
32607 { ac_try='test -z "$ac_c_werror_flag"
32608 || test ! -s conftest.err'
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest$ac_exeext'
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32627 rm -f conftest.err conftest.$ac_objext \
32628 conftest$ac_exeext conftest.$ac_ext
32633 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32634 echo "${ECHO_T}$ol_cv_db_db42" >&6
32636 if test $ol_cv_db_db42 = yes ; then
32637 ol_cv_lib_db=-ldb42
32641 if test $ol_cv_lib_db = no ; then
32642 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32643 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32644 if test "${ol_cv_db_db_42+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32650 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32652 cat >conftest.$ac_ext <<_ACEOF
32655 cat confdefs.h >>conftest.$ac_ext
32656 cat >>conftest.$ac_ext <<_ACEOF
32657 /* end confdefs.h. */
32659 #ifdef HAVE_DB_185_H
32660 # include <db_185.h>
32665 #ifndef DB_VERSION_MAJOR
32666 # define DB_VERSION_MAJOR 1
32670 #define NULL ((void*)0)
32677 #if DB_VERSION_MAJOR > 1
32680 int major, minor, patch;
32682 version = db_version( &major, &minor, &patch );
32684 if( major != DB_VERSION_MAJOR ||
32685 minor < DB_VERSION_MINOR )
32687 printf("Berkeley DB version mismatch\n"
32688 "\theader: %s\n\tlibrary: %s\n",
32689 DB_VERSION_STRING, version);
32695 #if DB_VERSION_MAJOR > 2
32696 db_env_create( NULL, 0 );
32697 #elif DB_VERSION_MAJOR > 1
32698 db_appexit( NULL );
32700 (void) dbopen( NULL, 0, 0, 0, NULL);
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32709 (eval $ac_link) 2>conftest.er1
32711 grep -v '^ *+' conftest.er1 >conftest.err
32713 cat conftest.err >&5
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); } &&
32716 { ac_try='test -z "$ac_c_werror_flag"
32717 || test ! -s conftest.err'
32718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719 (eval $ac_try) 2>&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; } &&
32723 { ac_try='test -s conftest$ac_exeext'
32724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32725 (eval $ac_try) 2>&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; }; then
32731 echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32736 rm -f conftest.err conftest.$ac_objext \
32737 conftest$ac_exeext conftest.$ac_ext
32742 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32743 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32745 if test $ol_cv_db_db_42 = yes ; then
32746 ol_cv_lib_db=-ldb-42
32750 if test $ol_cv_lib_db = no ; then
32751 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32752 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32753 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32761 cat >conftest.$ac_ext <<_ACEOF
32764 cat confdefs.h >>conftest.$ac_ext
32765 cat >>conftest.$ac_ext <<_ACEOF
32766 /* end confdefs.h. */
32768 #ifdef HAVE_DB_185_H
32769 # include <db_185.h>
32774 #ifndef DB_VERSION_MAJOR
32775 # define DB_VERSION_MAJOR 1
32779 #define NULL ((void*)0)
32786 #if DB_VERSION_MAJOR > 1
32789 int major, minor, patch;
32791 version = db_version( &major, &minor, &patch );
32793 if( major != DB_VERSION_MAJOR ||
32794 minor < DB_VERSION_MINOR )
32796 printf("Berkeley DB version mismatch\n"
32797 "\theader: %s\n\tlibrary: %s\n",
32798 DB_VERSION_STRING, version);
32804 #if DB_VERSION_MAJOR > 2
32805 db_env_create( NULL, 0 );
32806 #elif DB_VERSION_MAJOR > 1
32807 db_appexit( NULL );
32809 (void) dbopen( NULL, 0, 0, 0, NULL);
32816 rm -f conftest.$ac_objext conftest$ac_exeext
32817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32818 (eval $ac_link) 2>conftest.er1
32820 grep -v '^ *+' conftest.er1 >conftest.err
32822 cat conftest.err >&5
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); } &&
32825 { ac_try='test -z "$ac_c_werror_flag"
32826 || test ! -s conftest.err'
32827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828 (eval $ac_try) 2>&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; } &&
32832 { ac_try='test -s conftest$ac_exeext'
32833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834 (eval $ac_try) 2>&5
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 ol_cv_db_db_4_dot_2=yes
32840 echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32843 ol_cv_db_db_4_dot_2=no
32845 rm -f conftest.err conftest.$ac_objext \
32846 conftest$ac_exeext conftest.$ac_ext
32851 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32852 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32854 if test $ol_cv_db_db_4_dot_2 = yes ; then
32855 ol_cv_lib_db=-ldb-4.2
32859 if test $ol_cv_lib_db = no ; then
32860 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32861 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32862 if test "${ol_cv_db_db_4_2+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32868 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32870 cat >conftest.$ac_ext <<_ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h. */
32877 #ifdef HAVE_DB_185_H
32878 # include <db_185.h>
32883 #ifndef DB_VERSION_MAJOR
32884 # define DB_VERSION_MAJOR 1
32888 #define NULL ((void*)0)
32895 #if DB_VERSION_MAJOR > 1
32898 int major, minor, patch;
32900 version = db_version( &major, &minor, &patch );
32902 if( major != DB_VERSION_MAJOR ||
32903 minor < DB_VERSION_MINOR )
32905 printf("Berkeley DB version mismatch\n"
32906 "\theader: %s\n\tlibrary: %s\n",
32907 DB_VERSION_STRING, version);
32913 #if DB_VERSION_MAJOR > 2
32914 db_env_create( NULL, 0 );
32915 #elif DB_VERSION_MAJOR > 1
32916 db_appexit( NULL );
32918 (void) dbopen( NULL, 0, 0, 0, NULL);
32925 rm -f conftest.$ac_objext conftest$ac_exeext
32926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32927 (eval $ac_link) 2>conftest.er1
32929 grep -v '^ *+' conftest.er1 >conftest.err
32931 cat conftest.err >&5
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } &&
32934 { ac_try='test -z "$ac_c_werror_flag"
32935 || test ! -s conftest.err'
32936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32937 (eval $ac_try) 2>&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); }; } &&
32941 { ac_try='test -s conftest$ac_exeext'
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
32947 ol_cv_db_db_4_2=yes
32949 echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32954 rm -f conftest.err conftest.$ac_objext \
32955 conftest$ac_exeext conftest.$ac_ext
32960 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32961 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32963 if test $ol_cv_db_db_4_2 = yes ; then
32964 ol_cv_lib_db=-ldb-4-2
32968 elif test $ol_cv_bdb_minor = 1 ; then
32969 if test $ol_cv_lib_db = no ; then
32970 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32971 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32972 if test "${ol_cv_db_db41+set}" = set; then
32973 echo $ECHO_N "(cached) $ECHO_C" >&6
32978 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32980 cat >conftest.$ac_ext <<_ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h. */
32987 #ifdef HAVE_DB_185_H
32988 # include <db_185.h>
32993 #ifndef DB_VERSION_MAJOR
32994 # define DB_VERSION_MAJOR 1
32998 #define NULL ((void*)0)
33005 #if DB_VERSION_MAJOR > 1
33008 int major, minor, patch;
33010 version = db_version( &major, &minor, &patch );
33012 if( major != DB_VERSION_MAJOR ||
33013 minor < DB_VERSION_MINOR )
33015 printf("Berkeley DB version mismatch\n"
33016 "\theader: %s\n\tlibrary: %s\n",
33017 DB_VERSION_STRING, version);
33023 #if DB_VERSION_MAJOR > 2
33024 db_env_create( NULL, 0 );
33025 #elif DB_VERSION_MAJOR > 1
33026 db_appexit( NULL );
33028 (void) dbopen( NULL, 0, 0, 0, NULL);
33035 rm -f conftest.$ac_objext conftest$ac_exeext
33036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33037 (eval $ac_link) 2>conftest.er1
33039 grep -v '^ *+' conftest.er1 >conftest.err
33041 cat conftest.err >&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } &&
33044 { ac_try='test -z "$ac_c_werror_flag"
33045 || test ! -s conftest.err'
33046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33047 (eval $ac_try) 2>&5
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; } &&
33051 { ac_try='test -s conftest$ac_exeext'
33052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053 (eval $ac_try) 2>&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); }; }; then
33059 echo "$as_me: failed program was:" >&5
33060 sed 's/^/| /' conftest.$ac_ext >&5
33064 rm -f conftest.err conftest.$ac_objext \
33065 conftest$ac_exeext conftest.$ac_ext
33070 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33071 echo "${ECHO_T}$ol_cv_db_db41" >&6
33073 if test $ol_cv_db_db41 = yes ; then
33074 ol_cv_lib_db=-ldb41
33078 if test $ol_cv_lib_db = no ; then
33079 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33080 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33081 if test "${ol_cv_db_db_41+set}" = set; then
33082 echo $ECHO_N "(cached) $ECHO_C" >&6
33087 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33089 cat >conftest.$ac_ext <<_ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33096 #ifdef HAVE_DB_185_H
33097 # include <db_185.h>
33102 #ifndef DB_VERSION_MAJOR
33103 # define DB_VERSION_MAJOR 1
33107 #define NULL ((void*)0)
33114 #if DB_VERSION_MAJOR > 1
33117 int major, minor, patch;
33119 version = db_version( &major, &minor, &patch );
33121 if( major != DB_VERSION_MAJOR ||
33122 minor < DB_VERSION_MINOR )
33124 printf("Berkeley DB version mismatch\n"
33125 "\theader: %s\n\tlibrary: %s\n",
33126 DB_VERSION_STRING, version);
33132 #if DB_VERSION_MAJOR > 2
33133 db_env_create( NULL, 0 );
33134 #elif DB_VERSION_MAJOR > 1
33135 db_appexit( NULL );
33137 (void) dbopen( NULL, 0, 0, 0, NULL);
33144 rm -f conftest.$ac_objext conftest$ac_exeext
33145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33146 (eval $ac_link) 2>conftest.er1
33148 grep -v '^ *+' conftest.er1 >conftest.err
33150 cat conftest.err >&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); } &&
33153 { ac_try='test -z "$ac_c_werror_flag"
33154 || test ! -s conftest.err'
33155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156 (eval $ac_try) 2>&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); }; } &&
33160 { ac_try='test -s conftest$ac_exeext'
33161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162 (eval $ac_try) 2>&5
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); }; }; then
33168 echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33173 rm -f conftest.err conftest.$ac_objext \
33174 conftest$ac_exeext conftest.$ac_ext
33179 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33180 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33182 if test $ol_cv_db_db_41 = yes ; then
33183 ol_cv_lib_db=-ldb-41
33187 if test $ol_cv_lib_db = no ; then
33188 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33189 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33190 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33196 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33198 cat >conftest.$ac_ext <<_ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h. */
33205 #ifdef HAVE_DB_185_H
33206 # include <db_185.h>
33211 #ifndef DB_VERSION_MAJOR
33212 # define DB_VERSION_MAJOR 1
33216 #define NULL ((void*)0)
33223 #if DB_VERSION_MAJOR > 1
33226 int major, minor, patch;
33228 version = db_version( &major, &minor, &patch );
33230 if( major != DB_VERSION_MAJOR ||
33231 minor < DB_VERSION_MINOR )
33233 printf("Berkeley DB version mismatch\n"
33234 "\theader: %s\n\tlibrary: %s\n",
33235 DB_VERSION_STRING, version);
33241 #if DB_VERSION_MAJOR > 2
33242 db_env_create( NULL, 0 );
33243 #elif DB_VERSION_MAJOR > 1
33244 db_appexit( NULL );
33246 (void) dbopen( NULL, 0, 0, 0, NULL);
33253 rm -f conftest.$ac_objext conftest$ac_exeext
33254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33255 (eval $ac_link) 2>conftest.er1
33257 grep -v '^ *+' conftest.er1 >conftest.err
33259 cat conftest.err >&5
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); } &&
33262 { ac_try='test -z "$ac_c_werror_flag"
33263 || test ! -s conftest.err'
33264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265 (eval $ac_try) 2>&5
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); }; } &&
33269 { ac_try='test -s conftest$ac_exeext'
33270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271 (eval $ac_try) 2>&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ol_cv_db_db_4_dot_1=yes
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33280 ol_cv_db_db_4_dot_1=no
33282 rm -f conftest.err conftest.$ac_objext \
33283 conftest$ac_exeext conftest.$ac_ext
33288 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33289 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33291 if test $ol_cv_db_db_4_dot_1 = yes ; then
33292 ol_cv_lib_db=-ldb-4.1
33296 if test $ol_cv_lib_db = no ; then
33297 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33298 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33299 if test "${ol_cv_db_db_4_1+set}" = set; then
33300 echo $ECHO_N "(cached) $ECHO_C" >&6
33305 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33307 cat >conftest.$ac_ext <<_ACEOF
33310 cat confdefs.h >>conftest.$ac_ext
33311 cat >>conftest.$ac_ext <<_ACEOF
33312 /* end confdefs.h. */
33314 #ifdef HAVE_DB_185_H
33315 # include <db_185.h>
33320 #ifndef DB_VERSION_MAJOR
33321 # define DB_VERSION_MAJOR 1
33325 #define NULL ((void*)0)
33332 #if DB_VERSION_MAJOR > 1
33335 int major, minor, patch;
33337 version = db_version( &major, &minor, &patch );
33339 if( major != DB_VERSION_MAJOR ||
33340 minor < DB_VERSION_MINOR )
33342 printf("Berkeley DB version mismatch\n"
33343 "\theader: %s\n\tlibrary: %s\n",
33344 DB_VERSION_STRING, version);
33350 #if DB_VERSION_MAJOR > 2
33351 db_env_create( NULL, 0 );
33352 #elif DB_VERSION_MAJOR > 1
33353 db_appexit( NULL );
33355 (void) dbopen( NULL, 0, 0, 0, NULL);
33362 rm -f conftest.$ac_objext conftest$ac_exeext
33363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33364 (eval $ac_link) 2>conftest.er1
33366 grep -v '^ *+' conftest.er1 >conftest.err
33368 cat conftest.err >&5
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); } &&
33371 { ac_try='test -z "$ac_c_werror_flag"
33372 || test ! -s conftest.err'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest$ac_exeext'
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
33384 ol_cv_db_db_4_1=yes
33386 echo "$as_me: failed program was:" >&5
33387 sed 's/^/| /' conftest.$ac_ext >&5
33391 rm -f conftest.err conftest.$ac_objext \
33392 conftest$ac_exeext conftest.$ac_ext
33397 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33398 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33400 if test $ol_cv_db_db_4_1 = yes ; then
33401 ol_cv_lib_db=-ldb-4-1
33406 if test $ol_cv_lib_db = no ; then
33407 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33408 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33409 if test "${ol_cv_db_db_4+set}" = set; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33415 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33417 cat >conftest.$ac_ext <<_ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h. */
33424 #ifdef HAVE_DB_185_H
33425 # include <db_185.h>
33430 #ifndef DB_VERSION_MAJOR
33431 # define DB_VERSION_MAJOR 1
33435 #define NULL ((void*)0)
33442 #if DB_VERSION_MAJOR > 1
33445 int major, minor, patch;
33447 version = db_version( &major, &minor, &patch );
33449 if( major != DB_VERSION_MAJOR ||
33450 minor < DB_VERSION_MINOR )
33452 printf("Berkeley DB version mismatch\n"
33453 "\theader: %s\n\tlibrary: %s\n",
33454 DB_VERSION_STRING, version);
33460 #if DB_VERSION_MAJOR > 2
33461 db_env_create( NULL, 0 );
33462 #elif DB_VERSION_MAJOR > 1
33463 db_appexit( NULL );
33465 (void) dbopen( NULL, 0, 0, 0, NULL);
33472 rm -f conftest.$ac_objext conftest$ac_exeext
33473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33474 (eval $ac_link) 2>conftest.er1
33476 grep -v '^ *+' conftest.er1 >conftest.err
33478 cat conftest.err >&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); } &&
33481 { ac_try='test -z "$ac_c_werror_flag"
33482 || test ! -s conftest.err'
33483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484 (eval $ac_try) 2>&5
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; } &&
33488 { ac_try='test -s conftest$ac_exeext'
33489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33490 (eval $ac_try) 2>&5
33492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493 (exit $ac_status); }; }; then
33496 echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33501 rm -f conftest.err conftest.$ac_objext \
33502 conftest$ac_exeext conftest.$ac_ext
33507 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33508 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33510 if test $ol_cv_db_db_4 = yes ; then
33511 ol_cv_lib_db=-ldb-4
33515 if test $ol_cv_lib_db = no ; then
33516 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33517 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33518 if test "${ol_cv_db_db4+set}" = set; then
33519 echo $ECHO_N "(cached) $ECHO_C" >&6
33524 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33526 cat >conftest.$ac_ext <<_ACEOF
33529 cat confdefs.h >>conftest.$ac_ext
33530 cat >>conftest.$ac_ext <<_ACEOF
33531 /* end confdefs.h. */
33533 #ifdef HAVE_DB_185_H
33534 # include <db_185.h>
33539 #ifndef DB_VERSION_MAJOR
33540 # define DB_VERSION_MAJOR 1
33544 #define NULL ((void*)0)
33551 #if DB_VERSION_MAJOR > 1
33554 int major, minor, patch;
33556 version = db_version( &major, &minor, &patch );
33558 if( major != DB_VERSION_MAJOR ||
33559 minor < DB_VERSION_MINOR )
33561 printf("Berkeley DB version mismatch\n"
33562 "\theader: %s\n\tlibrary: %s\n",
33563 DB_VERSION_STRING, version);
33569 #if DB_VERSION_MAJOR > 2
33570 db_env_create( NULL, 0 );
33571 #elif DB_VERSION_MAJOR > 1
33572 db_appexit( NULL );
33574 (void) dbopen( NULL, 0, 0, 0, NULL);
33581 rm -f conftest.$ac_objext conftest$ac_exeext
33582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33583 (eval $ac_link) 2>conftest.er1
33585 grep -v '^ *+' conftest.er1 >conftest.err
33587 cat conftest.err >&5
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); } &&
33590 { ac_try='test -z "$ac_c_werror_flag"
33591 || test ! -s conftest.err'
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; } &&
33597 { ac_try='test -s conftest$ac_exeext'
33598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33599 (eval $ac_try) 2>&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; }; then
33605 echo "$as_me: failed program was:" >&5
33606 sed 's/^/| /' conftest.$ac_ext >&5
33610 rm -f conftest.err conftest.$ac_objext \
33611 conftest$ac_exeext conftest.$ac_ext
33616 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33617 echo "${ECHO_T}$ol_cv_db_db4" >&6
33619 if test $ol_cv_db_db4 = yes ; then
33624 if test $ol_cv_lib_db = no ; then
33625 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33626 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33627 if test "${ol_cv_db_db+set}" = set; then
33628 echo $ECHO_N "(cached) $ECHO_C" >&6
33633 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33635 cat >conftest.$ac_ext <<_ACEOF
33638 cat confdefs.h >>conftest.$ac_ext
33639 cat >>conftest.$ac_ext <<_ACEOF
33640 /* end confdefs.h. */
33642 #ifdef HAVE_DB_185_H
33643 # include <db_185.h>
33648 #ifndef DB_VERSION_MAJOR
33649 # define DB_VERSION_MAJOR 1
33653 #define NULL ((void*)0)
33660 #if DB_VERSION_MAJOR > 1
33663 int major, minor, patch;
33665 version = db_version( &major, &minor, &patch );
33667 if( major != DB_VERSION_MAJOR ||
33668 minor < DB_VERSION_MINOR )
33670 printf("Berkeley DB version mismatch\n"
33671 "\theader: %s\n\tlibrary: %s\n",
33672 DB_VERSION_STRING, version);
33678 #if DB_VERSION_MAJOR > 2
33679 db_env_create( NULL, 0 );
33680 #elif DB_VERSION_MAJOR > 1
33681 db_appexit( NULL );
33683 (void) dbopen( NULL, 0, 0, 0, NULL);
33690 rm -f conftest.$ac_objext conftest$ac_exeext
33691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33692 (eval $ac_link) 2>conftest.er1
33694 grep -v '^ *+' conftest.er1 >conftest.err
33696 cat conftest.err >&5
33697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33698 (exit $ac_status); } &&
33699 { ac_try='test -z "$ac_c_werror_flag"
33700 || test ! -s conftest.err'
33701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33702 (eval $ac_try) 2>&5
33704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705 (exit $ac_status); }; } &&
33706 { ac_try='test -s conftest$ac_exeext'
33707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33708 (eval $ac_try) 2>&5
33710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711 (exit $ac_status); }; }; then
33714 echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33719 rm -f conftest.err conftest.$ac_objext \
33720 conftest$ac_exeext conftest.$ac_ext
33725 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33726 echo "${ECHO_T}$ol_cv_db_db" >&6
33728 if test $ol_cv_db_db = yes ; then
33734 elif test $ol_cv_bdb_major = 3 ; then
33735 if test $ol_cv_lib_db = no ; then
33736 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33737 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33738 if test "${ol_cv_db_db3+set}" = set; then
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33744 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33746 cat >conftest.$ac_ext <<_ACEOF
33749 cat confdefs.h >>conftest.$ac_ext
33750 cat >>conftest.$ac_ext <<_ACEOF
33751 /* end confdefs.h. */
33753 #ifdef HAVE_DB_185_H
33754 # include <db_185.h>
33759 #ifndef DB_VERSION_MAJOR
33760 # define DB_VERSION_MAJOR 1
33764 #define NULL ((void*)0)
33771 #if DB_VERSION_MAJOR > 1
33774 int major, minor, patch;
33776 version = db_version( &major, &minor, &patch );
33778 if( major != DB_VERSION_MAJOR ||
33779 minor < DB_VERSION_MINOR )
33781 printf("Berkeley DB version mismatch\n"
33782 "\theader: %s\n\tlibrary: %s\n",
33783 DB_VERSION_STRING, version);
33789 #if DB_VERSION_MAJOR > 2
33790 db_env_create( NULL, 0 );
33791 #elif DB_VERSION_MAJOR > 1
33792 db_appexit( NULL );
33794 (void) dbopen( NULL, 0, 0, 0, NULL);
33801 rm -f conftest.$ac_objext conftest$ac_exeext
33802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33803 (eval $ac_link) 2>conftest.er1
33805 grep -v '^ *+' conftest.er1 >conftest.err
33807 cat conftest.err >&5
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } &&
33810 { ac_try='test -z "$ac_c_werror_flag"
33811 || test ! -s conftest.err'
33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813 (eval $ac_try) 2>&5
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); }; } &&
33817 { ac_try='test -s conftest$ac_exeext'
33818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819 (eval $ac_try) 2>&5
33821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822 (exit $ac_status); }; }; then
33825 echo "$as_me: failed program was:" >&5
33826 sed 's/^/| /' conftest.$ac_ext >&5
33830 rm -f conftest.err conftest.$ac_objext \
33831 conftest$ac_exeext conftest.$ac_ext
33836 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33837 echo "${ECHO_T}$ol_cv_db_db3" >&6
33839 if test $ol_cv_db_db3 = yes ; then
33844 if test $ol_cv_lib_db = no ; then
33845 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33846 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33847 if test "${ol_cv_db_db_3+set}" = set; then
33848 echo $ECHO_N "(cached) $ECHO_C" >&6
33853 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33855 cat >conftest.$ac_ext <<_ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h. */
33862 #ifdef HAVE_DB_185_H
33863 # include <db_185.h>
33868 #ifndef DB_VERSION_MAJOR
33869 # define DB_VERSION_MAJOR 1
33873 #define NULL ((void*)0)
33880 #if DB_VERSION_MAJOR > 1
33883 int major, minor, patch;
33885 version = db_version( &major, &minor, &patch );
33887 if( major != DB_VERSION_MAJOR ||
33888 minor < DB_VERSION_MINOR )
33890 printf("Berkeley DB version mismatch\n"
33891 "\theader: %s\n\tlibrary: %s\n",
33892 DB_VERSION_STRING, version);
33898 #if DB_VERSION_MAJOR > 2
33899 db_env_create( NULL, 0 );
33900 #elif DB_VERSION_MAJOR > 1
33901 db_appexit( NULL );
33903 (void) dbopen( NULL, 0, 0, 0, NULL);
33910 rm -f conftest.$ac_objext conftest$ac_exeext
33911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33912 (eval $ac_link) 2>conftest.er1
33914 grep -v '^ *+' conftest.er1 >conftest.err
33916 cat conftest.err >&5
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); } &&
33919 { ac_try='test -z "$ac_c_werror_flag"
33920 || test ! -s conftest.err'
33921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33922 (eval $ac_try) 2>&5
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); }; } &&
33926 { ac_try='test -s conftest$ac_exeext'
33927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33928 (eval $ac_try) 2>&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); }; }; then
33934 echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33939 rm -f conftest.err conftest.$ac_objext \
33940 conftest$ac_exeext conftest.$ac_ext
33945 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33946 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33948 if test $ol_cv_db_db_3 = yes ; then
33949 ol_cv_lib_db=-ldb-3
33954 elif test $ol_cv_bdb_major = 2 ; then
33955 if test $ol_cv_lib_db = no ; then
33956 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33957 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33958 if test "${ol_cv_db_db2+set}" = set; then
33959 echo $ECHO_N "(cached) $ECHO_C" >&6
33964 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33966 cat >conftest.$ac_ext <<_ACEOF
33969 cat confdefs.h >>conftest.$ac_ext
33970 cat >>conftest.$ac_ext <<_ACEOF
33971 /* end confdefs.h. */
33973 #ifdef HAVE_DB_185_H
33974 # include <db_185.h>
33979 #ifndef DB_VERSION_MAJOR
33980 # define DB_VERSION_MAJOR 1
33984 #define NULL ((void*)0)
33991 #if DB_VERSION_MAJOR > 1
33994 int major, minor, patch;
33996 version = db_version( &major, &minor, &patch );
33998 if( major != DB_VERSION_MAJOR ||
33999 minor < DB_VERSION_MINOR )
34001 printf("Berkeley DB version mismatch\n"
34002 "\theader: %s\n\tlibrary: %s\n",
34003 DB_VERSION_STRING, version);
34009 #if DB_VERSION_MAJOR > 2
34010 db_env_create( NULL, 0 );
34011 #elif DB_VERSION_MAJOR > 1
34012 db_appexit( NULL );
34014 (void) dbopen( NULL, 0, 0, 0, NULL);
34021 rm -f conftest.$ac_objext conftest$ac_exeext
34022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34023 (eval $ac_link) 2>conftest.er1
34025 grep -v '^ *+' conftest.er1 >conftest.err
34027 cat conftest.err >&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); } &&
34030 { ac_try='test -z "$ac_c_werror_flag"
34031 || test ! -s conftest.err'
34032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34033 (eval $ac_try) 2>&5
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; } &&
34037 { ac_try='test -s conftest$ac_exeext'
34038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039 (eval $ac_try) 2>&5
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); }; }; then
34045 echo "$as_me: failed program was:" >&5
34046 sed 's/^/| /' conftest.$ac_ext >&5
34050 rm -f conftest.err conftest.$ac_objext \
34051 conftest$ac_exeext conftest.$ac_ext
34056 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34057 echo "${ECHO_T}$ol_cv_db_db2" >&6
34059 if test $ol_cv_db_db2 = yes ; then
34064 if test $ol_cv_lib_db = no ; then
34065 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34066 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34067 if test "${ol_cv_db_db_2+set}" = set; then
34068 echo $ECHO_N "(cached) $ECHO_C" >&6
34073 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34075 cat >conftest.$ac_ext <<_ACEOF
34078 cat confdefs.h >>conftest.$ac_ext
34079 cat >>conftest.$ac_ext <<_ACEOF
34080 /* end confdefs.h. */
34082 #ifdef HAVE_DB_185_H
34083 # include <db_185.h>
34088 #ifndef DB_VERSION_MAJOR
34089 # define DB_VERSION_MAJOR 1
34093 #define NULL ((void*)0)
34100 #if DB_VERSION_MAJOR > 1
34103 int major, minor, patch;
34105 version = db_version( &major, &minor, &patch );
34107 if( major != DB_VERSION_MAJOR ||
34108 minor < DB_VERSION_MINOR )
34110 printf("Berkeley DB version mismatch\n"
34111 "\theader: %s\n\tlibrary: %s\n",
34112 DB_VERSION_STRING, version);
34118 #if DB_VERSION_MAJOR > 2
34119 db_env_create( NULL, 0 );
34120 #elif DB_VERSION_MAJOR > 1
34121 db_appexit( NULL );
34123 (void) dbopen( NULL, 0, 0, 0, NULL);
34130 rm -f conftest.$ac_objext conftest$ac_exeext
34131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34132 (eval $ac_link) 2>conftest.er1
34134 grep -v '^ *+' conftest.er1 >conftest.err
34136 cat conftest.err >&5
34137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138 (exit $ac_status); } &&
34139 { ac_try='test -z "$ac_c_werror_flag"
34140 || test ! -s conftest.err'
34141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34142 (eval $ac_try) 2>&5
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); }; } &&
34146 { ac_try='test -s conftest$ac_exeext'
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; }; then
34154 echo "$as_me: failed program was:" >&5
34155 sed 's/^/| /' conftest.$ac_ext >&5
34159 rm -f conftest.err conftest.$ac_objext \
34160 conftest$ac_exeext conftest.$ac_ext
34165 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34166 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34168 if test $ol_cv_db_db_2 = yes ; then
34169 ol_cv_lib_db=-ldb-2
34174 elif test $ol_cv_bdb_major = 1 ; then
34175 if test $ol_cv_lib_db = no ; then
34176 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34177 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34178 if test "${ol_cv_db_db1+set}" = set; then
34179 echo $ECHO_N "(cached) $ECHO_C" >&6
34184 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34186 cat >conftest.$ac_ext <<_ACEOF
34189 cat confdefs.h >>conftest.$ac_ext
34190 cat >>conftest.$ac_ext <<_ACEOF
34191 /* end confdefs.h. */
34193 #ifdef HAVE_DB_185_H
34194 # include <db_185.h>
34199 #ifndef DB_VERSION_MAJOR
34200 # define DB_VERSION_MAJOR 1
34204 #define NULL ((void*)0)
34211 #if DB_VERSION_MAJOR > 1
34214 int major, minor, patch;
34216 version = db_version( &major, &minor, &patch );
34218 if( major != DB_VERSION_MAJOR ||
34219 minor < DB_VERSION_MINOR )
34221 printf("Berkeley DB version mismatch\n"
34222 "\theader: %s\n\tlibrary: %s\n",
34223 DB_VERSION_STRING, version);
34229 #if DB_VERSION_MAJOR > 2
34230 db_env_create( NULL, 0 );
34231 #elif DB_VERSION_MAJOR > 1
34232 db_appexit( NULL );
34234 (void) dbopen( NULL, 0, 0, 0, NULL);
34241 rm -f conftest.$ac_objext conftest$ac_exeext
34242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34243 (eval $ac_link) 2>conftest.er1
34245 grep -v '^ *+' conftest.er1 >conftest.err
34247 cat conftest.err >&5
34248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); } &&
34250 { ac_try='test -z "$ac_c_werror_flag"
34251 || test ! -s conftest.err'
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; } &&
34257 { ac_try='test -s conftest$ac_exeext'
34258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259 (eval $ac_try) 2>&5
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); }; }; then
34265 echo "$as_me: failed program was:" >&5
34266 sed 's/^/| /' conftest.$ac_ext >&5
34270 rm -f conftest.err conftest.$ac_objext \
34271 conftest$ac_exeext conftest.$ac_ext
34276 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34277 echo "${ECHO_T}$ol_cv_db_db1" >&6
34279 if test $ol_cv_db_db1 = yes ; then
34284 if test $ol_cv_lib_db = no ; then
34285 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34286 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34287 if test "${ol_cv_db_db_1+set}" = set; then
34288 echo $ECHO_N "(cached) $ECHO_C" >&6
34293 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34295 cat >conftest.$ac_ext <<_ACEOF
34298 cat confdefs.h >>conftest.$ac_ext
34299 cat >>conftest.$ac_ext <<_ACEOF
34300 /* end confdefs.h. */
34302 #ifdef HAVE_DB_185_H
34303 # include <db_185.h>
34308 #ifndef DB_VERSION_MAJOR
34309 # define DB_VERSION_MAJOR 1
34313 #define NULL ((void*)0)
34320 #if DB_VERSION_MAJOR > 1
34323 int major, minor, patch;
34325 version = db_version( &major, &minor, &patch );
34327 if( major != DB_VERSION_MAJOR ||
34328 minor < DB_VERSION_MINOR )
34330 printf("Berkeley DB version mismatch\n"
34331 "\theader: %s\n\tlibrary: %s\n",
34332 DB_VERSION_STRING, version);
34338 #if DB_VERSION_MAJOR > 2
34339 db_env_create( NULL, 0 );
34340 #elif DB_VERSION_MAJOR > 1
34341 db_appexit( NULL );
34343 (void) dbopen( NULL, 0, 0, 0, NULL);
34350 rm -f conftest.$ac_objext conftest$ac_exeext
34351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34352 (eval $ac_link) 2>conftest.er1
34354 grep -v '^ *+' conftest.er1 >conftest.err
34356 cat conftest.err >&5
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); } &&
34359 { ac_try='test -z "$ac_c_werror_flag"
34360 || test ! -s conftest.err'
34361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362 (eval $ac_try) 2>&5
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); }; } &&
34366 { ac_try='test -s conftest$ac_exeext'
34367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368 (eval $ac_try) 2>&5
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); }; }; then
34374 echo "$as_me: failed program was:" >&5
34375 sed 's/^/| /' conftest.$ac_ext >&5
34379 rm -f conftest.err conftest.$ac_objext \
34380 conftest$ac_exeext conftest.$ac_ext
34385 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34386 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34388 if test $ol_cv_db_db_1 = yes ; then
34389 ol_cv_lib_db=-ldb-1
34394 if test $ol_cv_lib_db = no ; then
34395 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34396 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34397 if test "${ol_cv_db_none+set}" = set; then
34398 echo $ECHO_N "(cached) $ECHO_C" >&6
34403 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34405 cat >conftest.$ac_ext <<_ACEOF
34408 cat confdefs.h >>conftest.$ac_ext
34409 cat >>conftest.$ac_ext <<_ACEOF
34410 /* end confdefs.h. */
34412 #ifdef HAVE_DB_185_H
34413 # include <db_185.h>
34418 #ifndef DB_VERSION_MAJOR
34419 # define DB_VERSION_MAJOR 1
34423 #define NULL ((void*)0)
34430 #if DB_VERSION_MAJOR > 1
34433 int major, minor, patch;
34435 version = db_version( &major, &minor, &patch );
34437 if( major != DB_VERSION_MAJOR ||
34438 minor < DB_VERSION_MINOR )
34440 printf("Berkeley DB version mismatch\n"
34441 "\theader: %s\n\tlibrary: %s\n",
34442 DB_VERSION_STRING, version);
34448 #if DB_VERSION_MAJOR > 2
34449 db_env_create( NULL, 0 );
34450 #elif DB_VERSION_MAJOR > 1
34451 db_appexit( NULL );
34453 (void) dbopen( NULL, 0, 0, 0, NULL);
34460 rm -f conftest.$ac_objext conftest$ac_exeext
34461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34462 (eval $ac_link) 2>conftest.er1
34464 grep -v '^ *+' conftest.er1 >conftest.err
34466 cat conftest.err >&5
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); } &&
34469 { ac_try='test -z "$ac_c_werror_flag"
34470 || test ! -s conftest.err'
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; } &&
34476 { ac_try='test -s conftest$ac_exeext'
34477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34478 (eval $ac_try) 2>&5
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); }; }; then
34484 echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.$ac_ext >&5
34489 rm -f conftest.err conftest.$ac_objext \
34490 conftest$ac_exeext conftest.$ac_ext
34495 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34496 echo "${ECHO_T}$ol_cv_db_none" >&6
34498 if test $ol_cv_db_none = yes ; then
34504 if test "$ol_cv_lib_db" != no ; then
34505 ol_cv_berkeley_db=yes
34506 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34507 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34508 if test "${ol_cv_berkeley_db_version+set}" = set; then
34509 echo $ECHO_N "(cached) $ECHO_C" >&6
34513 LIBS="$LTHREAD_LIBS $LIBS"
34514 if test $ol_cv_lib_db != yes ; then
34515 LIBS="$ol_cv_lib_db $LIBS"
34518 if test "$cross_compiling" = yes; then
34519 ol_cv_berkeley_db_version=cross
34521 cat >conftest.$ac_ext <<_ACEOF
34524 cat confdefs.h >>conftest.$ac_ext
34525 cat >>conftest.$ac_ext <<_ACEOF
34526 /* end confdefs.h. */
34528 #ifdef HAVE_DB_185_H
34533 #ifndef DB_VERSION_MAJOR
34534 # define DB_VERSION_MAJOR 1
34537 #define NULL ((void *)0)
34541 #if DB_VERSION_MAJOR > 1
34543 int major, minor, patch;
34545 version = db_version( &major, &minor, &patch );
34547 if( major != DB_VERSION_MAJOR ||
34548 minor != DB_VERSION_MINOR ||
34549 patch != DB_VERSION_PATCH )
34551 printf("Berkeley DB version mismatch\n"
34552 "\theader: %s\n\tlibrary: %s\n",
34553 DB_VERSION_STRING, version);
34561 rm -f conftest$ac_exeext
34562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34563 (eval $ac_link) 2>&5
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34568 (eval $ac_try) 2>&5
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; }; then
34572 ol_cv_berkeley_db_version=yes
34574 echo "$as_me: program exited with status $ac_status" >&5
34575 echo "$as_me: failed program was:" >&5
34576 sed 's/^/| /' conftest.$ac_ext >&5
34578 ( exit $ac_status )
34579 ol_cv_berkeley_db_version=no
34581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34587 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34588 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34590 if test $ol_cv_berkeley_db_version = no ; then
34591 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34592 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34593 { (exit 1); exit 1; }; }
34596 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34597 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34598 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34599 echo $ECHO_N "(cached) $ECHO_C" >&6
34603 LIBS="$LTHREAD_LIBS $LIBS"
34604 if test $ol_cv_lib_db != yes ; then
34605 LIBS="$ol_cv_lib_db $LIBS"
34608 if test "$cross_compiling" = yes; then
34609 ol_cv_berkeley_db_thread=cross
34611 cat >conftest.$ac_ext <<_ACEOF
34614 cat confdefs.h >>conftest.$ac_ext
34615 cat >>conftest.$ac_ext <<_ACEOF
34616 /* end confdefs.h. */
34618 #ifdef HAVE_DB_185_H
34624 #define NULL ((void *)0)
34629 u_int32_t flags = DB_CREATE |
34635 #if DB_VERSION_MAJOR > 2
34636 DB_ENV *env = NULL;
34638 rc = db_env_create( &env, 0 );
34640 flags |= DB_INIT_MPOOL;
34641 #ifdef DB_MPOOL_PRIVATE
34642 flags |= DB_MPOOL_PRIVATE;
34646 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34650 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34651 rc = env->open( env, NULL, flags, 0 );
34653 rc = env->open( env, NULL, NULL, flags, 0 );
34657 rc = env->close( env, 0 );
34661 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34667 memset( &env, '\0', sizeof(env) );
34669 rc = db_appinit( NULL, NULL, &env, flags );
34672 db_appexit( &env );
34675 unlink("__db_mpool.share");
34676 unlink("__db_lock.share");
34682 rm -f conftest$ac_exeext
34683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34684 (eval $ac_link) 2>&5
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689 (eval $ac_try) 2>&5
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); }; }; then
34693 ol_cv_berkeley_db_thread=yes
34695 echo "$as_me: program exited with status $ac_status" >&5
34696 echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34699 ( exit $ac_status )
34700 ol_cv_berkeley_db_thread=no
34702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34708 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34709 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34711 if test $ol_cv_berkeley_db_thread != no ; then
34713 cat >>confdefs.h <<\_ACEOF
34714 #define HAVE_BERKELEY_DB_THREAD 1
34724 if test $ol_cv_berkeley_db != no ; then
34726 cat >>confdefs.h <<\_ACEOF
34727 #define HAVE_BERKELEY_DB 1
34731 ol_link_ldbm=berkeley
34732 ol_enable_ldbm_api=berkeley
34734 if test $ol_enable_ldbm_type = hash ; then
34736 cat >>confdefs.h <<\_ACEOF
34737 #define LDBM_USE_DBHASH 1
34742 cat >>confdefs.h <<\_ACEOF
34743 #define LDBM_USE_DBBTREE 1
34748 if test $ol_cv_lib_db != yes ; then
34749 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34755 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34756 if test $ol_link_ldbm != berkeley ; then
34757 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34758 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34759 { (exit 1); exit 1; }; }
34761 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34762 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34763 if test "${ol_cv_bdb_compat+set}" = set; then
34764 echo $ECHO_N "(cached) $ECHO_C" >&6
34767 cat >conftest.$ac_ext <<_ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h. */
34776 /* this check could be improved */
34777 #ifndef DB_VERSION_MAJOR
34778 # define DB_VERSION_MAJOR 1
34780 #ifndef DB_VERSION_MINOR
34781 # define DB_VERSION_MINOR 0
34784 /* require 4.2 or later */
34785 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34786 __db_version_compat
34790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34791 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34792 ol_cv_bdb_compat=yes
34794 ol_cv_bdb_compat=no
34799 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34800 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34803 if test $ol_cv_bdb_compat != yes ; then
34804 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34805 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34806 { (exit 1); exit 1; }; }
34811 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34812 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34813 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34814 ol_enable_ldbm_api=none
34817 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34818 echo "$as_me:$LINENO: checking for MDBM library" >&5
34819 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34820 if test "${ol_cv_lib_mdbm+set}" = set; then
34821 echo $ECHO_N "(cached) $ECHO_C" >&6
34824 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34825 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34826 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34827 echo $ECHO_N "(cached) $ECHO_C" >&6
34829 cat >conftest.$ac_ext <<_ACEOF
34832 cat confdefs.h >>conftest.$ac_ext
34833 cat >>conftest.$ac_ext <<_ACEOF
34834 /* end confdefs.h. */
34835 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34837 #define mdbm_set_chain innocuous_mdbm_set_chain
34839 /* System header to define __stub macros and hopefully few prototypes,
34840 which can conflict with char mdbm_set_chain (); below.
34841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34842 <limits.h> exists even on freestanding compilers. */
34845 # include <limits.h>
34847 # include <assert.h>
34850 #undef mdbm_set_chain
34852 /* Override any gcc2 internal prototype to avoid an error. */
34857 /* We use char because int might match the return type of a gcc2
34858 builtin and then its argument prototype would still apply. */
34859 char mdbm_set_chain ();
34860 /* The GNU C library defines this for functions which it implements
34861 to always fail with ENOSYS. Some functions are actually named
34862 something starting with __ and the normal name is an alias. */
34863 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34866 char (*f) () = mdbm_set_chain;
34875 return f != mdbm_set_chain;
34880 rm -f conftest.$ac_objext conftest$ac_exeext
34881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34882 (eval $ac_link) 2>conftest.er1
34884 grep -v '^ *+' conftest.er1 >conftest.err
34886 cat conftest.err >&5
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } &&
34889 { ac_try='test -z "$ac_c_werror_flag"
34890 || test ! -s conftest.err'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest$ac_exeext'
34897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898 (eval $ac_try) 2>&5
34900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); }; }; then
34902 ac_cv_func_mdbm_set_chain=yes
34904 echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34907 ac_cv_func_mdbm_set_chain=no
34909 rm -f conftest.err conftest.$ac_objext \
34910 conftest$ac_exeext conftest.$ac_ext
34912 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34913 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34914 if test $ac_cv_func_mdbm_set_chain = yes; then
34918 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34919 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34920 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34921 echo $ECHO_N "(cached) $ECHO_C" >&6
34923 ac_check_lib_save_LIBS=$LIBS
34924 LIBS="-lmdbm $LIBS"
34925 cat >conftest.$ac_ext <<_ACEOF
34928 cat confdefs.h >>conftest.$ac_ext
34929 cat >>conftest.$ac_ext <<_ACEOF
34930 /* end confdefs.h. */
34932 /* Override any gcc2 internal prototype to avoid an error. */
34936 /* We use char because int might match the return type of a gcc2
34937 builtin and then its argument prototype would still apply. */
34938 char mdbm_set_chain ();
34947 rm -f conftest.$ac_objext conftest$ac_exeext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34949 (eval $ac_link) 2>conftest.er1
34951 grep -v '^ *+' conftest.er1 >conftest.err
34953 cat conftest.err >&5
34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 (exit $ac_status); } &&
34956 { ac_try='test -z "$ac_c_werror_flag"
34957 || test ! -s conftest.err'
34958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959 (eval $ac_try) 2>&5
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); }; } &&
34963 { ac_try='test -s conftest$ac_exeext'
34964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965 (eval $ac_try) 2>&5
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; }; then
34969 ac_cv_lib_mdbm_mdbm_set_chain=yes
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34974 ac_cv_lib_mdbm_mdbm_set_chain=no
34976 rm -f conftest.err conftest.$ac_objext \
34977 conftest$ac_exeext conftest.$ac_ext
34978 LIBS=$ac_check_lib_save_LIBS
34980 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34981 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34982 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34983 ol_cv_lib_mdbm=-lmdbm
34994 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34995 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34999 for ac_header in mdbm.h
35001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35003 echo "$as_me:$LINENO: checking for $ac_header" >&5
35004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35006 echo $ECHO_N "(cached) $ECHO_C" >&6
35008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35011 # Is the header compilable?
35012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35014 cat >conftest.$ac_ext <<_ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h. */
35020 $ac_includes_default
35021 #include <$ac_header>
35023 rm -f conftest.$ac_objext
35024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35025 (eval $ac_compile) 2>conftest.er1
35027 grep -v '^ *+' conftest.er1 >conftest.err
35029 cat conftest.err >&5
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); } &&
35032 { ac_try='test -z "$ac_c_werror_flag"
35033 || test ! -s conftest.err'
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; } &&
35039 { ac_try='test -s conftest.$ac_objext'
35040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041 (eval $ac_try) 2>&5
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; }; then
35045 ac_header_compiler=yes
35047 echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35050 ac_header_compiler=no
35052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35054 echo "${ECHO_T}$ac_header_compiler" >&6
35056 # Is the header present?
35057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35059 cat >conftest.$ac_ext <<_ACEOF
35062 cat confdefs.h >>conftest.$ac_ext
35063 cat >>conftest.$ac_ext <<_ACEOF
35064 /* end confdefs.h. */
35065 #include <$ac_header>
35067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35070 grep -v '^ *+' conftest.er1 >conftest.err
35072 cat conftest.err >&5
35073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); } >/dev/null; then
35075 if test -s conftest.err; then
35076 ac_cpp_err=$ac_c_preproc_warn_flag
35077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35084 if test -z "$ac_cpp_err"; then
35085 ac_header_preproc=yes
35087 echo "$as_me: failed program was:" >&5
35088 sed 's/^/| /' conftest.$ac_ext >&5
35090 ac_header_preproc=no
35092 rm -f conftest.err conftest.$ac_ext
35093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35094 echo "${ECHO_T}$ac_header_preproc" >&6
35096 # So? What about this header?
35097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35103 ac_header_preproc=yes
35106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35120 ## ------------------------------------------ ##
35121 ## Report this to the AC_PACKAGE_NAME lists. ##
35122 ## ------------------------------------------ ##
35125 sed "s/^/$as_me: WARNING: /" >&2
35128 echo "$as_me:$LINENO: checking for $ac_header" >&5
35129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35131 echo $ECHO_N "(cached) $ECHO_C" >&6
35133 eval "$as_ac_Header=\$ac_header_preproc"
35135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35140 cat >>confdefs.h <<_ACEOF
35141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35148 echo "$as_me:$LINENO: checking for db" >&5
35149 echo $ECHO_N "checking for db... $ECHO_C" >&6
35150 if test "${ol_cv_mdbm+set}" = set; then
35151 echo $ECHO_N "(cached) $ECHO_C" >&6
35154 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35161 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35162 echo "${ECHO_T}$ol_cv_mdbm" >&6
35163 if test $ol_cv_mdbm = yes ; then
35165 cat >>confdefs.h <<\_ACEOF
35166 #define HAVE_MDBM 1
35172 if test $ol_cv_mdbm = yes ; then
35174 ol_enable_ldbm_api=mdbm
35175 if test $ol_cv_lib_mdbm != yes ; then
35176 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35181 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35182 echo "$as_me:$LINENO: checking for GDBM library" >&5
35183 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35184 if test "${ol_cv_lib_gdbm+set}" = set; then
35185 echo $ECHO_N "(cached) $ECHO_C" >&6
35188 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35189 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35190 if test "${ac_cv_func_gdbm_open+set}" = set; then
35191 echo $ECHO_N "(cached) $ECHO_C" >&6
35193 cat >conftest.$ac_ext <<_ACEOF
35196 cat confdefs.h >>conftest.$ac_ext
35197 cat >>conftest.$ac_ext <<_ACEOF
35198 /* end confdefs.h. */
35199 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35201 #define gdbm_open innocuous_gdbm_open
35203 /* System header to define __stub macros and hopefully few prototypes,
35204 which can conflict with char gdbm_open (); below.
35205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35206 <limits.h> exists even on freestanding compilers. */
35209 # include <limits.h>
35211 # include <assert.h>
35216 /* Override any gcc2 internal prototype to avoid an error. */
35221 /* We use char because int might match the return type of a gcc2
35222 builtin and then its argument prototype would still apply. */
35224 /* The GNU C library defines this for functions which it implements
35225 to always fail with ENOSYS. Some functions are actually named
35226 something starting with __ and the normal name is an alias. */
35227 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35230 char (*f) () = gdbm_open;
35239 return f != gdbm_open;
35244 rm -f conftest.$ac_objext conftest$ac_exeext
35245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35246 (eval $ac_link) 2>conftest.er1
35248 grep -v '^ *+' conftest.er1 >conftest.err
35250 cat conftest.err >&5
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); } &&
35253 { ac_try='test -z "$ac_c_werror_flag"
35254 || test ! -s conftest.err'
35255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35256 (eval $ac_try) 2>&5
35258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259 (exit $ac_status); }; } &&
35260 { ac_try='test -s conftest$ac_exeext'
35261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35262 (eval $ac_try) 2>&5
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); }; }; then
35266 ac_cv_func_gdbm_open=yes
35268 echo "$as_me: failed program was:" >&5
35269 sed 's/^/| /' conftest.$ac_ext >&5
35271 ac_cv_func_gdbm_open=no
35273 rm -f conftest.err conftest.$ac_objext \
35274 conftest$ac_exeext conftest.$ac_ext
35276 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35277 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35278 if test $ac_cv_func_gdbm_open = yes; then
35282 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35283 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35284 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35285 echo $ECHO_N "(cached) $ECHO_C" >&6
35287 ac_check_lib_save_LIBS=$LIBS
35288 LIBS="-lgdbm $LIBS"
35289 cat >conftest.$ac_ext <<_ACEOF
35292 cat confdefs.h >>conftest.$ac_ext
35293 cat >>conftest.$ac_ext <<_ACEOF
35294 /* end confdefs.h. */
35296 /* Override any gcc2 internal prototype to avoid an error. */
35300 /* We use char because int might match the return type of a gcc2
35301 builtin and then its argument prototype would still apply. */
35311 rm -f conftest.$ac_objext conftest$ac_exeext
35312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35313 (eval $ac_link) 2>conftest.er1
35315 grep -v '^ *+' conftest.er1 >conftest.err
35317 cat conftest.err >&5
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); } &&
35320 { ac_try='test -z "$ac_c_werror_flag"
35321 || test ! -s conftest.err'
35322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35323 (eval $ac_try) 2>&5
35325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); }; } &&
35327 { ac_try='test -s conftest$ac_exeext'
35328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35329 (eval $ac_try) 2>&5
35331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332 (exit $ac_status); }; }; then
35333 ac_cv_lib_gdbm_gdbm_open=yes
35335 echo "$as_me: failed program was:" >&5
35336 sed 's/^/| /' conftest.$ac_ext >&5
35338 ac_cv_lib_gdbm_gdbm_open=no
35340 rm -f conftest.err conftest.$ac_objext \
35341 conftest$ac_exeext conftest.$ac_ext
35342 LIBS=$ac_check_lib_save_LIBS
35344 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35345 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35346 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35347 ol_cv_lib_gdbm=-lgdbm
35358 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35359 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35363 for ac_header in gdbm.h
35365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35367 echo "$as_me:$LINENO: checking for $ac_header" >&5
35368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35370 echo $ECHO_N "(cached) $ECHO_C" >&6
35372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35375 # Is the header compilable?
35376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35378 cat >conftest.$ac_ext <<_ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h. */
35384 $ac_includes_default
35385 #include <$ac_header>
35387 rm -f conftest.$ac_objext
35388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35389 (eval $ac_compile) 2>conftest.er1
35391 grep -v '^ *+' conftest.er1 >conftest.err
35393 cat conftest.err >&5
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); } &&
35396 { ac_try='test -z "$ac_c_werror_flag"
35397 || test ! -s conftest.err'
35398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399 (eval $ac_try) 2>&5
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); }; } &&
35403 { ac_try='test -s conftest.$ac_objext'
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; }; then
35409 ac_header_compiler=yes
35411 echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35414 ac_header_compiler=no
35416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35418 echo "${ECHO_T}$ac_header_compiler" >&6
35420 # Is the header present?
35421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35423 cat >conftest.$ac_ext <<_ACEOF
35426 cat confdefs.h >>conftest.$ac_ext
35427 cat >>conftest.$ac_ext <<_ACEOF
35428 /* end confdefs.h. */
35429 #include <$ac_header>
35431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35434 grep -v '^ *+' conftest.er1 >conftest.err
35436 cat conftest.err >&5
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); } >/dev/null; then
35439 if test -s conftest.err; then
35440 ac_cpp_err=$ac_c_preproc_warn_flag
35441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35448 if test -z "$ac_cpp_err"; then
35449 ac_header_preproc=yes
35451 echo "$as_me: failed program was:" >&5
35452 sed 's/^/| /' conftest.$ac_ext >&5
35454 ac_header_preproc=no
35456 rm -f conftest.err conftest.$ac_ext
35457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35458 echo "${ECHO_T}$ac_header_preproc" >&6
35460 # So? What about this header?
35461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35467 ac_header_preproc=yes
35470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35484 ## ------------------------------------------ ##
35485 ## Report this to the AC_PACKAGE_NAME lists. ##
35486 ## ------------------------------------------ ##
35489 sed "s/^/$as_me: WARNING: /" >&2
35492 echo "$as_me:$LINENO: checking for $ac_header" >&5
35493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35495 echo $ECHO_N "(cached) $ECHO_C" >&6
35497 eval "$as_ac_Header=\$ac_header_preproc"
35499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35504 cat >>confdefs.h <<_ACEOF
35505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35512 echo "$as_me:$LINENO: checking for db" >&5
35513 echo $ECHO_N "checking for db... $ECHO_C" >&6
35514 if test "${ol_cv_gdbm+set}" = set; then
35515 echo $ECHO_N "(cached) $ECHO_C" >&6
35518 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35525 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35526 echo "${ECHO_T}$ol_cv_gdbm" >&6
35527 if test $ol_cv_gdbm = yes ; then
35529 cat >>confdefs.h <<\_ACEOF
35530 #define HAVE_GDBM 1
35536 if test $ol_cv_gdbm = yes ; then
35538 ol_enable_ldbm_api=gdbm
35540 if test $ol_cv_lib_gdbm != yes ; then
35541 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35546 if test $ol_enable_ldbm_api = ndbm ; then
35547 echo "$as_me:$LINENO: checking for NDBM library" >&5
35548 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35549 if test "${ol_cv_lib_ndbm+set}" = set; then
35550 echo $ECHO_N "(cached) $ECHO_C" >&6
35553 echo "$as_me:$LINENO: checking for dbm_open" >&5
35554 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35555 if test "${ac_cv_func_dbm_open+set}" = set; then
35556 echo $ECHO_N "(cached) $ECHO_C" >&6
35558 cat >conftest.$ac_ext <<_ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h. */
35564 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35566 #define dbm_open innocuous_dbm_open
35568 /* System header to define __stub macros and hopefully few prototypes,
35569 which can conflict with char dbm_open (); below.
35570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35571 <limits.h> exists even on freestanding compilers. */
35574 # include <limits.h>
35576 # include <assert.h>
35581 /* Override any gcc2 internal prototype to avoid an error. */
35586 /* We use char because int might match the return type of a gcc2
35587 builtin and then its argument prototype would still apply. */
35589 /* The GNU C library defines this for functions which it implements
35590 to always fail with ENOSYS. Some functions are actually named
35591 something starting with __ and the normal name is an alias. */
35592 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35595 char (*f) () = dbm_open;
35604 return f != dbm_open;
35609 rm -f conftest.$ac_objext conftest$ac_exeext
35610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35611 (eval $ac_link) 2>conftest.er1
35613 grep -v '^ *+' conftest.er1 >conftest.err
35615 cat conftest.err >&5
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); } &&
35618 { ac_try='test -z "$ac_c_werror_flag"
35619 || test ! -s conftest.err'
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; } &&
35625 { ac_try='test -s conftest$ac_exeext'
35626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35627 (eval $ac_try) 2>&5
35629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630 (exit $ac_status); }; }; then
35631 ac_cv_func_dbm_open=yes
35633 echo "$as_me: failed program was:" >&5
35634 sed 's/^/| /' conftest.$ac_ext >&5
35636 ac_cv_func_dbm_open=no
35638 rm -f conftest.err conftest.$ac_objext \
35639 conftest$ac_exeext conftest.$ac_ext
35641 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35642 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35643 if test $ac_cv_func_dbm_open = yes; then
35647 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35648 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35649 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35650 echo $ECHO_N "(cached) $ECHO_C" >&6
35652 ac_check_lib_save_LIBS=$LIBS
35653 LIBS="-lndbm $LIBS"
35654 cat >conftest.$ac_ext <<_ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h. */
35661 /* Override any gcc2 internal prototype to avoid an error. */
35665 /* We use char because int might match the return type of a gcc2
35666 builtin and then its argument prototype would still apply. */
35676 rm -f conftest.$ac_objext conftest$ac_exeext
35677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35678 (eval $ac_link) 2>conftest.er1
35680 grep -v '^ *+' conftest.er1 >conftest.err
35682 cat conftest.err >&5
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); } &&
35685 { ac_try='test -z "$ac_c_werror_flag"
35686 || test ! -s conftest.err'
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; } &&
35692 { ac_try='test -s conftest$ac_exeext'
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; }; then
35698 ac_cv_lib_ndbm_dbm_open=yes
35700 echo "$as_me: failed program was:" >&5
35701 sed 's/^/| /' conftest.$ac_ext >&5
35703 ac_cv_lib_ndbm_dbm_open=no
35705 rm -f conftest.err conftest.$ac_objext \
35706 conftest$ac_exeext conftest.$ac_ext
35707 LIBS=$ac_check_lib_save_LIBS
35709 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35710 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35711 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35712 ol_cv_lib_ndbm=-lndbm
35715 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35716 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35717 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35718 echo $ECHO_N "(cached) $ECHO_C" >&6
35720 ac_check_lib_save_LIBS=$LIBS
35722 cat >conftest.$ac_ext <<_ACEOF
35725 cat confdefs.h >>conftest.$ac_ext
35726 cat >>conftest.$ac_ext <<_ACEOF
35727 /* end confdefs.h. */
35729 /* Override any gcc2 internal prototype to avoid an error. */
35733 /* We use char because int might match the return type of a gcc2
35734 builtin and then its argument prototype would still apply. */
35744 rm -f conftest.$ac_objext conftest$ac_exeext
35745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35746 (eval $ac_link) 2>conftest.er1
35748 grep -v '^ *+' conftest.er1 >conftest.err
35750 cat conftest.err >&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } &&
35753 { ac_try='test -z "$ac_c_werror_flag"
35754 || test ! -s conftest.err'
35755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756 (eval $ac_try) 2>&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); }; } &&
35760 { ac_try='test -s conftest$ac_exeext'
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; }; then
35766 ac_cv_lib_dbm_dbm_open=yes
35768 echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.$ac_ext >&5
35771 ac_cv_lib_dbm_dbm_open=no
35773 rm -f conftest.err conftest.$ac_objext \
35774 conftest$ac_exeext conftest.$ac_ext
35775 LIBS=$ac_check_lib_save_LIBS
35777 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35778 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35779 if test $ac_cv_lib_dbm_dbm_open = yes; then
35780 ol_cv_lib_ndbm=-ldbm
35793 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35794 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35798 for ac_header in ndbm.h
35800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35802 echo "$as_me:$LINENO: checking for $ac_header" >&5
35803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35805 echo $ECHO_N "(cached) $ECHO_C" >&6
35807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35810 # Is the header compilable?
35811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35813 cat >conftest.$ac_ext <<_ACEOF
35816 cat confdefs.h >>conftest.$ac_ext
35817 cat >>conftest.$ac_ext <<_ACEOF
35818 /* end confdefs.h. */
35819 $ac_includes_default
35820 #include <$ac_header>
35822 rm -f conftest.$ac_objext
35823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35824 (eval $ac_compile) 2>conftest.er1
35826 grep -v '^ *+' conftest.er1 >conftest.err
35828 cat conftest.err >&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } &&
35831 { ac_try='test -z "$ac_c_werror_flag"
35832 || test ! -s conftest.err'
35833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834 (eval $ac_try) 2>&5
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); }; } &&
35838 { ac_try='test -s conftest.$ac_objext'
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35844 ac_header_compiler=yes
35846 echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35849 ac_header_compiler=no
35851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35853 echo "${ECHO_T}$ac_header_compiler" >&6
35855 # Is the header present?
35856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35858 cat >conftest.$ac_ext <<_ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h. */
35864 #include <$ac_header>
35866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35869 grep -v '^ *+' conftest.er1 >conftest.err
35871 cat conftest.err >&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } >/dev/null; then
35874 if test -s conftest.err; then
35875 ac_cpp_err=$ac_c_preproc_warn_flag
35876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35883 if test -z "$ac_cpp_err"; then
35884 ac_header_preproc=yes
35886 echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35889 ac_header_preproc=no
35891 rm -f conftest.err conftest.$ac_ext
35892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35893 echo "${ECHO_T}$ac_header_preproc" >&6
35895 # So? What about this header?
35896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35902 ac_header_preproc=yes
35905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35919 ## ------------------------------------------ ##
35920 ## Report this to the AC_PACKAGE_NAME lists. ##
35921 ## ------------------------------------------ ##
35924 sed "s/^/$as_me: WARNING: /" >&2
35927 echo "$as_me:$LINENO: checking for $ac_header" >&5
35928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35930 echo $ECHO_N "(cached) $ECHO_C" >&6
35932 eval "$as_ac_Header=\$ac_header_preproc"
35934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35939 cat >>confdefs.h <<_ACEOF
35940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35947 echo "$as_me:$LINENO: checking for db" >&5
35948 echo $ECHO_N "checking for db... $ECHO_C" >&6
35949 if test "${ol_cv_ndbm+set}" = set; then
35950 echo $ECHO_N "(cached) $ECHO_C" >&6
35953 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35960 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35961 echo "${ECHO_T}$ol_cv_ndbm" >&6
35962 if test $ol_cv_ndbm = yes ; then
35964 cat >>confdefs.h <<\_ACEOF
35965 #define HAVE_NDBM 1
35971 if test $ol_cv_ndbm = yes ; then
35973 ol_enable_ldbm_api=ndbm
35975 if test $ol_cv_lib_ndbm != yes ; then
35976 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35981 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35982 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35983 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35984 { (exit 1); exit 1; }; }
35987 if test $ol_enable_bdb = yes ||
35988 test $ol_enable_hdb = yes ||
35989 test $ol_enable_ldbm = yes ; then
35990 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35994 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35995 BUILD_LIBS_DYNAMIC=shared
35997 cat >>confdefs.h <<\_ACEOF
35998 #define LDAP_LIBS_DYNAMIC 1
36003 BUILD_LIBS_DYNAMIC=static
36007 if test $ol_enable_wrappers != no ; then
36009 for ac_header in tcpd.h
36011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36013 echo "$as_me:$LINENO: checking for $ac_header" >&5
36014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36016 echo $ECHO_N "(cached) $ECHO_C" >&6
36018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36021 # Is the header compilable?
36022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36024 cat >conftest.$ac_ext <<_ACEOF
36027 cat confdefs.h >>conftest.$ac_ext
36028 cat >>conftest.$ac_ext <<_ACEOF
36029 /* end confdefs.h. */
36030 $ac_includes_default
36031 #include <$ac_header>
36033 rm -f conftest.$ac_objext
36034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36035 (eval $ac_compile) 2>conftest.er1
36037 grep -v '^ *+' conftest.er1 >conftest.err
36039 cat conftest.err >&5
36040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041 (exit $ac_status); } &&
36042 { ac_try='test -z "$ac_c_werror_flag"
36043 || test ! -s conftest.err'
36044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36045 (eval $ac_try) 2>&5
36047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); }; } &&
36049 { ac_try='test -s conftest.$ac_objext'
36050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36051 (eval $ac_try) 2>&5
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); }; }; then
36055 ac_header_compiler=yes
36057 echo "$as_me: failed program was:" >&5
36058 sed 's/^/| /' conftest.$ac_ext >&5
36060 ac_header_compiler=no
36062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36064 echo "${ECHO_T}$ac_header_compiler" >&6
36066 # Is the header present?
36067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36069 cat >conftest.$ac_ext <<_ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h. */
36075 #include <$ac_header>
36077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36080 grep -v '^ *+' conftest.er1 >conftest.err
36082 cat conftest.err >&5
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); } >/dev/null; then
36085 if test -s conftest.err; then
36086 ac_cpp_err=$ac_c_preproc_warn_flag
36087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36094 if test -z "$ac_cpp_err"; then
36095 ac_header_preproc=yes
36097 echo "$as_me: failed program was:" >&5
36098 sed 's/^/| /' conftest.$ac_ext >&5
36100 ac_header_preproc=no
36102 rm -f conftest.err conftest.$ac_ext
36103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36104 echo "${ECHO_T}$ac_header_preproc" >&6
36106 # So? What about this header?
36107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36113 ac_header_preproc=yes
36116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36130 ## ------------------------------------------ ##
36131 ## Report this to the AC_PACKAGE_NAME lists. ##
36132 ## ------------------------------------------ ##
36135 sed "s/^/$as_me: WARNING: /" >&2
36138 echo "$as_me:$LINENO: checking for $ac_header" >&5
36139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36141 echo $ECHO_N "(cached) $ECHO_C" >&6
36143 eval "$as_ac_Header=\$ac_header_preproc"
36145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36150 cat >>confdefs.h <<_ACEOF
36151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36154 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36155 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36157 LIBS="$LIBS -lwrap"
36158 cat >conftest.$ac_ext <<_ACEOF
36161 cat confdefs.h >>conftest.$ac_ext
36162 cat >>conftest.$ac_ext <<_ACEOF
36163 /* end confdefs.h. */
36166 int allow_severity = 0;
36167 int deny_severity = 0;
36169 struct request_info *req;
36181 rm -f conftest.$ac_objext conftest$ac_exeext
36182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36183 (eval $ac_link) 2>conftest.er1
36185 grep -v '^ *+' conftest.er1 >conftest.err
36187 cat conftest.err >&5
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); } &&
36190 { ac_try='test -z "$ac_c_werror_flag"
36191 || test ! -s conftest.err'
36192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193 (eval $ac_try) 2>&5
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); }; } &&
36197 { ac_try='test -s conftest$ac_exeext'
36198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 (eval $ac_try) 2>&5
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); }; }; then
36203 echo "$as_me:$LINENO: result: -lwrap" >&5
36204 echo "${ECHO_T}-lwrap" >&6
36208 echo "$as_me: failed program was:" >&5
36209 sed 's/^/| /' conftest.$ac_ext >&5
36213 cat >conftest.$ac_ext <<_ACEOF
36216 cat confdefs.h >>conftest.$ac_ext
36217 cat >>conftest.$ac_ext <<_ACEOF
36218 /* end confdefs.h. */
36221 int allow_severity = 0;
36222 int deny_severity = 0;
36224 struct request_info *req;
36236 rm -f conftest.$ac_objext conftest$ac_exeext
36237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36238 (eval $ac_link) 2>conftest.er1
36240 grep -v '^ *+' conftest.er1 >conftest.err
36242 cat conftest.err >&5
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); } &&
36245 { ac_try='test -z "$ac_c_werror_flag"
36246 || test ! -s conftest.err'
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; } &&
36252 { ac_try='test -s conftest$ac_exeext'
36253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254 (eval $ac_try) 2>&5
36256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257 (exit $ac_status); }; }; then
36258 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36259 echo "${ECHO_T}-lwrap -lnsl" >&6
36261 LIBS="$save_LIBS -lnsl"
36263 echo "$as_me: failed program was:" >&5
36264 sed 's/^/| /' conftest.$ac_ext >&5
36267 echo "$as_me:$LINENO: result: no" >&5
36268 echo "${ECHO_T}no" >&6
36272 rm -f conftest.err conftest.$ac_objext \
36273 conftest$ac_exeext conftest.$ac_ext
36275 rm -f conftest.err conftest.$ac_objext \
36276 conftest$ac_exeext conftest.$ac_ext
36284 if test $have_wrappers = yes ; then
36286 cat >>confdefs.h <<\_ACEOF
36287 #define HAVE_TCPD 1
36291 elif test $ol_enable_wrappers = yes ; then
36292 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36293 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36294 { (exit 1); exit 1; }; }
36296 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36297 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36302 if test $ol_enable_syslog != no ; then
36303 echo "$as_me:$LINENO: checking for openlog" >&5
36304 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36305 if test "${ac_cv_func_openlog+set}" = set; then
36306 echo $ECHO_N "(cached) $ECHO_C" >&6
36308 cat >conftest.$ac_ext <<_ACEOF
36311 cat confdefs.h >>conftest.$ac_ext
36312 cat >>conftest.$ac_ext <<_ACEOF
36313 /* end confdefs.h. */
36314 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36316 #define openlog innocuous_openlog
36318 /* System header to define __stub macros and hopefully few prototypes,
36319 which can conflict with char openlog (); below.
36320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36321 <limits.h> exists even on freestanding compilers. */
36324 # include <limits.h>
36326 # include <assert.h>
36331 /* Override any gcc2 internal prototype to avoid an error. */
36336 /* We use char because int might match the return type of a gcc2
36337 builtin and then its argument prototype would still apply. */
36339 /* The GNU C library defines this for functions which it implements
36340 to always fail with ENOSYS. Some functions are actually named
36341 something starting with __ and the normal name is an alias. */
36342 #if defined (__stub_openlog) || defined (__stub___openlog)
36345 char (*f) () = openlog;
36354 return f != openlog;
36359 rm -f conftest.$ac_objext conftest$ac_exeext
36360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36361 (eval $ac_link) 2>conftest.er1
36363 grep -v '^ *+' conftest.er1 >conftest.err
36365 cat conftest.err >&5
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); } &&
36368 { ac_try='test -z "$ac_c_werror_flag"
36369 || test ! -s conftest.err'
36370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36371 (eval $ac_try) 2>&5
36373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374 (exit $ac_status); }; } &&
36375 { ac_try='test -s conftest$ac_exeext'
36376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36377 (eval $ac_try) 2>&5
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); }; }; then
36381 ac_cv_func_openlog=yes
36383 echo "$as_me: failed program was:" >&5
36384 sed 's/^/| /' conftest.$ac_ext >&5
36386 ac_cv_func_openlog=no
36388 rm -f conftest.err conftest.$ac_objext \
36389 conftest$ac_exeext conftest.$ac_ext
36391 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36392 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36394 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36395 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36396 echo "$as_me: error: could not find syslog" >&2;}
36397 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36399 ol_enable_syslog=$ac_cv_func_openlog
36403 if test $ol_enable_sql != no ; then
36406 for ac_header in sql.h sqlext.h
36408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36410 echo "$as_me:$LINENO: checking for $ac_header" >&5
36411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36413 echo $ECHO_N "(cached) $ECHO_C" >&6
36415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36418 # Is the header compilable?
36419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36421 cat >conftest.$ac_ext <<_ACEOF
36424 cat confdefs.h >>conftest.$ac_ext
36425 cat >>conftest.$ac_ext <<_ACEOF
36426 /* end confdefs.h. */
36427 $ac_includes_default
36428 #include <$ac_header>
36430 rm -f conftest.$ac_objext
36431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36432 (eval $ac_compile) 2>conftest.er1
36434 grep -v '^ *+' conftest.er1 >conftest.err
36436 cat conftest.err >&5
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); } &&
36439 { ac_try='test -z "$ac_c_werror_flag"
36440 || test ! -s conftest.err'
36441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442 (eval $ac_try) 2>&5
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); }; } &&
36446 { ac_try='test -s conftest.$ac_objext'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; }; then
36452 ac_header_compiler=yes
36454 echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36457 ac_header_compiler=no
36459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36461 echo "${ECHO_T}$ac_header_compiler" >&6
36463 # Is the header present?
36464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36466 cat >conftest.$ac_ext <<_ACEOF
36469 cat confdefs.h >>conftest.$ac_ext
36470 cat >>conftest.$ac_ext <<_ACEOF
36471 /* end confdefs.h. */
36472 #include <$ac_header>
36474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36477 grep -v '^ *+' conftest.er1 >conftest.err
36479 cat conftest.err >&5
36480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481 (exit $ac_status); } >/dev/null; then
36482 if test -s conftest.err; then
36483 ac_cpp_err=$ac_c_preproc_warn_flag
36484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36491 if test -z "$ac_cpp_err"; then
36492 ac_header_preproc=yes
36494 echo "$as_me: failed program was:" >&5
36495 sed 's/^/| /' conftest.$ac_ext >&5
36497 ac_header_preproc=no
36499 rm -f conftest.err conftest.$ac_ext
36500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36501 echo "${ECHO_T}$ac_header_preproc" >&6
36503 # So? What about this header?
36504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36510 ac_header_preproc=yes
36513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36527 ## ------------------------------------------ ##
36528 ## Report this to the AC_PACKAGE_NAME lists. ##
36529 ## ------------------------------------------ ##
36532 sed "s/^/$as_me: WARNING: /" >&2
36535 echo "$as_me:$LINENO: checking for $ac_header" >&5
36536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36538 echo $ECHO_N "(cached) $ECHO_C" >&6
36540 eval "$as_ac_Header=\$ac_header_preproc"
36542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36547 cat >>confdefs.h <<_ACEOF
36548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36553 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36554 echo "$as_me: error: could not locate SQL headers" >&2;}
36555 { (exit 1); exit 1; }; }
36563 LIBS="$LTHREAD_LIBS"
36565 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36566 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36567 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36568 echo $ECHO_N "(cached) $ECHO_C" >&6
36570 ac_check_lib_save_LIBS=$LIBS
36571 LIBS="-liodbc $LIBS"
36572 cat >conftest.$ac_ext <<_ACEOF
36575 cat confdefs.h >>conftest.$ac_ext
36576 cat >>conftest.$ac_ext <<_ACEOF
36577 /* end confdefs.h. */
36579 /* Override any gcc2 internal prototype to avoid an error. */
36583 /* We use char because int might match the return type of a gcc2
36584 builtin and then its argument prototype would still apply. */
36585 char SQLDriverConnect ();
36589 SQLDriverConnect ();
36594 rm -f conftest.$ac_objext conftest$ac_exeext
36595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36596 (eval $ac_link) 2>conftest.er1
36598 grep -v '^ *+' conftest.er1 >conftest.err
36600 cat conftest.err >&5
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); } &&
36603 { ac_try='test -z "$ac_c_werror_flag"
36604 || test ! -s conftest.err'
36605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36606 (eval $ac_try) 2>&5
36608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); }; } &&
36610 { ac_try='test -s conftest$ac_exeext'
36611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36612 (eval $ac_try) 2>&5
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); }; }; then
36616 ac_cv_lib_iodbc_SQLDriverConnect=yes
36618 echo "$as_me: failed program was:" >&5
36619 sed 's/^/| /' conftest.$ac_ext >&5
36621 ac_cv_lib_iodbc_SQLDriverConnect=no
36623 rm -f conftest.err conftest.$ac_objext \
36624 conftest$ac_exeext conftest.$ac_ext
36625 LIBS=$ac_check_lib_save_LIBS
36627 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36628 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36629 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36635 if test $have_iodbc = yes ; then
36636 ol_link_sql="-liodbc"
36638 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36639 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36640 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36641 echo $ECHO_N "(cached) $ECHO_C" >&6
36643 ac_check_lib_save_LIBS=$LIBS
36644 LIBS="-lodbc $LIBS"
36645 cat >conftest.$ac_ext <<_ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h. */
36652 /* Override any gcc2 internal prototype to avoid an error. */
36656 /* We use char because int might match the return type of a gcc2
36657 builtin and then its argument prototype would still apply. */
36658 char SQLDriverConnect ();
36662 SQLDriverConnect ();
36667 rm -f conftest.$ac_objext conftest$ac_exeext
36668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36669 (eval $ac_link) 2>conftest.er1
36671 grep -v '^ *+' conftest.er1 >conftest.err
36673 cat conftest.err >&5
36674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); } &&
36676 { ac_try='test -z "$ac_c_werror_flag"
36677 || test ! -s conftest.err'
36678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36679 (eval $ac_try) 2>&5
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); }; } &&
36683 { ac_try='test -s conftest$ac_exeext'
36684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36685 (eval $ac_try) 2>&5
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); }; }; then
36689 ac_cv_lib_odbc_SQLDriverConnect=yes
36691 echo "$as_me: failed program was:" >&5
36692 sed 's/^/| /' conftest.$ac_ext >&5
36694 ac_cv_lib_odbc_SQLDriverConnect=no
36696 rm -f conftest.err conftest.$ac_objext \
36697 conftest$ac_exeext conftest.$ac_ext
36698 LIBS=$ac_check_lib_save_LIBS
36700 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36701 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36702 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36708 if test $have_odbc = yes ; then
36709 ol_link_sql="-lodbc"
36715 if test $ol_link_sql != no ; then
36716 SLAPD_SQL_LIBS="$ol_link_sql"
36718 elif test $ol_enable_sql != auto ; then
36719 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36720 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36721 { (exit 1); exit 1; }; }
36727 for ac_header in unicode/utypes.h
36729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36731 echo "$as_me:$LINENO: checking for $ac_header" >&5
36732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36734 echo $ECHO_N "(cached) $ECHO_C" >&6
36736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36739 # Is the header compilable?
36740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36742 cat >conftest.$ac_ext <<_ACEOF
36745 cat confdefs.h >>conftest.$ac_ext
36746 cat >>conftest.$ac_ext <<_ACEOF
36747 /* end confdefs.h. */
36748 $ac_includes_default
36749 #include <$ac_header>
36751 rm -f conftest.$ac_objext
36752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36753 (eval $ac_compile) 2>conftest.er1
36755 grep -v '^ *+' conftest.er1 >conftest.err
36757 cat conftest.err >&5
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } &&
36760 { ac_try='test -z "$ac_c_werror_flag"
36761 || test ! -s conftest.err'
36762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36763 (eval $ac_try) 2>&5
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); }; } &&
36767 { ac_try='test -s conftest.$ac_objext'
36768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769 (eval $ac_try) 2>&5
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); }; }; then
36773 ac_header_compiler=yes
36775 echo "$as_me: failed program was:" >&5
36776 sed 's/^/| /' conftest.$ac_ext >&5
36778 ac_header_compiler=no
36780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36782 echo "${ECHO_T}$ac_header_compiler" >&6
36784 # Is the header present?
36785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36787 cat >conftest.$ac_ext <<_ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h. */
36793 #include <$ac_header>
36795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36798 grep -v '^ *+' conftest.er1 >conftest.err
36800 cat conftest.err >&5
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); } >/dev/null; then
36803 if test -s conftest.err; then
36804 ac_cpp_err=$ac_c_preproc_warn_flag
36805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36812 if test -z "$ac_cpp_err"; then
36813 ac_header_preproc=yes
36815 echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36818 ac_header_preproc=no
36820 rm -f conftest.err conftest.$ac_ext
36821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36822 echo "${ECHO_T}$ac_header_preproc" >&6
36824 # So? What about this header?
36825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36831 ac_header_preproc=yes
36834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36848 ## ------------------------------------------ ##
36849 ## Report this to the AC_PACKAGE_NAME lists. ##
36850 ## ------------------------------------------ ##
36853 sed "s/^/$as_me: WARNING: /" >&2
36856 echo "$as_me:$LINENO: checking for $ac_header" >&5
36857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36859 echo $ECHO_N "(cached) $ECHO_C" >&6
36861 eval "$as_ac_Header=\$ac_header_preproc"
36863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36868 cat >>confdefs.h <<_ACEOF
36869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36876 if test $ac_cv_header_unicode_utypes_h = yes ; then
36877 OL_ICULIBS="-licuuc -licudata"
36879 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36880 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36881 if test "${ol_cv_lib_icu+set}" = set; then
36882 echo $ECHO_N "(cached) $ECHO_C" >&6
36886 LIBS="$OL_ICULIBS $LIBS"
36887 cat >conftest.$ac_ext <<_ACEOF
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h. */
36894 #include <unicode/utypes.h>
36900 (void) u_errorName(0);
36906 rm -f conftest.$ac_objext conftest$ac_exeext
36907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36908 (eval $ac_link) 2>conftest.er1
36910 grep -v '^ *+' conftest.er1 >conftest.err
36912 cat conftest.err >&5
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); } &&
36915 { ac_try='test -z "$ac_c_werror_flag"
36916 || test ! -s conftest.err'
36917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918 (eval $ac_try) 2>&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); }; } &&
36922 { ac_try='test -s conftest$ac_exeext'
36923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36924 (eval $ac_try) 2>&5
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 (exit $ac_status); }; }; then
36930 echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36935 rm -f conftest.err conftest.$ac_objext \
36936 conftest$ac_exeext conftest.$ac_ext
36940 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36941 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36943 if test $ol_cv_lib_icu != no ; then
36944 ol_icu="$OL_ICULIBS"
36946 cat >>confdefs.h <<\_ACEOF
36953 if test "$ol_icu" = no ; then
36954 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36955 echo "$as_me: WARNING: ICU not available" >&2;}
36962 if test $ol_with_cyrus_sasl != no ; then
36965 for ac_header in sasl/sasl.h sasl.h
36967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36969 echo "$as_me:$LINENO: checking for $ac_header" >&5
36970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36972 echo $ECHO_N "(cached) $ECHO_C" >&6
36974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36977 # Is the header compilable?
36978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36980 cat >conftest.$ac_ext <<_ACEOF
36983 cat confdefs.h >>conftest.$ac_ext
36984 cat >>conftest.$ac_ext <<_ACEOF
36985 /* end confdefs.h. */
36986 $ac_includes_default
36987 #include <$ac_header>
36989 rm -f conftest.$ac_objext
36990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36991 (eval $ac_compile) 2>conftest.er1
36993 grep -v '^ *+' conftest.er1 >conftest.err
36995 cat conftest.err >&5
36996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997 (exit $ac_status); } &&
36998 { ac_try='test -z "$ac_c_werror_flag"
36999 || test ! -s conftest.err'
37000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37001 (eval $ac_try) 2>&5
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); }; } &&
37005 { ac_try='test -s conftest.$ac_objext'
37006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007 (eval $ac_try) 2>&5
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); }; }; then
37011 ac_header_compiler=yes
37013 echo "$as_me: failed program was:" >&5
37014 sed 's/^/| /' conftest.$ac_ext >&5
37016 ac_header_compiler=no
37018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37020 echo "${ECHO_T}$ac_header_compiler" >&6
37022 # Is the header present?
37023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37025 cat >conftest.$ac_ext <<_ACEOF
37028 cat confdefs.h >>conftest.$ac_ext
37029 cat >>conftest.$ac_ext <<_ACEOF
37030 /* end confdefs.h. */
37031 #include <$ac_header>
37033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37036 grep -v '^ *+' conftest.er1 >conftest.err
37038 cat conftest.err >&5
37039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040 (exit $ac_status); } >/dev/null; then
37041 if test -s conftest.err; then
37042 ac_cpp_err=$ac_c_preproc_warn_flag
37043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37050 if test -z "$ac_cpp_err"; then
37051 ac_header_preproc=yes
37053 echo "$as_me: failed program was:" >&5
37054 sed 's/^/| /' conftest.$ac_ext >&5
37056 ac_header_preproc=no
37058 rm -f conftest.err conftest.$ac_ext
37059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37060 echo "${ECHO_T}$ac_header_preproc" >&6
37062 # So? What about this header?
37063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37069 ac_header_preproc=yes
37072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37086 ## ------------------------------------------ ##
37087 ## Report this to the AC_PACKAGE_NAME lists. ##
37088 ## ------------------------------------------ ##
37091 sed "s/^/$as_me: WARNING: /" >&2
37094 echo "$as_me:$LINENO: checking for $ac_header" >&5
37095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37097 echo $ECHO_N "(cached) $ECHO_C" >&6
37099 eval "$as_ac_Header=\$ac_header_preproc"
37101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37106 cat >>confdefs.h <<_ACEOF
37107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37115 if test $ac_cv_header_sasl_sasl_h = yes ||
37116 test $ac_cv_header_sasl_h = yes; then
37117 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37118 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37119 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37120 echo $ECHO_N "(cached) $ECHO_C" >&6
37122 ac_check_lib_save_LIBS=$LIBS
37123 LIBS="-lsasl2 $LIBS"
37124 cat >conftest.$ac_ext <<_ACEOF
37127 cat confdefs.h >>conftest.$ac_ext
37128 cat >>conftest.$ac_ext <<_ACEOF
37129 /* end confdefs.h. */
37131 /* Override any gcc2 internal prototype to avoid an error. */
37135 /* We use char because int might match the return type of a gcc2
37136 builtin and then its argument prototype would still apply. */
37137 char sasl_client_init ();
37141 sasl_client_init ();
37146 rm -f conftest.$ac_objext conftest$ac_exeext
37147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37148 (eval $ac_link) 2>conftest.er1
37150 grep -v '^ *+' conftest.er1 >conftest.err
37152 cat conftest.err >&5
37153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154 (exit $ac_status); } &&
37155 { ac_try='test -z "$ac_c_werror_flag"
37156 || test ! -s conftest.err'
37157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158 (eval $ac_try) 2>&5
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); }; } &&
37162 { ac_try='test -s conftest$ac_exeext'
37163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 (eval $ac_try) 2>&5
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); }; }; then
37168 ac_cv_lib_sasl2_sasl_client_init=yes
37170 echo "$as_me: failed program was:" >&5
37171 sed 's/^/| /' conftest.$ac_ext >&5
37173 ac_cv_lib_sasl2_sasl_client_init=no
37175 rm -f conftest.err conftest.$ac_objext \
37176 conftest$ac_exeext conftest.$ac_ext
37177 LIBS=$ac_check_lib_save_LIBS
37179 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37180 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37181 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37182 ol_link_sasl="-lsasl2"
37184 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37185 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37186 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37187 echo $ECHO_N "(cached) $ECHO_C" >&6
37189 ac_check_lib_save_LIBS=$LIBS
37190 LIBS="-lsasl $LIBS"
37191 cat >conftest.$ac_ext <<_ACEOF
37194 cat confdefs.h >>conftest.$ac_ext
37195 cat >>conftest.$ac_ext <<_ACEOF
37196 /* end confdefs.h. */
37198 /* Override any gcc2 internal prototype to avoid an error. */
37202 /* We use char because int might match the return type of a gcc2
37203 builtin and then its argument prototype would still apply. */
37204 char sasl_client_init ();
37208 sasl_client_init ();
37213 rm -f conftest.$ac_objext conftest$ac_exeext
37214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37215 (eval $ac_link) 2>conftest.er1
37217 grep -v '^ *+' conftest.er1 >conftest.err
37219 cat conftest.err >&5
37220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 (exit $ac_status); } &&
37222 { ac_try='test -z "$ac_c_werror_flag"
37223 || test ! -s conftest.err'
37224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37225 (eval $ac_try) 2>&5
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); }; } &&
37229 { ac_try='test -s conftest$ac_exeext'
37230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37231 (eval $ac_try) 2>&5
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); }; }; then
37235 ac_cv_lib_sasl_sasl_client_init=yes
37237 echo "$as_me: failed program was:" >&5
37238 sed 's/^/| /' conftest.$ac_ext >&5
37240 ac_cv_lib_sasl_sasl_client_init=no
37242 rm -f conftest.err conftest.$ac_objext \
37243 conftest$ac_exeext conftest.$ac_ext
37244 LIBS=$ac_check_lib_save_LIBS
37246 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37247 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37248 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37249 ol_link_sasl="-lsasl"
37256 if test $ol_link_sasl = no ; then
37257 if test $ol_with_cyrus_sasl != auto ; then
37258 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37259 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37260 { (exit 1); exit 1; }; }
37262 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37263 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37264 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37265 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37266 if test $ol_link_tls = no ; then
37267 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37268 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37272 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37273 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37274 if test "${ol_cv_sasl_compat+set}" = set; then
37275 echo $ECHO_N "(cached) $ECHO_C" >&6
37278 cat >conftest.$ac_ext <<_ACEOF
37281 cat confdefs.h >>conftest.$ac_ext
37282 cat >>conftest.$ac_ext <<_ACEOF
37283 /* end confdefs.h. */
37285 #ifdef HAVE_SASL_SASL_H
37286 #include <sasl/sasl.h>
37291 /* Require 2.1.15+ */
37292 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37293 char *__sasl_compat = "2.2+ or better okay (we guess)";
37294 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37295 && SASL_VERSION_STEP >=15
37296 char *__sasl_compat = "2.1.15+ or better okay";
37300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37301 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37302 ol_cv_sasl_compat=yes
37304 ol_cv_sasl_compat=no
37309 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37310 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37312 if test $ol_cv_sasl_compat = no ; then
37314 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37315 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37316 { (exit 1); exit 1; }; }
37320 cat >>confdefs.h <<\_ACEOF
37321 #define HAVE_CYRUS_SASL 1
37324 SASL_LIBS="$ol_link_sasl"
37325 if test $ol_enable_spasswd != no ; then
37326 ol_link_spasswd=yes
37329 ac_save_LIBS="$LIBS"
37330 LIBS="$LIBS $ol_link_sasl"
37331 echo "$as_me:$LINENO: checking for sasl_version" >&5
37332 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37333 if test "${ac_cv_func_sasl_version+set}" = set; then
37334 echo $ECHO_N "(cached) $ECHO_C" >&6
37336 cat >conftest.$ac_ext <<_ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h. */
37342 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37344 #define sasl_version innocuous_sasl_version
37346 /* System header to define __stub macros and hopefully few prototypes,
37347 which can conflict with char sasl_version (); below.
37348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37349 <limits.h> exists even on freestanding compilers. */
37352 # include <limits.h>
37354 # include <assert.h>
37357 #undef sasl_version
37359 /* Override any gcc2 internal prototype to avoid an error. */
37364 /* We use char because int might match the return type of a gcc2
37365 builtin and then its argument prototype would still apply. */
37366 char sasl_version ();
37367 /* The GNU C library defines this for functions which it implements
37368 to always fail with ENOSYS. Some functions are actually named
37369 something starting with __ and the normal name is an alias. */
37370 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37373 char (*f) () = sasl_version;
37382 return f != sasl_version;
37387 rm -f conftest.$ac_objext conftest$ac_exeext
37388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37389 (eval $ac_link) 2>conftest.er1
37391 grep -v '^ *+' conftest.er1 >conftest.err
37393 cat conftest.err >&5
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); } &&
37396 { ac_try='test -z "$ac_c_werror_flag"
37397 || test ! -s conftest.err'
37398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399 (eval $ac_try) 2>&5
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); }; } &&
37403 { ac_try='test -s conftest$ac_exeext'
37404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37405 (eval $ac_try) 2>&5
37407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408 (exit $ac_status); }; }; then
37409 ac_cv_func_sasl_version=yes
37411 echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37414 ac_cv_func_sasl_version=no
37416 rm -f conftest.err conftest.$ac_objext \
37417 conftest$ac_exeext conftest.$ac_ext
37419 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37420 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37421 if test $ac_cv_func_sasl_version = yes; then
37423 cat >>confdefs.h <<\_ACEOF
37424 #define HAVE_SASL_VERSION 1
37429 LIBS="$ac_save_LIBS"
37435 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37436 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37437 if test $ol_link_tls = no ; then
37438 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37439 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37443 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37445 if test -r /dev/urandom ; then
37446 dev="/dev/urandom";
37447 elif test -r /idev/urandom ; then
37448 dev="/idev/urandom";
37449 elif test -r /dev/srandom ; then
37450 dev="/dev/srandom";
37451 elif test -r /dev/random ; then
37453 elif test -r /idev/random ; then
37454 dev="/idev/random";
37457 if test $dev != no ; then
37459 cat >>confdefs.h <<_ACEOF
37460 #define URANDOM_DEVICE "$dev"
37467 if test $ol_with_fetch != no ; then
37469 LIBS="-lfetch -lcom_err $LIBS"
37470 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37471 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37472 if test "${ol_cv_lib_fetch+set}" = set; then
37473 echo $ECHO_N "(cached) $ECHO_C" >&6
37476 cat >conftest.$ac_ext <<_ACEOF
37479 cat confdefs.h >>conftest.$ac_ext
37480 cat >>conftest.$ac_ext <<_ACEOF
37481 /* end confdefs.h. */
37483 #include <sys/param.h>
37489 struct url *u = fetchParseURL("file:///");
37494 rm -f conftest.$ac_objext conftest$ac_exeext
37495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37496 (eval $ac_link) 2>conftest.er1
37498 grep -v '^ *+' conftest.er1 >conftest.err
37500 cat conftest.err >&5
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); } &&
37503 { ac_try='test -z "$ac_c_werror_flag"
37504 || test ! -s conftest.err'
37505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37506 (eval $ac_try) 2>&5
37508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509 (exit $ac_status); }; } &&
37510 { ac_try='test -s conftest$ac_exeext'
37511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37512 (eval $ac_try) 2>&5
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); }; }; then
37516 ol_cv_lib_fetch=yes
37518 echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37523 rm -f conftest.err conftest.$ac_objext \
37524 conftest$ac_exeext conftest.$ac_ext
37526 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37527 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37529 if test $ol_cv_lib_fetch != no ; then
37530 ol_link_fetch="-lfetch -lcom_err"
37532 cat >>confdefs.h <<\_ACEOF
37533 #define HAVE_FETCH 1
37539 if test $ol_cv_lib_fetch != no ; then
37540 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37541 ol_link_fetch=freebsd
37543 elif test $ol_with_fetch != auto ; then
37544 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37545 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37546 { (exit 1); exit 1; }; }
37550 if test $ol_enable_crypt != no ; then
37552 LIBS="$TLS_LIBS $LIBS"
37554 echo "$as_me:$LINENO: checking for crypt" >&5
37555 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37556 if test "${ac_cv_func_crypt+set}" = set; then
37557 echo $ECHO_N "(cached) $ECHO_C" >&6
37559 cat >conftest.$ac_ext <<_ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h. */
37565 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37567 #define crypt innocuous_crypt
37569 /* System header to define __stub macros and hopefully few prototypes,
37570 which can conflict with char crypt (); below.
37571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37572 <limits.h> exists even on freestanding compilers. */
37575 # include <limits.h>
37577 # include <assert.h>
37582 /* Override any gcc2 internal prototype to avoid an error. */
37587 /* We use char because int might match the return type of a gcc2
37588 builtin and then its argument prototype would still apply. */
37590 /* The GNU C library defines this for functions which it implements
37591 to always fail with ENOSYS. Some functions are actually named
37592 something starting with __ and the normal name is an alias. */
37593 #if defined (__stub_crypt) || defined (__stub___crypt)
37596 char (*f) () = crypt;
37610 rm -f conftest.$ac_objext conftest$ac_exeext
37611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37612 (eval $ac_link) 2>conftest.er1
37614 grep -v '^ *+' conftest.er1 >conftest.err
37616 cat conftest.err >&5
37617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); } &&
37619 { ac_try='test -z "$ac_c_werror_flag"
37620 || test ! -s conftest.err'
37621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37622 (eval $ac_try) 2>&5
37624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625 (exit $ac_status); }; } &&
37626 { ac_try='test -s conftest$ac_exeext'
37627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37628 (eval $ac_try) 2>&5
37630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37631 (exit $ac_status); }; }; then
37632 ac_cv_func_crypt=yes
37634 echo "$as_me: failed program was:" >&5
37635 sed 's/^/| /' conftest.$ac_ext >&5
37637 ac_cv_func_crypt=no
37639 rm -f conftest.err conftest.$ac_objext \
37640 conftest$ac_exeext conftest.$ac_ext
37642 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37643 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37644 if test $ac_cv_func_crypt = yes; then
37649 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37650 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37651 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37652 echo $ECHO_N "(cached) $ECHO_C" >&6
37654 ac_check_lib_save_LIBS=$LIBS
37655 LIBS="-lcrypt $LIBS"
37656 cat >conftest.$ac_ext <<_ACEOF
37659 cat confdefs.h >>conftest.$ac_ext
37660 cat >>conftest.$ac_ext <<_ACEOF
37661 /* end confdefs.h. */
37663 /* Override any gcc2 internal prototype to avoid an error. */
37667 /* We use char because int might match the return type of a gcc2
37668 builtin and then its argument prototype would still apply. */
37678 rm -f conftest.$ac_objext conftest$ac_exeext
37679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37680 (eval $ac_link) 2>conftest.er1
37682 grep -v '^ *+' conftest.er1 >conftest.err
37684 cat conftest.err >&5
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); } &&
37687 { ac_try='test -z "$ac_c_werror_flag"
37688 || test ! -s conftest.err'
37689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37690 (eval $ac_try) 2>&5
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); }; } &&
37694 { ac_try='test -s conftest$ac_exeext'
37695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37696 (eval $ac_try) 2>&5
37698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699 (exit $ac_status); }; }; then
37700 ac_cv_lib_crypt_crypt=yes
37702 echo "$as_me: failed program was:" >&5
37703 sed 's/^/| /' conftest.$ac_ext >&5
37705 ac_cv_lib_crypt_crypt=no
37707 rm -f conftest.err conftest.$ac_objext \
37708 conftest$ac_exeext conftest.$ac_ext
37709 LIBS=$ac_check_lib_save_LIBS
37711 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37712 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37713 if test $ac_cv_lib_crypt_crypt = yes; then
37714 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37725 if test $have_crypt = yes ; then
37727 cat >>confdefs.h <<\_ACEOF
37728 #define HAVE_CRYPT 1
37732 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37733 echo "$as_me: WARNING: could not find crypt" >&2;}
37734 if test $ol_enable_crypt = yes ; then
37735 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37736 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37737 { (exit 1); exit 1; }; }
37740 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37741 echo "$as_me: WARNING: disabling crypt support" >&2;}
37746 if test $ol_enable_proctitle != no ; then
37747 echo "$as_me:$LINENO: checking for setproctitle" >&5
37748 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37749 if test "${ac_cv_func_setproctitle+set}" = set; then
37750 echo $ECHO_N "(cached) $ECHO_C" >&6
37752 cat >conftest.$ac_ext <<_ACEOF
37755 cat confdefs.h >>conftest.$ac_ext
37756 cat >>conftest.$ac_ext <<_ACEOF
37757 /* end confdefs.h. */
37758 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37760 #define setproctitle innocuous_setproctitle
37762 /* System header to define __stub macros and hopefully few prototypes,
37763 which can conflict with char setproctitle (); below.
37764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37765 <limits.h> exists even on freestanding compilers. */
37768 # include <limits.h>
37770 # include <assert.h>
37773 #undef setproctitle
37775 /* Override any gcc2 internal prototype to avoid an error. */
37780 /* We use char because int might match the return type of a gcc2
37781 builtin and then its argument prototype would still apply. */
37782 char setproctitle ();
37783 /* The GNU C library defines this for functions which it implements
37784 to always fail with ENOSYS. Some functions are actually named
37785 something starting with __ and the normal name is an alias. */
37786 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37789 char (*f) () = setproctitle;
37798 return f != setproctitle;
37803 rm -f conftest.$ac_objext conftest$ac_exeext
37804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37805 (eval $ac_link) 2>conftest.er1
37807 grep -v '^ *+' conftest.er1 >conftest.err
37809 cat conftest.err >&5
37810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811 (exit $ac_status); } &&
37812 { ac_try='test -z "$ac_c_werror_flag"
37813 || test ! -s conftest.err'
37814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37815 (eval $ac_try) 2>&5
37817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37818 (exit $ac_status); }; } &&
37819 { ac_try='test -s conftest$ac_exeext'
37820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37821 (eval $ac_try) 2>&5
37823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824 (exit $ac_status); }; }; then
37825 ac_cv_func_setproctitle=yes
37827 echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37830 ac_cv_func_setproctitle=no
37832 rm -f conftest.err conftest.$ac_objext \
37833 conftest$ac_exeext conftest.$ac_ext
37835 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37836 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37837 if test $ac_cv_func_setproctitle = yes; then
37838 have_setproctitle=yes
37841 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37842 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37843 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37844 echo $ECHO_N "(cached) $ECHO_C" >&6
37846 ac_check_lib_save_LIBS=$LIBS
37847 LIBS="-lutil $LIBS"
37848 cat >conftest.$ac_ext <<_ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h. */
37855 /* Override any gcc2 internal prototype to avoid an error. */
37859 /* We use char because int might match the return type of a gcc2
37860 builtin and then its argument prototype would still apply. */
37861 char setproctitle ();
37870 rm -f conftest.$ac_objext conftest$ac_exeext
37871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37872 (eval $ac_link) 2>conftest.er1
37874 grep -v '^ *+' conftest.er1 >conftest.err
37876 cat conftest.err >&5
37877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878 (exit $ac_status); } &&
37879 { ac_try='test -z "$ac_c_werror_flag"
37880 || test ! -s conftest.err'
37881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37882 (eval $ac_try) 2>&5
37884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885 (exit $ac_status); }; } &&
37886 { ac_try='test -s conftest$ac_exeext'
37887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37888 (eval $ac_try) 2>&5
37890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891 (exit $ac_status); }; }; then
37892 ac_cv_lib_util_setproctitle=yes
37894 echo "$as_me: failed program was:" >&5
37895 sed 's/^/| /' conftest.$ac_ext >&5
37897 ac_cv_lib_util_setproctitle=no
37899 rm -f conftest.err conftest.$ac_objext \
37900 conftest$ac_exeext conftest.$ac_ext
37901 LIBS=$ac_check_lib_save_LIBS
37903 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37904 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37905 if test $ac_cv_lib_util_setproctitle = yes; then
37906 have_setproctitle=yes
37907 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37909 have_setproctitle=no
37911 "setproctitle.$ac_objext" | \
37912 *" setproctitle.$ac_objext" | \
37913 "setproctitle.$ac_objext "* | \
37914 *" setproctitle.$ac_objext "* ) ;;
37915 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37918 LIBSRCS="$LIBSRCS setproctitle.c"
37924 if test $have_setproctitle = yes ; then
37926 cat >>confdefs.h <<\_ACEOF
37927 #define HAVE_SETPROCTITLE 1
37933 if test $ol_enable_slp != no ; then
37935 for ac_header in slp.h
37937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37939 echo "$as_me:$LINENO: checking for $ac_header" >&5
37940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37942 echo $ECHO_N "(cached) $ECHO_C" >&6
37944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37947 # Is the header compilable?
37948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37950 cat >conftest.$ac_ext <<_ACEOF
37953 cat confdefs.h >>conftest.$ac_ext
37954 cat >>conftest.$ac_ext <<_ACEOF
37955 /* end confdefs.h. */
37956 $ac_includes_default
37957 #include <$ac_header>
37959 rm -f conftest.$ac_objext
37960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37961 (eval $ac_compile) 2>conftest.er1
37963 grep -v '^ *+' conftest.er1 >conftest.err
37965 cat conftest.err >&5
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } &&
37968 { ac_try='test -z "$ac_c_werror_flag"
37969 || test ! -s conftest.err'
37970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971 (eval $ac_try) 2>&5
37973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974 (exit $ac_status); }; } &&
37975 { ac_try='test -s conftest.$ac_objext'
37976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37977 (eval $ac_try) 2>&5
37979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980 (exit $ac_status); }; }; then
37981 ac_header_compiler=yes
37983 echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37986 ac_header_compiler=no
37988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37990 echo "${ECHO_T}$ac_header_compiler" >&6
37992 # Is the header present?
37993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37995 cat >conftest.$ac_ext <<_ACEOF
37998 cat confdefs.h >>conftest.$ac_ext
37999 cat >>conftest.$ac_ext <<_ACEOF
38000 /* end confdefs.h. */
38001 #include <$ac_header>
38003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38006 grep -v '^ *+' conftest.er1 >conftest.err
38008 cat conftest.err >&5
38009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010 (exit $ac_status); } >/dev/null; then
38011 if test -s conftest.err; then
38012 ac_cpp_err=$ac_c_preproc_warn_flag
38013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38020 if test -z "$ac_cpp_err"; then
38021 ac_header_preproc=yes
38023 echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38026 ac_header_preproc=no
38028 rm -f conftest.err conftest.$ac_ext
38029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38030 echo "${ECHO_T}$ac_header_preproc" >&6
38032 # So? What about this header?
38033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38039 ac_header_preproc=yes
38042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38056 ## ------------------------------------------ ##
38057 ## Report this to the AC_PACKAGE_NAME lists. ##
38058 ## ------------------------------------------ ##
38061 sed "s/^/$as_me: WARNING: /" >&2
38064 echo "$as_me:$LINENO: checking for $ac_header" >&5
38065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38069 eval "$as_ac_Header=\$ac_header_preproc"
38071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38076 cat >>confdefs.h <<_ACEOF
38077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38085 if test $ac_cv_header_slp_h = yes ; then
38086 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38087 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38088 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38089 echo $ECHO_N "(cached) $ECHO_C" >&6
38091 ac_check_lib_save_LIBS=$LIBS
38093 cat >conftest.$ac_ext <<_ACEOF
38096 cat confdefs.h >>conftest.$ac_ext
38097 cat >>conftest.$ac_ext <<_ACEOF
38098 /* end confdefs.h. */
38100 /* Override any gcc2 internal prototype to avoid an error. */
38104 /* We use char because int might match the return type of a gcc2
38105 builtin and then its argument prototype would still apply. */
38115 rm -f conftest.$ac_objext conftest$ac_exeext
38116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38117 (eval $ac_link) 2>conftest.er1
38119 grep -v '^ *+' conftest.er1 >conftest.err
38121 cat conftest.err >&5
38122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123 (exit $ac_status); } &&
38124 { ac_try='test -z "$ac_c_werror_flag"
38125 || test ! -s conftest.err'
38126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38127 (eval $ac_try) 2>&5
38129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130 (exit $ac_status); }; } &&
38131 { ac_try='test -s conftest$ac_exeext'
38132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38133 (eval $ac_try) 2>&5
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); }; }; then
38137 ac_cv_lib_slp_SLPOpen=yes
38139 echo "$as_me: failed program was:" >&5
38140 sed 's/^/| /' conftest.$ac_ext >&5
38142 ac_cv_lib_slp_SLPOpen=no
38144 rm -f conftest.err conftest.$ac_objext \
38145 conftest$ac_exeext conftest.$ac_ext
38146 LIBS=$ac_check_lib_save_LIBS
38148 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38149 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38150 if test $ac_cv_lib_slp_SLPOpen = yes; then
38156 if test $have_slp = yes ; then
38158 cat >>confdefs.h <<\_ACEOF
38162 SLAPD_SLP_LIBS=-lslp
38165 elif test $ol_enable_slp = yes ; then
38166 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38167 echo "$as_me: error: SLP not found" >&2;}
38168 { (exit 1); exit 1; }; }
38172 if test "$ol_with_multiple_precision" != "no" ; then
38178 for ac_header in openssl/bn.h bn.h
38180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38182 echo "$as_me:$LINENO: checking for $ac_header" >&5
38183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38190 # Is the header compilable?
38191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38193 cat >conftest.$ac_ext <<_ACEOF
38196 cat confdefs.h >>conftest.$ac_ext
38197 cat >>conftest.$ac_ext <<_ACEOF
38198 /* end confdefs.h. */
38199 $ac_includes_default
38200 #include <$ac_header>
38202 rm -f conftest.$ac_objext
38203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38204 (eval $ac_compile) 2>conftest.er1
38206 grep -v '^ *+' conftest.er1 >conftest.err
38208 cat conftest.err >&5
38209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38210 (exit $ac_status); } &&
38211 { ac_try='test -z "$ac_c_werror_flag"
38212 || test ! -s conftest.err'
38213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38214 (eval $ac_try) 2>&5
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); }; } &&
38218 { ac_try='test -s conftest.$ac_objext'
38219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220 (eval $ac_try) 2>&5
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); }; }; then
38224 ac_header_compiler=yes
38226 echo "$as_me: failed program was:" >&5
38227 sed 's/^/| /' conftest.$ac_ext >&5
38229 ac_header_compiler=no
38231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38233 echo "${ECHO_T}$ac_header_compiler" >&6
38235 # Is the header present?
38236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38238 cat >conftest.$ac_ext <<_ACEOF
38241 cat confdefs.h >>conftest.$ac_ext
38242 cat >>conftest.$ac_ext <<_ACEOF
38243 /* end confdefs.h. */
38244 #include <$ac_header>
38246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38249 grep -v '^ *+' conftest.er1 >conftest.err
38251 cat conftest.err >&5
38252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253 (exit $ac_status); } >/dev/null; then
38254 if test -s conftest.err; then
38255 ac_cpp_err=$ac_c_preproc_warn_flag
38256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38263 if test -z "$ac_cpp_err"; then
38264 ac_header_preproc=yes
38266 echo "$as_me: failed program was:" >&5
38267 sed 's/^/| /' conftest.$ac_ext >&5
38269 ac_header_preproc=no
38271 rm -f conftest.err conftest.$ac_ext
38272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38273 echo "${ECHO_T}$ac_header_preproc" >&6
38275 # So? What about this header?
38276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38282 ac_header_preproc=yes
38285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38299 ## ------------------------------------------ ##
38300 ## Report this to the AC_PACKAGE_NAME lists. ##
38301 ## ------------------------------------------ ##
38304 sed "s/^/$as_me: WARNING: /" >&2
38307 echo "$as_me:$LINENO: checking for $ac_header" >&5
38308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38310 echo $ECHO_N "(cached) $ECHO_C" >&6
38312 eval "$as_ac_Header=\$ac_header_preproc"
38314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38319 cat >>confdefs.h <<_ACEOF
38320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38329 for ac_header in openssl/crypto.h crypto.h
38331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38333 echo "$as_me:$LINENO: checking for $ac_header" >&5
38334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38336 echo $ECHO_N "(cached) $ECHO_C" >&6
38338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38341 # Is the header compilable?
38342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38344 cat >conftest.$ac_ext <<_ACEOF
38347 cat confdefs.h >>conftest.$ac_ext
38348 cat >>conftest.$ac_ext <<_ACEOF
38349 /* end confdefs.h. */
38350 $ac_includes_default
38351 #include <$ac_header>
38353 rm -f conftest.$ac_objext
38354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38355 (eval $ac_compile) 2>conftest.er1
38357 grep -v '^ *+' conftest.er1 >conftest.err
38359 cat conftest.err >&5
38360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361 (exit $ac_status); } &&
38362 { ac_try='test -z "$ac_c_werror_flag"
38363 || test ! -s conftest.err'
38364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365 (eval $ac_try) 2>&5
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); }; } &&
38369 { ac_try='test -s conftest.$ac_objext'
38370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371 (eval $ac_try) 2>&5
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); }; }; then
38375 ac_header_compiler=yes
38377 echo "$as_me: failed program was:" >&5
38378 sed 's/^/| /' conftest.$ac_ext >&5
38380 ac_header_compiler=no
38382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38384 echo "${ECHO_T}$ac_header_compiler" >&6
38386 # Is the header present?
38387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38389 cat >conftest.$ac_ext <<_ACEOF
38392 cat confdefs.h >>conftest.$ac_ext
38393 cat >>conftest.$ac_ext <<_ACEOF
38394 /* end confdefs.h. */
38395 #include <$ac_header>
38397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38400 grep -v '^ *+' conftest.er1 >conftest.err
38402 cat conftest.err >&5
38403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404 (exit $ac_status); } >/dev/null; then
38405 if test -s conftest.err; then
38406 ac_cpp_err=$ac_c_preproc_warn_flag
38407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38414 if test -z "$ac_cpp_err"; then
38415 ac_header_preproc=yes
38417 echo "$as_me: failed program was:" >&5
38418 sed 's/^/| /' conftest.$ac_ext >&5
38420 ac_header_preproc=no
38422 rm -f conftest.err conftest.$ac_ext
38423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38424 echo "${ECHO_T}$ac_header_preproc" >&6
38426 # So? What about this header?
38427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38433 ac_header_preproc=yes
38436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38450 ## ------------------------------------------ ##
38451 ## Report this to the AC_PACKAGE_NAME lists. ##
38452 ## ------------------------------------------ ##
38455 sed "s/^/$as_me: WARNING: /" >&2
38458 echo "$as_me:$LINENO: checking for $ac_header" >&5
38459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38461 echo $ECHO_N "(cached) $ECHO_C" >&6
38463 eval "$as_ac_Header=\$ac_header_preproc"
38465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38470 cat >>confdefs.h <<_ACEOF
38471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38479 for ac_header in gmp.h
38481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38483 echo "$as_me:$LINENO: checking for $ac_header" >&5
38484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38486 echo $ECHO_N "(cached) $ECHO_C" >&6
38488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38491 # Is the header compilable?
38492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38494 cat >conftest.$ac_ext <<_ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h. */
38500 $ac_includes_default
38501 #include <$ac_header>
38503 rm -f conftest.$ac_objext
38504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38505 (eval $ac_compile) 2>conftest.er1
38507 grep -v '^ *+' conftest.er1 >conftest.err
38509 cat conftest.err >&5
38510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511 (exit $ac_status); } &&
38512 { ac_try='test -z "$ac_c_werror_flag"
38513 || test ! -s conftest.err'
38514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515 (eval $ac_try) 2>&5
38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518 (exit $ac_status); }; } &&
38519 { ac_try='test -s conftest.$ac_objext'
38520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38521 (eval $ac_try) 2>&5
38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524 (exit $ac_status); }; }; then
38525 ac_header_compiler=yes
38527 echo "$as_me: failed program was:" >&5
38528 sed 's/^/| /' conftest.$ac_ext >&5
38530 ac_header_compiler=no
38532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38534 echo "${ECHO_T}$ac_header_compiler" >&6
38536 # Is the header present?
38537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38539 cat >conftest.$ac_ext <<_ACEOF
38542 cat confdefs.h >>conftest.$ac_ext
38543 cat >>conftest.$ac_ext <<_ACEOF
38544 /* end confdefs.h. */
38545 #include <$ac_header>
38547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38550 grep -v '^ *+' conftest.er1 >conftest.err
38552 cat conftest.err >&5
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); } >/dev/null; then
38555 if test -s conftest.err; then
38556 ac_cpp_err=$ac_c_preproc_warn_flag
38557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38564 if test -z "$ac_cpp_err"; then
38565 ac_header_preproc=yes
38567 echo "$as_me: failed program was:" >&5
38568 sed 's/^/| /' conftest.$ac_ext >&5
38570 ac_header_preproc=no
38572 rm -f conftest.err conftest.$ac_ext
38573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38574 echo "${ECHO_T}$ac_header_preproc" >&6
38576 # So? What about this header?
38577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38583 ac_header_preproc=yes
38586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38600 ## ------------------------------------------ ##
38601 ## Report this to the AC_PACKAGE_NAME lists. ##
38602 ## ------------------------------------------ ##
38605 sed "s/^/$as_me: WARNING: /" >&2
38608 echo "$as_me:$LINENO: checking for $ac_header" >&5
38609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38611 echo $ECHO_N "(cached) $ECHO_C" >&6
38613 eval "$as_ac_Header=\$ac_header_preproc"
38615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38620 cat >>confdefs.h <<_ACEOF
38621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38629 if test "$ol_with_tls" = "found" ; then
38631 ol_have_crypto_h=no
38633 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38634 test "$ac_cv_header_bn_h" = "yes" ; then
38638 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38639 test "$ac_cv_header_crypto_h" = "yes" ; then
38640 ol_have_crypto_h=yes
38643 if test "$ol_have_bn_h" = "yes" &&
38644 test "$ol_have_crypto_h" = "yes" ; then
38649 if test $ac_cv_header_gmp_h = yes ; then
38650 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38651 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38652 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38653 echo $ECHO_N "(cached) $ECHO_C" >&6
38655 ac_check_lib_save_LIBS=$LIBS
38657 cat >conftest.$ac_ext <<_ACEOF
38660 cat confdefs.h >>conftest.$ac_ext
38661 cat >>conftest.$ac_ext <<_ACEOF
38662 /* end confdefs.h. */
38664 /* Override any gcc2 internal prototype to avoid an error. */
38668 /* We use char because int might match the return type of a gcc2
38669 builtin and then its argument prototype would still apply. */
38670 char __gmpz_add_ui ();
38679 rm -f conftest.$ac_objext conftest$ac_exeext
38680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38681 (eval $ac_link) 2>conftest.er1
38683 grep -v '^ *+' conftest.er1 >conftest.err
38685 cat conftest.err >&5
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); } &&
38688 { ac_try='test -z "$ac_c_werror_flag"
38689 || test ! -s conftest.err'
38690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691 (eval $ac_try) 2>&5
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); }; } &&
38695 { ac_try='test -s conftest$ac_exeext'
38696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697 (eval $ac_try) 2>&5
38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); }; }; then
38701 ac_cv_lib_gmp___gmpz_add_ui=yes
38703 echo "$as_me: failed program was:" >&5
38704 sed 's/^/| /' conftest.$ac_ext >&5
38706 ac_cv_lib_gmp___gmpz_add_ui=no
38708 rm -f conftest.err conftest.$ac_objext \
38709 conftest$ac_exeext conftest.$ac_ext
38710 LIBS=$ac_check_lib_save_LIBS
38712 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38713 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38714 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38720 if test $have_gmp = yes ; then
38725 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38726 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38728 ol_mp_support="none"
38729 case "$ol_with_multiple_precision" in
38731 if test "$ol_have_bignum" = "yes" ; then
38732 ol_mp_support="bignum"
38734 if test "$ol_have_gmp" = "yes" ; then
38735 ol_mp_support="gmp"
38740 if test "$ol_have_bignum" != "yes" ; then
38741 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38742 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38743 { (exit 1); exit 1; }; }
38745 ol_mp_support="bignum"
38748 if test "$ol_have_gmp" != "yes" ; then
38749 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38750 echo "$as_me: error: GMP not available" >&2;}
38751 { (exit 1); exit 1; }; }
38753 ol_mp_support="gmp"
38756 if test "$ol_have_bignum" = "yes" ; then
38757 ol_mp_support="bignum"
38758 elif test "$ol_have_gmp" = "yes" ; then
38759 ol_mp_support="gmp"
38761 { { echo "$as_me:$LINENO: error: not available" >&5
38762 echo "$as_me: error: not available" >&2;}
38763 { (exit 1); exit 1; }; }
38768 case "$ol_mp_support" in
38771 cat >>confdefs.h <<\_ACEOF
38772 #define HAVE_BIGNUM 1
38778 cat >>confdefs.h <<\_ACEOF
38782 SLAPD_GMP_LIBS=-lgmp
38788 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38789 echo "${ECHO_T}$ol_mp_support" >&6
38793 echo "$as_me:$LINENO: checking for mode_t" >&5
38794 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38795 if test "${ac_cv_type_mode_t+set}" = set; then
38796 echo $ECHO_N "(cached) $ECHO_C" >&6
38798 cat >conftest.$ac_ext <<_ACEOF
38801 cat confdefs.h >>conftest.$ac_ext
38802 cat >>conftest.$ac_ext <<_ACEOF
38803 /* end confdefs.h. */
38804 $ac_includes_default
38810 if (sizeof (mode_t))
38816 rm -f conftest.$ac_objext
38817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38818 (eval $ac_compile) 2>conftest.er1
38820 grep -v '^ *+' conftest.er1 >conftest.err
38822 cat conftest.err >&5
38823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824 (exit $ac_status); } &&
38825 { ac_try='test -z "$ac_c_werror_flag"
38826 || test ! -s conftest.err'
38827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38828 (eval $ac_try) 2>&5
38830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38831 (exit $ac_status); }; } &&
38832 { ac_try='test -s conftest.$ac_objext'
38833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38834 (eval $ac_try) 2>&5
38836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); }; }; then
38838 ac_cv_type_mode_t=yes
38840 echo "$as_me: failed program was:" >&5
38841 sed 's/^/| /' conftest.$ac_ext >&5
38843 ac_cv_type_mode_t=no
38845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38847 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38848 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38849 if test $ac_cv_type_mode_t = yes; then
38853 cat >>confdefs.h <<_ACEOF
38859 echo "$as_me:$LINENO: checking for off_t" >&5
38860 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38861 if test "${ac_cv_type_off_t+set}" = set; then
38862 echo $ECHO_N "(cached) $ECHO_C" >&6
38864 cat >conftest.$ac_ext <<_ACEOF
38867 cat confdefs.h >>conftest.$ac_ext
38868 cat >>conftest.$ac_ext <<_ACEOF
38869 /* end confdefs.h. */
38870 $ac_includes_default
38876 if (sizeof (off_t))
38882 rm -f conftest.$ac_objext
38883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38884 (eval $ac_compile) 2>conftest.er1
38886 grep -v '^ *+' conftest.er1 >conftest.err
38888 cat conftest.err >&5
38889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890 (exit $ac_status); } &&
38891 { ac_try='test -z "$ac_c_werror_flag"
38892 || test ! -s conftest.err'
38893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38894 (eval $ac_try) 2>&5
38896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897 (exit $ac_status); }; } &&
38898 { ac_try='test -s conftest.$ac_objext'
38899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900 (eval $ac_try) 2>&5
38902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903 (exit $ac_status); }; }; then
38904 ac_cv_type_off_t=yes
38906 echo "$as_me: failed program was:" >&5
38907 sed 's/^/| /' conftest.$ac_ext >&5
38909 ac_cv_type_off_t=no
38911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38913 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38914 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38915 if test $ac_cv_type_off_t = yes; then
38919 cat >>confdefs.h <<_ACEOF
38925 echo "$as_me:$LINENO: checking for pid_t" >&5
38926 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38927 if test "${ac_cv_type_pid_t+set}" = set; then
38928 echo $ECHO_N "(cached) $ECHO_C" >&6
38930 cat >conftest.$ac_ext <<_ACEOF
38933 cat confdefs.h >>conftest.$ac_ext
38934 cat >>conftest.$ac_ext <<_ACEOF
38935 /* end confdefs.h. */
38936 $ac_includes_default
38942 if (sizeof (pid_t))
38948 rm -f conftest.$ac_objext
38949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38950 (eval $ac_compile) 2>conftest.er1
38952 grep -v '^ *+' conftest.er1 >conftest.err
38954 cat conftest.err >&5
38955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956 (exit $ac_status); } &&
38957 { ac_try='test -z "$ac_c_werror_flag"
38958 || test ! -s conftest.err'
38959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960 (eval $ac_try) 2>&5
38962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); }; } &&
38964 { ac_try='test -s conftest.$ac_objext'
38965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38966 (eval $ac_try) 2>&5
38968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969 (exit $ac_status); }; }; then
38970 ac_cv_type_pid_t=yes
38972 echo "$as_me: failed program was:" >&5
38973 sed 's/^/| /' conftest.$ac_ext >&5
38975 ac_cv_type_pid_t=no
38977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38979 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38980 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38981 if test $ac_cv_type_pid_t = yes; then
38985 cat >>confdefs.h <<_ACEOF
38991 echo "$as_me:$LINENO: checking for ssize_t" >&5
38992 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38993 if test "${ac_cv_type_ssize_t+set}" = set; then
38994 echo $ECHO_N "(cached) $ECHO_C" >&6
38996 cat >conftest.$ac_ext <<_ACEOF
38999 cat confdefs.h >>conftest.$ac_ext
39000 cat >>conftest.$ac_ext <<_ACEOF
39001 /* end confdefs.h. */
39002 $ac_includes_default
39008 if (sizeof (ssize_t))
39014 rm -f conftest.$ac_objext
39015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39016 (eval $ac_compile) 2>conftest.er1
39018 grep -v '^ *+' conftest.er1 >conftest.err
39020 cat conftest.err >&5
39021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022 (exit $ac_status); } &&
39023 { ac_try='test -z "$ac_c_werror_flag"
39024 || test ! -s conftest.err'
39025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39026 (eval $ac_try) 2>&5
39028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39029 (exit $ac_status); }; } &&
39030 { ac_try='test -s conftest.$ac_objext'
39031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39032 (eval $ac_try) 2>&5
39034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035 (exit $ac_status); }; }; then
39036 ac_cv_type_ssize_t=yes
39038 echo "$as_me: failed program was:" >&5
39039 sed 's/^/| /' conftest.$ac_ext >&5
39041 ac_cv_type_ssize_t=no
39043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39045 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39046 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39047 if test $ac_cv_type_ssize_t = yes; then
39051 cat >>confdefs.h <<_ACEOF
39052 #define ssize_t signed int
39057 echo "$as_me:$LINENO: checking for caddr_t" >&5
39058 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39059 if test "${ac_cv_type_caddr_t+set}" = set; then
39060 echo $ECHO_N "(cached) $ECHO_C" >&6
39062 cat >conftest.$ac_ext <<_ACEOF
39065 cat confdefs.h >>conftest.$ac_ext
39066 cat >>conftest.$ac_ext <<_ACEOF
39067 /* end confdefs.h. */
39068 $ac_includes_default
39074 if (sizeof (caddr_t))
39080 rm -f conftest.$ac_objext
39081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39082 (eval $ac_compile) 2>conftest.er1
39084 grep -v '^ *+' conftest.er1 >conftest.err
39086 cat conftest.err >&5
39087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088 (exit $ac_status); } &&
39089 { ac_try='test -z "$ac_c_werror_flag"
39090 || test ! -s conftest.err'
39091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39092 (eval $ac_try) 2>&5
39094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39095 (exit $ac_status); }; } &&
39096 { ac_try='test -s conftest.$ac_objext'
39097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39098 (eval $ac_try) 2>&5
39100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101 (exit $ac_status); }; }; then
39102 ac_cv_type_caddr_t=yes
39104 echo "$as_me: failed program was:" >&5
39105 sed 's/^/| /' conftest.$ac_ext >&5
39107 ac_cv_type_caddr_t=no
39109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39111 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39112 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39113 if test $ac_cv_type_caddr_t = yes; then
39117 cat >>confdefs.h <<_ACEOF
39118 #define caddr_t char *
39123 echo "$as_me:$LINENO: checking for size_t" >&5
39124 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39125 if test "${ac_cv_type_size_t+set}" = set; then
39126 echo $ECHO_N "(cached) $ECHO_C" >&6
39128 cat >conftest.$ac_ext <<_ACEOF
39131 cat confdefs.h >>conftest.$ac_ext
39132 cat >>conftest.$ac_ext <<_ACEOF
39133 /* end confdefs.h. */
39134 $ac_includes_default
39140 if (sizeof (size_t))
39146 rm -f conftest.$ac_objext
39147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39148 (eval $ac_compile) 2>conftest.er1
39150 grep -v '^ *+' conftest.er1 >conftest.err
39152 cat conftest.err >&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); } &&
39155 { ac_try='test -z "$ac_c_werror_flag"
39156 || test ! -s conftest.err'
39157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39158 (eval $ac_try) 2>&5
39160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161 (exit $ac_status); }; } &&
39162 { ac_try='test -s conftest.$ac_objext'
39163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39164 (eval $ac_try) 2>&5
39166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39167 (exit $ac_status); }; }; then
39168 ac_cv_type_size_t=yes
39170 echo "$as_me: failed program was:" >&5
39171 sed 's/^/| /' conftest.$ac_ext >&5
39173 ac_cv_type_size_t=no
39175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39177 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39178 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39179 if test $ac_cv_type_size_t = yes; then
39183 cat >>confdefs.h <<_ACEOF
39184 #define size_t unsigned
39190 echo "$as_me:$LINENO: checking for long long" >&5
39191 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39192 if test "${ac_cv_type_long_long+set}" = set; then
39193 echo $ECHO_N "(cached) $ECHO_C" >&6
39195 cat >conftest.$ac_ext <<_ACEOF
39198 cat confdefs.h >>conftest.$ac_ext
39199 cat >>conftest.$ac_ext <<_ACEOF
39200 /* end confdefs.h. */
39201 $ac_includes_default
39205 if ((long long *) 0)
39207 if (sizeof (long long))
39213 rm -f conftest.$ac_objext
39214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39215 (eval $ac_compile) 2>conftest.er1
39217 grep -v '^ *+' conftest.er1 >conftest.err
39219 cat conftest.err >&5
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); } &&
39222 { ac_try='test -z "$ac_c_werror_flag"
39223 || test ! -s conftest.err'
39224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225 (eval $ac_try) 2>&5
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); }; } &&
39229 { ac_try='test -s conftest.$ac_objext'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
39235 ac_cv_type_long_long=yes
39237 echo "$as_me: failed program was:" >&5
39238 sed 's/^/| /' conftest.$ac_ext >&5
39240 ac_cv_type_long_long=no
39242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39244 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39245 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39246 if test $ac_cv_type_long_long = yes; then
39248 cat >>confdefs.h <<_ACEOF
39249 #define HAVE_LONG_LONG 1
39255 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39256 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39257 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39258 echo $ECHO_N "(cached) $ECHO_C" >&6
39260 cat >conftest.$ac_ext <<_ACEOF
39263 cat confdefs.h >>conftest.$ac_ext
39264 cat >>conftest.$ac_ext <<_ACEOF
39265 /* end confdefs.h. */
39266 $ac_includes_default
39270 if ((ptrdiff_t *) 0)
39272 if (sizeof (ptrdiff_t))
39278 rm -f conftest.$ac_objext
39279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39280 (eval $ac_compile) 2>conftest.er1
39282 grep -v '^ *+' conftest.er1 >conftest.err
39284 cat conftest.err >&5
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); } &&
39287 { ac_try='test -z "$ac_c_werror_flag"
39288 || test ! -s conftest.err'
39289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39290 (eval $ac_try) 2>&5
39292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293 (exit $ac_status); }; } &&
39294 { ac_try='test -s conftest.$ac_objext'
39295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296 (eval $ac_try) 2>&5
39298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); }; }; then
39300 ac_cv_type_ptrdiff_t=yes
39302 echo "$as_me: failed program was:" >&5
39303 sed 's/^/| /' conftest.$ac_ext >&5
39305 ac_cv_type_ptrdiff_t=no
39307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39309 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39310 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39311 if test $ac_cv_type_ptrdiff_t = yes; then
39313 cat >>confdefs.h <<_ACEOF
39314 #define HAVE_PTRDIFF_T 1
39321 echo "$as_me:$LINENO: checking for socklen_t" >&5
39322 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39323 if test "${ac_cv_type_socklen_t+set}" = set; then
39324 echo $ECHO_N "(cached) $ECHO_C" >&6
39326 cat >conftest.$ac_ext <<_ACEOF
39329 cat confdefs.h >>conftest.$ac_ext
39330 cat >>conftest.$ac_ext <<_ACEOF
39331 /* end confdefs.h. */
39332 $ac_includes_default
39333 #ifdef HAVE_SYS_SOCKET_H
39334 #include <sys/socket.h>
39341 if ((socklen_t *) 0)
39343 if (sizeof (socklen_t))
39349 rm -f conftest.$ac_objext
39350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39351 (eval $ac_compile) 2>conftest.er1
39353 grep -v '^ *+' conftest.er1 >conftest.err
39355 cat conftest.err >&5
39356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357 (exit $ac_status); } &&
39358 { ac_try='test -z "$ac_c_werror_flag"
39359 || test ! -s conftest.err'
39360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39361 (eval $ac_try) 2>&5
39363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364 (exit $ac_status); }; } &&
39365 { ac_try='test -s conftest.$ac_objext'
39366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39367 (eval $ac_try) 2>&5
39369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370 (exit $ac_status); }; }; then
39371 ac_cv_type_socklen_t=yes
39373 echo "$as_me: failed program was:" >&5
39374 sed 's/^/| /' conftest.$ac_ext >&5
39376 ac_cv_type_socklen_t=no
39378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39380 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39381 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39382 if test $ac_cv_type_socklen_t = yes; then
39386 cat >>confdefs.h <<_ACEOF
39387 #define socklen_t int
39393 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39394 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39395 if test "${ac_cv_type_signal+set}" = set; then
39396 echo $ECHO_N "(cached) $ECHO_C" >&6
39398 cat >conftest.$ac_ext <<_ACEOF
39401 cat confdefs.h >>conftest.$ac_ext
39402 cat >>conftest.$ac_ext <<_ACEOF
39403 /* end confdefs.h. */
39404 #include <sys/types.h>
39405 #include <signal.h>
39410 extern "C" void (*signal (int, void (*)(int)))(int);
39412 void (*signal ()) ();
39423 rm -f conftest.$ac_objext
39424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39425 (eval $ac_compile) 2>conftest.er1
39427 grep -v '^ *+' conftest.er1 >conftest.err
39429 cat conftest.err >&5
39430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431 (exit $ac_status); } &&
39432 { ac_try='test -z "$ac_c_werror_flag"
39433 || test ! -s conftest.err'
39434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435 (eval $ac_try) 2>&5
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); }; } &&
39439 { ac_try='test -s conftest.$ac_objext'
39440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441 (eval $ac_try) 2>&5
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); }; }; then
39445 ac_cv_type_signal=void
39447 echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39450 ac_cv_type_signal=int
39452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39454 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39455 echo "${ECHO_T}$ac_cv_type_signal" >&6
39457 cat >>confdefs.h <<_ACEOF
39458 #define RETSIGTYPE $ac_cv_type_signal
39463 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39464 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39465 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39466 echo $ECHO_N "(cached) $ECHO_C" >&6
39468 cat >conftest.$ac_ext <<_ACEOF
39471 cat confdefs.h >>conftest.$ac_ext
39472 cat >>conftest.$ac_ext <<_ACEOF
39473 /* end confdefs.h. */
39474 $ac_includes_default
39475 #include <signal.h>
39481 if ((sig_atomic_t *) 0)
39483 if (sizeof (sig_atomic_t))
39489 rm -f conftest.$ac_objext
39490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39491 (eval $ac_compile) 2>conftest.er1
39493 grep -v '^ *+' conftest.er1 >conftest.err
39495 cat conftest.err >&5
39496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39497 (exit $ac_status); } &&
39498 { ac_try='test -z "$ac_c_werror_flag"
39499 || test ! -s conftest.err'
39500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39501 (eval $ac_try) 2>&5
39503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504 (exit $ac_status); }; } &&
39505 { ac_try='test -s conftest.$ac_objext'
39506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39507 (eval $ac_try) 2>&5
39509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510 (exit $ac_status); }; }; then
39511 ac_cv_type_sig_atomic_t=yes
39513 echo "$as_me: failed program was:" >&5
39514 sed 's/^/| /' conftest.$ac_ext >&5
39516 ac_cv_type_sig_atomic_t=no
39518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39520 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39521 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39522 if test $ac_cv_type_sig_atomic_t = yes; then
39526 cat >>confdefs.h <<_ACEOF
39527 #define sig_atomic_t int
39533 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39534 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39535 if test "${ac_cv_type_uid_t+set}" = set; then
39536 echo $ECHO_N "(cached) $ECHO_C" >&6
39538 cat >conftest.$ac_ext <<_ACEOF
39541 cat confdefs.h >>conftest.$ac_ext
39542 cat >>conftest.$ac_ext <<_ACEOF
39543 /* end confdefs.h. */
39544 #include <sys/types.h>
39547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39548 $EGREP "uid_t" >/dev/null 2>&1; then
39549 ac_cv_type_uid_t=yes
39551 ac_cv_type_uid_t=no
39556 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39557 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39558 if test $ac_cv_type_uid_t = no; then
39560 cat >>confdefs.h <<\_ACEOF
39565 cat >>confdefs.h <<\_ACEOF
39572 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39573 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39574 if test "${ac_cv_header_time+set}" = set; then
39575 echo $ECHO_N "(cached) $ECHO_C" >&6
39577 cat >conftest.$ac_ext <<_ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h. */
39583 #include <sys/types.h>
39584 #include <sys/time.h>
39590 if ((struct tm *) 0)
39596 rm -f conftest.$ac_objext
39597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39598 (eval $ac_compile) 2>conftest.er1
39600 grep -v '^ *+' conftest.er1 >conftest.err
39602 cat conftest.err >&5
39603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604 (exit $ac_status); } &&
39605 { ac_try='test -z "$ac_c_werror_flag"
39606 || test ! -s conftest.err'
39607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39608 (eval $ac_try) 2>&5
39610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611 (exit $ac_status); }; } &&
39612 { ac_try='test -s conftest.$ac_objext'
39613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39614 (eval $ac_try) 2>&5
39616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617 (exit $ac_status); }; }; then
39618 ac_cv_header_time=yes
39620 echo "$as_me: failed program was:" >&5
39621 sed 's/^/| /' conftest.$ac_ext >&5
39623 ac_cv_header_time=no
39625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39627 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39628 echo "${ECHO_T}$ac_cv_header_time" >&6
39629 if test $ac_cv_header_time = yes; then
39631 cat >>confdefs.h <<\_ACEOF
39632 #define TIME_WITH_SYS_TIME 1
39637 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39638 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39639 if test "${ac_cv_struct_tm+set}" = set; then
39640 echo $ECHO_N "(cached) $ECHO_C" >&6
39642 cat >conftest.$ac_ext <<_ACEOF
39645 cat confdefs.h >>conftest.$ac_ext
39646 cat >>conftest.$ac_ext <<_ACEOF
39647 /* end confdefs.h. */
39648 #include <sys/types.h>
39654 struct tm *tp; tp->tm_sec;
39659 rm -f conftest.$ac_objext
39660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39661 (eval $ac_compile) 2>conftest.er1
39663 grep -v '^ *+' conftest.er1 >conftest.err
39665 cat conftest.err >&5
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); } &&
39668 { ac_try='test -z "$ac_c_werror_flag"
39669 || test ! -s conftest.err'
39670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39671 (eval $ac_try) 2>&5
39673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674 (exit $ac_status); }; } &&
39675 { ac_try='test -s conftest.$ac_objext'
39676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39677 (eval $ac_try) 2>&5
39679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680 (exit $ac_status); }; }; then
39681 ac_cv_struct_tm=time.h
39683 echo "$as_me: failed program was:" >&5
39684 sed 's/^/| /' conftest.$ac_ext >&5
39686 ac_cv_struct_tm=sys/time.h
39688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39690 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39691 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39692 if test $ac_cv_struct_tm = sys/time.h; then
39694 cat >>confdefs.h <<\_ACEOF
39695 #define TM_IN_SYS_TIME 1
39700 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39701 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39702 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39703 echo $ECHO_N "(cached) $ECHO_C" >&6
39705 cat >conftest.$ac_ext <<_ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h. */
39711 $ac_includes_default
39715 static struct stat ac_aggr;
39716 if (ac_aggr.st_blksize)
39722 rm -f conftest.$ac_objext
39723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39724 (eval $ac_compile) 2>conftest.er1
39726 grep -v '^ *+' conftest.er1 >conftest.err
39728 cat conftest.err >&5
39729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730 (exit $ac_status); } &&
39731 { ac_try='test -z "$ac_c_werror_flag"
39732 || test ! -s conftest.err'
39733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39734 (eval $ac_try) 2>&5
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); }; } &&
39738 { ac_try='test -s conftest.$ac_objext'
39739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39740 (eval $ac_try) 2>&5
39742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743 (exit $ac_status); }; }; then
39744 ac_cv_member_struct_stat_st_blksize=yes
39746 echo "$as_me: failed program was:" >&5
39747 sed 's/^/| /' conftest.$ac_ext >&5
39749 cat >conftest.$ac_ext <<_ACEOF
39752 cat confdefs.h >>conftest.$ac_ext
39753 cat >>conftest.$ac_ext <<_ACEOF
39754 /* end confdefs.h. */
39755 $ac_includes_default
39759 static struct stat ac_aggr;
39760 if (sizeof ac_aggr.st_blksize)
39766 rm -f conftest.$ac_objext
39767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39768 (eval $ac_compile) 2>conftest.er1
39770 grep -v '^ *+' conftest.er1 >conftest.err
39772 cat conftest.err >&5
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); } &&
39775 { ac_try='test -z "$ac_c_werror_flag"
39776 || test ! -s conftest.err'
39777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39778 (eval $ac_try) 2>&5
39780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39781 (exit $ac_status); }; } &&
39782 { ac_try='test -s conftest.$ac_objext'
39783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39784 (eval $ac_try) 2>&5
39786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787 (exit $ac_status); }; }; then
39788 ac_cv_member_struct_stat_st_blksize=yes
39790 echo "$as_me: failed program was:" >&5
39791 sed 's/^/| /' conftest.$ac_ext >&5
39793 ac_cv_member_struct_stat_st_blksize=no
39795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39799 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39800 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39801 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39803 cat >>confdefs.h <<_ACEOF
39804 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39810 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39811 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39812 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39813 echo $ECHO_N "(cached) $ECHO_C" >&6
39815 cat >conftest.$ac_ext <<_ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h. */
39821 $ac_includes_default
39827 static struct passwd ac_aggr;
39828 if (ac_aggr.pw_gecos)
39834 rm -f conftest.$ac_objext
39835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39836 (eval $ac_compile) 2>conftest.er1
39838 grep -v '^ *+' conftest.er1 >conftest.err
39840 cat conftest.err >&5
39841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); } &&
39843 { ac_try='test -z "$ac_c_werror_flag"
39844 || test ! -s conftest.err'
39845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39846 (eval $ac_try) 2>&5
39848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849 (exit $ac_status); }; } &&
39850 { ac_try='test -s conftest.$ac_objext'
39851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39852 (eval $ac_try) 2>&5
39854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855 (exit $ac_status); }; }; then
39856 ac_cv_member_struct_passwd_pw_gecos=yes
39858 echo "$as_me: failed program was:" >&5
39859 sed 's/^/| /' conftest.$ac_ext >&5
39861 cat >conftest.$ac_ext <<_ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h. */
39867 $ac_includes_default
39873 static struct passwd ac_aggr;
39874 if (sizeof ac_aggr.pw_gecos)
39880 rm -f conftest.$ac_objext
39881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39882 (eval $ac_compile) 2>conftest.er1
39884 grep -v '^ *+' conftest.er1 >conftest.err
39886 cat conftest.err >&5
39887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888 (exit $ac_status); } &&
39889 { ac_try='test -z "$ac_c_werror_flag"
39890 || test ! -s conftest.err'
39891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39892 (eval $ac_try) 2>&5
39894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39895 (exit $ac_status); }; } &&
39896 { ac_try='test -s conftest.$ac_objext'
39897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39898 (eval $ac_try) 2>&5
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); }; }; then
39902 ac_cv_member_struct_passwd_pw_gecos=yes
39904 echo "$as_me: failed program was:" >&5
39905 sed 's/^/| /' conftest.$ac_ext >&5
39907 ac_cv_member_struct_passwd_pw_gecos=no
39909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39913 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39914 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39915 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39917 cat >>confdefs.h <<_ACEOF
39918 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39924 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39925 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39926 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39927 echo $ECHO_N "(cached) $ECHO_C" >&6
39929 cat >conftest.$ac_ext <<_ACEOF
39932 cat confdefs.h >>conftest.$ac_ext
39933 cat >>conftest.$ac_ext <<_ACEOF
39934 /* end confdefs.h. */
39935 $ac_includes_default
39941 static struct passwd ac_aggr;
39942 if (ac_aggr.pw_passwd)
39948 rm -f conftest.$ac_objext
39949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39950 (eval $ac_compile) 2>conftest.er1
39952 grep -v '^ *+' conftest.er1 >conftest.err
39954 cat conftest.err >&5
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); } &&
39957 { ac_try='test -z "$ac_c_werror_flag"
39958 || test ! -s conftest.err'
39959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39960 (eval $ac_try) 2>&5
39962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39963 (exit $ac_status); }; } &&
39964 { ac_try='test -s conftest.$ac_objext'
39965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39966 (eval $ac_try) 2>&5
39968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969 (exit $ac_status); }; }; then
39970 ac_cv_member_struct_passwd_pw_passwd=yes
39972 echo "$as_me: failed program was:" >&5
39973 sed 's/^/| /' conftest.$ac_ext >&5
39975 cat >conftest.$ac_ext <<_ACEOF
39978 cat confdefs.h >>conftest.$ac_ext
39979 cat >>conftest.$ac_ext <<_ACEOF
39980 /* end confdefs.h. */
39981 $ac_includes_default
39987 static struct passwd ac_aggr;
39988 if (sizeof ac_aggr.pw_passwd)
39994 rm -f conftest.$ac_objext
39995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39996 (eval $ac_compile) 2>conftest.er1
39998 grep -v '^ *+' conftest.er1 >conftest.err
40000 cat conftest.err >&5
40001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002 (exit $ac_status); } &&
40003 { ac_try='test -z "$ac_c_werror_flag"
40004 || test ! -s conftest.err'
40005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40006 (eval $ac_try) 2>&5
40008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40009 (exit $ac_status); }; } &&
40010 { ac_try='test -s conftest.$ac_objext'
40011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40012 (eval $ac_try) 2>&5
40014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015 (exit $ac_status); }; }; then
40016 ac_cv_member_struct_passwd_pw_passwd=yes
40018 echo "$as_me: failed program was:" >&5
40019 sed 's/^/| /' conftest.$ac_ext >&5
40021 ac_cv_member_struct_passwd_pw_passwd=no
40023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40027 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40028 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40029 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40031 cat >>confdefs.h <<_ACEOF
40032 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40039 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40040 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40041 if test "${ol_cv_c_upper_lower+set}" = set; then
40042 echo $ECHO_N "(cached) $ECHO_C" >&6
40045 if test "$cross_compiling" = yes; then
40046 ol_cv_c_upper_lower=safe
40048 cat >conftest.$ac_ext <<_ACEOF
40051 cat confdefs.h >>conftest.$ac_ext
40052 cat >>conftest.$ac_ext <<_ACEOF
40053 /* end confdefs.h. */
40058 if ('C' == toupper('C'))
40064 rm -f conftest$ac_exeext
40065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40066 (eval $ac_link) 2>&5
40068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40071 (eval $ac_try) 2>&5
40073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074 (exit $ac_status); }; }; then
40075 ol_cv_c_upper_lower=no
40077 echo "$as_me: program exited with status $ac_status" >&5
40078 echo "$as_me: failed program was:" >&5
40079 sed 's/^/| /' conftest.$ac_ext >&5
40081 ( exit $ac_status )
40082 ol_cv_c_upper_lower=yes
40084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40087 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40088 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40089 if test $ol_cv_c_upper_lower != no ; then
40091 cat >>confdefs.h <<\_ACEOF
40092 #define C_UPPER_LOWER 1
40097 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40098 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40099 if test "${ac_cv_c_const+set}" = set; then
40100 echo $ECHO_N "(cached) $ECHO_C" >&6
40102 cat >conftest.$ac_ext <<_ACEOF
40105 cat confdefs.h >>conftest.$ac_ext
40106 cat >>conftest.$ac_ext <<_ACEOF
40107 /* end confdefs.h. */
40112 /* FIXME: Include the comments suggested by Paul. */
40113 #ifndef __cplusplus
40114 /* Ultrix mips cc rejects this. */
40115 typedef int charset[2];
40117 /* SunOS 4.1.1 cc rejects this. */
40118 char const *const *ccp;
40120 /* NEC SVR4.0.2 mips cc rejects this. */
40121 struct point {int x, y;};
40122 static struct point const zero = {0,0};
40123 /* AIX XL C 1.02.0.0 rejects this.
40124 It does not let you subtract one const X* pointer from another in
40125 an arm of an if-expression whose if-part is not a constant
40127 const char *g = "string";
40128 ccp = &g + (g ? g-g : 0);
40129 /* HPUX 7.0 cc rejects these. */
40132 ccp = (char const *const *) p;
40133 { /* SCO 3.2v4 cc rejects this. */
40135 char const *s = 0 ? (char *) 0 : (char const *) 0;
40139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40140 int x[] = {25, 17};
40141 const int *foo = &x[0];
40144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40145 typedef const int *iptr;
40149 { /* AIX XL C 1.02.0.0 rejects this saying
40150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40151 struct s { int j; const int *ap[3]; };
40152 struct s *b; b->j = 5;
40154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40155 const int foo = 10;
40163 rm -f conftest.$ac_objext
40164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40165 (eval $ac_compile) 2>conftest.er1
40167 grep -v '^ *+' conftest.er1 >conftest.err
40169 cat conftest.err >&5
40170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171 (exit $ac_status); } &&
40172 { ac_try='test -z "$ac_c_werror_flag"
40173 || test ! -s conftest.err'
40174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40175 (eval $ac_try) 2>&5
40177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178 (exit $ac_status); }; } &&
40179 { ac_try='test -s conftest.$ac_objext'
40180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181 (eval $ac_try) 2>&5
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); }; }; then
40187 echo "$as_me: failed program was:" >&5
40188 sed 's/^/| /' conftest.$ac_ext >&5
40192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40194 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40195 echo "${ECHO_T}$ac_cv_c_const" >&6
40196 if test $ac_cv_c_const = no; then
40198 cat >>confdefs.h <<\_ACEOF
40204 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40205 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40206 if test "${ol_cv_c_volatile+set}" = set; then
40207 echo $ECHO_N "(cached) $ECHO_C" >&6
40209 cat >conftest.$ac_ext <<_ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h. */
40219 volatile int a; int * volatile b = x ? &y : &z;
40220 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40226 rm -f conftest.$ac_objext
40227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40228 (eval $ac_compile) 2>conftest.er1
40230 grep -v '^ *+' conftest.er1 >conftest.err
40232 cat conftest.err >&5
40233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40234 (exit $ac_status); } &&
40235 { ac_try='test -z "$ac_c_werror_flag"
40236 || test ! -s conftest.err'
40237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40238 (eval $ac_try) 2>&5
40240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); }; } &&
40242 { ac_try='test -s conftest.$ac_objext'
40243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40244 (eval $ac_try) 2>&5
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); }; }; then
40248 ol_cv_c_volatile=yes
40250 echo "$as_me: failed program was:" >&5
40251 sed 's/^/| /' conftest.$ac_ext >&5
40253 ol_cv_c_volatile=no
40255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40257 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40258 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40259 if test $ol_cv_c_volatile = yes; then
40263 cat >>confdefs.h <<\_ACEOF
40270 if test $cross_compiling = yes ; then
40271 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40272 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40274 cat >>confdefs.h <<\_ACEOF
40275 #define CROSS_COMPILING 1
40279 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40280 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40281 if test "${ac_cv_c_bigendian+set}" = set; then
40282 echo $ECHO_N "(cached) $ECHO_C" >&6
40284 # See if sys/param.h defines the BYTE_ORDER macro.
40285 cat >conftest.$ac_ext <<_ACEOF
40288 cat confdefs.h >>conftest.$ac_ext
40289 cat >>conftest.$ac_ext <<_ACEOF
40290 /* end confdefs.h. */
40291 #include <sys/types.h>
40292 #include <sys/param.h>
40297 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40298 bogus endian macros
40305 rm -f conftest.$ac_objext
40306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40307 (eval $ac_compile) 2>conftest.er1
40309 grep -v '^ *+' conftest.er1 >conftest.err
40311 cat conftest.err >&5
40312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313 (exit $ac_status); } &&
40314 { ac_try='test -z "$ac_c_werror_flag"
40315 || test ! -s conftest.err'
40316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40317 (eval $ac_try) 2>&5
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); }; } &&
40321 { ac_try='test -s conftest.$ac_objext'
40322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40323 (eval $ac_try) 2>&5
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); }; }; then
40327 # It does; now see whether it defined to BIG_ENDIAN or not.
40328 cat >conftest.$ac_ext <<_ACEOF
40331 cat confdefs.h >>conftest.$ac_ext
40332 cat >>conftest.$ac_ext <<_ACEOF
40333 /* end confdefs.h. */
40334 #include <sys/types.h>
40335 #include <sys/param.h>
40340 #if BYTE_ORDER != BIG_ENDIAN
40348 rm -f conftest.$ac_objext
40349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40350 (eval $ac_compile) 2>conftest.er1
40352 grep -v '^ *+' conftest.er1 >conftest.err
40354 cat conftest.err >&5
40355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356 (exit $ac_status); } &&
40357 { ac_try='test -z "$ac_c_werror_flag"
40358 || test ! -s conftest.err'
40359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40360 (eval $ac_try) 2>&5
40362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363 (exit $ac_status); }; } &&
40364 { ac_try='test -s conftest.$ac_objext'
40365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40366 (eval $ac_try) 2>&5
40368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40369 (exit $ac_status); }; }; then
40370 ac_cv_c_bigendian=yes
40372 echo "$as_me: failed program was:" >&5
40373 sed 's/^/| /' conftest.$ac_ext >&5
40375 ac_cv_c_bigendian=no
40377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40379 echo "$as_me: failed program was:" >&5
40380 sed 's/^/| /' conftest.$ac_ext >&5
40382 # It does not; compile a test program.
40383 if test "$cross_compiling" = yes; then
40384 # try to guess the endianness by grepping values into an object file
40385 ac_cv_c_bigendian=unknown
40386 cat >conftest.$ac_ext <<_ACEOF
40389 cat confdefs.h >>conftest.$ac_ext
40390 cat >>conftest.$ac_ext <<_ACEOF
40391 /* end confdefs.h. */
40392 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40393 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40394 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40395 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40396 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40397 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40401 _ascii (); _ebcdic ();
40406 rm -f conftest.$ac_objext
40407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40408 (eval $ac_compile) 2>conftest.er1
40410 grep -v '^ *+' conftest.er1 >conftest.err
40412 cat conftest.err >&5
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); } &&
40415 { ac_try='test -z "$ac_c_werror_flag"
40416 || test ! -s conftest.err'
40417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418 (eval $ac_try) 2>&5
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); }; } &&
40422 { ac_try='test -s conftest.$ac_objext'
40423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40424 (eval $ac_try) 2>&5
40426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); }; }; then
40428 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40429 ac_cv_c_bigendian=yes
40431 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40432 if test "$ac_cv_c_bigendian" = unknown; then
40433 ac_cv_c_bigendian=no
40435 # finding both strings is unlikely to happen, but who knows?
40436 ac_cv_c_bigendian=unknown
40440 echo "$as_me: failed program was:" >&5
40441 sed 's/^/| /' conftest.$ac_ext >&5
40444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40446 cat >conftest.$ac_ext <<_ACEOF
40449 cat confdefs.h >>conftest.$ac_ext
40450 cat >>conftest.$ac_ext <<_ACEOF
40451 /* end confdefs.h. */
40455 /* Are we little or big endian? From Harbison&Steele. */
40459 char c[sizeof (long)];
40462 exit (u.c[sizeof (long) - 1] == 1);
40465 rm -f conftest$ac_exeext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40467 (eval $ac_link) 2>&5
40469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40472 (eval $ac_try) 2>&5
40474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475 (exit $ac_status); }; }; then
40476 ac_cv_c_bigendian=no
40478 echo "$as_me: program exited with status $ac_status" >&5
40479 echo "$as_me: failed program was:" >&5
40480 sed 's/^/| /' conftest.$ac_ext >&5
40482 ( exit $ac_status )
40483 ac_cv_c_bigendian=yes
40485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40490 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40491 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40492 case $ac_cv_c_bigendian in
40495 cat >>confdefs.h <<\_ACEOF
40496 #define WORDS_BIGENDIAN 1
40502 { { echo "$as_me:$LINENO: error: unknown endianness
40503 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40504 echo "$as_me: error: unknown endianness
40505 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40506 { (exit 1); exit 1; }; } ;;
40511 echo "$as_me:$LINENO: checking for short" >&5
40512 echo $ECHO_N "checking for short... $ECHO_C" >&6
40513 if test "${ac_cv_type_short+set}" = set; then
40514 echo $ECHO_N "(cached) $ECHO_C" >&6
40516 cat >conftest.$ac_ext <<_ACEOF
40519 cat confdefs.h >>conftest.$ac_ext
40520 cat >>conftest.$ac_ext <<_ACEOF
40521 /* end confdefs.h. */
40522 $ac_includes_default
40528 if (sizeof (short))
40534 rm -f conftest.$ac_objext
40535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40536 (eval $ac_compile) 2>conftest.er1
40538 grep -v '^ *+' conftest.er1 >conftest.err
40540 cat conftest.err >&5
40541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542 (exit $ac_status); } &&
40543 { ac_try='test -z "$ac_c_werror_flag"
40544 || test ! -s conftest.err'
40545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40546 (eval $ac_try) 2>&5
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); }; } &&
40550 { ac_try='test -s conftest.$ac_objext'
40551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552 (eval $ac_try) 2>&5
40554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555 (exit $ac_status); }; }; then
40556 ac_cv_type_short=yes
40558 echo "$as_me: failed program was:" >&5
40559 sed 's/^/| /' conftest.$ac_ext >&5
40561 ac_cv_type_short=no
40563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40565 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40566 echo "${ECHO_T}$ac_cv_type_short" >&6
40568 echo "$as_me:$LINENO: checking size of short" >&5
40569 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40570 if test "${ac_cv_sizeof_short+set}" = set; then
40571 echo $ECHO_N "(cached) $ECHO_C" >&6
40573 if test "$ac_cv_type_short" = yes; then
40574 # The cast to unsigned long works around a bug in the HP C Compiler
40575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40577 # This bug is HP SR number 8606223364.
40578 if test "$cross_compiling" = yes; then
40579 # Depending upon the size, compute the lo and hi bounds.
40580 cat >conftest.$ac_ext <<_ACEOF
40583 cat confdefs.h >>conftest.$ac_ext
40584 cat >>conftest.$ac_ext <<_ACEOF
40585 /* end confdefs.h. */
40586 $ac_includes_default
40590 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40597 rm -f conftest.$ac_objext
40598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40599 (eval $ac_compile) 2>conftest.er1
40601 grep -v '^ *+' conftest.er1 >conftest.err
40603 cat conftest.err >&5
40604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40605 (exit $ac_status); } &&
40606 { ac_try='test -z "$ac_c_werror_flag"
40607 || test ! -s conftest.err'
40608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40609 (eval $ac_try) 2>&5
40611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612 (exit $ac_status); }; } &&
40613 { ac_try='test -s conftest.$ac_objext'
40614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40615 (eval $ac_try) 2>&5
40617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618 (exit $ac_status); }; }; then
40621 cat >conftest.$ac_ext <<_ACEOF
40624 cat confdefs.h >>conftest.$ac_ext
40625 cat >>conftest.$ac_ext <<_ACEOF
40626 /* end confdefs.h. */
40627 $ac_includes_default
40631 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40638 rm -f conftest.$ac_objext
40639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40640 (eval $ac_compile) 2>conftest.er1
40642 grep -v '^ *+' conftest.er1 >conftest.err
40644 cat conftest.err >&5
40645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646 (exit $ac_status); } &&
40647 { ac_try='test -z "$ac_c_werror_flag"
40648 || test ! -s conftest.err'
40649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40650 (eval $ac_try) 2>&5
40652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653 (exit $ac_status); }; } &&
40654 { ac_try='test -s conftest.$ac_objext'
40655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40656 (eval $ac_try) 2>&5
40658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659 (exit $ac_status); }; }; then
40660 ac_hi=$ac_mid; break
40662 echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40665 ac_lo=`expr $ac_mid + 1`
40666 if test $ac_lo -le $ac_mid; then
40670 ac_mid=`expr 2 '*' $ac_mid + 1`
40672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40675 echo "$as_me: failed program was:" >&5
40676 sed 's/^/| /' conftest.$ac_ext >&5
40678 cat >conftest.$ac_ext <<_ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h. */
40684 $ac_includes_default
40688 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40695 rm -f conftest.$ac_objext
40696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40697 (eval $ac_compile) 2>conftest.er1
40699 grep -v '^ *+' conftest.er1 >conftest.err
40701 cat conftest.err >&5
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); } &&
40704 { ac_try='test -z "$ac_c_werror_flag"
40705 || test ! -s conftest.err'
40706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40707 (eval $ac_try) 2>&5
40709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710 (exit $ac_status); }; } &&
40711 { ac_try='test -s conftest.$ac_objext'
40712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40713 (eval $ac_try) 2>&5
40715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); }; }; then
40719 cat >conftest.$ac_ext <<_ACEOF
40722 cat confdefs.h >>conftest.$ac_ext
40723 cat >>conftest.$ac_ext <<_ACEOF
40724 /* end confdefs.h. */
40725 $ac_includes_default
40729 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40736 rm -f conftest.$ac_objext
40737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40738 (eval $ac_compile) 2>conftest.er1
40740 grep -v '^ *+' conftest.er1 >conftest.err
40742 cat conftest.err >&5
40743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 (exit $ac_status); } &&
40745 { ac_try='test -z "$ac_c_werror_flag"
40746 || test ! -s conftest.err'
40747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748 (eval $ac_try) 2>&5
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); }; } &&
40752 { ac_try='test -s conftest.$ac_objext'
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; }; then
40758 ac_lo=$ac_mid; break
40760 echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40763 ac_hi=`expr '(' $ac_mid ')' - 1`
40764 if test $ac_mid -le $ac_hi; then
40768 ac_mid=`expr 2 '*' $ac_mid`
40770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40773 echo "$as_me: failed program was:" >&5
40774 sed 's/^/| /' conftest.$ac_ext >&5
40778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40781 # Binary search between lo and hi bounds.
40782 while test "x$ac_lo" != "x$ac_hi"; do
40783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40784 cat >conftest.$ac_ext <<_ACEOF
40787 cat confdefs.h >>conftest.$ac_ext
40788 cat >>conftest.$ac_ext <<_ACEOF
40789 /* end confdefs.h. */
40790 $ac_includes_default
40794 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40801 rm -f conftest.$ac_objext
40802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40803 (eval $ac_compile) 2>conftest.er1
40805 grep -v '^ *+' conftest.er1 >conftest.err
40807 cat conftest.err >&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); } &&
40810 { ac_try='test -z "$ac_c_werror_flag"
40811 || test ! -s conftest.err'
40812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40813 (eval $ac_try) 2>&5
40815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816 (exit $ac_status); }; } &&
40817 { ac_try='test -s conftest.$ac_objext'
40818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40819 (eval $ac_try) 2>&5
40821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822 (exit $ac_status); }; }; then
40825 echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40828 ac_lo=`expr '(' $ac_mid ')' + 1`
40830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40833 ?*) ac_cv_sizeof_short=$ac_lo;;
40834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40835 See \`config.log' for more details." >&5
40836 echo "$as_me: error: cannot compute sizeof (short), 77
40837 See \`config.log' for more details." >&2;}
40838 { (exit 1); exit 1; }; } ;;
40841 if test "$cross_compiling" = yes; then
40842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40843 See \`config.log' for more details." >&5
40844 echo "$as_me: error: cannot run test program while cross compiling
40845 See \`config.log' for more details." >&2;}
40846 { (exit 1); exit 1; }; }
40848 cat >conftest.$ac_ext <<_ACEOF
40851 cat confdefs.h >>conftest.$ac_ext
40852 cat >>conftest.$ac_ext <<_ACEOF
40853 /* end confdefs.h. */
40854 $ac_includes_default
40855 long longval () { return (long) (sizeof (short)); }
40856 unsigned long ulongval () { return (long) (sizeof (short)); }
40858 #include <stdlib.h>
40863 FILE *f = fopen ("conftest.val", "w");
40866 if (((long) (sizeof (short))) < 0)
40868 long i = longval ();
40869 if (i != ((long) (sizeof (short))))
40871 fprintf (f, "%ld\n", i);
40875 unsigned long i = ulongval ();
40876 if (i != ((long) (sizeof (short))))
40878 fprintf (f, "%lu\n", i);
40880 exit (ferror (f) || fclose (f) != 0);
40886 rm -f conftest$ac_exeext
40887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40888 (eval $ac_link) 2>&5
40890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893 (eval $ac_try) 2>&5
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); }; }; then
40897 ac_cv_sizeof_short=`cat conftest.val`
40899 echo "$as_me: program exited with status $ac_status" >&5
40900 echo "$as_me: failed program was:" >&5
40901 sed 's/^/| /' conftest.$ac_ext >&5
40903 ( exit $ac_status )
40904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40905 See \`config.log' for more details." >&5
40906 echo "$as_me: error: cannot compute sizeof (short), 77
40907 See \`config.log' for more details." >&2;}
40908 { (exit 1); exit 1; }; }
40910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40915 ac_cv_sizeof_short=0
40918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40919 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40920 cat >>confdefs.h <<_ACEOF
40921 #define SIZEOF_SHORT $ac_cv_sizeof_short
40925 echo "$as_me:$LINENO: checking for int" >&5
40926 echo $ECHO_N "checking for int... $ECHO_C" >&6
40927 if test "${ac_cv_type_int+set}" = set; then
40928 echo $ECHO_N "(cached) $ECHO_C" >&6
40930 cat >conftest.$ac_ext <<_ACEOF
40933 cat confdefs.h >>conftest.$ac_ext
40934 cat >>conftest.$ac_ext <<_ACEOF
40935 /* end confdefs.h. */
40936 $ac_includes_default
40948 rm -f conftest.$ac_objext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40950 (eval $ac_compile) 2>conftest.er1
40952 grep -v '^ *+' conftest.er1 >conftest.err
40954 cat conftest.err >&5
40955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956 (exit $ac_status); } &&
40957 { ac_try='test -z "$ac_c_werror_flag"
40958 || test ! -s conftest.err'
40959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960 (eval $ac_try) 2>&5
40962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); }; } &&
40964 { ac_try='test -s conftest.$ac_objext'
40965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966 (eval $ac_try) 2>&5
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); }; }; then
40972 echo "$as_me: failed program was:" >&5
40973 sed 's/^/| /' conftest.$ac_ext >&5
40977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40979 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40980 echo "${ECHO_T}$ac_cv_type_int" >&6
40982 echo "$as_me:$LINENO: checking size of int" >&5
40983 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40984 if test "${ac_cv_sizeof_int+set}" = set; then
40985 echo $ECHO_N "(cached) $ECHO_C" >&6
40987 if test "$ac_cv_type_int" = yes; then
40988 # The cast to unsigned long works around a bug in the HP C Compiler
40989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40991 # This bug is HP SR number 8606223364.
40992 if test "$cross_compiling" = yes; then
40993 # Depending upon the size, compute the lo and hi bounds.
40994 cat >conftest.$ac_ext <<_ACEOF
40997 cat confdefs.h >>conftest.$ac_ext
40998 cat >>conftest.$ac_ext <<_ACEOF
40999 /* end confdefs.h. */
41000 $ac_includes_default
41004 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41011 rm -f conftest.$ac_objext
41012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41013 (eval $ac_compile) 2>conftest.er1
41015 grep -v '^ *+' conftest.er1 >conftest.err
41017 cat conftest.err >&5
41018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019 (exit $ac_status); } &&
41020 { ac_try='test -z "$ac_c_werror_flag"
41021 || test ! -s conftest.err'
41022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41023 (eval $ac_try) 2>&5
41025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41026 (exit $ac_status); }; } &&
41027 { ac_try='test -s conftest.$ac_objext'
41028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41029 (eval $ac_try) 2>&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); }; }; then
41035 cat >conftest.$ac_ext <<_ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h. */
41041 $ac_includes_default
41045 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41052 rm -f conftest.$ac_objext
41053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41054 (eval $ac_compile) 2>conftest.er1
41056 grep -v '^ *+' conftest.er1 >conftest.err
41058 cat conftest.err >&5
41059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41060 (exit $ac_status); } &&
41061 { ac_try='test -z "$ac_c_werror_flag"
41062 || test ! -s conftest.err'
41063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064 (eval $ac_try) 2>&5
41066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067 (exit $ac_status); }; } &&
41068 { ac_try='test -s conftest.$ac_objext'
41069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070 (eval $ac_try) 2>&5
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); }; }; then
41074 ac_hi=$ac_mid; break
41076 echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41079 ac_lo=`expr $ac_mid + 1`
41080 if test $ac_lo -le $ac_mid; then
41084 ac_mid=`expr 2 '*' $ac_mid + 1`
41086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41089 echo "$as_me: failed program was:" >&5
41090 sed 's/^/| /' conftest.$ac_ext >&5
41092 cat >conftest.$ac_ext <<_ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h. */
41098 $ac_includes_default
41102 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41109 rm -f conftest.$ac_objext
41110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41111 (eval $ac_compile) 2>conftest.er1
41113 grep -v '^ *+' conftest.er1 >conftest.err
41115 cat conftest.err >&5
41116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41117 (exit $ac_status); } &&
41118 { ac_try='test -z "$ac_c_werror_flag"
41119 || test ! -s conftest.err'
41120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41121 (eval $ac_try) 2>&5
41123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124 (exit $ac_status); }; } &&
41125 { ac_try='test -s conftest.$ac_objext'
41126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41127 (eval $ac_try) 2>&5
41129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41130 (exit $ac_status); }; }; then
41133 cat >conftest.$ac_ext <<_ACEOF
41136 cat confdefs.h >>conftest.$ac_ext
41137 cat >>conftest.$ac_ext <<_ACEOF
41138 /* end confdefs.h. */
41139 $ac_includes_default
41143 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41150 rm -f conftest.$ac_objext
41151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41152 (eval $ac_compile) 2>conftest.er1
41154 grep -v '^ *+' conftest.er1 >conftest.err
41156 cat conftest.err >&5
41157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158 (exit $ac_status); } &&
41159 { ac_try='test -z "$ac_c_werror_flag"
41160 || test ! -s conftest.err'
41161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41162 (eval $ac_try) 2>&5
41164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165 (exit $ac_status); }; } &&
41166 { ac_try='test -s conftest.$ac_objext'
41167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41168 (eval $ac_try) 2>&5
41170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171 (exit $ac_status); }; }; then
41172 ac_lo=$ac_mid; break
41174 echo "$as_me: failed program was:" >&5
41175 sed 's/^/| /' conftest.$ac_ext >&5
41177 ac_hi=`expr '(' $ac_mid ')' - 1`
41178 if test $ac_mid -le $ac_hi; then
41182 ac_mid=`expr 2 '*' $ac_mid`
41184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41187 echo "$as_me: failed program was:" >&5
41188 sed 's/^/| /' conftest.$ac_ext >&5
41192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41195 # Binary search between lo and hi bounds.
41196 while test "x$ac_lo" != "x$ac_hi"; do
41197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41198 cat >conftest.$ac_ext <<_ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h. */
41204 $ac_includes_default
41208 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41215 rm -f conftest.$ac_objext
41216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41217 (eval $ac_compile) 2>conftest.er1
41219 grep -v '^ *+' conftest.er1 >conftest.err
41221 cat conftest.err >&5
41222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223 (exit $ac_status); } &&
41224 { ac_try='test -z "$ac_c_werror_flag"
41225 || test ! -s conftest.err'
41226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41227 (eval $ac_try) 2>&5
41229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230 (exit $ac_status); }; } &&
41231 { ac_try='test -s conftest.$ac_objext'
41232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41233 (eval $ac_try) 2>&5
41235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236 (exit $ac_status); }; }; then
41239 echo "$as_me: failed program was:" >&5
41240 sed 's/^/| /' conftest.$ac_ext >&5
41242 ac_lo=`expr '(' $ac_mid ')' + 1`
41244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41247 ?*) ac_cv_sizeof_int=$ac_lo;;
41248 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41249 See \`config.log' for more details." >&5
41250 echo "$as_me: error: cannot compute sizeof (int), 77
41251 See \`config.log' for more details." >&2;}
41252 { (exit 1); exit 1; }; } ;;
41255 if test "$cross_compiling" = yes; then
41256 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41257 See \`config.log' for more details." >&5
41258 echo "$as_me: error: cannot run test program while cross compiling
41259 See \`config.log' for more details." >&2;}
41260 { (exit 1); exit 1; }; }
41262 cat >conftest.$ac_ext <<_ACEOF
41265 cat confdefs.h >>conftest.$ac_ext
41266 cat >>conftest.$ac_ext <<_ACEOF
41267 /* end confdefs.h. */
41268 $ac_includes_default
41269 long longval () { return (long) (sizeof (int)); }
41270 unsigned long ulongval () { return (long) (sizeof (int)); }
41272 #include <stdlib.h>
41277 FILE *f = fopen ("conftest.val", "w");
41280 if (((long) (sizeof (int))) < 0)
41282 long i = longval ();
41283 if (i != ((long) (sizeof (int))))
41285 fprintf (f, "%ld\n", i);
41289 unsigned long i = ulongval ();
41290 if (i != ((long) (sizeof (int))))
41292 fprintf (f, "%lu\n", i);
41294 exit (ferror (f) || fclose (f) != 0);
41300 rm -f conftest$ac_exeext
41301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41302 (eval $ac_link) 2>&5
41304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41307 (eval $ac_try) 2>&5
41309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310 (exit $ac_status); }; }; then
41311 ac_cv_sizeof_int=`cat conftest.val`
41313 echo "$as_me: program exited with status $ac_status" >&5
41314 echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41317 ( exit $ac_status )
41318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41319 See \`config.log' for more details." >&5
41320 echo "$as_me: error: cannot compute sizeof (int), 77
41321 See \`config.log' for more details." >&2;}
41322 { (exit 1); exit 1; }; }
41324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41333 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41334 cat >>confdefs.h <<_ACEOF
41335 #define SIZEOF_INT $ac_cv_sizeof_int
41339 echo "$as_me:$LINENO: checking for long" >&5
41340 echo $ECHO_N "checking for long... $ECHO_C" >&6
41341 if test "${ac_cv_type_long+set}" = set; then
41342 echo $ECHO_N "(cached) $ECHO_C" >&6
41344 cat >conftest.$ac_ext <<_ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h. */
41350 $ac_includes_default
41362 rm -f conftest.$ac_objext
41363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41364 (eval $ac_compile) 2>conftest.er1
41366 grep -v '^ *+' conftest.er1 >conftest.err
41368 cat conftest.err >&5
41369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41370 (exit $ac_status); } &&
41371 { ac_try='test -z "$ac_c_werror_flag"
41372 || test ! -s conftest.err'
41373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374 (eval $ac_try) 2>&5
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); }; } &&
41378 { ac_try='test -s conftest.$ac_objext'
41379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41380 (eval $ac_try) 2>&5
41382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383 (exit $ac_status); }; }; then
41384 ac_cv_type_long=yes
41386 echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41393 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41394 echo "${ECHO_T}$ac_cv_type_long" >&6
41396 echo "$as_me:$LINENO: checking size of long" >&5
41397 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41398 if test "${ac_cv_sizeof_long+set}" = set; then
41399 echo $ECHO_N "(cached) $ECHO_C" >&6
41401 if test "$ac_cv_type_long" = yes; then
41402 # The cast to unsigned long works around a bug in the HP C Compiler
41403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41405 # This bug is HP SR number 8606223364.
41406 if test "$cross_compiling" = yes; then
41407 # Depending upon the size, compute the lo and hi bounds.
41408 cat >conftest.$ac_ext <<_ACEOF
41411 cat confdefs.h >>conftest.$ac_ext
41412 cat >>conftest.$ac_ext <<_ACEOF
41413 /* end confdefs.h. */
41414 $ac_includes_default
41418 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41425 rm -f conftest.$ac_objext
41426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41427 (eval $ac_compile) 2>conftest.er1
41429 grep -v '^ *+' conftest.er1 >conftest.err
41431 cat conftest.err >&5
41432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 (exit $ac_status); } &&
41434 { ac_try='test -z "$ac_c_werror_flag"
41435 || test ! -s conftest.err'
41436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437 (eval $ac_try) 2>&5
41439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440 (exit $ac_status); }; } &&
41441 { ac_try='test -s conftest.$ac_objext'
41442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443 (eval $ac_try) 2>&5
41445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446 (exit $ac_status); }; }; then
41449 cat >conftest.$ac_ext <<_ACEOF
41452 cat confdefs.h >>conftest.$ac_ext
41453 cat >>conftest.$ac_ext <<_ACEOF
41454 /* end confdefs.h. */
41455 $ac_includes_default
41459 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41466 rm -f conftest.$ac_objext
41467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41468 (eval $ac_compile) 2>conftest.er1
41470 grep -v '^ *+' conftest.er1 >conftest.err
41472 cat conftest.err >&5
41473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474 (exit $ac_status); } &&
41475 { ac_try='test -z "$ac_c_werror_flag"
41476 || test ! -s conftest.err'
41477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478 (eval $ac_try) 2>&5
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); }; } &&
41482 { ac_try='test -s conftest.$ac_objext'
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
41488 ac_hi=$ac_mid; break
41490 echo "$as_me: failed program was:" >&5
41491 sed 's/^/| /' conftest.$ac_ext >&5
41493 ac_lo=`expr $ac_mid + 1`
41494 if test $ac_lo -le $ac_mid; then
41498 ac_mid=`expr 2 '*' $ac_mid + 1`
41500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41503 echo "$as_me: failed program was:" >&5
41504 sed 's/^/| /' conftest.$ac_ext >&5
41506 cat >conftest.$ac_ext <<_ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h. */
41512 $ac_includes_default
41516 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41523 rm -f conftest.$ac_objext
41524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41525 (eval $ac_compile) 2>conftest.er1
41527 grep -v '^ *+' conftest.er1 >conftest.err
41529 cat conftest.err >&5
41530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531 (exit $ac_status); } &&
41532 { ac_try='test -z "$ac_c_werror_flag"
41533 || test ! -s conftest.err'
41534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535 (eval $ac_try) 2>&5
41537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538 (exit $ac_status); }; } &&
41539 { ac_try='test -s conftest.$ac_objext'
41540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541 (eval $ac_try) 2>&5
41543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544 (exit $ac_status); }; }; then
41547 cat >conftest.$ac_ext <<_ACEOF
41550 cat confdefs.h >>conftest.$ac_ext
41551 cat >>conftest.$ac_ext <<_ACEOF
41552 /* end confdefs.h. */
41553 $ac_includes_default
41557 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41564 rm -f conftest.$ac_objext
41565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41566 (eval $ac_compile) 2>conftest.er1
41568 grep -v '^ *+' conftest.er1 >conftest.err
41570 cat conftest.err >&5
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); } &&
41573 { ac_try='test -z "$ac_c_werror_flag"
41574 || test ! -s conftest.err'
41575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576 (eval $ac_try) 2>&5
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); }; } &&
41580 { ac_try='test -s conftest.$ac_objext'
41581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582 (eval $ac_try) 2>&5
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); }; }; then
41586 ac_lo=$ac_mid; break
41588 echo "$as_me: failed program was:" >&5
41589 sed 's/^/| /' conftest.$ac_ext >&5
41591 ac_hi=`expr '(' $ac_mid ')' - 1`
41592 if test $ac_mid -le $ac_hi; then
41596 ac_mid=`expr 2 '*' $ac_mid`
41598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41601 echo "$as_me: failed program was:" >&5
41602 sed 's/^/| /' conftest.$ac_ext >&5
41606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41609 # Binary search between lo and hi bounds.
41610 while test "x$ac_lo" != "x$ac_hi"; do
41611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41612 cat >conftest.$ac_ext <<_ACEOF
41615 cat confdefs.h >>conftest.$ac_ext
41616 cat >>conftest.$ac_ext <<_ACEOF
41617 /* end confdefs.h. */
41618 $ac_includes_default
41622 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41629 rm -f conftest.$ac_objext
41630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41631 (eval $ac_compile) 2>conftest.er1
41633 grep -v '^ *+' conftest.er1 >conftest.err
41635 cat conftest.err >&5
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); } &&
41638 { ac_try='test -z "$ac_c_werror_flag"
41639 || test ! -s conftest.err'
41640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641 (eval $ac_try) 2>&5
41643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644 (exit $ac_status); }; } &&
41645 { ac_try='test -s conftest.$ac_objext'
41646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41647 (eval $ac_try) 2>&5
41649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650 (exit $ac_status); }; }; then
41653 echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41656 ac_lo=`expr '(' $ac_mid ')' + 1`
41658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41661 ?*) ac_cv_sizeof_long=$ac_lo;;
41662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41663 See \`config.log' for more details." >&5
41664 echo "$as_me: error: cannot compute sizeof (long), 77
41665 See \`config.log' for more details." >&2;}
41666 { (exit 1); exit 1; }; } ;;
41669 if test "$cross_compiling" = yes; then
41670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41671 See \`config.log' for more details." >&5
41672 echo "$as_me: error: cannot run test program while cross compiling
41673 See \`config.log' for more details." >&2;}
41674 { (exit 1); exit 1; }; }
41676 cat >conftest.$ac_ext <<_ACEOF
41679 cat confdefs.h >>conftest.$ac_ext
41680 cat >>conftest.$ac_ext <<_ACEOF
41681 /* end confdefs.h. */
41682 $ac_includes_default
41683 long longval () { return (long) (sizeof (long)); }
41684 unsigned long ulongval () { return (long) (sizeof (long)); }
41686 #include <stdlib.h>
41691 FILE *f = fopen ("conftest.val", "w");
41694 if (((long) (sizeof (long))) < 0)
41696 long i = longval ();
41697 if (i != ((long) (sizeof (long))))
41699 fprintf (f, "%ld\n", i);
41703 unsigned long i = ulongval ();
41704 if (i != ((long) (sizeof (long))))
41706 fprintf (f, "%lu\n", i);
41708 exit (ferror (f) || fclose (f) != 0);
41714 rm -f conftest$ac_exeext
41715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41716 (eval $ac_link) 2>&5
41718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41721 (eval $ac_try) 2>&5
41723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41724 (exit $ac_status); }; }; then
41725 ac_cv_sizeof_long=`cat conftest.val`
41727 echo "$as_me: program exited with status $ac_status" >&5
41728 echo "$as_me: failed program was:" >&5
41729 sed 's/^/| /' conftest.$ac_ext >&5
41731 ( exit $ac_status )
41732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41733 See \`config.log' for more details." >&5
41734 echo "$as_me: error: cannot compute sizeof (long), 77
41735 See \`config.log' for more details." >&2;}
41736 { (exit 1); exit 1; }; }
41738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41743 ac_cv_sizeof_long=0
41746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41747 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41748 cat >>confdefs.h <<_ACEOF
41749 #define SIZEOF_LONG $ac_cv_sizeof_long
41753 echo "$as_me:$LINENO: checking for wchar_t" >&5
41754 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41755 if test "${ac_cv_type_wchar_t+set}" = set; then
41756 echo $ECHO_N "(cached) $ECHO_C" >&6
41758 cat >conftest.$ac_ext <<_ACEOF
41761 cat confdefs.h >>conftest.$ac_ext
41762 cat >>conftest.$ac_ext <<_ACEOF
41763 /* end confdefs.h. */
41764 $ac_includes_default
41770 if (sizeof (wchar_t))
41776 rm -f conftest.$ac_objext
41777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41778 (eval $ac_compile) 2>conftest.er1
41780 grep -v '^ *+' conftest.er1 >conftest.err
41782 cat conftest.err >&5
41783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784 (exit $ac_status); } &&
41785 { ac_try='test -z "$ac_c_werror_flag"
41786 || test ! -s conftest.err'
41787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41788 (eval $ac_try) 2>&5
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); }; } &&
41792 { ac_try='test -s conftest.$ac_objext'
41793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41794 (eval $ac_try) 2>&5
41796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41797 (exit $ac_status); }; }; then
41798 ac_cv_type_wchar_t=yes
41800 echo "$as_me: failed program was:" >&5
41801 sed 's/^/| /' conftest.$ac_ext >&5
41803 ac_cv_type_wchar_t=no
41805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41807 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41808 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41810 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41811 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41812 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41813 echo $ECHO_N "(cached) $ECHO_C" >&6
41815 if test "$ac_cv_type_wchar_t" = yes; then
41816 # The cast to unsigned long works around a bug in the HP C Compiler
41817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41819 # This bug is HP SR number 8606223364.
41820 if test "$cross_compiling" = yes; then
41821 # Depending upon the size, compute the lo and hi bounds.
41822 cat >conftest.$ac_ext <<_ACEOF
41825 cat confdefs.h >>conftest.$ac_ext
41826 cat >>conftest.$ac_ext <<_ACEOF
41827 /* end confdefs.h. */
41828 $ac_includes_default
41832 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41839 rm -f conftest.$ac_objext
41840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41841 (eval $ac_compile) 2>conftest.er1
41843 grep -v '^ *+' conftest.er1 >conftest.err
41845 cat conftest.err >&5
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); } &&
41848 { ac_try='test -z "$ac_c_werror_flag"
41849 || test ! -s conftest.err'
41850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41851 (eval $ac_try) 2>&5
41853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854 (exit $ac_status); }; } &&
41855 { ac_try='test -s conftest.$ac_objext'
41856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41857 (eval $ac_try) 2>&5
41859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41860 (exit $ac_status); }; }; then
41863 cat >conftest.$ac_ext <<_ACEOF
41866 cat confdefs.h >>conftest.$ac_ext
41867 cat >>conftest.$ac_ext <<_ACEOF
41868 /* end confdefs.h. */
41869 $ac_includes_default
41873 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41880 rm -f conftest.$ac_objext
41881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41882 (eval $ac_compile) 2>conftest.er1
41884 grep -v '^ *+' conftest.er1 >conftest.err
41886 cat conftest.err >&5
41887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41888 (exit $ac_status); } &&
41889 { ac_try='test -z "$ac_c_werror_flag"
41890 || test ! -s conftest.err'
41891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41892 (eval $ac_try) 2>&5
41894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895 (exit $ac_status); }; } &&
41896 { ac_try='test -s conftest.$ac_objext'
41897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41898 (eval $ac_try) 2>&5
41900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901 (exit $ac_status); }; }; then
41902 ac_hi=$ac_mid; break
41904 echo "$as_me: failed program was:" >&5
41905 sed 's/^/| /' conftest.$ac_ext >&5
41907 ac_lo=`expr $ac_mid + 1`
41908 if test $ac_lo -le $ac_mid; then
41912 ac_mid=`expr 2 '*' $ac_mid + 1`
41914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41917 echo "$as_me: failed program was:" >&5
41918 sed 's/^/| /' conftest.$ac_ext >&5
41920 cat >conftest.$ac_ext <<_ACEOF
41923 cat confdefs.h >>conftest.$ac_ext
41924 cat >>conftest.$ac_ext <<_ACEOF
41925 /* end confdefs.h. */
41926 $ac_includes_default
41930 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41937 rm -f conftest.$ac_objext
41938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41939 (eval $ac_compile) 2>conftest.er1
41941 grep -v '^ *+' conftest.er1 >conftest.err
41943 cat conftest.err >&5
41944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41945 (exit $ac_status); } &&
41946 { ac_try='test -z "$ac_c_werror_flag"
41947 || test ! -s conftest.err'
41948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949 (eval $ac_try) 2>&5
41951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952 (exit $ac_status); }; } &&
41953 { ac_try='test -s conftest.$ac_objext'
41954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41955 (eval $ac_try) 2>&5
41957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958 (exit $ac_status); }; }; then
41961 cat >conftest.$ac_ext <<_ACEOF
41964 cat confdefs.h >>conftest.$ac_ext
41965 cat >>conftest.$ac_ext <<_ACEOF
41966 /* end confdefs.h. */
41967 $ac_includes_default
41971 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41978 rm -f conftest.$ac_objext
41979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41980 (eval $ac_compile) 2>conftest.er1
41982 grep -v '^ *+' conftest.er1 >conftest.err
41984 cat conftest.err >&5
41985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41986 (exit $ac_status); } &&
41987 { ac_try='test -z "$ac_c_werror_flag"
41988 || test ! -s conftest.err'
41989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41990 (eval $ac_try) 2>&5
41992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993 (exit $ac_status); }; } &&
41994 { ac_try='test -s conftest.$ac_objext'
41995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41996 (eval $ac_try) 2>&5
41998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999 (exit $ac_status); }; }; then
42000 ac_lo=$ac_mid; break
42002 echo "$as_me: failed program was:" >&5
42003 sed 's/^/| /' conftest.$ac_ext >&5
42005 ac_hi=`expr '(' $ac_mid ')' - 1`
42006 if test $ac_mid -le $ac_hi; then
42010 ac_mid=`expr 2 '*' $ac_mid`
42012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42015 echo "$as_me: failed program was:" >&5
42016 sed 's/^/| /' conftest.$ac_ext >&5
42020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42023 # Binary search between lo and hi bounds.
42024 while test "x$ac_lo" != "x$ac_hi"; do
42025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42026 cat >conftest.$ac_ext <<_ACEOF
42029 cat confdefs.h >>conftest.$ac_ext
42030 cat >>conftest.$ac_ext <<_ACEOF
42031 /* end confdefs.h. */
42032 $ac_includes_default
42036 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42043 rm -f conftest.$ac_objext
42044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42045 (eval $ac_compile) 2>conftest.er1
42047 grep -v '^ *+' conftest.er1 >conftest.err
42049 cat conftest.err >&5
42050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); } &&
42052 { ac_try='test -z "$ac_c_werror_flag"
42053 || test ! -s conftest.err'
42054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42055 (eval $ac_try) 2>&5
42057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058 (exit $ac_status); }; } &&
42059 { ac_try='test -s conftest.$ac_objext'
42060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42061 (eval $ac_try) 2>&5
42063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064 (exit $ac_status); }; }; then
42067 echo "$as_me: failed program was:" >&5
42068 sed 's/^/| /' conftest.$ac_ext >&5
42070 ac_lo=`expr '(' $ac_mid ')' + 1`
42072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42075 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42076 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42077 See \`config.log' for more details." >&5
42078 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42079 See \`config.log' for more details." >&2;}
42080 { (exit 1); exit 1; }; } ;;
42083 if test "$cross_compiling" = yes; then
42084 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42085 See \`config.log' for more details." >&5
42086 echo "$as_me: error: cannot run test program while cross compiling
42087 See \`config.log' for more details." >&2;}
42088 { (exit 1); exit 1; }; }
42090 cat >conftest.$ac_ext <<_ACEOF
42093 cat confdefs.h >>conftest.$ac_ext
42094 cat >>conftest.$ac_ext <<_ACEOF
42095 /* end confdefs.h. */
42096 $ac_includes_default
42097 long longval () { return (long) (sizeof (wchar_t)); }
42098 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42100 #include <stdlib.h>
42105 FILE *f = fopen ("conftest.val", "w");
42108 if (((long) (sizeof (wchar_t))) < 0)
42110 long i = longval ();
42111 if (i != ((long) (sizeof (wchar_t))))
42113 fprintf (f, "%ld\n", i);
42117 unsigned long i = ulongval ();
42118 if (i != ((long) (sizeof (wchar_t))))
42120 fprintf (f, "%lu\n", i);
42122 exit (ferror (f) || fclose (f) != 0);
42128 rm -f conftest$ac_exeext
42129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42130 (eval $ac_link) 2>&5
42132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42135 (eval $ac_try) 2>&5
42137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); }; }; then
42139 ac_cv_sizeof_wchar_t=`cat conftest.val`
42141 echo "$as_me: program exited with status $ac_status" >&5
42142 echo "$as_me: failed program was:" >&5
42143 sed 's/^/| /' conftest.$ac_ext >&5
42145 ( exit $ac_status )
42146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42147 See \`config.log' for more details." >&5
42148 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42149 See \`config.log' for more details." >&2;}
42150 { (exit 1); exit 1; }; }
42152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42157 ac_cv_sizeof_wchar_t=0
42160 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42161 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42162 cat >>confdefs.h <<_ACEOF
42163 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42168 if test "$ac_cv_sizeof_int" -lt 4 ; then
42169 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42170 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42173 cat >>confdefs.h <<\_ACEOF
42174 #define LBER_INT_T long
42179 cat >>confdefs.h <<\_ACEOF
42180 #define LBER_INT_T int
42186 cat >>confdefs.h <<\_ACEOF
42187 #define LBER_LEN_T long
42191 cat >>confdefs.h <<\_ACEOF
42192 #define LBER_SOCKET_T int
42196 cat >>confdefs.h <<\_ACEOF
42197 #define LBER_TAG_T long
42201 echo "$as_me:$LINENO: checking for working memcmp" >&5
42202 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42203 if test "${ac_cv_func_memcmp_working+set}" = set; then
42204 echo $ECHO_N "(cached) $ECHO_C" >&6
42206 if test "$cross_compiling" = yes; then
42207 ac_cv_func_memcmp_working=no
42209 cat >conftest.$ac_ext <<_ACEOF
42212 cat confdefs.h >>conftest.$ac_ext
42213 cat >>conftest.$ac_ext <<_ACEOF
42214 /* end confdefs.h. */
42215 $ac_includes_default
42220 /* Some versions of memcmp are not 8-bit clean. */
42221 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42222 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42225 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42226 or more and with at least one buffer not starting on a 4-byte boundary.
42227 William Lewis provided this test program. */
42232 for (i = 0; i < 4; i++)
42236 strcpy (a, "--------01111111");
42237 strcpy (b, "--------10000000");
42238 if (memcmp (a, b, 16) >= 0)
42248 rm -f conftest$ac_exeext
42249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42250 (eval $ac_link) 2>&5
42252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42255 (eval $ac_try) 2>&5
42257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258 (exit $ac_status); }; }; then
42259 ac_cv_func_memcmp_working=yes
42261 echo "$as_me: program exited with status $ac_status" >&5
42262 echo "$as_me: failed program was:" >&5
42263 sed 's/^/| /' conftest.$ac_ext >&5
42265 ( exit $ac_status )
42266 ac_cv_func_memcmp_working=no
42268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42271 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42272 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42273 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42274 "memcmp.$ac_objext" | \
42275 *" memcmp.$ac_objext" | \
42276 "memcmp.$ac_objext "* | \
42277 *" memcmp.$ac_objext "* ) ;;
42278 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42283 if test $ac_cv_func_memcmp_working = no ; then
42285 cat >>confdefs.h <<\_ACEOF
42286 #define NEED_MEMCMP_REPLACEMENT 1
42292 for ac_func in strftime
42294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42295 echo "$as_me:$LINENO: checking for $ac_func" >&5
42296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42297 if eval "test \"\${$as_ac_var+set}\" = set"; then
42298 echo $ECHO_N "(cached) $ECHO_C" >&6
42300 cat >conftest.$ac_ext <<_ACEOF
42303 cat confdefs.h >>conftest.$ac_ext
42304 cat >>conftest.$ac_ext <<_ACEOF
42305 /* end confdefs.h. */
42306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42308 #define $ac_func innocuous_$ac_func
42310 /* System header to define __stub macros and hopefully few prototypes,
42311 which can conflict with char $ac_func (); below.
42312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42313 <limits.h> exists even on freestanding compilers. */
42316 # include <limits.h>
42318 # include <assert.h>
42323 /* Override any gcc2 internal prototype to avoid an error. */
42328 /* We use char because int might match the return type of a gcc2
42329 builtin and then its argument prototype would still apply. */
42331 /* The GNU C library defines this for functions which it implements
42332 to always fail with ENOSYS. Some functions are actually named
42333 something starting with __ and the normal name is an alias. */
42334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42337 char (*f) () = $ac_func;
42346 return f != $ac_func;
42351 rm -f conftest.$ac_objext conftest$ac_exeext
42352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42353 (eval $ac_link) 2>conftest.er1
42355 grep -v '^ *+' conftest.er1 >conftest.err
42357 cat conftest.err >&5
42358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42359 (exit $ac_status); } &&
42360 { ac_try='test -z "$ac_c_werror_flag"
42361 || test ! -s conftest.err'
42362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42363 (eval $ac_try) 2>&5
42365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42366 (exit $ac_status); }; } &&
42367 { ac_try='test -s conftest$ac_exeext'
42368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42369 (eval $ac_try) 2>&5
42371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372 (exit $ac_status); }; }; then
42373 eval "$as_ac_var=yes"
42375 echo "$as_me: failed program was:" >&5
42376 sed 's/^/| /' conftest.$ac_ext >&5
42378 eval "$as_ac_var=no"
42380 rm -f conftest.err conftest.$ac_objext \
42381 conftest$ac_exeext conftest.$ac_ext
42383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42385 if test `eval echo '${'$as_ac_var'}'` = yes; then
42386 cat >>confdefs.h <<_ACEOF
42387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42391 # strftime is in -lintl on SCO UNIX.
42392 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42393 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42394 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42395 echo $ECHO_N "(cached) $ECHO_C" >&6
42397 ac_check_lib_save_LIBS=$LIBS
42398 LIBS="-lintl $LIBS"
42399 cat >conftest.$ac_ext <<_ACEOF
42402 cat confdefs.h >>conftest.$ac_ext
42403 cat >>conftest.$ac_ext <<_ACEOF
42404 /* end confdefs.h. */
42406 /* Override any gcc2 internal prototype to avoid an error. */
42410 /* We use char because int might match the return type of a gcc2
42411 builtin and then its argument prototype would still apply. */
42421 rm -f conftest.$ac_objext conftest$ac_exeext
42422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42423 (eval $ac_link) 2>conftest.er1
42425 grep -v '^ *+' conftest.er1 >conftest.err
42427 cat conftest.err >&5
42428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42429 (exit $ac_status); } &&
42430 { ac_try='test -z "$ac_c_werror_flag"
42431 || test ! -s conftest.err'
42432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42433 (eval $ac_try) 2>&5
42435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436 (exit $ac_status); }; } &&
42437 { ac_try='test -s conftest$ac_exeext'
42438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42439 (eval $ac_try) 2>&5
42441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442 (exit $ac_status); }; }; then
42443 ac_cv_lib_intl_strftime=yes
42445 echo "$as_me: failed program was:" >&5
42446 sed 's/^/| /' conftest.$ac_ext >&5
42448 ac_cv_lib_intl_strftime=no
42450 rm -f conftest.err conftest.$ac_objext \
42451 conftest$ac_exeext conftest.$ac_ext
42452 LIBS=$ac_check_lib_save_LIBS
42454 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42455 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42456 if test $ac_cv_lib_intl_strftime = yes; then
42457 cat >>confdefs.h <<\_ACEOF
42458 #define HAVE_STRFTIME 1
42461 LIBS="-lintl $LIBS"
42468 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42469 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42470 if test "${ol_cv_func_inet_aton+set}" = set; then
42471 echo $ECHO_N "(cached) $ECHO_C" >&6
42473 cat >conftest.$ac_ext <<_ACEOF
42476 cat confdefs.h >>conftest.$ac_ext
42477 cat >>conftest.$ac_ext <<_ACEOF
42478 /* end confdefs.h. */
42480 #ifdef HAVE_SYS_TYPES_H
42481 # include <sys/types.h>
42483 #ifdef HAVE_SYS_SOCKET_H
42484 # include <sys/socket.h>
42485 # ifdef HAVE_SYS_SELECT_H
42486 # include <sys/select.h>
42488 # include <netinet/in.h>
42489 # ifdef HAVE_ARPA_INET_H
42490 # include <arpa/inet.h>
42498 int rc = inet_aton( "255.255.255.255", &in );
42503 rm -f conftest.$ac_objext conftest$ac_exeext
42504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42505 (eval $ac_link) 2>conftest.er1
42507 grep -v '^ *+' conftest.er1 >conftest.err
42509 cat conftest.err >&5
42510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511 (exit $ac_status); } &&
42512 { ac_try='test -z "$ac_c_werror_flag"
42513 || test ! -s conftest.err'
42514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515 (eval $ac_try) 2>&5
42517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518 (exit $ac_status); }; } &&
42519 { ac_try='test -s conftest$ac_exeext'
42520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521 (eval $ac_try) 2>&5
42523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 (exit $ac_status); }; }; then
42525 ol_cv_func_inet_aton=yes
42527 echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42530 ol_cv_func_inet_aton=no
42532 rm -f conftest.err conftest.$ac_objext \
42533 conftest$ac_exeext conftest.$ac_ext
42535 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42536 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42537 if test $ol_cv_func_inet_aton != no; then
42539 cat >>confdefs.h <<\_ACEOF
42540 #define HAVE_INET_ATON 1
42546 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42547 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42548 if test "${ac_cv_func__spawnlp+set}" = set; then
42549 echo $ECHO_N "(cached) $ECHO_C" >&6
42551 cat >conftest.$ac_ext <<_ACEOF
42554 cat confdefs.h >>conftest.$ac_ext
42555 cat >>conftest.$ac_ext <<_ACEOF
42556 /* end confdefs.h. */
42557 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42559 #define _spawnlp innocuous__spawnlp
42561 /* System header to define __stub macros and hopefully few prototypes,
42562 which can conflict with char _spawnlp (); below.
42563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42564 <limits.h> exists even on freestanding compilers. */
42567 # include <limits.h>
42569 # include <assert.h>
42574 /* Override any gcc2 internal prototype to avoid an error. */
42579 /* We use char because int might match the return type of a gcc2
42580 builtin and then its argument prototype would still apply. */
42582 /* The GNU C library defines this for functions which it implements
42583 to always fail with ENOSYS. Some functions are actually named
42584 something starting with __ and the normal name is an alias. */
42585 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42588 char (*f) () = _spawnlp;
42597 return f != _spawnlp;
42602 rm -f conftest.$ac_objext conftest$ac_exeext
42603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42604 (eval $ac_link) 2>conftest.er1
42606 grep -v '^ *+' conftest.er1 >conftest.err
42608 cat conftest.err >&5
42609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610 (exit $ac_status); } &&
42611 { ac_try='test -z "$ac_c_werror_flag"
42612 || test ! -s conftest.err'
42613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42614 (eval $ac_try) 2>&5
42616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42617 (exit $ac_status); }; } &&
42618 { ac_try='test -s conftest$ac_exeext'
42619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42620 (eval $ac_try) 2>&5
42622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42623 (exit $ac_status); }; }; then
42624 ac_cv_func__spawnlp=yes
42626 echo "$as_me: failed program was:" >&5
42627 sed 's/^/| /' conftest.$ac_ext >&5
42629 ac_cv_func__spawnlp=no
42631 rm -f conftest.err conftest.$ac_objext \
42632 conftest$ac_exeext conftest.$ac_ext
42634 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42635 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42636 if test $ac_cv_func__spawnlp = yes; then
42638 cat >>confdefs.h <<\_ACEOF
42639 #define HAVE_SPAWNLP 1
42645 echo "$as_me:$LINENO: checking for _snprintf" >&5
42646 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42647 if test "${ac_cv_func__snprintf+set}" = set; then
42648 echo $ECHO_N "(cached) $ECHO_C" >&6
42650 cat >conftest.$ac_ext <<_ACEOF
42653 cat confdefs.h >>conftest.$ac_ext
42654 cat >>conftest.$ac_ext <<_ACEOF
42655 /* end confdefs.h. */
42656 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42658 #define _snprintf innocuous__snprintf
42660 /* System header to define __stub macros and hopefully few prototypes,
42661 which can conflict with char _snprintf (); below.
42662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42663 <limits.h> exists even on freestanding compilers. */
42666 # include <limits.h>
42668 # include <assert.h>
42673 /* Override any gcc2 internal prototype to avoid an error. */
42678 /* We use char because int might match the return type of a gcc2
42679 builtin and then its argument prototype would still apply. */
42681 /* The GNU C library defines this for functions which it implements
42682 to always fail with ENOSYS. Some functions are actually named
42683 something starting with __ and the normal name is an alias. */
42684 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42687 char (*f) () = _snprintf;
42696 return f != _snprintf;
42701 rm -f conftest.$ac_objext conftest$ac_exeext
42702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42703 (eval $ac_link) 2>conftest.er1
42705 grep -v '^ *+' conftest.er1 >conftest.err
42707 cat conftest.err >&5
42708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709 (exit $ac_status); } &&
42710 { ac_try='test -z "$ac_c_werror_flag"
42711 || test ! -s conftest.err'
42712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42713 (eval $ac_try) 2>&5
42715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716 (exit $ac_status); }; } &&
42717 { ac_try='test -s conftest$ac_exeext'
42718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42719 (eval $ac_try) 2>&5
42721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722 (exit $ac_status); }; }; then
42723 ac_cv_func__snprintf=yes
42725 echo "$as_me: failed program was:" >&5
42726 sed 's/^/| /' conftest.$ac_ext >&5
42728 ac_cv_func__snprintf=no
42730 rm -f conftest.err conftest.$ac_objext \
42731 conftest$ac_exeext conftest.$ac_ext
42733 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42734 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42735 if test $ac_cv_func__snprintf = yes; then
42736 ac_cv_func_snprintf=yes
42738 cat >>confdefs.h <<\_ACEOF
42739 #define snprintf _snprintf
42746 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42747 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42748 if test "${ac_cv_func__vsnprintf+set}" = set; then
42749 echo $ECHO_N "(cached) $ECHO_C" >&6
42751 cat >conftest.$ac_ext <<_ACEOF
42754 cat confdefs.h >>conftest.$ac_ext
42755 cat >>conftest.$ac_ext <<_ACEOF
42756 /* end confdefs.h. */
42757 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42759 #define _vsnprintf innocuous__vsnprintf
42761 /* System header to define __stub macros and hopefully few prototypes,
42762 which can conflict with char _vsnprintf (); below.
42763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42764 <limits.h> exists even on freestanding compilers. */
42767 # include <limits.h>
42769 # include <assert.h>
42774 /* Override any gcc2 internal prototype to avoid an error. */
42779 /* We use char because int might match the return type of a gcc2
42780 builtin and then its argument prototype would still apply. */
42781 char _vsnprintf ();
42782 /* The GNU C library defines this for functions which it implements
42783 to always fail with ENOSYS. Some functions are actually named
42784 something starting with __ and the normal name is an alias. */
42785 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42788 char (*f) () = _vsnprintf;
42797 return f != _vsnprintf;
42802 rm -f conftest.$ac_objext conftest$ac_exeext
42803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42804 (eval $ac_link) 2>conftest.er1
42806 grep -v '^ *+' conftest.er1 >conftest.err
42808 cat conftest.err >&5
42809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); } &&
42811 { ac_try='test -z "$ac_c_werror_flag"
42812 || test ! -s conftest.err'
42813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42814 (eval $ac_try) 2>&5
42816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42817 (exit $ac_status); }; } &&
42818 { ac_try='test -s conftest$ac_exeext'
42819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42820 (eval $ac_try) 2>&5
42822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42823 (exit $ac_status); }; }; then
42824 ac_cv_func__vsnprintf=yes
42826 echo "$as_me: failed program was:" >&5
42827 sed 's/^/| /' conftest.$ac_ext >&5
42829 ac_cv_func__vsnprintf=no
42831 rm -f conftest.err conftest.$ac_objext \
42832 conftest$ac_exeext conftest.$ac_ext
42834 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42835 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42836 if test $ac_cv_func__vsnprintf = yes; then
42837 ac_cv_func_vsnprintf=yes
42839 cat >>confdefs.h <<\_ACEOF
42840 #define vsnprintf _vsnprintf
42848 for ac_func in vprintf
42850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42851 echo "$as_me:$LINENO: checking for $ac_func" >&5
42852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42853 if eval "test \"\${$as_ac_var+set}\" = set"; then
42854 echo $ECHO_N "(cached) $ECHO_C" >&6
42856 cat >conftest.$ac_ext <<_ACEOF
42859 cat confdefs.h >>conftest.$ac_ext
42860 cat >>conftest.$ac_ext <<_ACEOF
42861 /* end confdefs.h. */
42862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42864 #define $ac_func innocuous_$ac_func
42866 /* System header to define __stub macros and hopefully few prototypes,
42867 which can conflict with char $ac_func (); below.
42868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42869 <limits.h> exists even on freestanding compilers. */
42872 # include <limits.h>
42874 # include <assert.h>
42879 /* Override any gcc2 internal prototype to avoid an error. */
42884 /* We use char because int might match the return type of a gcc2
42885 builtin and then its argument prototype would still apply. */
42887 /* The GNU C library defines this for functions which it implements
42888 to always fail with ENOSYS. Some functions are actually named
42889 something starting with __ and the normal name is an alias. */
42890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42893 char (*f) () = $ac_func;
42902 return f != $ac_func;
42907 rm -f conftest.$ac_objext conftest$ac_exeext
42908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42909 (eval $ac_link) 2>conftest.er1
42911 grep -v '^ *+' conftest.er1 >conftest.err
42913 cat conftest.err >&5
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); } &&
42916 { ac_try='test -z "$ac_c_werror_flag"
42917 || test ! -s conftest.err'
42918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42919 (eval $ac_try) 2>&5
42921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42922 (exit $ac_status); }; } &&
42923 { ac_try='test -s conftest$ac_exeext'
42924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42925 (eval $ac_try) 2>&5
42927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42928 (exit $ac_status); }; }; then
42929 eval "$as_ac_var=yes"
42931 echo "$as_me: failed program was:" >&5
42932 sed 's/^/| /' conftest.$ac_ext >&5
42934 eval "$as_ac_var=no"
42936 rm -f conftest.err conftest.$ac_objext \
42937 conftest$ac_exeext conftest.$ac_ext
42939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42941 if test `eval echo '${'$as_ac_var'}'` = yes; then
42942 cat >>confdefs.h <<_ACEOF
42943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42946 echo "$as_me:$LINENO: checking for _doprnt" >&5
42947 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42948 if test "${ac_cv_func__doprnt+set}" = set; then
42949 echo $ECHO_N "(cached) $ECHO_C" >&6
42951 cat >conftest.$ac_ext <<_ACEOF
42954 cat confdefs.h >>conftest.$ac_ext
42955 cat >>conftest.$ac_ext <<_ACEOF
42956 /* end confdefs.h. */
42957 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42959 #define _doprnt innocuous__doprnt
42961 /* System header to define __stub macros and hopefully few prototypes,
42962 which can conflict with char _doprnt (); below.
42963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42964 <limits.h> exists even on freestanding compilers. */
42967 # include <limits.h>
42969 # include <assert.h>
42974 /* Override any gcc2 internal prototype to avoid an error. */
42979 /* We use char because int might match the return type of a gcc2
42980 builtin and then its argument prototype would still apply. */
42982 /* The GNU C library defines this for functions which it implements
42983 to always fail with ENOSYS. Some functions are actually named
42984 something starting with __ and the normal name is an alias. */
42985 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42988 char (*f) () = _doprnt;
42997 return f != _doprnt;
43002 rm -f conftest.$ac_objext conftest$ac_exeext
43003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43004 (eval $ac_link) 2>conftest.er1
43006 grep -v '^ *+' conftest.er1 >conftest.err
43008 cat conftest.err >&5
43009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010 (exit $ac_status); } &&
43011 { ac_try='test -z "$ac_c_werror_flag"
43012 || test ! -s conftest.err'
43013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43014 (eval $ac_try) 2>&5
43016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017 (exit $ac_status); }; } &&
43018 { ac_try='test -s conftest$ac_exeext'
43019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43020 (eval $ac_try) 2>&5
43022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43023 (exit $ac_status); }; }; then
43024 ac_cv_func__doprnt=yes
43026 echo "$as_me: failed program was:" >&5
43027 sed 's/^/| /' conftest.$ac_ext >&5
43029 ac_cv_func__doprnt=no
43031 rm -f conftest.err conftest.$ac_objext \
43032 conftest$ac_exeext conftest.$ac_ext
43034 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43035 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43036 if test $ac_cv_func__doprnt = yes; then
43038 cat >>confdefs.h <<\_ACEOF
43039 #define HAVE_DOPRNT 1
43049 if test $ac_cv_func_vprintf = yes ; then
43052 for ac_func in snprintf vsnprintf
43054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43055 echo "$as_me:$LINENO: checking for $ac_func" >&5
43056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43057 if eval "test \"\${$as_ac_var+set}\" = set"; then
43058 echo $ECHO_N "(cached) $ECHO_C" >&6
43060 cat >conftest.$ac_ext <<_ACEOF
43063 cat confdefs.h >>conftest.$ac_ext
43064 cat >>conftest.$ac_ext <<_ACEOF
43065 /* end confdefs.h. */
43066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43068 #define $ac_func innocuous_$ac_func
43070 /* System header to define __stub macros and hopefully few prototypes,
43071 which can conflict with char $ac_func (); below.
43072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43073 <limits.h> exists even on freestanding compilers. */
43076 # include <limits.h>
43078 # include <assert.h>
43083 /* Override any gcc2 internal prototype to avoid an error. */
43088 /* We use char because int might match the return type of a gcc2
43089 builtin and then its argument prototype would still apply. */
43091 /* The GNU C library defines this for functions which it implements
43092 to always fail with ENOSYS. Some functions are actually named
43093 something starting with __ and the normal name is an alias. */
43094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43097 char (*f) () = $ac_func;
43106 return f != $ac_func;
43111 rm -f conftest.$ac_objext conftest$ac_exeext
43112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43113 (eval $ac_link) 2>conftest.er1
43115 grep -v '^ *+' conftest.er1 >conftest.err
43117 cat conftest.err >&5
43118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119 (exit $ac_status); } &&
43120 { ac_try='test -z "$ac_c_werror_flag"
43121 || test ! -s conftest.err'
43122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43123 (eval $ac_try) 2>&5
43125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43126 (exit $ac_status); }; } &&
43127 { ac_try='test -s conftest$ac_exeext'
43128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43129 (eval $ac_try) 2>&5
43131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132 (exit $ac_status); }; }; then
43133 eval "$as_ac_var=yes"
43135 echo "$as_me: failed program was:" >&5
43136 sed 's/^/| /' conftest.$ac_ext >&5
43138 eval "$as_ac_var=no"
43140 rm -f conftest.err conftest.$ac_objext \
43141 conftest$ac_exeext conftest.$ac_ext
43143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43145 if test `eval echo '${'$as_ac_var'}'` = yes; then
43146 cat >>confdefs.h <<_ACEOF
43147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43267 echo "$as_me:$LINENO: checking for $ac_func" >&5
43268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43269 if eval "test \"\${$as_ac_var+set}\" = set"; then
43270 echo $ECHO_N "(cached) $ECHO_C" >&6
43272 cat >conftest.$ac_ext <<_ACEOF
43275 cat confdefs.h >>conftest.$ac_ext
43276 cat >>conftest.$ac_ext <<_ACEOF
43277 /* end confdefs.h. */
43278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43280 #define $ac_func innocuous_$ac_func
43282 /* System header to define __stub macros and hopefully few prototypes,
43283 which can conflict with char $ac_func (); below.
43284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43285 <limits.h> exists even on freestanding compilers. */
43288 # include <limits.h>
43290 # include <assert.h>
43295 /* Override any gcc2 internal prototype to avoid an error. */
43300 /* We use char because int might match the return type of a gcc2
43301 builtin and then its argument prototype would still apply. */
43303 /* The GNU C library defines this for functions which it implements
43304 to always fail with ENOSYS. Some functions are actually named
43305 something starting with __ and the normal name is an alias. */
43306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43309 char (*f) () = $ac_func;
43318 return f != $ac_func;
43323 rm -f conftest.$ac_objext conftest$ac_exeext
43324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43325 (eval $ac_link) 2>conftest.er1
43327 grep -v '^ *+' conftest.er1 >conftest.err
43329 cat conftest.err >&5
43330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43331 (exit $ac_status); } &&
43332 { ac_try='test -z "$ac_c_werror_flag"
43333 || test ! -s conftest.err'
43334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43335 (eval $ac_try) 2>&5
43337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43338 (exit $ac_status); }; } &&
43339 { ac_try='test -s conftest$ac_exeext'
43340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43341 (eval $ac_try) 2>&5
43343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344 (exit $ac_status); }; }; then
43345 eval "$as_ac_var=yes"
43347 echo "$as_me: failed program was:" >&5
43348 sed 's/^/| /' conftest.$ac_ext >&5
43350 eval "$as_ac_var=no"
43352 rm -f conftest.err conftest.$ac_objext \
43353 conftest$ac_exeext conftest.$ac_ext
43355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43357 if test `eval echo '${'$as_ac_var'}'` = yes; then
43358 cat >>confdefs.h <<_ACEOF
43359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43368 for ac_func in getopt getpeereid
43370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43371 echo "$as_me:$LINENO: checking for $ac_func" >&5
43372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43373 if eval "test \"\${$as_ac_var+set}\" = set"; then
43374 echo $ECHO_N "(cached) $ECHO_C" >&6
43376 cat >conftest.$ac_ext <<_ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h. */
43382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43384 #define $ac_func innocuous_$ac_func
43386 /* System header to define __stub macros and hopefully few prototypes,
43387 which can conflict with char $ac_func (); below.
43388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43389 <limits.h> exists even on freestanding compilers. */
43392 # include <limits.h>
43394 # include <assert.h>
43399 /* Override any gcc2 internal prototype to avoid an error. */
43404 /* We use char because int might match the return type of a gcc2
43405 builtin and then its argument prototype would still apply. */
43407 /* The GNU C library defines this for functions which it implements
43408 to always fail with ENOSYS. Some functions are actually named
43409 something starting with __ and the normal name is an alias. */
43410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43413 char (*f) () = $ac_func;
43422 return f != $ac_func;
43427 rm -f conftest.$ac_objext conftest$ac_exeext
43428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43429 (eval $ac_link) 2>conftest.er1
43431 grep -v '^ *+' conftest.er1 >conftest.err
43433 cat conftest.err >&5
43434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435 (exit $ac_status); } &&
43436 { ac_try='test -z "$ac_c_werror_flag"
43437 || test ! -s conftest.err'
43438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43439 (eval $ac_try) 2>&5
43441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43442 (exit $ac_status); }; } &&
43443 { ac_try='test -s conftest$ac_exeext'
43444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43445 (eval $ac_try) 2>&5
43447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43448 (exit $ac_status); }; }; then
43449 eval "$as_ac_var=yes"
43451 echo "$as_me: failed program was:" >&5
43452 sed 's/^/| /' conftest.$ac_ext >&5
43454 eval "$as_ac_var=no"
43456 rm -f conftest.err conftest.$ac_objext \
43457 conftest$ac_exeext conftest.$ac_ext
43459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43461 if test `eval echo '${'$as_ac_var'}'` = yes; then
43462 cat >>confdefs.h <<_ACEOF
43463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43468 "$ac_func.$ac_objext" | \
43469 *" $ac_func.$ac_objext" | \
43470 "$ac_func.$ac_objext "* | \
43471 *" $ac_func.$ac_objext "* ) ;;
43472 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43480 if test "$ac_cv_func_getopt" != yes; then
43481 LIBSRCS="$LIBSRCS getopt.c"
43484 if test "$ac_cv_func_getpeereid" != yes; then
43486 for ac_func in getpeerucred
43488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43489 echo "$as_me:$LINENO: checking for $ac_func" >&5
43490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43491 if eval "test \"\${$as_ac_var+set}\" = set"; then
43492 echo $ECHO_N "(cached) $ECHO_C" >&6
43494 cat >conftest.$ac_ext <<_ACEOF
43497 cat confdefs.h >>conftest.$ac_ext
43498 cat >>conftest.$ac_ext <<_ACEOF
43499 /* end confdefs.h. */
43500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43502 #define $ac_func innocuous_$ac_func
43504 /* System header to define __stub macros and hopefully few prototypes,
43505 which can conflict with char $ac_func (); below.
43506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43507 <limits.h> exists even on freestanding compilers. */
43510 # include <limits.h>
43512 # include <assert.h>
43517 /* Override any gcc2 internal prototype to avoid an error. */
43522 /* We use char because int might match the return type of a gcc2
43523 builtin and then its argument prototype would still apply. */
43525 /* The GNU C library defines this for functions which it implements
43526 to always fail with ENOSYS. Some functions are actually named
43527 something starting with __ and the normal name is an alias. */
43528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43531 char (*f) () = $ac_func;
43540 return f != $ac_func;
43545 rm -f conftest.$ac_objext conftest$ac_exeext
43546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43547 (eval $ac_link) 2>conftest.er1
43549 grep -v '^ *+' conftest.er1 >conftest.err
43551 cat conftest.err >&5
43552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553 (exit $ac_status); } &&
43554 { ac_try='test -z "$ac_c_werror_flag"
43555 || test ! -s conftest.err'
43556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43557 (eval $ac_try) 2>&5
43559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43560 (exit $ac_status); }; } &&
43561 { ac_try='test -s conftest$ac_exeext'
43562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43563 (eval $ac_try) 2>&5
43565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43566 (exit $ac_status); }; }; then
43567 eval "$as_ac_var=yes"
43569 echo "$as_me: failed program was:" >&5
43570 sed 's/^/| /' conftest.$ac_ext >&5
43572 eval "$as_ac_var=no"
43574 rm -f conftest.err conftest.$ac_objext \
43575 conftest$ac_exeext conftest.$ac_ext
43577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43579 if test `eval echo '${'$as_ac_var'}'` = yes; then
43580 cat >>confdefs.h <<_ACEOF
43581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43587 if test "$ac_cv_func_getpeerucred" != yes ; then
43588 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43589 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43590 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43591 echo $ECHO_N "(cached) $ECHO_C" >&6
43593 cat >conftest.$ac_ext <<_ACEOF
43596 cat confdefs.h >>conftest.$ac_ext
43597 cat >>conftest.$ac_ext <<_ACEOF
43598 /* end confdefs.h. */
43599 $ac_includes_default
43600 #ifdef HAVE_SYS_SOCKET_H
43601 #include <sys/socket.h>
43607 static struct msghdr ac_aggr;
43608 if (ac_aggr.msg_accrightslen)
43614 rm -f conftest.$ac_objext
43615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43616 (eval $ac_compile) 2>conftest.er1
43618 grep -v '^ *+' conftest.er1 >conftest.err
43620 cat conftest.err >&5
43621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622 (exit $ac_status); } &&
43623 { ac_try='test -z "$ac_c_werror_flag"
43624 || test ! -s conftest.err'
43625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43626 (eval $ac_try) 2>&5
43628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629 (exit $ac_status); }; } &&
43630 { ac_try='test -s conftest.$ac_objext'
43631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43632 (eval $ac_try) 2>&5
43634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43635 (exit $ac_status); }; }; then
43636 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43638 echo "$as_me: failed program was:" >&5
43639 sed 's/^/| /' conftest.$ac_ext >&5
43641 cat >conftest.$ac_ext <<_ACEOF
43644 cat confdefs.h >>conftest.$ac_ext
43645 cat >>conftest.$ac_ext <<_ACEOF
43646 /* end confdefs.h. */
43647 $ac_includes_default
43648 #ifdef HAVE_SYS_SOCKET_H
43649 #include <sys/socket.h>
43655 static struct msghdr ac_aggr;
43656 if (sizeof ac_aggr.msg_accrightslen)
43662 rm -f conftest.$ac_objext
43663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43664 (eval $ac_compile) 2>conftest.er1
43666 grep -v '^ *+' conftest.er1 >conftest.err
43668 cat conftest.err >&5
43669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 (exit $ac_status); } &&
43671 { ac_try='test -z "$ac_c_werror_flag"
43672 || test ! -s conftest.err'
43673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43674 (eval $ac_try) 2>&5
43676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677 (exit $ac_status); }; } &&
43678 { ac_try='test -s conftest.$ac_objext'
43679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43680 (eval $ac_try) 2>&5
43682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43683 (exit $ac_status); }; }; then
43684 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43686 echo "$as_me: failed program was:" >&5
43687 sed 's/^/| /' conftest.$ac_ext >&5
43689 ac_cv_member_struct_msghdr_msg_accrightslen=no
43691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43696 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43697 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43699 cat >>confdefs.h <<_ACEOF
43700 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43706 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43707 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43708 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43709 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43710 echo $ECHO_N "(cached) $ECHO_C" >&6
43712 cat >conftest.$ac_ext <<_ACEOF
43715 cat confdefs.h >>conftest.$ac_ext
43716 cat >>conftest.$ac_ext <<_ACEOF
43717 /* end confdefs.h. */
43718 $ac_includes_default
43719 #ifdef HAVE_SYS_SOCKET_H
43720 #include <sys/socket.h>
43726 static struct msghdr ac_aggr;
43727 if (ac_aggr.msg_control)
43733 rm -f conftest.$ac_objext
43734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43735 (eval $ac_compile) 2>conftest.er1
43737 grep -v '^ *+' conftest.er1 >conftest.err
43739 cat conftest.err >&5
43740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741 (exit $ac_status); } &&
43742 { ac_try='test -z "$ac_c_werror_flag"
43743 || test ! -s conftest.err'
43744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43745 (eval $ac_try) 2>&5
43747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748 (exit $ac_status); }; } &&
43749 { ac_try='test -s conftest.$ac_objext'
43750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43751 (eval $ac_try) 2>&5
43753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43754 (exit $ac_status); }; }; then
43755 ac_cv_member_struct_msghdr_msg_control=yes
43757 echo "$as_me: failed program was:" >&5
43758 sed 's/^/| /' conftest.$ac_ext >&5
43760 cat >conftest.$ac_ext <<_ACEOF
43763 cat confdefs.h >>conftest.$ac_ext
43764 cat >>conftest.$ac_ext <<_ACEOF
43765 /* end confdefs.h. */
43766 $ac_includes_default
43767 #ifdef HAVE_SYS_SOCKET_H
43768 #include <sys/socket.h>
43774 static struct msghdr ac_aggr;
43775 if (sizeof ac_aggr.msg_control)
43781 rm -f conftest.$ac_objext
43782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43783 (eval $ac_compile) 2>conftest.er1
43785 grep -v '^ *+' conftest.er1 >conftest.err
43787 cat conftest.err >&5
43788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43789 (exit $ac_status); } &&
43790 { ac_try='test -z "$ac_c_werror_flag"
43791 || test ! -s conftest.err'
43792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43793 (eval $ac_try) 2>&5
43795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43796 (exit $ac_status); }; } &&
43797 { ac_try='test -s conftest.$ac_objext'
43798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43799 (eval $ac_try) 2>&5
43801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43802 (exit $ac_status); }; }; then
43803 ac_cv_member_struct_msghdr_msg_control=yes
43805 echo "$as_me: failed program was:" >&5
43806 sed 's/^/| /' conftest.$ac_ext >&5
43808 ac_cv_member_struct_msghdr_msg_control=no
43810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43814 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43815 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43816 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43818 cat >>confdefs.h <<_ACEOF
43819 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43827 LIBSRCS="$LIBSRCS getpeereid.c"
43830 if test "$ac_cv_func_snprintf" != yes ||
43831 test "$ac_cv_func_vsnprintf" != yes; then
43832 if test "$ac_cv_func_snprintf" != yes; then
43834 cat >>confdefs.h <<\_ACEOF
43835 #define snprintf ber_pvt_snprintf
43839 if test "$ac_cv_func_vsnprintf" != yes; then
43841 cat >>confdefs.h <<\_ACEOF
43842 #define vsnprintf ber_pvt_vsnprintf
43849 if test "$ol_enable_slapi" != no ; then
43851 for ac_header in ltdl.h
43853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43855 echo "$as_me:$LINENO: checking for $ac_header" >&5
43856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43858 echo $ECHO_N "(cached) $ECHO_C" >&6
43860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43863 # Is the header compilable?
43864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43866 cat >conftest.$ac_ext <<_ACEOF
43869 cat confdefs.h >>conftest.$ac_ext
43870 cat >>conftest.$ac_ext <<_ACEOF
43871 /* end confdefs.h. */
43872 $ac_includes_default
43873 #include <$ac_header>
43875 rm -f conftest.$ac_objext
43876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43877 (eval $ac_compile) 2>conftest.er1
43879 grep -v '^ *+' conftest.er1 >conftest.err
43881 cat conftest.err >&5
43882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43883 (exit $ac_status); } &&
43884 { ac_try='test -z "$ac_c_werror_flag"
43885 || test ! -s conftest.err'
43886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43887 (eval $ac_try) 2>&5
43889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43890 (exit $ac_status); }; } &&
43891 { ac_try='test -s conftest.$ac_objext'
43892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43893 (eval $ac_try) 2>&5
43895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43896 (exit $ac_status); }; }; then
43897 ac_header_compiler=yes
43899 echo "$as_me: failed program was:" >&5
43900 sed 's/^/| /' conftest.$ac_ext >&5
43902 ac_header_compiler=no
43904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43906 echo "${ECHO_T}$ac_header_compiler" >&6
43908 # Is the header present?
43909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43911 cat >conftest.$ac_ext <<_ACEOF
43914 cat confdefs.h >>conftest.$ac_ext
43915 cat >>conftest.$ac_ext <<_ACEOF
43916 /* end confdefs.h. */
43917 #include <$ac_header>
43919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43922 grep -v '^ *+' conftest.er1 >conftest.err
43924 cat conftest.err >&5
43925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43926 (exit $ac_status); } >/dev/null; then
43927 if test -s conftest.err; then
43928 ac_cpp_err=$ac_c_preproc_warn_flag
43929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43936 if test -z "$ac_cpp_err"; then
43937 ac_header_preproc=yes
43939 echo "$as_me: failed program was:" >&5
43940 sed 's/^/| /' conftest.$ac_ext >&5
43942 ac_header_preproc=no
43944 rm -f conftest.err conftest.$ac_ext
43945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43946 echo "${ECHO_T}$ac_header_preproc" >&6
43948 # So? What about this header?
43949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43955 ac_header_preproc=yes
43958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43972 ## ------------------------------------------ ##
43973 ## Report this to the AC_PACKAGE_NAME lists. ##
43974 ## ------------------------------------------ ##
43977 sed "s/^/$as_me: WARNING: /" >&2
43980 echo "$as_me:$LINENO: checking for $ac_header" >&5
43981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43983 echo $ECHO_N "(cached) $ECHO_C" >&6
43985 eval "$as_ac_Header=\$ac_header_preproc"
43987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43992 cat >>confdefs.h <<_ACEOF
43993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44001 if test $ac_cv_header_ltdl_h != yes ; then
44002 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44003 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44004 { (exit 1); exit 1; }; }
44006 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44007 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44008 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44009 echo $ECHO_N "(cached) $ECHO_C" >&6
44011 ac_check_lib_save_LIBS=$LIBS
44012 LIBS="-lltdl $LIBS"
44013 cat >conftest.$ac_ext <<_ACEOF
44016 cat confdefs.h >>conftest.$ac_ext
44017 cat >>conftest.$ac_ext <<_ACEOF
44018 /* end confdefs.h. */
44020 /* Override any gcc2 internal prototype to avoid an error. */
44024 /* We use char because int might match the return type of a gcc2
44025 builtin and then its argument prototype would still apply. */
44035 rm -f conftest.$ac_objext conftest$ac_exeext
44036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44037 (eval $ac_link) 2>conftest.er1
44039 grep -v '^ *+' conftest.er1 >conftest.err
44041 cat conftest.err >&5
44042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44043 (exit $ac_status); } &&
44044 { ac_try='test -z "$ac_c_werror_flag"
44045 || test ! -s conftest.err'
44046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44047 (eval $ac_try) 2>&5
44049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050 (exit $ac_status); }; } &&
44051 { ac_try='test -s conftest$ac_exeext'
44052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44053 (eval $ac_try) 2>&5
44055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44056 (exit $ac_status); }; }; then
44057 ac_cv_lib_ltdl_lt_dlinit=yes
44059 echo "$as_me: failed program was:" >&5
44060 sed 's/^/| /' conftest.$ac_ext >&5
44062 ac_cv_lib_ltdl_lt_dlinit=no
44064 rm -f conftest.err conftest.$ac_objext \
44065 conftest$ac_exeext conftest.$ac_ext
44066 LIBS=$ac_check_lib_save_LIBS
44068 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44069 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44070 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44073 LIBSLAPI=libslapi.a
44074 LIBSLAPITOOLS=../libslapi.a
44076 cat >>confdefs.h <<\_ACEOF
44077 #define HAVE_LIBLTDL 1
44082 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44083 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44084 { (exit 1); exit 1; }; }
44089 cat >>confdefs.h <<\_ACEOF
44090 #define LDAP_SLAPI 1
44095 if test "$ol_enable_debug" != no ; then
44096 if test "$ol_enable_debug" = traditional; then
44098 cat >>confdefs.h <<\_ACEOF
44099 #define OLD_DEBUG 1
44104 cat >>confdefs.h <<\_ACEOF
44105 #define LDAP_DEBUG 1
44109 if test "$ol_enable_syslog" = yes ; then
44111 cat >>confdefs.h <<\_ACEOF
44112 #define LDAP_SYSLOG 1
44116 if test "$ol_link_kbind" != no ; then
44118 cat >>confdefs.h <<\_ACEOF
44119 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44123 if test "$ol_enable_proctitle" != no ; then
44125 cat >>confdefs.h <<\_ACEOF
44126 #define LDAP_PROCTITLE 1
44130 if test "$ol_enable_referrals" != no ; then
44132 cat >>confdefs.h <<\_ACEOF
44133 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44137 if test "$ol_enable_local" != no; then
44139 cat >>confdefs.h <<\_ACEOF
44140 #define LDAP_PF_LOCAL 1
44144 if test "$ol_link_ipv6" != no; then
44146 cat >>confdefs.h <<\_ACEOF
44147 #define LDAP_PF_INET6 1
44151 if test "$ol_enable_cleartext" != no ; then
44153 cat >>confdefs.h <<\_ACEOF
44154 #define SLAPD_CLEARTEXT 1
44158 if test "$ol_enable_crypt" != no ; then
44160 cat >>confdefs.h <<\_ACEOF
44161 #define SLAPD_CRYPT 1
44165 if test "$ol_link_spasswd" != no ; then
44167 cat >>confdefs.h <<\_ACEOF
44168 #define SLAPD_SPASSWD 1
44172 if test "$ol_enable_multimaster" != no ; then
44174 cat >>confdefs.h <<\_ACEOF
44175 #define SLAPD_MULTIMASTER 1
44179 if test "$ol_enable_rlookups" != no ; then
44181 cat >>confdefs.h <<\_ACEOF
44182 #define SLAPD_RLOOKUPS 1
44186 if test "$ol_enable_aci" != no ; then
44187 if test $ol_enable_dynacl = no ; then
44188 ol_enable_dynacl=yes
44189 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44190 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44192 if test "$ol_enable_aci" = mod ; then
44193 MFLAG=SLAPD_MOD_DYNAMIC
44194 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44195 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44196 { (exit 1); exit 1; }; }
44198 MFLAG=SLAPD_MOD_STATIC
44200 WITH_ACI_ENABLED=$ol_enable_aci
44202 cat >>confdefs.h <<_ACEOF
44203 #define SLAPD_ACI_ENABLED $MFLAG
44207 WITH_ACI_ENABLED=no
44209 if test "$ol_enable_dynacl" != no ; then
44211 cat >>confdefs.h <<\_ACEOF
44212 #define SLAP_DYNACL 1
44217 if test "$ol_link_modules" != no ; then
44219 cat >>confdefs.h <<\_ACEOF
44220 #define SLAPD_MODULES 1
44224 SLAPD_MODULES_LDFLAGS="-dlopen self"
44228 cat >>confdefs.h <<\_ACEOF
44229 #define SLAPD_MOD_STATIC 1
44233 cat >>confdefs.h <<\_ACEOF
44234 #define SLAPD_MOD_DYNAMIC 2
44238 if test "$ol_enable_bdb" != no ; then
44240 BUILD_BDB=$ol_enable_bdb
44241 if test "$ol_enable_bdb" = mod ; then
44242 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44243 MFLAG=SLAPD_MOD_DYNAMIC
44245 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44246 MFLAG=SLAPD_MOD_STATIC
44249 cat >>confdefs.h <<_ACEOF
44250 #define SLAPD_BDB $MFLAG
44255 if test "$ol_enable_dnssrv" != no ; then
44257 BUILD_DNSSRV=$ol_enable_dnssrv
44258 if test "$ol_enable_dnssrv" = mod ; then
44259 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44260 MFLAG=SLAPD_MOD_DYNAMIC
44262 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44263 MFLAG=SLAPD_MOD_STATIC
44266 cat >>confdefs.h <<_ACEOF
44267 #define SLAPD_DNSSRV $MFLAG
44272 if test "$ol_enable_hdb" != no ; then
44274 BUILD_HDB=$ol_enable_hdb
44275 if test "$ol_enable_hdb" = mod ; then
44276 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44277 MFLAG=SLAPD_MOD_DYNAMIC
44279 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44280 MFLAG=SLAPD_MOD_STATIC
44283 cat >>confdefs.h <<_ACEOF
44284 #define SLAPD_HDB $MFLAG
44289 if test "$ol_enable_ldap" != no ; then
44291 BUILD_LDAP=$ol_enable_ldap
44292 if test "$ol_enable_ldap" = mod ; then
44293 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44294 MFLAG=SLAPD_MOD_DYNAMIC
44296 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44297 MFLAG=SLAPD_MOD_STATIC
44300 cat >>confdefs.h <<_ACEOF
44301 #define SLAPD_LDAP $MFLAG
44306 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44308 BUILD_LDBM=$ol_enable_ldbm
44309 if test "$ol_enable_ldbm" = mod ; then
44310 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44311 MFLAG=SLAPD_MOD_DYNAMIC
44313 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44314 MFLAG=SLAPD_MOD_STATIC
44317 cat >>confdefs.h <<_ACEOF
44318 #define SLAPD_LDBM $MFLAG
44323 if test "$ol_enable_meta" != no ; then
44325 BUILD_META=$ol_enable_meta
44327 if test "$ol_enable_meta" = mod ; then
44328 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44329 MFLAG=SLAPD_MOD_DYNAMIC
44331 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44332 MFLAG=SLAPD_MOD_STATIC
44335 cat >>confdefs.h <<_ACEOF
44336 #define SLAPD_META $MFLAG
44341 if test "$ol_enable_monitor" != no ; then
44343 BUILD_MONITOR=$ol_enable_monitor
44344 if test "$ol_enable_monitor" = mod ; then
44345 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44346 MFLAG=SLAPD_MOD_DYNAMIC
44348 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44349 MFLAG=SLAPD_MOD_STATIC
44352 cat >>confdefs.h <<_ACEOF
44353 #define SLAPD_MONITOR $MFLAG
44358 if test "$ol_enable_null" != no ; then
44360 BUILD_NULL=$ol_enable_null
44361 if test "$ol_enable_null" = mod ; then
44362 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44363 MFLAG=SLAPD_MOD_DYNAMIC
44365 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44366 MFLAG=SLAPD_MOD_STATIC
44369 cat >>confdefs.h <<_ACEOF
44370 #define SLAPD_NULL $MFLAG
44375 if test "$ol_enable_passwd" != no ; then
44377 BUILD_PASSWD=$ol_enable_passwd
44378 if test "$ol_enable_passwd" = mod ; then
44379 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44380 MFLAG=SLAPD_MOD_DYNAMIC
44382 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44383 MFLAG=SLAPD_MOD_STATIC
44386 cat >>confdefs.h <<_ACEOF
44387 #define SLAPD_PASSWD $MFLAG
44392 if test "$ol_link_perl" != no ; then
44394 BUILD_PERL=$ol_enable_perl
44395 if test "$ol_enable_perl" = mod ; then
44396 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44397 MFLAG=SLAPD_MOD_DYNAMIC
44399 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44400 MFLAG=SLAPD_MOD_STATIC
44403 cat >>confdefs.h <<_ACEOF
44404 #define SLAPD_PERL $MFLAG
44409 if test "$ol_enable_relay" != no ; then
44411 BUILD_RELAY=$ol_enable_relay
44412 if test "$ol_enable_relay" = mod ; then
44413 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44414 MFLAG=SLAPD_MOD_DYNAMIC
44416 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44417 MFLAG=SLAPD_MOD_STATIC
44420 cat >>confdefs.h <<_ACEOF
44421 #define SLAPD_RELAY $MFLAG
44426 if test "$ol_enable_shell" != no ; then
44427 if test "$ol_link_threads" != no ; then
44428 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44429 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44432 BUILD_SHELL=$ol_enable_shell
44433 if test "$ol_enable_shell" = mod ; then
44434 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44435 MFLAG=SLAPD_MOD_DYNAMIC
44437 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44438 MFLAG=SLAPD_MOD_STATIC
44441 cat >>confdefs.h <<_ACEOF
44442 #define SLAPD_SHELL $MFLAG
44447 if test "$ol_link_sql" != no ; then
44449 BUILD_SQL=$ol_enable_sql
44450 if test "$ol_enable_sql" = mod; then
44451 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44452 MFLAG=SLAPD_MOD_DYNAMIC
44454 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44455 MFLAG=SLAPD_MOD_STATIC
44458 cat >>confdefs.h <<_ACEOF
44459 #define SLAPD_SQL $MFLAG
44464 if test "$ol_enable_accesslog" != no ; then
44465 BUILD_ACCESSLOG=$ol_enable_accesslog
44466 if test "$ol_enable_accesslog" = mod ; then
44467 MFLAG=SLAPD_MOD_DYNAMIC
44468 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44470 MFLAG=SLAPD_MOD_STATIC
44471 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44474 cat >>confdefs.h <<_ACEOF
44475 #define SLAPD_OVER_ACCESSLOG $MFLAG
44480 if test "$ol_enable_dds" != no ; then
44481 BUILD_DDS=$ol_enable_dds
44482 if test "$ol_enable_dds" = mod ; then
44483 MFLAG=SLAPD_MOD_DYNAMIC
44484 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44486 MFLAG=SLAPD_MOD_STATIC
44487 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44490 cat >>confdefs.h <<_ACEOF
44491 #define SLAPD_OVER_DDS $MFLAG
44496 if test "$ol_enable_denyop" != no ; then
44497 BUILD_DENYOP=$ol_enable_denyop
44498 if test "$ol_enable_denyop" = mod ; then
44499 MFLAG=SLAPD_MOD_DYNAMIC
44500 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44502 MFLAG=SLAPD_MOD_STATIC
44503 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44506 cat >>confdefs.h <<_ACEOF
44507 #define SLAPD_OVER_DENYOP $MFLAG
44512 if test "$ol_enable_dyngroup" != no ; then
44513 BUILD_DYNGROUP=$ol_enable_dyngroup
44514 if test "$ol_enable_dyngroup" = mod ; then
44515 MFLAG=SLAPD_MOD_DYNAMIC
44516 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44518 MFLAG=SLAPD_MOD_STATIC
44519 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44522 cat >>confdefs.h <<_ACEOF
44523 #define SLAPD_OVER_DYNGROUP $MFLAG
44528 if test "$ol_enable_dynlist" != no ; then
44529 BUILD_DYNLIST=$ol_enable_dynlist
44530 if test "$ol_enable_dynlist" = mod ; then
44531 MFLAG=SLAPD_MOD_DYNAMIC
44532 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44534 MFLAG=SLAPD_MOD_STATIC
44535 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44538 cat >>confdefs.h <<_ACEOF
44539 #define SLAPD_OVER_DYNLIST $MFLAG
44544 if test "$ol_enable_lastmod" != no ; then
44545 BUILD_LASTMOD=$ol_enable_lastmod
44546 if test "$ol_enable_lastmod" = mod ; then
44547 MFLAG=SLAPD_MOD_DYNAMIC
44548 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44550 MFLAG=SLAPD_MOD_STATIC
44551 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44554 cat >>confdefs.h <<_ACEOF
44555 #define SLAPD_OVER_LASTMOD $MFLAG
44560 if test "$ol_enable_ppolicy" != no ; then
44561 BUILD_PPOLICY=$ol_enable_ppolicy
44562 if test "$ol_enable_ppolicy" = mod ; then
44563 MFLAG=SLAPD_MOD_DYNAMIC
44564 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44566 MFLAG=SLAPD_MOD_STATIC
44567 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44570 cat >>confdefs.h <<_ACEOF
44571 #define SLAPD_OVER_PPOLICY $MFLAG
44576 if test "$ol_enable_proxycache" != no ; then
44577 BUILD_PROXYCACHE=$ol_enable_proxycache
44578 if test "$ol_enable_proxycache" = mod ; then
44579 MFLAG=SLAPD_MOD_DYNAMIC
44580 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44582 MFLAG=SLAPD_MOD_STATIC
44583 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44586 cat >>confdefs.h <<_ACEOF
44587 #define SLAPD_OVER_PROXYCACHE $MFLAG
44592 if test "$ol_enable_refint" != no ; then
44593 BUILD_REFINT=$ol_enable_refint
44594 if test "$ol_enable_refint" = mod ; then
44595 MFLAG=SLAPD_MOD_DYNAMIC
44596 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44598 MFLAG=SLAPD_MOD_STATIC
44599 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44602 cat >>confdefs.h <<_ACEOF
44603 #define SLAPD_OVER_REFINT $MFLAG
44608 if test "$ol_enable_retcode" != no ; then
44609 BUILD_RETCODE=$ol_enable_retcode
44610 if test "$ol_enable_retcode" = mod ; then
44611 MFLAG=SLAPD_MOD_DYNAMIC
44612 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44614 MFLAG=SLAPD_MOD_STATIC
44615 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44618 cat >>confdefs.h <<_ACEOF
44619 #define SLAPD_OVER_RETCODE $MFLAG
44624 if test "$ol_enable_rwm" != no ; then
44626 BUILD_RWM=$ol_enable_rwm
44627 if test "$ol_enable_rwm" = mod ; then
44628 MFLAG=SLAPD_MOD_DYNAMIC
44629 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44631 MFLAG=SLAPD_MOD_STATIC
44632 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44635 cat >>confdefs.h <<_ACEOF
44636 #define SLAPD_OVER_RWM $MFLAG
44641 if test "$ol_enable_syncprov" != no ; then
44642 BUILD_SYNCPROV=$ol_enable_syncprov
44643 if test "$ol_enable_syncprov" = mod ; then
44644 MFLAG=SLAPD_MOD_DYNAMIC
44645 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44647 MFLAG=SLAPD_MOD_STATIC
44648 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44651 cat >>confdefs.h <<_ACEOF
44652 #define SLAPD_OVER_SYNCPROV $MFLAG
44657 if test "$ol_enable_translucent" != no ; then
44658 BUILD_TRANSLUCENT=$ol_enable_translucent
44659 if test "$ol_enable_translucent" = mod ; then
44660 MFLAG=SLAPD_MOD_DYNAMIC
44661 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44663 MFLAG=SLAPD_MOD_STATIC
44664 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44667 cat >>confdefs.h <<_ACEOF
44668 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44673 if test "$ol_enable_unique" != no ; then
44674 BUILD_UNIQUE=$ol_enable_unique
44675 if test "$ol_enable_unique" = mod ; then
44676 MFLAG=SLAPD_MOD_DYNAMIC
44677 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44679 MFLAG=SLAPD_MOD_STATIC
44680 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44683 cat >>confdefs.h <<_ACEOF
44684 #define SLAPD_OVER_UNIQUE $MFLAG
44689 if test "$ol_enable_valsort" != no ; then
44690 BUILD_VALSORT=$ol_enable_valsort
44691 if test "$ol_enable_valsort" = mod ; then
44692 MFLAG=SLAPD_MOD_DYNAMIC
44693 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44695 MFLAG=SLAPD_MOD_STATIC
44696 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44699 cat >>confdefs.h <<_ACEOF
44700 #define SLAPD_OVER_VALSORT $MFLAG
44705 if test "$ol_enable_slurpd" != no &&
44706 test "$ol_link_threads" != no &&
44707 test $BUILD_SLAPD = yes ; then
44711 if test "$ol_enable_rewrite" != no ; then
44713 cat >>confdefs.h <<\_ACEOF
44714 #define ENABLE_REWRITE 1
44720 if test "$ol_enable_slapi" != no ; then
44722 cat >>confdefs.h <<\_ACEOF
44723 #define ENABLE_SLAPI 1
44727 SLAPD_SLAPI_DEPEND=libslapi.a
44732 if test "$ac_cv_mingw32" = yes ; then
44734 SLAPD_MODULES_LDFLAGS=
44821 # Check whether --with-xxinstall or --without-xxinstall was given.
44822 if test "${with_xxinstall+set}" = set; then
44823 withval="$with_xxinstall"
44828 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"
44831 ac_config_commands="$ac_config_commands default"
44835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44836 # Let make expand exec_prefix.
44837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44839 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44840 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44841 # trailing colons and then remove the whole line if VPATH becomes empty
44842 # (actually we leave an empty line to preserve line numbers).
44843 if test "x$srcdir" = x.; then
44844 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44845 s/:*\$(srcdir):*/:/;
44846 s/:*\${srcdir}:*/:/;
44848 s/^\([^=]*=[ ]*\):*/\1/;
44854 DEFS=-DHAVE_CONFIG_H
44858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44859 # 1. Remove the extension, and $U if already installed.
44860 ac_i=`echo "$ac_i" |
44861 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44863 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44864 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44866 LIBOBJS=$ac_libobjs
44868 LTLIBOBJS=$ac_ltlibobjs
44871 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44872 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44873 Usually this means the macro was only invoked conditionally." >&5
44874 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44875 Usually this means the macro was only invoked conditionally." >&2;}
44876 { (exit 1); exit 1; }; }
44878 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44879 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44880 Usually this means the macro was only invoked conditionally." >&5
44881 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44882 Usually this means the macro was only invoked conditionally." >&2;}
44883 { (exit 1); exit 1; }; }
44885 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44886 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44887 Usually this means the macro was only invoked conditionally." >&5
44888 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44889 Usually this means the macro was only invoked conditionally." >&2;}
44890 { (exit 1); exit 1; }; }
44893 : ${CONFIG_STATUS=./config.status}
44894 ac_clean_files_save=$ac_clean_files
44895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44896 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44897 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44898 cat >$CONFIG_STATUS <<_ACEOF
44900 # Generated by $as_me.
44901 # Run this file to recreate the current configuration.
44902 # Compiler output produced by configure, useful for debugging
44903 # configure, is in config.log if it exists.
44906 ac_cs_recheck=false
44908 SHELL=\${CONFIG_SHELL-$SHELL}
44911 cat >>$CONFIG_STATUS <<\_ACEOF
44912 ## --------------------- ##
44913 ## M4sh Initialization. ##
44914 ## --------------------- ##
44916 # Be Bourne compatible
44917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44920 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44921 # is contrary to our usage. Disable this feature.
44922 alias -g '${1+"$@"}'='"$@"'
44923 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44926 DUALCASE=1; export DUALCASE # for MKS sh
44928 # Support unset when possible.
44929 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44936 # Work around bugs in pre-3.0 UWIN ksh.
44937 $as_unset ENV MAIL MAILPATH
44944 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44945 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44946 LC_TELEPHONE LC_TIME
44948 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44949 eval $as_var=C; export $as_var
44955 # Required to use basename.
44956 if expr a : '\(a\)' >/dev/null 2>&1; then
44962 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44963 as_basename=basename
44969 # Name of the executable.
44970 as_me=`$as_basename "$0" ||
44971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44972 X"$0" : 'X\(//\)$' \| \
44973 X"$0" : 'X\(/\)$' \| \
44974 . : '\(.\)' 2>/dev/null ||
44976 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44977 /^X\/\(\/\/\)$/{ s//\1/; q; }
44978 /^X\/\(\/\).*/{ s//\1/; q; }
44982 # PATH needs CR, and LINENO needs CR and PATH.
44983 # Avoid depending upon Character Ranges.
44984 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44985 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44986 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44987 as_cr_digits='0123456789'
44988 as_cr_alnum=$as_cr_Letters$as_cr_digits
44990 # The user is always right.
44991 if test "${PATH_SEPARATOR+set}" != set; then
44992 echo "#! /bin/sh" >conf$$.sh
44993 echo "exit 0" >>conf$$.sh
44995 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45004 as_lineno_1=$LINENO
45005 as_lineno_2=$LINENO
45006 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45007 test "x$as_lineno_1" != "x$as_lineno_2" &&
45008 test "x$as_lineno_3" = "x$as_lineno_2" || {
45009 # Find who we are. Look in the path if we contain no path at all
45012 *[\\/]* ) as_myself=$0 ;;
45013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45014 for as_dir in $PATH
45017 test -z "$as_dir" && as_dir=.
45018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45023 # We did not find ourselves, most probably we were run as `sh COMMAND'
45024 # in which case we are not to be found in the path.
45025 if test "x$as_myself" = x; then
45028 if test ! -f "$as_myself"; then
45029 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45030 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45031 { (exit 1); exit 1; }; }
45033 case $CONFIG_SHELL in
45035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45036 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45039 test -z "$as_dir" && as_dir=.
45040 for as_base in sh bash ksh sh5; do
45043 if ("$as_dir/$as_base" -c '
45044 as_lineno_1=$LINENO
45045 as_lineno_2=$LINENO
45046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45047 test "x$as_lineno_1" != "x$as_lineno_2" &&
45048 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45049 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45050 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45051 CONFIG_SHELL=$as_dir/$as_base
45052 export CONFIG_SHELL
45053 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45061 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45062 # uniformly replaced by the line number. The first 'sed' inserts a
45063 # line-number line before each line; the second 'sed' does the real
45064 # work. The second script uses 'N' to pair each line-number line
45065 # with the numbered line, and appends trailing '-' during
45066 # substitution so that $LINENO is not a special case at line end.
45067 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45068 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45069 sed '=' <$as_myself |
45074 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45077 s,^['$as_cr_digits']*\n,,
45078 ' >$as_me.lineno &&
45079 chmod +x $as_me.lineno ||
45080 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45081 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45082 { (exit 1); exit 1; }; }
45084 # Don't try to exec as it changes $[0], causing all sort of problems
45085 # (the dirname of $[0] is not the place where we might find the
45086 # original and so on. Autoconf is especially sensible to this).
45088 # Exit status is that of the last command.
45093 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45094 *c*,-n*) ECHO_N= ECHO_C='
45096 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45097 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45100 if expr a : '\(a\)' >/dev/null 2>&1; then
45106 rm -f conf$$ conf$$.exe conf$$.file
45108 if ln -s conf$$.file conf$$ 2>/dev/null; then
45109 # We could just check for DJGPP; but this test a) works b) is more generic
45110 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45111 if test -f conf$$.exe; then
45112 # Don't use ln at all; we don't have any links
45117 elif ln conf$$.file conf$$ 2>/dev/null; then
45122 rm -f conf$$ conf$$.exe conf$$.file
45124 if mkdir -p . 2>/dev/null; then
45127 test -d ./-p && rmdir ./-p
45131 as_executable_p="test -f"
45133 # Sed expression to map a string onto a valid CPP name.
45134 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45136 # Sed expression to map a string onto a valid variable name.
45137 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45141 # We need space, tab and new line, in precisely that order.
45151 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45152 # report actual input values of CONFIG_FILES etc. instead of their
45153 # values after options handling. Logging --version etc. is OK.
45157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45158 ## Running $as_me. ##
45163 This file was extended by $as_me, which was
45164 generated by GNU Autoconf 2.59. Invocation command line was
45166 CONFIG_FILES = $CONFIG_FILES
45167 CONFIG_HEADERS = $CONFIG_HEADERS
45168 CONFIG_LINKS = $CONFIG_LINKS
45169 CONFIG_COMMANDS = $CONFIG_COMMANDS
45173 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45177 # Files that config.status was made for.
45178 if test -n "$ac_config_files"; then
45179 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45182 if test -n "$ac_config_headers"; then
45183 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45186 if test -n "$ac_config_links"; then
45187 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45190 if test -n "$ac_config_commands"; then
45191 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45194 cat >>$CONFIG_STATUS <<\_ACEOF
45197 \`$as_me' instantiates files from templates according to the
45198 current configuration.
45200 Usage: $0 [OPTIONS] [FILE]...
45202 -h, --help print this help, then exit
45203 -V, --version print version number, then exit
45204 -q, --quiet do not print progress messages
45205 -d, --debug don't remove temporary files
45206 --recheck update $as_me by reconfiguring in the same conditions
45207 --file=FILE[:TEMPLATE]
45208 instantiate the configuration file FILE
45209 --header=FILE[:TEMPLATE]
45210 instantiate the configuration header FILE
45212 Configuration files:
45215 Configuration headers:
45218 Configuration commands:
45221 Report bugs to <bug-autoconf@gnu.org>."
45224 cat >>$CONFIG_STATUS <<_ACEOF
45227 configured by $0, generated by GNU Autoconf 2.59,
45228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45230 Copyright (C) 2003 Free Software Foundation, Inc.
45231 This config.status script is free software; the Free Software Foundation
45232 gives unlimited permission to copy, distribute and modify it."
45237 cat >>$CONFIG_STATUS <<\_ACEOF
45238 # If no file are specified by the user, then we need to provide default
45239 # value. By we need to know if files were specified by the user.
45245 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45246 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45254 *) # This is not an option, so the user has probably given explicit
45257 ac_need_defaults=false;;
45261 # Handling of the options.
45263 cat >>$CONFIG_STATUS <<\_ACEOF
45264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45266 --version | --vers* | -V )
45267 echo "$ac_cs_version"; exit 0 ;;
45269 # Conflict between --help and --header
45270 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45271 Try \`$0 --help' for more information." >&5
45272 echo "$as_me: error: ambiguous option: $1
45273 Try \`$0 --help' for more information." >&2;}
45274 { (exit 1); exit 1; }; };;
45275 --help | --hel | -h )
45276 echo "$ac_cs_usage"; exit 0 ;;
45277 --debug | --d* | -d )
45279 --file | --fil | --fi | --f )
45281 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45282 ac_need_defaults=false;;
45283 --header | --heade | --head | --hea )
45285 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45286 ac_need_defaults=false;;
45287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45291 # This is an error.
45292 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45293 Try \`$0 --help' for more information." >&5
45294 echo "$as_me: error: unrecognized option: $1
45295 Try \`$0 --help' for more information." >&2;}
45296 { (exit 1); exit 1; }; } ;;
45298 *) ac_config_targets="$ac_config_targets $1" ;;
45304 ac_configure_extra_args=
45306 if $ac_cs_silent; then
45308 ac_configure_extra_args="$ac_configure_extra_args --silent"
45312 cat >>$CONFIG_STATUS <<_ACEOF
45313 if \$ac_cs_recheck; then
45314 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45315 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45320 cat >>$CONFIG_STATUS <<_ACEOF
45322 # INIT-COMMANDS section.
45325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45327 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45328 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45335 cat >>$CONFIG_STATUS <<\_ACEOF
45336 for ac_config_target in $ac_config_targets
45338 case "$ac_config_target" in
45339 # Handling of arguments.
45340 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45341 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45342 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45343 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45344 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45345 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45346 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45347 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45348 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45349 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45350 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45351 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45352 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45353 "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" ;;
45354 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45355 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45356 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45357 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45358 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45359 "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" ;;
45360 "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" ;;
45361 "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" ;;
45362 "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" ;;
45363 "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" ;;
45364 "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" ;;
45365 "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" ;;
45366 "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" ;;
45367 "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" ;;
45368 "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" ;;
45369 "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" ;;
45370 "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" ;;
45371 "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" ;;
45372 "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" ;;
45373 "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" ;;
45374 "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" ;;
45375 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45376 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45377 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45378 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45379 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45380 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45381 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45382 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45383 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45384 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45385 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45386 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45387 { (exit 1); exit 1; }; };;
45391 # If the user did not use the arguments to specify the items to instantiate,
45392 # then the envvar interface is used. Set only those that are not.
45393 # We use the long form for the default assignment because of an extremely
45394 # bizarre bug on SunOS 4.1.3.
45395 if $ac_need_defaults; then
45396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45401 # Have a temporary directory for convenience. Make it in the build tree
45402 # simply because there is no reason to put it here, and in addition,
45403 # creating and moving files from /tmp can sometimes cause problems.
45404 # Create a temporary directory, and hook for its removal unless debugging.
45407 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45408 trap '{ (exit 1); exit 1; }' 1 2 13 15
45411 # Create a (secure) tmp directory for tmp files.
45414 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45415 test -n "$tmp" && test -d "$tmp"
45418 tmp=./confstat$$-$RANDOM
45419 (umask 077 && mkdir $tmp)
45422 echo "$me: cannot create a temporary directory in ." >&2
45423 { (exit 1); exit 1; }
45428 cat >>$CONFIG_STATUS <<_ACEOF
45431 # CONFIG_FILES section.
45434 # No need to generate the scripts if there are no CONFIG_FILES.
45435 # This happens for instance when ./config.status config.h
45436 if test -n "\$CONFIG_FILES"; then
45437 # Protect against being on the right side of a sed subst in config.status.
45438 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45439 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45440 s,@SHELL@,$SHELL,;t t
45441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45447 s,@exec_prefix@,$exec_prefix,;t t
45448 s,@prefix@,$prefix,;t t
45449 s,@program_transform_name@,$program_transform_name,;t t
45450 s,@bindir@,$bindir,;t t
45451 s,@sbindir@,$sbindir,;t t
45452 s,@libexecdir@,$libexecdir,;t t
45453 s,@datadir@,$datadir,;t t
45454 s,@sysconfdir@,$sysconfdir,;t t
45455 s,@sharedstatedir@,$sharedstatedir,;t t
45456 s,@localstatedir@,$localstatedir,;t t
45457 s,@libdir@,$libdir,;t t
45458 s,@includedir@,$includedir,;t t
45459 s,@oldincludedir@,$oldincludedir,;t t
45460 s,@infodir@,$infodir,;t t
45461 s,@mandir@,$mandir,;t t
45462 s,@build_alias@,$build_alias,;t t
45463 s,@host_alias@,$host_alias,;t t
45464 s,@target_alias@,$target_alias,;t t
45465 s,@DEFS@,$DEFS,;t t
45466 s,@ECHO_C@,$ECHO_C,;t t
45467 s,@ECHO_N@,$ECHO_N,;t t
45468 s,@ECHO_T@,$ECHO_T,;t t
45469 s,@LIBS@,$LIBS,;t t
45470 s,@build@,$build,;t t
45471 s,@build_cpu@,$build_cpu,;t t
45472 s,@build_vendor@,$build_vendor,;t t
45473 s,@build_os@,$build_os,;t t
45474 s,@host@,$host,;t t
45475 s,@host_cpu@,$host_cpu,;t t
45476 s,@host_vendor@,$host_vendor,;t t
45477 s,@host_os@,$host_os,;t t
45478 s,@target@,$target,;t t
45479 s,@target_cpu@,$target_cpu,;t t
45480 s,@target_vendor@,$target_vendor,;t t
45481 s,@target_os@,$target_os,;t t
45482 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45483 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45484 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45485 s,@CYGPATH_W@,$CYGPATH_W,;t t
45486 s,@PACKAGE@,$PACKAGE,;t t
45487 s,@VERSION@,$VERSION,;t t
45488 s,@ACLOCAL@,$ACLOCAL,;t t
45489 s,@AUTOCONF@,$AUTOCONF,;t t
45490 s,@AUTOMAKE@,$AUTOMAKE,;t t
45491 s,@AUTOHEADER@,$AUTOHEADER,;t t
45492 s,@MAKEINFO@,$MAKEINFO,;t t
45493 s,@install_sh@,$install_sh,;t t
45494 s,@STRIP@,$STRIP,;t t
45495 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45496 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45497 s,@mkdir_p@,$mkdir_p,;t t
45499 s,@SET_MAKE@,$SET_MAKE,;t t
45500 s,@am__leading_dot@,$am__leading_dot,;t t
45501 s,@AMTAR@,$AMTAR,;t t
45502 s,@am__tar@,$am__tar,;t t
45503 s,@am__untar@,$am__untar,;t t
45504 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45505 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45506 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45507 s,@top_builddir@,$top_builddir,;t t
45508 s,@ldap_subdir@,$ldap_subdir,;t t
45511 s,@CFLAGS@,$CFLAGS,;t t
45512 s,@LDFLAGS@,$LDFLAGS,;t t
45513 s,@CPPFLAGS@,$CPPFLAGS,;t t
45514 s,@ac_ct_CC@,$ac_ct_CC,;t t
45515 s,@EXEEXT@,$EXEEXT,;t t
45516 s,@OBJEXT@,$OBJEXT,;t t
45517 s,@DEPDIR@,$DEPDIR,;t t
45518 s,@am__include@,$am__include,;t t
45519 s,@am__quote@,$am__quote,;t t
45520 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45521 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45522 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45523 s,@CCDEPMODE@,$CCDEPMODE,;t t
45524 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45525 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45526 s,@EGREP@,$EGREP,;t t
45527 s,@LN_S@,$LN_S,;t t
45528 s,@ECHO@,$ECHO,;t t
45529 s,@ac_ct_AR@,$ac_ct_AR,;t t
45530 s,@RANLIB@,$RANLIB,;t t
45531 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45532 s,@DLLTOOL@,$DLLTOOL,;t t
45533 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45535 s,@ac_ct_AS@,$ac_ct_AS,;t t
45536 s,@OBJDUMP@,$OBJDUMP,;t t
45537 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45539 s,@LIBTOOL@,$LIBTOOL,;t t
45540 s,@PERLBIN@,$PERLBIN,;t t
45541 s,@OL_MKDEP@,$OL_MKDEP,;t t
45542 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45543 s,@LTSTATIC@,$LTSTATIC,;t t
45544 s,@LIBOBJS@,$LIBOBJS,;t t
45545 s,@LIBSRCS@,$LIBSRCS,;t t
45546 s,@PLAT@,$PLAT,;t t
45547 s,@WITH_SASL@,$WITH_SASL,;t t
45548 s,@WITH_TLS@,$WITH_TLS,;t t
45549 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45550 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45551 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45552 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45553 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45554 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45555 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45556 s,@BUILD_BDB@,$BUILD_BDB,;t t
45557 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45558 s,@BUILD_HDB@,$BUILD_HDB,;t t
45559 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45560 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45561 s,@BUILD_META@,$BUILD_META,;t t
45562 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45563 s,@BUILD_NULL@,$BUILD_NULL,;t t
45564 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45565 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45566 s,@BUILD_PERL@,$BUILD_PERL,;t t
45567 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45568 s,@BUILD_SQL@,$BUILD_SQL,;t t
45569 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45570 s,@BUILD_DDS@,$BUILD_DDS,;t t
45571 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45572 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45573 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45574 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45575 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45576 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45577 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45578 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45579 s,@BUILD_RWM@,$BUILD_RWM,;t t
45580 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45581 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45582 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45583 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45584 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45585 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45586 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45587 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45588 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45589 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45590 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45591 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45592 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45593 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45594 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45595 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45596 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45597 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45598 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45599 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45600 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45601 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45602 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45603 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45604 s,@SASL_LIBS@,$SASL_LIBS,;t t
45605 s,@TLS_LIBS@,$TLS_LIBS,;t t
45606 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45607 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45608 s,@LIBSLAPI@,$LIBSLAPI,;t t
45609 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45610 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45611 s,@ICU_LIBS@,$ICU_LIBS,;t t
45612 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45613 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45614 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45615 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45616 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45617 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45622 cat >>$CONFIG_STATUS <<\_ACEOF
45623 # Split the substitutions into bite-sized pieces for seds with
45624 # small command number limits, like on Digital OSF/1 and HP-UX.
45625 ac_max_sed_lines=48
45626 ac_sed_frag=1 # Number of current file.
45627 ac_beg=1 # First line for current file.
45628 ac_end=$ac_max_sed_lines # Line after last line for current file.
45631 while $ac_more_lines; do
45632 if test $ac_beg -gt 1; then
45633 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45635 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45637 if test ! -s $tmp/subs.frag; then
45638 ac_more_lines=false
45640 # The purpose of the label and of the branching condition is to
45641 # speed up the sed processing (if there are no `@' at all, there
45642 # is no need to browse any of the substitutions).
45643 # These are the two extra sed commands mentioned above.
45645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45646 if test -z "$ac_sed_cmds"; then
45647 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45649 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45651 ac_sed_frag=`expr $ac_sed_frag + 1`
45653 ac_end=`expr $ac_end + $ac_max_sed_lines`
45656 if test -z "$ac_sed_cmds"; then
45659 fi # test -n "$CONFIG_FILES"
45662 cat >>$CONFIG_STATUS <<\_ACEOF
45663 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45664 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45666 - | *:- | *:-:* ) # input from stdin
45668 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45670 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45672 * ) ac_file_in=$ac_file.in ;;
45675 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45676 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45678 X"$ac_file" : 'X\(//\)[^/]' \| \
45679 X"$ac_file" : 'X\(//\)$' \| \
45680 X"$ac_file" : 'X\(/\)' \| \
45681 . : '\(.\)' 2>/dev/null ||
45683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45685 /^X\(\/\/\)$/{ s//\1/; q; }
45686 /^X\(\/\).*/{ s//\1/; q; }
45688 { if $as_mkdir_p; then
45693 while test ! -d "$as_dir"; do
45694 as_dirs="$as_dir $as_dirs"
45695 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45697 X"$as_dir" : 'X\(//\)[^/]' \| \
45698 X"$as_dir" : 'X\(//\)$' \| \
45699 X"$as_dir" : 'X\(/\)' \| \
45700 . : '\(.\)' 2>/dev/null ||
45702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45704 /^X\(\/\/\)$/{ s//\1/; q; }
45705 /^X\(\/\).*/{ s//\1/; q; }
45708 test ! -n "$as_dirs" || mkdir $as_dirs
45709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45711 { (exit 1); exit 1; }; }; }
45715 if test "$ac_dir" != .; then
45716 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45717 # A "../" for each directory in $ac_dir_suffix.
45718 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45720 ac_dir_suffix= ac_top_builddir=
45724 .) # No --srcdir option. We are building in place.
45726 if test -z "$ac_top_builddir"; then
45729 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45731 [\\/]* | ?:[\\/]* ) # Absolute path.
45732 ac_srcdir=$srcdir$ac_dir_suffix;
45733 ac_top_srcdir=$srcdir ;;
45734 *) # Relative path.
45735 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45736 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45739 # Do not use `cd foo && pwd` to compute absolute paths, because
45740 # the directories may not exist.
45742 .) ac_abs_builddir="$ac_dir";;
45745 .) ac_abs_builddir=`pwd`;;
45746 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45747 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45750 case $ac_abs_builddir in
45751 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45753 case ${ac_top_builddir}. in
45754 .) ac_abs_top_builddir=$ac_abs_builddir;;
45755 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45756 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45759 case $ac_abs_builddir in
45760 .) ac_abs_srcdir=$ac_srcdir;;
45763 .) ac_abs_srcdir=$ac_abs_builddir;;
45764 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45765 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45768 case $ac_abs_builddir in
45769 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45771 case $ac_top_srcdir in
45772 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45773 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45774 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45780 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45781 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45784 if test x"$ac_file" != x-; then
45785 { echo "$as_me:$LINENO: creating $ac_file" >&5
45786 echo "$as_me: creating $ac_file" >&6;}
45789 # Let's still pretend it is `configure' which instantiates (i.e., don't
45790 # use $as_me), people would be surprised to read:
45791 # /* config.h. Generated by config.status. */
45792 if test x"$ac_file" = x-; then
45795 configure_input="$ac_file. "
45797 configure_input=$configure_input"Generated from `echo $ac_file_in |
45798 sed 's,.*/,,'` by configure."
45800 # First look for the input files in the build tree, otherwise in the
45802 ac_file_inputs=`IFS=:
45803 for f in $ac_file_in; do
45805 -) echo $tmp/stdin ;;
45807 # Absolute (can't be DOS-style, as IFS=:)
45808 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45809 echo "$as_me: error: cannot find input file: $f" >&2;}
45810 { (exit 1); exit 1; }; }
45813 if test -f "$f"; then
45816 elif test -f "$srcdir/$f"; then
45821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45822 echo "$as_me: error: cannot find input file: $f" >&2;}
45823 { (exit 1); exit 1; }; }
45826 done` || { (exit 1); exit 1; }
45828 cat >>$CONFIG_STATUS <<_ACEOF
45832 cat >>$CONFIG_STATUS <<\_ACEOF
45834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45835 s,@configure_input@,$configure_input,;t t
45836 s,@srcdir@,$ac_srcdir,;t t
45837 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45838 s,@top_srcdir@,$ac_top_srcdir,;t t
45839 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45840 s,@builddir@,$ac_builddir,;t t
45841 s,@abs_builddir@,$ac_abs_builddir,;t t
45842 s,@top_builddir@,$ac_top_builddir,;t t
45843 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45844 s,@INSTALL@,$ac_INSTALL,;t t
45845 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45847 if test x"$ac_file" != x-; then
45848 mv $tmp/out $ac_file
45856 cat >>$CONFIG_STATUS <<\_ACEOF
45859 # CONFIG_HEADER section.
45862 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45863 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45865 # ac_d sets the value in "#define NAME VALUE" lines.
45866 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45867 ac_dB='[ ].*$,\1#\2'
45870 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45871 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45872 ac_uB='$,\1#\2define\3'
45876 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45877 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45879 - | *:- | *:-:* ) # input from stdin
45881 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45883 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45885 * ) ac_file_in=$ac_file.in ;;
45888 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45889 echo "$as_me: creating $ac_file" >&6;}
45891 # First look for the input files in the build tree, otherwise in the
45893 ac_file_inputs=`IFS=:
45894 for f in $ac_file_in; do
45896 -) echo $tmp/stdin ;;
45898 # Absolute (can't be DOS-style, as IFS=:)
45899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45900 echo "$as_me: error: cannot find input file: $f" >&2;}
45901 { (exit 1); exit 1; }; }
45902 # Do quote $f, to prevent DOS paths from being IFS'd.
45905 if test -f "$f"; then
45908 elif test -f "$srcdir/$f"; then
45913 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45914 echo "$as_me: error: cannot find input file: $f" >&2;}
45915 { (exit 1); exit 1; }; }
45918 done` || { (exit 1); exit 1; }
45919 # Remove the trailing spaces.
45920 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45924 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45925 # `conftest.undefs', that substitutes the proper values into
45926 # config.h.in to produce config.h. The first handles `#define'
45927 # templates, and the second `#undef' templates.
45928 # And first: Protect against being on the right side of a sed subst in
45929 # config.status. Protect against being in an unquoted here document
45930 # in config.status.
45931 rm -f conftest.defines conftest.undefs
45932 # Using a here document instead of a string reduces the quoting nightmare.
45933 # Putting comments in sed scripts is not portable.
45935 # `end' is used to avoid that the second main sed command (meant for
45936 # 0-ary CPP macros) applies to n-ary macro definitions.
45937 # See the Autoconf documentation for `clear'.
45938 cat >confdef2sed.sed <<\_ACEOF
45943 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45945 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45948 # If some macros were called several times there might be several times
45949 # the same #defines, which is useless. Nevertheless, we may not want to
45950 # sort them, since we want the *last* AC-DEFINE to be honored.
45951 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45952 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45953 rm -f confdef2sed.sed
45955 # This sed command replaces #undef with comments. This is necessary, for
45956 # example, in the case of _POSIX_SOURCE, which is predefined and required
45957 # on some systems where configure will not decide to define it.
45958 cat >>conftest.undefs <<\_ACEOF
45959 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45962 # Break up conftest.defines because some shells have a limit on the size
45963 # of here documents, and old seds have small limits too (100 cmds).
45964 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45965 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45966 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45967 echo ' :' >>$CONFIG_STATUS
45968 rm -f conftest.tail
45969 while grep . conftest.defines >/dev/null
45971 # Write a limited-size here document to $tmp/defines.sed.
45972 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45973 # Speed up: don't consider the non `#define' lines.
45974 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
45975 # Work around the forget-to-reset-the-flag bug.
45976 echo 't clr' >>$CONFIG_STATUS
45977 echo ': clr' >>$CONFIG_STATUS
45978 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45980 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45982 mv $tmp/out $tmp/in
45984 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45985 rm -f conftest.defines
45986 mv conftest.tail conftest.defines
45988 rm -f conftest.defines
45989 echo ' fi # grep' >>$CONFIG_STATUS
45990 echo >>$CONFIG_STATUS
45992 # Break up conftest.undefs because some shells have a limit on the size
45993 # of here documents, and old seds have small limits too (100 cmds).
45994 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45995 rm -f conftest.tail
45996 while grep . conftest.undefs >/dev/null
45998 # Write a limited-size here document to $tmp/undefs.sed.
45999 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46000 # Speed up: don't consider the non `#undef'
46001 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46002 # Work around the forget-to-reset-the-flag bug.
46003 echo 't clr' >>$CONFIG_STATUS
46004 echo ': clr' >>$CONFIG_STATUS
46005 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46007 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46009 mv $tmp/out $tmp/in
46011 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46012 rm -f conftest.undefs
46013 mv conftest.tail conftest.undefs
46015 rm -f conftest.undefs
46017 cat >>$CONFIG_STATUS <<\_ACEOF
46018 # Let's still pretend it is `configure' which instantiates (i.e., don't
46019 # use $as_me), people would be surprised to read:
46020 # /* config.h. Generated by config.status. */
46021 if test x"$ac_file" = x-; then
46022 echo "/* Generated by configure. */" >$tmp/config.h
46024 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46026 cat $tmp/in >>$tmp/config.h
46028 if test x"$ac_file" != x-; then
46029 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46030 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46031 echo "$as_me: $ac_file is unchanged" >&6;}
46033 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46035 X"$ac_file" : 'X\(//\)[^/]' \| \
46036 X"$ac_file" : 'X\(//\)$' \| \
46037 X"$ac_file" : 'X\(/\)' \| \
46038 . : '\(.\)' 2>/dev/null ||
46040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46042 /^X\(\/\/\)$/{ s//\1/; q; }
46043 /^X\(\/\).*/{ s//\1/; q; }
46045 { if $as_mkdir_p; then
46050 while test ! -d "$as_dir"; do
46051 as_dirs="$as_dir $as_dirs"
46052 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46054 X"$as_dir" : 'X\(//\)[^/]' \| \
46055 X"$as_dir" : 'X\(//\)$' \| \
46056 X"$as_dir" : 'X\(/\)' \| \
46057 . : '\(.\)' 2>/dev/null ||
46059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46061 /^X\(\/\/\)$/{ s//\1/; q; }
46062 /^X\(\/\).*/{ s//\1/; q; }
46065 test ! -n "$as_dirs" || mkdir $as_dirs
46066 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46067 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46068 { (exit 1); exit 1; }; }; }
46071 mv $tmp/config.h $ac_file
46075 rm -f $tmp/config.h
46077 # Compute $ac_file's index in $config_headers.
46079 for _am_header in $config_headers :; do
46080 case $_am_header in
46081 $ac_file | $ac_file:* )
46084 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46087 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46088 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46089 X$ac_file : 'X\(//\)[^/]' \| \
46090 X$ac_file : 'X\(//\)$' \| \
46091 X$ac_file : 'X\(/\)' \| \
46092 . : '\(.\)' 2>/dev/null ||
46094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46096 /^X\(\/\/\)$/{ s//\1/; q; }
46097 /^X\(\/\).*/{ s//\1/; q; }
46098 s/.*/./; q'`/stamp-h$_am_stamp_count
46101 cat >>$CONFIG_STATUS <<\_ACEOF
46104 # CONFIG_COMMANDS section.
46106 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46107 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46108 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46109 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46110 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46111 X"$ac_dest" : 'X\(//\)[^/]' \| \
46112 X"$ac_dest" : 'X\(//\)$' \| \
46113 X"$ac_dest" : 'X\(/\)' \| \
46114 . : '\(.\)' 2>/dev/null ||
46116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46118 /^X\(\/\/\)$/{ s//\1/; q; }
46119 /^X\(\/\).*/{ s//\1/; q; }
46121 { if $as_mkdir_p; then
46126 while test ! -d "$as_dir"; do
46127 as_dirs="$as_dir $as_dirs"
46128 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46130 X"$as_dir" : 'X\(//\)[^/]' \| \
46131 X"$as_dir" : 'X\(//\)$' \| \
46132 X"$as_dir" : 'X\(/\)' \| \
46133 . : '\(.\)' 2>/dev/null ||
46135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46137 /^X\(\/\/\)$/{ s//\1/; q; }
46138 /^X\(\/\).*/{ s//\1/; q; }
46141 test ! -n "$as_dirs" || mkdir $as_dirs
46142 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46144 { (exit 1); exit 1; }; }; }
46148 if test "$ac_dir" != .; then
46149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46150 # A "../" for each directory in $ac_dir_suffix.
46151 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46153 ac_dir_suffix= ac_top_builddir=
46157 .) # No --srcdir option. We are building in place.
46159 if test -z "$ac_top_builddir"; then
46162 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46164 [\\/]* | ?:[\\/]* ) # Absolute path.
46165 ac_srcdir=$srcdir$ac_dir_suffix;
46166 ac_top_srcdir=$srcdir ;;
46167 *) # Relative path.
46168 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46169 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46172 # Do not use `cd foo && pwd` to compute absolute paths, because
46173 # the directories may not exist.
46175 .) ac_abs_builddir="$ac_dir";;
46178 .) ac_abs_builddir=`pwd`;;
46179 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46180 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46183 case $ac_abs_builddir in
46184 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46186 case ${ac_top_builddir}. in
46187 .) ac_abs_top_builddir=$ac_abs_builddir;;
46188 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46189 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46192 case $ac_abs_builddir in
46193 .) ac_abs_srcdir=$ac_srcdir;;
46196 .) ac_abs_srcdir=$ac_abs_builddir;;
46197 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46198 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46201 case $ac_abs_builddir in
46202 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46204 case $ac_top_srcdir in
46205 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46206 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46207 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46212 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46213 echo "$as_me: executing $ac_dest commands" >&6;}
46215 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46216 # Strip MF so we end up with the name of the file.
46217 mf=`echo "$mf" | sed -e 's/:.*$//'`
46218 # Check whether this is an Automake generated Makefile or not.
46219 # We used to match only the files named `Makefile.in', but
46220 # some people rename them; so instead we look at the file content.
46221 # Grep'ing the first line is not enough: some people post-process
46222 # each Makefile.in and add a new line on top of each file to say so.
46223 # So let's grep whole file.
46224 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46225 dirpart=`(dirname "$mf") 2>/dev/null ||
46226 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46227 X"$mf" : 'X\(//\)[^/]' \| \
46228 X"$mf" : 'X\(//\)$' \| \
46229 X"$mf" : 'X\(/\)' \| \
46230 . : '\(.\)' 2>/dev/null ||
46232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46234 /^X\(\/\/\)$/{ s//\1/; q; }
46235 /^X\(\/\).*/{ s//\1/; q; }
46240 # Extract the definition of DEPDIR, am__include, and am__quote
46241 # from the Makefile without running `make'.
46242 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46243 test -z "$DEPDIR" && continue
46244 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46245 test -z "am__include" && continue
46246 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46247 # When using ansi2knr, U may be empty or an underscore; expand it
46248 U=`sed -n 's/^U = //p' < "$mf"`
46249 # Find all dependency output files, they are included files with
46250 # $(DEPDIR) in their names. We invoke sed twice because it is the
46251 # simplest approach to changing $(DEPDIR) to its actual value in the
46253 for file in `sed -n "
46254 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46255 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46256 # Make sure the directory exists.
46257 test -f "$dirpart/$file" && continue
46258 fdir=`(dirname "$file") 2>/dev/null ||
46259 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46260 X"$file" : 'X\(//\)[^/]' \| \
46261 X"$file" : 'X\(//\)$' \| \
46262 X"$file" : 'X\(/\)' \| \
46263 . : '\(.\)' 2>/dev/null ||
46265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46267 /^X\(\/\/\)$/{ s//\1/; q; }
46268 /^X\(\/\).*/{ s//\1/; q; }
46270 { if $as_mkdir_p; then
46271 mkdir -p $dirpart/$fdir
46273 as_dir=$dirpart/$fdir
46275 while test ! -d "$as_dir"; do
46276 as_dirs="$as_dir $as_dirs"
46277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46279 X"$as_dir" : 'X\(//\)[^/]' \| \
46280 X"$as_dir" : 'X\(//\)$' \| \
46281 X"$as_dir" : 'X\(/\)' \| \
46282 . : '\(.\)' 2>/dev/null ||
46284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46286 /^X\(\/\/\)$/{ s//\1/; q; }
46287 /^X\(\/\).*/{ s//\1/; q; }
46290 test ! -n "$as_dirs" || mkdir $as_dirs
46291 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46292 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46293 { (exit 1); exit 1; }; }; }
46295 # echo "creating $dirpart/$file"
46296 echo '# dummy' > "$dirpart/$file"
46303 BACKENDSC="servers/slapd/backends.c"
46304 echo "Making $BACKENDSC"
46306 cat > $BACKENDSC << ENDX
46307 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46309 * Copyright 1998-2006 The OpenLDAP Foundation.
46310 * All rights reserved.
46312 * Redistribution and use in source and binary forms, with or without
46313 * modification, are permitted only as authorized by the OpenLDAP
46316 * A copy of this license is available in the file LICENSE in the
46317 * top-level directory of the distribution or, alternatively, at
46318 * <http://www.OpenLDAP.org/license.html>.
46320 /* This file is automatically generated by configure; please do not edit. */
46322 #include "portable.h"
46326 if test "${STATIC_BACKENDS}"; then
46327 for b in config ${STATIC_BACKENDS}; do
46328 bb=`echo "${b}" | sed -e 's/back-//'`
46329 cat >> $BACKENDSC << ENDX
46330 extern BI_init ${bb}_back_initialize;
46334 cat >> $BACKENDSC << ENDX
46336 BackendInfo slap_binfo[] = {
46339 for b in config ${STATIC_BACKENDS}; do
46340 bb=`echo "${b}" | sed -e 's/back-//'`
46341 echo " Add ${bb} ..."
46342 cat >> $BACKENDSC << ENDX
46343 { "${bb}", ${bb}_back_initialize },
46347 cat >> $BACKENDSC << ENDX
46351 /* end of generated file */
46354 OVERLAYSC="servers/slapd/overlays/statover.c"
46355 echo "Making $OVERLAYSC"
46357 cat > $OVERLAYSC << ENDX
46358 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46360 * Copyright 1998-2006 The OpenLDAP Foundation.
46361 * All rights reserved.
46363 * Redistribution and use in source and binary forms, with or without
46364 * modification, are permitted only as authorized by the OpenLDAP
46367 * A copy of this license is available in the file LICENSE in the
46368 * top-level directory of the distribution or, alternatively, at
46369 * <http://www.OpenLDAP.org/license.html>.
46371 /* This file is automatically generated by configure; please do not edit. */
46373 #include "portable.h"
46377 if test "${STATIC_OVERLAYS}"; then
46378 for o in ${STATIC_OVERLAYS}; do
46379 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46380 cat >> $OVERLAYSC << ENDX
46381 extern OV_init ${oo}_initialize;
46386 cat >> $OVERLAYSC << ENDX
46388 OverlayInit slap_oinfo[] = {
46391 if test "${STATIC_OVERLAYS}"; then
46392 for o in ${STATIC_OVERLAYS}; do
46393 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46394 echo " Add ${oo} ..."
46395 cat >> $OVERLAYSC << ENDX
46396 { "${oo}", ${oo}_initialize },
46401 cat >> $OVERLAYSC << ENDX
46405 /* end of generated file */
46408 echo Please run \"make depend\" to build dependencies
46414 cat >>$CONFIG_STATUS <<\_ACEOF
46416 { (exit 0); exit 0; }
46418 chmod +x $CONFIG_STATUS
46419 ac_clean_files=$ac_clean_files_save
46422 # configure is writing to config.log, and then calls config.status.
46423 # config.status does its own redirection, appending to config.log.
46424 # Unfortunately, on DOS this fails, as config.log is still kept open
46425 # by configure, so config.status won't be able to write to it; its
46426 # output is simply discarded. So we exec the FD to /dev/null,
46427 # effectively closing config.log, so it can be properly (re)opened and
46428 # appended to by config.status. When coming back to configure, we
46429 # need to make the FD available again.
46430 if test "$no_create" != yes; then
46432 ac_config_status_args=
46433 test "$silent" = yes &&
46434 ac_config_status_args="$ac_config_status_args --quiet"
46436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46439 # would make configure fail if this is the last instruction.
46440 $ac_cs_success || { (exit 1); exit 1; }