2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.601 2005/10/13 21:52:21 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 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_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS 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 [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-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-denyop Deny Operation overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-lastmod Last Modification overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 SLURPD (Replication Daemon) Options:
1066 --enable-slurpd enable building slurpd [auto]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-multiple-precision
1089 multiple precision support for statistics
1090 auto|bignum|gmp [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 if test -d $ac_aux_dir/CVS; then
1603 OPENLDAP_CVS="(from CVS sources) "
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1689 program_prefix=${target_alias}-
1691 am__api_version="1.9"
1692 # Find a good install program. We prefer a C program (faster),
1693 # so one script is as good as another. But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 # OSF1 and SCO ODT 3.0 have their own names for install.
1724 # Don't use installbsd from OSF since it installs stuff as root
1726 for ac_prog in ginstall scoinst install; do
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729 if test $ac_prog = install &&
1730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1733 elif test $ac_prog = install &&
1734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # program-specific install script used by HP pwplus--don't use.
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 if test "${ac_cv_path_install+set}" = set; then
1751 INSTALL=$ac_cv_path_install
1753 # As a last resort, use the slow shell script. We don't cache a
1754 # path for INSTALL within a source directory, because that will
1755 # break other packages using the cache if that directory is
1756 # removed, or if the path is relative.
1757 INSTALL=$ac_install_sh
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments. Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783 if test "$*" = "X"; then
1785 set X `ls -t $srcdir/configure conftest.file`
1788 if test "$*" != "X $srcdir/configure conftest.file" \
1789 && test "$*" != "X conftest.file $srcdir/configure"; then
1791 # If neither matched, then we have a broken ls. This can happen
1792 # if, for instance, CONFIG_SHELL is bash and it inherits a
1793 # broken ls alias from the environment. This has actually
1794 # happened. Such a system could not be considered "sane".
1795 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&2;}
1799 { (exit 1); exit 1; }; }
1802 test "$2" = conftest.file
1808 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812 { (exit 1); exit 1; }; }
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $. echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835 am_missing_run="$MISSING --run "
1838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843 # We used to keeping the `.' as first argument, in order to
1844 # allow $(mkdir_p) to be used without argument. As in
1845 # $(mkdir_p) $(somedir)
1846 # where $(somedir) is conditionally defined. However this is wrong
1848 # 1. if the package is installed by a user who cannot write `.'
1849 # make install will fail,
1850 # 2. the above comment should most certainly read
1851 # $(mkdir_p) $(DESTDIR)$(somedir)
1852 # so it does not work when $(somedir) is undefined and
1853 # $(DESTDIR) is not.
1854 # To support the latter case, we have to write
1855 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856 # so the `.' trick is pointless.
1857 mkdir_p='mkdir -p --'
1859 # On NextStep and OpenStep, the `mkdir' command does not
1860 # recognize any option. It will interpret all options as
1861 # directories to create, and then abort because `.' already
1863 for d in ./-p ./--version;
1865 test -d $d && rmdir $d
1867 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868 if test -f "$ac_aux_dir/mkinstalldirs"; then
1869 mkdir_p='$(mkinstalldirs)'
1871 mkdir_p='$(install_sh) -d'
1875 for ac_prog in gawk mawk nawk awk
1877 # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$AWK"; then
1885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_AWK="$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$AWK" && break
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.make <<\_ACEOF
1923 @echo 'ac_maketemp="$(MAKE)"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 SET_MAKE="MAKE=${MAKE-make}"
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1951 rmdir .tst 2>/dev/null
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955 test -f $srcdir/config.status; then
1956 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963 if (cygpath --version) >/dev/null 2>/dev/null; then
1964 CYGPATH_W='cygpath -w'
1971 # Define the identity of the package.
1976 # Some tools Automake needs.
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'. However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$STRIP"; then
2008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028 echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_STRIP"; then
2046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_STRIP="strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2076 STRIP="$ac_cv_prog_STRIP"
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082 # We need awk for the "check" target. The system "awk" is bad on
2084 # Always define AMTAR for backward compatibility.
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150 ldap_subdir="/openldap"
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155 withval="$with_subdir"
2162 ldap_subdir="$withval"
2165 ldap_subdir="/$withval"
2171 # OpenLDAP --enable-debug
2173 # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval="$enable_debug"
2178 for ol_val in auto yes no ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186 { (exit 1); exit 1; }; }
2188 ol_enable_debug="$ol_arg"
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2196 # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198 enableval="$enable_dynamic"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209 { (exit 1); exit 1; }; }
2211 ol_enable_dynamic="$ol_arg"
2214 ol_enable_dynamic=no
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2219 # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221 enableval="$enable_syslog"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232 { (exit 1); exit 1; }; }
2234 ol_enable_syslog="$ol_arg"
2237 ol_enable_syslog=auto
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2242 # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244 enableval="$enable_proctitle"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_proctitle="$ol_arg"
2260 ol_enable_proctitle=yes
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2267 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269 enableval="$enable_ipv6"
2272 for ol_val in auto yes no ; do
2273 if test "$enableval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280 { (exit 1); exit 1; }; }
2282 ol_enable_ipv6="$ol_arg"
2288 # OpenLDAP --enable-local
2290 # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292 enableval="$enable_local"
2295 for ol_val in auto yes no ; do
2296 if test "$enableval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303 { (exit 1); exit 1; }; }
2305 ol_enable_local="$ol_arg"
2308 ol_enable_local=auto
2310 # end --enable-local
2312 # OpenLDAP --with-cyrus_sasl
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316 withval="$with_cyrus_sasl"
2319 for ol_val in auto yes no ; do
2320 if test "$withval" = "$ol_val" ; then
2324 if test "$ol_arg" = "invalid" ; then
2325 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327 { (exit 1); exit 1; }; }
2329 ol_with_cyrus_sasl="$ol_arg"
2332 ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2335 # OpenLDAP --with-fetch
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339 withval="$with_fetch"
2342 for ol_val in auto yes no ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350 { (exit 1); exit 1; }; }
2352 ol_with_fetch="$ol_arg"
2355 ol_with_fetch="auto"
2356 fi; # end --with-fetch
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363 withval="$with_threads"
2366 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2367 if test "$withval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374 { (exit 1); exit 1; }; }
2376 ol_with_threads="$ol_arg"
2379 ol_with_threads="auto"
2380 fi; # end --with-threads
2382 # OpenLDAP --with-tls
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2389 for ol_val in auto openssl yes no ; do
2390 if test "$withval" = "$ol_val" ; then
2394 if test "$ol_arg" = "invalid" ; then
2395 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397 { (exit 1); exit 1; }; }
2399 ol_with_tls="$ol_arg"
2403 fi; # end --with-tls
2405 # OpenLDAP --with-yielding_select
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409 withval="$with_yielding_select"
2412 for ol_val in auto yes no manual ; do
2413 if test "$withval" = "$ol_val" ; then
2417 if test "$ol_arg" = "invalid" ; then
2418 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420 { (exit 1); exit 1; }; }
2422 ol_with_yielding_select="$ol_arg"
2425 ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2428 # OpenLDAP --with-multiple_precision
2430 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2431 if test "${with_multiple_precision+set}" = set; then
2432 withval="$with_multiple_precision"
2435 for ol_val in auto bignum gmp yes no ; do
2436 if test "$withval" = "$ol_val" ; then
2440 if test "$ol_arg" = "invalid" ; then
2441 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2442 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2443 { (exit 1); exit 1; }; }
2445 ol_with_multiple_precision="$ol_arg"
2448 ol_with_multiple_precision="auto"
2449 fi; # end --with-multiple_precision
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455 enableval="$enable_xxslapdoptions"
2458 # OpenLDAP --enable-slapd
2460 # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462 enableval="$enable_slapd"
2465 for ol_val in auto yes no ; do
2466 if test "$enableval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473 { (exit 1); exit 1; }; }
2475 ol_enable_slapd="$ol_arg"
2480 # end --enable-slapd
2481 # OpenLDAP --enable-aci
2483 # Check whether --enable-aci or --disable-aci was given.
2484 if test "${enable_aci+set}" = set; then
2485 enableval="$enable_aci"
2488 for ol_val in auto yes no ; do
2489 if test "$enableval" = "$ol_val" ; then
2493 if test "$ol_arg" = "invalid" ; then
2494 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2496 { (exit 1); exit 1; }; }
2498 ol_enable_aci="$ol_arg"
2504 # OpenLDAP --enable-cleartext
2506 # Check whether --enable-cleartext or --disable-cleartext was given.
2507 if test "${enable_cleartext+set}" = set; then
2508 enableval="$enable_cleartext"
2511 for ol_val in auto yes no ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_cleartext="$ol_arg"
2524 ol_enable_cleartext=yes
2526 # end --enable-cleartext
2527 # OpenLDAP --enable-crypt
2529 # Check whether --enable-crypt or --disable-crypt was given.
2530 if test "${enable_crypt+set}" = set; then
2531 enableval="$enable_crypt"
2534 for ol_val in auto yes no ; do
2535 if test "$enableval" = "$ol_val" ; then
2539 if test "$ol_arg" = "invalid" ; then
2540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2542 { (exit 1); exit 1; }; }
2544 ol_enable_crypt="$ol_arg"
2549 # end --enable-crypt
2550 # OpenLDAP --enable-lmpasswd
2552 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2553 if test "${enable_lmpasswd+set}" = set; then
2554 enableval="$enable_lmpasswd"
2557 for ol_val in auto yes no ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_lmpasswd="$ol_arg"
2570 ol_enable_lmpasswd=no
2572 # end --enable-lmpasswd
2573 # OpenLDAP --enable-spasswd
2575 # Check whether --enable-spasswd or --disable-spasswd was given.
2576 if test "${enable_spasswd+set}" = set; then
2577 enableval="$enable_spasswd"
2580 for ol_val in auto yes no ; do
2581 if test "$enableval" = "$ol_val" ; then
2585 if test "$ol_arg" = "invalid" ; then
2586 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2588 { (exit 1); exit 1; }; }
2590 ol_enable_spasswd="$ol_arg"
2593 ol_enable_spasswd=no
2595 # end --enable-spasswd
2596 # OpenLDAP --enable-modules
2598 # Check whether --enable-modules or --disable-modules was given.
2599 if test "${enable_modules+set}" = set; then
2600 enableval="$enable_modules"
2603 for ol_val in auto yes no ; do
2604 if test "$enableval" = "$ol_val" ; then
2608 if test "$ol_arg" = "invalid" ; then
2609 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2611 { (exit 1); exit 1; }; }
2613 ol_enable_modules="$ol_arg"
2616 ol_enable_modules=no
2618 # end --enable-modules
2619 ol_enable_multimaster=${ol_enable_multimaster-no}
2620 # OpenLDAP --enable-rewrite
2622 # Check whether --enable-rewrite or --disable-rewrite was given.
2623 if test "${enable_rewrite+set}" = set; then
2624 enableval="$enable_rewrite"
2627 for ol_val in auto yes no ; do
2628 if test "$enableval" = "$ol_val" ; then
2632 if test "$ol_arg" = "invalid" ; then
2633 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2635 { (exit 1); exit 1; }; }
2637 ol_enable_rewrite="$ol_arg"
2640 ol_enable_rewrite=auto
2642 # end --enable-rewrite
2643 # OpenLDAP --enable-rlookups
2645 # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647 enableval="$enable_rlookups"
2650 for ol_val in auto yes no ; do
2651 if test "$enableval" = "$ol_val" ; then
2655 if test "$ol_arg" = "invalid" ; then
2656 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_rlookups="$ol_arg"
2663 ol_enable_rlookups=no
2665 # end --enable-rlookups
2666 # OpenLDAP --enable-slapi
2668 # Check whether --enable-slapi or --disable-slapi was given.
2669 if test "${enable_slapi+set}" = set; then
2670 enableval="$enable_slapi"
2673 for ol_val in auto yes no ; do
2674 if test "$enableval" = "$ol_val" ; then
2678 if test "$ol_arg" = "invalid" ; then
2679 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_slapi="$ol_arg"
2688 # end --enable-slapi
2689 # OpenLDAP --enable-slp
2691 # Check whether --enable-slp or --disable-slp was given.
2692 if test "${enable_slp+set}" = set; then
2693 enableval="$enable_slp"
2696 for ol_val in auto yes no ; do
2697 if test "$enableval" = "$ol_val" ; then
2701 if test "$ol_arg" = "invalid" ; then
2702 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2704 { (exit 1); exit 1; }; }
2706 ol_enable_slp="$ol_arg"
2712 # OpenLDAP --enable-wrappers
2714 # Check whether --enable-wrappers or --disable-wrappers was given.
2715 if test "${enable_wrappers+set}" = set; then
2716 enableval="$enable_wrappers"
2719 for ol_val in auto yes no ; do
2720 if test "$enableval" = "$ol_val" ; then
2724 if test "$ol_arg" = "invalid" ; then
2725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2727 { (exit 1); exit 1; }; }
2729 ol_enable_wrappers="$ol_arg"
2732 ol_enable_wrappers=no
2734 # end --enable-wrappers
2750 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2751 if test "${enable_xxslapbackends+set}" = set; then
2752 enableval="$enable_xxslapbackends"
2756 # OpenLDAP --enable-backends
2758 # Check whether --enable-backends or --disable-backends was given.
2759 if test "${enable_backends+set}" = set; then
2760 enableval="$enable_backends"
2763 for ol_val in no yes mod ; do
2764 if test "$enableval" = "$ol_val" ; then
2768 if test "$ol_arg" = "invalid" ; then
2769 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2771 { (exit 1); exit 1; }; }
2773 ol_enable_backends="$ol_arg"
2776 # end --enable-backends
2777 # OpenLDAP --enable-bdb
2779 # Check whether --enable-bdb or --disable-bdb was given.
2780 if test "${enable_bdb+set}" = set; then
2781 enableval="$enable_bdb"
2784 for ol_val in no yes mod ; do
2785 if test "$enableval" = "$ol_val" ; then
2789 if test "$ol_arg" = "invalid" ; then
2790 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2792 { (exit 1); exit 1; }; }
2794 ol_enable_bdb="$ol_arg"
2797 ol_enable_bdb=${ol_enable_backends:-yes}
2800 # OpenLDAP --enable-dnssrv
2802 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2803 if test "${enable_dnssrv+set}" = set; then
2804 enableval="$enable_dnssrv"
2807 for ol_val in no yes mod ; do
2808 if test "$enableval" = "$ol_val" ; then
2812 if test "$ol_arg" = "invalid" ; then
2813 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2815 { (exit 1); exit 1; }; }
2817 ol_enable_dnssrv="$ol_arg"
2820 ol_enable_dnssrv=${ol_enable_backends:-no}
2822 # end --enable-dnssrv
2823 # OpenLDAP --enable-hdb
2825 # Check whether --enable-hdb or --disable-hdb was given.
2826 if test "${enable_hdb+set}" = set; then
2827 enableval="$enable_hdb"
2830 for ol_val in no yes mod ; do
2831 if test "$enableval" = "$ol_val" ; then
2835 if test "$ol_arg" = "invalid" ; then
2836 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2838 { (exit 1); exit 1; }; }
2840 ol_enable_hdb="$ol_arg"
2843 ol_enable_hdb=${ol_enable_backends:-yes}
2846 # OpenLDAP --enable-ldap
2848 # Check whether --enable-ldap or --disable-ldap was given.
2849 if test "${enable_ldap+set}" = set; then
2850 enableval="$enable_ldap"
2853 for ol_val in no yes mod ; do
2854 if test "$enableval" = "$ol_val" ; then
2858 if test "$ol_arg" = "invalid" ; then
2859 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2861 { (exit 1); exit 1; }; }
2863 ol_enable_ldap="$ol_arg"
2866 ol_enable_ldap=${ol_enable_backends:-no}
2869 # OpenLDAP --enable-ldbm
2871 # Check whether --enable-ldbm or --disable-ldbm was given.
2872 if test "${enable_ldbm+set}" = set; then
2873 enableval="$enable_ldbm"
2876 for ol_val in no yes mod ; do
2877 if test "$enableval" = "$ol_val" ; then
2881 if test "$ol_arg" = "invalid" ; then
2882 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2884 { (exit 1); exit 1; }; }
2886 ol_enable_ldbm="$ol_arg"
2889 ol_enable_ldbm=${ol_enable_backends:-no}
2893 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2894 if test "${with_ldbm_api+set}" = set; then
2895 withval="$with_ldbm_api"
2897 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2898 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2899 enable_ldbm_api="$with_ldbm_api"
2901 # OpenLDAP --enable-ldbm_api
2903 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2904 if test "${enable_ldbm_api+set}" = set; then
2905 enableval="$enable_ldbm_api"
2908 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2909 if test "$enableval" = "$ol_val" ; then
2913 if test "$ol_arg" = "invalid" ; then
2914 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2916 { (exit 1); exit 1; }; }
2918 ol_enable_ldbm_api="$ol_arg"
2921 ol_enable_ldbm_api=auto
2923 # end --enable-ldbm_api
2926 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2927 if test "${with_ldbm_type+set}" = set; then
2928 withval="$with_ldbm_type"
2930 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2931 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2932 enable_ldbm_type="$with_ldbm_type"
2934 # OpenLDAP --enable-ldbm_type
2936 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938 enableval="$enable_ldbm_type"
2941 for ol_val in auto btree hash ; do
2942 if test "$enableval" = "$ol_val" ; then
2946 if test "$ol_arg" = "invalid" ; then
2947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949 { (exit 1); exit 1; }; }
2951 ol_enable_ldbm_type="$ol_arg"
2954 ol_enable_ldbm_type=auto
2956 # end --enable-ldbm_type
2958 # OpenLDAP --enable-meta
2960 # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962 enableval="$enable_meta"
2965 for ol_val in no yes mod ; do
2966 if test "$enableval" = "$ol_val" ; then
2970 if test "$ol_arg" = "invalid" ; then
2971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973 { (exit 1); exit 1; }; }
2975 ol_enable_meta="$ol_arg"
2978 ol_enable_meta=${ol_enable_backends:-no}
2981 # OpenLDAP --enable-monitor
2983 # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985 enableval="$enable_monitor"
2988 for ol_val in no yes mod ; do
2989 if test "$enableval" = "$ol_val" ; then
2993 if test "$ol_arg" = "invalid" ; then
2994 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996 { (exit 1); exit 1; }; }
2998 ol_enable_monitor="$ol_arg"
3001 ol_enable_monitor=${ol_enable_backends:-yes}
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3006 # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008 enableval="$enable_null"
3011 for ol_val in no yes mod ; do
3012 if test "$enableval" = "$ol_val" ; then
3016 if test "$ol_arg" = "invalid" ; then
3017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019 { (exit 1); exit 1; }; }
3021 ol_enable_null="$ol_arg"
3024 ol_enable_null=${ol_enable_backends:-no}
3027 # OpenLDAP --enable-passwd
3029 # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031 enableval="$enable_passwd"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_passwd="$ol_arg"
3047 ol_enable_passwd=${ol_enable_backends:-no}
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3052 # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054 enableval="$enable_perl"
3057 for ol_val in no yes mod ; do
3058 if test "$enableval" = "$ol_val" ; then
3062 if test "$ol_arg" = "invalid" ; then
3063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065 { (exit 1); exit 1; }; }
3067 ol_enable_perl="$ol_arg"
3070 ol_enable_perl=${ol_enable_backends:-no}
3073 # OpenLDAP --enable-relay
3075 # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077 enableval="$enable_relay"
3080 for ol_val in no yes mod ; do
3081 if test "$enableval" = "$ol_val" ; then
3085 if test "$ol_arg" = "invalid" ; then
3086 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088 { (exit 1); exit 1; }; }
3090 ol_enable_relay="$ol_arg"
3093 ol_enable_relay=${ol_enable_backends:-yes}
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3098 # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100 enableval="$enable_shell"
3103 for ol_val in no yes mod ; do
3104 if test "$enableval" = "$ol_val" ; then
3108 if test "$ol_arg" = "invalid" ; then
3109 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111 { (exit 1); exit 1; }; }
3113 ol_enable_shell="$ol_arg"
3116 ol_enable_shell=${ol_enable_backends:-no}
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3121 # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123 enableval="$enable_sql"
3126 for ol_val in no yes mod ; do
3127 if test "$enableval" = "$ol_val" ; then
3131 if test "$ol_arg" = "invalid" ; then
3132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134 { (exit 1); exit 1; }; }
3136 ol_enable_sql="$ol_arg"
3139 ol_enable_sql=${ol_enable_backends:-no}
3143 Overlays="accesslog \
3158 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3159 if test "${enable_xxslapoverlays+set}" = set; then
3160 enableval="$enable_xxslapoverlays"
3164 # OpenLDAP --enable-overlays
3166 # Check whether --enable-overlays or --disable-overlays was given.
3167 if test "${enable_overlays+set}" = set; then
3168 enableval="$enable_overlays"
3171 for ol_val in no yes mod ; do
3172 if test "$enableval" = "$ol_val" ; then
3176 if test "$ol_arg" = "invalid" ; then
3177 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3179 { (exit 1); exit 1; }; }
3181 ol_enable_overlays="$ol_arg"
3184 # end --enable-overlays
3185 # OpenLDAP --enable-accesslog
3187 # Check whether --enable-accesslog or --disable-accesslog was given.
3188 if test "${enable_accesslog+set}" = set; then
3189 enableval="$enable_accesslog"
3192 for ol_val in no yes mod ; do
3193 if test "$enableval" = "$ol_val" ; then
3197 if test "$ol_arg" = "invalid" ; then
3198 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3200 { (exit 1); exit 1; }; }
3202 ol_enable_accesslog="$ol_arg"
3205 ol_enable_accesslog=${ol_enable_overlays:-no}
3207 # end --enable-accesslog
3209 # OpenLDAP --enable-denyop
3211 # Check whether --enable-denyop or --disable-denyop was given.
3212 if test "${enable_denyop+set}" = set; then
3213 enableval="$enable_denyop"
3216 for ol_val in no yes mod ; do
3217 if test "$enableval" = "$ol_val" ; then
3221 if test "$ol_arg" = "invalid" ; then
3222 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3224 { (exit 1); exit 1; }; }
3226 ol_enable_denyop="$ol_arg"
3229 ol_enable_denyop=${ol_enable_overlays:-no}
3231 # end --enable-denyop
3233 # OpenLDAP --enable-dyngroup
3235 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237 enableval="$enable_dyngroup"
3240 for ol_val in no yes mod ; do
3241 if test "$enableval" = "$ol_val" ; then
3245 if test "$ol_arg" = "invalid" ; then
3246 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248 { (exit 1); exit 1; }; }
3250 ol_enable_dyngroup="$ol_arg"
3253 ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 # end --enable-dyngroup
3257 # OpenLDAP --enable-dynlist
3259 # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261 enableval="$enable_dynlist"
3264 for ol_val in no yes mod ; do
3265 if test "$enableval" = "$ol_val" ; then
3269 if test "$ol_arg" = "invalid" ; then
3270 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272 { (exit 1); exit 1; }; }
3274 ol_enable_dynlist="$ol_arg"
3277 ol_enable_dynlist=${ol_enable_overlays:-no}
3279 # end --enable-dynlist
3281 # OpenLDAP --enable-lastmod
3283 # Check whether --enable-lastmod or --disable-lastmod was given.
3284 if test "${enable_lastmod+set}" = set; then
3285 enableval="$enable_lastmod"
3288 for ol_val in no yes mod ; do
3289 if test "$enableval" = "$ol_val" ; then
3293 if test "$ol_arg" = "invalid" ; then
3294 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3296 { (exit 1); exit 1; }; }
3298 ol_enable_lastmod="$ol_arg"
3301 ol_enable_lastmod=${ol_enable_overlays:-no}
3303 # end --enable-lastmod
3305 # OpenLDAP --enable-ppolicy
3307 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3308 if test "${enable_ppolicy+set}" = set; then
3309 enableval="$enable_ppolicy"
3312 for ol_val in no yes mod ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_ppolicy="$ol_arg"
3325 ol_enable_ppolicy=${ol_enable_overlays:-no}
3327 # end --enable-ppolicy
3329 # OpenLDAP --enable-proxycache
3331 # Check whether --enable-proxycache or --disable-proxycache was given.
3332 if test "${enable_proxycache+set}" = set; then
3333 enableval="$enable_proxycache"
3336 for ol_val in no yes mod ; do
3337 if test "$enableval" = "$ol_val" ; then
3341 if test "$ol_arg" = "invalid" ; then
3342 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3344 { (exit 1); exit 1; }; }
3346 ol_enable_proxycache="$ol_arg"
3349 ol_enable_proxycache=${ol_enable_overlays:-no}
3351 # end --enable-proxycache
3353 # OpenLDAP --enable-refint
3355 # Check whether --enable-refint or --disable-refint was given.
3356 if test "${enable_refint+set}" = set; then
3357 enableval="$enable_refint"
3360 for ol_val in no yes mod ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_refint="$ol_arg"
3373 ol_enable_refint=${ol_enable_overlays:-no}
3375 # end --enable-refint
3377 # OpenLDAP --enable-retcode
3379 # Check whether --enable-retcode or --disable-retcode was given.
3380 if test "${enable_retcode+set}" = set; then
3381 enableval="$enable_retcode"
3384 for ol_val in no yes mod ; do
3385 if test "$enableval" = "$ol_val" ; then
3389 if test "$ol_arg" = "invalid" ; then
3390 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3392 { (exit 1); exit 1; }; }
3394 ol_enable_retcode="$ol_arg"
3397 ol_enable_retcode=${ol_enable_overlays:-no}
3399 # end --enable-retcode
3401 # OpenLDAP --enable-rwm
3403 # Check whether --enable-rwm or --disable-rwm was given.
3404 if test "${enable_rwm+set}" = set; then
3405 enableval="$enable_rwm"
3408 for ol_val in no yes mod ; do
3409 if test "$enableval" = "$ol_val" ; then
3413 if test "$ol_arg" = "invalid" ; then
3414 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3416 { (exit 1); exit 1; }; }
3418 ol_enable_rwm="$ol_arg"
3421 ol_enable_rwm=${ol_enable_overlays:-no}
3425 # OpenLDAP --enable-syncprov
3427 # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429 enableval="$enable_syncprov"
3432 for ol_val in no yes mod ; do
3433 if test "$enableval" = "$ol_val" ; then
3437 if test "$ol_arg" = "invalid" ; then
3438 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440 { (exit 1); exit 1; }; }
3442 ol_enable_syncprov="$ol_arg"
3445 ol_enable_syncprov=${ol_enable_overlays:-yes}
3447 # end --enable-syncprov
3449 # OpenLDAP --enable-translucent
3451 # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453 enableval="$enable_translucent"
3456 for ol_val in no yes mod ; do
3457 if test "$enableval" = "$ol_val" ; then
3461 if test "$ol_arg" = "invalid" ; then
3462 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464 { (exit 1); exit 1; }; }
3466 ol_enable_translucent="$ol_arg"
3469 ol_enable_translucent=${ol_enable_overlays:-no}
3471 # end --enable-translucent
3473 # OpenLDAP --enable-unique
3475 # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477 enableval="$enable_unique"
3480 for ol_val in no yes mod ; do
3481 if test "$enableval" = "$ol_val" ; then
3485 if test "$ol_arg" = "invalid" ; then
3486 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488 { (exit 1); exit 1; }; }
3490 ol_enable_unique="$ol_arg"
3493 ol_enable_unique=${ol_enable_overlays:-no}
3495 # end --enable-unique
3497 # OpenLDAP --enable-valsort
3499 # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501 enableval="$enable_valsort"
3504 for ol_val in no yes mod ; do
3505 if test "$enableval" = "$ol_val" ; then
3509 if test "$ol_arg" = "invalid" ; then
3510 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512 { (exit 1); exit 1; }; }
3514 ol_enable_valsort="$ol_arg"
3517 ol_enable_valsort=${ol_enable_overlays:-no}
3519 # end --enable-valsort
3522 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3523 if test "${enable_xxslurpdoptions+set}" = set; then
3524 enableval="$enable_xxslurpdoptions"
3527 # OpenLDAP --enable-slurpd
3529 # Check whether --enable-slurpd or --disable-slurpd was given.
3530 if test "${enable_slurpd+set}" = set; then
3531 enableval="$enable_slurpd"
3534 for ol_val in auto yes no ; do
3535 if test "$enableval" = "$ol_val" ; then
3539 if test "$ol_arg" = "invalid" ; then
3540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3541 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3542 { (exit 1); exit 1; }; }
3544 ol_enable_slurpd="$ol_arg"
3547 ol_enable_slurpd=auto
3549 # end --enable-slurpd
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553 enableval="$enable_xxliboptions"
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558 enableval="$enable_static"
3559 p=${PACKAGE-default}
3561 yes) enable_static=yes ;;
3562 no) enable_static=no ;;
3565 # Look at the argument we got. We use all the common list separators.
3566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582 enableval="$enable_shared"
3583 p=${PACKAGE-default}
3585 yes) enable_shared=yes ;;
3586 no) enable_shared=no ;;
3589 # Look at the argument we got. We use all the common list separators.
3590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591 for pkg in $enableval; do
3593 if test "X$pkg" = "X$p"; then
3607 if test $ol_enable_slapd = no ; then
3608 if test $ol_enable_slapi = yes ; then
3609 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3612 case "$ol_enable_backends" in yes | mod)
3613 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3616 for i in $Backends; do
3617 eval "ol_tmp=\$ol_enable_$i"
3618 if test $ol_tmp != no ; then
3619 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621 eval "ol_enable_$i=no"
3624 if test $ol_enable_modules = yes ; then
3625 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3628 if test $ol_enable_multimaster = yes ; then
3629 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3632 if test $ol_enable_wrappers = yes ; then
3633 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3636 if test $ol_enable_rlookups = yes ; then
3637 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3640 if test $ol_enable_aci = yes ; then
3641 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3644 if test $ol_enable_ldbm_api != auto ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3648 if test $ol_enable_ldbm_type != auto ; then
3649 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3652 if test $ol_enable_slurpd = yes ; then
3653 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3654 echo "$as_me: error: slurpd requires slapd" >&2;}
3655 { (exit 1); exit 1; }; }
3657 if test $ol_enable_rewrite = yes ; then
3658 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3661 case "$ol_enable_overlays" in yes | mod)
3662 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3665 for i in $Overlays; do
3666 eval "ol_tmp=\$ol_enable_$i"
3667 if test $ol_tmp != no ; then
3668 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3670 eval "ol_enable_$i=no"
3674 # force settings to no
3679 ol_enable_modules=no
3680 ol_enable_multimaster=no
3681 ol_enable_rlookups=no
3683 ol_enable_wrappers=no
3685 ol_enable_ldbm_api=no
3686 ol_enable_ldbm_type=no
3690 ol_enable_rewrite=no
3692 elif test $ol_enable_ldbm = no ; then
3694 if test $ol_enable_ldbm_api != auto ; then
3695 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3699 if test $ol_enable_ldbm_type != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3704 if test $ol_enable_modules != yes &&
3705 test $ol_enable_bdb = no &&
3706 test $ol_enable_dnssrv = no &&
3707 test $ol_enable_hdb = no &&
3708 test $ol_enable_ldap = no &&
3709 test $ol_enable_meta = no &&
3710 test $ol_enable_monitor = no &&
3711 test $ol_enable_null = no &&
3712 test $ol_enable_passwd = no &&
3713 test $ol_enable_perl = no &&
3714 test $ol_enable_relay = no &&
3715 test $ol_enable_shell = no &&
3716 test $ol_enable_sql = no ; then
3718 if test $ol_enable_slapd = yes ; then
3719 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3720 echo "$as_me: error: slapd requires a backend" >&2;}
3721 { (exit 1); exit 1; }; }
3723 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3724 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3729 ol_enable_ldbm_api=no
3730 ol_enable_ldbm_type=no
3732 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3733 ol_enable_ldbm_api=berkeley
3737 if test $ol_enable_ldbm_api = gdbm &&
3738 test $ol_enable_ldbm_type = btree ; then
3739 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3740 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3741 { (exit 1); exit 1; }; }
3743 if test $ol_enable_ldbm_api = mdbm &&
3744 test $ol_enable_ldbm_type = btree ; then
3745 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3746 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3747 { (exit 1); exit 1; }; }
3749 if test $ol_enable_ldbm_api = ndbm &&
3750 test $ol_enable_ldbm_type = btree ; then
3751 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3752 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3753 { (exit 1); exit 1; }; }
3756 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3757 if test $ol_enable_ldbm_api = auto ; then
3758 ol_enable_ldbm_api=berkeley
3759 elif test $ol_enable_ldbm_api != berkeley ; then
3760 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3761 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3762 { (exit 1); exit 1; }; }
3767 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3768 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3769 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3770 { (exit 1); exit 1; }; }
3773 if test $ol_enable_slurpd = yes ; then
3774 if test $ol_with_threads = no ; then
3775 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3776 echo "$as_me: error: slurpd requires threads" >&2;}
3777 { (exit 1); exit 1; }; }
3781 if test $ol_enable_lmpasswd = yes ; then
3782 if test $ol_with_tls = no ; then
3783 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3784 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3785 { (exit 1); exit 1; }; }
3789 if test $ol_enable_kbind = yes ; then
3790 if test $ol_with_kerberos = no ; then
3791 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3792 echo "$as_me: error: options require --with-kerberos" >&2;}
3793 { (exit 1); exit 1; }; }
3794 elif test $ol_with_kerberos = auto ; then
3795 ol_with_kerberos=yes
3798 elif test $ol_enable_kbind = no ; then
3799 if test $ol_with_kerberos = auto ; then
3801 elif test $ol_with_kerberos != no ; then
3802 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3803 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3808 if test $ol_enable_spasswd = yes ; then
3809 if test $ol_with_cyrus_sasl = no ; then
3810 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3811 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3812 { (exit 1); exit 1; }; }
3814 ol_with_cyrus_sasl=yes
3817 echo "$as_me:$LINENO: result: done" >&5
3818 echo "${ECHO_T}done" >&6
3861 BUILD_TRANSLUCENT=no
3865 SLAPD_STATIC_OVERLAYS=
3866 SLAPD_DYNAMIC_OVERLAYS=
3868 SLAPD_MODULES_LDFLAGS=
3869 SLAPD_MODULES_CPPFLAGS=
3871 SLAPD_STATIC_BACKENDS=back-ldif
3872 SLAPD_DYNAMIC_BACKENDS=
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3906 *-*-aix*) if test -z "$CC" ; then
3907 case "$ol_with_threads" in
3908 auto | yes | posix) ol_aix_threads=yes ;;
3914 if test $ol_aix_threads = yes ; then
3915 if test -z "${CC}" ; then
3916 for ac_prog in cc_r xlc_r cc
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_CC="$ac_prog"
3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test -n "$CC"; then
3946 echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 test -n "$CC" && break
3957 if test "$CC" = cc ; then
3958 if test $ol_with_threads != auto ; then
3959 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961 { (exit 1); exit 1; }; }
3963 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3970 case ${CC} in cc_r | xlc_r)
3971 ol_with_threads=posix
3972 ol_cv_pthread_create=yes
3977 if test -z "${CC}"; then
3978 for ac_prog in cc gcc
3980 # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CC="$ac_prog"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$CC"; then
4008 echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4015 test -n "$CC" && break
4017 test -n "$CC" || CC="missing"
4020 if test "${CC}" = "missing" ; then
4021 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4023 { (exit 1); exit 1; }; }
4027 if test -z "${AR}"; then
4028 for ac_prog in ar gar
4030 # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -n "$AR"; then
4038 ac_cv_prog_AR="$AR" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_AR="$ac_prog"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 if test -n "$AR"; then
4058 echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 test -n "$AR" && break
4067 test -n "$AR" || AR="missing"
4070 if test "${AR}" = "missing" ; then
4071 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4073 { (exit 1); exit 1; }; }
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083 enableval="$enable_fast_install"
4084 p=${PACKAGE-default}
4086 yes) enable_fast_install=yes ;;
4087 no) enable_fast_install=no ;;
4089 enable_fast_install=no
4090 # Look at the argument we got. We use all the common list separators.
4091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092 for pkg in $enableval; do
4094 if test "X$pkg" = "X$p"; then
4095 enable_fast_install=yes
4102 enable_fast_install=yes
4105 DEPDIR="${am__leading_dot}deps"
4107 ac_config_commands="$ac_config_commands depfiles"
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136 echo '.include "confinc"' > confmf
4137 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138 am__include=.include
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151 enableval="$enable_dependency_tracking"
4154 if test "x$enable_dependency_tracking" != xno; then
4155 am_depcomp="$ac_aux_dir/depcomp"
4160 if test "x$enable_dependency_tracking" != xno; then
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$CC"; then
4184 ac_cv_prog_CC="$CC" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CC"; then
4204 echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4212 if test -z "$ac_cv_prog_CC"; then
4214 # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$ac_ct_CC"; then
4222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_CC="gcc"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4254 if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_CC="${ac_tool_prefix}cc"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test -n "$CC"; then
4284 echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4292 if test -z "$ac_cv_prog_CC"; then
4294 # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$ac_ct_CC"; then
4302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4335 if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355 ac_prog_rejected=yes
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy $ac_cv_prog_CC
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4380 if test -n "$CC"; then
4381 echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 if test -n "$CC"; then
4421 echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 test -n "$CC" && break
4431 if test -z "$CC"; then
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 if test -n "$ac_ct_CC"; then
4443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_CC="$ac_prog"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 test -n "$ac_ct_CC" && break
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483 { (exit 1); exit 1; }; }
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487 "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490 (eval $ac_compiler --version </dev/null >&5) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495 (eval $ac_compiler -v </dev/null >&5) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500 (eval $ac_compiler -V </dev/null >&5) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529 (eval $ac_link_default) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 # Find the output, starting from the most likely. This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4543 test -f "$ac_file" || continue
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4548 # This is the source file.
4551 # We found the default executable, but exeext='' is most
4555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 # FIXME: I believe we export ac_cv_exeext for Libtool,
4557 # but it would be cool to find out if it's true. Does anybody
4558 # maintain Libtool? --akim.
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573 { (exit 77); exit 77; }; }
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4580 # Check the compiler produces executables we can run. If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587 if { ac_try='./$ac_file'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 if test "$cross_compiling" = maybe; then
4598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604 { (exit 1); exit 1; }; }
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run. If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; then
4627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4631 for ac_file in conftest.exe conftest conftest.*; do
4632 test -f "$ac_file" || continue
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4642 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646 { (exit 1); exit 1; }; }
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; }
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822 CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824 if test "$GCC" = yes; then
4830 if test "$GCC" = yes; then
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 ac_cv_prog_cc_stdc=no
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4867 s = g (p, va_arg (v,int));
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4873 function prototypes and stuff, but not '\xHH' hex character constants.
4874 These don't provoke an error unfortunately, instead are silently treated
4875 as 'x'. The following induces an error, until -std1 is added to get
4876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4877 array size at least. It's necessary to write '\x00'==0 to get something
4878 that's true only with -std1. */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX -qlanglvl=ansi
4898 # Ultrix and OSF/1 -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions -Aa -D_HPUX_SOURCE
4901 # SVR4 -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4904 CC="$ac_save_CC $ac_arg"
4905 rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907 (eval $ac_compile) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_prog_cc_stdc=$ac_arg
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4934 rm -f conftest.err conftest.$ac_objext
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4941 case "x$ac_cv_prog_cc_stdc" in
4943 echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948 CC="$CC $ac_cv_prog_cc_stdc" ;;
4951 # Some people use a C++ compiler to compile C. Since we use `exit',
4952 # in C++ we need to declare it. In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 for ac_declaration in \
4984 'extern "C" void std::exit (int) throw (); using std::exit;' \
4985 'extern "C" void std::exit (int); using std::exit;' \
4986 'extern "C" void exit (int) throw ();' \
4987 'extern "C" void exit (int);' \
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 if test -n "$ac_declaration"; then
5083 echo '#ifdef __cplusplus' >>confdefs.h
5084 echo $ac_declaration >>confdefs.h
5085 echo '#endif' >>confdefs.h
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 depcc="$CC" am_compiler_list=
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108 # We make a subdir and do the tests there. Otherwise we can end up
5109 # making bogus files that we don't know about and never remove. For
5110 # instance it was reported that on HP-UX the gcc test will end up
5111 # making a dummy file named `D' -- because `-MD' means `put the output
5114 # Copy depcomp to subdir because otherwise we won't find it if we're
5115 # using a relative directory.
5116 cp "$am_depcomp" conftest.dir
5118 # We will build objects and dependencies in a subdirectory because
5119 # it helps to detect inapplicable dependency modes. For instance
5120 # both Tru64's cc and ICC support -MD to output dependencies as a
5121 # side effect of compilation, but ICC will put the dependencies in
5122 # the current directory while Tru64 will put them in the object
5126 am_cv_CC_dependencies_compiler_type=none
5127 if test "$am_compiler_list" = ""; then
5128 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5130 for depmode in $am_compiler_list; do
5131 # Setup a source with many dependencies, because some compilers
5132 # like to wrap large dependency lists on column 80 (with \), and
5133 # we should not choose a depcomp mode which is confused by this.
5135 # We need to recreate these files for each test, as the compiler may
5136 # overwrite some of them when testing with obscure command lines.
5137 # This happens at least with the AIX C compiler.
5139 for i in 1 2 3 4 5 6; do
5140 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142 # Solaris 8's {/usr,}/bin/sh.
5143 touch sub/conftst$i.h
5145 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5149 # after this tag, mechanisms are not by side-effect, so they'll
5150 # only be used when explicitly requested
5151 if test "x$enable_dependency_tracking" = xyes; then
5159 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160 # mode. It turns out that the SunPro C++ compiler does not properly
5161 # handle `-M -o', and we need to detect this.
5162 if depmode=$depmode \
5163 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166 >/dev/null 2>conftest.err &&
5167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170 # icc doesn't choke on unknown options, it will just issue warnings
5171 # or remarks (even with -Werror). So we grep stderr for any message
5172 # that says an option was ignored or not supported.
5173 # When given -MP, icc 7.0 and 7.1 complain thusly:
5174 # icc: Command line warning: ignoring option '-M'; no argument required
5175 # The diagnosis changed in icc 8.0:
5176 # icc: Command line remark: option '-MP' not supported
5177 if (grep 'ignoring option' conftest.err ||
5178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179 am_cv_CC_dependencies_compiler_type=$depmode
5188 am_cv_CC_dependencies_compiler_type=none
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5199 test "x$enable_dependency_tracking" != xno \
5200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5202 am__fastdepCC_FALSE='#'
5204 am__fastdepCC_TRUE='#'
5205 am__fastdepCC_FALSE=
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for lt_ac_prog in sed gsed; do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234 test ! -f $lt_ac_sed && continue
5235 cat /dev/null > conftest.in
5237 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238 # Check for GNU sed and select it if it is found.
5239 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240 lt_cv_path_SED=$lt_ac_sed
5244 cat conftest.in conftest.in >conftest.tmp
5245 mv conftest.tmp conftest.in
5246 cp conftest.in conftest.nl
5248 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249 cmp -s conftest.out conftest.nl || break
5250 # 10000 chars as input seems more than enough
5251 test $lt_ac_count -gt 10 && break
5252 lt_ac_count=`expr $lt_ac_count + 1`
5253 if test $lt_ac_count -gt $lt_ac_max; then
5254 lt_ac_max=$lt_ac_count
5255 lt_cv_path_SED=$lt_ac_sed
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272 then ac_cv_prog_egrep='grep -E'
5273 else ac_cv_prog_egrep='egrep'
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278 EGREP=$ac_cv_prog_egrep
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284 withval="$with_gnu_ld"
5285 test "$withval" = no || with_gnu_ld=yes
5290 if test "$GCC" = yes; then
5291 # Check if gcc -print-prog-name=ld gives a path.
5292 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5296 # gcc leaves a trailing carriage return which upsets mingw
5297 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5299 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5302 # Accept absolute paths.
5304 re_direlt='/[^/][^/]*/\.\./'
5305 # Canonicalize the pathname of ld
5306 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5310 test -z "$LD" && LD="$ac_prog"
5313 # If it fails, then pretend we aren't using GCC.
5317 # If it is relative, then search for the first ld in PATH.
5321 elif test "$with_gnu_ld" = yes; then
5322 echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5325 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5328 if test "${lt_cv_path_LD+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 if test -z "$LD"; then
5332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333 for ac_dir in $PATH; do
5335 test -z "$ac_dir" && ac_dir=.
5336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337 lt_cv_path_LD="$ac_dir/$ac_prog"
5338 # Check to see if the program is GNU ld. I'd rather use --version,
5339 # but apparently some GNU ld's only accept -v.
5340 # Break only if it was the GNU/non-GNU ld that we prefer.
5341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343 test "$with_gnu_ld" != no && break
5346 test "$with_gnu_ld" != yes && break
5353 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5358 if test -n "$LD"; then
5359 echo "$as_me:$LINENO: result: $LD" >&5
5360 echo "${ECHO_T}$LD" >&6
5362 echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5367 { (exit 1); exit 1; }; }
5368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5374 case `$LD -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376 lt_cv_prog_gnu_ld=yes
5379 lt_cv_prog_gnu_ld=no
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 lt_cv_ld_reload_flag='-r'
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 case $reload_flag in
5400 *) reload_flag=" $reload_flag" ;;
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5405 if test "$GCC" = yes; then
5406 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 if test -n "$NM"; then
5419 # Let the user override the test.
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5440 lt_cv_path_NM="$tmp_nm -p"
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5455 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5456 echo "${ECHO_T}$lt_cv_path_NM" >&6
5459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5462 if test "$LN_S" = "ln -s"; then
5463 echo "$as_me:$LINENO: result: yes" >&5
5464 echo "${ECHO_T}yes" >&6
5466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467 echo "${ECHO_T}no, using $LN_S" >&6
5470 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5471 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5472 if test "${lt_cv_deplibs_check_method+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5491 lt_cv_deplibs_check_method=pass_all
5495 lt_cv_deplibs_check_method=pass_all
5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500 lt_cv_file_magic_cmd='/usr/bin/file -L'
5501 lt_cv_file_magic_test_file=/shlib/libc.so
5505 # func_win32_libid is a shell function defined in ltmain.sh
5506 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507 lt_cv_file_magic_cmd='func_win32_libid'
5511 # Base MSYS/MinGW do not provide the 'file' command needed by
5512 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5513 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514 lt_cv_file_magic_cmd='$OBJDUMP -f'
5517 darwin* | rhapsody*)
5518 lt_cv_deplibs_check_method=pass_all
5521 freebsd* | kfreebsd*-gnu | dragonfly*)
5522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5525 # Not sure whether the presence of OpenBSD here was a mistake.
5526 # Let's accept both of them until this is cleared up.
5527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528 lt_cv_file_magic_cmd=/usr/bin/file
5529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5533 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_deplibs_check_method=pass_all
5541 hpux10.20* | hpux11*)
5542 lt_cv_file_magic_cmd=/usr/bin/file
5545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5549 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]'
5550 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5554 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5559 irix5* | irix6* | nonstopux*)
5561 *-32|*"-32 ") libmagic=32-bit;;
5562 *-n32|*"-n32 ") libmagic=N32;;
5563 *-64|*"-64 ") libmagic=64-bit;;
5564 *) libmagic=never-match;;
5566 lt_cv_deplibs_check_method=pass_all
5569 # This must be Linux ELF.
5571 lt_cv_deplibs_check_method=pass_all
5575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5589 lt_cv_deplibs_check_method=unknown
5593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600 osf3* | osf4* | osf5*)
5601 lt_cv_deplibs_check_method=pass_all
5605 lt_cv_deplibs_check_method=pass_all
5609 lt_cv_deplibs_check_method=pass_all
5612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613 case $host_vendor in
5615 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]'
5616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5619 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_file_magic_cmd='/bin/file'
5623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5626 lt_cv_file_magic_cmd='/bin/file'
5627 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628 lt_cv_file_magic_test_file=/lib/libc.so
5631 lt_cv_deplibs_check_method=pass_all
5636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5637 lt_cv_deplibs_check_method=pass_all
5642 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5651 # If no C compiler was specified, use CC.
5654 # Allow CC to be a program name with arguments.
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660 enableval="$enable_libtool_lock"
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5665 # Some flags need to be propagated to the compiler or linker for good
5669 # Find out which ABI we are using.
5670 echo 'int i;' > conftest.$ac_ext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; then
5676 case `/usr/bin/file conftest.$ac_objext` in
5688 # Find out which ABI we are using.
5689 echo '#line 5689 "configure"' > conftest.$ac_ext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; then
5695 if test "$lt_cv_prog_gnu_ld" = yes; then
5696 case `/usr/bin/file conftest.$ac_objext` in
5698 LD="${LD-ld} -melf32bsmip"
5701 LD="${LD-ld} -melf32bmipn32"
5704 LD="${LD-ld} -melf64bmip"
5708 case `/usr/bin/file conftest.$ac_objext` in
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725 # Find out which ABI we are using.
5726 echo 'int i;' > conftest.$ac_ext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; then
5732 case "`/usr/bin/file conftest.o`" in
5736 LD="${LD-ld} -m elf_i386"
5738 ppc64-*linux*|powerpc64-*linux*)
5739 LD="${LD-ld} -m elf32ppclinux"
5742 LD="${LD-ld} -m elf_s390"
5745 LD="${LD-ld} -m elf32_sparc"
5752 LD="${LD-ld} -m elf_x86_64"
5754 ppc*-*linux*|powerpc*-*linux*)
5755 LD="${LD-ld} -m elf64ppc"
5758 LD="${LD-ld} -m elf64_s390"
5761 LD="${LD-ld} -m elf64_sparc"
5771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772 SAVE_CFLAGS="$CFLAGS"
5773 CFLAGS="$CFLAGS -belf"
5774 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802 (eval $ac_link) 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag"
5810 || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 lt_cv_cc_needs_belf=yes
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 lt_cv_cc_needs_belf=no
5829 rm -f conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842 CFLAGS="$SAVE_CFLAGS"
5845 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$DLLTOOL"; then
5855 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 DLLTOOL=$ac_cv_prog_DLLTOOL
5874 if test -n "$DLLTOOL"; then
5875 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5876 echo "${ECHO_T}$DLLTOOL" >&6
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5883 if test -z "$ac_cv_prog_DLLTOOL"; then
5884 ac_ct_DLLTOOL=$DLLTOOL
5885 # Extract the first word of "dlltool", so it can be a program name with args.
5886 set dummy dlltool; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 if test -n "$ac_ct_DLLTOOL"; then
5893 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5912 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5913 if test -n "$ac_ct_DLLTOOL"; then
5914 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5915 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5921 DLLTOOL=$ac_ct_DLLTOOL
5923 DLLTOOL="$ac_cv_prog_DLLTOOL"
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_AS+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$AS"; then
5935 ac_cv_prog_AS="$AS" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_AS="${ac_tool_prefix}as"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 if test -n "$AS"; then
5955 echo "$as_me:$LINENO: result: $AS" >&5
5956 echo "${ECHO_T}$AS" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5963 if test -z "$ac_cv_prog_AS"; then
5965 # Extract the first word of "as", so it can be a program name with args.
5966 set dummy as; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 if test -n "$ac_ct_AS"; then
5973 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_AS="as"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5992 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5993 if test -n "$ac_ct_AS"; then
5994 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5995 echo "${ECHO_T}$ac_ct_AS" >&6
5997 echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test -n "$OBJDUMP"; then
6015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 OBJDUMP=$ac_cv_prog_OBJDUMP
6034 if test -n "$OBJDUMP"; then
6035 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6036 echo "${ECHO_T}$OBJDUMP" >&6
6038 echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044 ac_ct_OBJDUMP=$OBJDUMP
6045 # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$ac_ct_OBJDUMP"; then
6053 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6075 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6077 echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6081 OBJDUMP=$ac_ct_OBJDUMP
6083 OBJDUMP="$ac_cv_prog_OBJDUMP"
6090 need_locks="$enable_libtool_lock"
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6100 # On Suns, sometimes $CPP names a directory.
6101 if test -n "$CPP" && test -d "$CPP"; then
6104 if test -z "$CPP"; then
6105 if test "${ac_cv_prog_CPP+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 # Double quotes because CPP needs to be expanded
6109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6112 for ac_c_preproc_warn_flag in '' yes
6114 # Use a header file that comes with gcc, so configuring glibc
6115 # with a fresh cross-compiler works.
6116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117 # <limits.h> exists even on freestanding compilers.
6118 # On the NeXT, cc -E runs the code through the compiler's parser,
6119 # not just through cpp. "Syntax error" is here to catch this case.
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6127 # include <limits.h>
6129 # include <assert.h>
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } >/dev/null; then
6141 if test -s conftest.err; then
6142 ac_cpp_err=$ac_c_preproc_warn_flag
6143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6150 if test -z "$ac_cpp_err"; then
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 # Broken: fails on valid input.
6159 rm -f conftest.err conftest.$ac_ext
6161 # OK, works on sane cases. Now check whether non-existent headers
6162 # can be detected and how.
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <ac_nonexistent.h>
6171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } >/dev/null; then
6179 if test -s conftest.err; then
6180 ac_cpp_err=$ac_c_preproc_warn_flag
6181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6188 if test -z "$ac_cpp_err"; then
6189 # Broken: success on invalid input.
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 # Passes both tests.
6199 rm -f conftest.err conftest.$ac_ext
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6216 echo "$as_me:$LINENO: result: $CPP" >&5
6217 echo "${ECHO_T}$CPP" >&6
6219 for ac_c_preproc_warn_flag in '' yes
6221 # Use a header file that comes with gcc, so configuring glibc
6222 # with a fresh cross-compiler works.
6223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224 # <limits.h> exists even on freestanding compilers.
6225 # On the NeXT, cc -E runs the code through the compiler's parser,
6226 # not just through cpp. "Syntax error" is here to catch this case.
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 # include <limits.h>
6236 # include <assert.h>
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null; then
6248 if test -s conftest.err; then
6249 ac_cpp_err=$ac_c_preproc_warn_flag
6250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6257 if test -z "$ac_cpp_err"; then
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 # Broken: fails on valid input.
6266 rm -f conftest.err conftest.$ac_ext
6268 # OK, works on sane cases. Now check whether non-existent headers
6269 # can be detected and how.
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <ac_nonexistent.h>
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } >/dev/null; then
6286 if test -s conftest.err; then
6287 ac_cpp_err=$ac_c_preproc_warn_flag
6288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6295 if test -z "$ac_cpp_err"; then
6296 # Broken: success on invalid input.
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 # Passes both tests.
6306 rm -f conftest.err conftest.$ac_ext
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6314 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&2;}
6318 { (exit 1); exit 1; }; }
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6330 if test "${ac_cv_header_stdc+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag"
6362 || test ! -s conftest.err'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; } &&
6368 { ac_try='test -s conftest.$ac_objext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_header_stdc=yes
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ac_cv_header_stdc=no
6381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383 if test $ac_cv_header_stdc = yes; then
6384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 $EGREP "memchr" >/dev/null 2>&1; then
6398 ac_cv_header_stdc=no
6404 if test $ac_cv_header_stdc = yes; then
6405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416 $EGREP "free" >/dev/null 2>&1; then
6419 ac_cv_header_stdc=no
6425 if test $ac_cv_header_stdc = yes; then
6426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427 if test "$cross_compiling" = yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6437 #if ((' ' & 0x0FF) == 0x020)
6438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6441 # define ISLOWER(c) \
6442 (('a' <= (c) && (c) <= 'i') \
6443 || ('j' <= (c) && (c) <= 'r') \
6444 || ('s' <= (c) && (c) <= 'z'))
6445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6453 for (i = 0; i < 256; i++)
6454 if (XOR (islower (i), ISLOWER (i))
6455 || toupper (i) != TOUPPER (i))
6460 rm -f conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6473 echo "$as_me: program exited with status $ac_status" >&5
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_cv_header_stdc=no
6480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6484 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6485 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6486 if test $ac_cv_header_stdc = yes; then
6488 cat >>confdefs.h <<\_ACEOF
6489 #define STDC_HEADERS 1
6494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6505 inttypes.h stdint.h unistd.h
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6521 #include <$ac_header>
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525 (eval $ac_compile) 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_c_werror_flag"
6533 || test ! -s conftest.err'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; } &&
6539 { ac_try='test -s conftest.$ac_objext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 eval "$as_ac_Header=yes"
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 eval "$as_ac_Header=no"
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557 cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 for ac_header in dlfcn.h
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571 echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6579 # Is the header compilable?
6580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 $ac_includes_default
6589 #include <$ac_header>
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_header_compiler=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_header_compiler=no
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6
6624 # Is the header present?
6625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #include <$ac_header>
6635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } >/dev/null; then
6643 if test -s conftest.err; then
6644 ac_cpp_err=$ac_c_preproc_warn_flag
6645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6652 if test -z "$ac_cpp_err"; then
6653 ac_header_preproc=yes
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 ac_header_preproc=no
6660 rm -f conftest.err conftest.$ac_ext
6661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662 echo "${ECHO_T}$ac_header_preproc" >&6
6664 # So? What about this header?
6665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6671 ac_header_preproc=yes
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6688 ## ------------------------------------------ ##
6689 ## Report this to the AC_PACKAGE_NAME lists. ##
6690 ## ------------------------------------------ ##
6693 sed "s/^/$as_me: WARNING: /" >&2
6696 echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 eval "$as_ac_Header=\$ac_header_preproc"
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6719 # find the maximum length of command line arguments
6720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 # On DJGPP, this test can blow up pretty badly due to problems in libc
6731 # (any single argument exceeding 2000 bytes causes a buffer overrun
6732 # during glob expansion). Even if it were fixed, the result of this
6733 # check would be larger than it should be.
6734 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6738 # Under GNU Hurd, this test is not required because there is
6739 # no limit to the length of command line arguments.
6740 # Libtool will interpret -1 as no limit whatsoever
6741 lt_cv_sys_max_cmd_len=-1;
6745 # On Win9x/ME, this test blows up -- it succeeds, but takes
6746 # about 5 minutes as the teststring grows exponentially.
6747 # Worse, since 9x/ME are not pre-emptively multitasking,
6748 # you end up with a "frozen" computer, even though with patience
6749 # the test eventually succeeds (with a max line length of 256k).
6750 # Instead, let's just punt: use the minimum linelength reported by
6751 # all of the supported platforms: 8192 (on NT/2K/XP).
6752 lt_cv_sys_max_cmd_len=8192;
6756 # On AmigaOS with pdksh, this test takes hours, literally.
6757 # So we just punt and use a minimum line length of 8192.
6758 lt_cv_sys_max_cmd_len=8192;
6761 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6762 # This has been around since 386BSD, at least. Likely further.
6763 if test -x /sbin/sysctl; then
6764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765 elif test -x /usr/sbin/sysctl; then
6766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6768 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6770 # And add a safety zone
6771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777 # nice to cause kernel panics so lets avoid the loop below.
6778 # First set a reasonable default.
6779 lt_cv_sys_max_cmd_len=16384
6781 if test -x /sbin/sysconfig; then
6782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6788 # If test is not a shell built-in, we'll probably end up computing a
6789 # maximum length that is only half of the actual maximum length, but
6791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6792 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6793 = "XX$teststring") >/dev/null 2>&1 &&
6794 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6795 lt_cv_sys_max_cmd_len=$new_result &&
6796 test $i != 17 # 1/2 MB should be enough
6799 teststring=$teststring$teststring
6802 # Add a significant safety factor because C++ compilers can tack on massive
6803 # amounts of additional arguments before passing them to the linker.
6804 # It appears as though 1/2 is a usable value.
6805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6811 if test -n $lt_cv_sys_max_cmd_len ; then
6812 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6815 echo "$as_me:$LINENO: result: none" >&5
6816 echo "${ECHO_T}none" >&6
6822 # Check for command to grab the raw symbol name followed by C symbol from nm.
6823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 # These are sane defaults that work on at least a few old systems.
6830 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6832 # Character class describing NM global symbol codes.
6833 symcode='[BCDEGRST]'
6835 # Regexp to match symbols that can be accessed directly from C.
6836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6838 # Transform an extracted symbol line into a proper C declaration
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 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'"
6844 # Define system-specific variables.
6849 cygwin* | mingw* | pw32*)
6850 symcode='[ABCDGISTW]'
6852 hpux*) # Its linker distinguishes data from code symbols
6853 if test "$host_cpu" = ia64; then
6854 symcode='[ABCDEGRST]'
6856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857 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'"
6860 if test "$host_cpu" = ia64; then
6861 symcode='[ABCDGIRSTW]'
6862 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863 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'"
6867 symcode='[BCDEGRST]'
6870 symcode='[BCDEGQRST]'
6880 # Handle CRLF in mingw tool chain
6884 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6888 # If we're using GNU nm, then use its standard symbol codes.
6889 case `$NM -V 2>&1` in
6890 *GNU* | *'with BFD'*)
6891 symcode='[ABCDGIRSTW]' ;;
6894 # Try without a prefix undercore, then with it.
6895 for ac_symprfx in "" "_"; do
6897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898 symxfrm="\\1 $ac_symprfx\\2 \\2"
6900 # Write the raw and C identifiers.
6901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6903 # Check to see that the pipe works correctly.
6907 cat > conftest.$ac_ext <<EOF
6912 void nm_test_func(){}
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920 (eval $ac_compile) 2>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; then
6924 # Now try to grab the symbols.
6926 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && test -s "$nlist"; then
6931 # Try sorting and uniquifying the output.
6932 if sort "$nlist" | uniq > "$nlist"T; then
6933 mv -f "$nlist"T "$nlist"
6938 # Make sure that we snagged all the symbols we need.
6939 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941 cat <<EOF > conftest.$ac_ext
6947 # Now generate the symbol file.
6948 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6950 cat <<EOF >> conftest.$ac_ext
6951 #if defined (__STDC__) && __STDC__
6952 # define lt_ptr_t void *
6954 # define lt_ptr_t char *
6958 /* The mapping between symbol names and symbols. */
6963 lt_preloaded_symbols[] =
6966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967 cat <<\EOF >> conftest.$ac_ext
6975 # Now try linking the two files.
6976 mv conftest.$ac_objext conftstm.$ac_objext
6977 lt_save_LIBS="$LIBS"
6978 lt_save_CFLAGS="$CFLAGS"
6979 LIBS="conftstm.$ac_objext"
6980 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982 (eval $ac_link) 2>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6988 LIBS="$lt_save_LIBS"
6989 CFLAGS="$lt_save_CFLAGS"
6991 echo "cannot find nm_test_func in $nlist" >&5
6994 echo "cannot find nm_test_var in $nlist" >&5
6997 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7000 echo "$progname: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 rm -f conftest* conftst*
7005 # Do not use the global_symbol_pipe unless it works.
7006 if test "$pipe_works" = yes; then
7009 lt_cv_sys_global_symbol_pipe=
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016 lt_cv_sys_global_symbol_to_cdecl=
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019 echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7022 echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7026 echo "$as_me:$LINENO: checking for objdir" >&5
7027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028 if test "${lt_cv_objdir+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 rm -f .libs 2>/dev/null
7032 mkdir .libs 2>/dev/null
7033 if test -d .libs; then
7036 # MS-DOS does not allow filenames that begin with a dot.
7039 rmdir .libs 2>/dev/null
7041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042 echo "${ECHO_T}$lt_cv_objdir" >&6
7043 objdir=$lt_cv_objdir
7051 # AIX sometimes has problems with the GCC collect2 program. For some
7052 # reason, if we set the COLLECT_NAMES environment variable, the problems
7053 # vanish in a puff of smoke.
7054 if test "X${COLLECT_NAMES+set}" != Xset; then
7056 export COLLECT_NAMES
7061 # Sed substitution that helps us do robust quoting. It backslashifies
7062 # metacharacters that are still active within double-quoted strings.
7063 Xsed='sed -e 1s/^X//'
7064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7066 # Same as above, but do not quote variable references.
7067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7069 # Sed substitution to delay expansion of an escaped shell variable in a
7070 # double_quote_subst'ed string.
7071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7080 default_ofile=libtool
7081 can_build_shared=yes
7083 # All known linkers require a `.a' archive for static linking (except M$VC,
7084 # which needs '.lib').
7086 ltmain="$ac_aux_dir/ltmain.sh"
7087 ofile="$default_ofile"
7088 with_gnu_ld="$lt_cv_prog_gnu_ld"
7090 if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AR+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 if test -n "$AR"; then
7099 ac_cv_prog_AR="$AR" # Let the user override the test.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_AR="${ac_tool_prefix}ar"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 if test -n "$AR"; then
7119 echo "$as_me:$LINENO: result: $AR" >&5
7120 echo "${ECHO_T}$AR" >&6
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7127 if test -z "$ac_cv_prog_AR"; then
7129 # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 if test -n "$ac_ct_AR"; then
7137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_ac_ct_AR="ar"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159 echo "${ECHO_T}$ac_ct_AR" >&6
7161 echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_RANLIB+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 if test -n "$RANLIB"; then
7179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199 echo "$as_me:$LINENO: result: $RANLIB" >&5
7200 echo "${ECHO_T}$RANLIB" >&6
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208 ac_ct_RANLIB=$RANLIB
7209 # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 if test -n "$ac_ct_RANLIB"; then
7217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_RANLIB="ranlib"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7241 echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7245 RANLIB=$ac_ct_RANLIB
7247 RANLIB="$ac_cv_prog_RANLIB"
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}strip; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_STRIP+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 if test -n "$STRIP"; then
7259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 STRIP=$ac_cv_prog_STRIP
7278 if test -n "$STRIP"; then
7279 echo "$as_me:$LINENO: result: $STRIP" >&5
7280 echo "${ECHO_T}$STRIP" >&6
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7287 if test -z "$ac_cv_prog_STRIP"; then
7289 # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 if test -n "$ac_ct_STRIP"; then
7297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_STRIP="strip"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 echo "${ECHO_T}$ac_ct_STRIP" >&6
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7327 STRIP="$ac_cv_prog_STRIP"
7332 old_CFLAGS="$CFLAGS"
7334 # Set sane defaults for various variables
7335 test -z "$AR" && AR=ar
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337 test -z "$AS" && AS=as
7338 test -z "$CC" && CC=cc
7339 test -z "$LTCC" && LTCC=$CC
7340 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 test -z "$LD" && LD=ld
7342 test -z "$LN_S" && LN_S="ln -s"
7343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7344 test -z "$NM" && NM=nm
7345 test -z "$SED" && SED=sed
7346 test -z "$OBJDUMP" && OBJDUMP=objdump
7347 test -z "$RANLIB" && RANLIB=:
7348 test -z "$STRIP" && STRIP=:
7349 test -z "$ac_objext" && ac_objext=o
7351 # Determine commands to create old-style static archives.
7352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7353 old_postinstall_cmds='chmod 644 $oldlib'
7354 old_postuninstall_cmds=
7356 if test -n "$RANLIB"; then
7359 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7362 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7365 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7368 for cc_temp in $compiler""; do
7370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7379 # Only perform the check for file, if the check method requires it
7380 case $deplibs_check_method in
7382 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7383 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393 lt_save_MAGIC_CMD="$MAGIC_CMD"
7394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396 for ac_dir in $ac_dummy; do
7398 test -z "$ac_dir" && ac_dir=.
7399 if test -f $ac_dir/${ac_tool_prefix}file; then
7400 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7401 if test -n "$file_magic_test_file"; then
7402 case $deplibs_check_method in
7404 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407 $EGREP "$file_magic_regex" > /dev/null; then
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such. This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem. Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7429 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444 if test -n "$ac_tool_prefix"; then
7445 echo "$as_me:$LINENO: checking for file" >&5
7446 echo $ECHO_N "checking for file... $ECHO_C" >&6
7447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7455 lt_save_MAGIC_CMD="$MAGIC_CMD"
7456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458 for ac_dir in $ac_dummy; do
7460 test -z "$ac_dir" && ac_dir=.
7461 if test -f $ac_dir/file; then
7462 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463 if test -n "$file_magic_test_file"; then
7464 case $deplibs_check_method in
7466 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469 $EGREP "$file_magic_regex" > /dev/null; then
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such. This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem. Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7491 MAGIC_CMD="$lt_save_MAGIC_CMD"
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7499 echo "${ECHO_T}$MAGIC_CMD" >&6
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7515 enable_win32_dll=yes
7517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7518 if test "${enable_libtool_lock+set}" = set; then
7519 enableval="$enable_libtool_lock"
7522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7525 # Check whether --with-pic or --without-pic was given.
7526 if test "${with_pic+set}" = set; then
7532 test -z "$pic_mode" && pic_mode=default
7534 # Use C for the default configuration in the libtool script
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544 # Source file extension for C test sources.
7547 # Object file extension for compiled C test sources.
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;\n"
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}\n'
7558 # If no C compiler was specified, use CC.
7561 # Allow CC to be a program name with arguments.
7565 # save warnings/boilerplate of simple test code
7566 ac_outfile=conftest.$ac_objext
7567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7569 _lt_compiler_boilerplate=`cat conftest.err`
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7575 _lt_linker_boilerplate=`cat conftest.err`
7580 # Check for any special shared library compilation flags.
7583 if test "$GCC" = no; then
7586 lt_prog_cc_shlib='-belf'
7590 if test -n "$lt_prog_cc_shlib"; then
7591 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7593 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7595 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7597 lt_cv_prog_cc_can_build_shared=no
7603 # Check to make sure the static flag actually works.
7605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_static_works+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 lt_prog_compiler_static_works=no
7611 save_LDFLAGS="$LDFLAGS"
7612 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7613 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7615 # The compiler can only warn and ignore the option if not recognized
7616 # So say no if there are warnings
7617 if test -s conftest.err; then
7618 # Append any errors to the config.log.
7619 cat conftest.err 1>&5
7620 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7621 $SED '/^$/d' conftest.err >conftest.er2
7622 if diff conftest.exp conftest.er2 >/dev/null; then
7623 lt_prog_compiler_static_works=yes
7626 lt_prog_compiler_static_works=yes
7630 LDFLAGS="$save_LDFLAGS"
7633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7636 if test x"$lt_prog_compiler_static_works" = xyes; then
7639 lt_prog_compiler_static=
7645 lt_prog_compiler_no_builtin_flag=
7647 if test "$GCC" = yes; then
7648 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 lt_cv_prog_compiler_rtti_exceptions=no
7657 ac_outfile=conftest.$ac_objext
7658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7659 lt_compiler_flag="-fno-rtti -fno-exceptions"
7660 # Insert the option either (1) after the last *FLAGS variable, or
7661 # (2) before a word containing "conftest.", or (3) at the end.
7662 # Note that $ac_compile itself does not contain backslashes and begins
7663 # with a dollar sign (not a hyphen), so the echo should work correctly.
7664 # The option is referenced via a variable to avoid confusing sed.
7665 lt_compile=`echo "$ac_compile" | $SED \
7666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668 -e 's:$: $lt_compiler_flag:'`
7669 (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670 (eval "$lt_compile" 2>conftest.err)
7672 cat conftest.err >&5
7673 echo "$as_me:7673: \$? = $ac_status" >&5
7674 if (exit $ac_status) && test -s "$ac_outfile"; then
7675 # The compiler can only warn and ignore the option if not recognized
7676 # So say no if there are warnings other than the usual output.
7677 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7678 $SED '/^$/d' conftest.err >conftest.er2
7679 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7680 lt_cv_prog_compiler_rtti_exceptions=yes
7686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7697 lt_prog_compiler_wl=
7698 lt_prog_compiler_pic=
7699 lt_prog_compiler_static=
7701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7704 if test "$GCC" = yes; then
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_static='-static'
7710 # All AIX code is PIC.
7711 if test "$host_cpu" = ia64; then
7712 # AIX 5 now supports IA64 processor
7713 lt_prog_compiler_static='-Bstatic'
7718 # FIXME: we need at least 68020 code to build shared libraries, but
7719 # adding the `-m68020' flag to GCC prevents building anything better,
7721 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725 # PIC is the default for these OSes.
7728 mingw* | pw32* | os2*)
7729 # This hack is so that the source file can tell whether it is being
7730 # built for inclusion in a dll (and should export symbols for example).
7731 lt_prog_compiler_pic='-DDLL_EXPORT'
7734 darwin* | rhapsody*)
7735 # PIC is the default on this platform
7736 # Common symbols not allowed in MH_DYLIB files
7737 lt_prog_compiler_pic='-fno-common'
7741 # Just because we use GCC doesn't mean we suddenly get shared libraries
7742 # on systems that don't support them.
7743 lt_prog_compiler_can_build_shared=no
7748 if test -d /usr/nec; then
7749 lt_prog_compiler_pic=-Kconform_pic
7754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7761 lt_prog_compiler_pic='-fPIC'
7767 lt_prog_compiler_pic='-fPIC'
7771 # PORTME Check for flag to pass linker flags through the system compiler.
7774 lt_prog_compiler_wl='-Wl,'
7775 if test "$host_cpu" = ia64; then
7776 # AIX 5 now supports IA64 processor
7777 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7783 # PIC is the default on this platform
7784 # Common symbols not allowed in MH_DYLIB files
7785 case $cc_basename in
7787 lt_prog_compiler_pic='-qnocommon'
7788 lt_prog_compiler_wl='-Wl,'
7793 mingw* | pw32* | os2*)
7794 # This hack is so that the source file can tell whether it is being
7795 # built for inclusion in a dll (and should export symbols for example).
7796 lt_prog_compiler_pic='-DDLL_EXPORT'
7799 hpux9* | hpux10* | hpux11*)
7800 lt_prog_compiler_wl='-Wl,'
7801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808 lt_prog_compiler_pic='+Z'
7811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812 lt_prog_compiler_static='${wl}-a ${wl}archive'
7815 irix5* | irix6* | nonstopux*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # PIC (with -KPIC) is the default.
7818 lt_prog_compiler_static='-non_shared'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7827 case $cc_basename in
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-static'
7833 pgcc* | pgf77* | pgf90*)
7834 # Portland Group compilers (*not* the Pentium gcc compiler,
7835 # which looks to be a dead project)
7836 lt_prog_compiler_wl='-Wl,'
7837 lt_prog_compiler_pic='-fpic'
7838 lt_prog_compiler_static='-static'
7841 lt_prog_compiler_wl='-Wl,'
7842 # All Alpha code is PIC.
7843 lt_prog_compiler_static='-non_shared'
7848 osf3* | osf4* | osf5*)
7849 lt_prog_compiler_wl='-Wl,'
7850 # All OSF/1 code is PIC.
7851 lt_prog_compiler_static='-non_shared'
7855 lt_prog_compiler_pic='-Kpic'
7856 lt_prog_compiler_static='-dn'
7860 lt_prog_compiler_pic='-KPIC'
7861 lt_prog_compiler_static='-Bstatic'
7862 case $cc_basename in
7864 lt_prog_compiler_wl='-Qoption ld ';;
7866 lt_prog_compiler_wl='-Wl,';;
7871 lt_prog_compiler_wl='-Qoption ld '
7872 lt_prog_compiler_pic='-PIC'
7873 lt_prog_compiler_static='-Bstatic'
7876 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7877 lt_prog_compiler_wl='-Wl,'
7878 lt_prog_compiler_pic='-KPIC'
7879 lt_prog_compiler_static='-Bstatic'
7883 if test -d /usr/nec ;then
7884 lt_prog_compiler_pic='-Kconform_pic'
7885 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_can_build_shared=no
7895 lt_prog_compiler_pic='-pic'
7896 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_can_build_shared=no
7905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7906 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7909 # Check to make sure the PIC flag actually works.
7911 if test -n "$lt_prog_compiler_pic"; then
7913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7915 if test "${lt_prog_compiler_pic_works+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 lt_prog_compiler_pic_works=no
7919 ac_outfile=conftest.$ac_objext
7920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922 # Insert the option either (1) after the last *FLAGS variable, or
7923 # (2) before a word containing "conftest.", or (3) at the end.
7924 # Note that $ac_compile itself does not contain backslashes and begins
7925 # with a dollar sign (not a hyphen), so the echo should work correctly.
7926 # The option is referenced via a variable to avoid confusing sed.
7927 lt_compile=`echo "$ac_compile" | $SED \
7928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930 -e 's:$: $lt_compiler_flag:'`
7931 (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932 (eval "$lt_compile" 2>conftest.err)
7934 cat conftest.err >&5
7935 echo "$as_me:7935: \$? = $ac_status" >&5
7936 if (exit $ac_status) && test -s "$ac_outfile"; then
7937 # The compiler can only warn and ignore the option if not recognized
7938 # So say no if there are warnings other than the usual output.
7939 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7940 $SED '/^$/d' conftest.err >conftest.er2
7941 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7942 lt_prog_compiler_pic_works=yes
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7951 if test x"$lt_prog_compiler_pic_works" = xyes; then
7952 case $lt_prog_compiler_pic in
7954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7957 lt_prog_compiler_pic=
7958 lt_prog_compiler_can_build_shared=no
7963 # For platforms which do not support PIC, -DPIC is meaningless:
7965 lt_prog_compiler_pic=
7968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 lt_cv_prog_compiler_c_o=no
7978 $rm -r conftest 2>/dev/null
7982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7984 lt_compiler_flag="-o out/conftest2.$ac_objext"
7985 # Insert the option either (1) after the last *FLAGS variable, or
7986 # (2) before a word containing "conftest.", or (3) at the end.
7987 # Note that $ac_compile itself does not contain backslashes and begins
7988 # with a dollar sign (not a hyphen), so the echo should work correctly.
7989 lt_compile=`echo "$ac_compile" | $SED \
7990 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992 -e 's:$: $lt_compiler_flag:'`
7993 (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
7994 (eval "$lt_compile" 2>out/conftest.err)
7996 cat out/conftest.err >&5
7997 echo "$as_me:7997: \$? = $ac_status" >&5
7998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8000 # The compiler can only warn and ignore the option if not recognized
8001 # So say no if there are warnings
8002 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8003 $SED '/^$/d' out/conftest.err >out/conftest.er2
8004 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005 lt_cv_prog_compiler_c_o=yes
8010 # SGI C++ compiler will create directory out/ii_files/ for
8011 # template instantiation
8012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8013 $rm out/* && rmdir out
8019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8023 hard_links="nottested"
8024 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8025 # do not overwrite the value of need_locks provided by the user
8026 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8032 ln conftest.a conftest.b 2>&5 || hard_links=no
8033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034 echo "$as_me:$LINENO: result: $hard_links" >&5
8035 echo "${ECHO_T}$hard_links" >&6
8036 if test "$hard_links" = no; then
8037 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8049 allow_undefined_flag=
8050 enable_shared_with_static_runtimes=no
8052 archive_expsym_cmds=
8053 old_archive_From_new_cmds=
8054 old_archive_from_expsyms_cmds=
8055 export_dynamic_flag_spec=
8056 whole_archive_flag_spec=
8057 thread_safe_flag_spec=
8058 hardcode_libdir_flag_spec=
8059 hardcode_libdir_flag_spec_ld=
8060 hardcode_libdir_separator=
8063 hardcode_shlibpath_var=unsupported
8064 link_all_deplibs=unknown
8065 hardcode_automatic=no
8068 always_export_symbols=no
8069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070 # include_expsyms should be a list of space-separated symbols to be *always*
8071 # included in the symbol list
8073 # exclude_expsyms can be an extended regexp of symbols to exclude
8074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076 # as well as any symbol that contains `d'.
8077 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079 # platforms (ab)use it in PIC code, but their linkers get confused if
8080 # the symbol is explicitly referenced. Since portable code cannot
8081 # rely on this symbol name, it's probably fine to never include it in
8082 # preloaded symbol tables.
8083 extract_expsyms_cmds=
8084 # Just being paranoid about ensuring that cc_basename is set.
8085 for cc_temp in $compiler""; do
8087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8096 cygwin* | mingw* | pw32*)
8097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8098 # When not using gcc, we currently assume that we are using
8099 # Microsoft Visual C++.
8100 if test "$GCC" != yes; then
8110 if test "$with_gnu_ld" = yes; then
8111 # If archive_cmds runs LD, not CC, wlarc should be empty
8114 # Set some defaults for GNU ld with shared library support. These
8115 # are reset later if shared libraries are not supported. Putting them
8116 # here allows them to be overridden if necessary.
8117 runpath_var=LD_RUN_PATH
8118 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119 export_dynamic_flag_spec='${wl}--export-dynamic'
8120 # ancient GNU ld didn't support --whole-archive et. al.
8121 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8124 whole_archive_flag_spec=
8126 supports_anon_versioning=no
8127 case `$LD -v 2>/dev/null` in
8128 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131 *\ 2.11.*) ;; # other 2.11 versions
8132 *) supports_anon_versioning=yes ;;
8135 # See if GNU ld supports shared libraries.
8137 aix3* | aix4* | aix5*)
8138 # On AIX/PPC, the GNU linker is very broken
8139 if test "$host_cpu" != ia64; then
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support. If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8154 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)'
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 hardcode_minus_L=yes
8158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159 # that the semantics of dynamic libraries on AmigaOS, at least up
8160 # to version 4, is to share data among multiple programs linked
8161 # with the same dynamic library. Since this doesn't match the
8162 # behavior of shared libraries on other platforms, we can't use
8168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169 allow_undefined_flag=unsupported
8170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171 # support --undefined. This deserves some investigation. FIXME
8172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178 cygwin* | mingw* | pw32*)
8179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180 # as there is no search path for DLLs.
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 allow_undefined_flag=unsupported
8183 always_export_symbols=no
8184 enable_shared_with_static_runtimes=yes
8185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8187 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8189 # If the export-symbols file already is a .def file (1st line
8190 # is EXPORTS), use it as is; otherwise, prepend...
8191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192 cp $export_symbols $output_objdir/$soname.def;
8194 echo EXPORTS > $output_objdir/$soname.def;
8195 cat $export_symbols >> $output_objdir/$soname.def;
8197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 case $cc_basename,$host_cpu in
8207 pgcc*) # Portland Group C compiler
8208 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'
8209 tmp_addflag=' $pic_flag'
8211 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
8212 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'
8213 tmp_addflag=' $pic_flag -Mnomain' ;;
8214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8215 tmp_addflag=' -i_dynamic' ;;
8216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8217 tmp_addflag=' -i_dynamic -nofor_main' ;;
8218 ifc* | ifort*) # Intel Fortran compiler
8219 tmp_addflag=' -nofor_main' ;;
8221 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 if test $supports_anon_versioning = yes; then
8224 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226 $echo "local: *; };" >> $output_objdir/$libname.ver~
8227 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8245 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems. Therefore, libtool
8251 *** is disabling shared libraries support. We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer. Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8257 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8269 hardcode_shlibpath_var=no
8273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8282 if test "$ld_shlibs" = no; then
8284 hardcode_libdir_flag_spec=
8285 export_dynamic_flag_spec=
8286 whole_archive_flag_spec=
8289 # PORTME fill in a description of your system's linker (not GNU ld)
8292 allow_undefined_flag=unsupported
8293 always_export_symbols=yes
8294 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'
8295 # Note: this linker hardcodes the directories in LIBPATH if there
8296 # are no directories specified by -L.
8297 hardcode_minus_L=yes
8298 if test "$GCC" = yes && test -z "$link_static_flag"; then
8299 # Neither direct hardcoding nor static linking is supported with a
8301 hardcode_direct=unsupported
8306 if test "$host_cpu" = ia64; then
8307 # On IA64, the linker does run time linking by default, so we don't
8308 # have to do anything special.
8309 aix_use_runtimelinking=no
8310 exp_sym_flag='-Bexport'
8313 # If we're using GNU nm, then we don't want the "-C" option.
8314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316 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'
8318 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'
8320 aix_use_runtimelinking=no
8322 # Test if we are trying to use run time linking or normal
8323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324 # need to do runtime linking.
8325 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326 for ld_flag in $LDFLAGS; do
8327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328 aix_use_runtimelinking=yes
8334 exp_sym_flag='-bexport'
8335 no_entry_flag='-bnoentry'
8338 # When large executables or shared objects are built, AIX ld can
8339 # have problems creating the table of contents. If linking a library
8340 # or program results in "error TOC overflow" add -mminimal-toc to
8341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8346 hardcode_libdir_separator=':'
8347 link_all_deplibs=yes
8349 if test "$GCC" = yes; then
8350 case $host_os in aix4.[012]|aix4.[012].*)
8351 # We only want to do this on AIX 4.2 and lower, the check
8352 # below for broken collect2 doesn't work under 4.3+
8353 collect2name=`${CC} -print-prog-name=collect2`
8354 if test -f "$collect2name" && \
8355 strings "$collect2name" | grep resolve_lib_name >/dev/null
8357 # We have reworked collect2
8360 # We have old collect2
8361 hardcode_direct=unsupported
8362 # It fails to find uninstalled libraries when the uninstalled
8363 # path is not listed in the libpath. Setting hardcode_minus_L
8364 # to unsupported forces relinking
8365 hardcode_minus_L=yes
8366 hardcode_libdir_flag_spec='-L$libdir'
8367 hardcode_libdir_separator=
8370 shared_flag='-shared'
8371 if test "$aix_use_runtimelinking" = yes; then
8372 shared_flag="$shared_flag "'${wl}-G'
8376 if test "$host_cpu" = ia64; then
8377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378 # chokes on -Wl,-G. The following line is correct:
8381 if test "$aix_use_runtimelinking" = yes; then
8382 shared_flag='${wl}-G'
8384 shared_flag='${wl}-bM:SRE'
8389 # It seems that -bexpall does not export symbols beginning with
8390 # underscore (_), so it is better to generate a list of symbols to export.
8391 always_export_symbols=yes
8392 if test "$aix_use_runtimelinking" = yes; then
8393 # Warning - without using the other runtime loading flags (-brtl),
8394 # -berok will link without error, but may produce a broken library.
8395 allow_undefined_flag='-berok'
8396 # Determine the default libpath from the value encoded in an empty executable.
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8437 # Check for a 64-bit object if we didn't find anything.
8438 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; }
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8445 rm -f conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8449 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450 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"
8452 if test "$host_cpu" = ia64; then
8453 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8454 allow_undefined_flag="-z nodefs"
8455 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"
8457 # Determine the default libpath from the value encoded in an empty executable.
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest$ac_exeext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8498 # Check for a 64-bit object if we didn't find anything.
8499 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; }
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8506 rm -f conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511 # Warning - without using the other run time loading flags,
8512 # -berok will link without error, but may produce a broken library.
8513 no_undefined_flag=' ${wl}-bernotok'
8514 allow_undefined_flag=' ${wl}-berok'
8515 # -bexpall does not export symbols beginning with underscore (_)
8516 always_export_symbols=yes
8517 # Exported symbols can be pulled into shared objects from archives
8518 whole_archive_flag_spec=' '
8519 archive_cmds_need_lc=yes
8520 # This is similar to how AIX traditionally builds it's shared libraries.
8521 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'
8527 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)'
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_minus_L=yes
8530 # see comment about different semantics on the GNU ld section
8535 export_dynamic_flag_spec=-rdynamic
8538 cygwin* | mingw* | pw32*)
8539 # When not using gcc, we currently assume that we are using
8540 # Microsoft Visual C++.
8541 # hardcode_libdir_flag_spec is actually meaningless, as there is
8542 # no search path for DLLs.
8543 hardcode_libdir_flag_spec=' '
8544 allow_undefined_flag=unsupported
8545 # Tell ltmain to make .lib files, not .a files.
8547 # Tell ltmain to make .dll files, not .so files.
8549 # FIXME: Setting linknames here is a bad hack.
8550 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8551 # The linker will automatically build a .lib file if we build a DLL.
8552 old_archive_From_new_cmds='true'
8553 # FIXME: Should let the user specify the lib program.
8554 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8555 fix_srcfile_path='`cygpath -w "$srcfile"`'
8556 enable_shared_with_static_runtimes=yes
8559 darwin* | rhapsody*)
8561 rhapsody* | darwin1.[012])
8562 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8565 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8566 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8568 case ${MACOSX_DEPLOYMENT_TARGET} in
8570 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8573 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8579 archive_cmds_need_lc=no
8581 hardcode_automatic=yes
8582 hardcode_shlibpath_var=unsupported
8583 whole_archive_flag_spec=''
8584 link_all_deplibs=yes
8585 if test "$GCC" = yes ; then
8586 output_verbose_link_cmd='echo'
8587 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8590 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}'
8591 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}'
8593 case $cc_basename in
8595 output_verbose_link_cmd='echo'
8596 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8597 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8599 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}'
8600 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}'
8610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-L$libdir'
8612 hardcode_shlibpath_var=no
8619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620 # support. Future versions do this automatically, but an explicit c++rt0.o
8621 # does not break anything, and helps significantly (at the cost of a little
8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625 hardcode_libdir_flag_spec='-R$libdir'
8627 hardcode_shlibpath_var=no
8630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8634 hardcode_minus_L=yes
8635 hardcode_shlibpath_var=no
8638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639 freebsd* | kfreebsd*-gnu | dragonfly*)
8640 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641 hardcode_libdir_flag_spec='-R$libdir'
8643 hardcode_shlibpath_var=no
8647 if test "$GCC" = yes; then
8648 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'
8650 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'
8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653 hardcode_libdir_separator=:
8656 # hardcode_minus_L: Not really in the search PATH,
8657 # but as the default location of the library.
8658 hardcode_minus_L=yes
8659 export_dynamic_flag_spec='${wl}-E'
8663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8666 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8675 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8682 if test "$with_gnu_ld" = no; then
8685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686 hardcode_libdir_flag_spec_ld='+b $libdir'
8687 hardcode_libdir_separator=:
8689 hardcode_shlibpath_var=no
8692 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_shlibpath_var=no
8696 # hardcode_minus_L: Not really in the search PATH,
8697 # but as the default location of the library.
8698 hardcode_minus_L=yes
8701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702 hardcode_libdir_separator=:
8704 export_dynamic_flag_spec='${wl}-E'
8706 # hardcode_minus_L: Not really in the search PATH,
8707 # but as the default location of the library.
8708 hardcode_minus_L=yes
8714 irix5* | irix6* | nonstopux*)
8715 if test "$GCC" = yes; then
8716 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'
8718 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'
8719 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723 link_all_deplibs=yes
8727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8730 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8732 hardcode_libdir_flag_spec='-R$libdir'
8734 hardcode_shlibpath_var=no
8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 hardcode_libdir_separator=:
8742 hardcode_shlibpath_var=no
8747 hardcode_shlibpath_var=no
8748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752 export_dynamic_flag_spec='${wl}-E'
8755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_libdir_flag_spec='-R$libdir'
8760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768 hardcode_libdir_flag_spec='-L$libdir'
8769 hardcode_minus_L=yes
8770 allow_undefined_flag=unsupported
8771 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'
8772 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8776 if test "$GCC" = yes; then
8777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778 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'
8780 allow_undefined_flag=' -expect_unresolved \*'
8781 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'
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 hardcode_libdir_separator=:
8787 osf4* | osf5*) # as osf3* with the addition of -msym flag
8788 if test "$GCC" = yes; then
8789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790 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'
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 allow_undefined_flag=' -expect_unresolved \*'
8794 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'
8795 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8796 $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'
8798 # Both c and cxx compiler support -rpath directly
8799 hardcode_libdir_flag_spec='-rpath $libdir'
8801 hardcode_libdir_separator=:
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_shlibpath_var=no
8807 export_dynamic_flag_spec='${wl}-Bexport'
8808 runpath_var=LD_RUN_PATH
8809 hardcode_runpath_var=yes
8813 no_undefined_flag=' -z text'
8814 if test "$GCC" = yes; then
8816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8821 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8825 hardcode_libdir_flag_spec='-R$libdir'
8826 hardcode_shlibpath_var=no
8828 solaris2.[0-5] | solaris2.[0-5].*) ;;
8830 # The compiler driver will combine linker options so we
8831 # cannot just pass the convience library names through
8832 # without $wl, iff we do not link with $LD.
8833 # Luckily, gcc supports the same syntax we need for Sun Studio.
8834 # Supported since Solaris 2.6 (maybe 2.5.1?)
8837 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8839 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' ;;
8842 link_all_deplibs=yes
8846 if test "x$host_vendor" = xsequent; then
8847 # Use $CC to link under sequent, because it throws in some extra .o
8848 # files that make .init and .fini sections work.
8849 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_minus_L=yes
8856 hardcode_shlibpath_var=no
8860 case $host_vendor in
8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_direct=yes # is this really true???
8866 ## LD is ld it makes a PLAMLIB
8867 ## CC just makes a GrossModule.
8868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8869 reload_cmds='$CC -r -o $output$reload_objs'
8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8877 runpath_var='LD_RUN_PATH'
8878 hardcode_shlibpath_var=no
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_shlibpath_var=no
8884 export_dynamic_flag_spec='-Bexport'
8888 if test -d /usr/nec; then
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_shlibpath_var=no
8891 runpath_var=LD_RUN_PATH
8892 hardcode_runpath_var=yes
8898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_shlibpath_var=no
8902 hardcode_runpath_var=yes
8903 runpath_var=LD_RUN_PATH
8906 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8907 no_undefined_flag='${wl}-z ${wl}text'
8908 if test "$GCC" = yes; then
8909 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 runpath_var='LD_RUN_PATH'
8914 hardcode_shlibpath_var=no
8918 no_undefined_flag=' -z text'
8919 # $CC -shared without GNU ld will not create a library from C++
8920 # object files and a static libstdc++, better avoid it by now
8921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924 hardcode_libdir_flag_spec=
8925 hardcode_shlibpath_var=no
8926 runpath_var='LD_RUN_PATH'
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_shlibpath_var=no
8941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8942 echo "${ECHO_T}$ld_shlibs" >&6
8943 test "$ld_shlibs" = no && can_build_shared=no
8945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8946 if test "$GCC" = yes; then
8947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8951 # Do we need to explicitly link libc?
8953 case "x$archive_cmds_need_lc" in
8955 # Assume -lc should be added
8956 archive_cmds_need_lc=yes
8958 if test "$enable_shared" = yes && test "$GCC" = yes; then
8959 case $archive_cmds in
8961 # FIXME: we may have to deal with multi-command sequences.
8964 # Test whether the compiler implicitly links with -lc since on some
8965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966 # to ld, don't add -lc before -lgcc.
8967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } 2>conftest.err; then
8979 libobjs=conftest.$ac_objext
8981 wl=$lt_prog_compiler_wl
8987 lt_save_allow_undefined_flag=$allow_undefined_flag
8988 allow_undefined_flag=
8989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8990 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }
8995 archive_cmds_need_lc=no
8997 archive_cmds_need_lc=yes
8999 allow_undefined_flag=$lt_save_allow_undefined_flag
9001 cat conftest.err 1>&5
9004 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9015 libname_spec='lib$name'
9023 shlibpath_overrides_runpath=unknown
9025 dynamic_linker="$host_os ld.so"
9026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9027 if test "$GCC" = yes; then
9028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9030 # if the path contains ";" then we assume it to be the separator
9031 # otherwise default to the standard path separator (i.e. ":") - it is
9032 # assumed that no part of a normal pathname contains ";" but that should
9033 # okay in the real world where ";" in dirpaths is itself problematic.
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9041 need_lib_prefix=unknown
9042 hardcode_into_libs=no
9044 # when you set need_version to no, make sure it does not cause -set_version
9045 # flags to be left without arguments
9046 need_version=unknown
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9052 shlibpath_var=LIBPATH
9054 # AIX 3 has no versioning support, so we append a major version to the name.
9055 soname_spec='${libname}${release}${shared_ext}$major'
9062 hardcode_into_libs=yes
9063 if test "$host_cpu" = ia64; then
9064 # AIX 5 supports IA64
9065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9066 shlibpath_var=LD_LIBRARY_PATH
9068 # With GCC up to 2.95.x, collect2 would create an import file
9069 # for dependence libraries. The import file would start with
9070 # the line `#! .'. This would cause the generated library to
9071 # depend on `.', always an invalid library. This was fixed in
9072 # development snapshots of GCC prior to 3.0.
9074 aix4 | aix4.[01] | aix4.[01].*)
9075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9085 # soname into executable. Probably we can add versioning support to
9086 # collect2, so additional links can be useful in future.
9087 if test "$aix_use_runtimelinking" = yes; then
9088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9089 # instead of lib<name>.a to let people know that these are not
9090 # typical AIX shared libraries.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 # We preserve .a as extension for shared libraries through AIX4.2
9094 # and later when we are not doing run time linking.
9095 library_names_spec='${libname}${release}.a $libname.a'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LIBPATH
9103 library_names_spec='$libname.ixlibrary $libname.a'
9104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105 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'
9109 library_names_spec='${libname}${shared_ext}'
9110 dynamic_linker="$host_os ld.so"
9111 shlibpath_var=LIBRARY_PATH
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9123 # the default ld.so.conf also contains /usr/contrib/lib and
9124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9125 # libtool to hard-code these into programs
9128 cygwin* | mingw* | pw32*)
9129 version_type=windows
9134 case $GCC,$host_os in
9135 yes,cygwin* | yes,mingw* | yes,pw32*)
9136 library_names_spec='$libname.dll.a'
9137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9138 postinstall_cmds='base_file=`basename \${file}`~
9139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9140 dldir=$destdir/`dirname \$dlpath`~
9141 test -d \$dldir || mkdir -p \$dldir~
9142 $install_prog $dir/$dlname \$dldir/$dlname'
9143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9144 dlpath=$dir/\$dldll~
9146 shlibpath_overrides_runpath=yes
9150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9152 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9155 # MinGW DLLs use traditional 'lib' prefix
9156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9159 # It is most probably a Windows format PATH printed by
9160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9161 # path with ; separators, and with drive letters. We can handle the
9162 # drive letters (cygwin fileutils understands them), so leave them,
9163 # especially as we might pass files found there to a mingw objdump,
9164 # which wouldn't understand a cygwinified path. Ahh.
9165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9171 # pw32 DLLs use 'pw' prefix rather than 'lib'
9172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9181 dynamic_linker='Win32 ld.exe'
9182 # FIXME: first we should search . and the directory the executable is in
9186 darwin* | rhapsody*)
9187 dynamic_linker="$host_os dyld"
9191 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9192 soname_spec='${libname}${release}${major}$shared_ext'
9193 shlibpath_overrides_runpath=yes
9194 shlibpath_var=DYLD_LIBRARY_PATH
9195 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9196 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9197 if test "$GCC" = yes; then
9198 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"`
9200 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=no
9226 hardcode_into_libs=yes
9227 dynamic_linker='GNU ld.so'
9230 freebsd* | dragonfly*)
9231 # DragonFly does not have aout. When/if they implement a new
9232 # versioning mechanism, adjust this.
9233 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9234 version_type=freebsd-$objformat
9235 case $version_type in
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9246 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes
9251 freebsd3.[01]* | freebsdelf3.[01]*)
9252 shlibpath_overrides_runpath=yes
9253 hardcode_into_libs=yes
9256 shlibpath_overrides_runpath=no
9257 hardcode_into_libs=yes
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 hardcode_into_libs=yes
9272 hpux9* | hpux10* | hpux11*)
9273 # Give a soname corresponding to the major version so that dld.sl refuses to
9274 # link against other versions.
9281 hardcode_into_libs=yes
9282 dynamic_linker="$host_os dld.so"
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 if test "X$HPUX_IA64_MODE" = X32; then
9288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9296 hardcode_into_libs=yes
9297 dynamic_linker="$host_os dld.sl"
9298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9307 dynamic_linker="$host_os dld.sl"
9308 shlibpath_var=SHLIB_PATH
9309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9315 postinstall_cmds='chmod 555 $lib'
9318 irix5* | irix6* | nonstopux*)
9320 nonstopux*) version_type=nonstopux ;;
9322 if test "$lt_cv_prog_gnu_ld" = yes; then
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9333 irix5* | nonstopux*)
9337 case $LD in # libtool.m4 will add one of these switches to LD
9338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9339 libsuff= shlibsuff= libmagic=32-bit;;
9340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9341 libsuff=32 shlibsuff=N32 libmagic=N32;;
9342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9344 *) libsuff= shlibsuff= libmagic=never-match;;
9348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9349 shlibpath_overrides_runpath=no
9350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9352 hardcode_into_libs=yes
9355 # No shared lib support for Linux oldld, aout, or coff.
9356 linux*oldld* | linux*aout* | linux*coff*)
9360 # This must be Linux ELF.
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=no
9370 # This implies no fast_install, which is unacceptable.
9371 # Some rework will be needed to allow for fast_install
9372 # before this can be enabled.
9373 hardcode_into_libs=yes
9375 # Append ld.so.conf contents to the search path
9376 if test -f /etc/ld.so.conf; then
9377 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' ' '`
9378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9381 # We used to test for /lib/ld.so.1 and disable shared libraries on
9382 # powerpc, because MkLinux only supported shared libraries with the
9383 # GNU dynamic linker. Since this was broken with cross compilers,
9384 # most powerpc-linux boxes support dynamic linking these days and
9385 # people can always --disable-shared, the test was removed, and we
9386 # assume the GNU/Linux dynamic linker is in use.
9387 dynamic_linker='GNU/Linux ld.so'
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=no
9398 hardcode_into_libs=yes
9399 dynamic_linker='GNU ld.so'
9406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409 dynamic_linker='NetBSD (a.out) ld.so'
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 dynamic_linker='NetBSD ld.elf_so'
9415 shlibpath_var=LD_LIBRARY_PATH
9416 shlibpath_overrides_runpath=yes
9417 hardcode_into_libs=yes
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=yes
9440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9443 *) need_version=no ;;
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9450 openbsd2.[89] | openbsd2.[89].*)
9451 shlibpath_overrides_runpath=no
9454 shlibpath_overrides_runpath=yes
9458 shlibpath_overrides_runpath=yes
9463 libname_spec='$name'
9466 library_names_spec='$libname${shared_ext} $libname.a'
9467 dynamic_linker='OS/2 ld.exe'
9468 shlibpath_var=LIBPATH
9471 osf3* | osf4* | osf5*)
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 shlibpath_var=LD_LIBRARY_PATH
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes
9497 hardcode_into_libs=yes
9498 # ldd complains unless libraries are executable
9499 postinstall_cmds='chmod +x $lib'
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 shlibpath_overrides_runpath=yes
9508 if test "$with_gnu_ld" = yes; then
9514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 case $host_vendor in
9521 shlibpath_overrides_runpath=no
9523 export_dynamic_flag_spec='${wl}-Blargedynsym'
9524 runpath_var=LD_RUN_PATH
9532 shlibpath_overrides_runpath=no
9533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9539 if test -d /usr/nec ;then
9541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9542 soname_spec='$libname${shared_ext}.$major'
9543 shlibpath_var=LD_LIBRARY_PATH
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9559 echo "${ECHO_T}$dynamic_linker" >&6
9560 test "$dynamic_linker" = no && can_build_shared=no
9562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9565 if test -n "$hardcode_libdir_flag_spec" || \
9566 test -n "$runpath_var" || \
9567 test "X$hardcode_automatic" = "Xyes" ; then
9569 # We can hardcode non-existant directories.
9570 if test "$hardcode_direct" != no &&
9571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9572 # have to relink, otherwise we might link with an installed library
9573 # when we should be linking with a yet-to-be-installed one
9574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9575 test "$hardcode_minus_L" != no; then
9576 # Linking always hardcodes the temporary library directory.
9577 hardcode_action=relink
9579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9580 hardcode_action=immediate
9583 # We cannot hardcode anything, or else we can only hardcode existing
9585 hardcode_action=unsupported
9587 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9588 echo "${ECHO_T}$hardcode_action" >&6
9590 if test "$hardcode_action" = relink; then
9591 # Fast installation is not supported
9592 enable_fast_install=no
9593 elif test "$shlibpath_overrides_runpath" = yes ||
9594 test "$enable_shared" = no; then
9595 # Fast installation is not necessary
9596 enable_fast_install=needless
9601 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9606 echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6
9609 # FIXME - insert some real tests, host_os isn't really good enough
9612 if test -n "$STRIP" ; then
9613 striplib="$STRIP -x"
9614 echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9617 echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6
9622 echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6
9628 if test "x$enable_dlopen" != xyes; then
9629 enable_dlopen=unknown
9630 enable_dlopen_self=unknown
9631 enable_dlopen_self_static=unknown
9638 lt_cv_dlopen="load_add_on"
9640 lt_cv_dlopen_self=yes
9644 lt_cv_dlopen="LoadLibrary"
9649 lt_cv_dlopen="dlopen"
9654 # if libdl is installed we need to link against it
9655 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS=$LIBS
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any gcc2 internal prototype to avoid an error. */
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9688 grep -v '^ *+' conftest.er1 >conftest.err
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -z "$ac_c_werror_flag"
9694 || test ! -s conftest.err'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try='test -s conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_dl_dlopen=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_lib_dl_dlopen=no
9713 rm -f conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9717 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9725 lt_cv_dlopen_self=yes
9732 echo "$as_me:$LINENO: checking for shl_load" >&5
9733 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9734 if test "${ac_cv_func_shl_load+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9745 #define shl_load innocuous_shl_load
9747 /* System header to define __stub macros and hopefully few prototypes,
9748 which can conflict with char shl_load (); below.
9749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750 <limits.h> exists even on freestanding compilers. */
9753 # include <limits.h>
9755 # include <assert.h>
9760 /* Override any gcc2 internal prototype to avoid an error. */
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9768 /* The GNU C library defines this for functions which it implements
9769 to always fail with ENOSYS. Some functions are actually named
9770 something starting with __ and the normal name is an alias. */
9771 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9774 char (*f) () = shl_load;
9783 return f != shl_load;
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag"
9798 || test ! -s conftest.err'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_func_shl_load=yes
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_cv_func_shl_load=no
9817 rm -f conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9820 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9821 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9822 if test $ac_cv_func_shl_load = yes; then
9823 lt_cv_dlopen="shl_load"
9825 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9826 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 ac_check_lib_save_LIBS=$LIBS
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 /* Override any gcc2 internal prototype to avoid an error. */
9843 /* We use char because int might match the return type of a gcc2
9844 builtin and then its argument prototype would still apply. */
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_lib_dld_shl_load=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_lib_dld_shl_load=no
9883 rm -f conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9887 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9888 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9889 if test $ac_cv_lib_dld_shl_load = yes; then
9890 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9892 echo "$as_me:$LINENO: checking for dlopen" >&5
9893 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9894 if test "${ac_cv_func_dlopen+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 cat >conftest.$ac_ext <<_ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9905 #define dlopen innocuous_dlopen
9907 /* System header to define __stub macros and hopefully few prototypes,
9908 which can conflict with char dlopen (); below.
9909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9910 <limits.h> exists even on freestanding compilers. */
9913 # include <limits.h>
9915 # include <assert.h>
9920 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9934 char (*f) () = dlopen;
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>conftest.er1
9952 grep -v '^ *+' conftest.er1 >conftest.err
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_cv_func_dlopen=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_func_dlopen=no
9977 rm -f conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9980 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9981 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9982 if test $ac_cv_func_dlopen = yes; then
9983 lt_cv_dlopen="dlopen"
9985 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9986 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 ac_check_lib_save_LIBS=$LIBS
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
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_lib_dl_dlopen=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_lib_dl_dlopen=no
10043 rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10047 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10049 if test $ac_cv_lib_dl_dlopen = yes; then
10050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10052 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10053 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10054 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-lsvld $LIBS"
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10066 /* Override any gcc2 internal prototype to avoid an error. */
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_lib_svld_dlopen=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_lib_svld_dlopen=no
10110 rm -f conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10114 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10116 if test $ac_cv_lib_svld_dlopen = yes; then
10117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10119 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10120 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10121 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 ac_check_lib_save_LIBS=$LIBS
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10133 /* Override any gcc2 internal prototype to avoid an error. */
10137 /* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_cv_lib_dld_dld_link=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_cv_lib_dld_dld_link=no
10177 rm -f conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10183 if test $ac_cv_lib_dld_dld_link = yes; then
10184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10205 if test "x$lt_cv_dlopen" != xno; then
10211 case $lt_cv_dlopen in
10213 save_CPPFLAGS="$CPPFLAGS"
10214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10216 save_LDFLAGS="$LDFLAGS"
10217 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10220 LIBS="$lt_cv_dlopen_libs $LIBS"
10222 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10223 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10224 if test "${lt_cv_dlopen_self+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 if test "$cross_compiling" = yes; then :
10228 lt_cv_dlopen_self=cross
10230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10231 lt_status=$lt_dlunknown
10232 cat > conftest.$ac_ext <<EOF
10233 #line 10233 "configure"
10234 #include "confdefs.h"
10243 # define LT_DLGLOBAL RTLD_GLOBAL
10246 # define LT_DLGLOBAL DL_GLOBAL
10248 # define LT_DLGLOBAL 0
10252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253 find out it does not work in some platform. */
10254 #ifndef LT_DLLAZY_OR_NOW
10256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10259 # define LT_DLLAZY_OR_NOW DL_LAZY
10262 # define LT_DLLAZY_OR_NOW RTLD_NOW
10265 # define LT_DLLAZY_OR_NOW DL_NOW
10267 # define LT_DLLAZY_OR_NOW 0
10275 extern "C" void exit (int);
10278 void fnord() { int i=42;}
10281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10282 int status = $lt_dlunknown;
10286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10288 /* dlclose (self); */
10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295 (eval $ac_link) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10299 (./conftest; exit; ) 2>/dev/null
10301 case x$lt_status in
10302 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10303 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10304 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10307 # compilation failed
10308 lt_cv_dlopen_self=no
10315 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10316 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10318 if test "x$lt_cv_dlopen_self" = xyes; then
10319 LDFLAGS="$LDFLAGS $link_static_flag"
10320 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10321 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10322 if test "${lt_cv_dlopen_self_static+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 if test "$cross_compiling" = yes; then :
10326 lt_cv_dlopen_self_static=cross
10328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10329 lt_status=$lt_dlunknown
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10331 "configure"
10332 #include "confdefs.h"
10341 # define LT_DLGLOBAL RTLD_GLOBAL
10344 # define LT_DLGLOBAL DL_GLOBAL
10346 # define LT_DLGLOBAL 0
10350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10351 find out it does not work in some platform. */
10352 #ifndef LT_DLLAZY_OR_NOW
10354 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10357 # define LT_DLLAZY_OR_NOW DL_LAZY
10360 # define LT_DLLAZY_OR_NOW RTLD_NOW
10363 # define LT_DLLAZY_OR_NOW DL_NOW
10365 # define LT_DLLAZY_OR_NOW 0
10373 extern "C" void exit (int);
10376 void fnord() { int i=42;}
10379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10380 int status = $lt_dlunknown;
10384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10386 /* dlclose (self); */
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10397 (./conftest; exit; ) 2>/dev/null
10399 case x$lt_status in
10400 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10401 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10402 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10405 # compilation failed
10406 lt_cv_dlopen_self_static=no
10413 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10414 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10417 CPPFLAGS="$save_CPPFLAGS"
10418 LDFLAGS="$save_LDFLAGS"
10423 case $lt_cv_dlopen_self in
10424 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10425 *) enable_dlopen_self=unknown ;;
10428 case $lt_cv_dlopen_self_static in
10429 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10430 *) enable_dlopen_self_static=unknown ;;
10435 # Report which librarie types wil actually be built
10436 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10437 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10438 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10439 echo "${ECHO_T}$can_build_shared" >&6
10441 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10442 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10443 test "$can_build_shared" = "no" && enable_shared=no
10445 # On AIX, shared libraries and static libraries use the same namespace, and
10446 # are all built from PIC.
10449 test "$enable_shared" = yes && enable_static=no
10450 if test -n "$RANLIB"; then
10451 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10452 postinstall_cmds='$RANLIB $lib'
10457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10458 test "$enable_shared" = yes && enable_static=no
10462 echo "$as_me:$LINENO: result: $enable_shared" >&5
10463 echo "${ECHO_T}$enable_shared" >&6
10465 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10467 # Make sure either enable_shared or enable_static is yes.
10468 test "$enable_shared" = yes || enable_static=yes
10469 echo "$as_me:$LINENO: result: $enable_static" >&5
10470 echo "${ECHO_T}$enable_static" >&6
10472 # The else clause should only fire when bootstrapping the
10473 # libtool distribution, otherwise you forgot to ship ltmain.sh
10474 # with your package, and you will get complaints that there are
10475 # no rules to generate ltmain.sh.
10476 if test -f "$ltmain"; then
10477 # See if we are running on zsh, and set the options which allow our commands through
10478 # without removal of \ escapes.
10479 if test -n "${ZSH_VERSION+set}" ; then
10480 setopt NO_GLOB_SUBST
10482 # Now quote all the things that may contain metacharacters while being
10483 # careful not to overquote the AC_SUBSTed values. We take copies of the
10484 # variables and quote the copies for generation of the libtool script.
10485 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10489 deplibs_check_method reload_flag reload_cmds need_locks \
10490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10491 lt_cv_sys_global_symbol_to_c_name_address \
10492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10493 old_postinstall_cmds old_postuninstall_cmds \
10497 lt_prog_compiler_wl \
10498 lt_prog_compiler_pic \
10499 lt_prog_compiler_static \
10500 lt_prog_compiler_no_builtin_flag \
10501 export_dynamic_flag_spec \
10502 thread_safe_flag_spec \
10503 whole_archive_flag_spec \
10504 enable_shared_with_static_runtimes \
10506 old_archive_from_new_cmds \
10511 compiler_lib_search_path \
10513 archive_expsym_cmds \
10515 postuninstall_cmds \
10516 old_archive_from_expsyms_cmds \
10517 allow_undefined_flag \
10518 no_undefined_flag \
10519 export_symbols_cmds \
10520 hardcode_libdir_flag_spec \
10521 hardcode_libdir_flag_spec_ld \
10522 hardcode_libdir_separator \
10523 hardcode_automatic \
10525 module_expsym_cmds \
10526 lt_cv_prog_compiler_c_o \
10528 include_expsyms; do
10531 old_archive_cmds | \
10532 old_archive_from_new_cmds | \
10534 archive_expsym_cmds | \
10536 module_expsym_cmds | \
10537 old_archive_from_expsyms_cmds | \
10538 export_symbols_cmds | \
10539 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10540 postinstall_cmds | postuninstall_cmds | \
10541 old_postinstall_cmds | old_postuninstall_cmds | \
10542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10543 # Double-quote double-evaled strings.
10544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10553 *'\$0 --fallback-echo"')
10554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10558 cfgfile="${ofile}T"
10559 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10561 { echo "$as_me:$LINENO: creating $ofile" >&5
10562 echo "$as_me: creating $ofile" >&6;}
10564 cat <<__EOF__ >> "$cfgfile"
10567 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10568 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10571 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10572 # Free Software Foundation, Inc.
10574 # This file is part of GNU Libtool:
10575 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10577 # This program is free software; you can redistribute it and/or modify
10578 # it under the terms of the GNU General Public License as published by
10579 # the Free Software Foundation; either version 2 of the License, or
10580 # (at your option) any later version.
10582 # This program is distributed in the hope that it will be useful, but
10583 # WITHOUT ANY WARRANTY; without even the implied warranty of
10584 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10585 # General Public License for more details.
10587 # You should have received a copy of the GNU General Public License
10588 # along with this program; if not, write to the Free Software
10589 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10591 # As a special exception to the GNU General Public License, if you
10592 # distribute this file as part of a program that contains a
10593 # configuration script generated by Autoconf, you may include it under
10594 # the same distribution terms that you use for the rest of that program.
10596 # A sed program that does not truncate output.
10599 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10600 Xsed="$SED -e 1s/^X//"
10602 # The HP-UX ksh and POSIX shell print the target directory to stdout
10603 # if CDPATH is set.
10604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10606 # The names of the tagged configurations supported by this script.
10609 # ### BEGIN LIBTOOL CONFIG
10611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10613 # Shell to use when invoking shell scripts.
10616 # Whether or not to build shared libraries.
10617 build_libtool_libs=$enable_shared
10619 # Whether or not to build static libraries.
10620 build_old_libs=$enable_static
10622 # Whether or not to add -lc for building shared libraries.
10623 build_libtool_need_lc=$archive_cmds_need_lc
10625 # Whether or not to disallow shared libs when runtime libs are static
10626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10628 # Whether or not to optimize for fast installation.
10629 fast_install=$enable_fast_install
10632 host_alias=$host_alias
10636 # The build system.
10637 build_alias=$build_alias
10641 # An echo program that does not interpret backslashes.
10646 AR_FLAGS=$lt_AR_FLAGS
10651 # A language-specific compiler.
10654 # Is the compiler the GNU C compiler?
10660 # The linker used to build libraries.
10663 # Whether we need hard or soft links.
10666 # A BSD-compatible nm program.
10669 # A symbol stripping program
10672 # Used to examine libraries when file_magic_cmd begins "file"
10673 MAGIC_CMD=$MAGIC_CMD
10675 # Used on cygwin: DLL creation program.
10678 # Used on cygwin: object dumper.
10681 # Used on cygwin: assembler.
10684 # The name of the directory that contains temporary libtool files.
10687 # How to create reloadable object files.
10688 reload_flag=$lt_reload_flag
10689 reload_cmds=$lt_reload_cmds
10691 # How to pass a linker flag through the compiler.
10692 wl=$lt_lt_prog_compiler_wl
10694 # Object file suffix (normally "o").
10695 objext="$ac_objext"
10697 # Old archive suffix (normally "a").
10700 # Shared library suffix (normally ".so").
10701 shrext_cmds='$shrext_cmds'
10703 # Executable file suffix (normally "").
10706 # Additional compiler flags for building library objects.
10707 pic_flag=$lt_lt_prog_compiler_pic
10710 # What is the maximum length of a command?
10711 max_cmd_len=$lt_cv_sys_max_cmd_len
10713 # Does compiler simultaneously support -c and -o options?
10714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10716 # Must we lock files when doing compilation?
10717 need_locks=$lt_need_locks
10719 # Do we need the lib prefix for modules?
10720 need_lib_prefix=$need_lib_prefix
10722 # Do we need a version for libraries?
10723 need_version=$need_version
10725 # Whether dlopen is supported.
10726 dlopen_support=$enable_dlopen
10728 # Whether dlopen of programs is supported.
10729 dlopen_self=$enable_dlopen_self
10731 # Whether dlopen of statically linked programs is supported.
10732 dlopen_self_static=$enable_dlopen_self_static
10734 # Compiler flag to prevent dynamic linking.
10735 link_static_flag=$lt_lt_prog_compiler_static
10737 # Compiler flag to turn off builtin functions.
10738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10740 # Compiler flag to allow reflexive dlopens.
10741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10743 # Compiler flag to generate shared objects directly from archives.
10744 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10746 # Compiler flag to generate thread-safe objects.
10747 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10749 # Library versioning type.
10750 version_type=$version_type
10752 # Format of library name prefix.
10753 libname_spec=$lt_libname_spec
10755 # List of archive names. First name is the real one, the rest are links.
10756 # The last name is the one that the linker finds with -lNAME.
10757 library_names_spec=$lt_library_names_spec
10759 # The coded name of the library, if different from the real name.
10760 soname_spec=$lt_soname_spec
10762 # Commands used to build and install an old-style archive.
10764 old_archive_cmds=$lt_old_archive_cmds
10765 old_postinstall_cmds=$lt_old_postinstall_cmds
10766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10768 # Create an old-style archive from a shared archive.
10769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10771 # Create a temporary old-style archive to link instead of a shared archive.
10772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10774 # Commands used to build and install a shared archive.
10775 archive_cmds=$lt_archive_cmds
10776 archive_expsym_cmds=$lt_archive_expsym_cmds
10777 postinstall_cmds=$lt_postinstall_cmds
10778 postuninstall_cmds=$lt_postuninstall_cmds
10780 # Commands used to build a loadable module (assumed same as above if empty)
10781 module_cmds=$lt_module_cmds
10782 module_expsym_cmds=$lt_module_expsym_cmds
10784 # Commands to strip libraries.
10785 old_striplib=$lt_old_striplib
10786 striplib=$lt_striplib
10788 # Dependencies to place before the objects being linked to create a
10790 predep_objects=$lt_predep_objects
10792 # Dependencies to place after the objects being linked to create a
10794 postdep_objects=$lt_postdep_objects
10796 # Dependencies to place before the objects being linked to create a
10798 predeps=$lt_predeps
10800 # Dependencies to place after the objects being linked to create a
10802 postdeps=$lt_postdeps
10804 # The library search path used internally by the compiler when linking
10805 # a shared library.
10806 compiler_lib_search_path=$lt_compiler_lib_search_path
10808 # Method to check whether dependent libraries are shared objects.
10809 deplibs_check_method=$lt_deplibs_check_method
10811 # Command to use when deplibs_check_method == file_magic.
10812 file_magic_cmd=$lt_file_magic_cmd
10814 # Flag that allows shared libraries with undefined symbols to be built.
10815 allow_undefined_flag=$lt_allow_undefined_flag
10817 # Flag that forces no undefined symbols.
10818 no_undefined_flag=$lt_no_undefined_flag
10820 # Commands used to finish a libtool library installation in a directory.
10821 finish_cmds=$lt_finish_cmds
10823 # Same as above, but a single script fragment to be evaled but not shown.
10824 finish_eval=$lt_finish_eval
10826 # Take the output of nm and produce a listing of raw symbols and C names.
10827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10829 # Transform the output of nm in a proper C declaration
10830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10832 # Transform the output of nm in a C name address pair
10833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10835 # This is the shared library runtime path variable.
10836 runpath_var=$runpath_var
10838 # This is the shared library path variable.
10839 shlibpath_var=$shlibpath_var
10841 # Is shlibpath searched before the hard-coded library search path?
10842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10844 # How to hardcode a shared library path into an executable.
10845 hardcode_action=$hardcode_action
10847 # Whether we should hardcode library paths into libraries.
10848 hardcode_into_libs=$hardcode_into_libs
10850 # Flag to hardcode \$libdir into a binary during linking.
10851 # This must work even if \$libdir does not exist.
10852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10854 # If ld is used when linking, flag to hardcode \$libdir into
10855 # a binary during linking. This must work even if \$libdir does
10857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10859 # Whether we need a single -rpath flag with a separated argument.
10860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10863 # resulting binary.
10864 hardcode_direct=$hardcode_direct
10866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10867 # resulting binary.
10868 hardcode_minus_L=$hardcode_minus_L
10870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10871 # the resulting binary.
10872 hardcode_shlibpath_var=$hardcode_shlibpath_var
10874 # Set to yes if building a shared library automatically hardcodes DIR into the library
10875 # and all subsequent libraries and executables linked against it.
10876 hardcode_automatic=$hardcode_automatic
10878 # Variables whose values should be saved in libtool wrapper scripts and
10879 # restored at relink time.
10880 variables_saved_for_relink="$variables_saved_for_relink"
10882 # Whether libtool must link a program against all its dependency libraries.
10883 link_all_deplibs=$link_all_deplibs
10885 # Compile-time system search path for libraries
10886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10888 # Run-time system search path for libraries
10889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10891 # Fix the shell variable \$srcfile for the compiler.
10892 fix_srcfile_path="$fix_srcfile_path"
10894 # Set to yes if exported symbols are required.
10895 always_export_symbols=$always_export_symbols
10897 # The commands to list exported symbols.
10898 export_symbols_cmds=$lt_export_symbols_cmds
10900 # The commands to extract the exported symbol list from a shared archive.
10901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10903 # Symbols that should not be listed in the preloaded symbols.
10904 exclude_expsyms=$lt_exclude_expsyms
10906 # Symbols that must always be exported.
10907 include_expsyms=$lt_include_expsyms
10909 # ### END LIBTOOL CONFIG
10916 cat <<\EOF >> "$cfgfile"
10918 # AIX sometimes has problems with the GCC collect2 program. For some
10919 # reason, if we set the COLLECT_NAMES environment variable, the problems
10920 # vanish in a puff of smoke.
10921 if test "X${COLLECT_NAMES+set}" != Xset; then
10923 export COLLECT_NAMES
10929 # We use sed instead of cat because bash on DJGPP gets confused if
10930 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10931 # text mode, it properly converts lines to CR/LF. This bash problem
10932 # is reportedly fixed, but why not run on old versions too?
10933 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10935 mv -f "$cfgfile" "$ofile" || \
10936 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10940 # If there is no Makefile yet, we rely on a make rule to execute
10941 # `config.status --recheck' to rerun these tests and create the
10942 # libtool script then.
10943 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10944 if test -f "$ltmain_in"; then
10945 test -f Makefile && make "$ltmain"
10951 ac_cpp='$CPP $CPPFLAGS'
10952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10959 # Check whether --with-tags or --without-tags was given.
10960 if test "${with_tags+set}" = set; then
10961 withval="$with_tags"
10962 tagnames="$withval"
10965 if test -f "$ltmain" && test -n "$tagnames"; then
10966 if test ! -f "${ofile}"; then
10967 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10968 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10971 if test -z "$LTCC"; then
10972 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10973 if test -z "$LTCC"; then
10974 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10975 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10978 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10982 # Extract list of available tagged configurations in $ofile.
10983 # Note that this assumes the entire list is on one line.
10984 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10987 for tagname in $tagnames; do
10989 # Check whether tagname contains only valid characters
10990 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10992 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10993 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10994 { (exit 1); exit 1; }; }
10998 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11000 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11001 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11002 { (exit 1); exit 1; }; }
11005 # Update the list of available tags.
11006 if test -n "$tagname"; then
11007 echo appending configuration tag \"$tagname\" to $ofile
11011 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11012 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11013 (test "X$CXX" != "Xg++"))) ; then
11021 if test -n "$F77" && test "X$F77" != "Xno"; then
11029 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11040 # Source file extension for RC test sources.
11043 # Object file extension for compiled RC test sources.
11047 # Code to be used in simple compile tests
11048 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11050 # Code to be used in simple link tests
11051 lt_simple_link_test_code="$lt_simple_compile_test_code"
11053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11055 # If no C compiler was specified, use CC.
11058 # Allow CC to be a program name with arguments.
11062 # save warnings/boilerplate of simple test code
11063 ac_outfile=conftest.$ac_objext
11064 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11066 _lt_compiler_boilerplate=`cat conftest.err`
11069 ac_outfile=conftest.$ac_objext
11070 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11072 _lt_linker_boilerplate=`cat conftest.err`
11076 # Allow CC to be a program name with arguments.
11081 for cc_temp in $compiler""; do
11083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11091 lt_cv_prog_compiler_c_o_RC=yes
11093 # The else clause should only fire when bootstrapping the
11094 # libtool distribution, otherwise you forgot to ship ltmain.sh
11095 # with your package, and you will get complaints that there are
11096 # no rules to generate ltmain.sh.
11097 if test -f "$ltmain"; then
11098 # See if we are running on zsh, and set the options which allow our commands through
11099 # without removal of \ escapes.
11100 if test -n "${ZSH_VERSION+set}" ; then
11101 setopt NO_GLOB_SUBST
11103 # Now quote all the things that may contain metacharacters while being
11104 # careful not to overquote the AC_SUBSTed values. We take copies of the
11105 # variables and quote the copies for generation of the libtool script.
11106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11110 deplibs_check_method reload_flag reload_cmds need_locks \
11111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11112 lt_cv_sys_global_symbol_to_c_name_address \
11113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11114 old_postinstall_cmds old_postuninstall_cmds \
11118 lt_prog_compiler_wl_RC \
11119 lt_prog_compiler_pic_RC \
11120 lt_prog_compiler_static_RC \
11121 lt_prog_compiler_no_builtin_flag_RC \
11122 export_dynamic_flag_spec_RC \
11123 thread_safe_flag_spec_RC \
11124 whole_archive_flag_spec_RC \
11125 enable_shared_with_static_runtimes_RC \
11126 old_archive_cmds_RC \
11127 old_archive_from_new_cmds_RC \
11128 predep_objects_RC \
11129 postdep_objects_RC \
11132 compiler_lib_search_path_RC \
11134 archive_expsym_cmds_RC \
11135 postinstall_cmds_RC \
11136 postuninstall_cmds_RC \
11137 old_archive_from_expsyms_cmds_RC \
11138 allow_undefined_flag_RC \
11139 no_undefined_flag_RC \
11140 export_symbols_cmds_RC \
11141 hardcode_libdir_flag_spec_RC \
11142 hardcode_libdir_flag_spec_ld_RC \
11143 hardcode_libdir_separator_RC \
11144 hardcode_automatic_RC \
11146 module_expsym_cmds_RC \
11147 lt_cv_prog_compiler_c_o_RC \
11148 exclude_expsyms_RC \
11149 include_expsyms_RC; do
11152 old_archive_cmds_RC | \
11153 old_archive_from_new_cmds_RC | \
11154 archive_cmds_RC | \
11155 archive_expsym_cmds_RC | \
11157 module_expsym_cmds_RC | \
11158 old_archive_from_expsyms_cmds_RC | \
11159 export_symbols_cmds_RC | \
11160 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11161 postinstall_cmds | postuninstall_cmds | \
11162 old_postinstall_cmds | old_postuninstall_cmds | \
11163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11164 # Double-quote double-evaled strings.
11165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11174 *'\$0 --fallback-echo"')
11175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11181 cat <<__EOF__ >> "$cfgfile"
11182 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11184 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11186 # Shell to use when invoking shell scripts.
11189 # Whether or not to build shared libraries.
11190 build_libtool_libs=$enable_shared
11192 # Whether or not to build static libraries.
11193 build_old_libs=$enable_static
11195 # Whether or not to add -lc for building shared libraries.
11196 build_libtool_need_lc=$archive_cmds_need_lc_RC
11198 # Whether or not to disallow shared libs when runtime libs are static
11199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11201 # Whether or not to optimize for fast installation.
11202 fast_install=$enable_fast_install
11205 host_alias=$host_alias
11209 # The build system.
11210 build_alias=$build_alias
11214 # An echo program that does not interpret backslashes.
11219 AR_FLAGS=$lt_AR_FLAGS
11224 # A language-specific compiler.
11227 # Is the compiler the GNU C compiler?
11233 # The linker used to build libraries.
11236 # Whether we need hard or soft links.
11239 # A BSD-compatible nm program.
11242 # A symbol stripping program
11245 # Used to examine libraries when file_magic_cmd begins "file"
11246 MAGIC_CMD=$MAGIC_CMD
11248 # Used on cygwin: DLL creation program.
11251 # Used on cygwin: object dumper.
11254 # Used on cygwin: assembler.
11257 # The name of the directory that contains temporary libtool files.
11260 # How to create reloadable object files.
11261 reload_flag=$lt_reload_flag
11262 reload_cmds=$lt_reload_cmds
11264 # How to pass a linker flag through the compiler.
11265 wl=$lt_lt_prog_compiler_wl_RC
11267 # Object file suffix (normally "o").
11268 objext="$ac_objext"
11270 # Old archive suffix (normally "a").
11273 # Shared library suffix (normally ".so").
11274 shrext_cmds='$shrext_cmds'
11276 # Executable file suffix (normally "").
11279 # Additional compiler flags for building library objects.
11280 pic_flag=$lt_lt_prog_compiler_pic_RC
11283 # What is the maximum length of a command?
11284 max_cmd_len=$lt_cv_sys_max_cmd_len
11286 # Does compiler simultaneously support -c and -o options?
11287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11289 # Must we lock files when doing compilation?
11290 need_locks=$lt_need_locks
11292 # Do we need the lib prefix for modules?
11293 need_lib_prefix=$need_lib_prefix
11295 # Do we need a version for libraries?
11296 need_version=$need_version
11298 # Whether dlopen is supported.
11299 dlopen_support=$enable_dlopen
11301 # Whether dlopen of programs is supported.
11302 dlopen_self=$enable_dlopen_self
11304 # Whether dlopen of statically linked programs is supported.
11305 dlopen_self_static=$enable_dlopen_self_static
11307 # Compiler flag to prevent dynamic linking.
11308 link_static_flag=$lt_lt_prog_compiler_static_RC
11310 # Compiler flag to turn off builtin functions.
11311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11313 # Compiler flag to allow reflexive dlopens.
11314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11316 # Compiler flag to generate shared objects directly from archives.
11317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11319 # Compiler flag to generate thread-safe objects.
11320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11322 # Library versioning type.
11323 version_type=$version_type
11325 # Format of library name prefix.
11326 libname_spec=$lt_libname_spec
11328 # List of archive names. First name is the real one, the rest are links.
11329 # The last name is the one that the linker finds with -lNAME.
11330 library_names_spec=$lt_library_names_spec
11332 # The coded name of the library, if different from the real name.
11333 soname_spec=$lt_soname_spec
11335 # Commands used to build and install an old-style archive.
11337 old_archive_cmds=$lt_old_archive_cmds_RC
11338 old_postinstall_cmds=$lt_old_postinstall_cmds
11339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11341 # Create an old-style archive from a shared archive.
11342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11344 # Create a temporary old-style archive to link instead of a shared archive.
11345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11347 # Commands used to build and install a shared archive.
11348 archive_cmds=$lt_archive_cmds_RC
11349 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11350 postinstall_cmds=$lt_postinstall_cmds
11351 postuninstall_cmds=$lt_postuninstall_cmds
11353 # Commands used to build a loadable module (assumed same as above if empty)
11354 module_cmds=$lt_module_cmds_RC
11355 module_expsym_cmds=$lt_module_expsym_cmds_RC
11357 # Commands to strip libraries.
11358 old_striplib=$lt_old_striplib
11359 striplib=$lt_striplib
11361 # Dependencies to place before the objects being linked to create a
11363 predep_objects=$lt_predep_objects_RC
11365 # Dependencies to place after the objects being linked to create a
11367 postdep_objects=$lt_postdep_objects_RC
11369 # Dependencies to place before the objects being linked to create a
11371 predeps=$lt_predeps_RC
11373 # Dependencies to place after the objects being linked to create a
11375 postdeps=$lt_postdeps_RC
11377 # The library search path used internally by the compiler when linking
11378 # a shared library.
11379 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11381 # Method to check whether dependent libraries are shared objects.
11382 deplibs_check_method=$lt_deplibs_check_method
11384 # Command to use when deplibs_check_method == file_magic.
11385 file_magic_cmd=$lt_file_magic_cmd
11387 # Flag that allows shared libraries with undefined symbols to be built.
11388 allow_undefined_flag=$lt_allow_undefined_flag_RC
11390 # Flag that forces no undefined symbols.
11391 no_undefined_flag=$lt_no_undefined_flag_RC
11393 # Commands used to finish a libtool library installation in a directory.
11394 finish_cmds=$lt_finish_cmds
11396 # Same as above, but a single script fragment to be evaled but not shown.
11397 finish_eval=$lt_finish_eval
11399 # Take the output of nm and produce a listing of raw symbols and C names.
11400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11402 # Transform the output of nm in a proper C declaration
11403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11405 # Transform the output of nm in a C name address pair
11406 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11408 # This is the shared library runtime path variable.
11409 runpath_var=$runpath_var
11411 # This is the shared library path variable.
11412 shlibpath_var=$shlibpath_var
11414 # Is shlibpath searched before the hard-coded library search path?
11415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11417 # How to hardcode a shared library path into an executable.
11418 hardcode_action=$hardcode_action_RC
11420 # Whether we should hardcode library paths into libraries.
11421 hardcode_into_libs=$hardcode_into_libs
11423 # Flag to hardcode \$libdir into a binary during linking.
11424 # This must work even if \$libdir does not exist.
11425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11427 # If ld is used when linking, flag to hardcode \$libdir into
11428 # a binary during linking. This must work even if \$libdir does
11430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11432 # Whether we need a single -rpath flag with a separated argument.
11433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11435 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11436 # resulting binary.
11437 hardcode_direct=$hardcode_direct_RC
11439 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11440 # resulting binary.
11441 hardcode_minus_L=$hardcode_minus_L_RC
11443 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11444 # the resulting binary.
11445 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11447 # Set to yes if building a shared library automatically hardcodes DIR into the library
11448 # and all subsequent libraries and executables linked against it.
11449 hardcode_automatic=$hardcode_automatic_RC
11451 # Variables whose values should be saved in libtool wrapper scripts and
11452 # restored at relink time.
11453 variables_saved_for_relink="$variables_saved_for_relink"
11455 # Whether libtool must link a program against all its dependency libraries.
11456 link_all_deplibs=$link_all_deplibs_RC
11458 # Compile-time system search path for libraries
11459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11461 # Run-time system search path for libraries
11462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11464 # Fix the shell variable \$srcfile for the compiler.
11465 fix_srcfile_path="$fix_srcfile_path_RC"
11467 # Set to yes if exported symbols are required.
11468 always_export_symbols=$always_export_symbols_RC
11470 # The commands to list exported symbols.
11471 export_symbols_cmds=$lt_export_symbols_cmds_RC
11473 # The commands to extract the exported symbol list from a shared archive.
11474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11476 # Symbols that should not be listed in the preloaded symbols.
11477 exclude_expsyms=$lt_exclude_expsyms_RC
11479 # Symbols that must always be exported.
11480 include_expsyms=$lt_include_expsyms_RC
11482 # ### END LIBTOOL TAG CONFIG: $tagname
11488 # If there is no Makefile yet, we rely on a make rule to execute
11489 # `config.status --recheck' to rerun these tests and create the
11490 # libtool script then.
11491 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11492 if test -f "$ltmain_in"; then
11493 test -f Makefile && make "$ltmain"
11499 ac_cpp='$CPP $CPPFLAGS'
11500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11510 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11511 { (exit 1); exit 1; }; }
11515 # Append the new tag name to the list of available tags.
11516 if test -n "$tagname" ; then
11517 available_tags="$available_tags $tagname"
11523 # Now substitute the updated list of available tags.
11524 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11525 mv "${ofile}T" "$ofile"
11529 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11530 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11531 { (exit 1); exit 1; }; }
11537 # This can be used to rebuild libtool when needed
11538 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11540 # Always use our own libtool.
11541 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11543 # Prevent multiple expansion
11555 if test $ol_enable_perl != no ; then
11556 # Extract the first word of "perl", so it can be a program name with args.
11557 set dummy perl; ac_word=$2
11558 echo "$as_me:$LINENO: checking for $ac_word" >&5
11559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11560 if test "${ac_cv_path_PERLBIN+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11586 PERLBIN=$ac_cv_path_PERLBIN
11588 if test -n "$PERLBIN"; then
11589 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11590 echo "${ECHO_T}$PERLBIN" >&6
11592 echo "$as_me:$LINENO: result: no" >&5
11593 echo "${ECHO_T}no" >&6
11597 if test "no$PERLBIN" = "no" ; then
11598 if test $ol_enable_perl = yes ; then
11599 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11600 echo "$as_me: error: could not locate perl" >&2;}
11601 { (exit 1); exit 1; }; }
11605 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11606 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11608 if test x"$ol_enable_perl" = "xyes" ; then
11609 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11611 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11618 ac_cpp='$CPP $CPPFLAGS'
11619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11622 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11623 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11624 # On Suns, sometimes $CPP names a directory.
11625 if test -n "$CPP" && test -d "$CPP"; then
11628 if test -z "$CPP"; then
11629 if test "${ac_cv_prog_CPP+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 # Double quotes because CPP needs to be expanded
11633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11635 ac_preproc_ok=false
11636 for ac_c_preproc_warn_flag in '' yes
11638 # Use a header file that comes with gcc, so configuring glibc
11639 # with a fresh cross-compiler works.
11640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641 # <limits.h> exists even on freestanding compilers.
11642 # On the NeXT, cc -E runs the code through the compiler's parser,
11643 # not just through cpp. "Syntax error" is here to catch this case.
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11651 # include <limits.h>
11653 # include <assert.h>
11657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } >/dev/null; then
11665 if test -s conftest.err; then
11666 ac_cpp_err=$ac_c_preproc_warn_flag
11667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11674 if test -z "$ac_cpp_err"; then
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 # Broken: fails on valid input.
11683 rm -f conftest.err conftest.$ac_ext
11685 # OK, works on sane cases. Now check whether non-existent headers
11686 # can be detected and how.
11687 cat >conftest.$ac_ext <<_ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 #include <ac_nonexistent.h>
11695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } >/dev/null; then
11703 if test -s conftest.err; then
11704 ac_cpp_err=$ac_c_preproc_warn_flag
11705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11712 if test -z "$ac_cpp_err"; then
11713 # Broken: success on invalid input.
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 # Passes both tests.
11723 rm -f conftest.err conftest.$ac_ext
11726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11727 rm -f conftest.err conftest.$ac_ext
11728 if $ac_preproc_ok; then
11733 ac_cv_prog_CPP=$CPP
11736 CPP=$ac_cv_prog_CPP
11738 ac_cv_prog_CPP=$CPP
11740 echo "$as_me:$LINENO: result: $CPP" >&5
11741 echo "${ECHO_T}$CPP" >&6
11742 ac_preproc_ok=false
11743 for ac_c_preproc_warn_flag in '' yes
11745 # Use a header file that comes with gcc, so configuring glibc
11746 # with a fresh cross-compiler works.
11747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11748 # <limits.h> exists even on freestanding compilers.
11749 # On the NeXT, cc -E runs the code through the compiler's parser,
11750 # not just through cpp. "Syntax error" is here to catch this case.
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11758 # include <limits.h>
11760 # include <assert.h>
11764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } >/dev/null; then
11772 if test -s conftest.err; then
11773 ac_cpp_err=$ac_c_preproc_warn_flag
11774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11781 if test -z "$ac_cpp_err"; then
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 # Broken: fails on valid input.
11790 rm -f conftest.err conftest.$ac_ext
11792 # OK, works on sane cases. Now check whether non-existent headers
11793 # can be detected and how.
11794 cat >conftest.$ac_ext <<_ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h. */
11800 #include <ac_nonexistent.h>
11802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11805 grep -v '^ *+' conftest.er1 >conftest.err
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } >/dev/null; then
11810 if test -s conftest.err; then
11811 ac_cpp_err=$ac_c_preproc_warn_flag
11812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11819 if test -z "$ac_cpp_err"; then
11820 # Broken: success on invalid input.
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 # Passes both tests.
11830 rm -f conftest.err conftest.$ac_ext
11833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11834 rm -f conftest.err conftest.$ac_ext
11835 if $ac_preproc_ok; then
11838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11839 See \`config.log' for more details." >&5
11840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11841 See \`config.log' for more details." >&2;}
11842 { (exit 1); exit 1; }; }
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11853 *mingw32* ) ac_cv_mingw32=yes ;;
11854 *cygwin* ) ac_cv_cygwin=yes ;;
11860 cat >>confdefs.h <<_ACEOF
11861 #define EXEEXT "${EXEEXT}"
11865 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11866 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11867 if test "${ac_cv_lib_be_be_app+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-lbe -lroot -lnet $LIBS"
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11879 /* Override any gcc2 internal prototype to avoid an error. */
11883 /* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_cv_lib_be_be_app=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_cv_lib_be_be_app=no
11923 rm -f conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11928 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11929 if test $ac_cv_lib_be_be_app = yes; then
11930 LIBS="$LIBS -lbe -lroot -lnet"
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11941 if test -n "$ac_tool_prefix"; then
11942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11944 echo "$as_me:$LINENO: checking for $ac_word" >&5
11945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11946 if test "${ac_cv_prog_CC+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 if test -n "$CC"; then
11950 ac_cv_prog_CC="$CC" # Let the user override the test.
11952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953 for as_dir in $PATH
11956 test -z "$as_dir" && as_dir=.
11957 for ac_exec_ext in '' $ac_executable_extensions; do
11958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 if test -n "$CC"; then
11970 echo "$as_me:$LINENO: result: $CC" >&5
11971 echo "${ECHO_T}$CC" >&6
11973 echo "$as_me:$LINENO: result: no" >&5
11974 echo "${ECHO_T}no" >&6
11978 if test -z "$ac_cv_prog_CC"; then
11980 # Extract the first word of "gcc", so it can be a program name with args.
11981 set dummy gcc; ac_word=$2
11982 echo "$as_me:$LINENO: checking for $ac_word" >&5
11983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 if test -n "$ac_ct_CC"; then
11988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_prog_ac_ct_CC="gcc"
11998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12007 if test -n "$ac_ct_CC"; then
12008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12009 echo "${ECHO_T}$ac_ct_CC" >&6
12011 echo "$as_me:$LINENO: result: no" >&5
12012 echo "${ECHO_T}no" >&6
12017 CC="$ac_cv_prog_CC"
12020 if test -z "$CC"; then
12021 if test -n "$ac_tool_prefix"; then
12022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12023 set dummy ${ac_tool_prefix}cc; ac_word=$2
12024 echo "$as_me:$LINENO: checking for $ac_word" >&5
12025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12026 if test "${ac_cv_prog_CC+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 if test -n "$CC"; then
12030 ac_cv_prog_CC="$CC" # Let the user override the test.
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12039 ac_cv_prog_CC="${ac_tool_prefix}cc"
12040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 if test -n "$CC"; then
12050 echo "$as_me:$LINENO: result: $CC" >&5
12051 echo "${ECHO_T}$CC" >&6
12053 echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6
12058 if test -z "$ac_cv_prog_CC"; then
12060 # Extract the first word of "cc", so it can be a program name with args.
12061 set dummy cc; ac_word=$2
12062 echo "$as_me:$LINENO: checking for $ac_word" >&5
12063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 if test -n "$ac_ct_CC"; then
12068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 ac_cv_prog_ac_ct_CC="cc"
12078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12087 if test -n "$ac_ct_CC"; then
12088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12089 echo "${ECHO_T}$ac_ct_CC" >&6
12091 echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12097 CC="$ac_cv_prog_CC"
12101 if test -z "$CC"; then
12102 # Extract the first word of "cc", so it can be a program name with args.
12103 set dummy cc; ac_word=$2
12104 echo "$as_me:$LINENO: checking for $ac_word" >&5
12105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12106 if test "${ac_cv_prog_CC+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 if test -n "$CC"; then
12110 ac_cv_prog_CC="$CC" # Let the user override the test.
12112 ac_prog_rejected=no
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12121 ac_prog_rejected=yes
12125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 if test $ac_prog_rejected = yes; then
12132 # We found a bogon in the path, so make sure we never use it.
12133 set dummy $ac_cv_prog_CC
12135 if test $# != 0; then
12136 # We chose a different compiler from the bogus one.
12137 # However, it has the same basename, so the bogon will be chosen
12138 # first if we set CC to just the basename; use the full file name.
12140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12146 if test -n "$CC"; then
12147 echo "$as_me:$LINENO: result: $CC" >&5
12148 echo "${ECHO_T}$CC" >&6
12150 echo "$as_me:$LINENO: result: no" >&5
12151 echo "${ECHO_T}no" >&6
12155 if test -z "$CC"; then
12156 if test -n "$ac_tool_prefix"; then
12159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12161 echo "$as_me:$LINENO: checking for $ac_word" >&5
12162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12163 if test "${ac_cv_prog_CC+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 if test -n "$CC"; then
12167 ac_cv_prog_CC="$CC" # Let the user override the test.
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 if test -n "$CC"; then
12187 echo "$as_me:$LINENO: result: $CC" >&5
12188 echo "${ECHO_T}$CC" >&6
12190 echo "$as_me:$LINENO: result: no" >&5
12191 echo "${ECHO_T}no" >&6
12194 test -n "$CC" && break
12197 if test -z "$CC"; then
12201 # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 echo "$as_me:$LINENO: checking for $ac_word" >&5
12204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 if test -n "$ac_ct_CC"; then
12209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_ac_ct_CC="$ac_prog"
12219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12228 if test -n "$ac_ct_CC"; then
12229 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12230 echo "${ECHO_T}$ac_ct_CC" >&6
12232 echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6
12236 test -n "$ac_ct_CC" && break
12245 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12246 See \`config.log' for more details." >&5
12247 echo "$as_me: error: no acceptable C compiler found in \$PATH
12248 See \`config.log' for more details." >&2;}
12249 { (exit 1); exit 1; }; }
12251 # Provide some information about the compiler.
12252 echo "$as_me:$LINENO:" \
12253 "checking for C compiler version" >&5
12254 ac_compiler=`set X $ac_compile; echo $2`
12255 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12256 (eval $ac_compiler --version </dev/null >&5) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }
12260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12261 (eval $ac_compiler -v </dev/null >&5) 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }
12265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12266 (eval $ac_compiler -V </dev/null >&5) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }
12271 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12272 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12273 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 cat >conftest.$ac_ext <<_ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296 (eval $ac_compile) 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag"
12304 || test ! -s conftest.err'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest.$ac_objext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_compiler_gnu=yes
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12327 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12328 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12329 GCC=`test $ac_compiler_gnu = yes && echo yes`
12330 ac_test_CFLAGS=${CFLAGS+set}
12331 ac_save_CFLAGS=$CFLAGS
12333 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12334 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12335 if test "${ac_cv_prog_cc_g+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_cv_prog_cc_g=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12386 if test "$ac_test_CFLAGS" = set; then
12387 CFLAGS=$ac_save_CFLAGS
12388 elif test $ac_cv_prog_cc_g = yes; then
12389 if test "$GCC" = yes; then
12395 if test "$GCC" = yes; then
12401 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12402 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12403 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 ac_cv_prog_cc_stdc=no
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 #include <stdarg.h>
12416 #include <sys/types.h>
12417 #include <sys/stat.h>
12418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12419 struct buf { int x; };
12420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12421 static char *e (p, i)
12427 static char *f (char * (*g) (char **, int), char **p, ...)
12432 s = g (p, va_arg (v,int));
12437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12438 function prototypes and stuff, but not '\xHH' hex character constants.
12439 These don't provoke an error unfortunately, instead are silently treated
12440 as 'x'. The following induces an error, until -std1 is added to get
12441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12442 array size at least. It's necessary to write '\x00'==0 to get something
12443 that's true only with -std1. */
12444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12446 int test (int i, double x);
12447 struct s1 {int (*f) (int a);};
12448 struct s2 {int (*f) (double a);};
12449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12460 # Don't try gcc -ansi; that turns off useful extensions and
12461 # breaks some systems' header files.
12462 # AIX -qlanglvl=ansi
12463 # Ultrix and OSF/1 -std1
12464 # HP-UX 10.20 and later -Ae
12465 # HP-UX older versions -Aa -D_HPUX_SOURCE
12466 # SVR4 -Xc -D__EXTENSIONS__
12467 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12469 CC="$ac_save_CC $ac_arg"
12470 rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472 (eval $ac_compile) 2>conftest.er1
12474 grep -v '^ *+' conftest.er1 >conftest.err
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
12479 { ac_try='test -z "$ac_c_werror_flag"
12480 || test ! -s conftest.err'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest.$ac_objext'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_prog_cc_stdc=$ac_arg
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12499 rm -f conftest.err conftest.$ac_objext
12501 rm -f conftest.$ac_ext conftest.$ac_objext
12506 case "x$ac_cv_prog_cc_stdc" in
12508 echo "$as_me:$LINENO: result: none needed" >&5
12509 echo "${ECHO_T}none needed" >&6 ;;
12511 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12512 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12513 CC="$CC $ac_cv_prog_cc_stdc" ;;
12516 # Some people use a C++ compiler to compile C. Since we use `exit',
12517 # in C++ we need to declare it. In case someone uses the same compiler
12518 # for both compiling C and C++ we need to have the C++ compiler decide
12519 # the declaration of exit, since it's the most demanding environment.
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #ifndef __cplusplus
12525 rm -f conftest.$ac_objext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527 (eval $ac_compile) 2>conftest.er1
12529 grep -v '^ *+' conftest.er1 >conftest.err
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try='test -z "$ac_c_werror_flag"
12535 || test ! -s conftest.err'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 for ac_declaration in \
12549 'extern "C" void std::exit (int) throw (); using std::exit;' \
12550 'extern "C" void std::exit (int); using std::exit;' \
12551 'extern "C" void exit (int) throw ();' \
12552 'extern "C" void exit (int);' \
12555 cat >conftest.$ac_ext <<_ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12562 #include <stdlib.h>
12571 rm -f conftest.$ac_objext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573 (eval $ac_compile) 2>conftest.er1
12575 grep -v '^ *+' conftest.er1 >conftest.err
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -z "$ac_c_werror_flag"
12581 || test ! -s conftest.err'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647 if test -n "$ac_declaration"; then
12648 echo '#ifdef __cplusplus' >>confdefs.h
12649 echo $ac_declaration >>confdefs.h
12650 echo '#endif' >>confdefs.h
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660 ac_cpp='$CPP $CPPFLAGS'
12661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12665 depcc="$CC" am_compiler_list=
12667 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12668 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12669 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12673 # We make a subdir and do the tests there. Otherwise we can end up
12674 # making bogus files that we don't know about and never remove. For
12675 # instance it was reported that on HP-UX the gcc test will end up
12676 # making a dummy file named `D' -- because `-MD' means `put the output
12679 # Copy depcomp to subdir because otherwise we won't find it if we're
12680 # using a relative directory.
12681 cp "$am_depcomp" conftest.dir
12683 # We will build objects and dependencies in a subdirectory because
12684 # it helps to detect inapplicable dependency modes. For instance
12685 # both Tru64's cc and ICC support -MD to output dependencies as a
12686 # side effect of compilation, but ICC will put the dependencies in
12687 # the current directory while Tru64 will put them in the object
12691 am_cv_CC_dependencies_compiler_type=none
12692 if test "$am_compiler_list" = ""; then
12693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12695 for depmode in $am_compiler_list; do
12696 # Setup a source with many dependencies, because some compilers
12697 # like to wrap large dependency lists on column 80 (with \), and
12698 # we should not choose a depcomp mode which is confused by this.
12700 # We need to recreate these files for each test, as the compiler may
12701 # overwrite some of them when testing with obscure command lines.
12702 # This happens at least with the AIX C compiler.
12704 for i in 1 2 3 4 5 6; do
12705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12707 # Solaris 8's {/usr,}/bin/sh.
12708 touch sub/conftst$i.h
12710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12714 # after this tag, mechanisms are not by side-effect, so they'll
12715 # only be used when explicitly requested
12716 if test "x$enable_dependency_tracking" = xyes; then
12724 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12725 # mode. It turns out that the SunPro C++ compiler does not properly
12726 # handle `-M -o', and we need to detect this.
12727 if depmode=$depmode \
12728 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12730 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12731 >/dev/null 2>conftest.err &&
12732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12733 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12735 # icc doesn't choke on unknown options, it will just issue warnings
12736 # or remarks (even with -Werror). So we grep stderr for any message
12737 # that says an option was ignored or not supported.
12738 # When given -MP, icc 7.0 and 7.1 complain thusly:
12739 # icc: Command line warning: ignoring option '-M'; no argument required
12740 # The diagnosis changed in icc 8.0:
12741 # icc: Command line remark: option '-MP' not supported
12742 if (grep 'ignoring option' conftest.err ||
12743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12744 am_cv_CC_dependencies_compiler_type=$depmode
12751 rm -rf conftest.dir
12753 am_cv_CC_dependencies_compiler_type=none
12757 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12758 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12764 test "x$enable_dependency_tracking" != xno \
12765 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12766 am__fastdepCC_TRUE=
12767 am__fastdepCC_FALSE='#'
12769 am__fastdepCC_TRUE='#'
12770 am__fastdepCC_FALSE=
12774 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12775 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12776 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12777 { (exit 1); exit 1; }; }
12780 # test for make depend flag
12783 if test -z "${MKDEP}"; then
12784 OL_MKDEP="${CC-cc}"
12785 if test -z "${MKDEP_FLAGS}"; then
12786 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12787 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12788 if test "${ol_cv_mkdep+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 for flag in "-M" "-xM"; do
12794 cat > conftest.c <<EOF
12797 if { ac_try='$OL_MKDEP $flag conftest.c'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } \
12803 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12805 if test ! -f conftest."${ac_object}" ; then
12807 OL_MKDEP_FLAGS="$flag"
12815 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12816 echo "${ECHO_T}$ol_cv_mkdep" >&6
12819 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12823 OL_MKDEP="${MKDEP}"
12824 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12829 if test "${ol_cv_mkdep}" = no ; then
12830 # this will soon become an error
12831 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12832 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12835 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12836 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12837 if test "${ac_cv_lib_s_afopen+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 ac_check_lib_save_LIBS=$LIBS
12842 cat >conftest.$ac_ext <<_ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12849 /* Override any gcc2 internal prototype to avoid an error. */
12853 /* We use char because int might match the return type of a gcc2
12854 builtin and then its argument prototype would still apply. */
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866 (eval $ac_link) 2>conftest.er1
12868 grep -v '^ *+' conftest.er1 >conftest.err
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag"
12874 || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest$ac_exeext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_lib_s_afopen=yes
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12891 ac_cv_lib_s_afopen=no
12893 rm -f conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12897 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12898 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12899 if test $ac_cv_lib_s_afopen = yes; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_AIX_SECURITY 1
12913 ac_cv_func_getopt=no
12915 cat >>confdefs.h <<\_ACEOF
12916 #define BOTH_STRINGS_H 1
12923 WITH_MODULES_ENABLED=no
12924 if test $ol_enable_modules != no ; then
12926 for ac_header in ltdl.h
12928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930 echo "$as_me:$LINENO: checking for $ac_header" >&5
12931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12938 # Is the header compilable?
12939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 $ac_includes_default
12948 #include <$ac_header>
12950 rm -f conftest.$ac_objext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952 (eval $ac_compile) 2>conftest.er1
12954 grep -v '^ *+' conftest.er1 >conftest.err
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try='test -z "$ac_c_werror_flag"
12960 || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest.$ac_objext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 ac_header_compiler=yes
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12977 ac_header_compiler=no
12979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12981 echo "${ECHO_T}$ac_header_compiler" >&6
12983 # Is the header present?
12984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12986 cat >conftest.$ac_ext <<_ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12992 #include <$ac_header>
12994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } >/dev/null; then
13002 if test -s conftest.err; then
13003 ac_cpp_err=$ac_c_preproc_warn_flag
13004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13011 if test -z "$ac_cpp_err"; then
13012 ac_header_preproc=yes
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ac_header_preproc=no
13019 rm -f conftest.err conftest.$ac_ext
13020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13021 echo "${ECHO_T}$ac_header_preproc" >&6
13023 # So? What about this header?
13024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13030 ac_header_preproc=yes
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13047 ## ------------------------------------------ ##
13048 ## Report this to the AC_PACKAGE_NAME lists. ##
13049 ## ------------------------------------------ ##
13052 sed "s/^/$as_me: WARNING: /" >&2
13055 echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 eval "$as_ac_Header=\$ac_header_preproc"
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13067 cat >>confdefs.h <<_ACEOF
13068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13076 if test $ac_cv_header_ltdl_h = no ; then
13077 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13078 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13079 { (exit 1); exit 1; }; }
13082 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13083 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13084 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 ac_check_lib_save_LIBS=$LIBS
13088 LIBS="-lltdl $LIBS"
13089 cat >conftest.$ac_ext <<_ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13096 /* Override any gcc2 internal prototype to avoid an error. */
13100 /* We use char because int might match the return type of a gcc2
13101 builtin and then its argument prototype would still apply. */
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag"
13121 || test ! -s conftest.err'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_cv_lib_ltdl_lt_dlinit=yes
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_cv_lib_ltdl_lt_dlinit=no
13140 rm -f conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13142 LIBS=$ac_check_lib_save_LIBS
13144 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13145 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13146 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13148 MODULES_LIBS=-lltdl
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_LIBLTDL 1
13158 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13159 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13160 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13161 { (exit 1); exit 1; }; }
13163 ol_link_modules=yes
13164 WITH_MODULES_ENABLED=yes
13167 for i in $Backends; do
13168 eval "ol_tmp=\$ol_enable_$i"
13169 if test $ol_tmp = mod ; then
13170 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13171 echo "$as_me: WARNING: building static $i backend" >&2;}
13172 eval "ol_enable_$i=yes"
13175 for i in $Overlays; do
13176 eval "ol_tmp=\$ol_enable_$i"
13177 if test $ol_tmp = mod ; then
13178 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13179 echo "$as_me: WARNING: building static $i overlay" >&2;}
13180 eval "ol_enable_$i=yes"
13186 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13187 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13188 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13200 #include <__ASCII__/generate_error.h>
13204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } >/dev/null; then
13212 if test -s conftest.err; then
13213 ac_cpp_err=$ac_c_preproc_warn_flag
13214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13221 if test -z "$ac_cpp_err"; then
13222 ol_cv_cpp_ebcdic=yes
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 ol_cv_cpp_ebcdic=no
13229 rm -f conftest.err conftest.$ac_ext
13231 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13232 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13233 if test $ol_cv_cpp_ebcdic = yes ; then
13235 cat >>confdefs.h <<\_ACEOF
13236 #define HAVE_EBCDIC 1
13241 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13242 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13243 if test "${ol_cv_header_stdc+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 #include <stdlib.h>
13253 #include <stdarg.h>
13254 #include <string.h>
13257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13260 grep -v '^ *+' conftest.er1 >conftest.err
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } >/dev/null; then
13265 if test -s conftest.err; then
13266 ac_cpp_err=$ac_c_preproc_warn_flag
13267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13274 if test -z "$ac_cpp_err"; then
13275 ol_cv_header_stdc=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ol_cv_header_stdc=no
13282 rm -f conftest.err conftest.$ac_ext
13284 if test $ol_cv_header_stdc = yes; then
13285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13286 cat >conftest.$ac_ext <<_ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 #include <string.h>
13295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13296 $EGREP "memchr" >/dev/null 2>&1; then
13299 ol_cv_header_stdc=no
13305 if test $ol_cv_header_stdc = yes; then
13306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <stdlib.h>
13316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13317 $EGREP "free" >/dev/null 2>&1; then
13320 ol_cv_header_stdc=no
13326 if test $ol_cv_header_stdc = yes; then
13327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13328 if test "$cross_compiling" = yes; then
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13338 #ifndef HAVE_EBCDIC
13339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13342 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13343 || ('j' <= (c) && (c) <= 'r') \
13344 || ('s' <= (c) && (c) <= 'z'))
13345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13348 int main () { int i; for (i = 0; i < 256; i++)
13349 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13353 rm -f conftest$ac_exeext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13355 (eval $ac_link) 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13366 echo "$as_me: program exited with status $ac_status" >&5
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13370 ( exit $ac_status )
13371 ol_cv_header_stdc=no
13373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13377 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13378 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13379 if test $ol_cv_header_stdc = yes; then
13380 cat >>confdefs.h <<\_ACEOF
13381 #define STDC_HEADERS 1
13385 ac_cv_header_stdc=disable
13388 if test $ol_cv_header_stdc != yes; then
13389 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13390 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13398 ac_header_dirent=no
13399 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13400 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13401 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13402 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 cat >conftest.$ac_ext <<_ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 #include <sys/types.h>
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426 (eval $ac_compile) 2>conftest.er1
13428 grep -v '^ *+' conftest.er1 >conftest.err
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } &&
13433 { ac_try='test -z "$ac_c_werror_flag"
13434 || test ! -s conftest.err'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; } &&
13440 { ac_try='test -s conftest.$ac_objext'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 eval "$as_ac_Header=yes"
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 eval "$as_ac_Header=no"
13453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13458 cat >>confdefs.h <<_ACEOF
13459 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13462 ac_header_dirent=$ac_hdr; break
13466 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13467 if test $ac_header_dirent = dirent.h; then
13468 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13469 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13470 if test "${ac_cv_search_opendir+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 ac_func_search_save_LIBS=$LIBS
13474 ac_cv_search_opendir=no
13475 cat >conftest.$ac_ext <<_ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13482 /* Override any gcc2 internal prototype to avoid an error. */
13486 /* We use char because int might match the return type of a gcc2
13487 builtin and then its argument prototype would still apply. */
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13499 (eval $ac_link) 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag"
13507 || test ! -s conftest.err'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest$ac_exeext'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_cv_search_opendir="none required"
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13525 rm -f conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527 if test "$ac_cv_search_opendir" = no; then
13528 for ac_lib in dir; do
13529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13530 cat >conftest.$ac_ext <<_ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13537 /* Override any gcc2 internal prototype to avoid an error. */
13541 /* We use char because int might match the return type of a gcc2
13542 builtin and then its argument prototype would still apply. */
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554 (eval $ac_link) 2>conftest.er1
13556 grep -v '^ *+' conftest.er1 >conftest.err
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag"
13562 || test ! -s conftest.err'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest$ac_exeext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_search_opendir="-l$ac_lib"
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13581 rm -f conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13585 LIBS=$ac_func_search_save_LIBS
13587 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13588 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13589 if test "$ac_cv_search_opendir" != no; then
13590 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13595 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13596 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13597 if test "${ac_cv_search_opendir+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 ac_func_search_save_LIBS=$LIBS
13601 ac_cv_search_opendir=no
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 /* Override any gcc2 internal prototype to avoid an error. */
13613 /* We use char because int might match the return type of a gcc2
13614 builtin and then its argument prototype would still apply. */
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626 (eval $ac_link) 2>conftest.er1
13628 grep -v '^ *+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
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); }; } &&
13640 { ac_try='test -s conftest$ac_exeext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_search_opendir="none required"
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13652 rm -f conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654 if test "$ac_cv_search_opendir" = no; then
13655 for ac_lib in x; do
13656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13664 /* Override any gcc2 internal prototype to avoid an error. */
13668 /* We use char because int might match the return type of a gcc2
13669 builtin and then its argument prototype would still apply. */
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest$ac_exeext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_search_opendir="-l$ac_lib"
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13708 rm -f conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_func_search_save_LIBS
13714 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13715 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13716 if test "$ac_cv_search_opendir" != no; then
13717 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13723 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13724 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13725 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 cat >conftest.$ac_ext <<_ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 #include <sys/types.h>
13735 #include <sys/wait.h>
13736 #ifndef WEXITSTATUS
13737 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13740 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13748 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755 (eval $ac_compile) 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_c_werror_flag"
13763 || test ! -s conftest.err'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest.$ac_objext'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_cv_header_sys_wait_h=yes
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_cv_header_sys_wait_h=no
13782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13784 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13785 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13786 if test $ac_cv_header_sys_wait_h = yes; then
13788 cat >>confdefs.h <<\_ACEOF
13789 #define HAVE_SYS_WAIT_H 1
13794 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13795 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13796 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #include <sys/types.h>
13806 #include <termios.h>
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813 $EGREP "yes" >/dev/null 2>&1; then
13814 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13816 ac_cv_sys_tiocgwinsz_in_termios_h=no
13821 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13822 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13824 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13825 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13826 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13827 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 #include <sys/types.h>
13837 #include <sys/ioctl.h>
13843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13844 $EGREP "yes" >/dev/null 2>&1; then
13845 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13847 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13852 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13853 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13855 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13857 cat >>confdefs.h <<\_ACEOF
13858 #define GWINSZ_IN_SYS_IOCTL 1
13962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13964 echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13972 # Is the header compilable?
13973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13981 $ac_includes_default
13982 #include <$ac_header>
13984 rm -f conftest.$ac_objext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986 (eval $ac_compile) 2>conftest.er1
13988 grep -v '^ *+' conftest.er1 >conftest.err
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag"
13994 || test ! -s conftest.err'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; } &&
14000 { ac_try='test -s conftest.$ac_objext'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14006 ac_header_compiler=yes
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011 ac_header_compiler=no
14013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14015 echo "${ECHO_T}$ac_header_compiler" >&6
14017 # Is the header present?
14018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14020 cat >conftest.$ac_ext <<_ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026 #include <$ac_header>
14028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } >/dev/null; then
14036 if test -s conftest.err; then
14037 ac_cpp_err=$ac_c_preproc_warn_flag
14038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14045 if test -z "$ac_cpp_err"; then
14046 ac_header_preproc=yes
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 ac_header_preproc=no
14053 rm -f conftest.err conftest.$ac_ext
14054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14055 echo "${ECHO_T}$ac_header_preproc" >&6
14057 # So? What about this header?
14058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14064 ac_header_preproc=yes
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14081 ## ------------------------------------------ ##
14082 ## Report this to the AC_PACKAGE_NAME lists. ##
14083 ## ------------------------------------------ ##
14086 sed "s/^/$as_me: WARNING: /" >&2
14089 echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 eval "$as_ac_Header=\$ac_header_preproc"
14096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14101 cat >>confdefs.h <<_ACEOF
14102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14111 for ac_header in resolv.h
14113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14114 echo "$as_me:$LINENO: checking for $ac_header" >&5
14115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 $ac_includes_default
14126 #include <netinet/in.h>
14129 #include <$ac_header>
14131 rm -f conftest.$ac_objext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133 (eval $ac_compile) 2>conftest.er1
14135 grep -v '^ *+' conftest.er1 >conftest.err
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -z "$ac_c_werror_flag"
14141 || test ! -s conftest.err'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
14147 { ac_try='test -s conftest.$ac_objext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 eval "$as_ac_Header=yes"
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 eval "$as_ac_Header=no"
14160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14165 cat >>confdefs.h <<_ACEOF
14166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14175 for ac_header in sys/ucred.h
14177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14178 echo "$as_me:$LINENO: checking for $ac_header" >&5
14179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 $ac_includes_default
14190 #ifdef HAVE_SYS_PARAM_H
14191 #include <sys/param.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
14243 for ac_func in sigaction sigset
14245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_func" >&5
14247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_var+set}\" = set"; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14259 #define $ac_func innocuous_$ac_func
14261 /* System header to define __stub macros and hopefully few prototypes,
14262 which can conflict with char $ac_func (); below.
14263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264 <limits.h> exists even on freestanding compilers. */
14267 # include <limits.h>
14269 # include <assert.h>
14274 /* Override any gcc2 internal prototype to avoid an error. */
14279 /* We use char because int might match the return type of a gcc2
14280 builtin and then its argument prototype would still apply. */
14282 /* The GNU C library defines this for functions which it implements
14283 to always fail with ENOSYS. Some functions are actually named
14284 something starting with __ and the normal name is an alias. */
14285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14288 char (*f) () = $ac_func;
14297 return f != $ac_func;
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304 (eval $ac_link) 2>conftest.er1
14306 grep -v '^ *+' conftest.er1 >conftest.err
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_c_werror_flag"
14312 || test ! -s conftest.err'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest$ac_exeext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 eval "$as_ac_var=yes"
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 eval "$as_ac_var=no"
14331 rm -f conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14336 if test `eval echo '${'$as_ac_var'}'` = yes; then
14337 cat >>confdefs.h <<_ACEOF
14338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14345 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14347 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14348 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14349 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 ac_check_lib_save_LIBS=$LIBS
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14361 /* Override any gcc2 internal prototype to avoid an error. */
14365 /* We use char because int might match the return type of a gcc2
14366 builtin and then its argument prototype would still apply. */
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378 (eval $ac_link) 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_lib_V3_sigset=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_cv_lib_V3_sigset=no
14405 rm -f conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14409 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14410 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14411 if test $ac_cv_lib_V3_sigset = yes; then
14412 cat >>confdefs.h <<_ACEOF
14413 #define HAVE_LIBV3 1
14422 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14423 echo "$as_me:$LINENO: checking for winsock" >&5
14424 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14425 if test "${ol_cv_winsock+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 for curlib in ws2_32 wsock32; do
14430 LIBS="$LIBS -l$curlib"
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <winsock.h>
14444 select(0,NULL,NULL,NULL,NULL);
14446 gethostname(NULL,0);
14452 rm -f conftest.$ac_objext conftest$ac_exeext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14454 (eval $ac_link) 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag"
14462 || test ! -s conftest.err'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; } &&
14468 { ac_try='test -s conftest$ac_exeext'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14481 rm -f conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext conftest.$ac_ext
14484 if test $ol_cv_winsock = yes; then
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_WINSOCK 1
14490 ac_cv_func_socket=yes
14491 ac_cv_func_select=yes
14492 ac_cv_func_closesocket=yes
14493 ac_cv_func_gethostname=yes
14494 if test $curlib = ws2_32; then
14495 ol_cv_winsock=winsock2
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_WINSOCK2 1
14507 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14508 echo "${ECHO_T}$ol_cv_winsock" >&6
14512 echo "$as_me:$LINENO: checking for socket" >&5
14513 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14514 if test "${ac_cv_func_socket+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14525 #define socket innocuous_socket
14527 /* System header to define __stub macros and hopefully few prototypes,
14528 which can conflict with char socket (); below.
14529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14530 <limits.h> exists even on freestanding compilers. */
14533 # include <limits.h>
14535 # include <assert.h>
14540 /* Override any gcc2 internal prototype to avoid an error. */
14545 /* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14548 /* The GNU C library defines this for functions which it implements
14549 to always fail with ENOSYS. Some functions are actually named
14550 something starting with __ and the normal name is an alias. */
14551 #if defined (__stub_socket) || defined (__stub___socket)
14554 char (*f) () = socket;
14563 return f != socket;
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570 (eval $ac_link) 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest$ac_exeext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_cv_func_socket=yes
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_cv_func_socket=no
14597 rm -f conftest.err conftest.$ac_objext \
14598 conftest$ac_exeext conftest.$ac_ext
14600 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14601 echo "${ECHO_T}$ac_cv_func_socket" >&6
14602 if test $ac_cv_func_socket = yes; then
14607 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14608 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14609 if test "${ac_cv_lib_socket_main+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 ac_check_lib_save_LIBS=$LIBS
14613 LIBS="-lsocket $LIBS"
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632 (eval $ac_link) 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag"
14640 || test ! -s conftest.err'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; } &&
14646 { ac_try='test -s conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_lib_socket_main=yes
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 ac_cv_lib_socket_main=no
14659 rm -f conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14663 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14664 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14665 if test $ac_cv_lib_socket_main = yes; then
14666 cat >>confdefs.h <<_ACEOF
14667 #define HAVE_LIBSOCKET 1
14670 LIBS="-lsocket $LIBS"
14675 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14676 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14677 if test "${ac_cv_lib_net_main+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 ac_check_lib_save_LIBS=$LIBS
14682 cat >conftest.$ac_ext <<_ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try='test -s conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_cv_lib_net_main=yes
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 ac_cv_lib_net_main=no
14727 rm -f conftest.err conftest.$ac_objext \
14728 conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14731 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14732 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14733 if test $ac_cv_lib_net_main = yes; then
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_LIBNET 1
14743 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14744 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14745 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lnsl_s $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14768 (eval $ac_link) 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest$ac_exeext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_lib_nsl_s_main=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_cv_lib_nsl_s_main=no
14795 rm -f conftest.err conftest.$ac_objext \
14796 conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14799 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14800 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14801 if test $ac_cv_lib_nsl_s_main = yes; then
14802 cat >>confdefs.h <<_ACEOF
14803 #define HAVE_LIBNSL_S 1
14806 LIBS="-lnsl_s $LIBS"
14811 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14812 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14813 if test "${ac_cv_lib_nsl_main+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 ac_check_lib_save_LIBS=$LIBS
14818 cat >conftest.$ac_ext <<_ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14834 rm -f conftest.$ac_objext conftest$ac_exeext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14836 (eval $ac_link) 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -z "$ac_c_werror_flag"
14844 || test ! -s conftest.err'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest$ac_exeext'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_cv_lib_nsl_main=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_cv_lib_nsl_main=no
14863 rm -f conftest.err conftest.$ac_objext \
14864 conftest$ac_exeext conftest.$ac_ext
14865 LIBS=$ac_check_lib_save_LIBS
14867 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14868 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14869 if test $ac_cv_lib_nsl_main = yes; then
14870 cat >>confdefs.h <<_ACEOF
14871 #define HAVE_LIBNSL 1
14879 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14880 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14881 if test "${ac_cv_lib_inet_socket+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 ac_check_lib_save_LIBS=$LIBS
14885 LIBS="-linet $LIBS"
14886 cat >conftest.$ac_ext <<_ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14893 /* Override any gcc2 internal prototype to avoid an error. */
14897 /* We use char because int might match the return type of a gcc2
14898 builtin and then its argument prototype would still apply. */
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -z "$ac_c_werror_flag"
14918 || test ! -s conftest.err'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; } &&
14924 { ac_try='test -s conftest$ac_exeext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_cv_lib_inet_socket=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_lib_inet_socket=no
14937 rm -f conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14941 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14942 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14943 if test $ac_cv_lib_inet_socket = yes; then
14944 cat >>confdefs.h <<_ACEOF
14945 #define HAVE_LIBINET 1
14948 LIBS="-linet $LIBS"
14953 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14954 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14955 if test "${ac_cv_lib_gen_main+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 ac_check_lib_save_LIBS=$LIBS
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978 (eval $ac_link) 2>conftest.er1
14980 grep -v '^ *+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -z "$ac_c_werror_flag"
14986 || test ! -s conftest.err'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest$ac_exeext'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_cv_lib_gen_main=yes
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 ac_cv_lib_gen_main=no
15005 rm -f conftest.err conftest.$ac_objext \
15006 conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15009 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15010 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15011 if test $ac_cv_lib_gen_main = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define HAVE_LIBGEN 1
15024 echo "$as_me:$LINENO: checking for select" >&5
15025 echo $ECHO_N "checking for select... $ECHO_C" >&6
15026 if test "${ac_cv_func_select+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 /* Define select to an innocuous variant, in case <limits.h> declares select.
15036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15037 #define select innocuous_select
15039 /* System header to define __stub macros and hopefully few prototypes,
15040 which can conflict with char select (); below.
15041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15042 <limits.h> exists even on freestanding compilers. */
15045 # include <limits.h>
15047 # include <assert.h>
15052 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15060 /* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063 #if defined (__stub_select) || defined (__stub___select)
15066 char (*f) () = select;
15075 return f != select;
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_func_select=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_func_select=no
15109 rm -f conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15112 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15113 echo "${ECHO_T}$ac_cv_func_select" >&6
15114 if test $ac_cv_func_select = yes; then
15117 { { echo "$as_me:$LINENO: error: select() required." >&5
15118 echo "$as_me: error: select() required." >&2;}
15119 { (exit 1); exit 1; }; }
15123 if test "${ac_cv_header_winsock_h}" != yes; then
15126 for ac_header in sys/select.h sys/socket.h
15128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15130 echo "$as_me:$LINENO: checking for $ac_header" >&5
15131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15138 # Is the header compilable?
15139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 $ac_includes_default
15148 #include <$ac_header>
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152 (eval $ac_compile) 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag"
15160 || test ! -s conftest.err'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_header_compiler=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_header_compiler=no
15179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6
15183 # Is the header present?
15184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <$ac_header>
15194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } >/dev/null; then
15202 if test -s conftest.err; then
15203 ac_cpp_err=$ac_c_preproc_warn_flag
15204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15211 if test -z "$ac_cpp_err"; then
15212 ac_header_preproc=yes
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 ac_header_preproc=no
15219 rm -f conftest.err conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6
15223 # So? What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15230 ac_header_preproc=yes
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15247 ## ------------------------------------------ ##
15248 ## Report this to the AC_PACKAGE_NAME lists. ##
15249 ## ------------------------------------------ ##
15252 sed "s/^/$as_me: WARNING: /" >&2
15255 echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 eval "$as_ac_Header=\$ac_header_preproc"
15262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15267 cat >>confdefs.h <<_ACEOF
15268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15275 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15276 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15277 if test "${ac_cv_func_select_args+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15281 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15282 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 $ac_includes_default
15290 #if HAVE_SYS_SELECT_H
15291 # include <sys/select.h>
15293 #if HAVE_SYS_SOCKET_H
15294 # include <sys/socket.h>
15300 extern int select ($ac_arg1,
15301 $ac_arg234, $ac_arg234, $ac_arg234,
15307 rm -f conftest.$ac_objext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309 (eval $ac_compile) 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag"
15317 || test ! -s conftest.err'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15339 # Provide a safe default value.
15340 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15343 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15344 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15345 ac_save_IFS=$IFS; IFS=','
15346 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15350 cat >>confdefs.h <<_ACEOF
15351 #define SELECT_TYPE_ARG1 $1
15355 cat >>confdefs.h <<_ACEOF
15356 #define SELECT_TYPE_ARG234 ($2)
15360 cat >>confdefs.h <<_ACEOF
15361 #define SELECT_TYPE_ARG5 ($3)
15370 for ac_func in poll
15372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15373 echo "$as_me:$LINENO: checking for $ac_func" >&5
15374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15375 if eval "test \"\${$as_ac_var+set}\" = set"; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15386 #define $ac_func innocuous_$ac_func
15388 /* System header to define __stub macros and hopefully few prototypes,
15389 which can conflict with char $ac_func (); below.
15390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15391 <limits.h> exists even on freestanding compilers. */
15394 # include <limits.h>
15396 # include <assert.h>
15401 /* Override any gcc2 internal prototype to avoid an error. */
15406 /* We use char because int might match the return type of a gcc2
15407 builtin and then its argument prototype would still apply. */
15409 /* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15415 char (*f) () = $ac_func;
15424 return f != $ac_func;
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag"
15439 || test ! -s conftest.err'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; } &&
15445 { ac_try='test -s conftest$ac_exeext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 eval "$as_ac_var=yes"
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 eval "$as_ac_var=no"
15458 rm -f conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15463 if test `eval echo '${'$as_ac_var'}'` = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15472 for ac_header in poll.h
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15476 echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15484 # Is the header compilable?
15485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 $ac_includes_default
15494 #include <$ac_header>
15496 rm -f conftest.$ac_objext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498 (eval $ac_compile) 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } &&
15505 { ac_try='test -z "$ac_c_werror_flag"
15506 || test ! -s conftest.err'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_header_compiler=yes
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_header_compiler=no
15525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15527 echo "${ECHO_T}$ac_header_compiler" >&6
15529 # Is the header present?
15530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15532 cat >conftest.$ac_ext <<_ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15538 #include <$ac_header>
15540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15543 grep -v '^ *+' conftest.er1 >conftest.err
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } >/dev/null; then
15548 if test -s conftest.err; then
15549 ac_cpp_err=$ac_c_preproc_warn_flag
15550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15557 if test -z "$ac_cpp_err"; then
15558 ac_header_preproc=yes
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_header_preproc=no
15565 rm -f conftest.err conftest.$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15567 echo "${ECHO_T}$ac_header_preproc" >&6
15569 # So? What about this header?
15570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15576 ac_header_preproc=yes
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15593 ## ------------------------------------------ ##
15594 ## Report this to the AC_PACKAGE_NAME lists. ##
15595 ## ------------------------------------------ ##
15598 sed "s/^/$as_me: WARNING: /" >&2
15601 echo "$as_me:$LINENO: checking for $ac_header" >&5
15602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 eval "$as_ac_Header=\$ac_header_preproc"
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15613 cat >>confdefs.h <<_ACEOF
15614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15623 for ac_header in sys/epoll.h
15625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15627 echo "$as_me:$LINENO: checking for $ac_header" >&5
15628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15635 # Is the header compilable?
15636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 $ac_includes_default
15645 #include <$ac_header>
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649 (eval $ac_compile) 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -z "$ac_c_werror_flag"
15657 || test ! -s conftest.err'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest.$ac_objext'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 ac_header_compiler=yes
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_header_compiler=no
15676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678 echo "${ECHO_T}$ac_header_compiler" >&6
15680 # Is the header present?
15681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 #include <$ac_header>
15691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15694 grep -v '^ *+' conftest.er1 >conftest.err
15696 cat conftest.err >&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } >/dev/null; then
15699 if test -s conftest.err; then
15700 ac_cpp_err=$ac_c_preproc_warn_flag
15701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15708 if test -z "$ac_cpp_err"; then
15709 ac_header_preproc=yes
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15714 ac_header_preproc=no
15716 rm -f conftest.err conftest.$ac_ext
15717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15718 echo "${ECHO_T}$ac_header_preproc" >&6
15720 # So? What about this header?
15721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15727 ac_header_preproc=yes
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15744 ## ------------------------------------------ ##
15745 ## Report this to the AC_PACKAGE_NAME lists. ##
15746 ## ------------------------------------------ ##
15749 sed "s/^/$as_me: WARNING: /" >&2
15752 echo "$as_me:$LINENO: checking for $ac_header" >&5
15753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 eval "$as_ac_Header=\$ac_header_preproc"
15759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15764 cat >>confdefs.h <<_ACEOF
15765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15772 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15773 echo "$as_me:$LINENO: checking for epoll system call" >&5
15774 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15775 if test "$cross_compiling" = yes; then
15776 echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6
15779 cat >conftest.$ac_ext <<_ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15785 int main(int argc, char *argv)
15787 int epfd = epoll_create(256);
15788 exit (epfd == -1 ? 1 : 0);
15791 rm -f conftest$ac_exeext
15792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15793 (eval $ac_link) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 echo "$as_me:$LINENO: result: yes" >&5
15803 echo "${ECHO_T}yes" >&6
15805 cat >>confdefs.h <<\_ACEOF
15806 #define HAVE_EPOLL 1
15810 echo "$as_me: program exited with status $ac_status" >&5
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ( exit $ac_status )
15815 echo "$as_me:$LINENO: result: no" >&5
15816 echo "${ECHO_T}no" >&6
15818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15823 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15824 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15825 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15837 #include <sys/types.h>
15840 #include <stdlib.h>
15845 char *c = (char *) *sys_errlist
15850 rm -f conftest.$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852 (eval $ac_compile) 2>conftest.er1
15854 grep -v '^ *+' conftest.er1 >conftest.err
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag"
15860 || test ! -s conftest.err'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; } &&
15866 { ac_try='test -s conftest.$ac_objext'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 ol_cv_dcl_sys_errlist=yes
15873 ol_cv_have_sys_errlist=yes
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 ol_cv_dcl_sys_errlist=no
15880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15882 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15883 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15885 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15886 if test $ol_cv_dcl_sys_errlist = no ; then
15888 cat >>confdefs.h <<\_ACEOF
15889 #define DECL_SYS_ERRLIST 1
15893 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15894 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15895 if test "${ol_cv_have_sys_errlist+set}" = set; then
15896 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15909 char *c = (char *) *sys_errlist
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest$ac_exeext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ol_cv_have_sys_errlist=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ol_cv_have_sys_errlist=no
15943 rm -f conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15946 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15947 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15949 if test $ol_cv_have_sys_errlist = yes ; then
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_SYS_ERRLIST 1
15958 for ac_func in strerror strerror_r
15960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15961 echo "$as_me:$LINENO: checking for $ac_func" >&5
15962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15963 if eval "test \"\${$as_ac_var+set}\" = set"; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15974 #define $ac_func innocuous_$ac_func
15976 /* System header to define __stub macros and hopefully few prototypes,
15977 which can conflict with char $ac_func (); below.
15978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979 <limits.h> exists even on freestanding compilers. */
15982 # include <limits.h>
15984 # include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error. */
15994 /* We use char because int might match the return type of a gcc2
15995 builtin and then its argument prototype would still apply. */
15997 /* The GNU C library defines this for functions which it implements
15998 to always fail with ENOSYS. Some functions are actually named
15999 something starting with __ and the normal name is an alias. */
16000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16003 char (*f) () = $ac_func;
16012 return f != $ac_func;
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019 (eval $ac_link) 2>conftest.er1
16021 grep -v '^ *+' conftest.er1 >conftest.err
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -z "$ac_c_werror_flag"
16027 || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest$ac_exeext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 eval "$as_ac_var=yes"
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 eval "$as_ac_var=no"
16046 rm -f conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16051 if test `eval echo '${'$as_ac_var'}'` = yes; then
16052 cat >>confdefs.h <<_ACEOF
16053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16059 ol_cv_func_strerror_r=no
16060 if test "${ac_cv_func_strerror_r}" = yes ; then
16061 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16062 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16063 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 cat >conftest.$ac_ext <<_ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <string.h>
16075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16076 $EGREP "strerror_r" >/dev/null 2>&1; then
16077 ol_decl_strerror_r=yes
16079 ol_decl_strerror_r=no
16083 if test $ol_decl_strerror_r = yes ; then
16084 cat >conftest.$ac_ext <<_ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 #include <string.h>
16094 /* from autoconf 2.59 */
16096 char x = *strerror_r (0, buf, sizeof buf);
16097 char *p = strerror_r (0, buf, sizeof buf);
16103 rm -f conftest.$ac_objext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105 (eval $ac_compile) 2>conftest.er1
16107 grep -v '^ *+' conftest.er1 >conftest.err
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try='test -z "$ac_c_werror_flag"
16113 || test ! -s conftest.err'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ol_cv_nonposix_strerror_r=yes
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ol_cv_nonposix_strerror_r=no
16132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16134 if test "$cross_compiling" = yes; then
16135 ol_cv_nonposix_strerror=no
16137 cat >conftest.$ac_ext <<_ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16147 strerror_r( 1, buf, sizeof buf );
16148 exit( buf[0] == 0 );
16152 rm -f conftest$ac_exeext
16153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16154 (eval $ac_link) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 ol_cv_nonposix_strerror_r=yes
16165 echo "$as_me: program exited with status $ac_status" >&5
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 ( exit $ac_status )
16170 ol_cv_nonposix_strerror=no
16172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16177 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16178 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16179 if test $ol_cv_nonposix_strerror_r = yes ; then
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_NONPOSIX_STRERROR_R 1
16187 elif test "${ac_cv_func_strerror}" = no ; then
16188 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16189 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16190 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16202 #include <sys/types.h>
16205 #include <stdlib.h>
16210 char *c = (char *) *sys_errlist
16215 rm -f conftest.$ac_objext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16217 (eval $ac_compile) 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try='test -z "$ac_c_werror_flag"
16225 || test ! -s conftest.err'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ol_cv_dcl_sys_errlist=yes
16238 ol_cv_have_sys_errlist=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ol_cv_dcl_sys_errlist=no
16245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16247 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16248 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16250 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16251 if test $ol_cv_dcl_sys_errlist = no ; then
16253 cat >>confdefs.h <<\_ACEOF
16254 #define DECL_SYS_ERRLIST 1
16258 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16259 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16260 if test "${ol_cv_have_sys_errlist+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16274 char *c = (char *) *sys_errlist
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281 (eval $ac_link) 2>conftest.er1
16283 grep -v '^ *+' conftest.er1 >conftest.err
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
16288 { ac_try='test -z "$ac_c_werror_flag"
16289 || test ! -s conftest.err'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; } &&
16295 { ac_try='test -s conftest$ac_exeext'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301 ol_cv_have_sys_errlist=yes
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16306 ol_cv_have_sys_errlist=no
16308 rm -f conftest.err conftest.$ac_objext \
16309 conftest$ac_exeext conftest.$ac_ext
16311 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16312 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16314 if test $ol_cv_have_sys_errlist = yes ; then
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_SYS_ERRLIST 1
16326 for ac_header in regex.h
16328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo "$as_me:$LINENO: checking for $ac_header" >&5
16331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16338 # Is the header compilable?
16339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 $ac_includes_default
16348 #include <$ac_header>
16350 rm -f conftest.$ac_objext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16352 (eval $ac_compile) 2>conftest.er1
16354 grep -v '^ *+' conftest.er1 >conftest.err
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_c_werror_flag"
16360 || test ! -s conftest.err'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest.$ac_objext'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_header_compiler=yes
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_header_compiler=no
16379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16381 echo "${ECHO_T}$ac_header_compiler" >&6
16383 # Is the header present?
16384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16392 #include <$ac_header>
16394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } >/dev/null; then
16402 if test -s conftest.err; then
16403 ac_cpp_err=$ac_c_preproc_warn_flag
16404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16411 if test -z "$ac_cpp_err"; then
16412 ac_header_preproc=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_header_preproc=no
16419 rm -f conftest.err conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16421 echo "${ECHO_T}$ac_header_preproc" >&6
16423 # So? What about this header?
16424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16430 ac_header_preproc=yes
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16447 ## ------------------------------------------ ##
16448 ## Report this to the AC_PACKAGE_NAME lists. ##
16449 ## ------------------------------------------ ##
16452 sed "s/^/$as_me: WARNING: /" >&2
16455 echo "$as_me:$LINENO: checking for $ac_header" >&5
16456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 eval "$as_ac_Header=\$ac_header_preproc"
16462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16467 cat >>confdefs.h <<_ACEOF
16468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16475 if test "$ac_cv_header_regex_h" != yes ; then
16476 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16477 echo "$as_me: error: POSIX regex.h required." >&2;}
16478 { (exit 1); exit 1; }; }
16480 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16481 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16482 if test "${ac_cv_search_regfree+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 ac_func_search_save_LIBS=$LIBS
16486 ac_cv_search_regfree=no
16487 cat >conftest.$ac_ext <<_ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16494 /* Override any gcc2 internal prototype to avoid an error. */
16498 /* We use char because int might match the return type of a gcc2
16499 builtin and then its argument prototype would still apply. */
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511 (eval $ac_link) 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag"
16519 || test ! -s conftest.err'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest$ac_exeext'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 ac_cv_search_regfree="none required"
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16537 rm -f conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16539 if test "$ac_cv_search_regfree" = no; then
16540 for ac_lib in regex gnuregex; do
16541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16549 /* Override any gcc2 internal prototype to avoid an error. */
16553 /* We use char because int might match the return type of a gcc2
16554 builtin and then its argument prototype would still apply. */
16564 rm -f conftest.$ac_objext conftest$ac_exeext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566 (eval $ac_link) 2>conftest.er1
16568 grep -v '^ *+' conftest.er1 >conftest.err
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag"
16574 || test ! -s conftest.err'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest$ac_exeext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_search_regfree="-l$ac_lib"
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16593 rm -f conftest.err conftest.$ac_objext \
16594 conftest$ac_exeext conftest.$ac_ext
16597 LIBS=$ac_func_search_save_LIBS
16599 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16600 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16601 if test "$ac_cv_search_regfree" != no; then
16602 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16605 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16606 echo "$as_me: error: POSIX regex required." >&2;}
16607 { (exit 1); exit 1; }; }
16612 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16613 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16614 if test "${ol_cv_c_posix_regex+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 if test "$cross_compiling" = yes; then
16619 ol_cv_c_posix_regex=cross
16621 cat >conftest.$ac_ext <<_ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16628 #include <sys/types.h>
16630 static char *pattern, *string;
16638 if(regcomp(&re, pattern, 0)) {
16642 string = "ALL MATCH";
16644 rc = regexec(&re, string, 0, (void*)0, 0);
16651 rm -f conftest$ac_exeext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16653 (eval $ac_link) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ol_cv_c_posix_regex=yes
16664 echo "$as_me: program exited with status $ac_status" >&5
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ( exit $ac_status )
16669 ol_cv_c_posix_regex=no
16671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16674 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16675 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16677 if test "$ol_cv_c_posix_regex" = no ; then
16678 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16679 echo "$as_me: error: broken POSIX regex!" >&2;}
16680 { (exit 1); exit 1; }; }
16686 for ac_header in sys/uuid.h
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16690 echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16698 # Is the header compilable?
16699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 #include <$ac_header>
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16714 grep -v '^ *+' conftest.er1 >conftest.err
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_header_compiler=yes
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_header_compiler=no
16739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16741 echo "${ECHO_T}$ac_header_compiler" >&6
16743 # Is the header present?
16744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 #include <$ac_header>
16754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16757 grep -v '^ *+' conftest.er1 >conftest.err
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } >/dev/null; then
16762 if test -s conftest.err; then
16763 ac_cpp_err=$ac_c_preproc_warn_flag
16764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16771 if test -z "$ac_cpp_err"; then
16772 ac_header_preproc=yes
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ac_header_preproc=no
16779 rm -f conftest.err conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16781 echo "${ECHO_T}$ac_header_preproc" >&6
16783 # So? What about this header?
16784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16790 ac_header_preproc=yes
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16807 ## ------------------------------------------ ##
16808 ## Report this to the AC_PACKAGE_NAME lists. ##
16809 ## ------------------------------------------ ##
16812 sed "s/^/$as_me: WARNING: /" >&2
16815 echo "$as_me:$LINENO: checking for $ac_header" >&5
16816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 eval "$as_ac_Header=\$ac_header_preproc"
16822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16835 if test $ac_cv_header_sys_uuid_h = yes ; then
16837 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16838 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16839 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 ac_func_search_save_LIBS=$LIBS
16843 ac_cv_search_uuid_to_str=no
16844 cat >conftest.$ac_ext <<_ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16851 /* Override any gcc2 internal prototype to avoid an error. */
16855 /* We use char because int might match the return type of a gcc2
16856 builtin and then its argument prototype would still apply. */
16857 char uuid_to_str ();
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16868 (eval $ac_link) 2>conftest.er1
16870 grep -v '^ *+' conftest.er1 >conftest.err
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest$ac_exeext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_search_uuid_to_str="none required"
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16894 rm -f conftest.err conftest.$ac_objext \
16895 conftest$ac_exeext conftest.$ac_ext
16896 if test "$ac_cv_search_uuid_to_str" = no; then
16897 for ac_lib in uuid; do
16898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16899 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16906 /* Override any gcc2 internal prototype to avoid an error. */
16910 /* We use char because int might match the return type of a gcc2
16911 builtin and then its argument prototype would still apply. */
16912 char uuid_to_str ();
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923 (eval $ac_link) 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_cv_search_uuid_to_str="-l$ac_lib"
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16950 rm -f conftest.err conftest.$ac_objext \
16951 conftest$ac_exeext conftest.$ac_ext
16954 LIBS=$ac_func_search_save_LIBS
16956 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16957 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16958 if test "$ac_cv_search_uuid_to_str" != no; then
16959 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16967 if test have_uuid = yes ; then
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_UUID_TO_STR 1
16974 test "$ac_cv_search_uuid_to_str" = "none required" || \
16975 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16979 if test $have_uuid = no ; then
16980 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16981 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16983 LIBS="$LIBS -lrpcrt4"
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 int __stdcall UuidCreate(void *);
16992 int __stdcall UuidToStringA(void *,void **);
16999 UuidToStringA(0,0);
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007 (eval $ac_link) 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest$ac_exeext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17034 rm -f conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17036 if test $need_rpcrt = yes; then
17037 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17040 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17041 echo "${ECHO_T}$need_rpcrt" >&6
17044 ol_cv_lib_resolver=no
17045 if test $ol_cv_lib_resolver = no ; then
17046 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17047 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17048 if test "${ol_cv_resolver_none+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 LIBS="$ol_RESOLVER_LIB $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17063 #ifdef HAVE_SYS_TYPES_H
17064 # include <sys/types.h>
17066 #include <netinet/in.h>
17067 #ifdef HAVE_ARPA_NAMESER_H
17068 # include <arpa/nameser.h>
17070 #ifdef HAVE_RESOLV_H
17071 # include <resolv.h>
17079 char *request = NULL;
17080 unsigned char reply[64*1024];
17081 unsigned char host[64*1024];
17085 /* Bind 8/9 interface */
17086 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17088 /* Bind 4 interface */
17092 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17096 /* Bind 8/9 interface */
17098 #elif defined(HFIXEDSZ)
17099 /* Bind 4 interface w/ HFIXEDSZ */
17102 /* Bind 4 interface w/o HFIXEDSZ */
17103 p += sizeof(HEADER);
17105 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113 (eval $ac_link) 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag"
17121 || test ! -s conftest.err'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest$ac_exeext'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ol_cv_resolver_none=yes
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ol_cv_resolver_none=no
17140 rm -f conftest.err conftest.$ac_objext \
17141 conftest$ac_exeext conftest.$ac_ext
17146 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17147 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17149 if test $ol_cv_resolver_none = yes ; then
17150 ol_cv_lib_resolver=yes
17154 if test $ol_cv_lib_resolver = no ; then
17155 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17156 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17157 if test "${ol_cv_resolver_resolv+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 ol_RESOLVER_LIB=-lresolv
17163 LIBS="$ol_RESOLVER_LIB $LIBS"
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17172 #ifdef HAVE_SYS_TYPES_H
17173 # include <sys/types.h>
17175 #include <netinet/in.h>
17176 #ifdef HAVE_ARPA_NAMESER_H
17177 # include <arpa/nameser.h>
17179 #ifdef HAVE_RESOLV_H
17180 # include <resolv.h>
17188 char *request = NULL;
17189 unsigned char reply[64*1024];
17190 unsigned char host[64*1024];
17194 /* Bind 8/9 interface */
17195 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17197 /* Bind 4 interface */
17201 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17205 /* Bind 8/9 interface */
17207 #elif defined(HFIXEDSZ)
17208 /* Bind 4 interface w/ HFIXEDSZ */
17211 /* Bind 4 interface w/o HFIXEDSZ */
17212 p += sizeof(HEADER);
17214 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ol_cv_resolver_resolv=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ol_cv_resolver_resolv=no
17249 rm -f conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17255 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17256 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17258 if test $ol_cv_resolver_resolv = yes ; then
17259 ol_cv_lib_resolver=-lresolv
17263 if test $ol_cv_lib_resolver = no ; then
17264 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17265 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17266 if test "${ol_cv_resolver_bind+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 ol_RESOLVER_LIB=-lbind
17272 LIBS="$ol_RESOLVER_LIB $LIBS"
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17281 #ifdef HAVE_SYS_TYPES_H
17282 # include <sys/types.h>
17284 #include <netinet/in.h>
17285 #ifdef HAVE_ARPA_NAMESER_H
17286 # include <arpa/nameser.h>
17288 #ifdef HAVE_RESOLV_H
17289 # include <resolv.h>
17297 char *request = NULL;
17298 unsigned char reply[64*1024];
17299 unsigned char host[64*1024];
17303 /* Bind 8/9 interface */
17304 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17306 /* Bind 4 interface */
17310 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17314 /* Bind 8/9 interface */
17316 #elif defined(HFIXEDSZ)
17317 /* Bind 4 interface w/ HFIXEDSZ */
17320 /* Bind 4 interface w/o HFIXEDSZ */
17321 p += sizeof(HEADER);
17323 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17331 (eval $ac_link) 2>conftest.er1
17333 grep -v '^ *+' conftest.er1 >conftest.err
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag"
17339 || test ! -s conftest.err'
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest$ac_exeext'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 ol_cv_resolver_bind=yes
17353 echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17356 ol_cv_resolver_bind=no
17358 rm -f conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17364 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17365 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17367 if test $ol_cv_resolver_bind = yes ; then
17368 ol_cv_lib_resolver=-lbind
17375 if test "$ol_cv_lib_resolver" != no ; then
17377 cat >>confdefs.h <<\_ACEOF
17378 #define HAVE_RES_QUERY 1
17382 if test "$ol_enable_dnssrv" != no ; then
17386 if test "$ol_cv_lib_resolver" != yes ; then
17387 LIBS="$ol_cv_lib_resolver $LIBS"
17391 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17392 if test "$ol_link_dnssrv" = no ; then
17393 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17394 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17395 { (exit 1); exit 1; }; }
17398 ol_enable_dnssrv=no
17402 for ac_func in hstrerror
17404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17405 echo "$as_me:$LINENO: checking for $ac_func" >&5
17406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17407 if eval "test \"\${$as_ac_var+set}\" = set"; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 cat >conftest.$ac_ext <<_ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17418 #define $ac_func innocuous_$ac_func
17420 /* System header to define __stub macros and hopefully few prototypes,
17421 which can conflict with char $ac_func (); below.
17422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17423 <limits.h> exists even on freestanding compilers. */
17426 # include <limits.h>
17428 # include <assert.h>
17433 /* Override any gcc2 internal prototype to avoid an error. */
17438 /* We use char because int might match the return type of a gcc2
17439 builtin and then its argument prototype would still apply. */
17441 /* The GNU C library defines this for functions which it implements
17442 to always fail with ENOSYS. Some functions are actually named
17443 something starting with __ and the normal name is an alias. */
17444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17447 char (*f) () = $ac_func;
17456 return f != $ac_func;
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>conftest.er1
17465 grep -v '^ *+' conftest.er1 >conftest.err
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 eval "$as_ac_var=yes"
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 eval "$as_ac_var=no"
17490 rm -f conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17495 if test `eval echo '${'$as_ac_var'}'` = yes; then
17496 cat >>confdefs.h <<_ACEOF
17497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17511 echo "$as_me:$LINENO: checking for $ac_func" >&5
17512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17513 if eval "test \"\${$as_ac_var+set}\" = set"; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 cat >conftest.$ac_ext <<_ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17524 #define $ac_func innocuous_$ac_func
17526 /* System header to define __stub macros and hopefully few prototypes,
17527 which can conflict with char $ac_func (); below.
17528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529 <limits.h> exists even on freestanding compilers. */
17532 # include <limits.h>
17534 # include <assert.h>
17539 /* Override any gcc2 internal prototype to avoid an error. */
17544 /* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17547 /* The GNU C library defines this for functions which it implements
17548 to always fail with ENOSYS. Some functions are actually named
17549 something starting with __ and the normal name is an alias. */
17550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17553 char (*f) () = $ac_func;
17562 return f != $ac_func;
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17569 (eval $ac_link) 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_c_werror_flag"
17577 || test ! -s conftest.err'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest$ac_exeext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 eval "$as_ac_var=yes"
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 eval "$as_ac_var=no"
17596 rm -f conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17601 if test `eval echo '${'$as_ac_var'}'` = yes; then
17602 cat >>confdefs.h <<_ACEOF
17603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17611 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17612 if test $ol_enable_ipv6 = yes ; then
17613 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17614 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17615 { (exit 1); exit 1; }; }
17617 elif test $ol_enable_ipv6 != no ; then
17618 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17619 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17620 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17631 # include <netinet/in.h>
17632 # ifdef INET6_ADDRSTRLEN
17633 __has_inet6_addrstrlen__;
17637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17638 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17639 ol_cv_inet6_addrstrlen=yes
17641 ol_cv_inet6_addrstrlen=no
17646 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17647 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17650 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17651 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17652 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17663 #include <sys/types.h>
17664 #include <sys/socket.h>
17670 struct sockaddr_storage ss;
17676 rm -f conftest.$ac_objext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17678 (eval $ac_compile) 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag"
17686 || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest.$ac_objext'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ol_cv_struct_sockaddr_storage=yes
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ol_cv_struct_sockaddr_storage=no
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17707 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17708 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17710 if test $ol_cv_inet6_addrstrlen = yes &&
17711 test $ol_cv_struct_sockaddr_storage = yes ; then
17713 elif test $ol_enable_ipv6 = yes &&
17714 test $ol_cv_inet6_addrstrlen = no ; then
17715 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17716 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17717 { (exit 1); exit 1; }; }
17718 elif test $ol_enable_ipv6 = yes &&
17719 test $ol_cv_struct_sockaddr_storage = no ; then
17720 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17721 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17722 { (exit 1); exit 1; }; }
17726 if test $ol_enable_local != no ; then
17728 for ac_header in sys/un.h
17730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17732 echo "$as_me:$LINENO: checking for $ac_header" >&5
17733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17740 # Is the header compilable?
17741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17743 cat >conftest.$ac_ext <<_ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 $ac_includes_default
17750 #include <$ac_header>
17752 rm -f conftest.$ac_objext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17754 (eval $ac_compile) 2>conftest.er1
17756 grep -v '^ *+' conftest.er1 >conftest.err
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_c_werror_flag"
17762 || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest.$ac_objext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_header_compiler=yes
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 ac_header_compiler=no
17781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17783 echo "${ECHO_T}$ac_header_compiler" >&6
17785 # Is the header present?
17786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17788 cat >conftest.$ac_ext <<_ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 #include <$ac_header>
17796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } >/dev/null; then
17804 if test -s conftest.err; then
17805 ac_cpp_err=$ac_c_preproc_warn_flag
17806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17813 if test -z "$ac_cpp_err"; then
17814 ac_header_preproc=yes
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17819 ac_header_preproc=no
17821 rm -f conftest.err conftest.$ac_ext
17822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17823 echo "${ECHO_T}$ac_header_preproc" >&6
17825 # So? What about this header?
17826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17832 ac_header_preproc=yes
17835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17849 ## ------------------------------------------ ##
17850 ## Report this to the AC_PACKAGE_NAME lists. ##
17851 ## ------------------------------------------ ##
17854 sed "s/^/$as_me: WARNING: /" >&2
17857 echo "$as_me:$LINENO: checking for $ac_header" >&5
17858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17862 eval "$as_ac_Header=\$ac_header_preproc"
17864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17869 cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17878 if test $ol_enable_local = auto ; then
17879 ol_enable_local=$ac_cv_header_sys_un_h
17880 elif test $ac_cv_header_sys_un_h = no ; then
17881 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17882 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17883 { (exit 1); exit 1; }; }
17891 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17894 for ac_header in krb5.h
17896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17898 echo "$as_me:$LINENO: checking for $ac_header" >&5
17899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17906 # Is the header compilable?
17907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17909 cat >conftest.$ac_ext <<_ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 $ac_includes_default
17916 #include <$ac_header>
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>conftest.er1
17922 grep -v '^ *+' conftest.er1 >conftest.err
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag"
17928 || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_header_compiler=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_header_compiler=no
17947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17949 echo "${ECHO_T}$ac_header_compiler" >&6
17951 # Is the header present?
17952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17954 cat >conftest.$ac_ext <<_ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h. */
17960 #include <$ac_header>
17962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } >/dev/null; then
17970 if test -s conftest.err; then
17971 ac_cpp_err=$ac_c_preproc_warn_flag
17972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17979 if test -z "$ac_cpp_err"; then
17980 ac_header_preproc=yes
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 ac_header_preproc=no
17987 rm -f conftest.err conftest.$ac_ext
17988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17989 echo "${ECHO_T}$ac_header_preproc" >&6
17991 # So? What about this header?
17992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17998 ac_header_preproc=yes
18001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18015 ## ------------------------------------------ ##
18016 ## Report this to the AC_PACKAGE_NAME lists. ##
18017 ## ------------------------------------------ ##
18020 sed "s/^/$as_me: WARNING: /" >&2
18023 echo "$as_me:$LINENO: checking for $ac_header" >&5
18024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 eval "$as_ac_Header=\$ac_header_preproc"
18030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18044 if test $ac_cv_header_krb5_h = yes ; then
18046 for ac_header in heim_err.h
18048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18050 echo "$as_me:$LINENO: checking for $ac_header" >&5
18051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18058 # Is the header compilable?
18059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18061 cat >conftest.$ac_ext <<_ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 $ac_includes_default
18068 #include <$ac_header>
18070 rm -f conftest.$ac_objext
18071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18072 (eval $ac_compile) 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } &&
18079 { ac_try='test -z "$ac_c_werror_flag"
18080 || test ! -s conftest.err'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } &&
18086 { ac_try='test -s conftest.$ac_objext'
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; }; then
18092 ac_header_compiler=yes
18094 echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18097 ac_header_compiler=no
18099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18101 echo "${ECHO_T}$ac_header_compiler" >&6
18103 # Is the header present?
18104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 #include <$ac_header>
18114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18117 grep -v '^ *+' conftest.er1 >conftest.err
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } >/dev/null; then
18122 if test -s conftest.err; then
18123 ac_cpp_err=$ac_c_preproc_warn_flag
18124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18131 if test -z "$ac_cpp_err"; then
18132 ac_header_preproc=yes
18134 echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 ac_header_preproc=no
18139 rm -f conftest.err conftest.$ac_ext
18140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18141 echo "${ECHO_T}$ac_header_preproc" >&6
18143 # So? What about this header?
18144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18150 ac_header_preproc=yes
18153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18167 ## ------------------------------------------ ##
18168 ## Report this to the AC_PACKAGE_NAME lists. ##
18169 ## ------------------------------------------ ##
18172 sed "s/^/$as_me: WARNING: /" >&2
18175 echo "$as_me:$LINENO: checking for $ac_header" >&5
18176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 eval "$as_ac_Header=\$ac_header_preproc"
18182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18187 cat >>confdefs.h <<_ACEOF
18188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18195 if test $ac_cv_header_heim_err_h = yes ; then
18201 if test $krb5_impl = mit; then
18202 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18203 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18204 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lk5crypto $LIBS"
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227 (eval $ac_link) 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ac_cv_lib_k5crypto_main=yes
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_cv_lib_k5crypto_main=no
18254 rm -f conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18259 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18260 if test $ac_cv_lib_k5crypto_main = yes; then
18261 krb5crypto=k5crypto
18267 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18268 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18269 if test "${ac_cv_lib_krb5_main+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18290 rm -f conftest.$ac_objext conftest$ac_exeext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18292 (eval $ac_link) 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag"
18300 || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest$ac_exeext'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18312 ac_cv_lib_krb5_main=yes
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 ac_cv_lib_krb5_main=no
18319 rm -f conftest.err conftest.$ac_objext \
18320 conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18323 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18324 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18325 if test $ac_cv_lib_krb5_main = yes; then
18327 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18333 elif test $krb5_impl = heimdal; then
18334 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18335 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18336 if test "${ac_cv_lib_des_main+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 ac_check_lib_save_LIBS=$LIBS
18341 cat >conftest.$ac_ext <<_ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18359 (eval $ac_link) 2>conftest.er1
18361 grep -v '^ *+' conftest.er1 >conftest.err
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag"
18367 || test ! -s conftest.err'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest$ac_exeext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 ac_cv_lib_des_main=yes
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18384 ac_cv_lib_des_main=no
18386 rm -f conftest.err conftest.$ac_objext \
18387 conftest$ac_exeext conftest.$ac_ext
18388 LIBS=$ac_check_lib_save_LIBS
18390 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18391 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18392 if test $ac_cv_lib_des_main = yes; then
18399 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18400 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18401 if test "${ac_cv_lib_krb5_main+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 ac_check_lib_save_LIBS=$LIBS
18405 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18424 (eval $ac_link) 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag"
18432 || test ! -s conftest.err'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest$ac_exeext'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_cv_lib_krb5_main=yes
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_cv_lib_krb5_main=no
18451 rm -f conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_check_lib_save_LIBS
18455 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18456 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18457 if test $ac_cv_lib_krb5_main = yes; then
18459 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE_HEIMDAL_KERBEROS 1
18473 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18474 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18477 if test $have_krb5 = yes ; then
18481 cat >>confdefs.h <<\_ACEOF
18482 #define HAVE_KRB5 1
18486 if test $ol_with_kerberos = k5only ; then
18487 ol_with_kerberos=found
18490 elif test $ol_with_kerberos != auto ; then
18491 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18492 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18493 { (exit 1); exit 1; }; }
18500 if test $ol_link_krb5 = yes &&
18501 { test $ol_with_kerberos = yes ||
18502 test $ol_with_kerberos = auto ||
18503 test $ol_with_kerberos = k425; }; then
18507 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18511 echo "$as_me:$LINENO: checking for $ac_header" >&5
18512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18519 # Is the header compilable?
18520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18522 cat >conftest.$ac_ext <<_ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h. */
18528 $ac_includes_default
18529 #include <$ac_header>
18531 rm -f conftest.$ac_objext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18533 (eval $ac_compile) 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try='test -z "$ac_c_werror_flag"
18541 || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_header_compiler=yes
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_header_compiler=no
18560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18562 echo "${ECHO_T}$ac_header_compiler" >&6
18564 # Is the header present?
18565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 #include <$ac_header>
18575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18578 grep -v '^ *+' conftest.er1 >conftest.err
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } >/dev/null; then
18583 if test -s conftest.err; then
18584 ac_cpp_err=$ac_c_preproc_warn_flag
18585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18592 if test -z "$ac_cpp_err"; then
18593 ac_header_preproc=yes
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ac_header_preproc=no
18600 rm -f conftest.err conftest.$ac_ext
18601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18602 echo "${ECHO_T}$ac_header_preproc" >&6
18604 # So? What about this header?
18605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18611 ac_header_preproc=yes
18614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18628 ## ------------------------------------------ ##
18629 ## Report this to the AC_PACKAGE_NAME lists. ##
18630 ## ------------------------------------------ ##
18633 sed "s/^/$as_me: WARNING: /" >&2
18636 echo "$as_me:$LINENO: checking for $ac_header" >&5
18637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 eval "$as_ac_Header=\$ac_header_preproc"
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18648 cat >>confdefs.h <<_ACEOF
18649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18657 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18658 if test $krb5_impl = mit; then
18659 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18660 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18661 if test "${ac_cv_lib_krb4_main+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684 (eval $ac_link) 2>conftest.er1
18686 grep -v '^ *+' conftest.er1 >conftest.err
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try='test -z "$ac_c_werror_flag"
18692 || test ! -s conftest.err'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_lib_krb4_main=yes
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 ac_cv_lib_krb4_main=no
18711 rm -f conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18715 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18716 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18717 if test $ac_cv_lib_krb4_main = yes; then
18719 KRB4_LIBS="-lkrb4 -ldes425"
18725 elif test $krb5_impl = heimdal; then
18726 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18727 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18728 if test "${ac_cv_lib_krb4_main+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18733 cat >conftest.$ac_ext <<_ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18751 (eval $ac_link) 2>conftest.er1
18753 grep -v '^ *+' conftest.er1 >conftest.err
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -z "$ac_c_werror_flag"
18759 || test ! -s conftest.err'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_lib_krb4_main=yes
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_lib_krb4_main=no
18778 rm -f conftest.err conftest.$ac_objext \
18779 conftest$ac_exeext conftest.$ac_ext
18780 LIBS=$ac_check_lib_save_LIBS
18782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18783 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18784 if test $ac_cv_lib_krb4_main = yes; then
18794 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18795 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18798 if test $have_k425 = yes ; then
18799 ol_with_kerberos=found
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE_KRB425 1
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_KRB4 1
18813 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18814 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18815 if test "${ol_cv_var_des_debug+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 #include <kerberosIV/krb.h>
18829 #include <kerberosIV/des.h>
18830 extern int des_debug;
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844 (eval $ac_link) 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } &&
18851 { ac_try='test -z "$ac_c_werror_flag"
18852 || test ! -s conftest.err'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ol_cv_var_des_debug=yes
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ol_cv_var_des_debug=no
18871 rm -f conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18876 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18877 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18879 if test $ol_cv_var_des_debug = yes ; then
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_DES_DEBUG 1
18892 if test $ol_link_krb5 = yes ; then
18893 ol_with_kerberos=found
18896 case $ol_with_kerberos in yes | auto | k4 | kth)
18901 for ac_header in krb.h des.h krb-archaeology.h
18903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18905 echo "$as_me:$LINENO: checking for $ac_header" >&5
18906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18913 # Is the header compilable?
18914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 $ac_includes_default
18923 #include <$ac_header>
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18929 grep -v '^ *+' conftest.er1 >conftest.err
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_header_compiler=yes
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 ac_header_compiler=no
18954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18956 echo "${ECHO_T}$ac_header_compiler" >&6
18958 # Is the header present?
18959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include <$ac_header>
18969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18972 grep -v '^ *+' conftest.er1 >conftest.err
18974 cat conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } >/dev/null; then
18977 if test -s conftest.err; then
18978 ac_cpp_err=$ac_c_preproc_warn_flag
18979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18986 if test -z "$ac_cpp_err"; then
18987 ac_header_preproc=yes
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_header_preproc=no
18994 rm -f conftest.err conftest.$ac_ext
18995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18996 echo "${ECHO_T}$ac_header_preproc" >&6
18998 # So? What about this header?
18999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19005 ac_header_preproc=yes
19008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19022 ## ------------------------------------------ ##
19023 ## Report this to the AC_PACKAGE_NAME lists. ##
19024 ## ------------------------------------------ ##
19027 sed "s/^/$as_me: WARNING: /" >&2
19030 echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 eval "$as_ac_Header=\$ac_header_preproc"
19037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19042 cat >>confdefs.h <<_ACEOF
19043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19051 if test $ac_cv_header_krb_h = yes ; then
19052 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19053 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19054 if test "${ac_cv_lib_krb_main+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 ac_check_lib_save_LIBS=$LIBS
19058 LIBS="-lkrb -ldes $LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 (eval $ac_link) 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_lib_krb_main=yes
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_cv_lib_krb_main=no
19104 rm -f conftest.err conftest.$ac_objext \
19105 conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19108 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19109 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19110 if test $ac_cv_lib_krb_main = yes; then
19117 if test $have_k4 = yes ; then
19118 ol_with_kerberos=found
19122 cat >>confdefs.h <<\_ACEOF
19123 #define HAVE_KRB4 1
19127 KRB4_LIBS="-lkrb -ldes"
19129 if test $ac_cv_header_krb_archaeology_h = yes ; then
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_KTH_KERBEROS 1
19141 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19144 elif test $ol_enable_kbind = yes ; then
19145 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19146 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19147 { (exit 1); exit 1; }; }
19150 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19152 cat >>confdefs.h <<\_ACEOF
19153 #define HAVE_KERBEROS 1
19157 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19158 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19159 echo "$as_me: error: Kerberos detection failed" >&2;}
19160 { (exit 1); exit 1; }; }
19165 if test $ol_with_tls != no ; then
19167 for ac_header in openssl/ssl.h
19169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19171 echo "$as_me:$LINENO: checking for $ac_header" >&5
19172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19179 # Is the header compilable?
19180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19189 #include <$ac_header>
19191 rm -f conftest.$ac_objext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19193 (eval $ac_compile) 2>conftest.er1
19195 grep -v '^ *+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
19200 { ac_try='test -z "$ac_c_werror_flag"
19201 || test ! -s conftest.err'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest.$ac_objext'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_header_compiler=yes
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 ac_header_compiler=no
19220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19222 echo "${ECHO_T}$ac_header_compiler" >&6
19224 # Is the header present?
19225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19227 cat >conftest.$ac_ext <<_ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19233 #include <$ac_header>
19235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19238 grep -v '^ *+' conftest.er1 >conftest.err
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } >/dev/null; then
19243 if test -s conftest.err; then
19244 ac_cpp_err=$ac_c_preproc_warn_flag
19245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19252 if test -z "$ac_cpp_err"; then
19253 ac_header_preproc=yes
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 ac_header_preproc=no
19260 rm -f conftest.err conftest.$ac_ext
19261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19262 echo "${ECHO_T}$ac_header_preproc" >&6
19264 # So? What about this header?
19265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19271 ac_header_preproc=yes
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19288 ## ------------------------------------------ ##
19289 ## Report this to the AC_PACKAGE_NAME lists. ##
19290 ## ------------------------------------------ ##
19293 sed "s/^/$as_me: WARNING: /" >&2
19296 echo "$as_me:$LINENO: checking for $ac_header" >&5
19297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19301 eval "$as_ac_Header=\$ac_header_preproc"
19303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19308 cat >>confdefs.h <<_ACEOF
19309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19317 if test $ac_cv_header_openssl_ssl_h = yes ; then
19318 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19319 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19320 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lssl -lcrypto $LIBS"
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19332 /* Override any gcc2 internal prototype to avoid an error. */
19336 /* We use char because int might match the return type of a gcc2
19337 builtin and then its argument prototype would still apply. */
19338 char SSL_library_init ();
19342 SSL_library_init ();
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest$ac_exeext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_cv_lib_ssl_SSL_library_init=yes
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_ssl_SSL_library_init=no
19376 rm -f conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19380 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19381 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19382 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19390 if test $have_openssl = no ; then
19391 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19392 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19393 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19405 /* Override any gcc2 internal prototype to avoid an error. */
19409 /* We use char because int might match the return type of a gcc2
19410 builtin and then its argument prototype would still apply. */
19411 char ssl3_accept ();
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422 (eval $ac_link) 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -z "$ac_c_werror_flag"
19430 || test ! -s conftest.err'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest$ac_exeext'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 ac_cv_lib_ssl_ssl3_accept=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_cv_lib_ssl_ssl3_accept=no
19449 rm -f conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19454 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19455 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19464 if test $have_openssl = yes ; then
19469 cat >>confdefs.h <<\_ACEOF
19470 #define HAVE_OPENSSL 1
19474 if test $need_rsaref = yes; then
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE_RSAREF 1
19481 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19483 TLS_LIBS="-lssl -lcrypto"
19486 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19487 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19488 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19499 #ifdef HAVE_OPENSSL_SSL_H
19500 #include <openssl/ssl.h>
19505 /* Require 0.9.7d+ */
19506 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19507 char *__ssl_compat = "0.9.7d";
19511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19512 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19513 ol_cv_ssl_crl_compat=yes
19515 ol_cv_ssl_crl_compat=no
19520 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19521 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19523 if test $ol_cv_ssl_crl_compat = no ; then
19527 cat >>confdefs.h <<\_ACEOF
19528 #define HAVE_OPENSSL_CRL 1
19535 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19536 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19540 if test $ol_link_tls = yes ; then
19542 cat >>confdefs.h <<\_ACEOF
19548 elif test $ol_with_tls = auto ; then
19549 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19550 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19552 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19554 elif test $ol_with_tls != no ; then
19555 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19556 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19557 { (exit 1); exit 1; }; }
19560 if test $ol_enable_lmpasswd != no; then
19561 if test $ol_link_tls != yes ; then
19562 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19563 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19564 { (exit 1); exit 1; }; }
19568 cat >>confdefs.h <<\_ACEOF
19569 #define SLAPD_LMHASH 1
19576 case $ol_with_threads in auto | yes | nt)
19579 echo "$as_me:$LINENO: checking for _beginthread" >&5
19580 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19581 if test "${ac_cv_func__beginthread+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19592 #define _beginthread innocuous__beginthread
19594 /* System header to define __stub macros and hopefully few prototypes,
19595 which can conflict with char _beginthread (); below.
19596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19597 <limits.h> exists even on freestanding compilers. */
19600 # include <limits.h>
19602 # include <assert.h>
19605 #undef _beginthread
19607 /* Override any gcc2 internal prototype to avoid an error. */
19612 /* We use char because int might match the return type of a gcc2
19613 builtin and then its argument prototype would still apply. */
19614 char _beginthread ();
19615 /* The GNU C library defines this for functions which it implements
19616 to always fail with ENOSYS. Some functions are actually named
19617 something starting with __ and the normal name is an alias. */
19618 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19621 char (*f) () = _beginthread;
19630 return f != _beginthread;
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637 (eval $ac_link) 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag"
19645 || test ! -s conftest.err'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; } &&
19651 { ac_try='test -s conftest$ac_exeext'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_cv_func__beginthread=yes
19659 echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ac_cv_func__beginthread=no
19664 rm -f conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19667 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19668 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19671 if test $ac_cv_func__beginthread = yes ; then
19673 cat >>confdefs.h <<\_ACEOF
19674 #define HAVE_NT_THREADS 1
19677 ol_cv_nt_threads=yes
19681 if test "$ol_cv_nt_threads" = yes ; then
19683 ol_with_threads=found
19684 ol_with_yielding_select=yes
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_NT_SERVICE_MANAGER 1
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_NT_EVENT_LOG 1
19698 if test $ol_with_threads = nt ; then
19699 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19700 echo "$as_me: error: could not locate NT Threads" >&2;}
19701 { (exit 1); exit 1; }; }
19706 case $ol_with_threads in auto | yes | posix)
19709 for ac_header in pthread.h
19711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19713 echo "$as_me:$LINENO: checking for $ac_header" >&5
19714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19721 # Is the header compilable?
19722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 $ac_includes_default
19731 #include <$ac_header>
19733 rm -f conftest.$ac_objext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19735 (eval $ac_compile) 2>conftest.er1
19737 grep -v '^ *+' conftest.er1 >conftest.err
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try='test -z "$ac_c_werror_flag"
19743 || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_header_compiler=yes
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 ac_header_compiler=no
19762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19764 echo "${ECHO_T}$ac_header_compiler" >&6
19766 # Is the header present?
19767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #include <$ac_header>
19777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19780 grep -v '^ *+' conftest.er1 >conftest.err
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } >/dev/null; then
19785 if test -s conftest.err; then
19786 ac_cpp_err=$ac_c_preproc_warn_flag
19787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19794 if test -z "$ac_cpp_err"; then
19795 ac_header_preproc=yes
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 ac_header_preproc=no
19802 rm -f conftest.err conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19804 echo "${ECHO_T}$ac_header_preproc" >&6
19806 # So? What about this header?
19807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19813 ac_header_preproc=yes
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19830 ## ------------------------------------------ ##
19831 ## Report this to the AC_PACKAGE_NAME lists. ##
19832 ## ------------------------------------------ ##
19835 sed "s/^/$as_me: WARNING: /" >&2
19838 echo "$as_me:$LINENO: checking for $ac_header" >&5
19839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 eval "$as_ac_Header=\$ac_header_preproc"
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19850 cat >>confdefs.h <<_ACEOF
19851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19859 if test $ac_cv_header_pthread_h = yes ; then
19860 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19861 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19862 if test "${ol_cv_pthread_version+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19873 # include <pthread.h>
19879 int i = PTHREAD_CREATE_JOINABLE;
19885 rm -f conftest.$ac_objext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 #include <pthread.h>
19917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19918 $EGREP "pthread_detach" >/dev/null 2>&1; then
19919 ol_cv_pthread_version=10
19921 ol_cv_pthread_version=8
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19937 # include <pthread.h>
19938 # ifdef PTHREAD_CREATE_UNDETACHED
19943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19944 $EGREP "draft7" >/dev/null 2>&1; then
19945 ol_cv_pthread_version=7
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19954 #include <pthread.h>
19957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19958 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19959 ol_cv_pthread_version=6
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19969 # include <pthread.h>
19970 #ifdef PTHREAD_MUTEX_INITIALIZER
19975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19976 $EGREP "draft5" >/dev/null 2>&1; then
19977 ol_cv_pthread_version=5
19979 ol_cv_pthread_version=4
19990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19993 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19994 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19997 if test $ol_cv_pthread_version != 0 ; then
19999 cat >>confdefs.h <<_ACEOF
20000 #define HAVE_PTHREADS $ol_cv_pthread_version
20004 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20005 echo "$as_me: error: unknown pthread version" >&2;}
20006 { (exit 1); exit 1; }; }
20009 # consider threads found
20010 ol_with_threads=found
20013 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20014 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20015 if test "${ol_cv_header_linux_threads+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <pthread.h>
20026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20027 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20028 ol_cv_header_linux_threads=yes
20030 ol_cv_header_linux_threads=no
20036 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20037 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20038 if test $ol_cv_header_linux_threads = yes; then
20040 cat >>confdefs.h <<\_ACEOF
20041 #define HAVE_LINUX_THREADS 1
20047 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20048 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20049 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 #include <pthread.h>
20059 #ifdef _POSIX_THREAD_IS_GNU_PTH
20064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20065 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20066 ol_cv_header_gnu_pth_pthread_h=yes
20068 ol_cv_header_gnu_pth_pthread_h=no
20074 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20075 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20078 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20080 for ac_header in sched.h
20082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20084 echo "$as_me:$LINENO: checking for $ac_header" >&5
20085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20092 # Is the header compilable?
20093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20102 #include <$ac_header>
20104 rm -f conftest.$ac_objext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20106 (eval $ac_compile) 2>conftest.er1
20108 grep -v '^ *+' conftest.er1 >conftest.err
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try='test -z "$ac_c_werror_flag"
20114 || test ! -s conftest.err'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try='test -s conftest.$ac_objext'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 ac_header_compiler=yes
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 ac_header_compiler=no
20133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20135 echo "${ECHO_T}$ac_header_compiler" >&6
20137 # Is the header present?
20138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 #include <$ac_header>
20148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1 >conftest.err
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } >/dev/null; then
20156 if test -s conftest.err; then
20157 ac_cpp_err=$ac_c_preproc_warn_flag
20158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20165 if test -z "$ac_cpp_err"; then
20166 ac_header_preproc=yes
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_preproc=no
20173 rm -f conftest.err conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20175 echo "${ECHO_T}$ac_header_preproc" >&6
20177 # So? What about this header?
20178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20184 ac_header_preproc=yes
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20201 ## ------------------------------------------ ##
20202 ## Report this to the AC_PACKAGE_NAME lists. ##
20203 ## ------------------------------------------ ##
20206 sed "s/^/$as_me: WARNING: /" >&2
20209 echo "$as_me:$LINENO: checking for $ac_header" >&5
20210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 eval "$as_ac_Header=\$ac_header_preproc"
20216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20221 cat >>confdefs.h <<_ACEOF
20222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20232 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20233 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20234 if test "${ol_cv_pthread_create+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 if test "$cross_compiling" = yes; then
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20246 /* pthread test headers */
20247 #include <pthread.h>
20248 #if HAVE_PTHREADS < 7
20252 #define NULL (void*)0
20255 static void *task(p)
20258 return (void *) (p == NULL);
20265 /* pthread test function */
20266 #ifndef PTHREAD_CREATE_DETACHED
20267 #define PTHREAD_CREATE_DETACHED 1
20271 int detach = PTHREAD_CREATE_DETACHED;
20273 #if HAVE_PTHREADS > 4
20274 /* Final pthreads */
20275 pthread_attr_t attr;
20277 status = pthread_attr_init(&attr);
20278 if( status ) return status;
20280 #if HAVE_PTHREADS < 7
20281 status = pthread_attr_setdetachstate(&attr, &detach);
20282 if( status < 0 ) status = errno;
20284 status = pthread_attr_setdetachstate(&attr, detach);
20286 if( status ) return status;
20287 status = pthread_create( &t, &attr, task, NULL );
20288 #if HAVE_PTHREADS < 7
20289 if( status < 0 ) status = errno;
20291 if( status ) return status;
20293 /* Draft 4 pthreads */
20294 status = pthread_create( &t, pthread_attr_default, task, NULL );
20295 if( status ) return errno;
20297 /* give thread a chance to complete */
20298 /* it should remain joinable and hence detachable */
20301 status = pthread_detach( &t );
20302 if( status ) return errno;
20305 #ifdef HAVE_LINUX_THREADS
20306 pthread_kill_other_threads_np();
20315 rm -f conftest.$ac_objext conftest$ac_exeext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317 (eval $ac_link) 2>conftest.er1
20319 grep -v '^ *+' conftest.er1 >conftest.err
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } &&
20324 { ac_try='test -z "$ac_c_werror_flag"
20325 || test ! -s conftest.err'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; } &&
20331 { ac_try='test -s conftest$ac_exeext'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 ol_cv_pthread_create=yes
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 ol_cv_pthread_create=no
20344 rm -f conftest.err conftest.$ac_objext \
20345 conftest$ac_exeext conftest.$ac_ext
20347 cat >conftest.$ac_ext <<_ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20354 /* pthread test headers */
20355 #include <pthread.h>
20356 #if HAVE_PTHREADS < 7
20360 #define NULL (void*)0
20363 static void *task(p)
20366 return (void *) (p == NULL);
20370 int main(argc, argv)
20375 /* pthread test function */
20376 #ifndef PTHREAD_CREATE_DETACHED
20377 #define PTHREAD_CREATE_DETACHED 1
20381 int detach = PTHREAD_CREATE_DETACHED;
20383 #if HAVE_PTHREADS > 4
20384 /* Final pthreads */
20385 pthread_attr_t attr;
20387 status = pthread_attr_init(&attr);
20388 if( status ) return status;
20390 #if HAVE_PTHREADS < 7
20391 status = pthread_attr_setdetachstate(&attr, &detach);
20392 if( status < 0 ) status = errno;
20394 status = pthread_attr_setdetachstate(&attr, detach);
20396 if( status ) return status;
20397 status = pthread_create( &t, &attr, task, NULL );
20398 #if HAVE_PTHREADS < 7
20399 if( status < 0 ) status = errno;
20401 if( status ) return status;
20403 /* Draft 4 pthreads */
20404 status = pthread_create( &t, pthread_attr_default, task, NULL );
20405 if( status ) return errno;
20407 /* give thread a chance to complete */
20408 /* it should remain joinable and hence detachable */
20411 status = pthread_detach( &t );
20412 if( status ) return errno;
20415 #ifdef HAVE_LINUX_THREADS
20416 pthread_kill_other_threads_np();
20424 rm -f conftest$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426 (eval $ac_link) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ol_cv_pthread_create=yes
20437 echo "$as_me: program exited with status $ac_status" >&5
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ( exit $ac_status )
20442 ol_cv_pthread_create=no
20444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20447 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20448 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20450 if test $ol_cv_pthread_create != no ; then
20451 ol_link_threads=posix
20452 ol_link_pthreads=""
20455 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20456 if test "$ol_link_threads" = no ; then
20458 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20459 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20460 if test "${ol_cv_pthread_kthread+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 LIBS="-kthread $LIBS"
20468 if test "$cross_compiling" = yes; then
20469 cat >conftest.$ac_ext <<_ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20476 /* pthread test headers */
20477 #include <pthread.h>
20478 #if HAVE_PTHREADS < 7
20482 #define NULL (void*)0
20485 static void *task(p)
20488 return (void *) (p == NULL);
20495 /* pthread test function */
20496 #ifndef PTHREAD_CREATE_DETACHED
20497 #define PTHREAD_CREATE_DETACHED 1
20501 int detach = PTHREAD_CREATE_DETACHED;
20503 #if HAVE_PTHREADS > 4
20504 /* Final pthreads */
20505 pthread_attr_t attr;
20507 status = pthread_attr_init(&attr);
20508 if( status ) return status;
20510 #if HAVE_PTHREADS < 7
20511 status = pthread_attr_setdetachstate(&attr, &detach);
20512 if( status < 0 ) status = errno;
20514 status = pthread_attr_setdetachstate(&attr, detach);
20516 if( status ) return status;
20517 status = pthread_create( &t, &attr, task, NULL );
20518 #if HAVE_PTHREADS < 7
20519 if( status < 0 ) status = errno;
20521 if( status ) return status;
20523 /* Draft 4 pthreads */
20524 status = pthread_create( &t, pthread_attr_default, task, NULL );
20525 if( status ) return errno;
20527 /* give thread a chance to complete */
20528 /* it should remain joinable and hence detachable */
20531 status = pthread_detach( &t );
20532 if( status ) return errno;
20535 #ifdef HAVE_LINUX_THREADS
20536 pthread_kill_other_threads_np();
20545 rm -f conftest.$ac_objext conftest$ac_exeext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20547 (eval $ac_link) 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag"
20555 || test ! -s conftest.err'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest$ac_exeext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ol_cv_pthread_kthread=yes
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ol_cv_pthread_kthread=no
20574 rm -f conftest.err conftest.$ac_objext \
20575 conftest$ac_exeext conftest.$ac_ext
20577 cat >conftest.$ac_ext <<_ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20584 /* pthread test headers */
20585 #include <pthread.h>
20586 #if HAVE_PTHREADS < 7
20590 #define NULL (void*)0
20593 static void *task(p)
20596 return (void *) (p == NULL);
20600 int main(argc, argv)
20605 /* pthread test function */
20606 #ifndef PTHREAD_CREATE_DETACHED
20607 #define PTHREAD_CREATE_DETACHED 1
20611 int detach = PTHREAD_CREATE_DETACHED;
20613 #if HAVE_PTHREADS > 4
20614 /* Final pthreads */
20615 pthread_attr_t attr;
20617 status = pthread_attr_init(&attr);
20618 if( status ) return status;
20620 #if HAVE_PTHREADS < 7
20621 status = pthread_attr_setdetachstate(&attr, &detach);
20622 if( status < 0 ) status = errno;
20624 status = pthread_attr_setdetachstate(&attr, detach);
20626 if( status ) return status;
20627 status = pthread_create( &t, &attr, task, NULL );
20628 #if HAVE_PTHREADS < 7
20629 if( status < 0 ) status = errno;
20631 if( status ) return status;
20633 /* Draft 4 pthreads */
20634 status = pthread_create( &t, pthread_attr_default, task, NULL );
20635 if( status ) return errno;
20637 /* give thread a chance to complete */
20638 /* it should remain joinable and hence detachable */
20641 status = pthread_detach( &t );
20642 if( status ) return errno;
20645 #ifdef HAVE_LINUX_THREADS
20646 pthread_kill_other_threads_np();
20654 rm -f conftest$ac_exeext
20655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20656 (eval $ac_link) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ol_cv_pthread_kthread=yes
20667 echo "$as_me: program exited with status $ac_status" >&5
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ( exit $ac_status )
20672 ol_cv_pthread_kthread=no
20674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20681 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20682 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20684 if test $ol_cv_pthread_kthread = yes ; then
20685 ol_link_pthreads="-kthread"
20686 ol_link_threads=posix
20690 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20691 if test "$ol_link_threads" = no ; then
20693 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20694 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20695 if test "${ol_cv_pthread_pthread+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 LIBS="-pthread $LIBS"
20703 if test "$cross_compiling" = yes; then
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20711 /* pthread test headers */
20712 #include <pthread.h>
20713 #if HAVE_PTHREADS < 7
20717 #define NULL (void*)0
20720 static void *task(p)
20723 return (void *) (p == NULL);
20730 /* pthread test function */
20731 #ifndef PTHREAD_CREATE_DETACHED
20732 #define PTHREAD_CREATE_DETACHED 1
20736 int detach = PTHREAD_CREATE_DETACHED;
20738 #if HAVE_PTHREADS > 4
20739 /* Final pthreads */
20740 pthread_attr_t attr;
20742 status = pthread_attr_init(&attr);
20743 if( status ) return status;
20745 #if HAVE_PTHREADS < 7
20746 status = pthread_attr_setdetachstate(&attr, &detach);
20747 if( status < 0 ) status = errno;
20749 status = pthread_attr_setdetachstate(&attr, detach);
20751 if( status ) return status;
20752 status = pthread_create( &t, &attr, task, NULL );
20753 #if HAVE_PTHREADS < 7
20754 if( status < 0 ) status = errno;
20756 if( status ) return status;
20758 /* Draft 4 pthreads */
20759 status = pthread_create( &t, pthread_attr_default, task, NULL );
20760 if( status ) return errno;
20762 /* give thread a chance to complete */
20763 /* it should remain joinable and hence detachable */
20766 status = pthread_detach( &t );
20767 if( status ) return errno;
20770 #ifdef HAVE_LINUX_THREADS
20771 pthread_kill_other_threads_np();
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20782 (eval $ac_link) 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag"
20790 || test ! -s conftest.err'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest$ac_exeext'
20797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 ol_cv_pthread_pthread=yes
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 ol_cv_pthread_pthread=no
20809 rm -f conftest.err conftest.$ac_objext \
20810 conftest$ac_exeext conftest.$ac_ext
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20819 /* pthread test headers */
20820 #include <pthread.h>
20821 #if HAVE_PTHREADS < 7
20825 #define NULL (void*)0
20828 static void *task(p)
20831 return (void *) (p == NULL);
20835 int main(argc, argv)
20840 /* pthread test function */
20841 #ifndef PTHREAD_CREATE_DETACHED
20842 #define PTHREAD_CREATE_DETACHED 1
20846 int detach = PTHREAD_CREATE_DETACHED;
20848 #if HAVE_PTHREADS > 4
20849 /* Final pthreads */
20850 pthread_attr_t attr;
20852 status = pthread_attr_init(&attr);
20853 if( status ) return status;
20855 #if HAVE_PTHREADS < 7
20856 status = pthread_attr_setdetachstate(&attr, &detach);
20857 if( status < 0 ) status = errno;
20859 status = pthread_attr_setdetachstate(&attr, detach);
20861 if( status ) return status;
20862 status = pthread_create( &t, &attr, task, NULL );
20863 #if HAVE_PTHREADS < 7
20864 if( status < 0 ) status = errno;
20866 if( status ) return status;
20868 /* Draft 4 pthreads */
20869 status = pthread_create( &t, pthread_attr_default, task, NULL );
20870 if( status ) return errno;
20872 /* give thread a chance to complete */
20873 /* it should remain joinable and hence detachable */
20876 status = pthread_detach( &t );
20877 if( status ) return errno;
20880 #ifdef HAVE_LINUX_THREADS
20881 pthread_kill_other_threads_np();
20889 rm -f conftest$ac_exeext
20890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20891 (eval $ac_link) 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ol_cv_pthread_pthread=yes
20902 echo "$as_me: program exited with status $ac_status" >&5
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 ( exit $ac_status )
20907 ol_cv_pthread_pthread=no
20909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20916 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20917 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20919 if test $ol_cv_pthread_pthread = yes ; then
20920 ol_link_pthreads="-pthread"
20921 ol_link_threads=posix
20925 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20926 if test "$ol_link_threads" = no ; then
20928 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20929 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20930 if test "${ol_cv_pthread_pthreads+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 LIBS="-pthreads $LIBS"
20938 if test "$cross_compiling" = yes; then
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20946 /* pthread test headers */
20947 #include <pthread.h>
20948 #if HAVE_PTHREADS < 7
20952 #define NULL (void*)0
20955 static void *task(p)
20958 return (void *) (p == NULL);
20965 /* pthread test function */
20966 #ifndef PTHREAD_CREATE_DETACHED
20967 #define PTHREAD_CREATE_DETACHED 1
20971 int detach = PTHREAD_CREATE_DETACHED;
20973 #if HAVE_PTHREADS > 4
20974 /* Final pthreads */
20975 pthread_attr_t attr;
20977 status = pthread_attr_init(&attr);
20978 if( status ) return status;
20980 #if HAVE_PTHREADS < 7
20981 status = pthread_attr_setdetachstate(&attr, &detach);
20982 if( status < 0 ) status = errno;
20984 status = pthread_attr_setdetachstate(&attr, detach);
20986 if( status ) return status;
20987 status = pthread_create( &t, &attr, task, NULL );
20988 #if HAVE_PTHREADS < 7
20989 if( status < 0 ) status = errno;
20991 if( status ) return status;
20993 /* Draft 4 pthreads */
20994 status = pthread_create( &t, pthread_attr_default, task, NULL );
20995 if( status ) return errno;
20997 /* give thread a chance to complete */
20998 /* it should remain joinable and hence detachable */
21001 status = pthread_detach( &t );
21002 if( status ) return errno;
21005 #ifdef HAVE_LINUX_THREADS
21006 pthread_kill_other_threads_np();
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017 (eval $ac_link) 2>conftest.er1
21019 grep -v '^ *+' conftest.er1 >conftest.err
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } &&
21024 { ac_try='test -z "$ac_c_werror_flag"
21025 || test ! -s conftest.err'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; } &&
21031 { ac_try='test -s conftest$ac_exeext'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; }; then
21037 ol_cv_pthread_pthreads=yes
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ol_cv_pthread_pthreads=no
21044 rm -f conftest.err conftest.$ac_objext \
21045 conftest$ac_exeext conftest.$ac_ext
21047 cat >conftest.$ac_ext <<_ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21054 /* pthread test headers */
21055 #include <pthread.h>
21056 #if HAVE_PTHREADS < 7
21060 #define NULL (void*)0
21063 static void *task(p)
21066 return (void *) (p == NULL);
21070 int main(argc, argv)
21075 /* pthread test function */
21076 #ifndef PTHREAD_CREATE_DETACHED
21077 #define PTHREAD_CREATE_DETACHED 1
21081 int detach = PTHREAD_CREATE_DETACHED;
21083 #if HAVE_PTHREADS > 4
21084 /* Final pthreads */
21085 pthread_attr_t attr;
21087 status = pthread_attr_init(&attr);
21088 if( status ) return status;
21090 #if HAVE_PTHREADS < 7
21091 status = pthread_attr_setdetachstate(&attr, &detach);
21092 if( status < 0 ) status = errno;
21094 status = pthread_attr_setdetachstate(&attr, detach);
21096 if( status ) return status;
21097 status = pthread_create( &t, &attr, task, NULL );
21098 #if HAVE_PTHREADS < 7
21099 if( status < 0 ) status = errno;
21101 if( status ) return status;
21103 /* Draft 4 pthreads */
21104 status = pthread_create( &t, pthread_attr_default, task, NULL );
21105 if( status ) return errno;
21107 /* give thread a chance to complete */
21108 /* it should remain joinable and hence detachable */
21111 status = pthread_detach( &t );
21112 if( status ) return errno;
21115 #ifdef HAVE_LINUX_THREADS
21116 pthread_kill_other_threads_np();
21124 rm -f conftest$ac_exeext
21125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21126 (eval $ac_link) 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ol_cv_pthread_pthreads=yes
21137 echo "$as_me: program exited with status $ac_status" >&5
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 ( exit $ac_status )
21142 ol_cv_pthread_pthreads=no
21144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21152 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21154 if test $ol_cv_pthread_pthreads = yes ; then
21155 ol_link_pthreads="-pthreads"
21156 ol_link_threads=posix
21160 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21161 if test "$ol_link_threads" = no ; then
21163 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21164 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21165 if test "${ol_cv_pthread_mthreads+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 LIBS="-mthreads $LIBS"
21173 if test "$cross_compiling" = yes; then
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21181 /* pthread test headers */
21182 #include <pthread.h>
21183 #if HAVE_PTHREADS < 7
21187 #define NULL (void*)0
21190 static void *task(p)
21193 return (void *) (p == NULL);
21200 /* pthread test function */
21201 #ifndef PTHREAD_CREATE_DETACHED
21202 #define PTHREAD_CREATE_DETACHED 1
21206 int detach = PTHREAD_CREATE_DETACHED;
21208 #if HAVE_PTHREADS > 4
21209 /* Final pthreads */
21210 pthread_attr_t attr;
21212 status = pthread_attr_init(&attr);
21213 if( status ) return status;
21215 #if HAVE_PTHREADS < 7
21216 status = pthread_attr_setdetachstate(&attr, &detach);
21217 if( status < 0 ) status = errno;
21219 status = pthread_attr_setdetachstate(&attr, detach);
21221 if( status ) return status;
21222 status = pthread_create( &t, &attr, task, NULL );
21223 #if HAVE_PTHREADS < 7
21224 if( status < 0 ) status = errno;
21226 if( status ) return status;
21228 /* Draft 4 pthreads */
21229 status = pthread_create( &t, pthread_attr_default, task, NULL );
21230 if( status ) return errno;
21232 /* give thread a chance to complete */
21233 /* it should remain joinable and hence detachable */
21236 status = pthread_detach( &t );
21237 if( status ) return errno;
21240 #ifdef HAVE_LINUX_THREADS
21241 pthread_kill_other_threads_np();
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21252 (eval $ac_link) 2>conftest.er1
21254 grep -v '^ *+' conftest.er1 >conftest.err
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } &&
21259 { ac_try='test -z "$ac_c_werror_flag"
21260 || test ! -s conftest.err'
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; } &&
21266 { ac_try='test -s conftest$ac_exeext'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; }; then
21272 ol_cv_pthread_mthreads=yes
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ol_cv_pthread_mthreads=no
21279 rm -f conftest.err conftest.$ac_objext \
21280 conftest$ac_exeext conftest.$ac_ext
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 /* pthread test headers */
21290 #include <pthread.h>
21291 #if HAVE_PTHREADS < 7
21295 #define NULL (void*)0
21298 static void *task(p)
21301 return (void *) (p == NULL);
21305 int main(argc, argv)
21310 /* pthread test function */
21311 #ifndef PTHREAD_CREATE_DETACHED
21312 #define PTHREAD_CREATE_DETACHED 1
21316 int detach = PTHREAD_CREATE_DETACHED;
21318 #if HAVE_PTHREADS > 4
21319 /* Final pthreads */
21320 pthread_attr_t attr;
21322 status = pthread_attr_init(&attr);
21323 if( status ) return status;
21325 #if HAVE_PTHREADS < 7
21326 status = pthread_attr_setdetachstate(&attr, &detach);
21327 if( status < 0 ) status = errno;
21329 status = pthread_attr_setdetachstate(&attr, detach);
21331 if( status ) return status;
21332 status = pthread_create( &t, &attr, task, NULL );
21333 #if HAVE_PTHREADS < 7
21334 if( status < 0 ) status = errno;
21336 if( status ) return status;
21338 /* Draft 4 pthreads */
21339 status = pthread_create( &t, pthread_attr_default, task, NULL );
21340 if( status ) return errno;
21342 /* give thread a chance to complete */
21343 /* it should remain joinable and hence detachable */
21346 status = pthread_detach( &t );
21347 if( status ) return errno;
21350 #ifdef HAVE_LINUX_THREADS
21351 pthread_kill_other_threads_np();
21359 rm -f conftest$ac_exeext
21360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21361 (eval $ac_link) 2>&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 ol_cv_pthread_mthreads=yes
21372 echo "$as_me: program exited with status $ac_status" >&5
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21376 ( exit $ac_status )
21377 ol_cv_pthread_mthreads=no
21379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21386 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21387 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21389 if test $ol_cv_pthread_mthreads = yes ; then
21390 ol_link_pthreads="-mthreads"
21391 ol_link_threads=posix
21395 # Pthread try link: -thread (ol_cv_pthread_thread)
21396 if test "$ol_link_threads" = no ; then
21398 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21399 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21400 if test "${ol_cv_pthread_thread+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21406 LIBS="-thread $LIBS"
21408 if test "$cross_compiling" = yes; then
21409 cat >conftest.$ac_ext <<_ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21416 /* pthread test headers */
21417 #include <pthread.h>
21418 #if HAVE_PTHREADS < 7
21422 #define NULL (void*)0
21425 static void *task(p)
21428 return (void *) (p == NULL);
21435 /* pthread test function */
21436 #ifndef PTHREAD_CREATE_DETACHED
21437 #define PTHREAD_CREATE_DETACHED 1
21441 int detach = PTHREAD_CREATE_DETACHED;
21443 #if HAVE_PTHREADS > 4
21444 /* Final pthreads */
21445 pthread_attr_t attr;
21447 status = pthread_attr_init(&attr);
21448 if( status ) return status;
21450 #if HAVE_PTHREADS < 7
21451 status = pthread_attr_setdetachstate(&attr, &detach);
21452 if( status < 0 ) status = errno;
21454 status = pthread_attr_setdetachstate(&attr, detach);
21456 if( status ) return status;
21457 status = pthread_create( &t, &attr, task, NULL );
21458 #if HAVE_PTHREADS < 7
21459 if( status < 0 ) status = errno;
21461 if( status ) return status;
21463 /* Draft 4 pthreads */
21464 status = pthread_create( &t, pthread_attr_default, task, NULL );
21465 if( status ) return errno;
21467 /* give thread a chance to complete */
21468 /* it should remain joinable and hence detachable */
21471 status = pthread_detach( &t );
21472 if( status ) return errno;
21475 #ifdef HAVE_LINUX_THREADS
21476 pthread_kill_other_threads_np();
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21487 (eval $ac_link) 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
21494 { ac_try='test -z "$ac_c_werror_flag"
21495 || test ! -s conftest.err'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; } &&
21501 { ac_try='test -s conftest$ac_exeext'
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 ol_cv_pthread_thread=yes
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21512 ol_cv_pthread_thread=no
21514 rm -f conftest.err conftest.$ac_objext \
21515 conftest$ac_exeext conftest.$ac_ext
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21524 /* pthread test headers */
21525 #include <pthread.h>
21526 #if HAVE_PTHREADS < 7
21530 #define NULL (void*)0
21533 static void *task(p)
21536 return (void *) (p == NULL);
21540 int main(argc, argv)
21545 /* pthread test function */
21546 #ifndef PTHREAD_CREATE_DETACHED
21547 #define PTHREAD_CREATE_DETACHED 1
21551 int detach = PTHREAD_CREATE_DETACHED;
21553 #if HAVE_PTHREADS > 4
21554 /* Final pthreads */
21555 pthread_attr_t attr;
21557 status = pthread_attr_init(&attr);
21558 if( status ) return status;
21560 #if HAVE_PTHREADS < 7
21561 status = pthread_attr_setdetachstate(&attr, &detach);
21562 if( status < 0 ) status = errno;
21564 status = pthread_attr_setdetachstate(&attr, detach);
21566 if( status ) return status;
21567 status = pthread_create( &t, &attr, task, NULL );
21568 #if HAVE_PTHREADS < 7
21569 if( status < 0 ) status = errno;
21571 if( status ) return status;
21573 /* Draft 4 pthreads */
21574 status = pthread_create( &t, pthread_attr_default, task, NULL );
21575 if( status ) return errno;
21577 /* give thread a chance to complete */
21578 /* it should remain joinable and hence detachable */
21581 status = pthread_detach( &t );
21582 if( status ) return errno;
21585 #ifdef HAVE_LINUX_THREADS
21586 pthread_kill_other_threads_np();
21594 rm -f conftest$ac_exeext
21595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21596 (eval $ac_link) 2>&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 ol_cv_pthread_thread=yes
21607 echo "$as_me: program exited with status $ac_status" >&5
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21611 ( exit $ac_status )
21612 ol_cv_pthread_thread=no
21614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21621 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21622 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21624 if test $ol_cv_pthread_thread = yes ; then
21625 ol_link_pthreads="-thread"
21626 ol_link_threads=posix
21631 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21632 if test "$ol_link_threads" = no ; then
21633 # try -lpthread -lmach -lexc -lc_r
21634 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21635 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21636 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21644 if test "$cross_compiling" = yes; then
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21652 /* pthread test headers */
21653 #include <pthread.h>
21654 #if HAVE_PTHREADS < 7
21658 #define NULL (void*)0
21661 static void *task(p)
21664 return (void *) (p == NULL);
21671 /* pthread test function */
21672 #ifndef PTHREAD_CREATE_DETACHED
21673 #define PTHREAD_CREATE_DETACHED 1
21677 int detach = PTHREAD_CREATE_DETACHED;
21679 #if HAVE_PTHREADS > 4
21680 /* Final pthreads */
21681 pthread_attr_t attr;
21683 status = pthread_attr_init(&attr);
21684 if( status ) return status;
21686 #if HAVE_PTHREADS < 7
21687 status = pthread_attr_setdetachstate(&attr, &detach);
21688 if( status < 0 ) status = errno;
21690 status = pthread_attr_setdetachstate(&attr, detach);
21692 if( status ) return status;
21693 status = pthread_create( &t, &attr, task, NULL );
21694 #if HAVE_PTHREADS < 7
21695 if( status < 0 ) status = errno;
21697 if( status ) return status;
21699 /* Draft 4 pthreads */
21700 status = pthread_create( &t, pthread_attr_default, task, NULL );
21701 if( status ) return errno;
21703 /* give thread a chance to complete */
21704 /* it should remain joinable and hence detachable */
21707 status = pthread_detach( &t );
21708 if( status ) return errno;
21711 #ifdef HAVE_LINUX_THREADS
21712 pthread_kill_other_threads_np();
21721 rm -f conftest.$ac_objext conftest$ac_exeext
21722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21723 (eval $ac_link) 2>conftest.er1
21725 grep -v '^ *+' conftest.er1 >conftest.err
21727 cat conftest.err >&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } &&
21730 { ac_try='test -z "$ac_c_werror_flag"
21731 || test ! -s conftest.err'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest$ac_exeext'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21748 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21750 rm -f conftest.err conftest.$ac_objext \
21751 conftest$ac_exeext conftest.$ac_ext
21753 cat >conftest.$ac_ext <<_ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21760 /* pthread test headers */
21761 #include <pthread.h>
21762 #if HAVE_PTHREADS < 7
21766 #define NULL (void*)0
21769 static void *task(p)
21772 return (void *) (p == NULL);
21776 int main(argc, argv)
21781 /* pthread test function */
21782 #ifndef PTHREAD_CREATE_DETACHED
21783 #define PTHREAD_CREATE_DETACHED 1
21787 int detach = PTHREAD_CREATE_DETACHED;
21789 #if HAVE_PTHREADS > 4
21790 /* Final pthreads */
21791 pthread_attr_t attr;
21793 status = pthread_attr_init(&attr);
21794 if( status ) return status;
21796 #if HAVE_PTHREADS < 7
21797 status = pthread_attr_setdetachstate(&attr, &detach);
21798 if( status < 0 ) status = errno;
21800 status = pthread_attr_setdetachstate(&attr, detach);
21802 if( status ) return status;
21803 status = pthread_create( &t, &attr, task, NULL );
21804 #if HAVE_PTHREADS < 7
21805 if( status < 0 ) status = errno;
21807 if( status ) return status;
21809 /* Draft 4 pthreads */
21810 status = pthread_create( &t, pthread_attr_default, task, NULL );
21811 if( status ) return errno;
21813 /* give thread a chance to complete */
21814 /* it should remain joinable and hence detachable */
21817 status = pthread_detach( &t );
21818 if( status ) return errno;
21821 #ifdef HAVE_LINUX_THREADS
21822 pthread_kill_other_threads_np();
21830 rm -f conftest$ac_exeext
21831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21832 (eval $ac_link) 2>&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; }; then
21841 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21843 echo "$as_me: program exited with status $ac_status" >&5
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21847 ( exit $ac_status )
21848 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21857 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21858 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21860 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21861 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21862 ol_link_threads=posix
21866 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21867 if test "$ol_link_threads" = no ; then
21868 # try -lpthread -lmach -lexc
21869 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21870 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21871 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 LIBS="-lpthread -lmach -lexc $LIBS"
21879 if test "$cross_compiling" = yes; then
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21887 /* pthread test headers */
21888 #include <pthread.h>
21889 #if HAVE_PTHREADS < 7
21893 #define NULL (void*)0
21896 static void *task(p)
21899 return (void *) (p == NULL);
21906 /* pthread test function */
21907 #ifndef PTHREAD_CREATE_DETACHED
21908 #define PTHREAD_CREATE_DETACHED 1
21912 int detach = PTHREAD_CREATE_DETACHED;
21914 #if HAVE_PTHREADS > 4
21915 /* Final pthreads */
21916 pthread_attr_t attr;
21918 status = pthread_attr_init(&attr);
21919 if( status ) return status;
21921 #if HAVE_PTHREADS < 7
21922 status = pthread_attr_setdetachstate(&attr, &detach);
21923 if( status < 0 ) status = errno;
21925 status = pthread_attr_setdetachstate(&attr, detach);
21927 if( status ) return status;
21928 status = pthread_create( &t, &attr, task, NULL );
21929 #if HAVE_PTHREADS < 7
21930 if( status < 0 ) status = errno;
21932 if( status ) return status;
21934 /* Draft 4 pthreads */
21935 status = pthread_create( &t, pthread_attr_default, task, NULL );
21936 if( status ) return errno;
21938 /* give thread a chance to complete */
21939 /* it should remain joinable and hence detachable */
21942 status = pthread_detach( &t );
21943 if( status ) return errno;
21946 #ifdef HAVE_LINUX_THREADS
21947 pthread_kill_other_threads_np();
21956 rm -f conftest.$ac_objext conftest$ac_exeext
21957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21958 (eval $ac_link) 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
21965 { ac_try='test -z "$ac_c_werror_flag"
21966 || test ! -s conftest.err'
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; } &&
21972 { ac_try='test -s conftest$ac_exeext'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; }; then
21978 ol_cv_pthread_lpthread_lmach_lexc=yes
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ol_cv_pthread_lpthread_lmach_lexc=no
21985 rm -f conftest.err conftest.$ac_objext \
21986 conftest$ac_exeext conftest.$ac_ext
21988 cat >conftest.$ac_ext <<_ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21995 /* pthread test headers */
21996 #include <pthread.h>
21997 #if HAVE_PTHREADS < 7
22001 #define NULL (void*)0
22004 static void *task(p)
22007 return (void *) (p == NULL);
22011 int main(argc, argv)
22016 /* pthread test function */
22017 #ifndef PTHREAD_CREATE_DETACHED
22018 #define PTHREAD_CREATE_DETACHED 1
22022 int detach = PTHREAD_CREATE_DETACHED;
22024 #if HAVE_PTHREADS > 4
22025 /* Final pthreads */
22026 pthread_attr_t attr;
22028 status = pthread_attr_init(&attr);
22029 if( status ) return status;
22031 #if HAVE_PTHREADS < 7
22032 status = pthread_attr_setdetachstate(&attr, &detach);
22033 if( status < 0 ) status = errno;
22035 status = pthread_attr_setdetachstate(&attr, detach);
22037 if( status ) return status;
22038 status = pthread_create( &t, &attr, task, NULL );
22039 #if HAVE_PTHREADS < 7
22040 if( status < 0 ) status = errno;
22042 if( status ) return status;
22044 /* Draft 4 pthreads */
22045 status = pthread_create( &t, pthread_attr_default, task, NULL );
22046 if( status ) return errno;
22048 /* give thread a chance to complete */
22049 /* it should remain joinable and hence detachable */
22052 status = pthread_detach( &t );
22053 if( status ) return errno;
22056 #ifdef HAVE_LINUX_THREADS
22057 pthread_kill_other_threads_np();
22065 rm -f conftest$ac_exeext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22067 (eval $ac_link) 2>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; }; then
22076 ol_cv_pthread_lpthread_lmach_lexc=yes
22078 echo "$as_me: program exited with status $ac_status" >&5
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22082 ( exit $ac_status )
22083 ol_cv_pthread_lpthread_lmach_lexc=no
22085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22092 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22093 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22095 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22096 ol_link_pthreads="-lpthread -lmach -lexc"
22097 ol_link_threads=posix
22102 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22103 if test "$ol_link_threads" = no ; then
22104 # try -lpthread -Wl,-woff,85
22105 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22106 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22107 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22113 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22115 if test "$cross_compiling" = yes; then
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22123 /* pthread test headers */
22124 #include <pthread.h>
22125 #if HAVE_PTHREADS < 7
22129 #define NULL (void*)0
22132 static void *task(p)
22135 return (void *) (p == NULL);
22142 /* pthread test function */
22143 #ifndef PTHREAD_CREATE_DETACHED
22144 #define PTHREAD_CREATE_DETACHED 1
22148 int detach = PTHREAD_CREATE_DETACHED;
22150 #if HAVE_PTHREADS > 4
22151 /* Final pthreads */
22152 pthread_attr_t attr;
22154 status = pthread_attr_init(&attr);
22155 if( status ) return status;
22157 #if HAVE_PTHREADS < 7
22158 status = pthread_attr_setdetachstate(&attr, &detach);
22159 if( status < 0 ) status = errno;
22161 status = pthread_attr_setdetachstate(&attr, detach);
22163 if( status ) return status;
22164 status = pthread_create( &t, &attr, task, NULL );
22165 #if HAVE_PTHREADS < 7
22166 if( status < 0 ) status = errno;
22168 if( status ) return status;
22170 /* Draft 4 pthreads */
22171 status = pthread_create( &t, pthread_attr_default, task, NULL );
22172 if( status ) return errno;
22174 /* give thread a chance to complete */
22175 /* it should remain joinable and hence detachable */
22178 status = pthread_detach( &t );
22179 if( status ) return errno;
22182 #ifdef HAVE_LINUX_THREADS
22183 pthread_kill_other_threads_np();
22192 rm -f conftest.$ac_objext conftest$ac_exeext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22194 (eval $ac_link) 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
22201 { ac_try='test -z "$ac_c_werror_flag"
22202 || test ! -s conftest.err'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; } &&
22208 { ac_try='test -s conftest$ac_exeext'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ol_cv_pthread_lib_lpthread_woff=yes
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22219 ol_cv_pthread_lib_lpthread_woff=no
22221 rm -f conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
22224 cat >conftest.$ac_ext <<_ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22231 /* pthread test headers */
22232 #include <pthread.h>
22233 #if HAVE_PTHREADS < 7
22237 #define NULL (void*)0
22240 static void *task(p)
22243 return (void *) (p == NULL);
22247 int main(argc, argv)
22252 /* pthread test function */
22253 #ifndef PTHREAD_CREATE_DETACHED
22254 #define PTHREAD_CREATE_DETACHED 1
22258 int detach = PTHREAD_CREATE_DETACHED;
22260 #if HAVE_PTHREADS > 4
22261 /* Final pthreads */
22262 pthread_attr_t attr;
22264 status = pthread_attr_init(&attr);
22265 if( status ) return status;
22267 #if HAVE_PTHREADS < 7
22268 status = pthread_attr_setdetachstate(&attr, &detach);
22269 if( status < 0 ) status = errno;
22271 status = pthread_attr_setdetachstate(&attr, detach);
22273 if( status ) return status;
22274 status = pthread_create( &t, &attr, task, NULL );
22275 #if HAVE_PTHREADS < 7
22276 if( status < 0 ) status = errno;
22278 if( status ) return status;
22280 /* Draft 4 pthreads */
22281 status = pthread_create( &t, pthread_attr_default, task, NULL );
22282 if( status ) return errno;
22284 /* give thread a chance to complete */
22285 /* it should remain joinable and hence detachable */
22288 status = pthread_detach( &t );
22289 if( status ) return errno;
22292 #ifdef HAVE_LINUX_THREADS
22293 pthread_kill_other_threads_np();
22301 rm -f conftest$ac_exeext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303 (eval $ac_link) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ol_cv_pthread_lib_lpthread_woff=yes
22314 echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ( exit $ac_status )
22319 ol_cv_pthread_lib_lpthread_woff=no
22321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22328 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22329 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22331 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22332 ol_link_pthreads="-lpthread -Wl,-woff,85"
22333 ol_link_threads=posix
22338 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22339 if test "$ol_link_threads" = no ; then
22341 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22342 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22343 if test "${ol_cv_pthread_lpthread+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22349 LIBS="-lpthread $LIBS"
22351 if test "$cross_compiling" = yes; then
22352 cat >conftest.$ac_ext <<_ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h. */
22359 /* pthread test headers */
22360 #include <pthread.h>
22361 #if HAVE_PTHREADS < 7
22365 #define NULL (void*)0
22368 static void *task(p)
22371 return (void *) (p == NULL);
22378 /* pthread test function */
22379 #ifndef PTHREAD_CREATE_DETACHED
22380 #define PTHREAD_CREATE_DETACHED 1
22384 int detach = PTHREAD_CREATE_DETACHED;
22386 #if HAVE_PTHREADS > 4
22387 /* Final pthreads */
22388 pthread_attr_t attr;
22390 status = pthread_attr_init(&attr);
22391 if( status ) return status;
22393 #if HAVE_PTHREADS < 7
22394 status = pthread_attr_setdetachstate(&attr, &detach);
22395 if( status < 0 ) status = errno;
22397 status = pthread_attr_setdetachstate(&attr, detach);
22399 if( status ) return status;
22400 status = pthread_create( &t, &attr, task, NULL );
22401 #if HAVE_PTHREADS < 7
22402 if( status < 0 ) status = errno;
22404 if( status ) return status;
22406 /* Draft 4 pthreads */
22407 status = pthread_create( &t, pthread_attr_default, task, NULL );
22408 if( status ) return errno;
22410 /* give thread a chance to complete */
22411 /* it should remain joinable and hence detachable */
22414 status = pthread_detach( &t );
22415 if( status ) return errno;
22418 #ifdef HAVE_LINUX_THREADS
22419 pthread_kill_other_threads_np();
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22430 (eval $ac_link) 2>conftest.er1
22432 grep -v '^ *+' conftest.er1 >conftest.err
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } &&
22437 { ac_try='test -z "$ac_c_werror_flag"
22438 || test ! -s conftest.err'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; } &&
22444 { ac_try='test -s conftest$ac_exeext'
22445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446 (eval $ac_try) 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; }; then
22450 ol_cv_pthread_lpthread=yes
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 ol_cv_pthread_lpthread=no
22457 rm -f conftest.err conftest.$ac_objext \
22458 conftest$ac_exeext conftest.$ac_ext
22460 cat >conftest.$ac_ext <<_ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h. */
22467 /* pthread test headers */
22468 #include <pthread.h>
22469 #if HAVE_PTHREADS < 7
22473 #define NULL (void*)0
22476 static void *task(p)
22479 return (void *) (p == NULL);
22483 int main(argc, argv)
22488 /* pthread test function */
22489 #ifndef PTHREAD_CREATE_DETACHED
22490 #define PTHREAD_CREATE_DETACHED 1
22494 int detach = PTHREAD_CREATE_DETACHED;
22496 #if HAVE_PTHREADS > 4
22497 /* Final pthreads */
22498 pthread_attr_t attr;
22500 status = pthread_attr_init(&attr);
22501 if( status ) return status;
22503 #if HAVE_PTHREADS < 7
22504 status = pthread_attr_setdetachstate(&attr, &detach);
22505 if( status < 0 ) status = errno;
22507 status = pthread_attr_setdetachstate(&attr, detach);
22509 if( status ) return status;
22510 status = pthread_create( &t, &attr, task, NULL );
22511 #if HAVE_PTHREADS < 7
22512 if( status < 0 ) status = errno;
22514 if( status ) return status;
22516 /* Draft 4 pthreads */
22517 status = pthread_create( &t, pthread_attr_default, task, NULL );
22518 if( status ) return errno;
22520 /* give thread a chance to complete */
22521 /* it should remain joinable and hence detachable */
22524 status = pthread_detach( &t );
22525 if( status ) return errno;
22528 #ifdef HAVE_LINUX_THREADS
22529 pthread_kill_other_threads_np();
22537 rm -f conftest$ac_exeext
22538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539 (eval $ac_link) 2>&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; }; then
22548 ol_cv_pthread_lpthread=yes
22550 echo "$as_me: program exited with status $ac_status" >&5
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ( exit $ac_status )
22555 ol_cv_pthread_lpthread=no
22557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22564 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22565 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22567 if test $ol_cv_pthread_lpthread = yes ; then
22568 ol_link_pthreads="-lpthread"
22569 ol_link_threads=posix
22573 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22574 if test "$ol_link_threads" = no ; then
22576 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22577 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22578 if test "${ol_cv_pthread_lc_r+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 if test "$cross_compiling" = yes; then
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22594 /* pthread test headers */
22595 #include <pthread.h>
22596 #if HAVE_PTHREADS < 7
22600 #define NULL (void*)0
22603 static void *task(p)
22606 return (void *) (p == NULL);
22613 /* pthread test function */
22614 #ifndef PTHREAD_CREATE_DETACHED
22615 #define PTHREAD_CREATE_DETACHED 1
22619 int detach = PTHREAD_CREATE_DETACHED;
22621 #if HAVE_PTHREADS > 4
22622 /* Final pthreads */
22623 pthread_attr_t attr;
22625 status = pthread_attr_init(&attr);
22626 if( status ) return status;
22628 #if HAVE_PTHREADS < 7
22629 status = pthread_attr_setdetachstate(&attr, &detach);
22630 if( status < 0 ) status = errno;
22632 status = pthread_attr_setdetachstate(&attr, detach);
22634 if( status ) return status;
22635 status = pthread_create( &t, &attr, task, NULL );
22636 #if HAVE_PTHREADS < 7
22637 if( status < 0 ) status = errno;
22639 if( status ) return status;
22641 /* Draft 4 pthreads */
22642 status = pthread_create( &t, pthread_attr_default, task, NULL );
22643 if( status ) return errno;
22645 /* give thread a chance to complete */
22646 /* it should remain joinable and hence detachable */
22649 status = pthread_detach( &t );
22650 if( status ) return errno;
22653 #ifdef HAVE_LINUX_THREADS
22654 pthread_kill_other_threads_np();
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22665 (eval $ac_link) 2>conftest.er1
22667 grep -v '^ *+' conftest.er1 >conftest.err
22669 cat conftest.err >&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try='test -z "$ac_c_werror_flag"
22673 || test ! -s conftest.err'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; } &&
22679 { ac_try='test -s conftest$ac_exeext'
22680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681 (eval $ac_try) 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 ol_cv_pthread_lc_r=yes
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ol_cv_pthread_lc_r=no
22692 rm -f conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext conftest.$ac_ext
22695 cat >conftest.$ac_ext <<_ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22702 /* pthread test headers */
22703 #include <pthread.h>
22704 #if HAVE_PTHREADS < 7
22708 #define NULL (void*)0
22711 static void *task(p)
22714 return (void *) (p == NULL);
22718 int main(argc, argv)
22723 /* pthread test function */
22724 #ifndef PTHREAD_CREATE_DETACHED
22725 #define PTHREAD_CREATE_DETACHED 1
22729 int detach = PTHREAD_CREATE_DETACHED;
22731 #if HAVE_PTHREADS > 4
22732 /* Final pthreads */
22733 pthread_attr_t attr;
22735 status = pthread_attr_init(&attr);
22736 if( status ) return status;
22738 #if HAVE_PTHREADS < 7
22739 status = pthread_attr_setdetachstate(&attr, &detach);
22740 if( status < 0 ) status = errno;
22742 status = pthread_attr_setdetachstate(&attr, detach);
22744 if( status ) return status;
22745 status = pthread_create( &t, &attr, task, NULL );
22746 #if HAVE_PTHREADS < 7
22747 if( status < 0 ) status = errno;
22749 if( status ) return status;
22751 /* Draft 4 pthreads */
22752 status = pthread_create( &t, pthread_attr_default, task, NULL );
22753 if( status ) return errno;
22755 /* give thread a chance to complete */
22756 /* it should remain joinable and hence detachable */
22759 status = pthread_detach( &t );
22760 if( status ) return errno;
22763 #ifdef HAVE_LINUX_THREADS
22764 pthread_kill_other_threads_np();
22772 rm -f conftest$ac_exeext
22773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22774 (eval $ac_link) 2>&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ol_cv_pthread_lc_r=yes
22785 echo "$as_me: program exited with status $ac_status" >&5
22786 echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 ( exit $ac_status )
22790 ol_cv_pthread_lc_r=no
22792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22799 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22800 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22802 if test $ol_cv_pthread_lc_r = yes ; then
22803 ol_link_pthreads="-lc_r"
22804 ol_link_threads=posix
22809 # Pthread try link: -threads (ol_cv_pthread_threads)
22810 if test "$ol_link_threads" = no ; then
22812 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22813 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22814 if test "${ol_cv_pthread_threads+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 LIBS="-threads $LIBS"
22822 if test "$cross_compiling" = yes; then
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22830 /* pthread test headers */
22831 #include <pthread.h>
22832 #if HAVE_PTHREADS < 7
22836 #define NULL (void*)0
22839 static void *task(p)
22842 return (void *) (p == NULL);
22849 /* pthread test function */
22850 #ifndef PTHREAD_CREATE_DETACHED
22851 #define PTHREAD_CREATE_DETACHED 1
22855 int detach = PTHREAD_CREATE_DETACHED;
22857 #if HAVE_PTHREADS > 4
22858 /* Final pthreads */
22859 pthread_attr_t attr;
22861 status = pthread_attr_init(&attr);
22862 if( status ) return status;
22864 #if HAVE_PTHREADS < 7
22865 status = pthread_attr_setdetachstate(&attr, &detach);
22866 if( status < 0 ) status = errno;
22868 status = pthread_attr_setdetachstate(&attr, detach);
22870 if( status ) return status;
22871 status = pthread_create( &t, &attr, task, NULL );
22872 #if HAVE_PTHREADS < 7
22873 if( status < 0 ) status = errno;
22875 if( status ) return status;
22877 /* Draft 4 pthreads */
22878 status = pthread_create( &t, pthread_attr_default, task, NULL );
22879 if( status ) return errno;
22881 /* give thread a chance to complete */
22882 /* it should remain joinable and hence detachable */
22885 status = pthread_detach( &t );
22886 if( status ) return errno;
22889 #ifdef HAVE_LINUX_THREADS
22890 pthread_kill_other_threads_np();
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901 (eval $ac_link) 2>conftest.er1
22903 grep -v '^ *+' conftest.er1 >conftest.err
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
22908 { ac_try='test -z "$ac_c_werror_flag"
22909 || test ! -s conftest.err'
22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }; } &&
22915 { ac_try='test -s conftest$ac_exeext'
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; }; then
22921 ol_cv_pthread_threads=yes
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 ol_cv_pthread_threads=no
22928 rm -f conftest.err conftest.$ac_objext \
22929 conftest$ac_exeext conftest.$ac_ext
22931 cat >conftest.$ac_ext <<_ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22938 /* pthread test headers */
22939 #include <pthread.h>
22940 #if HAVE_PTHREADS < 7
22944 #define NULL (void*)0
22947 static void *task(p)
22950 return (void *) (p == NULL);
22954 int main(argc, argv)
22959 /* pthread test function */
22960 #ifndef PTHREAD_CREATE_DETACHED
22961 #define PTHREAD_CREATE_DETACHED 1
22965 int detach = PTHREAD_CREATE_DETACHED;
22967 #if HAVE_PTHREADS > 4
22968 /* Final pthreads */
22969 pthread_attr_t attr;
22971 status = pthread_attr_init(&attr);
22972 if( status ) return status;
22974 #if HAVE_PTHREADS < 7
22975 status = pthread_attr_setdetachstate(&attr, &detach);
22976 if( status < 0 ) status = errno;
22978 status = pthread_attr_setdetachstate(&attr, detach);
22980 if( status ) return status;
22981 status = pthread_create( &t, &attr, task, NULL );
22982 #if HAVE_PTHREADS < 7
22983 if( status < 0 ) status = errno;
22985 if( status ) return status;
22987 /* Draft 4 pthreads */
22988 status = pthread_create( &t, pthread_attr_default, task, NULL );
22989 if( status ) return errno;
22991 /* give thread a chance to complete */
22992 /* it should remain joinable and hence detachable */
22995 status = pthread_detach( &t );
22996 if( status ) return errno;
22999 #ifdef HAVE_LINUX_THREADS
23000 pthread_kill_other_threads_np();
23008 rm -f conftest$ac_exeext
23009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23010 (eval $ac_link) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; }; then
23019 ol_cv_pthread_threads=yes
23021 echo "$as_me: program exited with status $ac_status" >&5
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23025 ( exit $ac_status )
23026 ol_cv_pthread_threads=no
23028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23035 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23036 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23038 if test $ol_cv_pthread_threads = yes ; then
23039 ol_link_pthreads="-threads"
23040 ol_link_threads=posix
23045 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23046 if test "$ol_link_threads" = no ; then
23047 # try -lpthreads -lmach -lexc -lc_r
23048 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23049 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23050 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23056 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23058 if test "$cross_compiling" = yes; then
23059 cat >conftest.$ac_ext <<_ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h. */
23066 /* pthread test headers */
23067 #include <pthread.h>
23068 #if HAVE_PTHREADS < 7
23072 #define NULL (void*)0
23075 static void *task(p)
23078 return (void *) (p == NULL);
23085 /* pthread test function */
23086 #ifndef PTHREAD_CREATE_DETACHED
23087 #define PTHREAD_CREATE_DETACHED 1
23091 int detach = PTHREAD_CREATE_DETACHED;
23093 #if HAVE_PTHREADS > 4
23094 /* Final pthreads */
23095 pthread_attr_t attr;
23097 status = pthread_attr_init(&attr);
23098 if( status ) return status;
23100 #if HAVE_PTHREADS < 7
23101 status = pthread_attr_setdetachstate(&attr, &detach);
23102 if( status < 0 ) status = errno;
23104 status = pthread_attr_setdetachstate(&attr, detach);
23106 if( status ) return status;
23107 status = pthread_create( &t, &attr, task, NULL );
23108 #if HAVE_PTHREADS < 7
23109 if( status < 0 ) status = errno;
23111 if( status ) return status;
23113 /* Draft 4 pthreads */
23114 status = pthread_create( &t, pthread_attr_default, task, NULL );
23115 if( status ) return errno;
23117 /* give thread a chance to complete */
23118 /* it should remain joinable and hence detachable */
23121 status = pthread_detach( &t );
23122 if( status ) return errno;
23125 #ifdef HAVE_LINUX_THREADS
23126 pthread_kill_other_threads_np();
23135 rm -f conftest.$ac_objext conftest$ac_exeext
23136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23137 (eval $ac_link) 2>conftest.er1
23139 grep -v '^ *+' conftest.er1 >conftest.err
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } &&
23144 { ac_try='test -z "$ac_c_werror_flag"
23145 || test ! -s conftest.err'
23146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147 (eval $ac_try) 2>&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); }; } &&
23151 { ac_try='test -s conftest$ac_exeext'
23152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153 (eval $ac_try) 2>&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23164 rm -f conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext conftest.$ac_ext
23167 cat >conftest.$ac_ext <<_ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23174 /* pthread test headers */
23175 #include <pthread.h>
23176 #if HAVE_PTHREADS < 7
23180 #define NULL (void*)0
23183 static void *task(p)
23186 return (void *) (p == NULL);
23190 int main(argc, argv)
23195 /* pthread test function */
23196 #ifndef PTHREAD_CREATE_DETACHED
23197 #define PTHREAD_CREATE_DETACHED 1
23201 int detach = PTHREAD_CREATE_DETACHED;
23203 #if HAVE_PTHREADS > 4
23204 /* Final pthreads */
23205 pthread_attr_t attr;
23207 status = pthread_attr_init(&attr);
23208 if( status ) return status;
23210 #if HAVE_PTHREADS < 7
23211 status = pthread_attr_setdetachstate(&attr, &detach);
23212 if( status < 0 ) status = errno;
23214 status = pthread_attr_setdetachstate(&attr, detach);
23216 if( status ) return status;
23217 status = pthread_create( &t, &attr, task, NULL );
23218 #if HAVE_PTHREADS < 7
23219 if( status < 0 ) status = errno;
23221 if( status ) return status;
23223 /* Draft 4 pthreads */
23224 status = pthread_create( &t, pthread_attr_default, task, NULL );
23225 if( status ) return errno;
23227 /* give thread a chance to complete */
23228 /* it should remain joinable and hence detachable */
23231 status = pthread_detach( &t );
23232 if( status ) return errno;
23235 #ifdef HAVE_LINUX_THREADS
23236 pthread_kill_other_threads_np();
23244 rm -f conftest$ac_exeext
23245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23246 (eval $ac_link) 2>&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23257 echo "$as_me: program exited with status $ac_status" >&5
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 ( exit $ac_status )
23262 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23271 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23272 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23274 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23275 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23276 ol_link_threads=posix
23280 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23281 if test "$ol_link_threads" = no ; then
23282 # try -lpthreads -lmach -lexc
23283 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23284 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23285 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23286 echo $ECHO_N "(cached) $ECHO_C" >&6
23291 LIBS="-lpthreads -lmach -lexc $LIBS"
23293 if test "$cross_compiling" = yes; then
23294 cat >conftest.$ac_ext <<_ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h. */
23301 /* pthread test headers */
23302 #include <pthread.h>
23303 #if HAVE_PTHREADS < 7
23307 #define NULL (void*)0
23310 static void *task(p)
23313 return (void *) (p == NULL);
23320 /* pthread test function */
23321 #ifndef PTHREAD_CREATE_DETACHED
23322 #define PTHREAD_CREATE_DETACHED 1
23326 int detach = PTHREAD_CREATE_DETACHED;
23328 #if HAVE_PTHREADS > 4
23329 /* Final pthreads */
23330 pthread_attr_t attr;
23332 status = pthread_attr_init(&attr);
23333 if( status ) return status;
23335 #if HAVE_PTHREADS < 7
23336 status = pthread_attr_setdetachstate(&attr, &detach);
23337 if( status < 0 ) status = errno;
23339 status = pthread_attr_setdetachstate(&attr, detach);
23341 if( status ) return status;
23342 status = pthread_create( &t, &attr, task, NULL );
23343 #if HAVE_PTHREADS < 7
23344 if( status < 0 ) status = errno;
23346 if( status ) return status;
23348 /* Draft 4 pthreads */
23349 status = pthread_create( &t, pthread_attr_default, task, NULL );
23350 if( status ) return errno;
23352 /* give thread a chance to complete */
23353 /* it should remain joinable and hence detachable */
23356 status = pthread_detach( &t );
23357 if( status ) return errno;
23360 #ifdef HAVE_LINUX_THREADS
23361 pthread_kill_other_threads_np();
23370 rm -f conftest.$ac_objext conftest$ac_exeext
23371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23372 (eval $ac_link) 2>conftest.er1
23374 grep -v '^ *+' conftest.er1 >conftest.err
23376 cat conftest.err >&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } &&
23379 { ac_try='test -z "$ac_c_werror_flag"
23380 || test ! -s conftest.err'
23381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382 (eval $ac_try) 2>&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); }; } &&
23386 { ac_try='test -s conftest$ac_exeext'
23387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388 (eval $ac_try) 2>&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; }; then
23392 ol_cv_pthread_lpthreads_lmach_lexc=yes
23394 echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23397 ol_cv_pthread_lpthreads_lmach_lexc=no
23399 rm -f conftest.err conftest.$ac_objext \
23400 conftest$ac_exeext conftest.$ac_ext
23402 cat >conftest.$ac_ext <<_ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23409 /* pthread test headers */
23410 #include <pthread.h>
23411 #if HAVE_PTHREADS < 7
23415 #define NULL (void*)0
23418 static void *task(p)
23421 return (void *) (p == NULL);
23425 int main(argc, argv)
23430 /* pthread test function */
23431 #ifndef PTHREAD_CREATE_DETACHED
23432 #define PTHREAD_CREATE_DETACHED 1
23436 int detach = PTHREAD_CREATE_DETACHED;
23438 #if HAVE_PTHREADS > 4
23439 /* Final pthreads */
23440 pthread_attr_t attr;
23442 status = pthread_attr_init(&attr);
23443 if( status ) return status;
23445 #if HAVE_PTHREADS < 7
23446 status = pthread_attr_setdetachstate(&attr, &detach);
23447 if( status < 0 ) status = errno;
23449 status = pthread_attr_setdetachstate(&attr, detach);
23451 if( status ) return status;
23452 status = pthread_create( &t, &attr, task, NULL );
23453 #if HAVE_PTHREADS < 7
23454 if( status < 0 ) status = errno;
23456 if( status ) return status;
23458 /* Draft 4 pthreads */
23459 status = pthread_create( &t, pthread_attr_default, task, NULL );
23460 if( status ) return errno;
23462 /* give thread a chance to complete */
23463 /* it should remain joinable and hence detachable */
23466 status = pthread_detach( &t );
23467 if( status ) return errno;
23470 #ifdef HAVE_LINUX_THREADS
23471 pthread_kill_other_threads_np();
23479 rm -f conftest$ac_exeext
23480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23481 (eval $ac_link) 2>&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490 ol_cv_pthread_lpthreads_lmach_lexc=yes
23492 echo "$as_me: program exited with status $ac_status" >&5
23493 echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23496 ( exit $ac_status )
23497 ol_cv_pthread_lpthreads_lmach_lexc=no
23499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23506 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23507 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23509 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23510 ol_link_pthreads="-lpthreads -lmach -lexc"
23511 ol_link_threads=posix
23515 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23516 if test "$ol_link_threads" = no ; then
23517 # try -lpthreads -lexc
23518 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23519 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23520 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23526 LIBS="-lpthreads -lexc $LIBS"
23528 if test "$cross_compiling" = yes; then
23529 cat >conftest.$ac_ext <<_ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23536 /* pthread test headers */
23537 #include <pthread.h>
23538 #if HAVE_PTHREADS < 7
23542 #define NULL (void*)0
23545 static void *task(p)
23548 return (void *) (p == NULL);
23555 /* pthread test function */
23556 #ifndef PTHREAD_CREATE_DETACHED
23557 #define PTHREAD_CREATE_DETACHED 1
23561 int detach = PTHREAD_CREATE_DETACHED;
23563 #if HAVE_PTHREADS > 4
23564 /* Final pthreads */
23565 pthread_attr_t attr;
23567 status = pthread_attr_init(&attr);
23568 if( status ) return status;
23570 #if HAVE_PTHREADS < 7
23571 status = pthread_attr_setdetachstate(&attr, &detach);
23572 if( status < 0 ) status = errno;
23574 status = pthread_attr_setdetachstate(&attr, detach);
23576 if( status ) return status;
23577 status = pthread_create( &t, &attr, task, NULL );
23578 #if HAVE_PTHREADS < 7
23579 if( status < 0 ) status = errno;
23581 if( status ) return status;
23583 /* Draft 4 pthreads */
23584 status = pthread_create( &t, pthread_attr_default, task, NULL );
23585 if( status ) return errno;
23587 /* give thread a chance to complete */
23588 /* it should remain joinable and hence detachable */
23591 status = pthread_detach( &t );
23592 if( status ) return errno;
23595 #ifdef HAVE_LINUX_THREADS
23596 pthread_kill_other_threads_np();
23605 rm -f conftest.$ac_objext conftest$ac_exeext
23606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607 (eval $ac_link) 2>conftest.er1
23609 grep -v '^ *+' conftest.er1 >conftest.err
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
23614 { ac_try='test -z "$ac_c_werror_flag"
23615 || test ! -s conftest.err'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest$ac_exeext'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ol_cv_pthread_lpthreads_lexc=yes
23629 echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632 ol_cv_pthread_lpthreads_lexc=no
23634 rm -f conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
23637 cat >conftest.$ac_ext <<_ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23644 /* pthread test headers */
23645 #include <pthread.h>
23646 #if HAVE_PTHREADS < 7
23650 #define NULL (void*)0
23653 static void *task(p)
23656 return (void *) (p == NULL);
23660 int main(argc, argv)
23665 /* pthread test function */
23666 #ifndef PTHREAD_CREATE_DETACHED
23667 #define PTHREAD_CREATE_DETACHED 1
23671 int detach = PTHREAD_CREATE_DETACHED;
23673 #if HAVE_PTHREADS > 4
23674 /* Final pthreads */
23675 pthread_attr_t attr;
23677 status = pthread_attr_init(&attr);
23678 if( status ) return status;
23680 #if HAVE_PTHREADS < 7
23681 status = pthread_attr_setdetachstate(&attr, &detach);
23682 if( status < 0 ) status = errno;
23684 status = pthread_attr_setdetachstate(&attr, detach);
23686 if( status ) return status;
23687 status = pthread_create( &t, &attr, task, NULL );
23688 #if HAVE_PTHREADS < 7
23689 if( status < 0 ) status = errno;
23691 if( status ) return status;
23693 /* Draft 4 pthreads */
23694 status = pthread_create( &t, pthread_attr_default, task, NULL );
23695 if( status ) return errno;
23697 /* give thread a chance to complete */
23698 /* it should remain joinable and hence detachable */
23701 status = pthread_detach( &t );
23702 if( status ) return errno;
23705 #ifdef HAVE_LINUX_THREADS
23706 pthread_kill_other_threads_np();
23714 rm -f conftest$ac_exeext
23715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23716 (eval $ac_link) 2>&5
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 ol_cv_pthread_lpthreads_lexc=yes
23727 echo "$as_me: program exited with status $ac_status" >&5
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23731 ( exit $ac_status )
23732 ol_cv_pthread_lpthreads_lexc=no
23734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23741 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23742 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23744 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23745 ol_link_pthreads="-lpthreads -lexc"
23746 ol_link_threads=posix
23751 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23752 if test "$ol_link_threads" = no ; then
23754 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23755 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23756 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23757 echo $ECHO_N "(cached) $ECHO_C" >&6
23762 LIBS="-lpthreads $LIBS"
23764 if test "$cross_compiling" = yes; then
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23772 /* pthread test headers */
23773 #include <pthread.h>
23774 #if HAVE_PTHREADS < 7
23778 #define NULL (void*)0
23781 static void *task(p)
23784 return (void *) (p == NULL);
23791 /* pthread test function */
23792 #ifndef PTHREAD_CREATE_DETACHED
23793 #define PTHREAD_CREATE_DETACHED 1
23797 int detach = PTHREAD_CREATE_DETACHED;
23799 #if HAVE_PTHREADS > 4
23800 /* Final pthreads */
23801 pthread_attr_t attr;
23803 status = pthread_attr_init(&attr);
23804 if( status ) return status;
23806 #if HAVE_PTHREADS < 7
23807 status = pthread_attr_setdetachstate(&attr, &detach);
23808 if( status < 0 ) status = errno;
23810 status = pthread_attr_setdetachstate(&attr, detach);
23812 if( status ) return status;
23813 status = pthread_create( &t, &attr, task, NULL );
23814 #if HAVE_PTHREADS < 7
23815 if( status < 0 ) status = errno;
23817 if( status ) return status;
23819 /* Draft 4 pthreads */
23820 status = pthread_create( &t, pthread_attr_default, task, NULL );
23821 if( status ) return errno;
23823 /* give thread a chance to complete */
23824 /* it should remain joinable and hence detachable */
23827 status = pthread_detach( &t );
23828 if( status ) return errno;
23831 #ifdef HAVE_LINUX_THREADS
23832 pthread_kill_other_threads_np();
23841 rm -f conftest.$ac_objext conftest$ac_exeext
23842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23843 (eval $ac_link) 2>conftest.er1
23845 grep -v '^ *+' conftest.er1 >conftest.err
23847 cat conftest.err >&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } &&
23850 { ac_try='test -z "$ac_c_werror_flag"
23851 || test ! -s conftest.err'
23852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; } &&
23857 { ac_try='test -s conftest$ac_exeext'
23858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859 (eval $ac_try) 2>&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23863 ol_cv_pthread_lib_lpthreads=yes
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 ol_cv_pthread_lib_lpthreads=no
23870 rm -f conftest.err conftest.$ac_objext \
23871 conftest$ac_exeext conftest.$ac_ext
23873 cat >conftest.$ac_ext <<_ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h. */
23880 /* pthread test headers */
23881 #include <pthread.h>
23882 #if HAVE_PTHREADS < 7
23886 #define NULL (void*)0
23889 static void *task(p)
23892 return (void *) (p == NULL);
23896 int main(argc, argv)
23901 /* pthread test function */
23902 #ifndef PTHREAD_CREATE_DETACHED
23903 #define PTHREAD_CREATE_DETACHED 1
23907 int detach = PTHREAD_CREATE_DETACHED;
23909 #if HAVE_PTHREADS > 4
23910 /* Final pthreads */
23911 pthread_attr_t attr;
23913 status = pthread_attr_init(&attr);
23914 if( status ) return status;
23916 #if HAVE_PTHREADS < 7
23917 status = pthread_attr_setdetachstate(&attr, &detach);
23918 if( status < 0 ) status = errno;
23920 status = pthread_attr_setdetachstate(&attr, detach);
23922 if( status ) return status;
23923 status = pthread_create( &t, &attr, task, NULL );
23924 #if HAVE_PTHREADS < 7
23925 if( status < 0 ) status = errno;
23927 if( status ) return status;
23929 /* Draft 4 pthreads */
23930 status = pthread_create( &t, pthread_attr_default, task, NULL );
23931 if( status ) return errno;
23933 /* give thread a chance to complete */
23934 /* it should remain joinable and hence detachable */
23937 status = pthread_detach( &t );
23938 if( status ) return errno;
23941 #ifdef HAVE_LINUX_THREADS
23942 pthread_kill_other_threads_np();
23950 rm -f conftest$ac_exeext
23951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23952 (eval $ac_link) 2>&5
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957 (eval $ac_try) 2>&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23961 ol_cv_pthread_lib_lpthreads=yes
23963 echo "$as_me: program exited with status $ac_status" >&5
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23967 ( exit $ac_status )
23968 ol_cv_pthread_lib_lpthreads=no
23970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23977 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23978 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23980 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23981 ol_link_pthreads="-lpthreads"
23982 ol_link_threads=posix
23987 if test $ol_link_threads != no ; then
23988 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23990 save_CPPFLAGS="$CPPFLAGS"
23992 LIBS="$LTHREAD_LIBS $LIBS"
23997 for ac_func in sched_yield pthread_yield thr_yield
23999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24000 echo "$as_me:$LINENO: checking for $ac_func" >&5
24001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24002 if eval "test \"\${$as_ac_var+set}\" = set"; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24005 cat >conftest.$ac_ext <<_ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24013 #define $ac_func innocuous_$ac_func
24015 /* System header to define __stub macros and hopefully few prototypes,
24016 which can conflict with char $ac_func (); below.
24017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24018 <limits.h> exists even on freestanding compilers. */
24021 # include <limits.h>
24023 # include <assert.h>
24028 /* Override any gcc2 internal prototype to avoid an error. */
24033 /* We use char because int might match the return type of a gcc2
24034 builtin and then its argument prototype would still apply. */
24036 /* The GNU C library defines this for functions which it implements
24037 to always fail with ENOSYS. Some functions are actually named
24038 something starting with __ and the normal name is an alias. */
24039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24042 char (*f) () = $ac_func;
24051 return f != $ac_func;
24056 rm -f conftest.$ac_objext conftest$ac_exeext
24057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24058 (eval $ac_link) 2>conftest.er1
24060 grep -v '^ *+' conftest.er1 >conftest.err
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
24065 { ac_try='test -z "$ac_c_werror_flag"
24066 || test ! -s conftest.err'
24067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24068 (eval $ac_try) 2>&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); }; } &&
24072 { ac_try='test -s conftest$ac_exeext'
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
24078 eval "$as_ac_var=yes"
24080 echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24083 eval "$as_ac_var=no"
24085 rm -f conftest.err conftest.$ac_objext \
24086 conftest$ac_exeext conftest.$ac_ext
24088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24090 if test `eval echo '${'$as_ac_var'}'` = yes; then
24091 cat >>confdefs.h <<_ACEOF
24092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24099 if test $ac_cv_func_sched_yield = no &&
24100 test $ac_cv_func_pthread_yield = no &&
24101 test $ac_cv_func_thr_yield = no ; then
24102 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24103 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24104 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24105 echo $ECHO_N "(cached) $ECHO_C" >&6
24107 ac_check_lib_save_LIBS=$LIBS
24109 cat >conftest.$ac_ext <<_ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h. */
24116 /* Override any gcc2 internal prototype to avoid an error. */
24120 /* We use char because int might match the return type of a gcc2
24121 builtin and then its argument prototype would still apply. */
24122 char sched_yield ();
24131 rm -f conftest.$ac_objext conftest$ac_exeext
24132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24133 (eval $ac_link) 2>conftest.er1
24135 grep -v '^ *+' conftest.er1 >conftest.err
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } &&
24140 { ac_try='test -z "$ac_c_werror_flag"
24141 || test ! -s conftest.err'
24142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143 (eval $ac_try) 2>&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); }; } &&
24147 { ac_try='test -s conftest$ac_exeext'
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; }; then
24153 ac_cv_lib_rt_sched_yield=yes
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 ac_cv_lib_rt_sched_yield=no
24160 rm -f conftest.err conftest.$ac_objext \
24161 conftest$ac_exeext conftest.$ac_ext
24162 LIBS=$ac_check_lib_save_LIBS
24164 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24165 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24166 if test $ac_cv_lib_rt_sched_yield = yes; then
24167 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24169 cat >>confdefs.h <<\_ACEOF
24170 #define HAVE_SCHED_YIELD 1
24173 ac_cv_func_sched_yield=yes
24175 ac_cv_func_sched_yield=no
24179 if test $ac_cv_func_sched_yield = no &&
24180 test $ac_cv_func_pthread_yield = no &&
24181 test "$ac_cv_func_thr_yield" = no ; then
24182 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24183 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24188 for ac_func in pthread_kill pthread_rwlock_destroy
24190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24191 echo "$as_me:$LINENO: checking for $ac_func" >&5
24192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24193 if eval "test \"\${$as_ac_var+set}\" = set"; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24196 cat >conftest.$ac_ext <<_ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24204 #define $ac_func innocuous_$ac_func
24206 /* System header to define __stub macros and hopefully few prototypes,
24207 which can conflict with char $ac_func (); below.
24208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24209 <limits.h> exists even on freestanding compilers. */
24212 # include <limits.h>
24214 # include <assert.h>
24219 /* Override any gcc2 internal prototype to avoid an error. */
24224 /* We use char because int might match the return type of a gcc2
24225 builtin and then its argument prototype would still apply. */
24227 /* The GNU C library defines this for functions which it implements
24228 to always fail with ENOSYS. Some functions are actually named
24229 something starting with __ and the normal name is an alias. */
24230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24233 char (*f) () = $ac_func;
24242 return f != $ac_func;
24247 rm -f conftest.$ac_objext conftest$ac_exeext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24249 (eval $ac_link) 2>conftest.er1
24251 grep -v '^ *+' conftest.er1 >conftest.err
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } &&
24256 { ac_try='test -z "$ac_c_werror_flag"
24257 || test ! -s conftest.err'
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; } &&
24263 { ac_try='test -s conftest$ac_exeext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 eval "$as_ac_var=yes"
24271 echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24274 eval "$as_ac_var=no"
24276 rm -f conftest.err conftest.$ac_objext \
24277 conftest$ac_exeext conftest.$ac_ext
24279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24281 if test `eval echo '${'$as_ac_var'}'` = yes; then
24282 cat >>confdefs.h <<_ACEOF
24283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24290 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24291 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24292 if test "${ol_cv_func_pthread_detach+set}" = set; then
24293 echo $ECHO_N "(cached) $ECHO_C" >&6
24296 cat >conftest.$ac_ext <<_ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24303 #include <pthread.h>
24305 #define NULL (void*)0
24311 pthread_detach(NULL);
24316 rm -f conftest.$ac_objext conftest$ac_exeext
24317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24318 (eval $ac_link) 2>conftest.er1
24320 grep -v '^ *+' conftest.er1 >conftest.err
24322 cat conftest.err >&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } &&
24325 { ac_try='test -z "$ac_c_werror_flag"
24326 || test ! -s conftest.err'
24327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328 (eval $ac_try) 2>&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest$ac_exeext'
24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334 (eval $ac_try) 2>&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; }; then
24338 ol_cv_func_pthread_detach=yes
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24343 ol_cv_func_pthread_detach=no
24345 rm -f conftest.err conftest.$ac_objext \
24346 conftest$ac_exeext conftest.$ac_ext
24349 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24350 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24352 if test $ol_cv_func_pthread_detach = no ; then
24353 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24354 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24355 { (exit 1); exit 1; }; }
24359 cat >>confdefs.h <<\_ACEOF
24360 #define HAVE_PTHREAD_DETACH 1
24369 pthread_setconcurrency \
24370 pthread_getconcurrency \
24371 thr_setconcurrency \
24372 thr_getconcurrency \
24375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24376 echo "$as_me:$LINENO: checking for $ac_func" >&5
24377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24378 if eval "test \"\${$as_ac_var+set}\" = set"; then
24379 echo $ECHO_N "(cached) $ECHO_C" >&6
24381 cat >conftest.$ac_ext <<_ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h. */
24387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24389 #define $ac_func innocuous_$ac_func
24391 /* System header to define __stub macros and hopefully few prototypes,
24392 which can conflict with char $ac_func (); below.
24393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394 <limits.h> exists even on freestanding compilers. */
24397 # include <limits.h>
24399 # include <assert.h>
24404 /* Override any gcc2 internal prototype to avoid an error. */
24409 /* We use char because int might match the return type of a gcc2
24410 builtin and then its argument prototype would still apply. */
24412 /* The GNU C library defines this for functions which it implements
24413 to always fail with ENOSYS. Some functions are actually named
24414 something starting with __ and the normal name is an alias. */
24415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24418 char (*f) () = $ac_func;
24427 return f != $ac_func;
24432 rm -f conftest.$ac_objext conftest$ac_exeext
24433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24434 (eval $ac_link) 2>conftest.er1
24436 grep -v '^ *+' conftest.er1 >conftest.err
24438 cat conftest.err >&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
24441 { ac_try='test -z "$ac_c_werror_flag"
24442 || test ! -s conftest.err'
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; } &&
24448 { ac_try='test -s conftest$ac_exeext'
24449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450 (eval $ac_try) 2>&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); }; }; then
24454 eval "$as_ac_var=yes"
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 eval "$as_ac_var=no"
24461 rm -f conftest.err conftest.$ac_objext \
24462 conftest$ac_exeext conftest.$ac_ext
24464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24466 if test `eval echo '${'$as_ac_var'}'` = yes; then
24467 cat >>confdefs.h <<_ACEOF
24468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24477 for ac_func in pthread_kill_other_threads_np
24479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24480 echo "$as_me:$LINENO: checking for $ac_func" >&5
24481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24482 if eval "test \"\${$as_ac_var+set}\" = set"; then
24483 echo $ECHO_N "(cached) $ECHO_C" >&6
24485 cat >conftest.$ac_ext <<_ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24493 #define $ac_func innocuous_$ac_func
24495 /* System header to define __stub macros and hopefully few prototypes,
24496 which can conflict with char $ac_func (); below.
24497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24498 <limits.h> exists even on freestanding compilers. */
24501 # include <limits.h>
24503 # include <assert.h>
24508 /* Override any gcc2 internal prototype to avoid an error. */
24513 /* We use char because int might match the return type of a gcc2
24514 builtin and then its argument prototype would still apply. */
24516 /* The GNU C library defines this for functions which it implements
24517 to always fail with ENOSYS. Some functions are actually named
24518 something starting with __ and the normal name is an alias. */
24519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24522 char (*f) () = $ac_func;
24531 return f != $ac_func;
24536 rm -f conftest.$ac_objext conftest$ac_exeext
24537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24538 (eval $ac_link) 2>conftest.er1
24540 grep -v '^ *+' conftest.er1 >conftest.err
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } &&
24545 { ac_try='test -z "$ac_c_werror_flag"
24546 || test ! -s conftest.err'
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; } &&
24552 { ac_try='test -s conftest$ac_exeext'
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; }; then
24558 eval "$as_ac_var=yes"
24560 echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24563 eval "$as_ac_var=no"
24565 rm -f conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24570 if test `eval echo '${'$as_ac_var'}'` = yes; then
24571 cat >>confdefs.h <<_ACEOF
24572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24578 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24579 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24580 if test "${ol_cv_sys_linux_threads+set}" = set; then
24581 echo $ECHO_N "(cached) $ECHO_C" >&6
24583 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24585 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24586 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24591 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24592 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24593 if test "${ol_cv_linux_threads+set}" = set; then
24594 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 if test $ol_cv_header_linux_threads = yes &&
24598 test $ol_cv_sys_linux_threads = yes; then
24599 ol_cv_linux_threads=yes
24600 elif test $ol_cv_header_linux_threads = no &&
24601 test $ol_cv_sys_linux_threads = no; then
24602 ol_cv_linux_threads=no
24604 ol_cv_linux_threads=error
24608 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24609 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24612 if test $ol_cv_linux_threads = error; then
24613 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24614 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24615 { (exit 1); exit 1; }; };
24618 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24619 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24620 if test "${ol_cv_pthread_create_works+set}" = set; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
24624 if test "$cross_compiling" = yes; then
24625 ol_cv_pthread_create_works=yes
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24634 /* pthread test headers */
24635 #include <pthread.h>
24636 #if HAVE_PTHREADS < 7
24640 #define NULL (void*)0
24643 static void *task(p)
24646 return (void *) (p == NULL);
24650 int main(argc, argv)
24655 /* pthread test function */
24656 #ifndef PTHREAD_CREATE_DETACHED
24657 #define PTHREAD_CREATE_DETACHED 1
24661 int detach = PTHREAD_CREATE_DETACHED;
24663 #if HAVE_PTHREADS > 4
24664 /* Final pthreads */
24665 pthread_attr_t attr;
24667 status = pthread_attr_init(&attr);
24668 if( status ) return status;
24670 #if HAVE_PTHREADS < 7
24671 status = pthread_attr_setdetachstate(&attr, &detach);
24672 if( status < 0 ) status = errno;
24674 status = pthread_attr_setdetachstate(&attr, detach);
24676 if( status ) return status;
24677 status = pthread_create( &t, &attr, task, NULL );
24678 #if HAVE_PTHREADS < 7
24679 if( status < 0 ) status = errno;
24681 if( status ) return status;
24683 /* Draft 4 pthreads */
24684 status = pthread_create( &t, pthread_attr_default, task, NULL );
24685 if( status ) return errno;
24687 /* give thread a chance to complete */
24688 /* it should remain joinable and hence detachable */
24691 status = pthread_detach( &t );
24692 if( status ) return errno;
24695 #ifdef HAVE_LINUX_THREADS
24696 pthread_kill_other_threads_np();
24704 rm -f conftest$ac_exeext
24705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24706 (eval $ac_link) 2>&5
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24711 (eval $ac_try) 2>&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); }; }; then
24715 ol_cv_pthread_create_works=yes
24717 echo "$as_me: program exited with status $ac_status" >&5
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24721 ( exit $ac_status )
24722 ol_cv_pthread_create_works=no
24724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24727 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24728 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24730 if test $ol_cv_pthread_create_works = no ; then
24731 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24732 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24733 { (exit 1); exit 1; }; }
24736 if test $ol_with_yielding_select = auto ; then
24737 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24738 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24739 if test "${ol_cv_pthread_select_yields+set}" = set; then
24740 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 if test "$cross_compiling" = yes; then
24744 ol_cv_pthread_select_yields=cross
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24753 #include <sys/types.h>
24754 #include <sys/time.h>
24755 #include <unistd.h>
24756 #include <pthread.h>
24758 #define NULL (void*) 0
24761 static int fildes[2];
24763 static void *task(p)
24775 FD_SET(fildes[0], &rfds);
24777 /* we're not interested in any fds */
24778 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24785 exit(0); /* if we exit here, the select blocked the whole process */
24788 int main(argc, argv)
24794 /* create a pipe to select */
24795 if(pipe(&fildes[0])) {
24800 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24801 (void) pthread_setconcurrency(2);
24803 #ifdef HAVE_THR_SETCONCURRENCY
24804 /* Set Solaris LWP concurrency to 2 */
24805 thr_setconcurrency(2);
24809 #if HAVE_PTHREADS < 6
24810 pthread_create(&t, pthread_attr_default, task, NULL);
24812 pthread_create(&t, NULL, task, NULL);
24815 /* make sure task runs first */
24818 #elif defined( HAVE_SCHED_YIELD )
24820 #elif defined( HAVE_PTHREAD_YIELD )
24827 rm -f conftest$ac_exeext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24829 (eval $ac_link) 2>&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 (eval $ac_try) 2>&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); }; }; then
24838 ol_cv_pthread_select_yields=no
24840 echo "$as_me: program exited with status $ac_status" >&5
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24844 ( exit $ac_status )
24845 ol_cv_pthread_select_yields=yes
24847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24850 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24851 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24853 if test $ol_cv_pthread_select_yields = cross ; then
24854 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24855 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24856 { (exit 1); exit 1; }; }
24859 if test $ol_cv_pthread_select_yields = yes ; then
24860 ol_with_yielding_select=yes
24864 CPPFLAGS="$save_CPPFLAGS"
24867 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24868 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24869 { (exit 1); exit 1; }; }
24873 if test $ol_with_threads = posix ; then
24874 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24875 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24876 { (exit 1); exit 1; }; }
24881 case $ol_with_threads in auto | yes | mach)
24885 for ac_header in mach/cthreads.h cthreads.h
24887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24889 echo "$as_me:$LINENO: checking for $ac_header" >&5
24890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24897 # Is the header compilable?
24898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24900 cat >conftest.$ac_ext <<_ACEOF
24903 cat confdefs.h >>conftest.$ac_ext
24904 cat >>conftest.$ac_ext <<_ACEOF
24905 /* end confdefs.h. */
24906 $ac_includes_default
24907 #include <$ac_header>
24909 rm -f conftest.$ac_objext
24910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24911 (eval $ac_compile) 2>conftest.er1
24913 grep -v '^ *+' conftest.er1 >conftest.err
24915 cat conftest.err >&5
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); } &&
24918 { ac_try='test -z "$ac_c_werror_flag"
24919 || test ! -s conftest.err'
24920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24921 (eval $ac_try) 2>&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); }; } &&
24925 { ac_try='test -s conftest.$ac_objext'
24926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24927 (eval $ac_try) 2>&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); }; }; then
24931 ac_header_compiler=yes
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24936 ac_header_compiler=no
24938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24940 echo "${ECHO_T}$ac_header_compiler" >&6
24942 # Is the header present?
24943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24945 cat >conftest.$ac_ext <<_ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h. */
24951 #include <$ac_header>
24953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24956 grep -v '^ *+' conftest.er1 >conftest.err
24958 cat conftest.err >&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } >/dev/null; then
24961 if test -s conftest.err; then
24962 ac_cpp_err=$ac_c_preproc_warn_flag
24963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24970 if test -z "$ac_cpp_err"; then
24971 ac_header_preproc=yes
24973 echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24976 ac_header_preproc=no
24978 rm -f conftest.err conftest.$ac_ext
24979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24980 echo "${ECHO_T}$ac_header_preproc" >&6
24982 # So? What about this header?
24983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24989 ac_header_preproc=yes
24992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25006 ## ------------------------------------------ ##
25007 ## Report this to the AC_PACKAGE_NAME lists. ##
25008 ## ------------------------------------------ ##
25011 sed "s/^/$as_me: WARNING: /" >&2
25014 echo "$as_me:$LINENO: checking for $ac_header" >&5
25015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 eval "$as_ac_Header=\$ac_header_preproc"
25021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25026 cat >>confdefs.h <<_ACEOF
25027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25034 if test $ac_cv_header_mach_cthreads_h = yes ; then
25035 ol_with_threads=found
25037 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25038 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25039 if test "${ac_cv_func_cthread_fork+set}" = set; then
25040 echo $ECHO_N "(cached) $ECHO_C" >&6
25042 cat >conftest.$ac_ext <<_ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h. */
25048 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25050 #define cthread_fork innocuous_cthread_fork
25052 /* System header to define __stub macros and hopefully few prototypes,
25053 which can conflict with char cthread_fork (); below.
25054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25055 <limits.h> exists even on freestanding compilers. */
25058 # include <limits.h>
25060 # include <assert.h>
25063 #undef cthread_fork
25065 /* Override any gcc2 internal prototype to avoid an error. */
25070 /* We use char because int might match the return type of a gcc2
25071 builtin and then its argument prototype would still apply. */
25072 char cthread_fork ();
25073 /* The GNU C library defines this for functions which it implements
25074 to always fail with ENOSYS. Some functions are actually named
25075 something starting with __ and the normal name is an alias. */
25076 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25079 char (*f) () = cthread_fork;
25088 return f != cthread_fork;
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25095 (eval $ac_link) 2>conftest.er1
25097 grep -v '^ *+' conftest.er1 >conftest.err
25099 cat conftest.err >&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } &&
25102 { ac_try='test -z "$ac_c_werror_flag"
25103 || test ! -s conftest.err'
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest$ac_exeext'
25110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111 (eval $ac_try) 2>&5
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; }; then
25115 ac_cv_func_cthread_fork=yes
25117 echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25120 ac_cv_func_cthread_fork=no
25122 rm -f conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
25125 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25126 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25127 if test $ac_cv_func_cthread_fork = yes; then
25128 ol_link_threads=yes
25132 if test $ol_link_threads = no ; then
25133 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25134 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25135 if test "${ol_cv_cthread_all_load+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25140 LIBS="-all_load $LIBS"
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 #include <mach/cthreads.h>
25152 cthread_fork((void *)0, (void *)0);
25158 rm -f conftest.$ac_objext conftest$ac_exeext
25159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160 (eval $ac_link) 2>conftest.er1
25162 grep -v '^ *+' conftest.er1 >conftest.err
25164 cat conftest.err >&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); } &&
25167 { ac_try='test -z "$ac_c_werror_flag"
25168 || test ! -s conftest.err'
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; } &&
25174 { ac_try='test -s conftest$ac_exeext'
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; }; then
25180 ol_cv_cthread_all_load=yes
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25185 ol_cv_cthread_all_load=no
25187 rm -f conftest.err conftest.$ac_objext \
25188 conftest$ac_exeext conftest.$ac_ext
25192 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25193 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25195 if test $ol_cv_cthread_all_load = yes ; then
25196 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25197 ol_link_threads=mach
25198 ol_with_threads=found
25202 elif test $ac_cv_header_cthreads_h = yes ; then
25204 ol_with_threads=found
25207 LIBS="$LIBS -lthreads"
25208 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25209 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25210 if test "${ac_cv_func_cthread_fork+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25213 cat >conftest.$ac_ext <<_ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h. */
25219 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25221 #define cthread_fork innocuous_cthread_fork
25223 /* System header to define __stub macros and hopefully few prototypes,
25224 which can conflict with char cthread_fork (); below.
25225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25226 <limits.h> exists even on freestanding compilers. */
25229 # include <limits.h>
25231 # include <assert.h>
25234 #undef cthread_fork
25236 /* Override any gcc2 internal prototype to avoid an error. */
25241 /* We use char because int might match the return type of a gcc2
25242 builtin and then its argument prototype would still apply. */
25243 char cthread_fork ();
25244 /* The GNU C library defines this for functions which it implements
25245 to always fail with ENOSYS. Some functions are actually named
25246 something starting with __ and the normal name is an alias. */
25247 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25250 char (*f) () = cthread_fork;
25259 return f != cthread_fork;
25264 rm -f conftest.$ac_objext conftest$ac_exeext
25265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25266 (eval $ac_link) 2>conftest.er1
25268 grep -v '^ *+' conftest.er1 >conftest.err
25270 cat conftest.err >&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); } &&
25273 { ac_try='test -z "$ac_c_werror_flag"
25274 || test ! -s conftest.err'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; } &&
25280 { ac_try='test -s conftest$ac_exeext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286 ac_cv_func_cthread_fork=yes
25288 echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25291 ac_cv_func_cthread_fork=no
25293 rm -f conftest.err conftest.$ac_objext \
25294 conftest$ac_exeext conftest.$ac_ext
25296 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25297 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25298 if test $ac_cv_func_cthread_fork = yes; then
25299 ol_link_threads=yes
25304 if test $ol_link_threads = yes ; then
25305 LTHREAD_LIBS="-lthreads"
25306 ol_link_threads=mach
25307 ol_with_threads=found
25309 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25310 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25311 { (exit 1); exit 1; }; }
25314 elif test $ol_with_threads = mach ; then
25315 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25316 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25317 { (exit 1); exit 1; }; }
25320 if test $ol_link_threads = mach ; then
25322 cat >>confdefs.h <<\_ACEOF
25323 #define HAVE_MACH_CTHREADS 1
25326 elif test $ol_with_threads = found ; then
25327 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25328 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25329 { (exit 1); exit 1; }; }
25334 case $ol_with_threads in auto | yes | pth)
25337 for ac_header in pth.h
25339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25341 echo "$as_me:$LINENO: checking for $ac_header" >&5
25342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25344 echo $ECHO_N "(cached) $ECHO_C" >&6
25346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25349 # Is the header compilable?
25350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25352 cat >conftest.$ac_ext <<_ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 $ac_includes_default
25359 #include <$ac_header>
25361 rm -f conftest.$ac_objext
25362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25363 (eval $ac_compile) 2>conftest.er1
25365 grep -v '^ *+' conftest.er1 >conftest.err
25367 cat conftest.err >&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); } &&
25370 { ac_try='test -z "$ac_c_werror_flag"
25371 || test ! -s conftest.err'
25372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373 (eval $ac_try) 2>&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; } &&
25377 { ac_try='test -s conftest.$ac_objext'
25378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379 (eval $ac_try) 2>&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); }; }; then
25383 ac_header_compiler=yes
25385 echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25388 ac_header_compiler=no
25390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25392 echo "${ECHO_T}$ac_header_compiler" >&6
25394 # Is the header present?
25395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25397 cat >conftest.$ac_ext <<_ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25403 #include <$ac_header>
25405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25408 grep -v '^ *+' conftest.er1 >conftest.err
25410 cat conftest.err >&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } >/dev/null; then
25413 if test -s conftest.err; then
25414 ac_cpp_err=$ac_c_preproc_warn_flag
25415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25422 if test -z "$ac_cpp_err"; then
25423 ac_header_preproc=yes
25425 echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25428 ac_header_preproc=no
25430 rm -f conftest.err conftest.$ac_ext
25431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25432 echo "${ECHO_T}$ac_header_preproc" >&6
25434 # So? What about this header?
25435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25441 ac_header_preproc=yes
25444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25458 ## ------------------------------------------ ##
25459 ## Report this to the AC_PACKAGE_NAME lists. ##
25460 ## ------------------------------------------ ##
25463 sed "s/^/$as_me: WARNING: /" >&2
25466 echo "$as_me:$LINENO: checking for $ac_header" >&5
25467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25469 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 eval "$as_ac_Header=\$ac_header_preproc"
25473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25478 cat >>confdefs.h <<_ACEOF
25479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25487 if test $ac_cv_header_pth_h = yes ; then
25488 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25489 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25490 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25493 ac_check_lib_save_LIBS=$LIBS
25495 cat >conftest.$ac_ext <<_ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25502 /* Override any gcc2 internal prototype to avoid an error. */
25506 /* We use char because int might match the return type of a gcc2
25507 builtin and then its argument prototype would still apply. */
25508 char pth_version ();
25517 rm -f conftest.$ac_objext conftest$ac_exeext
25518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25519 (eval $ac_link) 2>conftest.er1
25521 grep -v '^ *+' conftest.er1 >conftest.err
25523 cat conftest.err >&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); } &&
25526 { ac_try='test -z "$ac_c_werror_flag"
25527 || test ! -s conftest.err'
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; } &&
25533 { ac_try='test -s conftest$ac_exeext'
25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; }; then
25539 ac_cv_lib_pth_pth_version=yes
25541 echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25544 ac_cv_lib_pth_pth_version=no
25546 rm -f conftest.err conftest.$ac_objext \
25547 conftest$ac_exeext conftest.$ac_ext
25548 LIBS=$ac_check_lib_save_LIBS
25550 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25551 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25552 if test $ac_cv_lib_pth_pth_version = yes; then
25559 if test $have_pth = yes ; then
25561 cat >>confdefs.h <<\_ACEOF
25562 #define HAVE_GNU_PTH 1
25565 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25566 ol_link_threads=pth
25567 ol_with_threads=found
25569 if test $ol_with_yielding_select = auto ; then
25570 ol_with_yielding_select=yes
25577 case $ol_with_threads in auto | yes | lwp)
25581 for ac_header in thread.h synch.h
25583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25585 echo "$as_me:$LINENO: checking for $ac_header" >&5
25586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25588 echo $ECHO_N "(cached) $ECHO_C" >&6
25590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25593 # Is the header compilable?
25594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25596 cat >conftest.$ac_ext <<_ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h. */
25602 $ac_includes_default
25603 #include <$ac_header>
25605 rm -f conftest.$ac_objext
25606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25607 (eval $ac_compile) 2>conftest.er1
25609 grep -v '^ *+' conftest.er1 >conftest.err
25611 cat conftest.err >&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } &&
25614 { ac_try='test -z "$ac_c_werror_flag"
25615 || test ! -s conftest.err'
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; } &&
25621 { ac_try='test -s conftest.$ac_objext'
25622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623 (eval $ac_try) 2>&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); }; }; then
25627 ac_header_compiler=yes
25629 echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25632 ac_header_compiler=no
25634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25636 echo "${ECHO_T}$ac_header_compiler" >&6
25638 # Is the header present?
25639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25641 cat >conftest.$ac_ext <<_ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h. */
25647 #include <$ac_header>
25649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25652 grep -v '^ *+' conftest.er1 >conftest.err
25654 cat conftest.err >&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } >/dev/null; then
25657 if test -s conftest.err; then
25658 ac_cpp_err=$ac_c_preproc_warn_flag
25659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25666 if test -z "$ac_cpp_err"; then
25667 ac_header_preproc=yes
25669 echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25672 ac_header_preproc=no
25674 rm -f conftest.err conftest.$ac_ext
25675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25676 echo "${ECHO_T}$ac_header_preproc" >&6
25678 # So? What about this header?
25679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25685 ac_header_preproc=yes
25688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25702 ## ------------------------------------------ ##
25703 ## Report this to the AC_PACKAGE_NAME lists. ##
25704 ## ------------------------------------------ ##
25707 sed "s/^/$as_me: WARNING: /" >&2
25710 echo "$as_me:$LINENO: checking for $ac_header" >&5
25711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25715 eval "$as_ac_Header=\$ac_header_preproc"
25717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25722 cat >>confdefs.h <<_ACEOF
25723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25730 if test $ac_cv_header_thread_h = yes &&
25731 test $ac_cv_header_synch_h = yes ; then
25732 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25733 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25734 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lthread $LIBS"
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25746 /* Override any gcc2 internal prototype to avoid an error. */
25750 /* We use char because int might match the return type of a gcc2
25751 builtin and then its argument prototype would still apply. */
25752 char thr_create ();
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25763 (eval $ac_link) 2>conftest.er1
25765 grep -v '^ *+' conftest.er1 >conftest.err
25767 cat conftest.err >&5
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); } &&
25770 { ac_try='test -z "$ac_c_werror_flag"
25771 || test ! -s conftest.err'
25772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773 (eval $ac_try) 2>&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; } &&
25777 { ac_try='test -s conftest$ac_exeext'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; }; then
25783 ac_cv_lib_thread_thr_create=yes
25785 echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25788 ac_cv_lib_thread_thr_create=no
25790 rm -f conftest.err conftest.$ac_objext \
25791 conftest$ac_exeext conftest.$ac_ext
25792 LIBS=$ac_check_lib_save_LIBS
25794 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25795 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25796 if test $ac_cv_lib_thread_thr_create = yes; then
25803 if test $have_thr = yes ; then
25805 cat >>confdefs.h <<\_ACEOF
25809 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25810 ol_link_threads=thr
25812 if test $ol_with_yielding_select = auto ; then
25813 ol_with_yielding_select=yes
25819 thr_setconcurrency \
25820 thr_getconcurrency \
25823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25824 echo "$as_me:$LINENO: checking for $ac_func" >&5
25825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25826 if eval "test \"\${$as_ac_var+set}\" = set"; then
25827 echo $ECHO_N "(cached) $ECHO_C" >&6
25829 cat >conftest.$ac_ext <<_ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h. */
25835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25837 #define $ac_func innocuous_$ac_func
25839 /* System header to define __stub macros and hopefully few prototypes,
25840 which can conflict with char $ac_func (); below.
25841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25842 <limits.h> exists even on freestanding compilers. */
25845 # include <limits.h>
25847 # include <assert.h>
25852 /* Override any gcc2 internal prototype to avoid an error. */
25857 /* We use char because int might match the return type of a gcc2
25858 builtin and then its argument prototype would still apply. */
25860 /* The GNU C library defines this for functions which it implements
25861 to always fail with ENOSYS. Some functions are actually named
25862 something starting with __ and the normal name is an alias. */
25863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25866 char (*f) () = $ac_func;
25875 return f != $ac_func;
25880 rm -f conftest.$ac_objext conftest$ac_exeext
25881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25882 (eval $ac_link) 2>conftest.er1
25884 grep -v '^ *+' conftest.er1 >conftest.err
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } &&
25889 { ac_try='test -z "$ac_c_werror_flag"
25890 || test ! -s conftest.err'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
25896 { ac_try='test -s conftest$ac_exeext'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
25902 eval "$as_ac_var=yes"
25904 echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25907 eval "$as_ac_var=no"
25909 rm -f conftest.err conftest.$ac_objext \
25910 conftest$ac_exeext conftest.$ac_ext
25912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25914 if test `eval echo '${'$as_ac_var'}'` = yes; then
25915 cat >>confdefs.h <<_ACEOF
25916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25926 for ac_header in lwp/lwp.h
25928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25930 echo "$as_me:$LINENO: checking for $ac_header" >&5
25931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25933 echo $ECHO_N "(cached) $ECHO_C" >&6
25935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25938 # Is the header compilable?
25939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25941 cat >conftest.$ac_ext <<_ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h. */
25947 $ac_includes_default
25948 #include <$ac_header>
25950 rm -f conftest.$ac_objext
25951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25952 (eval $ac_compile) 2>conftest.er1
25954 grep -v '^ *+' conftest.er1 >conftest.err
25956 cat conftest.err >&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } &&
25959 { ac_try='test -z "$ac_c_werror_flag"
25960 || test ! -s conftest.err'
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; } &&
25966 { ac_try='test -s conftest.$ac_objext'
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 ac_header_compiler=yes
25974 echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25977 ac_header_compiler=no
25979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25981 echo "${ECHO_T}$ac_header_compiler" >&6
25983 # Is the header present?
25984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25986 cat >conftest.$ac_ext <<_ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 #include <$ac_header>
25994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25997 grep -v '^ *+' conftest.er1 >conftest.err
25999 cat conftest.err >&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } >/dev/null; then
26002 if test -s conftest.err; then
26003 ac_cpp_err=$ac_c_preproc_warn_flag
26004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26011 if test -z "$ac_cpp_err"; then
26012 ac_header_preproc=yes
26014 echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26017 ac_header_preproc=no
26019 rm -f conftest.err conftest.$ac_ext
26020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26021 echo "${ECHO_T}$ac_header_preproc" >&6
26023 # So? What about this header?
26024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26030 ac_header_preproc=yes
26033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26047 ## ------------------------------------------ ##
26048 ## Report this to the AC_PACKAGE_NAME lists. ##
26049 ## ------------------------------------------ ##
26052 sed "s/^/$as_me: WARNING: /" >&2
26055 echo "$as_me:$LINENO: checking for $ac_header" >&5
26056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26058 echo $ECHO_N "(cached) $ECHO_C" >&6
26060 eval "$as_ac_Header=\$ac_header_preproc"
26062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26067 cat >>confdefs.h <<_ACEOF
26068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26075 if test $ac_cv_header_lwp_lwp_h = yes ; then
26076 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26077 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26078 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26079 echo $ECHO_N "(cached) $ECHO_C" >&6
26081 ac_check_lib_save_LIBS=$LIBS
26083 cat >conftest.$ac_ext <<_ACEOF
26086 cat confdefs.h >>conftest.$ac_ext
26087 cat >>conftest.$ac_ext <<_ACEOF
26088 /* end confdefs.h. */
26090 /* Override any gcc2 internal prototype to avoid an error. */
26094 /* We use char because int might match the return type of a gcc2
26095 builtin and then its argument prototype would still apply. */
26096 char lwp_create ();
26105 rm -f conftest.$ac_objext conftest$ac_exeext
26106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26107 (eval $ac_link) 2>conftest.er1
26109 grep -v '^ *+' conftest.er1 >conftest.err
26111 cat conftest.err >&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } &&
26114 { ac_try='test -z "$ac_c_werror_flag"
26115 || test ! -s conftest.err'
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; } &&
26121 { ac_try='test -s conftest$ac_exeext'
26122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; }; then
26127 ac_cv_lib_lwp_lwp_create=yes
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26132 ac_cv_lib_lwp_lwp_create=no
26134 rm -f conftest.err conftest.$ac_objext \
26135 conftest$ac_exeext conftest.$ac_ext
26136 LIBS=$ac_check_lib_save_LIBS
26138 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26139 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26140 if test $ac_cv_lib_lwp_lwp_create = yes; then
26147 if test $have_lwp = yes ; then
26149 cat >>confdefs.h <<\_ACEOF
26153 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26154 ol_link_threads=lwp
26156 if test $ol_with_yielding_select = auto ; then
26157 ol_with_yielding_select=no
26164 if test $ol_with_yielding_select = yes ; then
26166 cat >>confdefs.h <<\_ACEOF
26167 #define HAVE_YIELDING_SELECT 1
26172 if test $ol_with_threads = manual ; then
26173 ol_link_threads=yes
26175 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26176 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26180 for ac_header in pthread.h sched.h
26182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26184 echo "$as_me:$LINENO: checking for $ac_header" >&5
26185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26187 echo $ECHO_N "(cached) $ECHO_C" >&6
26189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26192 # Is the header compilable?
26193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26195 cat >conftest.$ac_ext <<_ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h. */
26201 $ac_includes_default
26202 #include <$ac_header>
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206 (eval $ac_compile) 2>conftest.er1
26208 grep -v '^ *+' conftest.er1 >conftest.err
26210 cat conftest.err >&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } &&
26213 { ac_try='test -z "$ac_c_werror_flag"
26214 || test ! -s conftest.err'
26215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216 (eval $ac_try) 2>&5
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); }; } &&
26220 { ac_try='test -s conftest.$ac_objext'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; }; then
26226 ac_header_compiler=yes
26228 echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26231 ac_header_compiler=no
26233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26235 echo "${ECHO_T}$ac_header_compiler" >&6
26237 # Is the header present?
26238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246 #include <$ac_header>
26248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26251 grep -v '^ *+' conftest.er1 >conftest.err
26253 cat conftest.err >&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } >/dev/null; then
26256 if test -s conftest.err; then
26257 ac_cpp_err=$ac_c_preproc_warn_flag
26258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26265 if test -z "$ac_cpp_err"; then
26266 ac_header_preproc=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ac_header_preproc=no
26273 rm -f conftest.err conftest.$ac_ext
26274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26275 echo "${ECHO_T}$ac_header_preproc" >&6
26277 # So? What about this header?
26278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26284 ac_header_preproc=yes
26287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26301 ## ------------------------------------------ ##
26302 ## Report this to the AC_PACKAGE_NAME lists. ##
26303 ## ------------------------------------------ ##
26306 sed "s/^/$as_me: WARNING: /" >&2
26309 echo "$as_me:$LINENO: checking for $ac_header" >&5
26310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26314 eval "$as_ac_Header=\$ac_header_preproc"
26316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26321 cat >>confdefs.h <<_ACEOF
26322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26331 for ac_func in sched_yield pthread_yield
26333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26334 echo "$as_me:$LINENO: checking for $ac_func" >&5
26335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26336 if eval "test \"\${$as_ac_var+set}\" = set"; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26339 cat >conftest.$ac_ext <<_ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h. */
26345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26347 #define $ac_func innocuous_$ac_func
26349 /* System header to define __stub macros and hopefully few prototypes,
26350 which can conflict with char $ac_func (); below.
26351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26352 <limits.h> exists even on freestanding compilers. */
26355 # include <limits.h>
26357 # include <assert.h>
26362 /* Override any gcc2 internal prototype to avoid an error. */
26367 /* We use char because int might match the return type of a gcc2
26368 builtin and then its argument prototype would still apply. */
26370 /* The GNU C library defines this for functions which it implements
26371 to always fail with ENOSYS. Some functions are actually named
26372 something starting with __ and the normal name is an alias. */
26373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26376 char (*f) () = $ac_func;
26385 return f != $ac_func;
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26392 (eval $ac_link) 2>conftest.er1
26394 grep -v '^ *+' conftest.er1 >conftest.err
26396 cat conftest.err >&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } &&
26399 { ac_try='test -z "$ac_c_werror_flag"
26400 || test ! -s conftest.err'
26401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402 (eval $ac_try) 2>&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; } &&
26406 { ac_try='test -s conftest$ac_exeext'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; }; then
26412 eval "$as_ac_var=yes"
26414 echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26417 eval "$as_ac_var=no"
26419 rm -f conftest.err conftest.$ac_objext \
26420 conftest$ac_exeext conftest.$ac_ext
26422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26424 if test `eval echo '${'$as_ac_var'}'` = yes; then
26425 cat >>confdefs.h <<_ACEOF
26426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26433 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26434 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26435 if test "${ol_cv_header_linux_threads+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26438 cat >conftest.$ac_ext <<_ACEOF
26441 cat confdefs.h >>conftest.$ac_ext
26442 cat >>conftest.$ac_ext <<_ACEOF
26443 /* end confdefs.h. */
26444 #include <pthread.h>
26446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26447 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26448 ol_cv_header_linux_threads=yes
26450 ol_cv_header_linux_threads=no
26456 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26457 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26458 if test $ol_cv_header_linux_threads = yes; then
26460 cat >>confdefs.h <<\_ACEOF
26461 #define HAVE_LINUX_THREADS 1
26468 for ac_header in mach/cthreads.h
26470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26472 echo "$as_me:$LINENO: checking for $ac_header" >&5
26473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26475 echo $ECHO_N "(cached) $ECHO_C" >&6
26477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26480 # Is the header compilable?
26481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26489 $ac_includes_default
26490 #include <$ac_header>
26492 rm -f conftest.$ac_objext
26493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26494 (eval $ac_compile) 2>conftest.er1
26496 grep -v '^ *+' conftest.er1 >conftest.err
26498 cat conftest.err >&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); } &&
26501 { ac_try='test -z "$ac_c_werror_flag"
26502 || test ! -s conftest.err'
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; } &&
26508 { ac_try='test -s conftest.$ac_objext'
26509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510 (eval $ac_try) 2>&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); }; }; then
26514 ac_header_compiler=yes
26516 echo "$as_me: failed program was:" >&5
26517 sed 's/^/| /' conftest.$ac_ext >&5
26519 ac_header_compiler=no
26521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26523 echo "${ECHO_T}$ac_header_compiler" >&6
26525 # Is the header present?
26526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26528 cat >conftest.$ac_ext <<_ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h. */
26534 #include <$ac_header>
26536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26539 grep -v '^ *+' conftest.er1 >conftest.err
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } >/dev/null; then
26544 if test -s conftest.err; then
26545 ac_cpp_err=$ac_c_preproc_warn_flag
26546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26553 if test -z "$ac_cpp_err"; then
26554 ac_header_preproc=yes
26556 echo "$as_me: failed program was:" >&5
26557 sed 's/^/| /' conftest.$ac_ext >&5
26559 ac_header_preproc=no
26561 rm -f conftest.err conftest.$ac_ext
26562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26563 echo "${ECHO_T}$ac_header_preproc" >&6
26565 # So? What about this header?
26566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26572 ac_header_preproc=yes
26575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26589 ## ------------------------------------------ ##
26590 ## Report this to the AC_PACKAGE_NAME lists. ##
26591 ## ------------------------------------------ ##
26594 sed "s/^/$as_me: WARNING: /" >&2
26597 echo "$as_me:$LINENO: checking for $ac_header" >&5
26598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26602 eval "$as_ac_Header=\$ac_header_preproc"
26604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26609 cat >>confdefs.h <<_ACEOF
26610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26618 for ac_header in lwp/lwp.h
26620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26622 echo "$as_me:$LINENO: checking for $ac_header" >&5
26623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26630 # Is the header compilable?
26631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26633 cat >conftest.$ac_ext <<_ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h. */
26639 $ac_includes_default
26640 #include <$ac_header>
26642 rm -f conftest.$ac_objext
26643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26644 (eval $ac_compile) 2>conftest.er1
26646 grep -v '^ *+' conftest.er1 >conftest.err
26648 cat conftest.err >&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } &&
26651 { ac_try='test -z "$ac_c_werror_flag"
26652 || test ! -s conftest.err'
26653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26654 (eval $ac_try) 2>&5
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); }; } &&
26658 { ac_try='test -s conftest.$ac_objext'
26659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660 (eval $ac_try) 2>&5
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); }; }; then
26664 ac_header_compiler=yes
26666 echo "$as_me: failed program was:" >&5
26667 sed 's/^/| /' conftest.$ac_ext >&5
26669 ac_header_compiler=no
26671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26673 echo "${ECHO_T}$ac_header_compiler" >&6
26675 # Is the header present?
26676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26684 #include <$ac_header>
26686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26689 grep -v '^ *+' conftest.er1 >conftest.err
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } >/dev/null; then
26694 if test -s conftest.err; then
26695 ac_cpp_err=$ac_c_preproc_warn_flag
26696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26703 if test -z "$ac_cpp_err"; then
26704 ac_header_preproc=yes
26706 echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26709 ac_header_preproc=no
26711 rm -f conftest.err conftest.$ac_ext
26712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26713 echo "${ECHO_T}$ac_header_preproc" >&6
26715 # So? What about this header?
26716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26722 ac_header_preproc=yes
26725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26739 ## ------------------------------------------ ##
26740 ## Report this to the AC_PACKAGE_NAME lists. ##
26741 ## ------------------------------------------ ##
26744 sed "s/^/$as_me: WARNING: /" >&2
26747 echo "$as_me:$LINENO: checking for $ac_header" >&5
26748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26750 echo $ECHO_N "(cached) $ECHO_C" >&6
26752 eval "$as_ac_Header=\$ac_header_preproc"
26754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26759 cat >>confdefs.h <<_ACEOF
26760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26769 for ac_header in thread.h synch.h
26771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26773 echo "$as_me:$LINENO: checking for $ac_header" >&5
26774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26776 echo $ECHO_N "(cached) $ECHO_C" >&6
26778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26781 # Is the header compilable?
26782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26784 cat >conftest.$ac_ext <<_ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h. */
26790 $ac_includes_default
26791 #include <$ac_header>
26793 rm -f conftest.$ac_objext
26794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26795 (eval $ac_compile) 2>conftest.er1
26797 grep -v '^ *+' conftest.er1 >conftest.err
26799 cat conftest.err >&5
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } &&
26802 { ac_try='test -z "$ac_c_werror_flag"
26803 || test ! -s conftest.err'
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; } &&
26809 { ac_try='test -s conftest.$ac_objext'
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; }; then
26815 ac_header_compiler=yes
26817 echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26820 ac_header_compiler=no
26822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26824 echo "${ECHO_T}$ac_header_compiler" >&6
26826 # Is the header present?
26827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26829 cat >conftest.$ac_ext <<_ACEOF
26832 cat confdefs.h >>conftest.$ac_ext
26833 cat >>conftest.$ac_ext <<_ACEOF
26834 /* end confdefs.h. */
26835 #include <$ac_header>
26837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26840 grep -v '^ *+' conftest.er1 >conftest.err
26842 cat conftest.err >&5
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } >/dev/null; then
26845 if test -s conftest.err; then
26846 ac_cpp_err=$ac_c_preproc_warn_flag
26847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26854 if test -z "$ac_cpp_err"; then
26855 ac_header_preproc=yes
26857 echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26860 ac_header_preproc=no
26862 rm -f conftest.err conftest.$ac_ext
26863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26864 echo "${ECHO_T}$ac_header_preproc" >&6
26866 # So? What about this header?
26867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26873 ac_header_preproc=yes
26876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26890 ## ------------------------------------------ ##
26891 ## Report this to the AC_PACKAGE_NAME lists. ##
26892 ## ------------------------------------------ ##
26895 sed "s/^/$as_me: WARNING: /" >&2
26898 echo "$as_me:$LINENO: checking for $ac_header" >&5
26899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26903 eval "$as_ac_Header=\$ac_header_preproc"
26905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26910 cat >>confdefs.h <<_ACEOF
26911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26920 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26921 cat >>confdefs.h <<\_ACEOF
26922 #define REENTRANT 1
26925 cat >>confdefs.h <<\_ACEOF
26926 #define _REENTRANT 1
26929 cat >>confdefs.h <<\_ACEOF
26930 #define THREAD_SAFE 1
26933 cat >>confdefs.h <<\_ACEOF
26934 #define _THREAD_SAFE 1
26937 cat >>confdefs.h <<\_ACEOF
26938 #define THREADSAFE 1
26941 cat >>confdefs.h <<\_ACEOF
26942 #define _THREADSAFE 1
26945 cat >>confdefs.h <<\_ACEOF
26946 #define _SGI_MP_SOURCE 1
26950 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26951 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26952 if test "${ol_cv_errno_thread_specific+set}" = set; then
26953 echo $ECHO_N "(cached) $ECHO_C" >&6
26956 cat >conftest.$ac_ext <<_ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h. */
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26973 (eval $ac_link) 2>conftest.er1
26975 grep -v '^ *+' conftest.er1 >conftest.err
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag"
26981 || test ! -s conftest.err'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; } &&
26987 { ac_try='test -s conftest$ac_exeext'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 ol_cv_errno_thread_specific=yes
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26998 ol_cv_errno_thread_specific=no
27000 rm -f conftest.err conftest.$ac_objext \
27001 conftest$ac_exeext conftest.$ac_ext
27004 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27005 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27007 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27008 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27009 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27010 echo $ECHO_N "(cached) $ECHO_C" >&6
27013 cat >conftest.$ac_ext <<_ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27028 rm -f conftest.$ac_objext conftest$ac_exeext
27029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27030 (eval $ac_link) 2>conftest.er1
27032 grep -v '^ *+' conftest.er1 >conftest.err
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } &&
27037 { ac_try='test -z "$ac_c_werror_flag"
27038 || test ! -s conftest.err'
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; } &&
27044 { ac_try='test -s conftest$ac_exeext'
27045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046 (eval $ac_try) 2>&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; }; then
27050 ol_cv_h_errno_thread_specific=yes
27052 echo "$as_me: failed program was:" >&5
27053 sed 's/^/| /' conftest.$ac_ext >&5
27055 ol_cv_h_errno_thread_specific=no
27057 rm -f conftest.err conftest.$ac_objext \
27058 conftest$ac_exeext conftest.$ac_ext
27061 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27062 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27064 if test $ol_cv_errno_thread_specific != yes ||
27065 test $ol_cv_h_errno_thread_specific != yes ; then
27066 LIBS="$LTHREAD_LIBS $LIBS"
27072 if test $ol_link_threads = no ; then
27073 if test $ol_with_threads = yes ; then
27074 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27075 echo "$as_me: error: no suitable thread support" >&2;}
27076 { (exit 1); exit 1; }; }
27079 if test $ol_with_threads = auto ; then
27080 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27081 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27086 cat >>confdefs.h <<\_ACEOF
27087 #define NO_THREADS 1
27093 if test $ol_link_threads != no ; then
27095 cat >>confdefs.h <<\_ACEOF
27096 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27106 gethostbyname_r gethostbyaddr_r \
27109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27110 echo "$as_me:$LINENO: checking for $ac_func" >&5
27111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27112 if eval "test \"\${$as_ac_var+set}\" = set"; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27123 #define $ac_func innocuous_$ac_func
27125 /* System header to define __stub macros and hopefully few prototypes,
27126 which can conflict with char $ac_func (); below.
27127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27128 <limits.h> exists even on freestanding compilers. */
27131 # include <limits.h>
27133 # include <assert.h>
27138 /* Override any gcc2 internal prototype to avoid an error. */
27143 /* We use char because int might match the return type of a gcc2
27144 builtin and then its argument prototype would still apply. */
27146 /* The GNU C library defines this for functions which it implements
27147 to always fail with ENOSYS. Some functions are actually named
27148 something starting with __ and the normal name is an alias. */
27149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27152 char (*f) () = $ac_func;
27161 return f != $ac_func;
27166 rm -f conftest.$ac_objext conftest$ac_exeext
27167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27168 (eval $ac_link) 2>conftest.er1
27170 grep -v '^ *+' conftest.er1 >conftest.err
27172 cat conftest.err >&5
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); } &&
27175 { ac_try='test -z "$ac_c_werror_flag"
27176 || test ! -s conftest.err'
27177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178 (eval $ac_try) 2>&5
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); }; } &&
27182 { ac_try='test -s conftest$ac_exeext'
27183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184 (eval $ac_try) 2>&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); }; }; then
27188 eval "$as_ac_var=yes"
27190 echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27193 eval "$as_ac_var=no"
27195 rm -f conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext conftest.$ac_ext
27198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27200 if test `eval echo '${'$as_ac_var'}'` = yes; then
27201 cat >>confdefs.h <<_ACEOF
27202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27209 if test "$ac_cv_func_ctime_r" = no ; then
27210 ol_cv_func_ctime_r_nargs=0
27212 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27213 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27214 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27215 echo $ECHO_N "(cached) $ECHO_C" >&6
27217 cat >conftest.$ac_ext <<_ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h. */
27227 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27232 rm -f conftest.$ac_objext
27233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27234 (eval $ac_compile) 2>conftest.er1
27236 grep -v '^ *+' conftest.er1 >conftest.err
27238 cat conftest.err >&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } &&
27241 { ac_try='test -z "$ac_c_werror_flag"
27242 || test ! -s conftest.err'
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest.$ac_objext'
27249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27250 (eval $ac_try) 2>&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); }; }; then
27254 ol_cv_func_ctime_r_nargs3=yes
27256 echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27259 ol_cv_func_ctime_r_nargs3=no
27261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27263 cat >conftest.$ac_ext <<_ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h. */
27273 time_t ti; char *buffer; ctime_r(&ti,buffer);
27278 rm -f conftest.$ac_objext
27279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27280 (eval $ac_compile) 2>conftest.er1
27282 grep -v '^ *+' conftest.er1 >conftest.err
27284 cat conftest.err >&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); } &&
27287 { ac_try='test -z "$ac_c_werror_flag"
27288 || test ! -s conftest.err'
27289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27290 (eval $ac_try) 2>&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; } &&
27294 { ac_try='test -s conftest.$ac_objext'
27295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296 (eval $ac_try) 2>&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); }; }; then
27300 ol_cv_func_ctime_r_nargs2=yes
27302 echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27305 ol_cv_func_ctime_r_nargs2=no
27307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27309 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27310 test $ol_cv_func_ctime_r_nargs2 = no ; then
27312 ol_cv_func_ctime_r_nargs=3
27314 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27315 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27317 ol_cv_func_ctime_r_nargs=2
27320 ol_cv_func_ctime_r_nargs=0
27324 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27325 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27327 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27329 cat >>confdefs.h <<_ACEOF
27330 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27337 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27338 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27339 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27340 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27349 #include <sys/types.h>
27350 #include <sys/socket.h>
27351 #include <netinet/in.h>
27353 #define BUFSIZE (sizeof(struct hostent)+10)
27357 struct hostent hent; char buffer[BUFSIZE];
27358 int bufsize=BUFSIZE;int h_errno;
27359 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27360 buffer, bufsize, &h_errno);
27365 rm -f conftest.$ac_objext
27366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27367 (eval $ac_compile) 2>conftest.er1
27369 grep -v '^ *+' conftest.er1 >conftest.err
27371 cat conftest.err >&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } &&
27374 { ac_try='test -z "$ac_c_werror_flag"
27375 || test ! -s conftest.err'
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest.$ac_objext'
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ol_cv_func_gethostbyname_r_nargs5=yes
27389 echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27392 ol_cv_func_gethostbyname_r_nargs5=no
27394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27396 cat >conftest.$ac_ext <<_ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h. */
27402 #include <sys/types.h>
27403 #include <sys/socket.h>
27404 #include <netinet/in.h>
27406 #define BUFSIZE (sizeof(struct hostent)+10)
27410 struct hostent hent;struct hostent *rhent;
27411 char buffer[BUFSIZE];
27412 int bufsize=BUFSIZE;int h_errno;
27413 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27419 rm -f conftest.$ac_objext
27420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27421 (eval $ac_compile) 2>conftest.er1
27423 grep -v '^ *+' conftest.er1 >conftest.err
27425 cat conftest.err >&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); } &&
27428 { ac_try='test -z "$ac_c_werror_flag"
27429 || test ! -s conftest.err'
27430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27431 (eval $ac_try) 2>&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; } &&
27435 { ac_try='test -s conftest.$ac_objext'
27436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27437 (eval $ac_try) 2>&5
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; }; then
27441 ol_cv_func_gethostbyname_r_nargs6=yes
27443 echo "$as_me: failed program was:" >&5
27444 sed 's/^/| /' conftest.$ac_ext >&5
27446 ol_cv_func_gethostbyname_r_nargs6=no
27448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27450 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27451 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27453 ol_cv_func_gethostbyname_r_nargs=5
27455 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27456 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27458 ol_cv_func_gethostbyname_r_nargs=6
27461 ol_cv_func_gethostbyname_r_nargs=0
27465 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27466 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27467 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27469 cat >>confdefs.h <<_ACEOF
27470 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27476 ol_cv_func_gethostbyname_r_nargs=0
27479 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27480 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27481 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27482 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27483 echo $ECHO_N "(cached) $ECHO_C" >&6
27485 cat >conftest.$ac_ext <<_ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27491 #include <sys/types.h>
27492 #include <sys/socket.h>
27493 #include <netinet/in.h>
27495 #define BUFSIZE (sizeof(struct hostent)+10)
27499 struct hostent hent; char buffer[BUFSIZE];
27500 struct in_addr add;
27501 size_t alen=sizeof(struct in_addr);
27502 int bufsize=BUFSIZE;int h_errno;
27503 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27504 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27509 rm -f conftest.$ac_objext
27510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27511 (eval $ac_compile) 2>conftest.er1
27513 grep -v '^ *+' conftest.er1 >conftest.err
27515 cat conftest.err >&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); } &&
27518 { ac_try='test -z "$ac_c_werror_flag"
27519 || test ! -s conftest.err'
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); }; } &&
27525 { ac_try='test -s conftest.$ac_objext'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
27531 ol_cv_func_gethostbyaddr_r_nargs7=yes
27533 echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27536 ol_cv_func_gethostbyaddr_r_nargs7=no
27538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27540 cat >conftest.$ac_ext <<_ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27546 #include <sys/types.h>
27547 #include <sys/socket.h>
27548 #include <netinet/in.h>
27550 #define BUFSIZE (sizeof(struct hostent)+10)
27554 struct hostent hent;
27555 struct hostent *rhent; char buffer[BUFSIZE];
27556 struct in_addr add;
27557 size_t alen=sizeof(struct in_addr);
27558 int bufsize=BUFSIZE;int h_errno;
27559 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27560 alen, AF_INET, &hent, buffer, bufsize,
27566 rm -f conftest.$ac_objext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27568 (eval $ac_compile) 2>conftest.er1
27570 grep -v '^ *+' conftest.er1 >conftest.err
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag"
27576 || test ! -s conftest.err'
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; } &&
27582 { ac_try='test -s conftest.$ac_objext'
27583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584 (eval $ac_try) 2>&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
27588 ol_cv_func_gethostbyaddr_r_nargs8=yes
27590 echo "$as_me: failed program was:" >&5
27591 sed 's/^/| /' conftest.$ac_ext >&5
27593 ol_cv_func_gethostbyaddr_r_nargs8=no
27595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27597 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27598 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27600 ol_cv_func_gethostbyaddr_r_nargs=7
27602 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27603 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27605 ol_cv_func_gethostbyaddr_r_nargs=8
27608 ol_cv_func_gethostbyaddr_r_nargs=0
27612 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27613 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27614 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27616 cat >>confdefs.h <<_ACEOF
27617 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27623 ol_cv_func_gethostbyaddr_r_nargs=0
27628 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27630 if test $ol_enable_ldbm_api = bcompat; then \
27633 for ac_header in db_185.h db.h
27635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27637 echo "$as_me:$LINENO: checking for $ac_header" >&5
27638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27645 # Is the header compilable?
27646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27648 cat >conftest.$ac_ext <<_ACEOF
27651 cat confdefs.h >>conftest.$ac_ext
27652 cat >>conftest.$ac_ext <<_ACEOF
27653 /* end confdefs.h. */
27654 $ac_includes_default
27655 #include <$ac_header>
27657 rm -f conftest.$ac_objext
27658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27659 (eval $ac_compile) 2>conftest.er1
27661 grep -v '^ *+' conftest.er1 >conftest.err
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
27666 { ac_try='test -z "$ac_c_werror_flag"
27667 || test ! -s conftest.err'
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; } &&
27673 { ac_try='test -s conftest.$ac_objext'
27674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675 (eval $ac_try) 2>&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; }; then
27679 ac_header_compiler=yes
27681 echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27684 ac_header_compiler=no
27686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27688 echo "${ECHO_T}$ac_header_compiler" >&6
27690 # Is the header present?
27691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27693 cat >conftest.$ac_ext <<_ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27699 #include <$ac_header>
27701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27704 grep -v '^ *+' conftest.er1 >conftest.err
27706 cat conftest.err >&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } >/dev/null; then
27709 if test -s conftest.err; then
27710 ac_cpp_err=$ac_c_preproc_warn_flag
27711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27718 if test -z "$ac_cpp_err"; then
27719 ac_header_preproc=yes
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 ac_header_preproc=no
27726 rm -f conftest.err conftest.$ac_ext
27727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27728 echo "${ECHO_T}$ac_header_preproc" >&6
27730 # So? What about this header?
27731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27737 ac_header_preproc=yes
27740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27754 ## ------------------------------------------ ##
27755 ## Report this to the AC_PACKAGE_NAME lists. ##
27756 ## ------------------------------------------ ##
27759 sed "s/^/$as_me: WARNING: /" >&2
27762 echo "$as_me:$LINENO: checking for $ac_header" >&5
27763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27767 eval "$as_ac_Header=\$ac_header_preproc"
27769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27774 cat >>confdefs.h <<_ACEOF
27775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27782 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27783 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27784 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27785 if test "${ol_cv_header_db1+set}" = set; then
27786 echo $ECHO_N "(cached) $ECHO_C" >&6
27789 cat >conftest.$ac_ext <<_ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27797 # include <db_185.h>
27802 /* this check could be improved */
27803 #ifndef DB_VERSION_MAJOR
27804 # define DB_VERSION_MAJOR 1
27807 #if DB_VERSION_MAJOR == 1
27812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27813 $EGREP "__db_version_1" >/dev/null 2>&1; then
27814 ol_cv_header_db1=yes
27816 ol_cv_header_db1=no
27821 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27822 echo "${ECHO_T}$ol_cv_header_db1" >&6
27824 if test $ol_cv_header_db1 = yes ; then
27826 if test $ol_cv_lib_db = no ; then
27827 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27828 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27829 if test "${ol_cv_db_none+set}" = set; then
27830 echo $ECHO_N "(cached) $ECHO_C" >&6
27835 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27837 cat >conftest.$ac_ext <<_ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27844 #ifdef HAVE_DB_185_H
27845 # include <db_185.h>
27850 #ifndef DB_VERSION_MAJOR
27851 # define DB_VERSION_MAJOR 1
27855 #define NULL ((void*)0)
27862 #if DB_VERSION_MAJOR > 1
27865 int major, minor, patch;
27867 version = db_version( &major, &minor, &patch );
27869 if( major != DB_VERSION_MAJOR ||
27870 minor < DB_VERSION_MINOR )
27872 printf("Berkeley DB version mismatch\n"
27873 "\theader: %s\n\tlibrary: %s\n",
27874 DB_VERSION_STRING, version);
27880 #if DB_VERSION_MAJOR > 2
27881 db_env_create( NULL, 0 );
27882 #elif DB_VERSION_MAJOR > 1
27883 db_appexit( NULL );
27885 (void) dbopen( NULL, 0, 0, 0, NULL);
27892 rm -f conftest.$ac_objext conftest$ac_exeext
27893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27894 (eval $ac_link) 2>conftest.er1
27896 grep -v '^ *+' conftest.er1 >conftest.err
27898 cat conftest.err >&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } &&
27901 { ac_try='test -z "$ac_c_werror_flag"
27902 || test ! -s conftest.err'
27903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904 (eval $ac_try) 2>&5
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; } &&
27908 { ac_try='test -s conftest$ac_exeext'
27909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910 (eval $ac_try) 2>&5
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; }; then
27916 echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27921 rm -f conftest.err conftest.$ac_objext \
27922 conftest$ac_exeext conftest.$ac_ext
27927 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
27928 echo "${ECHO_T}$ol_cv_db_none" >&6
27930 if test $ol_cv_db_none = yes ; then
27935 if test $ol_cv_lib_db = no ; then
27936 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
27937 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
27938 if test "${ol_cv_db_db43+set}" = set; then
27939 echo $ECHO_N "(cached) $ECHO_C" >&6
27944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27946 cat >conftest.$ac_ext <<_ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27953 #ifdef HAVE_DB_185_H
27954 # include <db_185.h>
27959 #ifndef DB_VERSION_MAJOR
27960 # define DB_VERSION_MAJOR 1
27964 #define NULL ((void*)0)
27971 #if DB_VERSION_MAJOR > 1
27974 int major, minor, patch;
27976 version = db_version( &major, &minor, &patch );
27978 if( major != DB_VERSION_MAJOR ||
27979 minor < DB_VERSION_MINOR )
27981 printf("Berkeley DB version mismatch\n"
27982 "\theader: %s\n\tlibrary: %s\n",
27983 DB_VERSION_STRING, version);
27989 #if DB_VERSION_MAJOR > 2
27990 db_env_create( NULL, 0 );
27991 #elif DB_VERSION_MAJOR > 1
27992 db_appexit( NULL );
27994 (void) dbopen( NULL, 0, 0, 0, NULL);
28001 rm -f conftest.$ac_objext conftest$ac_exeext
28002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28003 (eval $ac_link) 2>conftest.er1
28005 grep -v '^ *+' conftest.er1 >conftest.err
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } &&
28010 { ac_try='test -z "$ac_c_werror_flag"
28011 || test ! -s conftest.err'
28012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28013 (eval $ac_try) 2>&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); }; } &&
28017 { ac_try='test -s conftest$ac_exeext'
28018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019 (eval $ac_try) 2>&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); }; }; then
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28030 rm -f conftest.err conftest.$ac_objext \
28031 conftest$ac_exeext conftest.$ac_ext
28036 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28037 echo "${ECHO_T}$ol_cv_db_db43" >&6
28039 if test $ol_cv_db_db43 = yes ; then
28040 ol_cv_lib_db=-ldb43
28044 if test $ol_cv_lib_db = no ; then
28045 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28046 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28047 if test "${ol_cv_db_db_43+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28055 cat >conftest.$ac_ext <<_ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h. */
28062 #ifdef HAVE_DB_185_H
28063 # include <db_185.h>
28068 #ifndef DB_VERSION_MAJOR
28069 # define DB_VERSION_MAJOR 1
28073 #define NULL ((void*)0)
28080 #if DB_VERSION_MAJOR > 1
28083 int major, minor, patch;
28085 version = db_version( &major, &minor, &patch );
28087 if( major != DB_VERSION_MAJOR ||
28088 minor < DB_VERSION_MINOR )
28090 printf("Berkeley DB version mismatch\n"
28091 "\theader: %s\n\tlibrary: %s\n",
28092 DB_VERSION_STRING, version);
28098 #if DB_VERSION_MAJOR > 2
28099 db_env_create( NULL, 0 );
28100 #elif DB_VERSION_MAJOR > 1
28101 db_appexit( NULL );
28103 (void) dbopen( NULL, 0, 0, 0, NULL);
28110 rm -f conftest.$ac_objext conftest$ac_exeext
28111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28112 (eval $ac_link) 2>conftest.er1
28114 grep -v '^ *+' conftest.er1 >conftest.err
28116 cat conftest.err >&5
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); } &&
28119 { ac_try='test -z "$ac_c_werror_flag"
28120 || test ! -s conftest.err'
28121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; } &&
28126 { ac_try='test -s conftest$ac_exeext'
28127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128 (eval $ac_try) 2>&5
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; }; then
28134 echo "$as_me: failed program was:" >&5
28135 sed 's/^/| /' conftest.$ac_ext >&5
28139 rm -f conftest.err conftest.$ac_objext \
28140 conftest$ac_exeext conftest.$ac_ext
28145 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28146 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28148 if test $ol_cv_db_db_43 = yes ; then
28149 ol_cv_lib_db=-ldb-43
28153 if test $ol_cv_lib_db = no ; then
28154 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28155 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28156 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28162 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28164 cat >conftest.$ac_ext <<_ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h. */
28171 #ifdef HAVE_DB_185_H
28172 # include <db_185.h>
28177 #ifndef DB_VERSION_MAJOR
28178 # define DB_VERSION_MAJOR 1
28182 #define NULL ((void*)0)
28189 #if DB_VERSION_MAJOR > 1
28192 int major, minor, patch;
28194 version = db_version( &major, &minor, &patch );
28196 if( major != DB_VERSION_MAJOR ||
28197 minor < DB_VERSION_MINOR )
28199 printf("Berkeley DB version mismatch\n"
28200 "\theader: %s\n\tlibrary: %s\n",
28201 DB_VERSION_STRING, version);
28207 #if DB_VERSION_MAJOR > 2
28208 db_env_create( NULL, 0 );
28209 #elif DB_VERSION_MAJOR > 1
28210 db_appexit( NULL );
28212 (void) dbopen( NULL, 0, 0, 0, NULL);
28219 rm -f conftest.$ac_objext conftest$ac_exeext
28220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28221 (eval $ac_link) 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
28228 { ac_try='test -z "$ac_c_werror_flag"
28229 || test ! -s conftest.err'
28230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231 (eval $ac_try) 2>&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest$ac_exeext'
28236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; }; then
28241 ol_cv_db_db_4_dot_3=yes
28243 echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28246 ol_cv_db_db_4_dot_3=no
28248 rm -f conftest.err conftest.$ac_objext \
28249 conftest$ac_exeext conftest.$ac_ext
28254 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28255 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28257 if test $ol_cv_db_db_4_dot_3 = yes ; then
28258 ol_cv_lib_db=-ldb-4.3
28262 if test $ol_cv_lib_db = no ; then
28263 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28264 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28265 if test "${ol_cv_db_db_4_3+set}" = set; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28271 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28273 cat >conftest.$ac_ext <<_ACEOF
28276 cat confdefs.h >>conftest.$ac_ext
28277 cat >>conftest.$ac_ext <<_ACEOF
28278 /* end confdefs.h. */
28280 #ifdef HAVE_DB_185_H
28281 # include <db_185.h>
28286 #ifndef DB_VERSION_MAJOR
28287 # define DB_VERSION_MAJOR 1
28291 #define NULL ((void*)0)
28298 #if DB_VERSION_MAJOR > 1
28301 int major, minor, patch;
28303 version = db_version( &major, &minor, &patch );
28305 if( major != DB_VERSION_MAJOR ||
28306 minor < DB_VERSION_MINOR )
28308 printf("Berkeley DB version mismatch\n"
28309 "\theader: %s\n\tlibrary: %s\n",
28310 DB_VERSION_STRING, version);
28316 #if DB_VERSION_MAJOR > 2
28317 db_env_create( NULL, 0 );
28318 #elif DB_VERSION_MAJOR > 1
28319 db_appexit( NULL );
28321 (void) dbopen( NULL, 0, 0, 0, NULL);
28328 rm -f conftest.$ac_objext conftest$ac_exeext
28329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28330 (eval $ac_link) 2>conftest.er1
28332 grep -v '^ *+' conftest.er1 >conftest.err
28334 cat conftest.err >&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } &&
28337 { ac_try='test -z "$ac_c_werror_flag"
28338 || test ! -s conftest.err'
28339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340 (eval $ac_try) 2>&5
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); }; } &&
28344 { ac_try='test -s conftest$ac_exeext'
28345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346 (eval $ac_try) 2>&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; }; then
28350 ol_cv_db_db_4_3=yes
28352 echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28357 rm -f conftest.err conftest.$ac_objext \
28358 conftest$ac_exeext conftest.$ac_ext
28363 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28364 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28366 if test $ol_cv_db_db_4_3 = yes ; then
28367 ol_cv_lib_db=-ldb-4-3
28371 if test $ol_cv_lib_db = no ; then
28372 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28373 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28374 if test "${ol_cv_db_db42+set}" = set; then
28375 echo $ECHO_N "(cached) $ECHO_C" >&6
28380 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28382 cat >conftest.$ac_ext <<_ACEOF
28385 cat confdefs.h >>conftest.$ac_ext
28386 cat >>conftest.$ac_ext <<_ACEOF
28387 /* end confdefs.h. */
28389 #ifdef HAVE_DB_185_H
28390 # include <db_185.h>
28395 #ifndef DB_VERSION_MAJOR
28396 # define DB_VERSION_MAJOR 1
28400 #define NULL ((void*)0)
28407 #if DB_VERSION_MAJOR > 1
28410 int major, minor, patch;
28412 version = db_version( &major, &minor, &patch );
28414 if( major != DB_VERSION_MAJOR ||
28415 minor < DB_VERSION_MINOR )
28417 printf("Berkeley DB version mismatch\n"
28418 "\theader: %s\n\tlibrary: %s\n",
28419 DB_VERSION_STRING, version);
28425 #if DB_VERSION_MAJOR > 2
28426 db_env_create( NULL, 0 );
28427 #elif DB_VERSION_MAJOR > 1
28428 db_appexit( NULL );
28430 (void) dbopen( NULL, 0, 0, 0, NULL);
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439 (eval $ac_link) 2>conftest.er1
28441 grep -v '^ *+' conftest.er1 >conftest.err
28443 cat conftest.err >&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } &&
28446 { ac_try='test -z "$ac_c_werror_flag"
28447 || test ! -s conftest.err'
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; } &&
28453 { ac_try='test -s conftest$ac_exeext'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28466 rm -f conftest.err conftest.$ac_objext \
28467 conftest$ac_exeext conftest.$ac_ext
28472 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28473 echo "${ECHO_T}$ol_cv_db_db42" >&6
28475 if test $ol_cv_db_db42 = yes ; then
28476 ol_cv_lib_db=-ldb42
28480 if test $ol_cv_lib_db = no ; then
28481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28482 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28483 if test "${ol_cv_db_db_42+set}" = set; then
28484 echo $ECHO_N "(cached) $ECHO_C" >&6
28489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28491 cat >conftest.$ac_ext <<_ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28498 #ifdef HAVE_DB_185_H
28499 # include <db_185.h>
28504 #ifndef DB_VERSION_MAJOR
28505 # define DB_VERSION_MAJOR 1
28509 #define NULL ((void*)0)
28516 #if DB_VERSION_MAJOR > 1
28519 int major, minor, patch;
28521 version = db_version( &major, &minor, &patch );
28523 if( major != DB_VERSION_MAJOR ||
28524 minor < DB_VERSION_MINOR )
28526 printf("Berkeley DB version mismatch\n"
28527 "\theader: %s\n\tlibrary: %s\n",
28528 DB_VERSION_STRING, version);
28534 #if DB_VERSION_MAJOR > 2
28535 db_env_create( NULL, 0 );
28536 #elif DB_VERSION_MAJOR > 1
28537 db_appexit( NULL );
28539 (void) dbopen( NULL, 0, 0, 0, NULL);
28546 rm -f conftest.$ac_objext conftest$ac_exeext
28547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28548 (eval $ac_link) 2>conftest.er1
28550 grep -v '^ *+' conftest.er1 >conftest.err
28552 cat conftest.err >&5
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); } &&
28555 { ac_try='test -z "$ac_c_werror_flag"
28556 || test ! -s conftest.err'
28557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558 (eval $ac_try) 2>&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); }; } &&
28562 { ac_try='test -s conftest$ac_exeext'
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28575 rm -f conftest.err conftest.$ac_objext \
28576 conftest$ac_exeext conftest.$ac_ext
28581 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28582 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28584 if test $ol_cv_db_db_42 = yes ; then
28585 ol_cv_lib_db=-ldb-42
28589 if test $ol_cv_lib_db = no ; then
28590 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28591 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28592 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28593 echo $ECHO_N "(cached) $ECHO_C" >&6
28598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28600 cat >conftest.$ac_ext <<_ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h. */
28607 #ifdef HAVE_DB_185_H
28608 # include <db_185.h>
28613 #ifndef DB_VERSION_MAJOR
28614 # define DB_VERSION_MAJOR 1
28618 #define NULL ((void*)0)
28625 #if DB_VERSION_MAJOR > 1
28628 int major, minor, patch;
28630 version = db_version( &major, &minor, &patch );
28632 if( major != DB_VERSION_MAJOR ||
28633 minor < DB_VERSION_MINOR )
28635 printf("Berkeley DB version mismatch\n"
28636 "\theader: %s\n\tlibrary: %s\n",
28637 DB_VERSION_STRING, version);
28643 #if DB_VERSION_MAJOR > 2
28644 db_env_create( NULL, 0 );
28645 #elif DB_VERSION_MAJOR > 1
28646 db_appexit( NULL );
28648 (void) dbopen( NULL, 0, 0, 0, NULL);
28655 rm -f conftest.$ac_objext conftest$ac_exeext
28656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28657 (eval $ac_link) 2>conftest.er1
28659 grep -v '^ *+' conftest.er1 >conftest.err
28661 cat conftest.err >&5
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); } &&
28664 { ac_try='test -z "$ac_c_werror_flag"
28665 || test ! -s conftest.err'
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; } &&
28671 { ac_try='test -s conftest$ac_exeext'
28672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28673 (eval $ac_try) 2>&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; }; then
28677 ol_cv_db_db_4_dot_2=yes
28679 echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28682 ol_cv_db_db_4_dot_2=no
28684 rm -f conftest.err conftest.$ac_objext \
28685 conftest$ac_exeext conftest.$ac_ext
28690 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28691 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28693 if test $ol_cv_db_db_4_dot_2 = yes ; then
28694 ol_cv_lib_db=-ldb-4.2
28698 if test $ol_cv_lib_db = no ; then
28699 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28700 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28701 if test "${ol_cv_db_db_4_2+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28707 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28709 cat >conftest.$ac_ext <<_ACEOF
28712 cat confdefs.h >>conftest.$ac_ext
28713 cat >>conftest.$ac_ext <<_ACEOF
28714 /* end confdefs.h. */
28716 #ifdef HAVE_DB_185_H
28717 # include <db_185.h>
28722 #ifndef DB_VERSION_MAJOR
28723 # define DB_VERSION_MAJOR 1
28727 #define NULL ((void*)0)
28734 #if DB_VERSION_MAJOR > 1
28737 int major, minor, patch;
28739 version = db_version( &major, &minor, &patch );
28741 if( major != DB_VERSION_MAJOR ||
28742 minor < DB_VERSION_MINOR )
28744 printf("Berkeley DB version mismatch\n"
28745 "\theader: %s\n\tlibrary: %s\n",
28746 DB_VERSION_STRING, version);
28752 #if DB_VERSION_MAJOR > 2
28753 db_env_create( NULL, 0 );
28754 #elif DB_VERSION_MAJOR > 1
28755 db_appexit( NULL );
28757 (void) dbopen( NULL, 0, 0, 0, NULL);
28764 rm -f conftest.$ac_objext conftest$ac_exeext
28765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28766 (eval $ac_link) 2>conftest.er1
28768 grep -v '^ *+' conftest.er1 >conftest.err
28770 cat conftest.err >&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } &&
28773 { ac_try='test -z "$ac_c_werror_flag"
28774 || test ! -s conftest.err'
28775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28776 (eval $ac_try) 2>&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); }; } &&
28780 { ac_try='test -s conftest$ac_exeext'
28781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28782 (eval $ac_try) 2>&5
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; }; then
28786 ol_cv_db_db_4_2=yes
28788 echo "$as_me: failed program was:" >&5
28789 sed 's/^/| /' conftest.$ac_ext >&5
28793 rm -f conftest.err conftest.$ac_objext \
28794 conftest$ac_exeext conftest.$ac_ext
28799 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28800 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28802 if test $ol_cv_db_db_4_2 = yes ; then
28803 ol_cv_lib_db=-ldb-4-2
28807 if test $ol_cv_lib_db = no ; then
28808 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28809 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28810 if test "${ol_cv_db_db_4+set}" = set; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28816 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28818 cat >conftest.$ac_ext <<_ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h. */
28825 #ifdef HAVE_DB_185_H
28826 # include <db_185.h>
28831 #ifndef DB_VERSION_MAJOR
28832 # define DB_VERSION_MAJOR 1
28836 #define NULL ((void*)0)
28843 #if DB_VERSION_MAJOR > 1
28846 int major, minor, patch;
28848 version = db_version( &major, &minor, &patch );
28850 if( major != DB_VERSION_MAJOR ||
28851 minor < DB_VERSION_MINOR )
28853 printf("Berkeley DB version mismatch\n"
28854 "\theader: %s\n\tlibrary: %s\n",
28855 DB_VERSION_STRING, version);
28861 #if DB_VERSION_MAJOR > 2
28862 db_env_create( NULL, 0 );
28863 #elif DB_VERSION_MAJOR > 1
28864 db_appexit( NULL );
28866 (void) dbopen( NULL, 0, 0, 0, NULL);
28873 rm -f conftest.$ac_objext conftest$ac_exeext
28874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28875 (eval $ac_link) 2>conftest.er1
28877 grep -v '^ *+' conftest.er1 >conftest.err
28879 cat conftest.err >&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); } &&
28882 { ac_try='test -z "$ac_c_werror_flag"
28883 || test ! -s conftest.err'
28884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28885 (eval $ac_try) 2>&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); }; } &&
28889 { ac_try='test -s conftest$ac_exeext'
28890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28891 (eval $ac_try) 2>&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); }; }; then
28897 echo "$as_me: failed program was:" >&5
28898 sed 's/^/| /' conftest.$ac_ext >&5
28902 rm -f conftest.err conftest.$ac_objext \
28903 conftest$ac_exeext conftest.$ac_ext
28908 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28909 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28911 if test $ol_cv_db_db_4 = yes ; then
28912 ol_cv_lib_db=-ldb-4
28916 if test $ol_cv_lib_db = no ; then
28917 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28918 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28919 if test "${ol_cv_db_db4+set}" = set; then
28920 echo $ECHO_N "(cached) $ECHO_C" >&6
28925 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28927 cat >conftest.$ac_ext <<_ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h. */
28934 #ifdef HAVE_DB_185_H
28935 # include <db_185.h>
28940 #ifndef DB_VERSION_MAJOR
28941 # define DB_VERSION_MAJOR 1
28945 #define NULL ((void*)0)
28952 #if DB_VERSION_MAJOR > 1
28955 int major, minor, patch;
28957 version = db_version( &major, &minor, &patch );
28959 if( major != DB_VERSION_MAJOR ||
28960 minor < DB_VERSION_MINOR )
28962 printf("Berkeley DB version mismatch\n"
28963 "\theader: %s\n\tlibrary: %s\n",
28964 DB_VERSION_STRING, version);
28970 #if DB_VERSION_MAJOR > 2
28971 db_env_create( NULL, 0 );
28972 #elif DB_VERSION_MAJOR > 1
28973 db_appexit( NULL );
28975 (void) dbopen( NULL, 0, 0, 0, NULL);
28982 rm -f conftest.$ac_objext conftest$ac_exeext
28983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28984 (eval $ac_link) 2>conftest.er1
28986 grep -v '^ *+' conftest.er1 >conftest.err
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } &&
28991 { ac_try='test -z "$ac_c_werror_flag"
28992 || test ! -s conftest.err'
28993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994 (eval $ac_try) 2>&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; } &&
28998 { ac_try='test -s conftest$ac_exeext'
28999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000 (eval $ac_try) 2>&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); }; }; then
29006 echo "$as_me: failed program was:" >&5
29007 sed 's/^/| /' conftest.$ac_ext >&5
29011 rm -f conftest.err conftest.$ac_objext \
29012 conftest$ac_exeext conftest.$ac_ext
29017 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29018 echo "${ECHO_T}$ol_cv_db_db4" >&6
29020 if test $ol_cv_db_db4 = yes ; then
29025 if test $ol_cv_lib_db = no ; then
29026 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29027 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29028 if test "${ol_cv_db_db+set}" = set; then
29029 echo $ECHO_N "(cached) $ECHO_C" >&6
29034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29036 cat >conftest.$ac_ext <<_ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29043 #ifdef HAVE_DB_185_H
29044 # include <db_185.h>
29049 #ifndef DB_VERSION_MAJOR
29050 # define DB_VERSION_MAJOR 1
29054 #define NULL ((void*)0)
29061 #if DB_VERSION_MAJOR > 1
29064 int major, minor, patch;
29066 version = db_version( &major, &minor, &patch );
29068 if( major != DB_VERSION_MAJOR ||
29069 minor < DB_VERSION_MINOR )
29071 printf("Berkeley DB version mismatch\n"
29072 "\theader: %s\n\tlibrary: %s\n",
29073 DB_VERSION_STRING, version);
29079 #if DB_VERSION_MAJOR > 2
29080 db_env_create( NULL, 0 );
29081 #elif DB_VERSION_MAJOR > 1
29082 db_appexit( NULL );
29084 (void) dbopen( NULL, 0, 0, 0, NULL);
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29093 (eval $ac_link) 2>conftest.er1
29095 grep -v '^ *+' conftest.er1 >conftest.err
29097 cat conftest.err >&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
29100 { ac_try='test -z "$ac_c_werror_flag"
29101 || test ! -s conftest.err'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; } &&
29107 { ac_try='test -s conftest$ac_exeext'
29108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109 (eval $ac_try) 2>&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29120 rm -f conftest.err conftest.$ac_objext \
29121 conftest$ac_exeext conftest.$ac_ext
29126 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29127 echo "${ECHO_T}$ol_cv_db_db" >&6
29129 if test $ol_cv_db_db = yes ; then
29134 if test $ol_cv_lib_db = no ; then
29135 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29136 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29137 if test "${ol_cv_db_db41+set}" = set; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29145 cat >conftest.$ac_ext <<_ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h. */
29152 #ifdef HAVE_DB_185_H
29153 # include <db_185.h>
29158 #ifndef DB_VERSION_MAJOR
29159 # define DB_VERSION_MAJOR 1
29163 #define NULL ((void*)0)
29170 #if DB_VERSION_MAJOR > 1
29173 int major, minor, patch;
29175 version = db_version( &major, &minor, &patch );
29177 if( major != DB_VERSION_MAJOR ||
29178 minor < DB_VERSION_MINOR )
29180 printf("Berkeley DB version mismatch\n"
29181 "\theader: %s\n\tlibrary: %s\n",
29182 DB_VERSION_STRING, version);
29188 #if DB_VERSION_MAJOR > 2
29189 db_env_create( NULL, 0 );
29190 #elif DB_VERSION_MAJOR > 1
29191 db_appexit( NULL );
29193 (void) dbopen( NULL, 0, 0, 0, NULL);
29200 rm -f conftest.$ac_objext conftest$ac_exeext
29201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29202 (eval $ac_link) 2>conftest.er1
29204 grep -v '^ *+' conftest.er1 >conftest.err
29206 cat conftest.err >&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } &&
29209 { ac_try='test -z "$ac_c_werror_flag"
29210 || test ! -s conftest.err'
29211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212 (eval $ac_try) 2>&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; } &&
29216 { ac_try='test -s conftest$ac_exeext'
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; }; then
29224 echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29229 rm -f conftest.err conftest.$ac_objext \
29230 conftest$ac_exeext conftest.$ac_ext
29235 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29236 echo "${ECHO_T}$ol_cv_db_db41" >&6
29238 if test $ol_cv_db_db41 = yes ; then
29239 ol_cv_lib_db=-ldb41
29243 if test $ol_cv_lib_db = no ; then
29244 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29245 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29246 if test "${ol_cv_db_db_41+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29252 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29254 cat >conftest.$ac_ext <<_ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h. */
29261 #ifdef HAVE_DB_185_H
29262 # include <db_185.h>
29267 #ifndef DB_VERSION_MAJOR
29268 # define DB_VERSION_MAJOR 1
29272 #define NULL ((void*)0)
29279 #if DB_VERSION_MAJOR > 1
29282 int major, minor, patch;
29284 version = db_version( &major, &minor, &patch );
29286 if( major != DB_VERSION_MAJOR ||
29287 minor < DB_VERSION_MINOR )
29289 printf("Berkeley DB version mismatch\n"
29290 "\theader: %s\n\tlibrary: %s\n",
29291 DB_VERSION_STRING, version);
29297 #if DB_VERSION_MAJOR > 2
29298 db_env_create( NULL, 0 );
29299 #elif DB_VERSION_MAJOR > 1
29300 db_appexit( NULL );
29302 (void) dbopen( NULL, 0, 0, 0, NULL);
29309 rm -f conftest.$ac_objext conftest$ac_exeext
29310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29311 (eval $ac_link) 2>conftest.er1
29313 grep -v '^ *+' conftest.er1 >conftest.err
29315 cat conftest.err >&5
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); } &&
29318 { ac_try='test -z "$ac_c_werror_flag"
29319 || test ! -s conftest.err'
29320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29321 (eval $ac_try) 2>&5
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); }; } &&
29325 { ac_try='test -s conftest$ac_exeext'
29326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 (eval $ac_try) 2>&5
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; }; then
29333 echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29338 rm -f conftest.err conftest.$ac_objext \
29339 conftest$ac_exeext conftest.$ac_ext
29344 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29345 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29347 if test $ol_cv_db_db_41 = yes ; then
29348 ol_cv_lib_db=-ldb-41
29352 if test $ol_cv_lib_db = no ; then
29353 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29354 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29355 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29356 echo $ECHO_N "(cached) $ECHO_C" >&6
29361 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29363 cat >conftest.$ac_ext <<_ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h. */
29370 #ifdef HAVE_DB_185_H
29371 # include <db_185.h>
29376 #ifndef DB_VERSION_MAJOR
29377 # define DB_VERSION_MAJOR 1
29381 #define NULL ((void*)0)
29388 #if DB_VERSION_MAJOR > 1
29391 int major, minor, patch;
29393 version = db_version( &major, &minor, &patch );
29395 if( major != DB_VERSION_MAJOR ||
29396 minor < DB_VERSION_MINOR )
29398 printf("Berkeley DB version mismatch\n"
29399 "\theader: %s\n\tlibrary: %s\n",
29400 DB_VERSION_STRING, version);
29406 #if DB_VERSION_MAJOR > 2
29407 db_env_create( NULL, 0 );
29408 #elif DB_VERSION_MAJOR > 1
29409 db_appexit( NULL );
29411 (void) dbopen( NULL, 0, 0, 0, NULL);
29418 rm -f conftest.$ac_objext conftest$ac_exeext
29419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29420 (eval $ac_link) 2>conftest.er1
29422 grep -v '^ *+' conftest.er1 >conftest.err
29424 cat conftest.err >&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } &&
29427 { ac_try='test -z "$ac_c_werror_flag"
29428 || test ! -s conftest.err'
29429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430 (eval $ac_try) 2>&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest$ac_exeext'
29435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436 (eval $ac_try) 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; }; then
29440 ol_cv_db_db_4_dot_1=yes
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ol_cv_db_db_4_dot_1=no
29447 rm -f conftest.err conftest.$ac_objext \
29448 conftest$ac_exeext conftest.$ac_ext
29453 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29454 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29456 if test $ol_cv_db_db_4_dot_1 = yes ; then
29457 ol_cv_lib_db=-ldb-4.1
29461 if test $ol_cv_lib_db = no ; then
29462 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29463 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29464 if test "${ol_cv_db_db_4_1+set}" = set; then
29465 echo $ECHO_N "(cached) $ECHO_C" >&6
29470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29472 cat >conftest.$ac_ext <<_ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h. */
29479 #ifdef HAVE_DB_185_H
29480 # include <db_185.h>
29485 #ifndef DB_VERSION_MAJOR
29486 # define DB_VERSION_MAJOR 1
29490 #define NULL ((void*)0)
29497 #if DB_VERSION_MAJOR > 1
29500 int major, minor, patch;
29502 version = db_version( &major, &minor, &patch );
29504 if( major != DB_VERSION_MAJOR ||
29505 minor < DB_VERSION_MINOR )
29507 printf("Berkeley DB version mismatch\n"
29508 "\theader: %s\n\tlibrary: %s\n",
29509 DB_VERSION_STRING, version);
29515 #if DB_VERSION_MAJOR > 2
29516 db_env_create( NULL, 0 );
29517 #elif DB_VERSION_MAJOR > 1
29518 db_appexit( NULL );
29520 (void) dbopen( NULL, 0, 0, 0, NULL);
29527 rm -f conftest.$ac_objext conftest$ac_exeext
29528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29529 (eval $ac_link) 2>conftest.er1
29531 grep -v '^ *+' conftest.er1 >conftest.err
29533 cat conftest.err >&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); } &&
29536 { ac_try='test -z "$ac_c_werror_flag"
29537 || test ! -s conftest.err'
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; } &&
29543 { ac_try='test -s conftest$ac_exeext'
29544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545 (eval $ac_try) 2>&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549 ol_cv_db_db_4_1=yes
29551 echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29556 rm -f conftest.err conftest.$ac_objext \
29557 conftest$ac_exeext conftest.$ac_ext
29562 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29563 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29565 if test $ol_cv_db_db_4_1 = yes ; then
29566 ol_cv_lib_db=-ldb-4-1
29570 if test $ol_cv_lib_db = no ; then
29571 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29572 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29573 if test "${ol_cv_db_db3+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29579 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29581 cat >conftest.$ac_ext <<_ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h. */
29588 #ifdef HAVE_DB_185_H
29589 # include <db_185.h>
29594 #ifndef DB_VERSION_MAJOR
29595 # define DB_VERSION_MAJOR 1
29599 #define NULL ((void*)0)
29606 #if DB_VERSION_MAJOR > 1
29609 int major, minor, patch;
29611 version = db_version( &major, &minor, &patch );
29613 if( major != DB_VERSION_MAJOR ||
29614 minor < DB_VERSION_MINOR )
29616 printf("Berkeley DB version mismatch\n"
29617 "\theader: %s\n\tlibrary: %s\n",
29618 DB_VERSION_STRING, version);
29624 #if DB_VERSION_MAJOR > 2
29625 db_env_create( NULL, 0 );
29626 #elif DB_VERSION_MAJOR > 1
29627 db_appexit( NULL );
29629 (void) dbopen( NULL, 0, 0, 0, NULL);
29636 rm -f conftest.$ac_objext conftest$ac_exeext
29637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29638 (eval $ac_link) 2>conftest.er1
29640 grep -v '^ *+' conftest.er1 >conftest.err
29642 cat conftest.err >&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } &&
29645 { ac_try='test -z "$ac_c_werror_flag"
29646 || test ! -s conftest.err'
29647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648 (eval $ac_try) 2>&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; } &&
29652 { ac_try='test -s conftest$ac_exeext'
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; }; then
29660 echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29665 rm -f conftest.err conftest.$ac_objext \
29666 conftest$ac_exeext conftest.$ac_ext
29671 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29672 echo "${ECHO_T}$ol_cv_db_db3" >&6
29674 if test $ol_cv_db_db3 = yes ; then
29679 if test $ol_cv_lib_db = no ; then
29680 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29681 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29682 if test "${ol_cv_db_db_3+set}" = set; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29688 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29690 cat >conftest.$ac_ext <<_ACEOF
29693 cat confdefs.h >>conftest.$ac_ext
29694 cat >>conftest.$ac_ext <<_ACEOF
29695 /* end confdefs.h. */
29697 #ifdef HAVE_DB_185_H
29698 # include <db_185.h>
29703 #ifndef DB_VERSION_MAJOR
29704 # define DB_VERSION_MAJOR 1
29708 #define NULL ((void*)0)
29715 #if DB_VERSION_MAJOR > 1
29718 int major, minor, patch;
29720 version = db_version( &major, &minor, &patch );
29722 if( major != DB_VERSION_MAJOR ||
29723 minor < DB_VERSION_MINOR )
29725 printf("Berkeley DB version mismatch\n"
29726 "\theader: %s\n\tlibrary: %s\n",
29727 DB_VERSION_STRING, version);
29733 #if DB_VERSION_MAJOR > 2
29734 db_env_create( NULL, 0 );
29735 #elif DB_VERSION_MAJOR > 1
29736 db_appexit( NULL );
29738 (void) dbopen( NULL, 0, 0, 0, NULL);
29745 rm -f conftest.$ac_objext conftest$ac_exeext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29747 (eval $ac_link) 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
29754 { ac_try='test -z "$ac_c_werror_flag"
29755 || test ! -s conftest.err'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; } &&
29761 { ac_try='test -s conftest$ac_exeext'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; }; then
29769 echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29774 rm -f conftest.err conftest.$ac_objext \
29775 conftest$ac_exeext conftest.$ac_ext
29780 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29781 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29783 if test $ol_cv_db_db_3 = yes ; then
29784 ol_cv_lib_db=-ldb-3
29788 if test $ol_cv_lib_db = no ; then
29789 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29790 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29791 if test "${ol_cv_db_db2+set}" = set; then
29792 echo $ECHO_N "(cached) $ECHO_C" >&6
29797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29799 cat >conftest.$ac_ext <<_ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h. */
29806 #ifdef HAVE_DB_185_H
29807 # include <db_185.h>
29812 #ifndef DB_VERSION_MAJOR
29813 # define DB_VERSION_MAJOR 1
29817 #define NULL ((void*)0)
29824 #if DB_VERSION_MAJOR > 1
29827 int major, minor, patch;
29829 version = db_version( &major, &minor, &patch );
29831 if( major != DB_VERSION_MAJOR ||
29832 minor < DB_VERSION_MINOR )
29834 printf("Berkeley DB version mismatch\n"
29835 "\theader: %s\n\tlibrary: %s\n",
29836 DB_VERSION_STRING, version);
29842 #if DB_VERSION_MAJOR > 2
29843 db_env_create( NULL, 0 );
29844 #elif DB_VERSION_MAJOR > 1
29845 db_appexit( NULL );
29847 (void) dbopen( NULL, 0, 0, 0, NULL);
29854 rm -f conftest.$ac_objext conftest$ac_exeext
29855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29856 (eval $ac_link) 2>conftest.er1
29858 grep -v '^ *+' conftest.er1 >conftest.err
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } &&
29863 { ac_try='test -z "$ac_c_werror_flag"
29864 || test ! -s conftest.err'
29865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29866 (eval $ac_try) 2>&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); }; } &&
29870 { ac_try='test -s conftest$ac_exeext'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; }; then
29878 echo "$as_me: failed program was:" >&5
29879 sed 's/^/| /' conftest.$ac_ext >&5
29883 rm -f conftest.err conftest.$ac_objext \
29884 conftest$ac_exeext conftest.$ac_ext
29889 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29890 echo "${ECHO_T}$ol_cv_db_db2" >&6
29892 if test $ol_cv_db_db2 = yes ; then
29897 if test $ol_cv_lib_db = no ; then
29898 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29899 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29900 if test "${ol_cv_db_db_2+set}" = set; then
29901 echo $ECHO_N "(cached) $ECHO_C" >&6
29906 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29908 cat >conftest.$ac_ext <<_ACEOF
29911 cat confdefs.h >>conftest.$ac_ext
29912 cat >>conftest.$ac_ext <<_ACEOF
29913 /* end confdefs.h. */
29915 #ifdef HAVE_DB_185_H
29916 # include <db_185.h>
29921 #ifndef DB_VERSION_MAJOR
29922 # define DB_VERSION_MAJOR 1
29926 #define NULL ((void*)0)
29933 #if DB_VERSION_MAJOR > 1
29936 int major, minor, patch;
29938 version = db_version( &major, &minor, &patch );
29940 if( major != DB_VERSION_MAJOR ||
29941 minor < DB_VERSION_MINOR )
29943 printf("Berkeley DB version mismatch\n"
29944 "\theader: %s\n\tlibrary: %s\n",
29945 DB_VERSION_STRING, version);
29951 #if DB_VERSION_MAJOR > 2
29952 db_env_create( NULL, 0 );
29953 #elif DB_VERSION_MAJOR > 1
29954 db_appexit( NULL );
29956 (void) dbopen( NULL, 0, 0, 0, NULL);
29963 rm -f conftest.$ac_objext conftest$ac_exeext
29964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29965 (eval $ac_link) 2>conftest.er1
29967 grep -v '^ *+' conftest.er1 >conftest.err
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } &&
29972 { ac_try='test -z "$ac_c_werror_flag"
29973 || test ! -s conftest.err'
29974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29975 (eval $ac_try) 2>&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); }; } &&
29979 { ac_try='test -s conftest$ac_exeext'
29980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29981 (eval $ac_try) 2>&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); }; }; then
29987 echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29992 rm -f conftest.err conftest.$ac_objext \
29993 conftest$ac_exeext conftest.$ac_ext
29998 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
29999 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30001 if test $ol_cv_db_db_2 = yes ; then
30002 ol_cv_lib_db=-ldb-2
30006 if test $ol_cv_lib_db = no ; then
30007 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30008 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30009 if test "${ol_cv_db_db1+set}" = set; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30015 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30017 cat >conftest.$ac_ext <<_ACEOF
30020 cat confdefs.h >>conftest.$ac_ext
30021 cat >>conftest.$ac_ext <<_ACEOF
30022 /* end confdefs.h. */
30024 #ifdef HAVE_DB_185_H
30025 # include <db_185.h>
30030 #ifndef DB_VERSION_MAJOR
30031 # define DB_VERSION_MAJOR 1
30035 #define NULL ((void*)0)
30042 #if DB_VERSION_MAJOR > 1
30045 int major, minor, patch;
30047 version = db_version( &major, &minor, &patch );
30049 if( major != DB_VERSION_MAJOR ||
30050 minor < DB_VERSION_MINOR )
30052 printf("Berkeley DB version mismatch\n"
30053 "\theader: %s\n\tlibrary: %s\n",
30054 DB_VERSION_STRING, version);
30060 #if DB_VERSION_MAJOR > 2
30061 db_env_create( NULL, 0 );
30062 #elif DB_VERSION_MAJOR > 1
30063 db_appexit( NULL );
30065 (void) dbopen( NULL, 0, 0, 0, NULL);
30072 rm -f conftest.$ac_objext conftest$ac_exeext
30073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30074 (eval $ac_link) 2>conftest.er1
30076 grep -v '^ *+' conftest.er1 >conftest.err
30078 cat conftest.err >&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); } &&
30081 { ac_try='test -z "$ac_c_werror_flag"
30082 || test ! -s conftest.err'
30083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084 (eval $ac_try) 2>&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; } &&
30088 { ac_try='test -s conftest$ac_exeext'
30089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090 (eval $ac_try) 2>&5
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; }; then
30096 echo "$as_me: failed program was:" >&5
30097 sed 's/^/| /' conftest.$ac_ext >&5
30101 rm -f conftest.err conftest.$ac_objext \
30102 conftest$ac_exeext conftest.$ac_ext
30107 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30108 echo "${ECHO_T}$ol_cv_db_db1" >&6
30110 if test $ol_cv_db_db1 = yes ; then
30115 if test $ol_cv_lib_db = no ; then
30116 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30117 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30118 if test "${ol_cv_db_db_1+set}" = set; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30124 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30126 cat >conftest.$ac_ext <<_ACEOF
30129 cat confdefs.h >>conftest.$ac_ext
30130 cat >>conftest.$ac_ext <<_ACEOF
30131 /* end confdefs.h. */
30133 #ifdef HAVE_DB_185_H
30134 # include <db_185.h>
30139 #ifndef DB_VERSION_MAJOR
30140 # define DB_VERSION_MAJOR 1
30144 #define NULL ((void*)0)
30151 #if DB_VERSION_MAJOR > 1
30154 int major, minor, patch;
30156 version = db_version( &major, &minor, &patch );
30158 if( major != DB_VERSION_MAJOR ||
30159 minor < DB_VERSION_MINOR )
30161 printf("Berkeley DB version mismatch\n"
30162 "\theader: %s\n\tlibrary: %s\n",
30163 DB_VERSION_STRING, version);
30169 #if DB_VERSION_MAJOR > 2
30170 db_env_create( NULL, 0 );
30171 #elif DB_VERSION_MAJOR > 1
30172 db_appexit( NULL );
30174 (void) dbopen( NULL, 0, 0, 0, NULL);
30181 rm -f conftest.$ac_objext conftest$ac_exeext
30182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30183 (eval $ac_link) 2>conftest.er1
30185 grep -v '^ *+' conftest.er1 >conftest.err
30187 cat conftest.err >&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } &&
30190 { ac_try='test -z "$ac_c_werror_flag"
30191 || test ! -s conftest.err'
30192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30193 (eval $ac_try) 2>&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); }; } &&
30197 { ac_try='test -s conftest$ac_exeext'
30198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199 (eval $ac_try) 2>&5
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); }; }; then
30205 echo "$as_me: failed program was:" >&5
30206 sed 's/^/| /' conftest.$ac_ext >&5
30210 rm -f conftest.err conftest.$ac_objext \
30211 conftest$ac_exeext conftest.$ac_ext
30216 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30217 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30219 if test $ol_cv_db_db_1 = yes ; then
30220 ol_cv_lib_db=-ldb-1
30225 if test "$ol_cv_lib_db" != no ; then
30226 ol_cv_berkeley_db=yes
30232 ol_cv_berkeley_db=no
30234 for ac_header in db.h
30236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30238 echo "$as_me:$LINENO: checking for $ac_header" >&5
30239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30246 # Is the header compilable?
30247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30249 cat >conftest.$ac_ext <<_ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h. */
30255 $ac_includes_default
30256 #include <$ac_header>
30258 rm -f conftest.$ac_objext
30259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30260 (eval $ac_compile) 2>conftest.er1
30262 grep -v '^ *+' conftest.er1 >conftest.err
30264 cat conftest.err >&5
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); } &&
30267 { ac_try='test -z "$ac_c_werror_flag"
30268 || test ! -s conftest.err'
30269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270 (eval $ac_try) 2>&5
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; } &&
30274 { ac_try='test -s conftest.$ac_objext'
30275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30276 (eval $ac_try) 2>&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }; }; then
30280 ac_header_compiler=yes
30282 echo "$as_me: failed program was:" >&5
30283 sed 's/^/| /' conftest.$ac_ext >&5
30285 ac_header_compiler=no
30287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30289 echo "${ECHO_T}$ac_header_compiler" >&6
30291 # Is the header present?
30292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30294 cat >conftest.$ac_ext <<_ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h. */
30300 #include <$ac_header>
30302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30305 grep -v '^ *+' conftest.er1 >conftest.err
30307 cat conftest.err >&5
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } >/dev/null; then
30310 if test -s conftest.err; then
30311 ac_cpp_err=$ac_c_preproc_warn_flag
30312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30319 if test -z "$ac_cpp_err"; then
30320 ac_header_preproc=yes
30322 echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30325 ac_header_preproc=no
30327 rm -f conftest.err conftest.$ac_ext
30328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30329 echo "${ECHO_T}$ac_header_preproc" >&6
30331 # So? What about this header?
30332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30338 ac_header_preproc=yes
30341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30355 ## ------------------------------------------ ##
30356 ## Report this to the AC_PACKAGE_NAME lists. ##
30357 ## ------------------------------------------ ##
30360 sed "s/^/$as_me: WARNING: /" >&2
30363 echo "$as_me:$LINENO: checking for $ac_header" >&5
30364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30368 eval "$as_ac_Header=\$ac_header_preproc"
30370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30375 cat >>confdefs.h <<_ACEOF
30376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30383 if test $ac_cv_header_db_h = yes; then
30385 if test $ol_cv_lib_db = no ; then
30386 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30387 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30388 if test "${ol_cv_db_none+set}" = set; then
30389 echo $ECHO_N "(cached) $ECHO_C" >&6
30394 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30396 cat >conftest.$ac_ext <<_ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h. */
30403 #ifdef HAVE_DB_185_H
30404 # include <db_185.h>
30409 #ifndef DB_VERSION_MAJOR
30410 # define DB_VERSION_MAJOR 1
30414 #define NULL ((void*)0)
30421 #if DB_VERSION_MAJOR > 1
30424 int major, minor, patch;
30426 version = db_version( &major, &minor, &patch );
30428 if( major != DB_VERSION_MAJOR ||
30429 minor < DB_VERSION_MINOR )
30431 printf("Berkeley DB version mismatch\n"
30432 "\theader: %s\n\tlibrary: %s\n",
30433 DB_VERSION_STRING, version);
30439 #if DB_VERSION_MAJOR > 2
30440 db_env_create( NULL, 0 );
30441 #elif DB_VERSION_MAJOR > 1
30442 db_appexit( NULL );
30444 (void) dbopen( NULL, 0, 0, 0, NULL);
30451 rm -f conftest.$ac_objext conftest$ac_exeext
30452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30453 (eval $ac_link) 2>conftest.er1
30455 grep -v '^ *+' conftest.er1 >conftest.err
30457 cat conftest.err >&5
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } &&
30460 { ac_try='test -z "$ac_c_werror_flag"
30461 || test ! -s conftest.err'
30462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463 (eval $ac_try) 2>&5
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; } &&
30467 { ac_try='test -s conftest$ac_exeext'
30468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30469 (eval $ac_try) 2>&5
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); }; }; then
30475 echo "$as_me: failed program was:" >&5
30476 sed 's/^/| /' conftest.$ac_ext >&5
30480 rm -f conftest.err conftest.$ac_objext \
30481 conftest$ac_exeext conftest.$ac_ext
30486 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30487 echo "${ECHO_T}$ol_cv_db_none" >&6
30489 if test $ol_cv_db_none = yes ; then
30494 if test $ol_cv_lib_db = no ; then
30495 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30496 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30497 if test "${ol_cv_db_db43+set}" = set; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
30503 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30505 cat >conftest.$ac_ext <<_ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h. */
30512 #ifdef HAVE_DB_185_H
30513 # include <db_185.h>
30518 #ifndef DB_VERSION_MAJOR
30519 # define DB_VERSION_MAJOR 1
30523 #define NULL ((void*)0)
30530 #if DB_VERSION_MAJOR > 1
30533 int major, minor, patch;
30535 version = db_version( &major, &minor, &patch );
30537 if( major != DB_VERSION_MAJOR ||
30538 minor < DB_VERSION_MINOR )
30540 printf("Berkeley DB version mismatch\n"
30541 "\theader: %s\n\tlibrary: %s\n",
30542 DB_VERSION_STRING, version);
30548 #if DB_VERSION_MAJOR > 2
30549 db_env_create( NULL, 0 );
30550 #elif DB_VERSION_MAJOR > 1
30551 db_appexit( NULL );
30553 (void) dbopen( NULL, 0, 0, 0, NULL);
30560 rm -f conftest.$ac_objext conftest$ac_exeext
30561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30562 (eval $ac_link) 2>conftest.er1
30564 grep -v '^ *+' conftest.er1 >conftest.err
30566 cat conftest.err >&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } &&
30569 { ac_try='test -z "$ac_c_werror_flag"
30570 || test ! -s conftest.err'
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest$ac_exeext'
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; }; then
30584 echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30589 rm -f conftest.err conftest.$ac_objext \
30590 conftest$ac_exeext conftest.$ac_ext
30595 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30596 echo "${ECHO_T}$ol_cv_db_db43" >&6
30598 if test $ol_cv_db_db43 = yes ; then
30599 ol_cv_lib_db=-ldb43
30603 if test $ol_cv_lib_db = no ; then
30604 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30605 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30606 if test "${ol_cv_db_db_43+set}" = set; then
30607 echo $ECHO_N "(cached) $ECHO_C" >&6
30612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30614 cat >conftest.$ac_ext <<_ACEOF
30617 cat confdefs.h >>conftest.$ac_ext
30618 cat >>conftest.$ac_ext <<_ACEOF
30619 /* end confdefs.h. */
30621 #ifdef HAVE_DB_185_H
30622 # include <db_185.h>
30627 #ifndef DB_VERSION_MAJOR
30628 # define DB_VERSION_MAJOR 1
30632 #define NULL ((void*)0)
30639 #if DB_VERSION_MAJOR > 1
30642 int major, minor, patch;
30644 version = db_version( &major, &minor, &patch );
30646 if( major != DB_VERSION_MAJOR ||
30647 minor < DB_VERSION_MINOR )
30649 printf("Berkeley DB version mismatch\n"
30650 "\theader: %s\n\tlibrary: %s\n",
30651 DB_VERSION_STRING, version);
30657 #if DB_VERSION_MAJOR > 2
30658 db_env_create( NULL, 0 );
30659 #elif DB_VERSION_MAJOR > 1
30660 db_appexit( NULL );
30662 (void) dbopen( NULL, 0, 0, 0, NULL);
30669 rm -f conftest.$ac_objext conftest$ac_exeext
30670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30671 (eval $ac_link) 2>conftest.er1
30673 grep -v '^ *+' conftest.er1 >conftest.err
30675 cat conftest.err >&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); } &&
30678 { ac_try='test -z "$ac_c_werror_flag"
30679 || test ! -s conftest.err'
30680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681 (eval $ac_try) 2>&5
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; } &&
30685 { ac_try='test -s conftest$ac_exeext'
30686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 (eval $ac_try) 2>&5
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; }; then
30693 echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30698 rm -f conftest.err conftest.$ac_objext \
30699 conftest$ac_exeext conftest.$ac_ext
30704 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30705 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30707 if test $ol_cv_db_db_43 = yes ; then
30708 ol_cv_lib_db=-ldb-43
30712 if test $ol_cv_lib_db = no ; then
30713 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30714 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30715 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30716 echo $ECHO_N "(cached) $ECHO_C" >&6
30721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30723 cat >conftest.$ac_ext <<_ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h. */
30730 #ifdef HAVE_DB_185_H
30731 # include <db_185.h>
30736 #ifndef DB_VERSION_MAJOR
30737 # define DB_VERSION_MAJOR 1
30741 #define NULL ((void*)0)
30748 #if DB_VERSION_MAJOR > 1
30751 int major, minor, patch;
30753 version = db_version( &major, &minor, &patch );
30755 if( major != DB_VERSION_MAJOR ||
30756 minor < DB_VERSION_MINOR )
30758 printf("Berkeley DB version mismatch\n"
30759 "\theader: %s\n\tlibrary: %s\n",
30760 DB_VERSION_STRING, version);
30766 #if DB_VERSION_MAJOR > 2
30767 db_env_create( NULL, 0 );
30768 #elif DB_VERSION_MAJOR > 1
30769 db_appexit( NULL );
30771 (void) dbopen( NULL, 0, 0, 0, NULL);
30778 rm -f conftest.$ac_objext conftest$ac_exeext
30779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30780 (eval $ac_link) 2>conftest.er1
30782 grep -v '^ *+' conftest.er1 >conftest.err
30784 cat conftest.err >&5
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); } &&
30787 { ac_try='test -z "$ac_c_werror_flag"
30788 || test ! -s conftest.err'
30789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30790 (eval $ac_try) 2>&5
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; } &&
30794 { ac_try='test -s conftest$ac_exeext'
30795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30796 (eval $ac_try) 2>&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); }; }; then
30800 ol_cv_db_db_4_dot_3=yes
30802 echo "$as_me: failed program was:" >&5
30803 sed 's/^/| /' conftest.$ac_ext >&5
30805 ol_cv_db_db_4_dot_3=no
30807 rm -f conftest.err conftest.$ac_objext \
30808 conftest$ac_exeext conftest.$ac_ext
30813 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30814 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30816 if test $ol_cv_db_db_4_dot_3 = yes ; then
30817 ol_cv_lib_db=-ldb-4.3
30821 if test $ol_cv_lib_db = no ; then
30822 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30823 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30824 if test "${ol_cv_db_db_4_3+set}" = set; then
30825 echo $ECHO_N "(cached) $ECHO_C" >&6
30830 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30832 cat >conftest.$ac_ext <<_ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h. */
30839 #ifdef HAVE_DB_185_H
30840 # include <db_185.h>
30845 #ifndef DB_VERSION_MAJOR
30846 # define DB_VERSION_MAJOR 1
30850 #define NULL ((void*)0)
30857 #if DB_VERSION_MAJOR > 1
30860 int major, minor, patch;
30862 version = db_version( &major, &minor, &patch );
30864 if( major != DB_VERSION_MAJOR ||
30865 minor < DB_VERSION_MINOR )
30867 printf("Berkeley DB version mismatch\n"
30868 "\theader: %s\n\tlibrary: %s\n",
30869 DB_VERSION_STRING, version);
30875 #if DB_VERSION_MAJOR > 2
30876 db_env_create( NULL, 0 );
30877 #elif DB_VERSION_MAJOR > 1
30878 db_appexit( NULL );
30880 (void) dbopen( NULL, 0, 0, 0, NULL);
30887 rm -f conftest.$ac_objext conftest$ac_exeext
30888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30889 (eval $ac_link) 2>conftest.er1
30891 grep -v '^ *+' conftest.er1 >conftest.err
30893 cat conftest.err >&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); } &&
30896 { ac_try='test -z "$ac_c_werror_flag"
30897 || test ! -s conftest.err'
30898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30899 (eval $ac_try) 2>&5
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; } &&
30903 { ac_try='test -s conftest$ac_exeext'
30904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30905 (eval $ac_try) 2>&5
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); }; }; then
30909 ol_cv_db_db_4_3=yes
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30916 rm -f conftest.err conftest.$ac_objext \
30917 conftest$ac_exeext conftest.$ac_ext
30922 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30923 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
30925 if test $ol_cv_db_db_4_3 = yes ; then
30926 ol_cv_lib_db=-ldb-4-3
30930 if test $ol_cv_lib_db = no ; then
30931 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
30932 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
30933 if test "${ol_cv_db_db42+set}" = set; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30939 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30941 cat >conftest.$ac_ext <<_ACEOF
30944 cat confdefs.h >>conftest.$ac_ext
30945 cat >>conftest.$ac_ext <<_ACEOF
30946 /* end confdefs.h. */
30948 #ifdef HAVE_DB_185_H
30949 # include <db_185.h>
30954 #ifndef DB_VERSION_MAJOR
30955 # define DB_VERSION_MAJOR 1
30959 #define NULL ((void*)0)
30966 #if DB_VERSION_MAJOR > 1
30969 int major, minor, patch;
30971 version = db_version( &major, &minor, &patch );
30973 if( major != DB_VERSION_MAJOR ||
30974 minor < DB_VERSION_MINOR )
30976 printf("Berkeley DB version mismatch\n"
30977 "\theader: %s\n\tlibrary: %s\n",
30978 DB_VERSION_STRING, version);
30984 #if DB_VERSION_MAJOR > 2
30985 db_env_create( NULL, 0 );
30986 #elif DB_VERSION_MAJOR > 1
30987 db_appexit( NULL );
30989 (void) dbopen( NULL, 0, 0, 0, NULL);
30996 rm -f conftest.$ac_objext conftest$ac_exeext
30997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30998 (eval $ac_link) 2>conftest.er1
31000 grep -v '^ *+' conftest.er1 >conftest.err
31002 cat conftest.err >&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } &&
31005 { ac_try='test -z "$ac_c_werror_flag"
31006 || test ! -s conftest.err'
31007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008 (eval $ac_try) 2>&5
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); }; } &&
31012 { ac_try='test -s conftest$ac_exeext'
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; }; then
31020 echo "$as_me: failed program was:" >&5
31021 sed 's/^/| /' conftest.$ac_ext >&5
31025 rm -f conftest.err conftest.$ac_objext \
31026 conftest$ac_exeext conftest.$ac_ext
31031 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31032 echo "${ECHO_T}$ol_cv_db_db42" >&6
31034 if test $ol_cv_db_db42 = yes ; then
31035 ol_cv_lib_db=-ldb42
31039 if test $ol_cv_lib_db = no ; then
31040 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31041 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31042 if test "${ol_cv_db_db_42+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31048 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31050 cat >conftest.$ac_ext <<_ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h. */
31057 #ifdef HAVE_DB_185_H
31058 # include <db_185.h>
31063 #ifndef DB_VERSION_MAJOR
31064 # define DB_VERSION_MAJOR 1
31068 #define NULL ((void*)0)
31075 #if DB_VERSION_MAJOR > 1
31078 int major, minor, patch;
31080 version = db_version( &major, &minor, &patch );
31082 if( major != DB_VERSION_MAJOR ||
31083 minor < DB_VERSION_MINOR )
31085 printf("Berkeley DB version mismatch\n"
31086 "\theader: %s\n\tlibrary: %s\n",
31087 DB_VERSION_STRING, version);
31093 #if DB_VERSION_MAJOR > 2
31094 db_env_create( NULL, 0 );
31095 #elif DB_VERSION_MAJOR > 1
31096 db_appexit( NULL );
31098 (void) dbopen( NULL, 0, 0, 0, NULL);
31105 rm -f conftest.$ac_objext conftest$ac_exeext
31106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31107 (eval $ac_link) 2>conftest.er1
31109 grep -v '^ *+' conftest.er1 >conftest.err
31111 cat conftest.err >&5
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); } &&
31114 { ac_try='test -z "$ac_c_werror_flag"
31115 || test ! -s conftest.err'
31116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117 (eval $ac_try) 2>&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; } &&
31121 { ac_try='test -s conftest$ac_exeext'
31122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123 (eval $ac_try) 2>&5
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; }; then
31129 echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31134 rm -f conftest.err conftest.$ac_objext \
31135 conftest$ac_exeext conftest.$ac_ext
31140 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31141 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31143 if test $ol_cv_db_db_42 = yes ; then
31144 ol_cv_lib_db=-ldb-42
31148 if test $ol_cv_lib_db = no ; then
31149 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31150 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31151 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31157 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31159 cat >conftest.$ac_ext <<_ACEOF
31162 cat confdefs.h >>conftest.$ac_ext
31163 cat >>conftest.$ac_ext <<_ACEOF
31164 /* end confdefs.h. */
31166 #ifdef HAVE_DB_185_H
31167 # include <db_185.h>
31172 #ifndef DB_VERSION_MAJOR
31173 # define DB_VERSION_MAJOR 1
31177 #define NULL ((void*)0)
31184 #if DB_VERSION_MAJOR > 1
31187 int major, minor, patch;
31189 version = db_version( &major, &minor, &patch );
31191 if( major != DB_VERSION_MAJOR ||
31192 minor < DB_VERSION_MINOR )
31194 printf("Berkeley DB version mismatch\n"
31195 "\theader: %s\n\tlibrary: %s\n",
31196 DB_VERSION_STRING, version);
31202 #if DB_VERSION_MAJOR > 2
31203 db_env_create( NULL, 0 );
31204 #elif DB_VERSION_MAJOR > 1
31205 db_appexit( NULL );
31207 (void) dbopen( NULL, 0, 0, 0, NULL);
31214 rm -f conftest.$ac_objext conftest$ac_exeext
31215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31216 (eval $ac_link) 2>conftest.er1
31218 grep -v '^ *+' conftest.er1 >conftest.err
31220 cat conftest.err >&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
31223 { ac_try='test -z "$ac_c_werror_flag"
31224 || test ! -s conftest.err'
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; } &&
31230 { ac_try='test -s conftest$ac_exeext'
31231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31232 (eval $ac_try) 2>&5
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); }; }; then
31236 ol_cv_db_db_4_dot_2=yes
31238 echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31241 ol_cv_db_db_4_dot_2=no
31243 rm -f conftest.err conftest.$ac_objext \
31244 conftest$ac_exeext conftest.$ac_ext
31249 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31250 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31252 if test $ol_cv_db_db_4_dot_2 = yes ; then
31253 ol_cv_lib_db=-ldb-4.2
31257 if test $ol_cv_lib_db = no ; then
31258 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31259 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31260 if test "${ol_cv_db_db_4_2+set}" = set; then
31261 echo $ECHO_N "(cached) $ECHO_C" >&6
31266 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31268 cat >conftest.$ac_ext <<_ACEOF
31271 cat confdefs.h >>conftest.$ac_ext
31272 cat >>conftest.$ac_ext <<_ACEOF
31273 /* end confdefs.h. */
31275 #ifdef HAVE_DB_185_H
31276 # include <db_185.h>
31281 #ifndef DB_VERSION_MAJOR
31282 # define DB_VERSION_MAJOR 1
31286 #define NULL ((void*)0)
31293 #if DB_VERSION_MAJOR > 1
31296 int major, minor, patch;
31298 version = db_version( &major, &minor, &patch );
31300 if( major != DB_VERSION_MAJOR ||
31301 minor < DB_VERSION_MINOR )
31303 printf("Berkeley DB version mismatch\n"
31304 "\theader: %s\n\tlibrary: %s\n",
31305 DB_VERSION_STRING, version);
31311 #if DB_VERSION_MAJOR > 2
31312 db_env_create( NULL, 0 );
31313 #elif DB_VERSION_MAJOR > 1
31314 db_appexit( NULL );
31316 (void) dbopen( NULL, 0, 0, 0, NULL);
31323 rm -f conftest.$ac_objext conftest$ac_exeext
31324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31325 (eval $ac_link) 2>conftest.er1
31327 grep -v '^ *+' conftest.er1 >conftest.err
31329 cat conftest.err >&5
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); } &&
31332 { ac_try='test -z "$ac_c_werror_flag"
31333 || test ! -s conftest.err'
31334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335 (eval $ac_try) 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
31339 { ac_try='test -s conftest$ac_exeext'
31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341 (eval $ac_try) 2>&5
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; }; then
31345 ol_cv_db_db_4_2=yes
31347 echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.$ac_ext >&5
31352 rm -f conftest.err conftest.$ac_objext \
31353 conftest$ac_exeext conftest.$ac_ext
31358 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31359 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31361 if test $ol_cv_db_db_4_2 = yes ; then
31362 ol_cv_lib_db=-ldb-4-2
31366 if test $ol_cv_lib_db = no ; then
31367 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31368 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31369 if test "${ol_cv_db_db_4+set}" = set; then
31370 echo $ECHO_N "(cached) $ECHO_C" >&6
31375 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31377 cat >conftest.$ac_ext <<_ACEOF
31380 cat confdefs.h >>conftest.$ac_ext
31381 cat >>conftest.$ac_ext <<_ACEOF
31382 /* end confdefs.h. */
31384 #ifdef HAVE_DB_185_H
31385 # include <db_185.h>
31390 #ifndef DB_VERSION_MAJOR
31391 # define DB_VERSION_MAJOR 1
31395 #define NULL ((void*)0)
31402 #if DB_VERSION_MAJOR > 1
31405 int major, minor, patch;
31407 version = db_version( &major, &minor, &patch );
31409 if( major != DB_VERSION_MAJOR ||
31410 minor < DB_VERSION_MINOR )
31412 printf("Berkeley DB version mismatch\n"
31413 "\theader: %s\n\tlibrary: %s\n",
31414 DB_VERSION_STRING, version);
31420 #if DB_VERSION_MAJOR > 2
31421 db_env_create( NULL, 0 );
31422 #elif DB_VERSION_MAJOR > 1
31423 db_appexit( NULL );
31425 (void) dbopen( NULL, 0, 0, 0, NULL);
31432 rm -f conftest.$ac_objext conftest$ac_exeext
31433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31434 (eval $ac_link) 2>conftest.er1
31436 grep -v '^ *+' conftest.er1 >conftest.err
31438 cat conftest.err >&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); } &&
31441 { ac_try='test -z "$ac_c_werror_flag"
31442 || test ! -s conftest.err'
31443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31444 (eval $ac_try) 2>&5
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; } &&
31448 { ac_try='test -s conftest$ac_exeext'
31449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31450 (eval $ac_try) 2>&5
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; }; then
31456 echo "$as_me: failed program was:" >&5
31457 sed 's/^/| /' conftest.$ac_ext >&5
31461 rm -f conftest.err conftest.$ac_objext \
31462 conftest$ac_exeext conftest.$ac_ext
31467 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31468 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31470 if test $ol_cv_db_db_4 = yes ; then
31471 ol_cv_lib_db=-ldb-4
31475 if test $ol_cv_lib_db = no ; then
31476 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31477 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31478 if test "${ol_cv_db_db4+set}" = set; then
31479 echo $ECHO_N "(cached) $ECHO_C" >&6
31484 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31486 cat >conftest.$ac_ext <<_ACEOF
31489 cat confdefs.h >>conftest.$ac_ext
31490 cat >>conftest.$ac_ext <<_ACEOF
31491 /* end confdefs.h. */
31493 #ifdef HAVE_DB_185_H
31494 # include <db_185.h>
31499 #ifndef DB_VERSION_MAJOR
31500 # define DB_VERSION_MAJOR 1
31504 #define NULL ((void*)0)
31511 #if DB_VERSION_MAJOR > 1
31514 int major, minor, patch;
31516 version = db_version( &major, &minor, &patch );
31518 if( major != DB_VERSION_MAJOR ||
31519 minor < DB_VERSION_MINOR )
31521 printf("Berkeley DB version mismatch\n"
31522 "\theader: %s\n\tlibrary: %s\n",
31523 DB_VERSION_STRING, version);
31529 #if DB_VERSION_MAJOR > 2
31530 db_env_create( NULL, 0 );
31531 #elif DB_VERSION_MAJOR > 1
31532 db_appexit( NULL );
31534 (void) dbopen( NULL, 0, 0, 0, NULL);
31541 rm -f conftest.$ac_objext conftest$ac_exeext
31542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31543 (eval $ac_link) 2>conftest.er1
31545 grep -v '^ *+' conftest.er1 >conftest.err
31547 cat conftest.err >&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); } &&
31550 { ac_try='test -z "$ac_c_werror_flag"
31551 || test ! -s conftest.err'
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; } &&
31557 { ac_try='test -s conftest$ac_exeext'
31558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31559 (eval $ac_try) 2>&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); }; }; then
31565 echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31570 rm -f conftest.err conftest.$ac_objext \
31571 conftest$ac_exeext conftest.$ac_ext
31576 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31577 echo "${ECHO_T}$ol_cv_db_db4" >&6
31579 if test $ol_cv_db_db4 = yes ; then
31584 if test $ol_cv_lib_db = no ; then
31585 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31586 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31587 if test "${ol_cv_db_db+set}" = set; then
31588 echo $ECHO_N "(cached) $ECHO_C" >&6
31593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31595 cat >conftest.$ac_ext <<_ACEOF
31598 cat confdefs.h >>conftest.$ac_ext
31599 cat >>conftest.$ac_ext <<_ACEOF
31600 /* end confdefs.h. */
31602 #ifdef HAVE_DB_185_H
31603 # include <db_185.h>
31608 #ifndef DB_VERSION_MAJOR
31609 # define DB_VERSION_MAJOR 1
31613 #define NULL ((void*)0)
31620 #if DB_VERSION_MAJOR > 1
31623 int major, minor, patch;
31625 version = db_version( &major, &minor, &patch );
31627 if( major != DB_VERSION_MAJOR ||
31628 minor < DB_VERSION_MINOR )
31630 printf("Berkeley DB version mismatch\n"
31631 "\theader: %s\n\tlibrary: %s\n",
31632 DB_VERSION_STRING, version);
31638 #if DB_VERSION_MAJOR > 2
31639 db_env_create( NULL, 0 );
31640 #elif DB_VERSION_MAJOR > 1
31641 db_appexit( NULL );
31643 (void) dbopen( NULL, 0, 0, 0, NULL);
31650 rm -f conftest.$ac_objext conftest$ac_exeext
31651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31652 (eval $ac_link) 2>conftest.er1
31654 grep -v '^ *+' conftest.er1 >conftest.err
31656 cat conftest.err >&5
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); } &&
31659 { ac_try='test -z "$ac_c_werror_flag"
31660 || test ! -s conftest.err'
31661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662 (eval $ac_try) 2>&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); }; } &&
31666 { ac_try='test -s conftest$ac_exeext'
31667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668 (eval $ac_try) 2>&5
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); }; }; then
31674 echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31679 rm -f conftest.err conftest.$ac_objext \
31680 conftest$ac_exeext conftest.$ac_ext
31685 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31686 echo "${ECHO_T}$ol_cv_db_db" >&6
31688 if test $ol_cv_db_db = yes ; then
31693 if test $ol_cv_lib_db = no ; then
31694 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31695 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31696 if test "${ol_cv_db_db41+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31704 cat >conftest.$ac_ext <<_ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h. */
31711 #ifdef HAVE_DB_185_H
31712 # include <db_185.h>
31717 #ifndef DB_VERSION_MAJOR
31718 # define DB_VERSION_MAJOR 1
31722 #define NULL ((void*)0)
31729 #if DB_VERSION_MAJOR > 1
31732 int major, minor, patch;
31734 version = db_version( &major, &minor, &patch );
31736 if( major != DB_VERSION_MAJOR ||
31737 minor < DB_VERSION_MINOR )
31739 printf("Berkeley DB version mismatch\n"
31740 "\theader: %s\n\tlibrary: %s\n",
31741 DB_VERSION_STRING, version);
31747 #if DB_VERSION_MAJOR > 2
31748 db_env_create( NULL, 0 );
31749 #elif DB_VERSION_MAJOR > 1
31750 db_appexit( NULL );
31752 (void) dbopen( NULL, 0, 0, 0, NULL);
31759 rm -f conftest.$ac_objext conftest$ac_exeext
31760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31761 (eval $ac_link) 2>conftest.er1
31763 grep -v '^ *+' conftest.er1 >conftest.err
31765 cat conftest.err >&5
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); } &&
31768 { ac_try='test -z "$ac_c_werror_flag"
31769 || test ! -s conftest.err'
31770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771 (eval $ac_try) 2>&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; } &&
31775 { ac_try='test -s conftest$ac_exeext'
31776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777 (eval $ac_try) 2>&5
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; }; then
31783 echo "$as_me: failed program was:" >&5
31784 sed 's/^/| /' conftest.$ac_ext >&5
31788 rm -f conftest.err conftest.$ac_objext \
31789 conftest$ac_exeext conftest.$ac_ext
31794 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31795 echo "${ECHO_T}$ol_cv_db_db41" >&6
31797 if test $ol_cv_db_db41 = yes ; then
31798 ol_cv_lib_db=-ldb41
31802 if test $ol_cv_lib_db = no ; then
31803 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31804 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31805 if test "${ol_cv_db_db_41+set}" = set; then
31806 echo $ECHO_N "(cached) $ECHO_C" >&6
31811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31813 cat >conftest.$ac_ext <<_ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31820 #ifdef HAVE_DB_185_H
31821 # include <db_185.h>
31826 #ifndef DB_VERSION_MAJOR
31827 # define DB_VERSION_MAJOR 1
31831 #define NULL ((void*)0)
31838 #if DB_VERSION_MAJOR > 1
31841 int major, minor, patch;
31843 version = db_version( &major, &minor, &patch );
31845 if( major != DB_VERSION_MAJOR ||
31846 minor < DB_VERSION_MINOR )
31848 printf("Berkeley DB version mismatch\n"
31849 "\theader: %s\n\tlibrary: %s\n",
31850 DB_VERSION_STRING, version);
31856 #if DB_VERSION_MAJOR > 2
31857 db_env_create( NULL, 0 );
31858 #elif DB_VERSION_MAJOR > 1
31859 db_appexit( NULL );
31861 (void) dbopen( NULL, 0, 0, 0, NULL);
31868 rm -f conftest.$ac_objext conftest$ac_exeext
31869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31870 (eval $ac_link) 2>conftest.er1
31872 grep -v '^ *+' conftest.er1 >conftest.err
31874 cat conftest.err >&5
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); } &&
31877 { ac_try='test -z "$ac_c_werror_flag"
31878 || test ! -s conftest.err'
31879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31880 (eval $ac_try) 2>&5
31882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883 (exit $ac_status); }; } &&
31884 { ac_try='test -s conftest$ac_exeext'
31885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31886 (eval $ac_try) 2>&5
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; }; then
31892 echo "$as_me: failed program was:" >&5
31893 sed 's/^/| /' conftest.$ac_ext >&5
31897 rm -f conftest.err conftest.$ac_objext \
31898 conftest$ac_exeext conftest.$ac_ext
31903 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31904 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31906 if test $ol_cv_db_db_41 = yes ; then
31907 ol_cv_lib_db=-ldb-41
31911 if test $ol_cv_lib_db = no ; then
31912 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31913 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31914 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31920 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31922 cat >conftest.$ac_ext <<_ACEOF
31925 cat confdefs.h >>conftest.$ac_ext
31926 cat >>conftest.$ac_ext <<_ACEOF
31927 /* end confdefs.h. */
31929 #ifdef HAVE_DB_185_H
31930 # include <db_185.h>
31935 #ifndef DB_VERSION_MAJOR
31936 # define DB_VERSION_MAJOR 1
31940 #define NULL ((void*)0)
31947 #if DB_VERSION_MAJOR > 1
31950 int major, minor, patch;
31952 version = db_version( &major, &minor, &patch );
31954 if( major != DB_VERSION_MAJOR ||
31955 minor < DB_VERSION_MINOR )
31957 printf("Berkeley DB version mismatch\n"
31958 "\theader: %s\n\tlibrary: %s\n",
31959 DB_VERSION_STRING, version);
31965 #if DB_VERSION_MAJOR > 2
31966 db_env_create( NULL, 0 );
31967 #elif DB_VERSION_MAJOR > 1
31968 db_appexit( NULL );
31970 (void) dbopen( NULL, 0, 0, 0, NULL);
31977 rm -f conftest.$ac_objext conftest$ac_exeext
31978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31979 (eval $ac_link) 2>conftest.er1
31981 grep -v '^ *+' conftest.er1 >conftest.err
31983 cat conftest.err >&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
31986 { ac_try='test -z "$ac_c_werror_flag"
31987 || test ! -s conftest.err'
31988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31989 (eval $ac_try) 2>&5
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); }; } &&
31993 { ac_try='test -s conftest$ac_exeext'
31994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995 (eval $ac_try) 2>&5
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; }; then
31999 ol_cv_db_db_4_dot_1=yes
32001 echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32004 ol_cv_db_db_4_dot_1=no
32006 rm -f conftest.err conftest.$ac_objext \
32007 conftest$ac_exeext conftest.$ac_ext
32012 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32013 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32015 if test $ol_cv_db_db_4_dot_1 = yes ; then
32016 ol_cv_lib_db=-ldb-4.1
32020 if test $ol_cv_lib_db = no ; then
32021 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32022 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32023 if test "${ol_cv_db_db_4_1+set}" = set; then
32024 echo $ECHO_N "(cached) $ECHO_C" >&6
32029 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32031 cat >conftest.$ac_ext <<_ACEOF
32034 cat confdefs.h >>conftest.$ac_ext
32035 cat >>conftest.$ac_ext <<_ACEOF
32036 /* end confdefs.h. */
32038 #ifdef HAVE_DB_185_H
32039 # include <db_185.h>
32044 #ifndef DB_VERSION_MAJOR
32045 # define DB_VERSION_MAJOR 1
32049 #define NULL ((void*)0)
32056 #if DB_VERSION_MAJOR > 1
32059 int major, minor, patch;
32061 version = db_version( &major, &minor, &patch );
32063 if( major != DB_VERSION_MAJOR ||
32064 minor < DB_VERSION_MINOR )
32066 printf("Berkeley DB version mismatch\n"
32067 "\theader: %s\n\tlibrary: %s\n",
32068 DB_VERSION_STRING, version);
32074 #if DB_VERSION_MAJOR > 2
32075 db_env_create( NULL, 0 );
32076 #elif DB_VERSION_MAJOR > 1
32077 db_appexit( NULL );
32079 (void) dbopen( NULL, 0, 0, 0, NULL);
32086 rm -f conftest.$ac_objext conftest$ac_exeext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32088 (eval $ac_link) 2>conftest.er1
32090 grep -v '^ *+' conftest.er1 >conftest.err
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
32095 { ac_try='test -z "$ac_c_werror_flag"
32096 || test ! -s conftest.err'
32097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098 (eval $ac_try) 2>&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); }; } &&
32102 { ac_try='test -s conftest$ac_exeext'
32103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104 (eval $ac_try) 2>&5
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; }; then
32108 ol_cv_db_db_4_1=yes
32110 echo "$as_me: failed program was:" >&5
32111 sed 's/^/| /' conftest.$ac_ext >&5
32115 rm -f conftest.err conftest.$ac_objext \
32116 conftest$ac_exeext conftest.$ac_ext
32121 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32122 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32124 if test $ol_cv_db_db_4_1 = yes ; then
32125 ol_cv_lib_db=-ldb-4-1
32129 if test $ol_cv_lib_db = no ; then
32130 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32131 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32132 if test "${ol_cv_db_db3+set}" = set; then
32133 echo $ECHO_N "(cached) $ECHO_C" >&6
32138 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32140 cat >conftest.$ac_ext <<_ACEOF
32143 cat confdefs.h >>conftest.$ac_ext
32144 cat >>conftest.$ac_ext <<_ACEOF
32145 /* end confdefs.h. */
32147 #ifdef HAVE_DB_185_H
32148 # include <db_185.h>
32153 #ifndef DB_VERSION_MAJOR
32154 # define DB_VERSION_MAJOR 1
32158 #define NULL ((void*)0)
32165 #if DB_VERSION_MAJOR > 1
32168 int major, minor, patch;
32170 version = db_version( &major, &minor, &patch );
32172 if( major != DB_VERSION_MAJOR ||
32173 minor < DB_VERSION_MINOR )
32175 printf("Berkeley DB version mismatch\n"
32176 "\theader: %s\n\tlibrary: %s\n",
32177 DB_VERSION_STRING, version);
32183 #if DB_VERSION_MAJOR > 2
32184 db_env_create( NULL, 0 );
32185 #elif DB_VERSION_MAJOR > 1
32186 db_appexit( NULL );
32188 (void) dbopen( NULL, 0, 0, 0, NULL);
32195 rm -f conftest.$ac_objext conftest$ac_exeext
32196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32197 (eval $ac_link) 2>conftest.er1
32199 grep -v '^ *+' conftest.er1 >conftest.err
32201 cat conftest.err >&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } &&
32204 { ac_try='test -z "$ac_c_werror_flag"
32205 || test ! -s conftest.err'
32206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207 (eval $ac_try) 2>&5
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; } &&
32211 { ac_try='test -s conftest$ac_exeext'
32212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32213 (eval $ac_try) 2>&5
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; }; then
32219 echo "$as_me: failed program was:" >&5
32220 sed 's/^/| /' conftest.$ac_ext >&5
32224 rm -f conftest.err conftest.$ac_objext \
32225 conftest$ac_exeext conftest.$ac_ext
32230 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32231 echo "${ECHO_T}$ol_cv_db_db3" >&6
32233 if test $ol_cv_db_db3 = yes ; then
32238 if test $ol_cv_lib_db = no ; then
32239 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32240 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32241 if test "${ol_cv_db_db_3+set}" = set; then
32242 echo $ECHO_N "(cached) $ECHO_C" >&6
32247 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32249 cat >conftest.$ac_ext <<_ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h. */
32256 #ifdef HAVE_DB_185_H
32257 # include <db_185.h>
32262 #ifndef DB_VERSION_MAJOR
32263 # define DB_VERSION_MAJOR 1
32267 #define NULL ((void*)0)
32274 #if DB_VERSION_MAJOR > 1
32277 int major, minor, patch;
32279 version = db_version( &major, &minor, &patch );
32281 if( major != DB_VERSION_MAJOR ||
32282 minor < DB_VERSION_MINOR )
32284 printf("Berkeley DB version mismatch\n"
32285 "\theader: %s\n\tlibrary: %s\n",
32286 DB_VERSION_STRING, version);
32292 #if DB_VERSION_MAJOR > 2
32293 db_env_create( NULL, 0 );
32294 #elif DB_VERSION_MAJOR > 1
32295 db_appexit( NULL );
32297 (void) dbopen( NULL, 0, 0, 0, NULL);
32304 rm -f conftest.$ac_objext conftest$ac_exeext
32305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32306 (eval $ac_link) 2>conftest.er1
32308 grep -v '^ *+' conftest.er1 >conftest.err
32310 cat conftest.err >&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); } &&
32313 { ac_try='test -z "$ac_c_werror_flag"
32314 || test ! -s conftest.err'
32315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32316 (eval $ac_try) 2>&5
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; } &&
32320 { ac_try='test -s conftest$ac_exeext'
32321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322 (eval $ac_try) 2>&5
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; }; then
32328 echo "$as_me: failed program was:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32333 rm -f conftest.err conftest.$ac_objext \
32334 conftest$ac_exeext conftest.$ac_ext
32339 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32340 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32342 if test $ol_cv_db_db_3 = yes ; then
32343 ol_cv_lib_db=-ldb-3
32347 if test $ol_cv_lib_db = no ; then
32348 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32349 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32350 if test "${ol_cv_db_db2+set}" = set; then
32351 echo $ECHO_N "(cached) $ECHO_C" >&6
32356 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32358 cat >conftest.$ac_ext <<_ACEOF
32361 cat confdefs.h >>conftest.$ac_ext
32362 cat >>conftest.$ac_ext <<_ACEOF
32363 /* end confdefs.h. */
32365 #ifdef HAVE_DB_185_H
32366 # include <db_185.h>
32371 #ifndef DB_VERSION_MAJOR
32372 # define DB_VERSION_MAJOR 1
32376 #define NULL ((void*)0)
32383 #if DB_VERSION_MAJOR > 1
32386 int major, minor, patch;
32388 version = db_version( &major, &minor, &patch );
32390 if( major != DB_VERSION_MAJOR ||
32391 minor < DB_VERSION_MINOR )
32393 printf("Berkeley DB version mismatch\n"
32394 "\theader: %s\n\tlibrary: %s\n",
32395 DB_VERSION_STRING, version);
32401 #if DB_VERSION_MAJOR > 2
32402 db_env_create( NULL, 0 );
32403 #elif DB_VERSION_MAJOR > 1
32404 db_appexit( NULL );
32406 (void) dbopen( NULL, 0, 0, 0, NULL);
32413 rm -f conftest.$ac_objext conftest$ac_exeext
32414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32415 (eval $ac_link) 2>conftest.er1
32417 grep -v '^ *+' conftest.er1 >conftest.err
32419 cat conftest.err >&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); } &&
32422 { ac_try='test -z "$ac_c_werror_flag"
32423 || test ! -s conftest.err'
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; } &&
32429 { ac_try='test -s conftest$ac_exeext'
32430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431 (eval $ac_try) 2>&5
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; }; then
32437 echo "$as_me: failed program was:" >&5
32438 sed 's/^/| /' conftest.$ac_ext >&5
32442 rm -f conftest.err conftest.$ac_objext \
32443 conftest$ac_exeext conftest.$ac_ext
32448 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32449 echo "${ECHO_T}$ol_cv_db_db2" >&6
32451 if test $ol_cv_db_db2 = yes ; then
32456 if test $ol_cv_lib_db = no ; then
32457 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32458 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32459 if test "${ol_cv_db_db_2+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32465 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32467 cat >conftest.$ac_ext <<_ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h. */
32474 #ifdef HAVE_DB_185_H
32475 # include <db_185.h>
32480 #ifndef DB_VERSION_MAJOR
32481 # define DB_VERSION_MAJOR 1
32485 #define NULL ((void*)0)
32492 #if DB_VERSION_MAJOR > 1
32495 int major, minor, patch;
32497 version = db_version( &major, &minor, &patch );
32499 if( major != DB_VERSION_MAJOR ||
32500 minor < DB_VERSION_MINOR )
32502 printf("Berkeley DB version mismatch\n"
32503 "\theader: %s\n\tlibrary: %s\n",
32504 DB_VERSION_STRING, version);
32510 #if DB_VERSION_MAJOR > 2
32511 db_env_create( NULL, 0 );
32512 #elif DB_VERSION_MAJOR > 1
32513 db_appexit( NULL );
32515 (void) dbopen( NULL, 0, 0, 0, NULL);
32522 rm -f conftest.$ac_objext conftest$ac_exeext
32523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32524 (eval $ac_link) 2>conftest.er1
32526 grep -v '^ *+' conftest.er1 >conftest.err
32528 cat conftest.err >&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } &&
32531 { ac_try='test -z "$ac_c_werror_flag"
32532 || test ! -s conftest.err'
32533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32534 (eval $ac_try) 2>&5
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); }; } &&
32538 { ac_try='test -s conftest$ac_exeext'
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; }; then
32546 echo "$as_me: failed program was:" >&5
32547 sed 's/^/| /' conftest.$ac_ext >&5
32551 rm -f conftest.err conftest.$ac_objext \
32552 conftest$ac_exeext conftest.$ac_ext
32557 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32558 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32560 if test $ol_cv_db_db_2 = yes ; then
32561 ol_cv_lib_db=-ldb-2
32565 if test $ol_cv_lib_db = no ; then
32566 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32567 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32568 if test "${ol_cv_db_db1+set}" = set; then
32569 echo $ECHO_N "(cached) $ECHO_C" >&6
32574 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32576 cat >conftest.$ac_ext <<_ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h. */
32583 #ifdef HAVE_DB_185_H
32584 # include <db_185.h>
32589 #ifndef DB_VERSION_MAJOR
32590 # define DB_VERSION_MAJOR 1
32594 #define NULL ((void*)0)
32601 #if DB_VERSION_MAJOR > 1
32604 int major, minor, patch;
32606 version = db_version( &major, &minor, &patch );
32608 if( major != DB_VERSION_MAJOR ||
32609 minor < DB_VERSION_MINOR )
32611 printf("Berkeley DB version mismatch\n"
32612 "\theader: %s\n\tlibrary: %s\n",
32613 DB_VERSION_STRING, version);
32619 #if DB_VERSION_MAJOR > 2
32620 db_env_create( NULL, 0 );
32621 #elif DB_VERSION_MAJOR > 1
32622 db_appexit( NULL );
32624 (void) dbopen( NULL, 0, 0, 0, NULL);
32631 rm -f conftest.$ac_objext conftest$ac_exeext
32632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32633 (eval $ac_link) 2>conftest.er1
32635 grep -v '^ *+' conftest.er1 >conftest.err
32637 cat conftest.err >&5
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); } &&
32640 { ac_try='test -z "$ac_c_werror_flag"
32641 || test ! -s conftest.err'
32642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32643 (eval $ac_try) 2>&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); }; } &&
32647 { ac_try='test -s conftest$ac_exeext'
32648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32649 (eval $ac_try) 2>&5
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); }; }; then
32655 echo "$as_me: failed program was:" >&5
32656 sed 's/^/| /' conftest.$ac_ext >&5
32660 rm -f conftest.err conftest.$ac_objext \
32661 conftest$ac_exeext conftest.$ac_ext
32666 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32667 echo "${ECHO_T}$ol_cv_db_db1" >&6
32669 if test $ol_cv_db_db1 = yes ; then
32674 if test $ol_cv_lib_db = no ; then
32675 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32676 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32677 if test "${ol_cv_db_db_1+set}" = set; then
32678 echo $ECHO_N "(cached) $ECHO_C" >&6
32683 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32685 cat >conftest.$ac_ext <<_ACEOF
32688 cat confdefs.h >>conftest.$ac_ext
32689 cat >>conftest.$ac_ext <<_ACEOF
32690 /* end confdefs.h. */
32692 #ifdef HAVE_DB_185_H
32693 # include <db_185.h>
32698 #ifndef DB_VERSION_MAJOR
32699 # define DB_VERSION_MAJOR 1
32703 #define NULL ((void*)0)
32710 #if DB_VERSION_MAJOR > 1
32713 int major, minor, patch;
32715 version = db_version( &major, &minor, &patch );
32717 if( major != DB_VERSION_MAJOR ||
32718 minor < DB_VERSION_MINOR )
32720 printf("Berkeley DB version mismatch\n"
32721 "\theader: %s\n\tlibrary: %s\n",
32722 DB_VERSION_STRING, version);
32728 #if DB_VERSION_MAJOR > 2
32729 db_env_create( NULL, 0 );
32730 #elif DB_VERSION_MAJOR > 1
32731 db_appexit( NULL );
32733 (void) dbopen( NULL, 0, 0, 0, NULL);
32740 rm -f conftest.$ac_objext conftest$ac_exeext
32741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32742 (eval $ac_link) 2>conftest.er1
32744 grep -v '^ *+' conftest.er1 >conftest.err
32746 cat conftest.err >&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
32749 { ac_try='test -z "$ac_c_werror_flag"
32750 || test ! -s conftest.err'
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; } &&
32756 { ac_try='test -s conftest$ac_exeext'
32757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758 (eval $ac_try) 2>&5
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); }; }; then
32764 echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32769 rm -f conftest.err conftest.$ac_objext \
32770 conftest$ac_exeext conftest.$ac_ext
32775 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32776 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32778 if test $ol_cv_db_db_1 = yes ; then
32779 ol_cv_lib_db=-ldb-1
32784 if test "$ol_cv_lib_db" != no ; then
32785 ol_cv_berkeley_db=yes
32786 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32787 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32788 if test "${ol_cv_berkeley_db_version+set}" = set; then
32789 echo $ECHO_N "(cached) $ECHO_C" >&6
32793 LIBS="$LTHREAD_LIBS $LIBS"
32794 if test $ol_cv_lib_db != yes ; then
32795 LIBS="$ol_cv_lib_db $LIBS"
32798 if test "$cross_compiling" = yes; then
32799 ol_cv_berkeley_db_version=cross
32801 cat >conftest.$ac_ext <<_ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h. */
32808 #ifdef HAVE_DB_185_H
32813 #ifndef DB_VERSION_MAJOR
32814 # define DB_VERSION_MAJOR 1
32817 #define NULL ((void *)0)
32821 #if DB_VERSION_MAJOR > 1
32823 int major, minor, patch;
32825 version = db_version( &major, &minor, &patch );
32827 if( major != DB_VERSION_MAJOR ||
32828 minor != DB_VERSION_MINOR ||
32829 patch != DB_VERSION_PATCH )
32831 printf("Berkeley DB version mismatch\n"
32832 "\theader: %s\n\tlibrary: %s\n",
32833 DB_VERSION_STRING, version);
32841 rm -f conftest$ac_exeext
32842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32843 (eval $ac_link) 2>&5
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32848 (eval $ac_try) 2>&5
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; }; then
32852 ol_cv_berkeley_db_version=yes
32854 echo "$as_me: program exited with status $ac_status" >&5
32855 echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32858 ( exit $ac_status )
32859 ol_cv_berkeley_db_version=no
32861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32867 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32868 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32870 if test $ol_cv_berkeley_db_version = no ; then
32871 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32872 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32873 { (exit 1); exit 1; }; }
32876 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32877 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32878 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32879 echo $ECHO_N "(cached) $ECHO_C" >&6
32883 LIBS="$LTHREAD_LIBS $LIBS"
32884 if test $ol_cv_lib_db != yes ; then
32885 LIBS="$ol_cv_lib_db $LIBS"
32888 if test "$cross_compiling" = yes; then
32889 ol_cv_berkeley_db_thread=cross
32891 cat >conftest.$ac_ext <<_ACEOF
32894 cat confdefs.h >>conftest.$ac_ext
32895 cat >>conftest.$ac_ext <<_ACEOF
32896 /* end confdefs.h. */
32898 #ifdef HAVE_DB_185_H
32904 #define NULL ((void *)0)
32909 u_int32_t flags = DB_CREATE |
32915 #if DB_VERSION_MAJOR > 2
32916 DB_ENV *env = NULL;
32918 rc = db_env_create( &env, 0 );
32920 flags |= DB_INIT_MPOOL;
32921 #ifdef DB_MPOOL_PRIVATE
32922 flags |= DB_MPOOL_PRIVATE;
32926 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32930 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
32931 rc = env->open( env, NULL, flags, 0 );
32933 rc = env->open( env, NULL, NULL, flags, 0 );
32937 rc = env->close( env, 0 );
32941 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32947 memset( &env, '\0', sizeof(env) );
32949 rc = db_appinit( NULL, NULL, &env, flags );
32952 db_appexit( &env );
32955 unlink("__db_mpool.share");
32956 unlink("__db_lock.share");
32962 rm -f conftest$ac_exeext
32963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32964 (eval $ac_link) 2>&5
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32969 (eval $ac_try) 2>&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; }; then
32973 ol_cv_berkeley_db_thread=yes
32975 echo "$as_me: program exited with status $ac_status" >&5
32976 echo "$as_me: failed program was:" >&5
32977 sed 's/^/| /' conftest.$ac_ext >&5
32979 ( exit $ac_status )
32980 ol_cv_berkeley_db_thread=no
32982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32988 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
32989 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
32991 if test $ol_cv_berkeley_db_thread != no ; then
32993 cat >>confdefs.h <<\_ACEOF
32994 #define HAVE_BERKELEY_DB_THREAD 1
33004 if test $ol_cv_berkeley_db != no ; then
33006 cat >>confdefs.h <<\_ACEOF
33007 #define HAVE_BERKELEY_DB 1
33011 ol_link_ldbm=berkeley
33012 ol_enable_ldbm_api=berkeley
33014 if test $ol_enable_ldbm_type = hash ; then
33016 cat >>confdefs.h <<\_ACEOF
33017 #define LDBM_USE_DBHASH 1
33022 cat >>confdefs.h <<\_ACEOF
33023 #define LDBM_USE_DBBTREE 1
33028 if test $ol_cv_lib_db != yes ; then
33029 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33035 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
33036 if test $ol_link_ldbm != berkeley ; then
33037 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33038 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33039 { (exit 1); exit 1; }; }
33041 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33042 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33043 if test "${ol_cv_bdb_compat+set}" = set; then
33044 echo $ECHO_N "(cached) $ECHO_C" >&6
33047 cat >conftest.$ac_ext <<_ACEOF
33050 cat confdefs.h >>conftest.$ac_ext
33051 cat >>conftest.$ac_ext <<_ACEOF
33052 /* end confdefs.h. */
33056 /* this check could be improved */
33057 #ifndef DB_VERSION_MAJOR
33058 # define DB_VERSION_MAJOR 1
33060 #ifndef DB_VERSION_MINOR
33061 # define DB_VERSION_MINOR 0
33064 /* require 4.2 or later */
33065 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33066 __db_version_compat
33070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33071 $EGREP "__db_version_compat" >/dev/null 2>&1; then
33072 ol_cv_bdb_compat=yes
33074 ol_cv_bdb_compat=no
33079 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33080 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33083 if test $ol_cv_bdb_compat != yes ; then
33084 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33085 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33086 { (exit 1); exit 1; }; }
33091 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
33092 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33093 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33094 ol_enable_ldbm_api=none
33097 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
33098 echo "$as_me:$LINENO: checking for MDBM library" >&5
33099 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33100 if test "${ol_cv_lib_mdbm+set}" = set; then
33101 echo $ECHO_N "(cached) $ECHO_C" >&6
33104 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33105 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33106 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33107 echo $ECHO_N "(cached) $ECHO_C" >&6
33109 cat >conftest.$ac_ext <<_ACEOF
33112 cat confdefs.h >>conftest.$ac_ext
33113 cat >>conftest.$ac_ext <<_ACEOF
33114 /* end confdefs.h. */
33115 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33117 #define mdbm_set_chain innocuous_mdbm_set_chain
33119 /* System header to define __stub macros and hopefully few prototypes,
33120 which can conflict with char mdbm_set_chain (); below.
33121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33122 <limits.h> exists even on freestanding compilers. */
33125 # include <limits.h>
33127 # include <assert.h>
33130 #undef mdbm_set_chain
33132 /* Override any gcc2 internal prototype to avoid an error. */
33137 /* We use char because int might match the return type of a gcc2
33138 builtin and then its argument prototype would still apply. */
33139 char mdbm_set_chain ();
33140 /* The GNU C library defines this for functions which it implements
33141 to always fail with ENOSYS. Some functions are actually named
33142 something starting with __ and the normal name is an alias. */
33143 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33146 char (*f) () = mdbm_set_chain;
33155 return f != mdbm_set_chain;
33160 rm -f conftest.$ac_objext conftest$ac_exeext
33161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33162 (eval $ac_link) 2>conftest.er1
33164 grep -v '^ *+' conftest.er1 >conftest.err
33166 cat conftest.err >&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); } &&
33169 { ac_try='test -z "$ac_c_werror_flag"
33170 || test ! -s conftest.err'
33171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33172 (eval $ac_try) 2>&5
33174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175 (exit $ac_status); }; } &&
33176 { ac_try='test -s conftest$ac_exeext'
33177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33178 (eval $ac_try) 2>&5
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); }; }; then
33182 ac_cv_func_mdbm_set_chain=yes
33184 echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33187 ac_cv_func_mdbm_set_chain=no
33189 rm -f conftest.err conftest.$ac_objext \
33190 conftest$ac_exeext conftest.$ac_ext
33192 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33193 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33194 if test $ac_cv_func_mdbm_set_chain = yes; then
33198 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33199 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33200 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33201 echo $ECHO_N "(cached) $ECHO_C" >&6
33203 ac_check_lib_save_LIBS=$LIBS
33204 LIBS="-lmdbm $LIBS"
33205 cat >conftest.$ac_ext <<_ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h. */
33212 /* Override any gcc2 internal prototype to avoid an error. */
33216 /* We use char because int might match the return type of a gcc2
33217 builtin and then its argument prototype would still apply. */
33218 char mdbm_set_chain ();
33227 rm -f conftest.$ac_objext conftest$ac_exeext
33228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33229 (eval $ac_link) 2>conftest.er1
33231 grep -v '^ *+' conftest.er1 >conftest.err
33233 cat conftest.err >&5
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); } &&
33236 { ac_try='test -z "$ac_c_werror_flag"
33237 || test ! -s conftest.err'
33238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33239 (eval $ac_try) 2>&5
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; } &&
33243 { ac_try='test -s conftest$ac_exeext'
33244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33245 (eval $ac_try) 2>&5
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); }; }; then
33249 ac_cv_lib_mdbm_mdbm_set_chain=yes
33251 echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33254 ac_cv_lib_mdbm_mdbm_set_chain=no
33256 rm -f conftest.err conftest.$ac_objext \
33257 conftest$ac_exeext conftest.$ac_ext
33258 LIBS=$ac_check_lib_save_LIBS
33260 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33261 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33262 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33263 ol_cv_lib_mdbm=-lmdbm
33274 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33275 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33279 for ac_header in mdbm.h
33281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33283 echo "$as_me:$LINENO: checking for $ac_header" >&5
33284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33286 echo $ECHO_N "(cached) $ECHO_C" >&6
33288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33291 # Is the header compilable?
33292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33294 cat >conftest.$ac_ext <<_ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h. */
33300 $ac_includes_default
33301 #include <$ac_header>
33303 rm -f conftest.$ac_objext
33304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33305 (eval $ac_compile) 2>conftest.er1
33307 grep -v '^ *+' conftest.er1 >conftest.err
33309 cat conftest.err >&5
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); } &&
33312 { ac_try='test -z "$ac_c_werror_flag"
33313 || test ! -s conftest.err'
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; } &&
33319 { ac_try='test -s conftest.$ac_objext'
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; }; then
33325 ac_header_compiler=yes
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_header_compiler=no
33332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33334 echo "${ECHO_T}$ac_header_compiler" >&6
33336 # Is the header present?
33337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33339 cat >conftest.$ac_ext <<_ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h. */
33345 #include <$ac_header>
33347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33350 grep -v '^ *+' conftest.er1 >conftest.err
33352 cat conftest.err >&5
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); } >/dev/null; then
33355 if test -s conftest.err; then
33356 ac_cpp_err=$ac_c_preproc_warn_flag
33357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33364 if test -z "$ac_cpp_err"; then
33365 ac_header_preproc=yes
33367 echo "$as_me: failed program was:" >&5
33368 sed 's/^/| /' conftest.$ac_ext >&5
33370 ac_header_preproc=no
33372 rm -f conftest.err conftest.$ac_ext
33373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33374 echo "${ECHO_T}$ac_header_preproc" >&6
33376 # So? What about this header?
33377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33383 ac_header_preproc=yes
33386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33400 ## ------------------------------------------ ##
33401 ## Report this to the AC_PACKAGE_NAME lists. ##
33402 ## ------------------------------------------ ##
33405 sed "s/^/$as_me: WARNING: /" >&2
33408 echo "$as_me:$LINENO: checking for $ac_header" >&5
33409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33411 echo $ECHO_N "(cached) $ECHO_C" >&6
33413 eval "$as_ac_Header=\$ac_header_preproc"
33415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33420 cat >>confdefs.h <<_ACEOF
33421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33428 echo "$as_me:$LINENO: checking for db" >&5
33429 echo $ECHO_N "checking for db... $ECHO_C" >&6
33430 if test "${ol_cv_mdbm+set}" = set; then
33431 echo $ECHO_N "(cached) $ECHO_C" >&6
33434 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
33441 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33442 echo "${ECHO_T}$ol_cv_mdbm" >&6
33443 if test $ol_cv_mdbm = yes ; then
33445 cat >>confdefs.h <<\_ACEOF
33446 #define HAVE_MDBM 1
33452 if test $ol_cv_mdbm = yes ; then
33454 ol_enable_ldbm_api=mdbm
33455 if test $ol_cv_lib_mdbm != yes ; then
33456 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33461 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
33462 echo "$as_me:$LINENO: checking for GDBM library" >&5
33463 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33464 if test "${ol_cv_lib_gdbm+set}" = set; then
33465 echo $ECHO_N "(cached) $ECHO_C" >&6
33468 echo "$as_me:$LINENO: checking for gdbm_open" >&5
33469 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33470 if test "${ac_cv_func_gdbm_open+set}" = set; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33473 cat >conftest.$ac_ext <<_ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h. */
33479 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33481 #define gdbm_open innocuous_gdbm_open
33483 /* System header to define __stub macros and hopefully few prototypes,
33484 which can conflict with char gdbm_open (); below.
33485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486 <limits.h> exists even on freestanding compilers. */
33489 # include <limits.h>
33491 # include <assert.h>
33496 /* Override any gcc2 internal prototype to avoid an error. */
33501 /* We use char because int might match the return type of a gcc2
33502 builtin and then its argument prototype would still apply. */
33504 /* The GNU C library defines this for functions which it implements
33505 to always fail with ENOSYS. Some functions are actually named
33506 something starting with __ and the normal name is an alias. */
33507 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33510 char (*f) () = gdbm_open;
33519 return f != gdbm_open;
33524 rm -f conftest.$ac_objext conftest$ac_exeext
33525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33526 (eval $ac_link) 2>conftest.er1
33528 grep -v '^ *+' conftest.er1 >conftest.err
33530 cat conftest.err >&5
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } &&
33533 { ac_try='test -z "$ac_c_werror_flag"
33534 || test ! -s conftest.err'
33535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536 (eval $ac_try) 2>&5
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; } &&
33540 { ac_try='test -s conftest$ac_exeext'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; }; then
33546 ac_cv_func_gdbm_open=yes
33548 echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33551 ac_cv_func_gdbm_open=no
33553 rm -f conftest.err conftest.$ac_objext \
33554 conftest$ac_exeext conftest.$ac_ext
33556 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33557 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33558 if test $ac_cv_func_gdbm_open = yes; then
33562 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33563 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33564 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33565 echo $ECHO_N "(cached) $ECHO_C" >&6
33567 ac_check_lib_save_LIBS=$LIBS
33568 LIBS="-lgdbm $LIBS"
33569 cat >conftest.$ac_ext <<_ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h. */
33576 /* Override any gcc2 internal prototype to avoid an error. */
33580 /* We use char because int might match the return type of a gcc2
33581 builtin and then its argument prototype would still apply. */
33591 rm -f conftest.$ac_objext conftest$ac_exeext
33592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33593 (eval $ac_link) 2>conftest.er1
33595 grep -v '^ *+' conftest.er1 >conftest.err
33597 cat conftest.err >&5
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); } &&
33600 { ac_try='test -z "$ac_c_werror_flag"
33601 || test ! -s conftest.err'
33602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33603 (eval $ac_try) 2>&5
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); }; } &&
33607 { ac_try='test -s conftest$ac_exeext'
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 ac_cv_lib_gdbm_gdbm_open=yes
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33618 ac_cv_lib_gdbm_gdbm_open=no
33620 rm -f conftest.err conftest.$ac_objext \
33621 conftest$ac_exeext conftest.$ac_ext
33622 LIBS=$ac_check_lib_save_LIBS
33624 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33625 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33626 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33627 ol_cv_lib_gdbm=-lgdbm
33638 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33639 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33643 for ac_header in gdbm.h
33645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33647 echo "$as_me:$LINENO: checking for $ac_header" >&5
33648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33650 echo $ECHO_N "(cached) $ECHO_C" >&6
33652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33655 # Is the header compilable?
33656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33658 cat >conftest.$ac_ext <<_ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h. */
33664 $ac_includes_default
33665 #include <$ac_header>
33667 rm -f conftest.$ac_objext
33668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33669 (eval $ac_compile) 2>conftest.er1
33671 grep -v '^ *+' conftest.er1 >conftest.err
33673 cat conftest.err >&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } &&
33676 { ac_try='test -z "$ac_c_werror_flag"
33677 || test ! -s conftest.err'
33678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33679 (eval $ac_try) 2>&5
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); }; } &&
33683 { ac_try='test -s conftest.$ac_objext'
33684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33685 (eval $ac_try) 2>&5
33687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688 (exit $ac_status); }; }; then
33689 ac_header_compiler=yes
33691 echo "$as_me: failed program was:" >&5
33692 sed 's/^/| /' conftest.$ac_ext >&5
33694 ac_header_compiler=no
33696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33698 echo "${ECHO_T}$ac_header_compiler" >&6
33700 # Is the header present?
33701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33703 cat >conftest.$ac_ext <<_ACEOF
33706 cat confdefs.h >>conftest.$ac_ext
33707 cat >>conftest.$ac_ext <<_ACEOF
33708 /* end confdefs.h. */
33709 #include <$ac_header>
33711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33714 grep -v '^ *+' conftest.er1 >conftest.err
33716 cat conftest.err >&5
33717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718 (exit $ac_status); } >/dev/null; then
33719 if test -s conftest.err; then
33720 ac_cpp_err=$ac_c_preproc_warn_flag
33721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33728 if test -z "$ac_cpp_err"; then
33729 ac_header_preproc=yes
33731 echo "$as_me: failed program was:" >&5
33732 sed 's/^/| /' conftest.$ac_ext >&5
33734 ac_header_preproc=no
33736 rm -f conftest.err conftest.$ac_ext
33737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33738 echo "${ECHO_T}$ac_header_preproc" >&6
33740 # So? What about this header?
33741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33747 ac_header_preproc=yes
33750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33764 ## ------------------------------------------ ##
33765 ## Report this to the AC_PACKAGE_NAME lists. ##
33766 ## ------------------------------------------ ##
33769 sed "s/^/$as_me: WARNING: /" >&2
33772 echo "$as_me:$LINENO: checking for $ac_header" >&5
33773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33775 echo $ECHO_N "(cached) $ECHO_C" >&6
33777 eval "$as_ac_Header=\$ac_header_preproc"
33779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33784 cat >>confdefs.h <<_ACEOF
33785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33792 echo "$as_me:$LINENO: checking for db" >&5
33793 echo $ECHO_N "checking for db... $ECHO_C" >&6
33794 if test "${ol_cv_gdbm+set}" = set; then
33795 echo $ECHO_N "(cached) $ECHO_C" >&6
33798 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
33805 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33806 echo "${ECHO_T}$ol_cv_gdbm" >&6
33807 if test $ol_cv_gdbm = yes ; then
33809 cat >>confdefs.h <<\_ACEOF
33810 #define HAVE_GDBM 1
33816 if test $ol_cv_gdbm = yes ; then
33818 ol_enable_ldbm_api=gdbm
33820 if test $ol_cv_lib_gdbm != yes ; then
33821 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33826 if test $ol_enable_ldbm_api = ndbm ; then
33827 echo "$as_me:$LINENO: checking for NDBM library" >&5
33828 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33829 if test "${ol_cv_lib_ndbm+set}" = set; then
33830 echo $ECHO_N "(cached) $ECHO_C" >&6
33833 echo "$as_me:$LINENO: checking for dbm_open" >&5
33834 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33835 if test "${ac_cv_func_dbm_open+set}" = set; then
33836 echo $ECHO_N "(cached) $ECHO_C" >&6
33838 cat >conftest.$ac_ext <<_ACEOF
33841 cat confdefs.h >>conftest.$ac_ext
33842 cat >>conftest.$ac_ext <<_ACEOF
33843 /* end confdefs.h. */
33844 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33846 #define dbm_open innocuous_dbm_open
33848 /* System header to define __stub macros and hopefully few prototypes,
33849 which can conflict with char dbm_open (); below.
33850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33851 <limits.h> exists even on freestanding compilers. */
33854 # include <limits.h>
33856 # include <assert.h>
33861 /* Override any gcc2 internal prototype to avoid an error. */
33866 /* We use char because int might match the return type of a gcc2
33867 builtin and then its argument prototype would still apply. */
33869 /* The GNU C library defines this for functions which it implements
33870 to always fail with ENOSYS. Some functions are actually named
33871 something starting with __ and the normal name is an alias. */
33872 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33875 char (*f) () = dbm_open;
33884 return f != dbm_open;
33889 rm -f conftest.$ac_objext conftest$ac_exeext
33890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33891 (eval $ac_link) 2>conftest.er1
33893 grep -v '^ *+' conftest.er1 >conftest.err
33895 cat conftest.err >&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } &&
33898 { ac_try='test -z "$ac_c_werror_flag"
33899 || test ! -s conftest.err'
33900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901 (eval $ac_try) 2>&5
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); }; } &&
33905 { ac_try='test -s conftest$ac_exeext'
33906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907 (eval $ac_try) 2>&5
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); }; }; then
33911 ac_cv_func_dbm_open=yes
33913 echo "$as_me: failed program was:" >&5
33914 sed 's/^/| /' conftest.$ac_ext >&5
33916 ac_cv_func_dbm_open=no
33918 rm -f conftest.err conftest.$ac_objext \
33919 conftest$ac_exeext conftest.$ac_ext
33921 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33922 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33923 if test $ac_cv_func_dbm_open = yes; then
33927 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
33928 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
33929 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33932 ac_check_lib_save_LIBS=$LIBS
33933 LIBS="-lndbm $LIBS"
33934 cat >conftest.$ac_ext <<_ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h. */
33941 /* Override any gcc2 internal prototype to avoid an error. */
33945 /* We use char because int might match the return type of a gcc2
33946 builtin and then its argument prototype would still apply. */
33956 rm -f conftest.$ac_objext conftest$ac_exeext
33957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33958 (eval $ac_link) 2>conftest.er1
33960 grep -v '^ *+' conftest.er1 >conftest.err
33962 cat conftest.err >&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); } &&
33965 { ac_try='test -z "$ac_c_werror_flag"
33966 || test ! -s conftest.err'
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; } &&
33972 { ac_try='test -s conftest$ac_exeext'
33973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974 (eval $ac_try) 2>&5
33976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); }; }; then
33978 ac_cv_lib_ndbm_dbm_open=yes
33980 echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33983 ac_cv_lib_ndbm_dbm_open=no
33985 rm -f conftest.err conftest.$ac_objext \
33986 conftest$ac_exeext conftest.$ac_ext
33987 LIBS=$ac_check_lib_save_LIBS
33989 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
33990 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
33991 if test $ac_cv_lib_ndbm_dbm_open = yes; then
33992 ol_cv_lib_ndbm=-lndbm
33995 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
33996 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
33997 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
33998 echo $ECHO_N "(cached) $ECHO_C" >&6
34000 ac_check_lib_save_LIBS=$LIBS
34002 cat >conftest.$ac_ext <<_ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h. */
34009 /* Override any gcc2 internal prototype to avoid an error. */
34013 /* We use char because int might match the return type of a gcc2
34014 builtin and then its argument prototype would still apply. */
34024 rm -f conftest.$ac_objext conftest$ac_exeext
34025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34026 (eval $ac_link) 2>conftest.er1
34028 grep -v '^ *+' conftest.er1 >conftest.err
34030 cat conftest.err >&5
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); } &&
34033 { ac_try='test -z "$ac_c_werror_flag"
34034 || test ! -s conftest.err'
34035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34036 (eval $ac_try) 2>&5
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); }; } &&
34040 { ac_try='test -s conftest$ac_exeext'
34041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34042 (eval $ac_try) 2>&5
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }; }; then
34046 ac_cv_lib_dbm_dbm_open=yes
34048 echo "$as_me: failed program was:" >&5
34049 sed 's/^/| /' conftest.$ac_ext >&5
34051 ac_cv_lib_dbm_dbm_open=no
34053 rm -f conftest.err conftest.$ac_objext \
34054 conftest$ac_exeext conftest.$ac_ext
34055 LIBS=$ac_check_lib_save_LIBS
34057 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34058 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34059 if test $ac_cv_lib_dbm_dbm_open = yes; then
34060 ol_cv_lib_ndbm=-ldbm
34073 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34074 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34078 for ac_header in ndbm.h
34080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34082 echo "$as_me:$LINENO: checking for $ac_header" >&5
34083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34085 echo $ECHO_N "(cached) $ECHO_C" >&6
34087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34090 # Is the header compilable?
34091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34093 cat >conftest.$ac_ext <<_ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h. */
34099 $ac_includes_default
34100 #include <$ac_header>
34102 rm -f conftest.$ac_objext
34103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34104 (eval $ac_compile) 2>conftest.er1
34106 grep -v '^ *+' conftest.er1 >conftest.err
34108 cat conftest.err >&5
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); } &&
34111 { ac_try='test -z "$ac_c_werror_flag"
34112 || test ! -s conftest.err'
34113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34114 (eval $ac_try) 2>&5
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); }; } &&
34118 { ac_try='test -s conftest.$ac_objext'
34119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120 (eval $ac_try) 2>&5
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); }; }; then
34124 ac_header_compiler=yes
34126 echo "$as_me: failed program was:" >&5
34127 sed 's/^/| /' conftest.$ac_ext >&5
34129 ac_header_compiler=no
34131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34133 echo "${ECHO_T}$ac_header_compiler" >&6
34135 # Is the header present?
34136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34138 cat >conftest.$ac_ext <<_ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h. */
34144 #include <$ac_header>
34146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34149 grep -v '^ *+' conftest.er1 >conftest.err
34151 cat conftest.err >&5
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } >/dev/null; then
34154 if test -s conftest.err; then
34155 ac_cpp_err=$ac_c_preproc_warn_flag
34156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34163 if test -z "$ac_cpp_err"; then
34164 ac_header_preproc=yes
34166 echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34169 ac_header_preproc=no
34171 rm -f conftest.err conftest.$ac_ext
34172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34173 echo "${ECHO_T}$ac_header_preproc" >&6
34175 # So? What about this header?
34176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34182 ac_header_preproc=yes
34185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34199 ## ------------------------------------------ ##
34200 ## Report this to the AC_PACKAGE_NAME lists. ##
34201 ## ------------------------------------------ ##
34204 sed "s/^/$as_me: WARNING: /" >&2
34207 echo "$as_me:$LINENO: checking for $ac_header" >&5
34208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34210 echo $ECHO_N "(cached) $ECHO_C" >&6
34212 eval "$as_ac_Header=\$ac_header_preproc"
34214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34219 cat >>confdefs.h <<_ACEOF
34220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34227 echo "$as_me:$LINENO: checking for db" >&5
34228 echo $ECHO_N "checking for db... $ECHO_C" >&6
34229 if test "${ol_cv_ndbm+set}" = set; then
34230 echo $ECHO_N "(cached) $ECHO_C" >&6
34233 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
34240 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34241 echo "${ECHO_T}$ol_cv_ndbm" >&6
34242 if test $ol_cv_ndbm = yes ; then
34244 cat >>confdefs.h <<\_ACEOF
34245 #define HAVE_NDBM 1
34251 if test $ol_cv_ndbm = yes ; then
34253 ol_enable_ldbm_api=ndbm
34255 if test $ol_cv_lib_ndbm != yes ; then
34256 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34261 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
34262 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34263 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34264 { (exit 1); exit 1; }; }
34267 if test $ol_enable_bdb = yes ||
34268 test $ol_enable_hdb = yes ||
34269 test $ol_enable_ldbm = yes ; then
34270 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34274 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34275 BUILD_LIBS_DYNAMIC=shared
34277 cat >>confdefs.h <<\_ACEOF
34278 #define LDAP_LIBS_DYNAMIC 1
34283 BUILD_LIBS_DYNAMIC=static
34287 if test $ol_enable_wrappers != no ; then
34289 for ac_header in tcpd.h
34291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34293 echo "$as_me:$LINENO: checking for $ac_header" >&5
34294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34296 echo $ECHO_N "(cached) $ECHO_C" >&6
34298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34301 # Is the header compilable?
34302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34304 cat >conftest.$ac_ext <<_ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 $ac_includes_default
34311 #include <$ac_header>
34313 rm -f conftest.$ac_objext
34314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34315 (eval $ac_compile) 2>conftest.er1
34317 grep -v '^ *+' conftest.er1 >conftest.err
34319 cat conftest.err >&5
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); } &&
34322 { ac_try='test -z "$ac_c_werror_flag"
34323 || test ! -s conftest.err'
34324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325 (eval $ac_try) 2>&5
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); }; } &&
34329 { ac_try='test -s conftest.$ac_objext'
34330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331 (eval $ac_try) 2>&5
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; }; then
34335 ac_header_compiler=yes
34337 echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34340 ac_header_compiler=no
34342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34344 echo "${ECHO_T}$ac_header_compiler" >&6
34346 # Is the header present?
34347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34349 cat >conftest.$ac_ext <<_ACEOF
34352 cat confdefs.h >>conftest.$ac_ext
34353 cat >>conftest.$ac_ext <<_ACEOF
34354 /* end confdefs.h. */
34355 #include <$ac_header>
34357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34360 grep -v '^ *+' conftest.er1 >conftest.err
34362 cat conftest.err >&5
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); } >/dev/null; then
34365 if test -s conftest.err; then
34366 ac_cpp_err=$ac_c_preproc_warn_flag
34367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34374 if test -z "$ac_cpp_err"; then
34375 ac_header_preproc=yes
34377 echo "$as_me: failed program was:" >&5
34378 sed 's/^/| /' conftest.$ac_ext >&5
34380 ac_header_preproc=no
34382 rm -f conftest.err conftest.$ac_ext
34383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34384 echo "${ECHO_T}$ac_header_preproc" >&6
34386 # So? What about this header?
34387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34393 ac_header_preproc=yes
34396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34410 ## ------------------------------------------ ##
34411 ## Report this to the AC_PACKAGE_NAME lists. ##
34412 ## ------------------------------------------ ##
34415 sed "s/^/$as_me: WARNING: /" >&2
34418 echo "$as_me:$LINENO: checking for $ac_header" >&5
34419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34421 echo $ECHO_N "(cached) $ECHO_C" >&6
34423 eval "$as_ac_Header=\$ac_header_preproc"
34425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34430 cat >>confdefs.h <<_ACEOF
34431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34434 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34435 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34437 LIBS="$LIBS -lwrap"
34438 cat >conftest.$ac_ext <<_ACEOF
34441 cat confdefs.h >>conftest.$ac_ext
34442 cat >>conftest.$ac_ext <<_ACEOF
34443 /* end confdefs.h. */
34446 int allow_severity = 0;
34447 int deny_severity = 0;
34449 struct request_info *req;
34461 rm -f conftest.$ac_objext conftest$ac_exeext
34462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34463 (eval $ac_link) 2>conftest.er1
34465 grep -v '^ *+' conftest.er1 >conftest.err
34467 cat conftest.err >&5
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); } &&
34470 { ac_try='test -z "$ac_c_werror_flag"
34471 || test ! -s conftest.err'
34472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34473 (eval $ac_try) 2>&5
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); }; } &&
34477 { ac_try='test -s conftest$ac_exeext'
34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479 (eval $ac_try) 2>&5
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); }; }; then
34483 echo "$as_me:$LINENO: result: -lwrap" >&5
34484 echo "${ECHO_T}-lwrap" >&6
34488 echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34493 cat >conftest.$ac_ext <<_ACEOF
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h. */
34501 int allow_severity = 0;
34502 int deny_severity = 0;
34504 struct request_info *req;
34516 rm -f conftest.$ac_objext conftest$ac_exeext
34517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34518 (eval $ac_link) 2>conftest.er1
34520 grep -v '^ *+' conftest.er1 >conftest.err
34522 cat conftest.err >&5
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); } &&
34525 { ac_try='test -z "$ac_c_werror_flag"
34526 || test ! -s conftest.err'
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; } &&
34532 { ac_try='test -s conftest$ac_exeext'
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534 (eval $ac_try) 2>&5
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; }; then
34538 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34539 echo "${ECHO_T}-lwrap -lnsl" >&6
34541 LIBS="$save_LIBS -lnsl"
34543 echo "$as_me: failed program was:" >&5
34544 sed 's/^/| /' conftest.$ac_ext >&5
34547 echo "$as_me:$LINENO: result: no" >&5
34548 echo "${ECHO_T}no" >&6
34552 rm -f conftest.err conftest.$ac_objext \
34553 conftest$ac_exeext conftest.$ac_ext
34555 rm -f conftest.err conftest.$ac_objext \
34556 conftest$ac_exeext conftest.$ac_ext
34564 if test $have_wrappers = yes ; then
34566 cat >>confdefs.h <<\_ACEOF
34567 #define HAVE_TCPD 1
34571 elif test $ol_enable_wrappers = yes ; then
34572 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34573 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34574 { (exit 1); exit 1; }; }
34576 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34577 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34582 if test $ol_enable_syslog != no ; then
34583 echo "$as_me:$LINENO: checking for openlog" >&5
34584 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34585 if test "${ac_cv_func_openlog+set}" = set; then
34586 echo $ECHO_N "(cached) $ECHO_C" >&6
34588 cat >conftest.$ac_ext <<_ACEOF
34591 cat confdefs.h >>conftest.$ac_ext
34592 cat >>conftest.$ac_ext <<_ACEOF
34593 /* end confdefs.h. */
34594 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34596 #define openlog innocuous_openlog
34598 /* System header to define __stub macros and hopefully few prototypes,
34599 which can conflict with char openlog (); below.
34600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34601 <limits.h> exists even on freestanding compilers. */
34604 # include <limits.h>
34606 # include <assert.h>
34611 /* Override any gcc2 internal prototype to avoid an error. */
34616 /* We use char because int might match the return type of a gcc2
34617 builtin and then its argument prototype would still apply. */
34619 /* The GNU C library defines this for functions which it implements
34620 to always fail with ENOSYS. Some functions are actually named
34621 something starting with __ and the normal name is an alias. */
34622 #if defined (__stub_openlog) || defined (__stub___openlog)
34625 char (*f) () = openlog;
34634 return f != openlog;
34639 rm -f conftest.$ac_objext conftest$ac_exeext
34640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34641 (eval $ac_link) 2>conftest.er1
34643 grep -v '^ *+' conftest.er1 >conftest.err
34645 cat conftest.err >&5
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); } &&
34648 { ac_try='test -z "$ac_c_werror_flag"
34649 || test ! -s conftest.err'
34650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651 (eval $ac_try) 2>&5
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); }; } &&
34655 { ac_try='test -s conftest$ac_exeext'
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; }; then
34661 ac_cv_func_openlog=yes
34663 echo "$as_me: failed program was:" >&5
34664 sed 's/^/| /' conftest.$ac_ext >&5
34666 ac_cv_func_openlog=no
34668 rm -f conftest.err conftest.$ac_objext \
34669 conftest$ac_exeext conftest.$ac_ext
34671 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34672 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34674 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34675 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34676 echo "$as_me: error: could not find syslog" >&2;}
34677 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34679 ol_enable_syslog=$ac_cv_func_openlog
34683 if test $ol_enable_sql != no ; then
34686 for ac_header in sql.h sqlext.h
34688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34690 echo "$as_me:$LINENO: checking for $ac_header" >&5
34691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34693 echo $ECHO_N "(cached) $ECHO_C" >&6
34695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34698 # Is the header compilable?
34699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34701 cat >conftest.$ac_ext <<_ACEOF
34704 cat confdefs.h >>conftest.$ac_ext
34705 cat >>conftest.$ac_ext <<_ACEOF
34706 /* end confdefs.h. */
34707 $ac_includes_default
34708 #include <$ac_header>
34710 rm -f conftest.$ac_objext
34711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34712 (eval $ac_compile) 2>conftest.er1
34714 grep -v '^ *+' conftest.er1 >conftest.err
34716 cat conftest.err >&5
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); } &&
34719 { ac_try='test -z "$ac_c_werror_flag"
34720 || test ! -s conftest.err'
34721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34722 (eval $ac_try) 2>&5
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); }; } &&
34726 { ac_try='test -s conftest.$ac_objext'
34727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34728 (eval $ac_try) 2>&5
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); }; }; then
34732 ac_header_compiler=yes
34734 echo "$as_me: failed program was:" >&5
34735 sed 's/^/| /' conftest.$ac_ext >&5
34737 ac_header_compiler=no
34739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34741 echo "${ECHO_T}$ac_header_compiler" >&6
34743 # Is the header present?
34744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34746 cat >conftest.$ac_ext <<_ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h. */
34752 #include <$ac_header>
34754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34757 grep -v '^ *+' conftest.er1 >conftest.err
34759 cat conftest.err >&5
34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); } >/dev/null; then
34762 if test -s conftest.err; then
34763 ac_cpp_err=$ac_c_preproc_warn_flag
34764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34771 if test -z "$ac_cpp_err"; then
34772 ac_header_preproc=yes
34774 echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34777 ac_header_preproc=no
34779 rm -f conftest.err conftest.$ac_ext
34780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34781 echo "${ECHO_T}$ac_header_preproc" >&6
34783 # So? What about this header?
34784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34790 ac_header_preproc=yes
34793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34807 ## ------------------------------------------ ##
34808 ## Report this to the AC_PACKAGE_NAME lists. ##
34809 ## ------------------------------------------ ##
34812 sed "s/^/$as_me: WARNING: /" >&2
34815 echo "$as_me:$LINENO: checking for $ac_header" >&5
34816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34818 echo $ECHO_N "(cached) $ECHO_C" >&6
34820 eval "$as_ac_Header=\$ac_header_preproc"
34822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34827 cat >>confdefs.h <<_ACEOF
34828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34833 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34834 echo "$as_me: error: could not locate SQL headers" >&2;}
34835 { (exit 1); exit 1; }; }
34843 LIBS="$LTHREAD_LIBS"
34845 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34846 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34847 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34848 echo $ECHO_N "(cached) $ECHO_C" >&6
34850 ac_check_lib_save_LIBS=$LIBS
34851 LIBS="-liodbc $LIBS"
34852 cat >conftest.$ac_ext <<_ACEOF
34855 cat confdefs.h >>conftest.$ac_ext
34856 cat >>conftest.$ac_ext <<_ACEOF
34857 /* end confdefs.h. */
34859 /* Override any gcc2 internal prototype to avoid an error. */
34863 /* We use char because int might match the return type of a gcc2
34864 builtin and then its argument prototype would still apply. */
34865 char SQLDriverConnect ();
34869 SQLDriverConnect ();
34874 rm -f conftest.$ac_objext conftest$ac_exeext
34875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34876 (eval $ac_link) 2>conftest.er1
34878 grep -v '^ *+' conftest.er1 >conftest.err
34880 cat conftest.err >&5
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); } &&
34883 { ac_try='test -z "$ac_c_werror_flag"
34884 || test ! -s conftest.err'
34885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886 (eval $ac_try) 2>&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); }; } &&
34890 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
34896 ac_cv_lib_iodbc_SQLDriverConnect=yes
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34901 ac_cv_lib_iodbc_SQLDriverConnect=no
34903 rm -f conftest.err conftest.$ac_objext \
34904 conftest$ac_exeext conftest.$ac_ext
34905 LIBS=$ac_check_lib_save_LIBS
34907 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34908 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34909 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34915 if test $have_iodbc = yes ; then
34916 ol_link_sql="-liodbc"
34918 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34919 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34920 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34921 echo $ECHO_N "(cached) $ECHO_C" >&6
34923 ac_check_lib_save_LIBS=$LIBS
34924 LIBS="-lodbc $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 SQLDriverConnect ();
34942 SQLDriverConnect ();
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_odbc_SQLDriverConnect=yes
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34974 ac_cv_lib_odbc_SQLDriverConnect=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_odbc_SQLDriverConnect" >&5
34981 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
34982 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
34988 if test $have_odbc = yes ; then
34989 ol_link_sql="-lodbc"
34995 if test $ol_link_sql != no ; then
34996 SLAPD_SQL_LIBS="$ol_link_sql"
34998 elif test $ol_enable_sql != auto ; then
34999 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35000 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35001 { (exit 1); exit 1; }; }
35008 if test $ol_with_cyrus_sasl != no ; then
35011 for ac_header in sasl/sasl.h sasl.h
35013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35015 echo "$as_me:$LINENO: checking for $ac_header" >&5
35016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35018 echo $ECHO_N "(cached) $ECHO_C" >&6
35020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35023 # Is the header compilable?
35024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35026 cat >conftest.$ac_ext <<_ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h. */
35032 $ac_includes_default
35033 #include <$ac_header>
35035 rm -f conftest.$ac_objext
35036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35037 (eval $ac_compile) 2>conftest.er1
35039 grep -v '^ *+' conftest.er1 >conftest.err
35041 cat conftest.err >&5
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); } &&
35044 { ac_try='test -z "$ac_c_werror_flag"
35045 || test ! -s conftest.err'
35046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047 (eval $ac_try) 2>&5
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); }; } &&
35051 { ac_try='test -s conftest.$ac_objext'
35052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35053 (eval $ac_try) 2>&5
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); }; }; then
35057 ac_header_compiler=yes
35059 echo "$as_me: failed program was:" >&5
35060 sed 's/^/| /' conftest.$ac_ext >&5
35062 ac_header_compiler=no
35064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35066 echo "${ECHO_T}$ac_header_compiler" >&6
35068 # Is the header present?
35069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35071 cat >conftest.$ac_ext <<_ACEOF
35074 cat confdefs.h >>conftest.$ac_ext
35075 cat >>conftest.$ac_ext <<_ACEOF
35076 /* end confdefs.h. */
35077 #include <$ac_header>
35079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35082 grep -v '^ *+' conftest.er1 >conftest.err
35084 cat conftest.err >&5
35085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086 (exit $ac_status); } >/dev/null; then
35087 if test -s conftest.err; then
35088 ac_cpp_err=$ac_c_preproc_warn_flag
35089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35096 if test -z "$ac_cpp_err"; then
35097 ac_header_preproc=yes
35099 echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35102 ac_header_preproc=no
35104 rm -f conftest.err conftest.$ac_ext
35105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35106 echo "${ECHO_T}$ac_header_preproc" >&6
35108 # So? What about this header?
35109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35115 ac_header_preproc=yes
35118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35132 ## ------------------------------------------ ##
35133 ## Report this to the AC_PACKAGE_NAME lists. ##
35134 ## ------------------------------------------ ##
35137 sed "s/^/$as_me: WARNING: /" >&2
35140 echo "$as_me:$LINENO: checking for $ac_header" >&5
35141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35143 echo $ECHO_N "(cached) $ECHO_C" >&6
35145 eval "$as_ac_Header=\$ac_header_preproc"
35147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35152 cat >>confdefs.h <<_ACEOF
35153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35161 if test $ac_cv_header_sasl_sasl_h = yes ||
35162 test $ac_cv_header_sasl_h = yes; then
35163 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35164 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35165 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35166 echo $ECHO_N "(cached) $ECHO_C" >&6
35168 ac_check_lib_save_LIBS=$LIBS
35169 LIBS="-lsasl2 $LIBS"
35170 cat >conftest.$ac_ext <<_ACEOF
35173 cat confdefs.h >>conftest.$ac_ext
35174 cat >>conftest.$ac_ext <<_ACEOF
35175 /* end confdefs.h. */
35177 /* Override any gcc2 internal prototype to avoid an error. */
35181 /* We use char because int might match the return type of a gcc2
35182 builtin and then its argument prototype would still apply. */
35183 char sasl_client_init ();
35187 sasl_client_init ();
35192 rm -f conftest.$ac_objext conftest$ac_exeext
35193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35194 (eval $ac_link) 2>conftest.er1
35196 grep -v '^ *+' conftest.er1 >conftest.err
35198 cat conftest.err >&5
35199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); } &&
35201 { ac_try='test -z "$ac_c_werror_flag"
35202 || test ! -s conftest.err'
35203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204 (eval $ac_try) 2>&5
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); }; } &&
35208 { ac_try='test -s conftest$ac_exeext'
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; }; then
35214 ac_cv_lib_sasl2_sasl_client_init=yes
35216 echo "$as_me: failed program was:" >&5
35217 sed 's/^/| /' conftest.$ac_ext >&5
35219 ac_cv_lib_sasl2_sasl_client_init=no
35221 rm -f conftest.err conftest.$ac_objext \
35222 conftest$ac_exeext conftest.$ac_ext
35223 LIBS=$ac_check_lib_save_LIBS
35225 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35226 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35227 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35228 ol_link_sasl="-lsasl2"
35230 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35231 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35232 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35233 echo $ECHO_N "(cached) $ECHO_C" >&6
35235 ac_check_lib_save_LIBS=$LIBS
35236 LIBS="-lsasl $LIBS"
35237 cat >conftest.$ac_ext <<_ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h. */
35244 /* Override any gcc2 internal prototype to avoid an error. */
35248 /* We use char because int might match the return type of a gcc2
35249 builtin and then its argument prototype would still apply. */
35250 char sasl_client_init ();
35254 sasl_client_init ();
35259 rm -f conftest.$ac_objext conftest$ac_exeext
35260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35261 (eval $ac_link) 2>conftest.er1
35263 grep -v '^ *+' conftest.er1 >conftest.err
35265 cat conftest.err >&5
35266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 (exit $ac_status); } &&
35268 { ac_try='test -z "$ac_c_werror_flag"
35269 || test ! -s conftest.err'
35270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271 (eval $ac_try) 2>&5
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); }; } &&
35275 { ac_try='test -s conftest$ac_exeext'
35276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277 (eval $ac_try) 2>&5
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); }; }; then
35281 ac_cv_lib_sasl_sasl_client_init=yes
35283 echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35286 ac_cv_lib_sasl_sasl_client_init=no
35288 rm -f conftest.err conftest.$ac_objext \
35289 conftest$ac_exeext conftest.$ac_ext
35290 LIBS=$ac_check_lib_save_LIBS
35292 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35293 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35294 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35295 ol_link_sasl="-lsasl"
35302 if test $ol_link_sasl = no ; then
35303 if test $ol_with_cyrus_sasl != auto ; then
35304 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35305 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35306 { (exit 1); exit 1; }; }
35308 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35309 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35310 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35311 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35312 if test $ol_link_tls = no ; then
35313 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35314 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35318 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35319 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35320 if test "${ol_cv_sasl_compat+set}" = set; then
35321 echo $ECHO_N "(cached) $ECHO_C" >&6
35324 cat >conftest.$ac_ext <<_ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h. */
35331 #ifdef HAVE_SASL_SASL_H
35332 #include <sasl/sasl.h>
35337 /* Require 2.1.15+ */
35338 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
35339 char *__sasl_compat = "2.2+ or better okay (we guess)";
35340 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
35341 && SASL_VERSION_STEP >=15
35342 char *__sasl_compat = "2.1.15+ or better okay";
35346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35347 $EGREP "__sasl_compat" >/dev/null 2>&1; then
35348 ol_cv_sasl_compat=yes
35350 ol_cv_sasl_compat=no
35355 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35356 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35358 if test $ol_cv_sasl_compat = no ; then
35360 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35361 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35362 { (exit 1); exit 1; }; }
35366 cat >>confdefs.h <<\_ACEOF
35367 #define HAVE_CYRUS_SASL 1
35370 SASL_LIBS="$ol_link_sasl"
35371 if test $ol_enable_spasswd != no ; then
35372 ol_link_spasswd=yes
35375 ac_save_LIBS="$LIBS"
35376 LIBS="$LIBS $ol_link_sasl"
35377 echo "$as_me:$LINENO: checking for sasl_version" >&5
35378 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35379 if test "${ac_cv_func_sasl_version+set}" = set; then
35380 echo $ECHO_N "(cached) $ECHO_C" >&6
35382 cat >conftest.$ac_ext <<_ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h. */
35388 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35390 #define sasl_version innocuous_sasl_version
35392 /* System header to define __stub macros and hopefully few prototypes,
35393 which can conflict with char sasl_version (); below.
35394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35395 <limits.h> exists even on freestanding compilers. */
35398 # include <limits.h>
35400 # include <assert.h>
35403 #undef sasl_version
35405 /* Override any gcc2 internal prototype to avoid an error. */
35410 /* We use char because int might match the return type of a gcc2
35411 builtin and then its argument prototype would still apply. */
35412 char sasl_version ();
35413 /* The GNU C library defines this for functions which it implements
35414 to always fail with ENOSYS. Some functions are actually named
35415 something starting with __ and the normal name is an alias. */
35416 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35419 char (*f) () = sasl_version;
35428 return f != sasl_version;
35433 rm -f conftest.$ac_objext conftest$ac_exeext
35434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35435 (eval $ac_link) 2>conftest.er1
35437 grep -v '^ *+' conftest.er1 >conftest.err
35439 cat conftest.err >&5
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); } &&
35442 { ac_try='test -z "$ac_c_werror_flag"
35443 || test ! -s conftest.err'
35444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445 (eval $ac_try) 2>&5
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); }; } &&
35449 { ac_try='test -s conftest$ac_exeext'
35450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35451 (eval $ac_try) 2>&5
35453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454 (exit $ac_status); }; }; then
35455 ac_cv_func_sasl_version=yes
35457 echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35460 ac_cv_func_sasl_version=no
35462 rm -f conftest.err conftest.$ac_objext \
35463 conftest$ac_exeext conftest.$ac_ext
35465 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35466 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35467 if test $ac_cv_func_sasl_version = yes; then
35469 cat >>confdefs.h <<\_ACEOF
35470 #define HAVE_SASL_VERSION 1
35475 LIBS="$ac_save_LIBS"
35481 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35482 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35483 if test $ol_link_tls = no ; then
35484 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35485 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35489 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
35491 if test -r /dev/urandom ; then
35492 dev="/dev/urandom";
35493 elif test -r /idev/urandom ; then
35494 dev="/idev/urandom";
35495 elif test -r /dev/srandom ; then
35496 dev="/dev/srandom";
35497 elif test -r /dev/random ; then
35499 elif test -r /idev/random ; then
35500 dev="/idev/random";
35503 if test $dev != no ; then
35505 cat >>confdefs.h <<_ACEOF
35506 #define URANDOM_DEVICE "$dev"
35513 if test $ol_with_fetch != no ; then
35515 LIBS="-lfetch -lcom_err $LIBS"
35516 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35517 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35518 if test "${ol_cv_lib_fetch+set}" = set; then
35519 echo $ECHO_N "(cached) $ECHO_C" >&6
35522 cat >conftest.$ac_ext <<_ACEOF
35525 cat confdefs.h >>conftest.$ac_ext
35526 cat >>conftest.$ac_ext <<_ACEOF
35527 /* end confdefs.h. */
35529 #include <sys/param.h>
35535 struct url *u = fetchParseURL("file:///");
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542 (eval $ac_link) 2>conftest.er1
35544 grep -v '^ *+' conftest.er1 >conftest.err
35546 cat conftest.err >&5
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); } &&
35549 { ac_try='test -z "$ac_c_werror_flag"
35550 || test ! -s conftest.err'
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; } &&
35556 { ac_try='test -s conftest$ac_exeext'
35557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558 (eval $ac_try) 2>&5
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); }; }; then
35562 ol_cv_lib_fetch=yes
35564 echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35569 rm -f conftest.err conftest.$ac_objext \
35570 conftest$ac_exeext conftest.$ac_ext
35572 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35573 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35575 if test $ol_cv_lib_fetch != no ; then
35576 ol_link_fetch="-lfetch -lcom_err"
35578 cat >>confdefs.h <<\_ACEOF
35579 #define HAVE_FETCH 1
35585 if test $ol_cv_lib_fetch != no ; then
35586 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35587 ol_link_fetch=freebsd
35589 elif test $ol_with_fetch != auto ; then
35590 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35591 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35592 { (exit 1); exit 1; }; }
35596 if test $ol_enable_crypt != no ; then
35598 LIBS="$TLS_LIBS $LIBS"
35600 echo "$as_me:$LINENO: checking for crypt" >&5
35601 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35602 if test "${ac_cv_func_crypt+set}" = set; then
35603 echo $ECHO_N "(cached) $ECHO_C" >&6
35605 cat >conftest.$ac_ext <<_ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h. */
35611 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35613 #define crypt innocuous_crypt
35615 /* System header to define __stub macros and hopefully few prototypes,
35616 which can conflict with char crypt (); below.
35617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35618 <limits.h> exists even on freestanding compilers. */
35621 # include <limits.h>
35623 # include <assert.h>
35628 /* Override any gcc2 internal prototype to avoid an error. */
35633 /* We use char because int might match the return type of a gcc2
35634 builtin and then its argument prototype would still apply. */
35636 /* The GNU C library defines this for functions which it implements
35637 to always fail with ENOSYS. Some functions are actually named
35638 something starting with __ and the normal name is an alias. */
35639 #if defined (__stub_crypt) || defined (__stub___crypt)
35642 char (*f) () = crypt;
35656 rm -f conftest.$ac_objext conftest$ac_exeext
35657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35658 (eval $ac_link) 2>conftest.er1
35660 grep -v '^ *+' conftest.er1 >conftest.err
35662 cat conftest.err >&5
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); } &&
35665 { ac_try='test -z "$ac_c_werror_flag"
35666 || test ! -s conftest.err'
35667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35668 (eval $ac_try) 2>&5
35670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35671 (exit $ac_status); }; } &&
35672 { ac_try='test -s conftest$ac_exeext'
35673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35674 (eval $ac_try) 2>&5
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); }; }; then
35678 ac_cv_func_crypt=yes
35680 echo "$as_me: failed program was:" >&5
35681 sed 's/^/| /' conftest.$ac_ext >&5
35683 ac_cv_func_crypt=no
35685 rm -f conftest.err conftest.$ac_objext \
35686 conftest$ac_exeext conftest.$ac_ext
35688 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35689 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35690 if test $ac_cv_func_crypt = yes; then
35695 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35696 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35697 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35698 echo $ECHO_N "(cached) $ECHO_C" >&6
35700 ac_check_lib_save_LIBS=$LIBS
35701 LIBS="-lcrypt $LIBS"
35702 cat >conftest.$ac_ext <<_ACEOF
35705 cat confdefs.h >>conftest.$ac_ext
35706 cat >>conftest.$ac_ext <<_ACEOF
35707 /* end confdefs.h. */
35709 /* Override any gcc2 internal prototype to avoid an error. */
35713 /* We use char because int might match the return type of a gcc2
35714 builtin and then its argument prototype would still apply. */
35724 rm -f conftest.$ac_objext conftest$ac_exeext
35725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35726 (eval $ac_link) 2>conftest.er1
35728 grep -v '^ *+' conftest.er1 >conftest.err
35730 cat conftest.err >&5
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); } &&
35733 { ac_try='test -z "$ac_c_werror_flag"
35734 || test ! -s conftest.err'
35735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35736 (eval $ac_try) 2>&5
35738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739 (exit $ac_status); }; } &&
35740 { ac_try='test -s conftest$ac_exeext'
35741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35742 (eval $ac_try) 2>&5
35744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745 (exit $ac_status); }; }; then
35746 ac_cv_lib_crypt_crypt=yes
35748 echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35751 ac_cv_lib_crypt_crypt=no
35753 rm -f conftest.err conftest.$ac_objext \
35754 conftest$ac_exeext conftest.$ac_ext
35755 LIBS=$ac_check_lib_save_LIBS
35757 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35758 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35759 if test $ac_cv_lib_crypt_crypt = yes; then
35760 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35771 if test $have_crypt = yes ; then
35773 cat >>confdefs.h <<\_ACEOF
35774 #define HAVE_CRYPT 1
35778 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35779 echo "$as_me: WARNING: could not find crypt" >&2;}
35780 if test $ol_enable_crypt = yes ; then
35781 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35782 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35783 { (exit 1); exit 1; }; }
35786 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35787 echo "$as_me: WARNING: disabling crypt support" >&2;}
35792 if test $ol_enable_proctitle != no ; then
35793 echo "$as_me:$LINENO: checking for setproctitle" >&5
35794 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35795 if test "${ac_cv_func_setproctitle+set}" = set; then
35796 echo $ECHO_N "(cached) $ECHO_C" >&6
35798 cat >conftest.$ac_ext <<_ACEOF
35801 cat confdefs.h >>conftest.$ac_ext
35802 cat >>conftest.$ac_ext <<_ACEOF
35803 /* end confdefs.h. */
35804 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35806 #define setproctitle innocuous_setproctitle
35808 /* System header to define __stub macros and hopefully few prototypes,
35809 which can conflict with char setproctitle (); below.
35810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35811 <limits.h> exists even on freestanding compilers. */
35814 # include <limits.h>
35816 # include <assert.h>
35819 #undef setproctitle
35821 /* Override any gcc2 internal prototype to avoid an error. */
35826 /* We use char because int might match the return type of a gcc2
35827 builtin and then its argument prototype would still apply. */
35828 char setproctitle ();
35829 /* The GNU C library defines this for functions which it implements
35830 to always fail with ENOSYS. Some functions are actually named
35831 something starting with __ and the normal name is an alias. */
35832 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35835 char (*f) () = setproctitle;
35844 return f != setproctitle;
35849 rm -f conftest.$ac_objext conftest$ac_exeext
35850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35851 (eval $ac_link) 2>conftest.er1
35853 grep -v '^ *+' conftest.er1 >conftest.err
35855 cat conftest.err >&5
35856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857 (exit $ac_status); } &&
35858 { ac_try='test -z "$ac_c_werror_flag"
35859 || test ! -s conftest.err'
35860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861 (eval $ac_try) 2>&5
35863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864 (exit $ac_status); }; } &&
35865 { ac_try='test -s conftest$ac_exeext'
35866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867 (eval $ac_try) 2>&5
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); }; }; then
35871 ac_cv_func_setproctitle=yes
35873 echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35876 ac_cv_func_setproctitle=no
35878 rm -f conftest.err conftest.$ac_objext \
35879 conftest$ac_exeext conftest.$ac_ext
35881 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35882 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35883 if test $ac_cv_func_setproctitle = yes; then
35884 have_setproctitle=yes
35887 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35888 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35889 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35890 echo $ECHO_N "(cached) $ECHO_C" >&6
35892 ac_check_lib_save_LIBS=$LIBS
35893 LIBS="-lutil $LIBS"
35894 cat >conftest.$ac_ext <<_ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h. */
35901 /* Override any gcc2 internal prototype to avoid an error. */
35905 /* We use char because int might match the return type of a gcc2
35906 builtin and then its argument prototype would still apply. */
35907 char setproctitle ();
35916 rm -f conftest.$ac_objext conftest$ac_exeext
35917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35918 (eval $ac_link) 2>conftest.er1
35920 grep -v '^ *+' conftest.er1 >conftest.err
35922 cat conftest.err >&5
35923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35924 (exit $ac_status); } &&
35925 { ac_try='test -z "$ac_c_werror_flag"
35926 || test ! -s conftest.err'
35927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35928 (eval $ac_try) 2>&5
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); }; } &&
35932 { ac_try='test -s conftest$ac_exeext'
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; }; then
35938 ac_cv_lib_util_setproctitle=yes
35940 echo "$as_me: failed program was:" >&5
35941 sed 's/^/| /' conftest.$ac_ext >&5
35943 ac_cv_lib_util_setproctitle=no
35945 rm -f conftest.err conftest.$ac_objext \
35946 conftest$ac_exeext conftest.$ac_ext
35947 LIBS=$ac_check_lib_save_LIBS
35949 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
35950 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
35951 if test $ac_cv_lib_util_setproctitle = yes; then
35952 have_setproctitle=yes
35953 LUTIL_LIBS="$LUTIL_LIBS -lutil"
35955 have_setproctitle=no
35957 "setproctitle.$ac_objext" | \
35958 *" setproctitle.$ac_objext" | \
35959 "setproctitle.$ac_objext "* | \
35960 *" setproctitle.$ac_objext "* ) ;;
35961 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
35964 LIBSRCS="$LIBSRCS setproctitle.c"
35970 if test $have_setproctitle = yes ; then
35972 cat >>confdefs.h <<\_ACEOF
35973 #define HAVE_SETPROCTITLE 1
35979 if test $ol_enable_slp != no ; then
35981 for ac_header in slp.h
35983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35985 echo "$as_me:$LINENO: checking for $ac_header" >&5
35986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35988 echo $ECHO_N "(cached) $ECHO_C" >&6
35990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35993 # Is the header compilable?
35994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35996 cat >conftest.$ac_ext <<_ACEOF
35999 cat confdefs.h >>conftest.$ac_ext
36000 cat >>conftest.$ac_ext <<_ACEOF
36001 /* end confdefs.h. */
36002 $ac_includes_default
36003 #include <$ac_header>
36005 rm -f conftest.$ac_objext
36006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36007 (eval $ac_compile) 2>conftest.er1
36009 grep -v '^ *+' conftest.er1 >conftest.err
36011 cat conftest.err >&5
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); } &&
36014 { ac_try='test -z "$ac_c_werror_flag"
36015 || test ! -s conftest.err'
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; } &&
36021 { ac_try='test -s conftest.$ac_objext'
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; }; then
36027 ac_header_compiler=yes
36029 echo "$as_me: failed program was:" >&5
36030 sed 's/^/| /' conftest.$ac_ext >&5
36032 ac_header_compiler=no
36034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36036 echo "${ECHO_T}$ac_header_compiler" >&6
36038 # Is the header present?
36039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36041 cat >conftest.$ac_ext <<_ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h. */
36047 #include <$ac_header>
36049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36052 grep -v '^ *+' conftest.er1 >conftest.err
36054 cat conftest.err >&5
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); } >/dev/null; then
36057 if test -s conftest.err; then
36058 ac_cpp_err=$ac_c_preproc_warn_flag
36059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36066 if test -z "$ac_cpp_err"; then
36067 ac_header_preproc=yes
36069 echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36072 ac_header_preproc=no
36074 rm -f conftest.err conftest.$ac_ext
36075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36076 echo "${ECHO_T}$ac_header_preproc" >&6
36078 # So? What about this header?
36079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36085 ac_header_preproc=yes
36088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36102 ## ------------------------------------------ ##
36103 ## Report this to the AC_PACKAGE_NAME lists. ##
36104 ## ------------------------------------------ ##
36107 sed "s/^/$as_me: WARNING: /" >&2
36110 echo "$as_me:$LINENO: checking for $ac_header" >&5
36111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36113 echo $ECHO_N "(cached) $ECHO_C" >&6
36115 eval "$as_ac_Header=\$ac_header_preproc"
36117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36122 cat >>confdefs.h <<_ACEOF
36123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36131 if test $ac_cv_header_slp_h = yes ; then
36132 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36133 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36134 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36135 echo $ECHO_N "(cached) $ECHO_C" >&6
36137 ac_check_lib_save_LIBS=$LIBS
36139 cat >conftest.$ac_ext <<_ACEOF
36142 cat confdefs.h >>conftest.$ac_ext
36143 cat >>conftest.$ac_ext <<_ACEOF
36144 /* end confdefs.h. */
36146 /* Override any gcc2 internal prototype to avoid an error. */
36150 /* We use char because int might match the return type of a gcc2
36151 builtin and then its argument prototype would still apply. */
36161 rm -f conftest.$ac_objext conftest$ac_exeext
36162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36163 (eval $ac_link) 2>conftest.er1
36165 grep -v '^ *+' conftest.er1 >conftest.err
36167 cat conftest.err >&5
36168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36169 (exit $ac_status); } &&
36170 { ac_try='test -z "$ac_c_werror_flag"
36171 || test ! -s conftest.err'
36172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173 (eval $ac_try) 2>&5
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); }; } &&
36177 { ac_try='test -s conftest$ac_exeext'
36178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36179 (eval $ac_try) 2>&5
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); }; }; then
36183 ac_cv_lib_slp_SLPOpen=yes
36185 echo "$as_me: failed program was:" >&5
36186 sed 's/^/| /' conftest.$ac_ext >&5
36188 ac_cv_lib_slp_SLPOpen=no
36190 rm -f conftest.err conftest.$ac_objext \
36191 conftest$ac_exeext conftest.$ac_ext
36192 LIBS=$ac_check_lib_save_LIBS
36194 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36195 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36196 if test $ac_cv_lib_slp_SLPOpen = yes; then
36202 if test $have_slp = yes ; then
36204 cat >>confdefs.h <<\_ACEOF
36208 SLAPD_SLP_LIBS=-lslp
36211 elif test $ol_enable_slp = yes ; then
36212 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36213 echo "$as_me: error: SLP not found" >&2;}
36214 { (exit 1); exit 1; }; }
36218 if test "$ol_with_multiple_precision" != "no" ; then
36224 for ac_header in openssl/bn.h bn.h
36226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36228 echo "$as_me:$LINENO: checking for $ac_header" >&5
36229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36231 echo $ECHO_N "(cached) $ECHO_C" >&6
36233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36236 # Is the header compilable?
36237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36239 cat >conftest.$ac_ext <<_ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h. */
36245 $ac_includes_default
36246 #include <$ac_header>
36248 rm -f conftest.$ac_objext
36249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36250 (eval $ac_compile) 2>conftest.er1
36252 grep -v '^ *+' conftest.er1 >conftest.err
36254 cat conftest.err >&5
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); } &&
36257 { ac_try='test -z "$ac_c_werror_flag"
36258 || test ! -s conftest.err'
36259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36260 (eval $ac_try) 2>&5
36262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263 (exit $ac_status); }; } &&
36264 { ac_try='test -s conftest.$ac_objext'
36265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36266 (eval $ac_try) 2>&5
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); }; }; then
36270 ac_header_compiler=yes
36272 echo "$as_me: failed program was:" >&5
36273 sed 's/^/| /' conftest.$ac_ext >&5
36275 ac_header_compiler=no
36277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36279 echo "${ECHO_T}$ac_header_compiler" >&6
36281 # Is the header present?
36282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36284 cat >conftest.$ac_ext <<_ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h. */
36290 #include <$ac_header>
36292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36295 grep -v '^ *+' conftest.er1 >conftest.err
36297 cat conftest.err >&5
36298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299 (exit $ac_status); } >/dev/null; then
36300 if test -s conftest.err; then
36301 ac_cpp_err=$ac_c_preproc_warn_flag
36302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36309 if test -z "$ac_cpp_err"; then
36310 ac_header_preproc=yes
36312 echo "$as_me: failed program was:" >&5
36313 sed 's/^/| /' conftest.$ac_ext >&5
36315 ac_header_preproc=no
36317 rm -f conftest.err conftest.$ac_ext
36318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36319 echo "${ECHO_T}$ac_header_preproc" >&6
36321 # So? What about this header?
36322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36328 ac_header_preproc=yes
36331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36345 ## ------------------------------------------ ##
36346 ## Report this to the AC_PACKAGE_NAME lists. ##
36347 ## ------------------------------------------ ##
36350 sed "s/^/$as_me: WARNING: /" >&2
36353 echo "$as_me:$LINENO: checking for $ac_header" >&5
36354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36356 echo $ECHO_N "(cached) $ECHO_C" >&6
36358 eval "$as_ac_Header=\$ac_header_preproc"
36360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36365 cat >>confdefs.h <<_ACEOF
36366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36375 for ac_header in openssl/crypto.h crypto.h
36377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36379 echo "$as_me:$LINENO: checking for $ac_header" >&5
36380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36382 echo $ECHO_N "(cached) $ECHO_C" >&6
36384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36387 # Is the header compilable?
36388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36390 cat >conftest.$ac_ext <<_ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h. */
36396 $ac_includes_default
36397 #include <$ac_header>
36399 rm -f conftest.$ac_objext
36400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36401 (eval $ac_compile) 2>conftest.er1
36403 grep -v '^ *+' conftest.er1 >conftest.err
36405 cat conftest.err >&5
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); } &&
36408 { ac_try='test -z "$ac_c_werror_flag"
36409 || test ! -s conftest.err'
36410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411 (eval $ac_try) 2>&5
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; } &&
36415 { ac_try='test -s conftest.$ac_objext'
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; }; then
36421 ac_header_compiler=yes
36423 echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36426 ac_header_compiler=no
36428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36430 echo "${ECHO_T}$ac_header_compiler" >&6
36432 # Is the header present?
36433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36435 cat >conftest.$ac_ext <<_ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h. */
36441 #include <$ac_header>
36443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36446 grep -v '^ *+' conftest.er1 >conftest.err
36448 cat conftest.err >&5
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); } >/dev/null; then
36451 if test -s conftest.err; then
36452 ac_cpp_err=$ac_c_preproc_warn_flag
36453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36460 if test -z "$ac_cpp_err"; then
36461 ac_header_preproc=yes
36463 echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36466 ac_header_preproc=no
36468 rm -f conftest.err conftest.$ac_ext
36469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36470 echo "${ECHO_T}$ac_header_preproc" >&6
36472 # So? What about this header?
36473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36479 ac_header_preproc=yes
36482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36496 ## ------------------------------------------ ##
36497 ## Report this to the AC_PACKAGE_NAME lists. ##
36498 ## ------------------------------------------ ##
36501 sed "s/^/$as_me: WARNING: /" >&2
36504 echo "$as_me:$LINENO: checking for $ac_header" >&5
36505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36507 echo $ECHO_N "(cached) $ECHO_C" >&6
36509 eval "$as_ac_Header=\$ac_header_preproc"
36511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36516 cat >>confdefs.h <<_ACEOF
36517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36525 for ac_header in gmp.h
36527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36529 echo "$as_me:$LINENO: checking for $ac_header" >&5
36530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36532 echo $ECHO_N "(cached) $ECHO_C" >&6
36534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36537 # Is the header compilable?
36538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36540 cat >conftest.$ac_ext <<_ACEOF
36543 cat confdefs.h >>conftest.$ac_ext
36544 cat >>conftest.$ac_ext <<_ACEOF
36545 /* end confdefs.h. */
36546 $ac_includes_default
36547 #include <$ac_header>
36549 rm -f conftest.$ac_objext
36550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36551 (eval $ac_compile) 2>conftest.er1
36553 grep -v '^ *+' conftest.er1 >conftest.err
36555 cat conftest.err >&5
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); } &&
36558 { ac_try='test -z "$ac_c_werror_flag"
36559 || test ! -s conftest.err'
36560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36561 (eval $ac_try) 2>&5
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); }; } &&
36565 { ac_try='test -s conftest.$ac_objext'
36566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567 (eval $ac_try) 2>&5
36569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570 (exit $ac_status); }; }; then
36571 ac_header_compiler=yes
36573 echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36576 ac_header_compiler=no
36578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36580 echo "${ECHO_T}$ac_header_compiler" >&6
36582 # Is the header present?
36583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36585 cat >conftest.$ac_ext <<_ACEOF
36588 cat confdefs.h >>conftest.$ac_ext
36589 cat >>conftest.$ac_ext <<_ACEOF
36590 /* end confdefs.h. */
36591 #include <$ac_header>
36593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36596 grep -v '^ *+' conftest.er1 >conftest.err
36598 cat conftest.err >&5
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); } >/dev/null; then
36601 if test -s conftest.err; then
36602 ac_cpp_err=$ac_c_preproc_warn_flag
36603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36610 if test -z "$ac_cpp_err"; then
36611 ac_header_preproc=yes
36613 echo "$as_me: failed program was:" >&5
36614 sed 's/^/| /' conftest.$ac_ext >&5
36616 ac_header_preproc=no
36618 rm -f conftest.err conftest.$ac_ext
36619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36620 echo "${ECHO_T}$ac_header_preproc" >&6
36622 # So? What about this header?
36623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36629 ac_header_preproc=yes
36632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36646 ## ------------------------------------------ ##
36647 ## Report this to the AC_PACKAGE_NAME lists. ##
36648 ## ------------------------------------------ ##
36651 sed "s/^/$as_me: WARNING: /" >&2
36654 echo "$as_me:$LINENO: checking for $ac_header" >&5
36655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36657 echo $ECHO_N "(cached) $ECHO_C" >&6
36659 eval "$as_ac_Header=\$ac_header_preproc"
36661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36666 cat >>confdefs.h <<_ACEOF
36667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36675 if test "$ol_with_tls" = "found" ; then
36677 ol_have_crypto_h=no
36679 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
36680 test "$ac_cv_header_bn_h" = "yes" ; then
36684 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
36685 test "$ac_cv_header_crypto_h" = "yes" ; then
36686 ol_have_crypto_h=yes
36689 if test "$ol_have_bn_h" = "yes" &&
36690 test "$ol_have_crypto_h" = "yes" ; then
36695 if test $ac_cv_header_gmp_h = yes ; then
36696 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36697 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36698 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36699 echo $ECHO_N "(cached) $ECHO_C" >&6
36701 ac_check_lib_save_LIBS=$LIBS
36703 cat >conftest.$ac_ext <<_ACEOF
36706 cat confdefs.h >>conftest.$ac_ext
36707 cat >>conftest.$ac_ext <<_ACEOF
36708 /* end confdefs.h. */
36710 /* Override any gcc2 internal prototype to avoid an error. */
36714 /* We use char because int might match the return type of a gcc2
36715 builtin and then its argument prototype would still apply. */
36716 char __gmpz_add_ui ();
36725 rm -f conftest.$ac_objext conftest$ac_exeext
36726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36727 (eval $ac_link) 2>conftest.er1
36729 grep -v '^ *+' conftest.er1 >conftest.err
36731 cat conftest.err >&5
36732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733 (exit $ac_status); } &&
36734 { ac_try='test -z "$ac_c_werror_flag"
36735 || test ! -s conftest.err'
36736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737 (eval $ac_try) 2>&5
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); }; } &&
36741 { ac_try='test -s conftest$ac_exeext'
36742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36743 (eval $ac_try) 2>&5
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); }; }; then
36747 ac_cv_lib_gmp___gmpz_add_ui=yes
36749 echo "$as_me: failed program was:" >&5
36750 sed 's/^/| /' conftest.$ac_ext >&5
36752 ac_cv_lib_gmp___gmpz_add_ui=no
36754 rm -f conftest.err conftest.$ac_objext \
36755 conftest$ac_exeext conftest.$ac_ext
36756 LIBS=$ac_check_lib_save_LIBS
36758 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36759 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36760 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36766 if test $have_gmp = yes ; then
36771 echo "$as_me:$LINENO: checking for multiple precision support" >&5
36772 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36774 ol_mp_support="none"
36775 case "$ol_with_multiple_precision" in
36777 if test "$ol_have_bignum" = "yes" ; then
36778 ol_mp_support="bignum"
36780 if test "$ol_have_gmp" = "yes" ; then
36781 ol_mp_support="gmp"
36786 if test "$ol_have_bignum" != "yes" ; then
36787 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36788 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36789 { (exit 1); exit 1; }; }
36791 ol_mp_support="bignum"
36794 if test "$ol_have_gmp" != "yes" ; then
36795 { { echo "$as_me:$LINENO: error: GMP not available" >&5
36796 echo "$as_me: error: GMP not available" >&2;}
36797 { (exit 1); exit 1; }; }
36799 ol_mp_support="gmp"
36802 if test "$ol_have_bignum" = "yes" ; then
36803 ol_mp_support="bignum"
36804 elif test "$ol_have_gmp" = "yes" ; then
36805 ol_mp_support="gmp"
36807 { { echo "$as_me:$LINENO: error: not available" >&5
36808 echo "$as_me: error: not available" >&2;}
36809 { (exit 1); exit 1; }; }
36814 case "$ol_mp_support" in
36817 cat >>confdefs.h <<\_ACEOF
36818 #define HAVE_BIGNUM 1
36824 cat >>confdefs.h <<\_ACEOF
36828 SLAPD_GMP_LIBS=-lgmp
36834 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36835 echo "${ECHO_T}$ol_mp_support" >&6
36839 echo "$as_me:$LINENO: checking for mode_t" >&5
36840 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36841 if test "${ac_cv_type_mode_t+set}" = set; then
36842 echo $ECHO_N "(cached) $ECHO_C" >&6
36844 cat >conftest.$ac_ext <<_ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h. */
36850 $ac_includes_default
36856 if (sizeof (mode_t))
36862 rm -f conftest.$ac_objext
36863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36864 (eval $ac_compile) 2>conftest.er1
36866 grep -v '^ *+' conftest.er1 >conftest.err
36868 cat conftest.err >&5
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } &&
36871 { ac_try='test -z "$ac_c_werror_flag"
36872 || test ! -s conftest.err'
36873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874 (eval $ac_try) 2>&5
36876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877 (exit $ac_status); }; } &&
36878 { ac_try='test -s conftest.$ac_objext'
36879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880 (eval $ac_try) 2>&5
36882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883 (exit $ac_status); }; }; then
36884 ac_cv_type_mode_t=yes
36886 echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36889 ac_cv_type_mode_t=no
36891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36893 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36894 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36895 if test $ac_cv_type_mode_t = yes; then
36899 cat >>confdefs.h <<_ACEOF
36905 echo "$as_me:$LINENO: checking for off_t" >&5
36906 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36907 if test "${ac_cv_type_off_t+set}" = set; then
36908 echo $ECHO_N "(cached) $ECHO_C" >&6
36910 cat >conftest.$ac_ext <<_ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h. */
36916 $ac_includes_default
36922 if (sizeof (off_t))
36928 rm -f conftest.$ac_objext
36929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36930 (eval $ac_compile) 2>conftest.er1
36932 grep -v '^ *+' conftest.er1 >conftest.err
36934 cat conftest.err >&5
36935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936 (exit $ac_status); } &&
36937 { ac_try='test -z "$ac_c_werror_flag"
36938 || test ! -s conftest.err'
36939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940 (eval $ac_try) 2>&5
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); }; } &&
36944 { ac_try='test -s conftest.$ac_objext'
36945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946 (eval $ac_try) 2>&5
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); }; }; then
36950 ac_cv_type_off_t=yes
36952 echo "$as_me: failed program was:" >&5
36953 sed 's/^/| /' conftest.$ac_ext >&5
36955 ac_cv_type_off_t=no
36957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36959 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36960 echo "${ECHO_T}$ac_cv_type_off_t" >&6
36961 if test $ac_cv_type_off_t = yes; then
36965 cat >>confdefs.h <<_ACEOF
36971 echo "$as_me:$LINENO: checking for pid_t" >&5
36972 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
36973 if test "${ac_cv_type_pid_t+set}" = set; then
36974 echo $ECHO_N "(cached) $ECHO_C" >&6
36976 cat >conftest.$ac_ext <<_ACEOF
36979 cat confdefs.h >>conftest.$ac_ext
36980 cat >>conftest.$ac_ext <<_ACEOF
36981 /* end confdefs.h. */
36982 $ac_includes_default
36988 if (sizeof (pid_t))
36994 rm -f conftest.$ac_objext
36995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36996 (eval $ac_compile) 2>conftest.er1
36998 grep -v '^ *+' conftest.er1 >conftest.err
37000 cat conftest.err >&5
37001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); } &&
37003 { ac_try='test -z "$ac_c_werror_flag"
37004 || test ! -s conftest.err'
37005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37006 (eval $ac_try) 2>&5
37008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009 (exit $ac_status); }; } &&
37010 { ac_try='test -s conftest.$ac_objext'
37011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37012 (eval $ac_try) 2>&5
37014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37015 (exit $ac_status); }; }; then
37016 ac_cv_type_pid_t=yes
37018 echo "$as_me: failed program was:" >&5
37019 sed 's/^/| /' conftest.$ac_ext >&5
37021 ac_cv_type_pid_t=no
37023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37025 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37027 if test $ac_cv_type_pid_t = yes; then
37031 cat >>confdefs.h <<_ACEOF
37037 echo "$as_me:$LINENO: checking for ssize_t" >&5
37038 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37039 if test "${ac_cv_type_ssize_t+set}" = set; then
37040 echo $ECHO_N "(cached) $ECHO_C" >&6
37042 cat >conftest.$ac_ext <<_ACEOF
37045 cat confdefs.h >>conftest.$ac_ext
37046 cat >>conftest.$ac_ext <<_ACEOF
37047 /* end confdefs.h. */
37048 $ac_includes_default
37054 if (sizeof (ssize_t))
37060 rm -f conftest.$ac_objext
37061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37062 (eval $ac_compile) 2>conftest.er1
37064 grep -v '^ *+' conftest.er1 >conftest.err
37066 cat conftest.err >&5
37067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068 (exit $ac_status); } &&
37069 { ac_try='test -z "$ac_c_werror_flag"
37070 || test ! -s conftest.err'
37071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37072 (eval $ac_try) 2>&5
37074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075 (exit $ac_status); }; } &&
37076 { ac_try='test -s conftest.$ac_objext'
37077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37078 (eval $ac_try) 2>&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); }; }; then
37082 ac_cv_type_ssize_t=yes
37084 echo "$as_me: failed program was:" >&5
37085 sed 's/^/| /' conftest.$ac_ext >&5
37087 ac_cv_type_ssize_t=no
37089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37091 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37092 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37093 if test $ac_cv_type_ssize_t = yes; then
37097 cat >>confdefs.h <<_ACEOF
37098 #define ssize_t signed int
37103 echo "$as_me:$LINENO: checking for caddr_t" >&5
37104 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37105 if test "${ac_cv_type_caddr_t+set}" = set; then
37106 echo $ECHO_N "(cached) $ECHO_C" >&6
37108 cat >conftest.$ac_ext <<_ACEOF
37111 cat confdefs.h >>conftest.$ac_ext
37112 cat >>conftest.$ac_ext <<_ACEOF
37113 /* end confdefs.h. */
37114 $ac_includes_default
37120 if (sizeof (caddr_t))
37126 rm -f conftest.$ac_objext
37127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37128 (eval $ac_compile) 2>conftest.er1
37130 grep -v '^ *+' conftest.er1 >conftest.err
37132 cat conftest.err >&5
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); } &&
37135 { ac_try='test -z "$ac_c_werror_flag"
37136 || test ! -s conftest.err'
37137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138 (eval $ac_try) 2>&5
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; } &&
37142 { ac_try='test -s conftest.$ac_objext'
37143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37144 (eval $ac_try) 2>&5
37146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147 (exit $ac_status); }; }; then
37148 ac_cv_type_caddr_t=yes
37150 echo "$as_me: failed program was:" >&5
37151 sed 's/^/| /' conftest.$ac_ext >&5
37153 ac_cv_type_caddr_t=no
37155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37157 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37158 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37159 if test $ac_cv_type_caddr_t = yes; then
37163 cat >>confdefs.h <<_ACEOF
37164 #define caddr_t char *
37169 echo "$as_me:$LINENO: checking for size_t" >&5
37170 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37171 if test "${ac_cv_type_size_t+set}" = set; then
37172 echo $ECHO_N "(cached) $ECHO_C" >&6
37174 cat >conftest.$ac_ext <<_ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h. */
37180 $ac_includes_default
37186 if (sizeof (size_t))
37192 rm -f conftest.$ac_objext
37193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37194 (eval $ac_compile) 2>conftest.er1
37196 grep -v '^ *+' conftest.er1 >conftest.err
37198 cat conftest.err >&5
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } &&
37201 { ac_try='test -z "$ac_c_werror_flag"
37202 || test ! -s conftest.err'
37203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204 (eval $ac_try) 2>&5
37206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207 (exit $ac_status); }; } &&
37208 { ac_try='test -s conftest.$ac_objext'
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; }; then
37214 ac_cv_type_size_t=yes
37216 echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37219 ac_cv_type_size_t=no
37221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37223 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37224 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37225 if test $ac_cv_type_size_t = yes; then
37229 cat >>confdefs.h <<_ACEOF
37230 #define size_t unsigned
37236 echo "$as_me:$LINENO: checking for long long" >&5
37237 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37238 if test "${ac_cv_type_long_long+set}" = set; then
37239 echo $ECHO_N "(cached) $ECHO_C" >&6
37241 cat >conftest.$ac_ext <<_ACEOF
37244 cat confdefs.h >>conftest.$ac_ext
37245 cat >>conftest.$ac_ext <<_ACEOF
37246 /* end confdefs.h. */
37247 $ac_includes_default
37251 if ((long long *) 0)
37253 if (sizeof (long long))
37259 rm -f conftest.$ac_objext
37260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37261 (eval $ac_compile) 2>conftest.er1
37263 grep -v '^ *+' conftest.er1 >conftest.err
37265 cat conftest.err >&5
37266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267 (exit $ac_status); } &&
37268 { ac_try='test -z "$ac_c_werror_flag"
37269 || test ! -s conftest.err'
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; } &&
37275 { ac_try='test -s conftest.$ac_objext'
37276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277 (eval $ac_try) 2>&5
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); }; }; then
37281 ac_cv_type_long_long=yes
37283 echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37286 ac_cv_type_long_long=no
37288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37290 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37291 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37292 if test $ac_cv_type_long_long = yes; then
37294 cat >>confdefs.h <<_ACEOF
37295 #define HAVE_LONG_LONG 1
37301 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37302 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37303 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37304 echo $ECHO_N "(cached) $ECHO_C" >&6
37306 cat >conftest.$ac_ext <<_ACEOF
37309 cat confdefs.h >>conftest.$ac_ext
37310 cat >>conftest.$ac_ext <<_ACEOF
37311 /* end confdefs.h. */
37312 $ac_includes_default
37316 if ((ptrdiff_t *) 0)
37318 if (sizeof (ptrdiff_t))
37324 rm -f conftest.$ac_objext
37325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37326 (eval $ac_compile) 2>conftest.er1
37328 grep -v '^ *+' conftest.er1 >conftest.err
37330 cat conftest.err >&5
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); } &&
37333 { ac_try='test -z "$ac_c_werror_flag"
37334 || test ! -s conftest.err'
37335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336 (eval $ac_try) 2>&5
37338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; } &&
37340 { ac_try='test -s conftest.$ac_objext'
37341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37342 (eval $ac_try) 2>&5
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); }; }; then
37346 ac_cv_type_ptrdiff_t=yes
37348 echo "$as_me: failed program was:" >&5
37349 sed 's/^/| /' conftest.$ac_ext >&5
37351 ac_cv_type_ptrdiff_t=no
37353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37355 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37356 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37357 if test $ac_cv_type_ptrdiff_t = yes; then
37359 cat >>confdefs.h <<_ACEOF
37360 #define HAVE_PTRDIFF_T 1
37367 echo "$as_me:$LINENO: checking for socklen_t" >&5
37368 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37369 if test "${ac_cv_type_socklen_t+set}" = set; then
37370 echo $ECHO_N "(cached) $ECHO_C" >&6
37372 cat >conftest.$ac_ext <<_ACEOF
37375 cat confdefs.h >>conftest.$ac_ext
37376 cat >>conftest.$ac_ext <<_ACEOF
37377 /* end confdefs.h. */
37378 $ac_includes_default
37379 #ifdef HAVE_SYS_SOCKET_H
37380 #include <sys/socket.h>
37387 if ((socklen_t *) 0)
37389 if (sizeof (socklen_t))
37395 rm -f conftest.$ac_objext
37396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37397 (eval $ac_compile) 2>conftest.er1
37399 grep -v '^ *+' conftest.er1 >conftest.err
37401 cat conftest.err >&5
37402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403 (exit $ac_status); } &&
37404 { ac_try='test -z "$ac_c_werror_flag"
37405 || test ! -s conftest.err'
37406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37407 (eval $ac_try) 2>&5
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); }; } &&
37411 { ac_try='test -s conftest.$ac_objext'
37412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413 (eval $ac_try) 2>&5
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); }; }; then
37417 ac_cv_type_socklen_t=yes
37419 echo "$as_me: failed program was:" >&5
37420 sed 's/^/| /' conftest.$ac_ext >&5
37422 ac_cv_type_socklen_t=no
37424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37426 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37427 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37428 if test $ac_cv_type_socklen_t = yes; then
37432 cat >>confdefs.h <<_ACEOF
37433 #define socklen_t int
37439 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37440 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37441 if test "${ac_cv_type_signal+set}" = set; then
37442 echo $ECHO_N "(cached) $ECHO_C" >&6
37444 cat >conftest.$ac_ext <<_ACEOF
37447 cat confdefs.h >>conftest.$ac_ext
37448 cat >>conftest.$ac_ext <<_ACEOF
37449 /* end confdefs.h. */
37450 #include <sys/types.h>
37451 #include <signal.h>
37456 extern "C" void (*signal (int, void (*)(int)))(int);
37458 void (*signal ()) ();
37469 rm -f conftest.$ac_objext
37470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37471 (eval $ac_compile) 2>conftest.er1
37473 grep -v '^ *+' conftest.er1 >conftest.err
37475 cat conftest.err >&5
37476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477 (exit $ac_status); } &&
37478 { ac_try='test -z "$ac_c_werror_flag"
37479 || test ! -s conftest.err'
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; } &&
37485 { ac_try='test -s conftest.$ac_objext'
37486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37487 (eval $ac_try) 2>&5
37489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490 (exit $ac_status); }; }; then
37491 ac_cv_type_signal=void
37493 echo "$as_me: failed program was:" >&5
37494 sed 's/^/| /' conftest.$ac_ext >&5
37496 ac_cv_type_signal=int
37498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37500 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37501 echo "${ECHO_T}$ac_cv_type_signal" >&6
37503 cat >>confdefs.h <<_ACEOF
37504 #define RETSIGTYPE $ac_cv_type_signal
37509 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37510 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37511 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37512 echo $ECHO_N "(cached) $ECHO_C" >&6
37514 cat >conftest.$ac_ext <<_ACEOF
37517 cat confdefs.h >>conftest.$ac_ext
37518 cat >>conftest.$ac_ext <<_ACEOF
37519 /* end confdefs.h. */
37520 $ac_includes_default
37521 #include <signal.h>
37527 if ((sig_atomic_t *) 0)
37529 if (sizeof (sig_atomic_t))
37535 rm -f conftest.$ac_objext
37536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37537 (eval $ac_compile) 2>conftest.er1
37539 grep -v '^ *+' conftest.er1 >conftest.err
37541 cat conftest.err >&5
37542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543 (exit $ac_status); } &&
37544 { ac_try='test -z "$ac_c_werror_flag"
37545 || test ! -s conftest.err'
37546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547 (eval $ac_try) 2>&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); }; } &&
37551 { ac_try='test -s conftest.$ac_objext'
37552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37553 (eval $ac_try) 2>&5
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); }; }; then
37557 ac_cv_type_sig_atomic_t=yes
37559 echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37562 ac_cv_type_sig_atomic_t=no
37564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37566 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37567 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37568 if test $ac_cv_type_sig_atomic_t = yes; then
37572 cat >>confdefs.h <<_ACEOF
37573 #define sig_atomic_t int
37579 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37580 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37581 if test "${ac_cv_type_uid_t+set}" = set; then
37582 echo $ECHO_N "(cached) $ECHO_C" >&6
37584 cat >conftest.$ac_ext <<_ACEOF
37587 cat confdefs.h >>conftest.$ac_ext
37588 cat >>conftest.$ac_ext <<_ACEOF
37589 /* end confdefs.h. */
37590 #include <sys/types.h>
37593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37594 $EGREP "uid_t" >/dev/null 2>&1; then
37595 ac_cv_type_uid_t=yes
37597 ac_cv_type_uid_t=no
37602 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37603 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37604 if test $ac_cv_type_uid_t = no; then
37606 cat >>confdefs.h <<\_ACEOF
37611 cat >>confdefs.h <<\_ACEOF
37618 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37619 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37620 if test "${ac_cv_header_time+set}" = set; then
37621 echo $ECHO_N "(cached) $ECHO_C" >&6
37623 cat >conftest.$ac_ext <<_ACEOF
37626 cat confdefs.h >>conftest.$ac_ext
37627 cat >>conftest.$ac_ext <<_ACEOF
37628 /* end confdefs.h. */
37629 #include <sys/types.h>
37630 #include <sys/time.h>
37636 if ((struct tm *) 0)
37642 rm -f conftest.$ac_objext
37643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37644 (eval $ac_compile) 2>conftest.er1
37646 grep -v '^ *+' conftest.er1 >conftest.err
37648 cat conftest.err >&5
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); } &&
37651 { ac_try='test -z "$ac_c_werror_flag"
37652 || test ! -s conftest.err'
37653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654 (eval $ac_try) 2>&5
37656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657 (exit $ac_status); }; } &&
37658 { ac_try='test -s conftest.$ac_objext'
37659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37660 (eval $ac_try) 2>&5
37662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37663 (exit $ac_status); }; }; then
37664 ac_cv_header_time=yes
37666 echo "$as_me: failed program was:" >&5
37667 sed 's/^/| /' conftest.$ac_ext >&5
37669 ac_cv_header_time=no
37671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37673 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37674 echo "${ECHO_T}$ac_cv_header_time" >&6
37675 if test $ac_cv_header_time = yes; then
37677 cat >>confdefs.h <<\_ACEOF
37678 #define TIME_WITH_SYS_TIME 1
37683 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37684 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37685 if test "${ac_cv_struct_tm+set}" = set; then
37686 echo $ECHO_N "(cached) $ECHO_C" >&6
37688 cat >conftest.$ac_ext <<_ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h. */
37694 #include <sys/types.h>
37700 struct tm *tp; tp->tm_sec;
37705 rm -f conftest.$ac_objext
37706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37707 (eval $ac_compile) 2>conftest.er1
37709 grep -v '^ *+' conftest.er1 >conftest.err
37711 cat conftest.err >&5
37712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713 (exit $ac_status); } &&
37714 { ac_try='test -z "$ac_c_werror_flag"
37715 || test ! -s conftest.err'
37716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717 (eval $ac_try) 2>&5
37719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); }; } &&
37721 { ac_try='test -s conftest.$ac_objext'
37722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37723 (eval $ac_try) 2>&5
37725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726 (exit $ac_status); }; }; then
37727 ac_cv_struct_tm=time.h
37729 echo "$as_me: failed program was:" >&5
37730 sed 's/^/| /' conftest.$ac_ext >&5
37732 ac_cv_struct_tm=sys/time.h
37734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37736 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37737 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37738 if test $ac_cv_struct_tm = sys/time.h; then
37740 cat >>confdefs.h <<\_ACEOF
37741 #define TM_IN_SYS_TIME 1
37746 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37747 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37748 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37749 echo $ECHO_N "(cached) $ECHO_C" >&6
37751 cat >conftest.$ac_ext <<_ACEOF
37754 cat confdefs.h >>conftest.$ac_ext
37755 cat >>conftest.$ac_ext <<_ACEOF
37756 /* end confdefs.h. */
37757 $ac_includes_default
37761 static struct stat ac_aggr;
37762 if (ac_aggr.st_blksize)
37768 rm -f conftest.$ac_objext
37769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37770 (eval $ac_compile) 2>conftest.er1
37772 grep -v '^ *+' conftest.er1 >conftest.err
37774 cat conftest.err >&5
37775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37776 (exit $ac_status); } &&
37777 { ac_try='test -z "$ac_c_werror_flag"
37778 || test ! -s conftest.err'
37779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37780 (eval $ac_try) 2>&5
37782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783 (exit $ac_status); }; } &&
37784 { ac_try='test -s conftest.$ac_objext'
37785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37786 (eval $ac_try) 2>&5
37788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); }; }; then
37790 ac_cv_member_struct_stat_st_blksize=yes
37792 echo "$as_me: failed program was:" >&5
37793 sed 's/^/| /' conftest.$ac_ext >&5
37795 cat >conftest.$ac_ext <<_ACEOF
37798 cat confdefs.h >>conftest.$ac_ext
37799 cat >>conftest.$ac_ext <<_ACEOF
37800 /* end confdefs.h. */
37801 $ac_includes_default
37805 static struct stat ac_aggr;
37806 if (sizeof ac_aggr.st_blksize)
37812 rm -f conftest.$ac_objext
37813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37814 (eval $ac_compile) 2>conftest.er1
37816 grep -v '^ *+' conftest.er1 >conftest.err
37818 cat conftest.err >&5
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); } &&
37821 { ac_try='test -z "$ac_c_werror_flag"
37822 || test ! -s conftest.err'
37823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824 (eval $ac_try) 2>&5
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); }; } &&
37828 { ac_try='test -s conftest.$ac_objext'
37829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37830 (eval $ac_try) 2>&5
37832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833 (exit $ac_status); }; }; then
37834 ac_cv_member_struct_stat_st_blksize=yes
37836 echo "$as_me: failed program was:" >&5
37837 sed 's/^/| /' conftest.$ac_ext >&5
37839 ac_cv_member_struct_stat_st_blksize=no
37841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37846 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37847 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37849 cat >>confdefs.h <<_ACEOF
37850 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37856 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37857 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37858 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37859 echo $ECHO_N "(cached) $ECHO_C" >&6
37861 cat >conftest.$ac_ext <<_ACEOF
37864 cat confdefs.h >>conftest.$ac_ext
37865 cat >>conftest.$ac_ext <<_ACEOF
37866 /* end confdefs.h. */
37867 $ac_includes_default
37873 static struct passwd ac_aggr;
37874 if (ac_aggr.pw_gecos)
37880 rm -f conftest.$ac_objext
37881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37882 (eval $ac_compile) 2>conftest.er1
37884 grep -v '^ *+' conftest.er1 >conftest.err
37886 cat conftest.err >&5
37887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888 (exit $ac_status); } &&
37889 { ac_try='test -z "$ac_c_werror_flag"
37890 || test ! -s conftest.err'
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; } &&
37896 { ac_try='test -s conftest.$ac_objext'
37897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37898 (eval $ac_try) 2>&5
37900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37901 (exit $ac_status); }; }; then
37902 ac_cv_member_struct_passwd_pw_gecos=yes
37904 echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37907 cat >conftest.$ac_ext <<_ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h. */
37913 $ac_includes_default
37919 static struct passwd ac_aggr;
37920 if (sizeof ac_aggr.pw_gecos)
37926 rm -f conftest.$ac_objext
37927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37928 (eval $ac_compile) 2>conftest.er1
37930 grep -v '^ *+' conftest.er1 >conftest.err
37932 cat conftest.err >&5
37933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934 (exit $ac_status); } &&
37935 { ac_try='test -z "$ac_c_werror_flag"
37936 || test ! -s conftest.err'
37937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37938 (eval $ac_try) 2>&5
37940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941 (exit $ac_status); }; } &&
37942 { ac_try='test -s conftest.$ac_objext'
37943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37944 (eval $ac_try) 2>&5
37946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37947 (exit $ac_status); }; }; then
37948 ac_cv_member_struct_passwd_pw_gecos=yes
37950 echo "$as_me: failed program was:" >&5
37951 sed 's/^/| /' conftest.$ac_ext >&5
37953 ac_cv_member_struct_passwd_pw_gecos=no
37955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
37960 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
37961 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
37963 cat >>confdefs.h <<_ACEOF
37964 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
37970 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
37971 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
37972 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
37973 echo $ECHO_N "(cached) $ECHO_C" >&6
37975 cat >conftest.$ac_ext <<_ACEOF
37978 cat confdefs.h >>conftest.$ac_ext
37979 cat >>conftest.$ac_ext <<_ACEOF
37980 /* end confdefs.h. */
37981 $ac_includes_default
37987 static struct passwd ac_aggr;
37988 if (ac_aggr.pw_passwd)
37994 rm -f conftest.$ac_objext
37995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37996 (eval $ac_compile) 2>conftest.er1
37998 grep -v '^ *+' conftest.er1 >conftest.err
38000 cat conftest.err >&5
38001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002 (exit $ac_status); } &&
38003 { ac_try='test -z "$ac_c_werror_flag"
38004 || test ! -s conftest.err'
38005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006 (eval $ac_try) 2>&5
38008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009 (exit $ac_status); }; } &&
38010 { ac_try='test -s conftest.$ac_objext'
38011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38012 (eval $ac_try) 2>&5
38014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38015 (exit $ac_status); }; }; then
38016 ac_cv_member_struct_passwd_pw_passwd=yes
38018 echo "$as_me: failed program was:" >&5
38019 sed 's/^/| /' conftest.$ac_ext >&5
38021 cat >conftest.$ac_ext <<_ACEOF
38024 cat confdefs.h >>conftest.$ac_ext
38025 cat >>conftest.$ac_ext <<_ACEOF
38026 /* end confdefs.h. */
38027 $ac_includes_default
38033 static struct passwd ac_aggr;
38034 if (sizeof ac_aggr.pw_passwd)
38040 rm -f conftest.$ac_objext
38041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38042 (eval $ac_compile) 2>conftest.er1
38044 grep -v '^ *+' conftest.er1 >conftest.err
38046 cat conftest.err >&5
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); } &&
38049 { ac_try='test -z "$ac_c_werror_flag"
38050 || test ! -s conftest.err'
38051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38052 (eval $ac_try) 2>&5
38054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055 (exit $ac_status); }; } &&
38056 { ac_try='test -s conftest.$ac_objext'
38057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38058 (eval $ac_try) 2>&5
38060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061 (exit $ac_status); }; }; then
38062 ac_cv_member_struct_passwd_pw_passwd=yes
38064 echo "$as_me: failed program was:" >&5
38065 sed 's/^/| /' conftest.$ac_ext >&5
38067 ac_cv_member_struct_passwd_pw_passwd=no
38069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38074 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38075 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38077 cat >>confdefs.h <<_ACEOF
38078 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38085 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38086 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38087 if test "${ol_cv_c_upper_lower+set}" = set; then
38088 echo $ECHO_N "(cached) $ECHO_C" >&6
38091 if test "$cross_compiling" = yes; then
38092 ol_cv_c_upper_lower=safe
38094 cat >conftest.$ac_ext <<_ACEOF
38097 cat confdefs.h >>conftest.$ac_ext
38098 cat >>conftest.$ac_ext <<_ACEOF
38099 /* end confdefs.h. */
38104 if ('C' == toupper('C'))
38110 rm -f conftest$ac_exeext
38111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38112 (eval $ac_link) 2>&5
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38117 (eval $ac_try) 2>&5
38119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120 (exit $ac_status); }; }; then
38121 ol_cv_c_upper_lower=no
38123 echo "$as_me: program exited with status $ac_status" >&5
38124 echo "$as_me: failed program was:" >&5
38125 sed 's/^/| /' conftest.$ac_ext >&5
38127 ( exit $ac_status )
38128 ol_cv_c_upper_lower=yes
38130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38133 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38134 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38135 if test $ol_cv_c_upper_lower != no ; then
38137 cat >>confdefs.h <<\_ACEOF
38138 #define C_UPPER_LOWER 1
38143 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38144 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38145 if test "${ac_cv_c_const+set}" = set; then
38146 echo $ECHO_N "(cached) $ECHO_C" >&6
38148 cat >conftest.$ac_ext <<_ACEOF
38151 cat confdefs.h >>conftest.$ac_ext
38152 cat >>conftest.$ac_ext <<_ACEOF
38153 /* end confdefs.h. */
38158 /* FIXME: Include the comments suggested by Paul. */
38159 #ifndef __cplusplus
38160 /* Ultrix mips cc rejects this. */
38161 typedef int charset[2];
38163 /* SunOS 4.1.1 cc rejects this. */
38164 char const *const *ccp;
38166 /* NEC SVR4.0.2 mips cc rejects this. */
38167 struct point {int x, y;};
38168 static struct point const zero = {0,0};
38169 /* AIX XL C 1.02.0.0 rejects this.
38170 It does not let you subtract one const X* pointer from another in
38171 an arm of an if-expression whose if-part is not a constant
38173 const char *g = "string";
38174 ccp = &g + (g ? g-g : 0);
38175 /* HPUX 7.0 cc rejects these. */
38178 ccp = (char const *const *) p;
38179 { /* SCO 3.2v4 cc rejects this. */
38181 char const *s = 0 ? (char *) 0 : (char const *) 0;
38185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38186 int x[] = {25, 17};
38187 const int *foo = &x[0];
38190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38191 typedef const int *iptr;
38195 { /* AIX XL C 1.02.0.0 rejects this saying
38196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38197 struct s { int j; const int *ap[3]; };
38198 struct s *b; b->j = 5;
38200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38201 const int foo = 10;
38209 rm -f conftest.$ac_objext
38210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38211 (eval $ac_compile) 2>conftest.er1
38213 grep -v '^ *+' conftest.er1 >conftest.err
38215 cat conftest.err >&5
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); } &&
38218 { ac_try='test -z "$ac_c_werror_flag"
38219 || test ! -s conftest.err'
38220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38221 (eval $ac_try) 2>&5
38223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224 (exit $ac_status); }; } &&
38225 { ac_try='test -s conftest.$ac_objext'
38226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38227 (eval $ac_try) 2>&5
38229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); }; }; then
38233 echo "$as_me: failed program was:" >&5
38234 sed 's/^/| /' conftest.$ac_ext >&5
38238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38240 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38241 echo "${ECHO_T}$ac_cv_c_const" >&6
38242 if test $ac_cv_c_const = no; then
38244 cat >>confdefs.h <<\_ACEOF
38250 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38251 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38252 if test "${ol_cv_c_volatile+set}" = set; then
38253 echo $ECHO_N "(cached) $ECHO_C" >&6
38255 cat >conftest.$ac_ext <<_ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h. */
38265 volatile int a; int * volatile b = x ? &y : &z;
38266 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38272 rm -f conftest.$ac_objext
38273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38274 (eval $ac_compile) 2>conftest.er1
38276 grep -v '^ *+' conftest.er1 >conftest.err
38278 cat conftest.err >&5
38279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38280 (exit $ac_status); } &&
38281 { ac_try='test -z "$ac_c_werror_flag"
38282 || test ! -s conftest.err'
38283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38284 (eval $ac_try) 2>&5
38286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38287 (exit $ac_status); }; } &&
38288 { ac_try='test -s conftest.$ac_objext'
38289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38290 (eval $ac_try) 2>&5
38292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293 (exit $ac_status); }; }; then
38294 ol_cv_c_volatile=yes
38296 echo "$as_me: failed program was:" >&5
38297 sed 's/^/| /' conftest.$ac_ext >&5
38299 ol_cv_c_volatile=no
38301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38303 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38304 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38305 if test $ol_cv_c_volatile = yes; then
38309 cat >>confdefs.h <<\_ACEOF
38316 if test $cross_compiling = yes ; then
38317 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38318 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38320 cat >>confdefs.h <<\_ACEOF
38321 #define CROSS_COMPILING 1
38325 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38326 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38327 if test "${ac_cv_c_bigendian+set}" = set; then
38328 echo $ECHO_N "(cached) $ECHO_C" >&6
38330 # See if sys/param.h defines the BYTE_ORDER macro.
38331 cat >conftest.$ac_ext <<_ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h. */
38337 #include <sys/types.h>
38338 #include <sys/param.h>
38343 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38344 bogus endian macros
38351 rm -f conftest.$ac_objext
38352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38353 (eval $ac_compile) 2>conftest.er1
38355 grep -v '^ *+' conftest.er1 >conftest.err
38357 cat conftest.err >&5
38358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); } &&
38360 { ac_try='test -z "$ac_c_werror_flag"
38361 || test ! -s conftest.err'
38362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363 (eval $ac_try) 2>&5
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); }; } &&
38367 { ac_try='test -s conftest.$ac_objext'
38368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369 (eval $ac_try) 2>&5
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); }; }; then
38373 # It does; now see whether it defined to BIG_ENDIAN or not.
38374 cat >conftest.$ac_ext <<_ACEOF
38377 cat confdefs.h >>conftest.$ac_ext
38378 cat >>conftest.$ac_ext <<_ACEOF
38379 /* end confdefs.h. */
38380 #include <sys/types.h>
38381 #include <sys/param.h>
38386 #if BYTE_ORDER != BIG_ENDIAN
38394 rm -f conftest.$ac_objext
38395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38396 (eval $ac_compile) 2>conftest.er1
38398 grep -v '^ *+' conftest.er1 >conftest.err
38400 cat conftest.err >&5
38401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38402 (exit $ac_status); } &&
38403 { ac_try='test -z "$ac_c_werror_flag"
38404 || test ! -s conftest.err'
38405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38406 (eval $ac_try) 2>&5
38408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409 (exit $ac_status); }; } &&
38410 { ac_try='test -s conftest.$ac_objext'
38411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38412 (eval $ac_try) 2>&5
38414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415 (exit $ac_status); }; }; then
38416 ac_cv_c_bigendian=yes
38418 echo "$as_me: failed program was:" >&5
38419 sed 's/^/| /' conftest.$ac_ext >&5
38421 ac_cv_c_bigendian=no
38423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38425 echo "$as_me: failed program was:" >&5
38426 sed 's/^/| /' conftest.$ac_ext >&5
38428 # It does not; compile a test program.
38429 if test "$cross_compiling" = yes; then
38430 # try to guess the endianness by grepping values into an object file
38431 ac_cv_c_bigendian=unknown
38432 cat >conftest.$ac_ext <<_ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h. */
38438 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38439 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38440 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38441 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38442 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38443 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38447 _ascii (); _ebcdic ();
38452 rm -f conftest.$ac_objext
38453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38454 (eval $ac_compile) 2>conftest.er1
38456 grep -v '^ *+' conftest.er1 >conftest.err
38458 cat conftest.err >&5
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); } &&
38461 { ac_try='test -z "$ac_c_werror_flag"
38462 || test ! -s conftest.err'
38463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38464 (eval $ac_try) 2>&5
38466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467 (exit $ac_status); }; } &&
38468 { ac_try='test -s conftest.$ac_objext'
38469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38470 (eval $ac_try) 2>&5
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); }; }; then
38474 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38475 ac_cv_c_bigendian=yes
38477 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38478 if test "$ac_cv_c_bigendian" = unknown; then
38479 ac_cv_c_bigendian=no
38481 # finding both strings is unlikely to happen, but who knows?
38482 ac_cv_c_bigendian=unknown
38486 echo "$as_me: failed program was:" >&5
38487 sed 's/^/| /' conftest.$ac_ext >&5
38490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38492 cat >conftest.$ac_ext <<_ACEOF
38495 cat confdefs.h >>conftest.$ac_ext
38496 cat >>conftest.$ac_ext <<_ACEOF
38497 /* end confdefs.h. */
38501 /* Are we little or big endian? From Harbison&Steele. */
38505 char c[sizeof (long)];
38508 exit (u.c[sizeof (long) - 1] == 1);
38511 rm -f conftest$ac_exeext
38512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38513 (eval $ac_link) 2>&5
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; }; then
38522 ac_cv_c_bigendian=no
38524 echo "$as_me: program exited with status $ac_status" >&5
38525 echo "$as_me: failed program was:" >&5
38526 sed 's/^/| /' conftest.$ac_ext >&5
38528 ( exit $ac_status )
38529 ac_cv_c_bigendian=yes
38531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38536 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38537 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38538 case $ac_cv_c_bigendian in
38541 cat >>confdefs.h <<\_ACEOF
38542 #define WORDS_BIGENDIAN 1
38548 { { echo "$as_me:$LINENO: error: unknown endianness
38549 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38550 echo "$as_me: error: unknown endianness
38551 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38552 { (exit 1); exit 1; }; } ;;
38557 echo "$as_me:$LINENO: checking for short" >&5
38558 echo $ECHO_N "checking for short... $ECHO_C" >&6
38559 if test "${ac_cv_type_short+set}" = set; then
38560 echo $ECHO_N "(cached) $ECHO_C" >&6
38562 cat >conftest.$ac_ext <<_ACEOF
38565 cat confdefs.h >>conftest.$ac_ext
38566 cat >>conftest.$ac_ext <<_ACEOF
38567 /* end confdefs.h. */
38568 $ac_includes_default
38574 if (sizeof (short))
38580 rm -f conftest.$ac_objext
38581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38582 (eval $ac_compile) 2>conftest.er1
38584 grep -v '^ *+' conftest.er1 >conftest.err
38586 cat conftest.err >&5
38587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588 (exit $ac_status); } &&
38589 { ac_try='test -z "$ac_c_werror_flag"
38590 || test ! -s conftest.err'
38591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592 (eval $ac_try) 2>&5
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); }; } &&
38596 { ac_try='test -s conftest.$ac_objext'
38597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598 (eval $ac_try) 2>&5
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); }; }; then
38602 ac_cv_type_short=yes
38604 echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38607 ac_cv_type_short=no
38609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38611 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38612 echo "${ECHO_T}$ac_cv_type_short" >&6
38614 echo "$as_me:$LINENO: checking size of short" >&5
38615 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38616 if test "${ac_cv_sizeof_short+set}" = set; then
38617 echo $ECHO_N "(cached) $ECHO_C" >&6
38619 if test "$ac_cv_type_short" = yes; then
38620 # The cast to unsigned long works around a bug in the HP C Compiler
38621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38623 # This bug is HP SR number 8606223364.
38624 if test "$cross_compiling" = yes; then
38625 # Depending upon the size, compute the lo and hi bounds.
38626 cat >conftest.$ac_ext <<_ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h. */
38632 $ac_includes_default
38636 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38643 rm -f conftest.$ac_objext
38644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38645 (eval $ac_compile) 2>conftest.er1
38647 grep -v '^ *+' conftest.er1 >conftest.err
38649 cat conftest.err >&5
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); } &&
38652 { ac_try='test -z "$ac_c_werror_flag"
38653 || test ! -s conftest.err'
38654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38655 (eval $ac_try) 2>&5
38657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658 (exit $ac_status); }; } &&
38659 { ac_try='test -s conftest.$ac_objext'
38660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661 (eval $ac_try) 2>&5
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); }; }; then
38667 cat >conftest.$ac_ext <<_ACEOF
38670 cat confdefs.h >>conftest.$ac_ext
38671 cat >>conftest.$ac_ext <<_ACEOF
38672 /* end confdefs.h. */
38673 $ac_includes_default
38677 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38684 rm -f conftest.$ac_objext
38685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38686 (eval $ac_compile) 2>conftest.er1
38688 grep -v '^ *+' conftest.er1 >conftest.err
38690 cat conftest.err >&5
38691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); } &&
38693 { ac_try='test -z "$ac_c_werror_flag"
38694 || test ! -s conftest.err'
38695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38696 (eval $ac_try) 2>&5
38698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38699 (exit $ac_status); }; } &&
38700 { ac_try='test -s conftest.$ac_objext'
38701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38702 (eval $ac_try) 2>&5
38704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 (exit $ac_status); }; }; then
38706 ac_hi=$ac_mid; break
38708 echo "$as_me: failed program was:" >&5
38709 sed 's/^/| /' conftest.$ac_ext >&5
38711 ac_lo=`expr $ac_mid + 1`
38712 if test $ac_lo -le $ac_mid; then
38716 ac_mid=`expr 2 '*' $ac_mid + 1`
38718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38721 echo "$as_me: failed program was:" >&5
38722 sed 's/^/| /' conftest.$ac_ext >&5
38724 cat >conftest.$ac_ext <<_ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h. */
38730 $ac_includes_default
38734 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38741 rm -f conftest.$ac_objext
38742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38743 (eval $ac_compile) 2>conftest.er1
38745 grep -v '^ *+' conftest.er1 >conftest.err
38747 cat conftest.err >&5
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); } &&
38750 { ac_try='test -z "$ac_c_werror_flag"
38751 || test ! -s conftest.err'
38752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38753 (eval $ac_try) 2>&5
38755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38756 (exit $ac_status); }; } &&
38757 { ac_try='test -s conftest.$ac_objext'
38758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38759 (eval $ac_try) 2>&5
38761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762 (exit $ac_status); }; }; then
38765 cat >conftest.$ac_ext <<_ACEOF
38768 cat confdefs.h >>conftest.$ac_ext
38769 cat >>conftest.$ac_ext <<_ACEOF
38770 /* end confdefs.h. */
38771 $ac_includes_default
38775 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38782 rm -f conftest.$ac_objext
38783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38784 (eval $ac_compile) 2>conftest.er1
38786 grep -v '^ *+' conftest.er1 >conftest.err
38788 cat conftest.err >&5
38789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790 (exit $ac_status); } &&
38791 { ac_try='test -z "$ac_c_werror_flag"
38792 || test ! -s conftest.err'
38793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38794 (eval $ac_try) 2>&5
38796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38797 (exit $ac_status); }; } &&
38798 { ac_try='test -s conftest.$ac_objext'
38799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800 (eval $ac_try) 2>&5
38802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803 (exit $ac_status); }; }; then
38804 ac_lo=$ac_mid; break
38806 echo "$as_me: failed program was:" >&5
38807 sed 's/^/| /' conftest.$ac_ext >&5
38809 ac_hi=`expr '(' $ac_mid ')' - 1`
38810 if test $ac_mid -le $ac_hi; then
38814 ac_mid=`expr 2 '*' $ac_mid`
38816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38819 echo "$as_me: failed program was:" >&5
38820 sed 's/^/| /' conftest.$ac_ext >&5
38824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38827 # Binary search between lo and hi bounds.
38828 while test "x$ac_lo" != "x$ac_hi"; do
38829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38830 cat >conftest.$ac_ext <<_ACEOF
38833 cat confdefs.h >>conftest.$ac_ext
38834 cat >>conftest.$ac_ext <<_ACEOF
38835 /* end confdefs.h. */
38836 $ac_includes_default
38840 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38847 rm -f conftest.$ac_objext
38848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38849 (eval $ac_compile) 2>conftest.er1
38851 grep -v '^ *+' conftest.er1 >conftest.err
38853 cat conftest.err >&5
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); } &&
38856 { ac_try='test -z "$ac_c_werror_flag"
38857 || test ! -s conftest.err'
38858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38859 (eval $ac_try) 2>&5
38861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862 (exit $ac_status); }; } &&
38863 { ac_try='test -s conftest.$ac_objext'
38864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38865 (eval $ac_try) 2>&5
38867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38868 (exit $ac_status); }; }; then
38871 echo "$as_me: failed program was:" >&5
38872 sed 's/^/| /' conftest.$ac_ext >&5
38874 ac_lo=`expr '(' $ac_mid ')' + 1`
38876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38879 ?*) ac_cv_sizeof_short=$ac_lo;;
38880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38881 See \`config.log' for more details." >&5
38882 echo "$as_me: error: cannot compute sizeof (short), 77
38883 See \`config.log' for more details." >&2;}
38884 { (exit 1); exit 1; }; } ;;
38887 if test "$cross_compiling" = yes; then
38888 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38889 See \`config.log' for more details." >&5
38890 echo "$as_me: error: cannot run test program while cross compiling
38891 See \`config.log' for more details." >&2;}
38892 { (exit 1); exit 1; }; }
38894 cat >conftest.$ac_ext <<_ACEOF
38897 cat confdefs.h >>conftest.$ac_ext
38898 cat >>conftest.$ac_ext <<_ACEOF
38899 /* end confdefs.h. */
38900 $ac_includes_default
38901 long longval () { return (long) (sizeof (short)); }
38902 unsigned long ulongval () { return (long) (sizeof (short)); }
38904 #include <stdlib.h>
38909 FILE *f = fopen ("conftest.val", "w");
38912 if (((long) (sizeof (short))) < 0)
38914 long i = longval ();
38915 if (i != ((long) (sizeof (short))))
38917 fprintf (f, "%ld\n", i);
38921 unsigned long i = ulongval ();
38922 if (i != ((long) (sizeof (short))))
38924 fprintf (f, "%lu\n", i);
38926 exit (ferror (f) || fclose (f) != 0);
38932 rm -f conftest$ac_exeext
38933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38934 (eval $ac_link) 2>&5
38936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38939 (eval $ac_try) 2>&5
38941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38942 (exit $ac_status); }; }; then
38943 ac_cv_sizeof_short=`cat conftest.val`
38945 echo "$as_me: program exited with status $ac_status" >&5
38946 echo "$as_me: failed program was:" >&5
38947 sed 's/^/| /' conftest.$ac_ext >&5
38949 ( exit $ac_status )
38950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38951 See \`config.log' for more details." >&5
38952 echo "$as_me: error: cannot compute sizeof (short), 77
38953 See \`config.log' for more details." >&2;}
38954 { (exit 1); exit 1; }; }
38956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38961 ac_cv_sizeof_short=0
38964 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
38965 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
38966 cat >>confdefs.h <<_ACEOF
38967 #define SIZEOF_SHORT $ac_cv_sizeof_short
38971 echo "$as_me:$LINENO: checking for int" >&5
38972 echo $ECHO_N "checking for int... $ECHO_C" >&6
38973 if test "${ac_cv_type_int+set}" = set; then
38974 echo $ECHO_N "(cached) $ECHO_C" >&6
38976 cat >conftest.$ac_ext <<_ACEOF
38979 cat confdefs.h >>conftest.$ac_ext
38980 cat >>conftest.$ac_ext <<_ACEOF
38981 /* end confdefs.h. */
38982 $ac_includes_default
38994 rm -f conftest.$ac_objext
38995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38996 (eval $ac_compile) 2>conftest.er1
38998 grep -v '^ *+' conftest.er1 >conftest.err
39000 cat conftest.err >&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); } &&
39003 { ac_try='test -z "$ac_c_werror_flag"
39004 || test ! -s conftest.err'
39005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39006 (eval $ac_try) 2>&5
39008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39009 (exit $ac_status); }; } &&
39010 { ac_try='test -s conftest.$ac_objext'
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; }; then
39018 echo "$as_me: failed program was:" >&5
39019 sed 's/^/| /' conftest.$ac_ext >&5
39023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39025 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39026 echo "${ECHO_T}$ac_cv_type_int" >&6
39028 echo "$as_me:$LINENO: checking size of int" >&5
39029 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39030 if test "${ac_cv_sizeof_int+set}" = set; then
39031 echo $ECHO_N "(cached) $ECHO_C" >&6
39033 if test "$ac_cv_type_int" = yes; then
39034 # The cast to unsigned long works around a bug in the HP C Compiler
39035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39037 # This bug is HP SR number 8606223364.
39038 if test "$cross_compiling" = yes; then
39039 # Depending upon the size, compute the lo and hi bounds.
39040 cat >conftest.$ac_ext <<_ACEOF
39043 cat confdefs.h >>conftest.$ac_ext
39044 cat >>conftest.$ac_ext <<_ACEOF
39045 /* end confdefs.h. */
39046 $ac_includes_default
39050 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39057 rm -f conftest.$ac_objext
39058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39059 (eval $ac_compile) 2>conftest.er1
39061 grep -v '^ *+' conftest.er1 >conftest.err
39063 cat conftest.err >&5
39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); } &&
39066 { ac_try='test -z "$ac_c_werror_flag"
39067 || test ! -s conftest.err'
39068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39069 (eval $ac_try) 2>&5
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); }; } &&
39073 { ac_try='test -s conftest.$ac_objext'
39074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075 (eval $ac_try) 2>&5
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); }; }; then
39081 cat >conftest.$ac_ext <<_ACEOF
39084 cat confdefs.h >>conftest.$ac_ext
39085 cat >>conftest.$ac_ext <<_ACEOF
39086 /* end confdefs.h. */
39087 $ac_includes_default
39091 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39098 rm -f conftest.$ac_objext
39099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39100 (eval $ac_compile) 2>conftest.er1
39102 grep -v '^ *+' conftest.er1 >conftest.err
39104 cat conftest.err >&5
39105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39106 (exit $ac_status); } &&
39107 { ac_try='test -z "$ac_c_werror_flag"
39108 || test ! -s conftest.err'
39109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39110 (eval $ac_try) 2>&5
39112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113 (exit $ac_status); }; } &&
39114 { ac_try='test -s conftest.$ac_objext'
39115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39116 (eval $ac_try) 2>&5
39118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119 (exit $ac_status); }; }; then
39120 ac_hi=$ac_mid; break
39122 echo "$as_me: failed program was:" >&5
39123 sed 's/^/| /' conftest.$ac_ext >&5
39125 ac_lo=`expr $ac_mid + 1`
39126 if test $ac_lo -le $ac_mid; then
39130 ac_mid=`expr 2 '*' $ac_mid + 1`
39132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39135 echo "$as_me: failed program was:" >&5
39136 sed 's/^/| /' conftest.$ac_ext >&5
39138 cat >conftest.$ac_ext <<_ACEOF
39141 cat confdefs.h >>conftest.$ac_ext
39142 cat >>conftest.$ac_ext <<_ACEOF
39143 /* end confdefs.h. */
39144 $ac_includes_default
39148 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39155 rm -f conftest.$ac_objext
39156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39157 (eval $ac_compile) 2>conftest.er1
39159 grep -v '^ *+' conftest.er1 >conftest.err
39161 cat conftest.err >&5
39162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163 (exit $ac_status); } &&
39164 { ac_try='test -z "$ac_c_werror_flag"
39165 || test ! -s conftest.err'
39166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39167 (eval $ac_try) 2>&5
39169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39170 (exit $ac_status); }; } &&
39171 { ac_try='test -s conftest.$ac_objext'
39172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39173 (eval $ac_try) 2>&5
39175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176 (exit $ac_status); }; }; then
39179 cat >conftest.$ac_ext <<_ACEOF
39182 cat confdefs.h >>conftest.$ac_ext
39183 cat >>conftest.$ac_ext <<_ACEOF
39184 /* end confdefs.h. */
39185 $ac_includes_default
39189 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39196 rm -f conftest.$ac_objext
39197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39198 (eval $ac_compile) 2>conftest.er1
39200 grep -v '^ *+' conftest.er1 >conftest.err
39202 cat conftest.err >&5
39203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39204 (exit $ac_status); } &&
39205 { ac_try='test -z "$ac_c_werror_flag"
39206 || test ! -s conftest.err'
39207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39208 (eval $ac_try) 2>&5
39210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211 (exit $ac_status); }; } &&
39212 { ac_try='test -s conftest.$ac_objext'
39213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39214 (eval $ac_try) 2>&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); }; }; then
39218 ac_lo=$ac_mid; break
39220 echo "$as_me: failed program was:" >&5
39221 sed 's/^/| /' conftest.$ac_ext >&5
39223 ac_hi=`expr '(' $ac_mid ')' - 1`
39224 if test $ac_mid -le $ac_hi; then
39228 ac_mid=`expr 2 '*' $ac_mid`
39230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39233 echo "$as_me: failed program was:" >&5
39234 sed 's/^/| /' conftest.$ac_ext >&5
39238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39241 # Binary search between lo and hi bounds.
39242 while test "x$ac_lo" != "x$ac_hi"; do
39243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39244 cat >conftest.$ac_ext <<_ACEOF
39247 cat confdefs.h >>conftest.$ac_ext
39248 cat >>conftest.$ac_ext <<_ACEOF
39249 /* end confdefs.h. */
39250 $ac_includes_default
39254 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39261 rm -f conftest.$ac_objext
39262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39263 (eval $ac_compile) 2>conftest.er1
39265 grep -v '^ *+' conftest.er1 >conftest.err
39267 cat conftest.err >&5
39268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39269 (exit $ac_status); } &&
39270 { ac_try='test -z "$ac_c_werror_flag"
39271 || test ! -s conftest.err'
39272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39273 (eval $ac_try) 2>&5
39275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276 (exit $ac_status); }; } &&
39277 { ac_try='test -s conftest.$ac_objext'
39278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39279 (eval $ac_try) 2>&5
39281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282 (exit $ac_status); }; }; then
39285 echo "$as_me: failed program was:" >&5
39286 sed 's/^/| /' conftest.$ac_ext >&5
39288 ac_lo=`expr '(' $ac_mid ')' + 1`
39290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39293 ?*) ac_cv_sizeof_int=$ac_lo;;
39294 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39295 See \`config.log' for more details." >&5
39296 echo "$as_me: error: cannot compute sizeof (int), 77
39297 See \`config.log' for more details." >&2;}
39298 { (exit 1); exit 1; }; } ;;
39301 if test "$cross_compiling" = yes; then
39302 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39303 See \`config.log' for more details." >&5
39304 echo "$as_me: error: cannot run test program while cross compiling
39305 See \`config.log' for more details." >&2;}
39306 { (exit 1); exit 1; }; }
39308 cat >conftest.$ac_ext <<_ACEOF
39311 cat confdefs.h >>conftest.$ac_ext
39312 cat >>conftest.$ac_ext <<_ACEOF
39313 /* end confdefs.h. */
39314 $ac_includes_default
39315 long longval () { return (long) (sizeof (int)); }
39316 unsigned long ulongval () { return (long) (sizeof (int)); }
39318 #include <stdlib.h>
39323 FILE *f = fopen ("conftest.val", "w");
39326 if (((long) (sizeof (int))) < 0)
39328 long i = longval ();
39329 if (i != ((long) (sizeof (int))))
39331 fprintf (f, "%ld\n", i);
39335 unsigned long i = ulongval ();
39336 if (i != ((long) (sizeof (int))))
39338 fprintf (f, "%lu\n", i);
39340 exit (ferror (f) || fclose (f) != 0);
39346 rm -f conftest$ac_exeext
39347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39348 (eval $ac_link) 2>&5
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353 (eval $ac_try) 2>&5
39355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356 (exit $ac_status); }; }; then
39357 ac_cv_sizeof_int=`cat conftest.val`
39359 echo "$as_me: program exited with status $ac_status" >&5
39360 echo "$as_me: failed program was:" >&5
39361 sed 's/^/| /' conftest.$ac_ext >&5
39363 ( exit $ac_status )
39364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39365 See \`config.log' for more details." >&5
39366 echo "$as_me: error: cannot compute sizeof (int), 77
39367 See \`config.log' for more details." >&2;}
39368 { (exit 1); exit 1; }; }
39370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39379 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39380 cat >>confdefs.h <<_ACEOF
39381 #define SIZEOF_INT $ac_cv_sizeof_int
39385 echo "$as_me:$LINENO: checking for long" >&5
39386 echo $ECHO_N "checking for long... $ECHO_C" >&6
39387 if test "${ac_cv_type_long+set}" = set; then
39388 echo $ECHO_N "(cached) $ECHO_C" >&6
39390 cat >conftest.$ac_ext <<_ACEOF
39393 cat confdefs.h >>conftest.$ac_ext
39394 cat >>conftest.$ac_ext <<_ACEOF
39395 /* end confdefs.h. */
39396 $ac_includes_default
39408 rm -f conftest.$ac_objext
39409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39410 (eval $ac_compile) 2>conftest.er1
39412 grep -v '^ *+' conftest.er1 >conftest.err
39414 cat conftest.err >&5
39415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39416 (exit $ac_status); } &&
39417 { ac_try='test -z "$ac_c_werror_flag"
39418 || test ! -s conftest.err'
39419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39420 (eval $ac_try) 2>&5
39422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39423 (exit $ac_status); }; } &&
39424 { ac_try='test -s conftest.$ac_objext'
39425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39426 (eval $ac_try) 2>&5
39428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429 (exit $ac_status); }; }; then
39430 ac_cv_type_long=yes
39432 echo "$as_me: failed program was:" >&5
39433 sed 's/^/| /' conftest.$ac_ext >&5
39437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39439 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39440 echo "${ECHO_T}$ac_cv_type_long" >&6
39442 echo "$as_me:$LINENO: checking size of long" >&5
39443 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39444 if test "${ac_cv_sizeof_long+set}" = set; then
39445 echo $ECHO_N "(cached) $ECHO_C" >&6
39447 if test "$ac_cv_type_long" = yes; then
39448 # The cast to unsigned long works around a bug in the HP C Compiler
39449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39451 # This bug is HP SR number 8606223364.
39452 if test "$cross_compiling" = yes; then
39453 # Depending upon the size, compute the lo and hi bounds.
39454 cat >conftest.$ac_ext <<_ACEOF
39457 cat confdefs.h >>conftest.$ac_ext
39458 cat >>conftest.$ac_ext <<_ACEOF
39459 /* end confdefs.h. */
39460 $ac_includes_default
39464 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39471 rm -f conftest.$ac_objext
39472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39473 (eval $ac_compile) 2>conftest.er1
39475 grep -v '^ *+' conftest.er1 >conftest.err
39477 cat conftest.err >&5
39478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39479 (exit $ac_status); } &&
39480 { ac_try='test -z "$ac_c_werror_flag"
39481 || test ! -s conftest.err'
39482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39483 (eval $ac_try) 2>&5
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); }; } &&
39487 { ac_try='test -s conftest.$ac_objext'
39488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489 (eval $ac_try) 2>&5
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); }; }; then
39495 cat >conftest.$ac_ext <<_ACEOF
39498 cat confdefs.h >>conftest.$ac_ext
39499 cat >>conftest.$ac_ext <<_ACEOF
39500 /* end confdefs.h. */
39501 $ac_includes_default
39505 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39512 rm -f conftest.$ac_objext
39513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39514 (eval $ac_compile) 2>conftest.er1
39516 grep -v '^ *+' conftest.er1 >conftest.err
39518 cat conftest.err >&5
39519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520 (exit $ac_status); } &&
39521 { ac_try='test -z "$ac_c_werror_flag"
39522 || test ! -s conftest.err'
39523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39524 (eval $ac_try) 2>&5
39526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527 (exit $ac_status); }; } &&
39528 { ac_try='test -s conftest.$ac_objext'
39529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39530 (eval $ac_try) 2>&5
39532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533 (exit $ac_status); }; }; then
39534 ac_hi=$ac_mid; break
39536 echo "$as_me: failed program was:" >&5
39537 sed 's/^/| /' conftest.$ac_ext >&5
39539 ac_lo=`expr $ac_mid + 1`
39540 if test $ac_lo -le $ac_mid; then
39544 ac_mid=`expr 2 '*' $ac_mid + 1`
39546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39549 echo "$as_me: failed program was:" >&5
39550 sed 's/^/| /' conftest.$ac_ext >&5
39552 cat >conftest.$ac_ext <<_ACEOF
39555 cat confdefs.h >>conftest.$ac_ext
39556 cat >>conftest.$ac_ext <<_ACEOF
39557 /* end confdefs.h. */
39558 $ac_includes_default
39562 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39569 rm -f conftest.$ac_objext
39570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39571 (eval $ac_compile) 2>conftest.er1
39573 grep -v '^ *+' conftest.er1 >conftest.err
39575 cat conftest.err >&5
39576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577 (exit $ac_status); } &&
39578 { ac_try='test -z "$ac_c_werror_flag"
39579 || test ! -s conftest.err'
39580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39581 (eval $ac_try) 2>&5
39583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584 (exit $ac_status); }; } &&
39585 { ac_try='test -s conftest.$ac_objext'
39586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39587 (eval $ac_try) 2>&5
39589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); }; }; then
39593 cat >conftest.$ac_ext <<_ACEOF
39596 cat confdefs.h >>conftest.$ac_ext
39597 cat >>conftest.$ac_ext <<_ACEOF
39598 /* end confdefs.h. */
39599 $ac_includes_default
39603 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39610 rm -f conftest.$ac_objext
39611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39612 (eval $ac_compile) 2>conftest.er1
39614 grep -v '^ *+' conftest.er1 >conftest.err
39616 cat conftest.err >&5
39617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618 (exit $ac_status); } &&
39619 { ac_try='test -z "$ac_c_werror_flag"
39620 || test ! -s conftest.err'
39621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39622 (eval $ac_try) 2>&5
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); }; } &&
39626 { ac_try='test -s conftest.$ac_objext'
39627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628 (eval $ac_try) 2>&5
39630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631 (exit $ac_status); }; }; then
39632 ac_lo=$ac_mid; break
39634 echo "$as_me: failed program was:" >&5
39635 sed 's/^/| /' conftest.$ac_ext >&5
39637 ac_hi=`expr '(' $ac_mid ')' - 1`
39638 if test $ac_mid -le $ac_hi; then
39642 ac_mid=`expr 2 '*' $ac_mid`
39644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39647 echo "$as_me: failed program was:" >&5
39648 sed 's/^/| /' conftest.$ac_ext >&5
39652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39655 # Binary search between lo and hi bounds.
39656 while test "x$ac_lo" != "x$ac_hi"; do
39657 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39658 cat >conftest.$ac_ext <<_ACEOF
39661 cat confdefs.h >>conftest.$ac_ext
39662 cat >>conftest.$ac_ext <<_ACEOF
39663 /* end confdefs.h. */
39664 $ac_includes_default
39668 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39675 rm -f conftest.$ac_objext
39676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39677 (eval $ac_compile) 2>conftest.er1
39679 grep -v '^ *+' conftest.er1 >conftest.err
39681 cat conftest.err >&5
39682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683 (exit $ac_status); } &&
39684 { ac_try='test -z "$ac_c_werror_flag"
39685 || test ! -s conftest.err'
39686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39687 (eval $ac_try) 2>&5
39689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39690 (exit $ac_status); }; } &&
39691 { ac_try='test -s conftest.$ac_objext'
39692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39693 (eval $ac_try) 2>&5
39695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696 (exit $ac_status); }; }; then
39699 echo "$as_me: failed program was:" >&5
39700 sed 's/^/| /' conftest.$ac_ext >&5
39702 ac_lo=`expr '(' $ac_mid ')' + 1`
39704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39707 ?*) ac_cv_sizeof_long=$ac_lo;;
39708 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39709 See \`config.log' for more details." >&5
39710 echo "$as_me: error: cannot compute sizeof (long), 77
39711 See \`config.log' for more details." >&2;}
39712 { (exit 1); exit 1; }; } ;;
39715 if test "$cross_compiling" = yes; then
39716 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39717 See \`config.log' for more details." >&5
39718 echo "$as_me: error: cannot run test program while cross compiling
39719 See \`config.log' for more details." >&2;}
39720 { (exit 1); exit 1; }; }
39722 cat >conftest.$ac_ext <<_ACEOF
39725 cat confdefs.h >>conftest.$ac_ext
39726 cat >>conftest.$ac_ext <<_ACEOF
39727 /* end confdefs.h. */
39728 $ac_includes_default
39729 long longval () { return (long) (sizeof (long)); }
39730 unsigned long ulongval () { return (long) (sizeof (long)); }
39732 #include <stdlib.h>
39737 FILE *f = fopen ("conftest.val", "w");
39740 if (((long) (sizeof (long))) < 0)
39742 long i = longval ();
39743 if (i != ((long) (sizeof (long))))
39745 fprintf (f, "%ld\n", i);
39749 unsigned long i = ulongval ();
39750 if (i != ((long) (sizeof (long))))
39752 fprintf (f, "%lu\n", i);
39754 exit (ferror (f) || fclose (f) != 0);
39760 rm -f conftest$ac_exeext
39761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39762 (eval $ac_link) 2>&5
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39767 (eval $ac_try) 2>&5
39769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770 (exit $ac_status); }; }; then
39771 ac_cv_sizeof_long=`cat conftest.val`
39773 echo "$as_me: program exited with status $ac_status" >&5
39774 echo "$as_me: failed program was:" >&5
39775 sed 's/^/| /' conftest.$ac_ext >&5
39777 ( exit $ac_status )
39778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39779 See \`config.log' for more details." >&5
39780 echo "$as_me: error: cannot compute sizeof (long), 77
39781 See \`config.log' for more details." >&2;}
39782 { (exit 1); exit 1; }; }
39784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39789 ac_cv_sizeof_long=0
39792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39793 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39794 cat >>confdefs.h <<_ACEOF
39795 #define SIZEOF_LONG $ac_cv_sizeof_long
39799 echo "$as_me:$LINENO: checking for wchar_t" >&5
39800 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39801 if test "${ac_cv_type_wchar_t+set}" = set; then
39802 echo $ECHO_N "(cached) $ECHO_C" >&6
39804 cat >conftest.$ac_ext <<_ACEOF
39807 cat confdefs.h >>conftest.$ac_ext
39808 cat >>conftest.$ac_ext <<_ACEOF
39809 /* end confdefs.h. */
39810 $ac_includes_default
39816 if (sizeof (wchar_t))
39822 rm -f conftest.$ac_objext
39823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39824 (eval $ac_compile) 2>conftest.er1
39826 grep -v '^ *+' conftest.er1 >conftest.err
39828 cat conftest.err >&5
39829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830 (exit $ac_status); } &&
39831 { ac_try='test -z "$ac_c_werror_flag"
39832 || test ! -s conftest.err'
39833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39834 (eval $ac_try) 2>&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); }; } &&
39838 { ac_try='test -s conftest.$ac_objext'
39839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39840 (eval $ac_try) 2>&5
39842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843 (exit $ac_status); }; }; then
39844 ac_cv_type_wchar_t=yes
39846 echo "$as_me: failed program was:" >&5
39847 sed 's/^/| /' conftest.$ac_ext >&5
39849 ac_cv_type_wchar_t=no
39851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39853 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39854 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39856 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39857 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39858 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39859 echo $ECHO_N "(cached) $ECHO_C" >&6
39861 if test "$ac_cv_type_wchar_t" = yes; then
39862 # The cast to unsigned long works around a bug in the HP C Compiler
39863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39865 # This bug is HP SR number 8606223364.
39866 if test "$cross_compiling" = yes; then
39867 # Depending upon the size, compute the lo and hi bounds.
39868 cat >conftest.$ac_ext <<_ACEOF
39871 cat confdefs.h >>conftest.$ac_ext
39872 cat >>conftest.$ac_ext <<_ACEOF
39873 /* end confdefs.h. */
39874 $ac_includes_default
39878 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39885 rm -f conftest.$ac_objext
39886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39887 (eval $ac_compile) 2>conftest.er1
39889 grep -v '^ *+' conftest.er1 >conftest.err
39891 cat conftest.err >&5
39892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893 (exit $ac_status); } &&
39894 { ac_try='test -z "$ac_c_werror_flag"
39895 || test ! -s conftest.err'
39896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39897 (eval $ac_try) 2>&5
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); }; } &&
39901 { ac_try='test -s conftest.$ac_objext'
39902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39903 (eval $ac_try) 2>&5
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); }; }; then
39909 cat >conftest.$ac_ext <<_ACEOF
39912 cat confdefs.h >>conftest.$ac_ext
39913 cat >>conftest.$ac_ext <<_ACEOF
39914 /* end confdefs.h. */
39915 $ac_includes_default
39919 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39926 rm -f conftest.$ac_objext
39927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39928 (eval $ac_compile) 2>conftest.er1
39930 grep -v '^ *+' conftest.er1 >conftest.err
39932 cat conftest.err >&5
39933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39934 (exit $ac_status); } &&
39935 { ac_try='test -z "$ac_c_werror_flag"
39936 || test ! -s conftest.err'
39937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39938 (eval $ac_try) 2>&5
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); }; } &&
39942 { ac_try='test -s conftest.$ac_objext'
39943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944 (eval $ac_try) 2>&5
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); }; }; then
39948 ac_hi=$ac_mid; break
39950 echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39953 ac_lo=`expr $ac_mid + 1`
39954 if test $ac_lo -le $ac_mid; then
39958 ac_mid=`expr 2 '*' $ac_mid + 1`
39960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39963 echo "$as_me: failed program was:" >&5
39964 sed 's/^/| /' conftest.$ac_ext >&5
39966 cat >conftest.$ac_ext <<_ACEOF
39969 cat confdefs.h >>conftest.$ac_ext
39970 cat >>conftest.$ac_ext <<_ACEOF
39971 /* end confdefs.h. */
39972 $ac_includes_default
39976 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
39983 rm -f conftest.$ac_objext
39984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39985 (eval $ac_compile) 2>conftest.er1
39987 grep -v '^ *+' conftest.er1 >conftest.err
39989 cat conftest.err >&5
39990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991 (exit $ac_status); } &&
39992 { ac_try='test -z "$ac_c_werror_flag"
39993 || test ! -s conftest.err'
39994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39995 (eval $ac_try) 2>&5
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); }; } &&
39999 { ac_try='test -s conftest.$ac_objext'
40000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40001 (eval $ac_try) 2>&5
40003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004 (exit $ac_status); }; }; then
40007 cat >conftest.$ac_ext <<_ACEOF
40010 cat confdefs.h >>conftest.$ac_ext
40011 cat >>conftest.$ac_ext <<_ACEOF
40012 /* end confdefs.h. */
40013 $ac_includes_default
40017 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40024 rm -f conftest.$ac_objext
40025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40026 (eval $ac_compile) 2>conftest.er1
40028 grep -v '^ *+' conftest.er1 >conftest.err
40030 cat conftest.err >&5
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); } &&
40033 { ac_try='test -z "$ac_c_werror_flag"
40034 || test ! -s conftest.err'
40035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036 (eval $ac_try) 2>&5
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); }; } &&
40040 { ac_try='test -s conftest.$ac_objext'
40041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042 (eval $ac_try) 2>&5
40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045 (exit $ac_status); }; }; then
40046 ac_lo=$ac_mid; break
40048 echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40051 ac_hi=`expr '(' $ac_mid ')' - 1`
40052 if test $ac_mid -le $ac_hi; then
40056 ac_mid=`expr 2 '*' $ac_mid`
40058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40061 echo "$as_me: failed program was:" >&5
40062 sed 's/^/| /' conftest.$ac_ext >&5
40066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40069 # Binary search between lo and hi bounds.
40070 while test "x$ac_lo" != "x$ac_hi"; do
40071 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40072 cat >conftest.$ac_ext <<_ACEOF
40075 cat confdefs.h >>conftest.$ac_ext
40076 cat >>conftest.$ac_ext <<_ACEOF
40077 /* end confdefs.h. */
40078 $ac_includes_default
40082 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40089 rm -f conftest.$ac_objext
40090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40091 (eval $ac_compile) 2>conftest.er1
40093 grep -v '^ *+' conftest.er1 >conftest.err
40095 cat conftest.err >&5
40096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097 (exit $ac_status); } &&
40098 { ac_try='test -z "$ac_c_werror_flag"
40099 || test ! -s conftest.err'
40100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101 (eval $ac_try) 2>&5
40103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104 (exit $ac_status); }; } &&
40105 { ac_try='test -s conftest.$ac_objext'
40106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40107 (eval $ac_try) 2>&5
40109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110 (exit $ac_status); }; }; then
40113 echo "$as_me: failed program was:" >&5
40114 sed 's/^/| /' conftest.$ac_ext >&5
40116 ac_lo=`expr '(' $ac_mid ')' + 1`
40118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40121 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40122 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40123 See \`config.log' for more details." >&5
40124 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40125 See \`config.log' for more details." >&2;}
40126 { (exit 1); exit 1; }; } ;;
40129 if test "$cross_compiling" = yes; then
40130 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40131 See \`config.log' for more details." >&5
40132 echo "$as_me: error: cannot run test program while cross compiling
40133 See \`config.log' for more details." >&2;}
40134 { (exit 1); exit 1; }; }
40136 cat >conftest.$ac_ext <<_ACEOF
40139 cat confdefs.h >>conftest.$ac_ext
40140 cat >>conftest.$ac_ext <<_ACEOF
40141 /* end confdefs.h. */
40142 $ac_includes_default
40143 long longval () { return (long) (sizeof (wchar_t)); }
40144 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40146 #include <stdlib.h>
40151 FILE *f = fopen ("conftest.val", "w");
40154 if (((long) (sizeof (wchar_t))) < 0)
40156 long i = longval ();
40157 if (i != ((long) (sizeof (wchar_t))))
40159 fprintf (f, "%ld\n", i);
40163 unsigned long i = ulongval ();
40164 if (i != ((long) (sizeof (wchar_t))))
40166 fprintf (f, "%lu\n", i);
40168 exit (ferror (f) || fclose (f) != 0);
40174 rm -f conftest$ac_exeext
40175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40176 (eval $ac_link) 2>&5
40178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
40185 ac_cv_sizeof_wchar_t=`cat conftest.val`
40187 echo "$as_me: program exited with status $ac_status" >&5
40188 echo "$as_me: failed program was:" >&5
40189 sed 's/^/| /' conftest.$ac_ext >&5
40191 ( exit $ac_status )
40192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40193 See \`config.log' for more details." >&5
40194 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40195 See \`config.log' for more details." >&2;}
40196 { (exit 1); exit 1; }; }
40198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40203 ac_cv_sizeof_wchar_t=0
40206 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40207 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40208 cat >>confdefs.h <<_ACEOF
40209 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40214 if test "$ac_cv_sizeof_int" -lt 4 ; then
40215 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40216 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40219 cat >>confdefs.h <<\_ACEOF
40220 #define LBER_INT_T long
40225 cat >>confdefs.h <<\_ACEOF
40226 #define LBER_INT_T int
40232 cat >>confdefs.h <<\_ACEOF
40233 #define LBER_LEN_T long
40237 cat >>confdefs.h <<\_ACEOF
40238 #define LBER_SOCKET_T int
40242 cat >>confdefs.h <<\_ACEOF
40243 #define LBER_TAG_T long
40247 echo "$as_me:$LINENO: checking for working memcmp" >&5
40248 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40249 if test "${ac_cv_func_memcmp_working+set}" = set; then
40250 echo $ECHO_N "(cached) $ECHO_C" >&6
40252 if test "$cross_compiling" = yes; then
40253 ac_cv_func_memcmp_working=no
40255 cat >conftest.$ac_ext <<_ACEOF
40258 cat confdefs.h >>conftest.$ac_ext
40259 cat >>conftest.$ac_ext <<_ACEOF
40260 /* end confdefs.h. */
40261 $ac_includes_default
40266 /* Some versions of memcmp are not 8-bit clean. */
40267 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40268 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40271 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40272 or more and with at least one buffer not starting on a 4-byte boundary.
40273 William Lewis provided this test program. */
40278 for (i = 0; i < 4; i++)
40282 strcpy (a, "--------01111111");
40283 strcpy (b, "--------10000000");
40284 if (memcmp (a, b, 16) >= 0)
40294 rm -f conftest$ac_exeext
40295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40296 (eval $ac_link) 2>&5
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301 (eval $ac_try) 2>&5
40303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; }; then
40305 ac_cv_func_memcmp_working=yes
40307 echo "$as_me: program exited with status $ac_status" >&5
40308 echo "$as_me: failed program was:" >&5
40309 sed 's/^/| /' conftest.$ac_ext >&5
40311 ( exit $ac_status )
40312 ac_cv_func_memcmp_working=no
40314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40317 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40318 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40319 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40320 "memcmp.$ac_objext" | \
40321 *" memcmp.$ac_objext" | \
40322 "memcmp.$ac_objext "* | \
40323 *" memcmp.$ac_objext "* ) ;;
40324 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40329 if test $ac_cv_func_memcmp_working = no ; then
40331 cat >>confdefs.h <<\_ACEOF
40332 #define NEED_MEMCMP_REPLACEMENT 1
40338 for ac_func in strftime
40340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40341 echo "$as_me:$LINENO: checking for $ac_func" >&5
40342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40343 if eval "test \"\${$as_ac_var+set}\" = set"; then
40344 echo $ECHO_N "(cached) $ECHO_C" >&6
40346 cat >conftest.$ac_ext <<_ACEOF
40349 cat confdefs.h >>conftest.$ac_ext
40350 cat >>conftest.$ac_ext <<_ACEOF
40351 /* end confdefs.h. */
40352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40354 #define $ac_func innocuous_$ac_func
40356 /* System header to define __stub macros and hopefully few prototypes,
40357 which can conflict with char $ac_func (); below.
40358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40359 <limits.h> exists even on freestanding compilers. */
40362 # include <limits.h>
40364 # include <assert.h>
40369 /* Override any gcc2 internal prototype to avoid an error. */
40374 /* We use char because int might match the return type of a gcc2
40375 builtin and then its argument prototype would still apply. */
40377 /* The GNU C library defines this for functions which it implements
40378 to always fail with ENOSYS. Some functions are actually named
40379 something starting with __ and the normal name is an alias. */
40380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40383 char (*f) () = $ac_func;
40392 return f != $ac_func;
40397 rm -f conftest.$ac_objext conftest$ac_exeext
40398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40399 (eval $ac_link) 2>conftest.er1
40401 grep -v '^ *+' conftest.er1 >conftest.err
40403 cat conftest.err >&5
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } &&
40406 { ac_try='test -z "$ac_c_werror_flag"
40407 || test ! -s conftest.err'
40408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409 (eval $ac_try) 2>&5
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); }; } &&
40413 { ac_try='test -s conftest$ac_exeext'
40414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415 (eval $ac_try) 2>&5
40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); }; }; then
40419 eval "$as_ac_var=yes"
40421 echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40424 eval "$as_ac_var=no"
40426 rm -f conftest.err conftest.$ac_objext \
40427 conftest$ac_exeext conftest.$ac_ext
40429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40431 if test `eval echo '${'$as_ac_var'}'` = yes; then
40432 cat >>confdefs.h <<_ACEOF
40433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40437 # strftime is in -lintl on SCO UNIX.
40438 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40439 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40440 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40441 echo $ECHO_N "(cached) $ECHO_C" >&6
40443 ac_check_lib_save_LIBS=$LIBS
40444 LIBS="-lintl $LIBS"
40445 cat >conftest.$ac_ext <<_ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h. */
40452 /* Override any gcc2 internal prototype to avoid an error. */
40456 /* We use char because int might match the return type of a gcc2
40457 builtin and then its argument prototype would still apply. */
40467 rm -f conftest.$ac_objext conftest$ac_exeext
40468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40469 (eval $ac_link) 2>conftest.er1
40471 grep -v '^ *+' conftest.er1 >conftest.err
40473 cat conftest.err >&5
40474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475 (exit $ac_status); } &&
40476 { ac_try='test -z "$ac_c_werror_flag"
40477 || test ! -s conftest.err'
40478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40479 (eval $ac_try) 2>&5
40481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40482 (exit $ac_status); }; } &&
40483 { ac_try='test -s conftest$ac_exeext'
40484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40485 (eval $ac_try) 2>&5
40487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40488 (exit $ac_status); }; }; then
40489 ac_cv_lib_intl_strftime=yes
40491 echo "$as_me: failed program was:" >&5
40492 sed 's/^/| /' conftest.$ac_ext >&5
40494 ac_cv_lib_intl_strftime=no
40496 rm -f conftest.err conftest.$ac_objext \
40497 conftest$ac_exeext conftest.$ac_ext
40498 LIBS=$ac_check_lib_save_LIBS
40500 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40501 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40502 if test $ac_cv_lib_intl_strftime = yes; then
40503 cat >>confdefs.h <<\_ACEOF
40504 #define HAVE_STRFTIME 1
40507 LIBS="-lintl $LIBS"
40514 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40515 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40516 if test "${ol_cv_func_inet_aton+set}" = set; then
40517 echo $ECHO_N "(cached) $ECHO_C" >&6
40519 cat >conftest.$ac_ext <<_ACEOF
40522 cat confdefs.h >>conftest.$ac_ext
40523 cat >>conftest.$ac_ext <<_ACEOF
40524 /* end confdefs.h. */
40526 #ifdef HAVE_SYS_TYPES_H
40527 # include <sys/types.h>
40529 #ifdef HAVE_SYS_SOCKET_H
40530 # include <sys/socket.h>
40531 # ifdef HAVE_SYS_SELECT_H
40532 # include <sys/select.h>
40534 # include <netinet/in.h>
40535 # ifdef HAVE_ARPA_INET_H
40536 # include <arpa/inet.h>
40544 int rc = inet_aton( "255.255.255.255", &in );
40549 rm -f conftest.$ac_objext conftest$ac_exeext
40550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40551 (eval $ac_link) 2>conftest.er1
40553 grep -v '^ *+' conftest.er1 >conftest.err
40555 cat conftest.err >&5
40556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40557 (exit $ac_status); } &&
40558 { ac_try='test -z "$ac_c_werror_flag"
40559 || test ! -s conftest.err'
40560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40561 (eval $ac_try) 2>&5
40563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564 (exit $ac_status); }; } &&
40565 { ac_try='test -s conftest$ac_exeext'
40566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40567 (eval $ac_try) 2>&5
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); }; }; then
40571 ol_cv_func_inet_aton=yes
40573 echo "$as_me: failed program was:" >&5
40574 sed 's/^/| /' conftest.$ac_ext >&5
40576 ol_cv_func_inet_aton=no
40578 rm -f conftest.err conftest.$ac_objext \
40579 conftest$ac_exeext conftest.$ac_ext
40581 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40582 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40583 if test $ol_cv_func_inet_aton != no; then
40585 cat >>confdefs.h <<\_ACEOF
40586 #define HAVE_INET_ATON 1
40592 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40593 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40594 if test "${ac_cv_func__spawnlp+set}" = set; then
40595 echo $ECHO_N "(cached) $ECHO_C" >&6
40597 cat >conftest.$ac_ext <<_ACEOF
40600 cat confdefs.h >>conftest.$ac_ext
40601 cat >>conftest.$ac_ext <<_ACEOF
40602 /* end confdefs.h. */
40603 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40605 #define _spawnlp innocuous__spawnlp
40607 /* System header to define __stub macros and hopefully few prototypes,
40608 which can conflict with char _spawnlp (); below.
40609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40610 <limits.h> exists even on freestanding compilers. */
40613 # include <limits.h>
40615 # include <assert.h>
40620 /* Override any gcc2 internal prototype to avoid an error. */
40625 /* We use char because int might match the return type of a gcc2
40626 builtin and then its argument prototype would still apply. */
40628 /* The GNU C library defines this for functions which it implements
40629 to always fail with ENOSYS. Some functions are actually named
40630 something starting with __ and the normal name is an alias. */
40631 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40634 char (*f) () = _spawnlp;
40643 return f != _spawnlp;
40648 rm -f conftest.$ac_objext conftest$ac_exeext
40649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40650 (eval $ac_link) 2>conftest.er1
40652 grep -v '^ *+' conftest.er1 >conftest.err
40654 cat conftest.err >&5
40655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40656 (exit $ac_status); } &&
40657 { ac_try='test -z "$ac_c_werror_flag"
40658 || test ! -s conftest.err'
40659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40660 (eval $ac_try) 2>&5
40662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663 (exit $ac_status); }; } &&
40664 { ac_try='test -s conftest$ac_exeext'
40665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40666 (eval $ac_try) 2>&5
40668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669 (exit $ac_status); }; }; then
40670 ac_cv_func__spawnlp=yes
40672 echo "$as_me: failed program was:" >&5
40673 sed 's/^/| /' conftest.$ac_ext >&5
40675 ac_cv_func__spawnlp=no
40677 rm -f conftest.err conftest.$ac_objext \
40678 conftest$ac_exeext conftest.$ac_ext
40680 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40681 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40682 if test $ac_cv_func__spawnlp = yes; then
40684 cat >>confdefs.h <<\_ACEOF
40685 #define HAVE_SPAWNLP 1
40691 echo "$as_me:$LINENO: checking for _snprintf" >&5
40692 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40693 if test "${ac_cv_func__snprintf+set}" = set; then
40694 echo $ECHO_N "(cached) $ECHO_C" >&6
40696 cat >conftest.$ac_ext <<_ACEOF
40699 cat confdefs.h >>conftest.$ac_ext
40700 cat >>conftest.$ac_ext <<_ACEOF
40701 /* end confdefs.h. */
40702 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40704 #define _snprintf innocuous__snprintf
40706 /* System header to define __stub macros and hopefully few prototypes,
40707 which can conflict with char _snprintf (); below.
40708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40709 <limits.h> exists even on freestanding compilers. */
40712 # include <limits.h>
40714 # include <assert.h>
40719 /* Override any gcc2 internal prototype to avoid an error. */
40724 /* We use char because int might match the return type of a gcc2
40725 builtin and then its argument prototype would still apply. */
40727 /* The GNU C library defines this for functions which it implements
40728 to always fail with ENOSYS. Some functions are actually named
40729 something starting with __ and the normal name is an alias. */
40730 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40733 char (*f) () = _snprintf;
40742 return f != _snprintf;
40747 rm -f conftest.$ac_objext conftest$ac_exeext
40748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40749 (eval $ac_link) 2>conftest.er1
40751 grep -v '^ *+' conftest.er1 >conftest.err
40753 cat conftest.err >&5
40754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755 (exit $ac_status); } &&
40756 { ac_try='test -z "$ac_c_werror_flag"
40757 || test ! -s conftest.err'
40758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40759 (eval $ac_try) 2>&5
40761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40762 (exit $ac_status); }; } &&
40763 { ac_try='test -s conftest$ac_exeext'
40764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40765 (eval $ac_try) 2>&5
40767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768 (exit $ac_status); }; }; then
40769 ac_cv_func__snprintf=yes
40771 echo "$as_me: failed program was:" >&5
40772 sed 's/^/| /' conftest.$ac_ext >&5
40774 ac_cv_func__snprintf=no
40776 rm -f conftest.err conftest.$ac_objext \
40777 conftest$ac_exeext conftest.$ac_ext
40779 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40780 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40781 if test $ac_cv_func__snprintf = yes; then
40782 ac_cv_func_snprintf=yes
40784 cat >>confdefs.h <<\_ACEOF
40785 #define snprintf _snprintf
40792 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40793 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40794 if test "${ac_cv_func__vsnprintf+set}" = set; then
40795 echo $ECHO_N "(cached) $ECHO_C" >&6
40797 cat >conftest.$ac_ext <<_ACEOF
40800 cat confdefs.h >>conftest.$ac_ext
40801 cat >>conftest.$ac_ext <<_ACEOF
40802 /* end confdefs.h. */
40803 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40805 #define _vsnprintf innocuous__vsnprintf
40807 /* System header to define __stub macros and hopefully few prototypes,
40808 which can conflict with char _vsnprintf (); below.
40809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40810 <limits.h> exists even on freestanding compilers. */
40813 # include <limits.h>
40815 # include <assert.h>
40820 /* Override any gcc2 internal prototype to avoid an error. */
40825 /* We use char because int might match the return type of a gcc2
40826 builtin and then its argument prototype would still apply. */
40827 char _vsnprintf ();
40828 /* The GNU C library defines this for functions which it implements
40829 to always fail with ENOSYS. Some functions are actually named
40830 something starting with __ and the normal name is an alias. */
40831 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40834 char (*f) () = _vsnprintf;
40843 return f != _vsnprintf;
40848 rm -f conftest.$ac_objext conftest$ac_exeext
40849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40850 (eval $ac_link) 2>conftest.er1
40852 grep -v '^ *+' conftest.er1 >conftest.err
40854 cat conftest.err >&5
40855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856 (exit $ac_status); } &&
40857 { ac_try='test -z "$ac_c_werror_flag"
40858 || test ! -s conftest.err'
40859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40860 (eval $ac_try) 2>&5
40862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863 (exit $ac_status); }; } &&
40864 { ac_try='test -s conftest$ac_exeext'
40865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866 (eval $ac_try) 2>&5
40868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869 (exit $ac_status); }; }; then
40870 ac_cv_func__vsnprintf=yes
40872 echo "$as_me: failed program was:" >&5
40873 sed 's/^/| /' conftest.$ac_ext >&5
40875 ac_cv_func__vsnprintf=no
40877 rm -f conftest.err conftest.$ac_objext \
40878 conftest$ac_exeext conftest.$ac_ext
40880 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40881 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40882 if test $ac_cv_func__vsnprintf = yes; then
40883 ac_cv_func_vsnprintf=yes
40885 cat >>confdefs.h <<\_ACEOF
40886 #define vsnprintf _vsnprintf
40894 for ac_func in vprintf
40896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40897 echo "$as_me:$LINENO: checking for $ac_func" >&5
40898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40899 if eval "test \"\${$as_ac_var+set}\" = set"; then
40900 echo $ECHO_N "(cached) $ECHO_C" >&6
40902 cat >conftest.$ac_ext <<_ACEOF
40905 cat confdefs.h >>conftest.$ac_ext
40906 cat >>conftest.$ac_ext <<_ACEOF
40907 /* end confdefs.h. */
40908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40910 #define $ac_func innocuous_$ac_func
40912 /* System header to define __stub macros and hopefully few prototypes,
40913 which can conflict with char $ac_func (); below.
40914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40915 <limits.h> exists even on freestanding compilers. */
40918 # include <limits.h>
40920 # include <assert.h>
40925 /* Override any gcc2 internal prototype to avoid an error. */
40930 /* We use char because int might match the return type of a gcc2
40931 builtin and then its argument prototype would still apply. */
40933 /* The GNU C library defines this for functions which it implements
40934 to always fail with ENOSYS. Some functions are actually named
40935 something starting with __ and the normal name is an alias. */
40936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40939 char (*f) () = $ac_func;
40948 return f != $ac_func;
40953 rm -f conftest.$ac_objext conftest$ac_exeext
40954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40955 (eval $ac_link) 2>conftest.er1
40957 grep -v '^ *+' conftest.er1 >conftest.err
40959 cat conftest.err >&5
40960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40961 (exit $ac_status); } &&
40962 { ac_try='test -z "$ac_c_werror_flag"
40963 || test ! -s conftest.err'
40964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40965 (eval $ac_try) 2>&5
40967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40968 (exit $ac_status); }; } &&
40969 { ac_try='test -s conftest$ac_exeext'
40970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40971 (eval $ac_try) 2>&5
40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); }; }; then
40975 eval "$as_ac_var=yes"
40977 echo "$as_me: failed program was:" >&5
40978 sed 's/^/| /' conftest.$ac_ext >&5
40980 eval "$as_ac_var=no"
40982 rm -f conftest.err conftest.$ac_objext \
40983 conftest$ac_exeext conftest.$ac_ext
40985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40987 if test `eval echo '${'$as_ac_var'}'` = yes; then
40988 cat >>confdefs.h <<_ACEOF
40989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40992 echo "$as_me:$LINENO: checking for _doprnt" >&5
40993 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
40994 if test "${ac_cv_func__doprnt+set}" = set; then
40995 echo $ECHO_N "(cached) $ECHO_C" >&6
40997 cat >conftest.$ac_ext <<_ACEOF
41000 cat confdefs.h >>conftest.$ac_ext
41001 cat >>conftest.$ac_ext <<_ACEOF
41002 /* end confdefs.h. */
41003 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41005 #define _doprnt innocuous__doprnt
41007 /* System header to define __stub macros and hopefully few prototypes,
41008 which can conflict with char _doprnt (); below.
41009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41010 <limits.h> exists even on freestanding compilers. */
41013 # include <limits.h>
41015 # include <assert.h>
41020 /* Override any gcc2 internal prototype to avoid an error. */
41025 /* We use char because int might match the return type of a gcc2
41026 builtin and then its argument prototype would still apply. */
41028 /* The GNU C library defines this for functions which it implements
41029 to always fail with ENOSYS. Some functions are actually named
41030 something starting with __ and the normal name is an alias. */
41031 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41034 char (*f) () = _doprnt;
41043 return f != _doprnt;
41048 rm -f conftest.$ac_objext conftest$ac_exeext
41049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41050 (eval $ac_link) 2>conftest.er1
41052 grep -v '^ *+' conftest.er1 >conftest.err
41054 cat conftest.err >&5
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); } &&
41057 { ac_try='test -z "$ac_c_werror_flag"
41058 || test ! -s conftest.err'
41059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41060 (eval $ac_try) 2>&5
41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); }; } &&
41064 { ac_try='test -s conftest$ac_exeext'
41065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066 (eval $ac_try) 2>&5
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); }; }; then
41070 ac_cv_func__doprnt=yes
41072 echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41075 ac_cv_func__doprnt=no
41077 rm -f conftest.err conftest.$ac_objext \
41078 conftest$ac_exeext conftest.$ac_ext
41080 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41081 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41082 if test $ac_cv_func__doprnt = yes; then
41084 cat >>confdefs.h <<\_ACEOF
41085 #define HAVE_DOPRNT 1
41095 if test $ac_cv_func_vprintf = yes ; then
41098 for ac_func in snprintf vsnprintf
41100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41101 echo "$as_me:$LINENO: checking for $ac_func" >&5
41102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41103 if eval "test \"\${$as_ac_var+set}\" = set"; then
41104 echo $ECHO_N "(cached) $ECHO_C" >&6
41106 cat >conftest.$ac_ext <<_ACEOF
41109 cat confdefs.h >>conftest.$ac_ext
41110 cat >>conftest.$ac_ext <<_ACEOF
41111 /* end confdefs.h. */
41112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41114 #define $ac_func innocuous_$ac_func
41116 /* System header to define __stub macros and hopefully few prototypes,
41117 which can conflict with char $ac_func (); below.
41118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41119 <limits.h> exists even on freestanding compilers. */
41122 # include <limits.h>
41124 # include <assert.h>
41129 /* Override any gcc2 internal prototype to avoid an error. */
41134 /* We use char because int might match the return type of a gcc2
41135 builtin and then its argument prototype would still apply. */
41137 /* The GNU C library defines this for functions which it implements
41138 to always fail with ENOSYS. Some functions are actually named
41139 something starting with __ and the normal name is an alias. */
41140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41143 char (*f) () = $ac_func;
41152 return f != $ac_func;
41157 rm -f conftest.$ac_objext conftest$ac_exeext
41158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41159 (eval $ac_link) 2>conftest.er1
41161 grep -v '^ *+' conftest.er1 >conftest.err
41163 cat conftest.err >&5
41164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165 (exit $ac_status); } &&
41166 { ac_try='test -z "$ac_c_werror_flag"
41167 || test ! -s conftest.err'
41168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41169 (eval $ac_try) 2>&5
41171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172 (exit $ac_status); }; } &&
41173 { ac_try='test -s conftest$ac_exeext'
41174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41175 (eval $ac_try) 2>&5
41177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178 (exit $ac_status); }; }; then
41179 eval "$as_ac_var=yes"
41181 echo "$as_me: failed program was:" >&5
41182 sed 's/^/| /' conftest.$ac_ext >&5
41184 eval "$as_ac_var=no"
41186 rm -f conftest.err conftest.$ac_objext \
41187 conftest$ac_exeext conftest.$ac_ext
41189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41191 if test `eval echo '${'$as_ac_var'}'` = yes; then
41192 cat >>confdefs.h <<_ACEOF
41193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41313 echo "$as_me:$LINENO: checking for $ac_func" >&5
41314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41315 if eval "test \"\${$as_ac_var+set}\" = set"; then
41316 echo $ECHO_N "(cached) $ECHO_C" >&6
41318 cat >conftest.$ac_ext <<_ACEOF
41321 cat confdefs.h >>conftest.$ac_ext
41322 cat >>conftest.$ac_ext <<_ACEOF
41323 /* end confdefs.h. */
41324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41326 #define $ac_func innocuous_$ac_func
41328 /* System header to define __stub macros and hopefully few prototypes,
41329 which can conflict with char $ac_func (); below.
41330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41331 <limits.h> exists even on freestanding compilers. */
41334 # include <limits.h>
41336 # include <assert.h>
41341 /* Override any gcc2 internal prototype to avoid an error. */
41346 /* We use char because int might match the return type of a gcc2
41347 builtin and then its argument prototype would still apply. */
41349 /* The GNU C library defines this for functions which it implements
41350 to always fail with ENOSYS. Some functions are actually named
41351 something starting with __ and the normal name is an alias. */
41352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41355 char (*f) () = $ac_func;
41364 return f != $ac_func;
41369 rm -f conftest.$ac_objext conftest$ac_exeext
41370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41371 (eval $ac_link) 2>conftest.er1
41373 grep -v '^ *+' conftest.er1 >conftest.err
41375 cat conftest.err >&5
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); } &&
41378 { ac_try='test -z "$ac_c_werror_flag"
41379 || test ! -s conftest.err'
41380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41381 (eval $ac_try) 2>&5
41383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41384 (exit $ac_status); }; } &&
41385 { ac_try='test -s conftest$ac_exeext'
41386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41387 (eval $ac_try) 2>&5
41389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41390 (exit $ac_status); }; }; then
41391 eval "$as_ac_var=yes"
41393 echo "$as_me: failed program was:" >&5
41394 sed 's/^/| /' conftest.$ac_ext >&5
41396 eval "$as_ac_var=no"
41398 rm -f conftest.err conftest.$ac_objext \
41399 conftest$ac_exeext conftest.$ac_ext
41401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41403 if test `eval echo '${'$as_ac_var'}'` = yes; then
41404 cat >>confdefs.h <<_ACEOF
41405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41414 for ac_func in getopt getpeereid
41416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41417 echo "$as_me:$LINENO: checking for $ac_func" >&5
41418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41419 if eval "test \"\${$as_ac_var+set}\" = set"; then
41420 echo $ECHO_N "(cached) $ECHO_C" >&6
41422 cat >conftest.$ac_ext <<_ACEOF
41425 cat confdefs.h >>conftest.$ac_ext
41426 cat >>conftest.$ac_ext <<_ACEOF
41427 /* end confdefs.h. */
41428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41430 #define $ac_func innocuous_$ac_func
41432 /* System header to define __stub macros and hopefully few prototypes,
41433 which can conflict with char $ac_func (); below.
41434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41435 <limits.h> exists even on freestanding compilers. */
41438 # include <limits.h>
41440 # include <assert.h>
41445 /* Override any gcc2 internal prototype to avoid an error. */
41450 /* We use char because int might match the return type of a gcc2
41451 builtin and then its argument prototype would still apply. */
41453 /* The GNU C library defines this for functions which it implements
41454 to always fail with ENOSYS. Some functions are actually named
41455 something starting with __ and the normal name is an alias. */
41456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41459 char (*f) () = $ac_func;
41468 return f != $ac_func;
41473 rm -f conftest.$ac_objext conftest$ac_exeext
41474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41475 (eval $ac_link) 2>conftest.er1
41477 grep -v '^ *+' conftest.er1 >conftest.err
41479 cat conftest.err >&5
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); } &&
41482 { ac_try='test -z "$ac_c_werror_flag"
41483 || test ! -s conftest.err'
41484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41485 (eval $ac_try) 2>&5
41487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41488 (exit $ac_status); }; } &&
41489 { ac_try='test -s conftest$ac_exeext'
41490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41491 (eval $ac_try) 2>&5
41493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41494 (exit $ac_status); }; }; then
41495 eval "$as_ac_var=yes"
41497 echo "$as_me: failed program was:" >&5
41498 sed 's/^/| /' conftest.$ac_ext >&5
41500 eval "$as_ac_var=no"
41502 rm -f conftest.err conftest.$ac_objext \
41503 conftest$ac_exeext conftest.$ac_ext
41505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41507 if test `eval echo '${'$as_ac_var'}'` = yes; then
41508 cat >>confdefs.h <<_ACEOF
41509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41514 "$ac_func.$ac_objext" | \
41515 *" $ac_func.$ac_objext" | \
41516 "$ac_func.$ac_objext "* | \
41517 *" $ac_func.$ac_objext "* ) ;;
41518 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41526 if test "$ac_cv_func_getopt" != yes; then
41527 LIBSRCS="$LIBSRCS getopt.c"
41529 if test "$ac_cv_func_getpeereid" != yes; then
41530 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41531 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41532 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41533 echo $ECHO_N "(cached) $ECHO_C" >&6
41535 cat >conftest.$ac_ext <<_ACEOF
41538 cat confdefs.h >>conftest.$ac_ext
41539 cat >>conftest.$ac_ext <<_ACEOF
41540 /* end confdefs.h. */
41541 $ac_includes_default
41542 #ifdef HAVE_SYS_SOCKET_H
41543 #include <sys/socket.h>
41549 static struct msghdr ac_aggr;
41550 if (ac_aggr.msg_accrightslen)
41556 rm -f conftest.$ac_objext
41557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41558 (eval $ac_compile) 2>conftest.er1
41560 grep -v '^ *+' conftest.er1 >conftest.err
41562 cat conftest.err >&5
41563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564 (exit $ac_status); } &&
41565 { ac_try='test -z "$ac_c_werror_flag"
41566 || test ! -s conftest.err'
41567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41568 (eval $ac_try) 2>&5
41570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41571 (exit $ac_status); }; } &&
41572 { ac_try='test -s conftest.$ac_objext'
41573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41574 (eval $ac_try) 2>&5
41576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41577 (exit $ac_status); }; }; then
41578 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41580 echo "$as_me: failed program was:" >&5
41581 sed 's/^/| /' conftest.$ac_ext >&5
41583 cat >conftest.$ac_ext <<_ACEOF
41586 cat confdefs.h >>conftest.$ac_ext
41587 cat >>conftest.$ac_ext <<_ACEOF
41588 /* end confdefs.h. */
41589 $ac_includes_default
41590 #ifdef HAVE_SYS_SOCKET_H
41591 #include <sys/socket.h>
41597 static struct msghdr ac_aggr;
41598 if (sizeof ac_aggr.msg_accrightslen)
41604 rm -f conftest.$ac_objext
41605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41606 (eval $ac_compile) 2>conftest.er1
41608 grep -v '^ *+' conftest.er1 >conftest.err
41610 cat conftest.err >&5
41611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41612 (exit $ac_status); } &&
41613 { ac_try='test -z "$ac_c_werror_flag"
41614 || test ! -s conftest.err'
41615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616 (eval $ac_try) 2>&5
41618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619 (exit $ac_status); }; } &&
41620 { ac_try='test -s conftest.$ac_objext'
41621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622 (eval $ac_try) 2>&5
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); }; }; then
41626 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41628 echo "$as_me: failed program was:" >&5
41629 sed 's/^/| /' conftest.$ac_ext >&5
41631 ac_cv_member_struct_msghdr_msg_accrightslen=no
41633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41637 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41638 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41639 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41641 cat >>confdefs.h <<_ACEOF
41642 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41648 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41649 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41650 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41651 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41652 echo $ECHO_N "(cached) $ECHO_C" >&6
41654 cat >conftest.$ac_ext <<_ACEOF
41657 cat confdefs.h >>conftest.$ac_ext
41658 cat >>conftest.$ac_ext <<_ACEOF
41659 /* end confdefs.h. */
41660 $ac_includes_default
41661 #ifdef HAVE_SYS_SOCKET_H
41662 #include <sys/socket.h>
41668 static struct msghdr ac_aggr;
41669 if (ac_aggr.msg_control)
41675 rm -f conftest.$ac_objext
41676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41677 (eval $ac_compile) 2>conftest.er1
41679 grep -v '^ *+' conftest.er1 >conftest.err
41681 cat conftest.err >&5
41682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683 (exit $ac_status); } &&
41684 { ac_try='test -z "$ac_c_werror_flag"
41685 || test ! -s conftest.err'
41686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41687 (eval $ac_try) 2>&5
41689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690 (exit $ac_status); }; } &&
41691 { ac_try='test -s conftest.$ac_objext'
41692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693 (eval $ac_try) 2>&5
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); }; }; then
41697 ac_cv_member_struct_msghdr_msg_control=yes
41699 echo "$as_me: failed program was:" >&5
41700 sed 's/^/| /' conftest.$ac_ext >&5
41702 cat >conftest.$ac_ext <<_ACEOF
41705 cat confdefs.h >>conftest.$ac_ext
41706 cat >>conftest.$ac_ext <<_ACEOF
41707 /* end confdefs.h. */
41708 $ac_includes_default
41709 #ifdef HAVE_SYS_SOCKET_H
41710 #include <sys/socket.h>
41716 static struct msghdr ac_aggr;
41717 if (sizeof ac_aggr.msg_control)
41723 rm -f conftest.$ac_objext
41724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41725 (eval $ac_compile) 2>conftest.er1
41727 grep -v '^ *+' conftest.er1 >conftest.err
41729 cat conftest.err >&5
41730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41731 (exit $ac_status); } &&
41732 { ac_try='test -z "$ac_c_werror_flag"
41733 || test ! -s conftest.err'
41734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735 (eval $ac_try) 2>&5
41737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); }; } &&
41739 { ac_try='test -s conftest.$ac_objext'
41740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41741 (eval $ac_try) 2>&5
41743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744 (exit $ac_status); }; }; then
41745 ac_cv_member_struct_msghdr_msg_control=yes
41747 echo "$as_me: failed program was:" >&5
41748 sed 's/^/| /' conftest.$ac_ext >&5
41750 ac_cv_member_struct_msghdr_msg_control=no
41752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41756 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41757 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41758 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41760 cat >>confdefs.h <<_ACEOF
41761 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41768 LIBSRCS="$LIBSRCS getpeereid.c"
41770 if test "$ac_cv_func_snprintf" != yes ||
41771 test "$ac_cv_func_vsnprintf" != yes; then
41772 if test "$ac_cv_func_snprintf" != yes; then
41774 cat >>confdefs.h <<\_ACEOF
41775 #define snprintf ber_pvt_snprintf
41779 if test "$ac_cv_func_vsnprintf" != yes; then
41781 cat >>confdefs.h <<\_ACEOF
41782 #define vsnprintf ber_pvt_vsnprintf
41789 if test "$ol_enable_slapi" != no ; then
41791 for ac_header in ltdl.h
41793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41795 echo "$as_me:$LINENO: checking for $ac_header" >&5
41796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41798 echo $ECHO_N "(cached) $ECHO_C" >&6
41800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41803 # Is the header compilable?
41804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41806 cat >conftest.$ac_ext <<_ACEOF
41809 cat confdefs.h >>conftest.$ac_ext
41810 cat >>conftest.$ac_ext <<_ACEOF
41811 /* end confdefs.h. */
41812 $ac_includes_default
41813 #include <$ac_header>
41815 rm -f conftest.$ac_objext
41816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41817 (eval $ac_compile) 2>conftest.er1
41819 grep -v '^ *+' conftest.er1 >conftest.err
41821 cat conftest.err >&5
41822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41823 (exit $ac_status); } &&
41824 { ac_try='test -z "$ac_c_werror_flag"
41825 || test ! -s conftest.err'
41826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41827 (eval $ac_try) 2>&5
41829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41830 (exit $ac_status); }; } &&
41831 { ac_try='test -s conftest.$ac_objext'
41832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833 (eval $ac_try) 2>&5
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); }; }; then
41837 ac_header_compiler=yes
41839 echo "$as_me: failed program was:" >&5
41840 sed 's/^/| /' conftest.$ac_ext >&5
41842 ac_header_compiler=no
41844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41846 echo "${ECHO_T}$ac_header_compiler" >&6
41848 # Is the header present?
41849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41851 cat >conftest.$ac_ext <<_ACEOF
41854 cat confdefs.h >>conftest.$ac_ext
41855 cat >>conftest.$ac_ext <<_ACEOF
41856 /* end confdefs.h. */
41857 #include <$ac_header>
41859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41862 grep -v '^ *+' conftest.er1 >conftest.err
41864 cat conftest.err >&5
41865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41866 (exit $ac_status); } >/dev/null; then
41867 if test -s conftest.err; then
41868 ac_cpp_err=$ac_c_preproc_warn_flag
41869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41876 if test -z "$ac_cpp_err"; then
41877 ac_header_preproc=yes
41879 echo "$as_me: failed program was:" >&5
41880 sed 's/^/| /' conftest.$ac_ext >&5
41882 ac_header_preproc=no
41884 rm -f conftest.err conftest.$ac_ext
41885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41886 echo "${ECHO_T}$ac_header_preproc" >&6
41888 # So? What about this header?
41889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41895 ac_header_preproc=yes
41898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41912 ## ------------------------------------------ ##
41913 ## Report this to the AC_PACKAGE_NAME lists. ##
41914 ## ------------------------------------------ ##
41917 sed "s/^/$as_me: WARNING: /" >&2
41920 echo "$as_me:$LINENO: checking for $ac_header" >&5
41921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41923 echo $ECHO_N "(cached) $ECHO_C" >&6
41925 eval "$as_ac_Header=\$ac_header_preproc"
41927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41932 cat >>confdefs.h <<_ACEOF
41933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41941 if test $ac_cv_header_ltdl_h != yes ; then
41942 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
41943 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
41944 { (exit 1); exit 1; }; }
41946 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
41947 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
41948 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
41949 echo $ECHO_N "(cached) $ECHO_C" >&6
41951 ac_check_lib_save_LIBS=$LIBS
41952 LIBS="-lltdl $LIBS"
41953 cat >conftest.$ac_ext <<_ACEOF
41956 cat confdefs.h >>conftest.$ac_ext
41957 cat >>conftest.$ac_ext <<_ACEOF
41958 /* end confdefs.h. */
41960 /* Override any gcc2 internal prototype to avoid an error. */
41964 /* We use char because int might match the return type of a gcc2
41965 builtin and then its argument prototype would still apply. */
41975 rm -f conftest.$ac_objext conftest$ac_exeext
41976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41977 (eval $ac_link) 2>conftest.er1
41979 grep -v '^ *+' conftest.er1 >conftest.err
41981 cat conftest.err >&5
41982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983 (exit $ac_status); } &&
41984 { ac_try='test -z "$ac_c_werror_flag"
41985 || test ! -s conftest.err'
41986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41987 (eval $ac_try) 2>&5
41989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41990 (exit $ac_status); }; } &&
41991 { ac_try='test -s conftest$ac_exeext'
41992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41993 (eval $ac_try) 2>&5
41995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996 (exit $ac_status); }; }; then
41997 ac_cv_lib_ltdl_lt_dlinit=yes
41999 echo "$as_me: failed program was:" >&5
42000 sed 's/^/| /' conftest.$ac_ext >&5
42002 ac_cv_lib_ltdl_lt_dlinit=no
42004 rm -f conftest.err conftest.$ac_objext \
42005 conftest$ac_exeext conftest.$ac_ext
42006 LIBS=$ac_check_lib_save_LIBS
42008 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42009 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42010 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42013 LIBSLAPI=libslapi.a
42014 LIBSLAPITOOLS=../libslapi.a
42016 cat >>confdefs.h <<\_ACEOF
42017 #define HAVE_LIBLTDL 1
42022 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42023 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42024 { (exit 1); exit 1; }; }
42029 cat >>confdefs.h <<\_ACEOF
42030 #define LDAP_SLAPI 1
42035 if test "$ol_enable_debug" != no ; then
42037 cat >>confdefs.h <<\_ACEOF
42038 #define LDAP_DEBUG 1
42042 if test "$ol_enable_syslog" = yes ; then
42044 cat >>confdefs.h <<\_ACEOF
42045 #define LDAP_SYSLOG 1
42049 if test "$ol_link_kbind" != no ; then
42051 cat >>confdefs.h <<\_ACEOF
42052 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42056 if test "$ol_enable_proctitle" != no ; then
42058 cat >>confdefs.h <<\_ACEOF
42059 #define LDAP_PROCTITLE 1
42063 if test "$ol_enable_referrals" != no ; then
42065 cat >>confdefs.h <<\_ACEOF
42066 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42070 if test "$ol_enable_local" != no; then
42072 cat >>confdefs.h <<\_ACEOF
42073 #define LDAP_PF_LOCAL 1
42077 if test "$ol_link_ipv6" != no; then
42079 cat >>confdefs.h <<\_ACEOF
42080 #define LDAP_PF_INET6 1
42084 if test "$ol_enable_cleartext" != no ; then
42086 cat >>confdefs.h <<\_ACEOF
42087 #define SLAPD_CLEARTEXT 1
42091 if test "$ol_enable_crypt" != no ; then
42093 cat >>confdefs.h <<\_ACEOF
42094 #define SLAPD_CRYPT 1
42098 if test "$ol_link_spasswd" != no ; then
42100 cat >>confdefs.h <<\_ACEOF
42101 #define SLAPD_SPASSWD 1
42105 if test "$ol_enable_multimaster" != no ; then
42107 cat >>confdefs.h <<\_ACEOF
42108 #define SLAPD_MULTIMASTER 1
42112 if test "$ol_enable_rlookups" != no ; then
42114 cat >>confdefs.h <<\_ACEOF
42115 #define SLAPD_RLOOKUPS 1
42119 if test "$ol_enable_aci" != no ; then
42121 cat >>confdefs.h <<\_ACEOF
42122 #define SLAPD_ACI_ENABLED 1
42125 WITH_ACI_ENABLED=yes
42127 WITH_ACI_ENABLED=no
42130 if test "$ol_link_modules" != no ; then
42132 cat >>confdefs.h <<\_ACEOF
42133 #define SLAPD_MODULES 1
42137 SLAPD_MODULES_LDFLAGS="-dlopen self"
42141 cat >>confdefs.h <<\_ACEOF
42142 #define SLAPD_MOD_STATIC 1
42146 cat >>confdefs.h <<\_ACEOF
42147 #define SLAPD_MOD_DYNAMIC 2
42151 if test "$ol_enable_bdb" != no ; then
42153 BUILD_BDB=$ol_enable_bdb
42154 if test "$ol_enable_bdb" = mod ; then
42155 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42156 MFLAG=SLAPD_MOD_DYNAMIC
42158 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42159 MFLAG=SLAPD_MOD_STATIC
42162 cat >>confdefs.h <<_ACEOF
42163 #define SLAPD_BDB $MFLAG
42168 if test "$ol_enable_dnssrv" != no ; then
42170 BUILD_DNSSRV=$ol_enable_dnssrv
42171 if test "$ol_enable_dnssrv" = mod ; then
42172 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42173 MFLAG=SLAPD_MOD_DYNAMIC
42175 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42176 MFLAG=SLAPD_MOD_STATIC
42179 cat >>confdefs.h <<_ACEOF
42180 #define SLAPD_DNSSRV $MFLAG
42185 if test "$ol_enable_hdb" != no ; then
42187 BUILD_HDB=$ol_enable_hdb
42188 if test "$ol_enable_hdb" = mod ; then
42189 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42190 MFLAG=SLAPD_MOD_DYNAMIC
42192 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42193 MFLAG=SLAPD_MOD_STATIC
42196 cat >>confdefs.h <<_ACEOF
42197 #define SLAPD_HDB $MFLAG
42202 if test "$ol_enable_ldap" != no ; then
42204 BUILD_LDAP=$ol_enable_ldap
42205 if test "$ol_enable_ldap" = mod ; then
42206 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42207 MFLAG=SLAPD_MOD_DYNAMIC
42209 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42210 MFLAG=SLAPD_MOD_STATIC
42213 cat >>confdefs.h <<_ACEOF
42214 #define SLAPD_LDAP $MFLAG
42219 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
42221 BUILD_LDBM=$ol_enable_ldbm
42222 if test "$ol_enable_ldbm" = mod ; then
42223 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42224 MFLAG=SLAPD_MOD_DYNAMIC
42226 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42227 MFLAG=SLAPD_MOD_STATIC
42230 cat >>confdefs.h <<_ACEOF
42231 #define SLAPD_LDBM $MFLAG
42236 if test "$ol_enable_meta" != no ; then
42238 BUILD_META=$ol_enable_meta
42240 if test "$ol_enable_meta" = mod ; then
42241 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42242 MFLAG=SLAPD_MOD_DYNAMIC
42244 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42245 MFLAG=SLAPD_MOD_STATIC
42248 cat >>confdefs.h <<_ACEOF
42249 #define SLAPD_META $MFLAG
42254 if test "$ol_enable_monitor" != no ; then
42256 BUILD_MONITOR=$ol_enable_monitor
42257 if test "$ol_enable_monitor" = mod ; then
42258 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42259 MFLAG=SLAPD_MOD_DYNAMIC
42261 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42262 MFLAG=SLAPD_MOD_STATIC
42265 cat >>confdefs.h <<_ACEOF
42266 #define SLAPD_MONITOR $MFLAG
42271 if test "$ol_enable_null" != no ; then
42273 BUILD_NULL=$ol_enable_null
42274 if test "$ol_enable_null" = mod ; then
42275 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42276 MFLAG=SLAPD_MOD_DYNAMIC
42278 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42279 MFLAG=SLAPD_MOD_STATIC
42282 cat >>confdefs.h <<_ACEOF
42283 #define SLAPD_NULL $MFLAG
42288 if test "$ol_enable_passwd" != no ; then
42290 BUILD_PASSWD=$ol_enable_passwd
42291 if test "$ol_enable_passwd" = mod ; then
42292 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42293 MFLAG=SLAPD_MOD_DYNAMIC
42295 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42296 MFLAG=SLAPD_MOD_STATIC
42299 cat >>confdefs.h <<_ACEOF
42300 #define SLAPD_PASSWD $MFLAG
42305 if test "$ol_link_perl" != no ; then
42307 BUILD_PERL=$ol_enable_perl
42308 if test "$ol_enable_perl" = mod ; then
42309 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42310 MFLAG=SLAPD_MOD_DYNAMIC
42312 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42313 MFLAG=SLAPD_MOD_STATIC
42316 cat >>confdefs.h <<_ACEOF
42317 #define SLAPD_PERL $MFLAG
42322 if test "$ol_enable_relay" != no ; then
42324 BUILD_RELAY=$ol_enable_relay
42325 if test "$ol_enable_relay" = mod ; then
42326 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42327 MFLAG=SLAPD_MOD_DYNAMIC
42329 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42330 MFLAG=SLAPD_MOD_STATIC
42333 cat >>confdefs.h <<_ACEOF
42334 #define SLAPD_RELAY $MFLAG
42339 if test "$ol_enable_shell" != no ; then
42340 if test "$ol_link_threads" != no ; then
42341 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42342 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42345 BUILD_SHELL=$ol_enable_shell
42346 if test "$ol_enable_shell" = mod ; then
42347 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42348 MFLAG=SLAPD_MOD_DYNAMIC
42350 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42351 MFLAG=SLAPD_MOD_STATIC
42354 cat >>confdefs.h <<_ACEOF
42355 #define SLAPD_SHELL $MFLAG
42360 if test "$ol_link_sql" != no ; then
42362 BUILD_SQL=$ol_enable_sql
42363 if test "$ol_enable_sql" = mod; then
42364 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42365 MFLAG=SLAPD_MOD_DYNAMIC
42367 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42368 MFLAG=SLAPD_MOD_STATIC
42371 cat >>confdefs.h <<_ACEOF
42372 #define SLAPD_SQL $MFLAG
42377 if test "$ol_enable_accesslog" != no ; then
42378 BUILD_ACCESSLOG=$ol_enable_accesslog
42379 if test "$ol_enable_accesslog" = mod ; then
42380 MFLAG=SLAPD_MOD_DYNAMIC
42381 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42383 MFLAG=SLAPD_MOD_STATIC
42384 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42387 cat >>confdefs.h <<_ACEOF
42388 #define SLAPD_OVER_ACCESSLOG $MFLAG
42393 if test "$ol_enable_denyop" != no ; then
42394 BUILD_DENYOP=$ol_enable_denyop
42395 if test "$ol_enable_denyop" = mod ; then
42396 MFLAG=SLAPD_MOD_DYNAMIC
42397 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42399 MFLAG=SLAPD_MOD_STATIC
42400 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42403 cat >>confdefs.h <<_ACEOF
42404 #define SLAPD_OVER_DENYOP $MFLAG
42409 if test "$ol_enable_dyngroup" != no ; then
42410 BUILD_DYNGROUP=$ol_enable_dyngroup
42411 if test "$ol_enable_dyngroup" = mod ; then
42412 MFLAG=SLAPD_MOD_DYNAMIC
42413 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42415 MFLAG=SLAPD_MOD_STATIC
42416 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42419 cat >>confdefs.h <<_ACEOF
42420 #define SLAPD_OVER_DYNGROUP $MFLAG
42425 if test "$ol_enable_dynlist" != no ; then
42426 BUILD_DYNLIST=$ol_enable_dynlist
42427 if test "$ol_enable_dynlist" = mod ; then
42428 MFLAG=SLAPD_MOD_DYNAMIC
42429 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42431 MFLAG=SLAPD_MOD_STATIC
42432 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42435 cat >>confdefs.h <<_ACEOF
42436 #define SLAPD_OVER_DYNLIST $MFLAG
42441 if test "$ol_enable_lastmod" != no ; then
42442 BUILD_LASTMOD=$ol_enable_lastmod
42443 if test "$ol_enable_lastmod" = mod ; then
42444 MFLAG=SLAPD_MOD_DYNAMIC
42445 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42447 MFLAG=SLAPD_MOD_STATIC
42448 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42451 cat >>confdefs.h <<_ACEOF
42452 #define SLAPD_OVER_LASTMOD $MFLAG
42457 if test "$ol_enable_ppolicy" != no ; then
42458 BUILD_PPOLICY=$ol_enable_ppolicy
42459 if test "$ol_enable_ppolicy" = mod ; then
42460 MFLAG=SLAPD_MOD_DYNAMIC
42461 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42463 MFLAG=SLAPD_MOD_STATIC
42464 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42467 cat >>confdefs.h <<_ACEOF
42468 #define SLAPD_OVER_PPOLICY $MFLAG
42473 if test "$ol_enable_proxycache" != no ; then
42474 BUILD_PROXYCACHE=$ol_enable_proxycache
42475 if test "$ol_enable_proxycache" = mod ; then
42476 MFLAG=SLAPD_MOD_DYNAMIC
42477 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42479 MFLAG=SLAPD_MOD_STATIC
42480 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42483 cat >>confdefs.h <<_ACEOF
42484 #define SLAPD_OVER_PROXYCACHE $MFLAG
42489 if test "$ol_enable_refint" != no ; then
42490 BUILD_REFINT=$ol_enable_refint
42491 if test "$ol_enable_refint" = mod ; then
42492 MFLAG=SLAPD_MOD_DYNAMIC
42493 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42495 MFLAG=SLAPD_MOD_STATIC
42496 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42499 cat >>confdefs.h <<_ACEOF
42500 #define SLAPD_OVER_REFINT $MFLAG
42505 if test "$ol_enable_retcode" != no ; then
42506 BUILD_RETCODE=$ol_enable_retcode
42507 if test "$ol_enable_retcode" = mod ; then
42508 MFLAG=SLAPD_MOD_DYNAMIC
42509 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42511 MFLAG=SLAPD_MOD_STATIC
42512 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42515 cat >>confdefs.h <<_ACEOF
42516 #define SLAPD_OVER_RETCODE $MFLAG
42521 if test "$ol_enable_rwm" != no ; then
42523 BUILD_RWM=$ol_enable_rwm
42524 if test "$ol_enable_rwm" = mod ; then
42525 MFLAG=SLAPD_MOD_DYNAMIC
42526 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42528 MFLAG=SLAPD_MOD_STATIC
42529 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42532 cat >>confdefs.h <<_ACEOF
42533 #define SLAPD_OVER_RWM $MFLAG
42538 if test "$ol_enable_syncprov" != no ; then
42539 BUILD_SYNCPROV=$ol_enable_syncprov
42540 if test "$ol_enable_syncprov" = mod ; then
42541 MFLAG=SLAPD_MOD_DYNAMIC
42542 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42544 MFLAG=SLAPD_MOD_STATIC
42545 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42548 cat >>confdefs.h <<_ACEOF
42549 #define SLAPD_OVER_SYNCPROV $MFLAG
42554 if test "$ol_enable_translucent" != no ; then
42555 BUILD_TRANSLUCENT=$ol_enable_translucent
42556 if test "$ol_enable_translucent" = mod ; then
42557 MFLAG=SLAPD_MOD_DYNAMIC
42558 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42560 MFLAG=SLAPD_MOD_STATIC
42561 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42564 cat >>confdefs.h <<_ACEOF
42565 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42570 if test "$ol_enable_unique" != no ; then
42571 BUILD_UNIQUE=$ol_enable_unique
42572 if test "$ol_enable_unique" = mod ; then
42573 MFLAG=SLAPD_MOD_DYNAMIC
42574 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42576 MFLAG=SLAPD_MOD_STATIC
42577 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42580 cat >>confdefs.h <<_ACEOF
42581 #define SLAPD_OVER_UNIQUE $MFLAG
42586 if test "$ol_enable_valsort" != no ; then
42587 BUILD_VALSORT=$ol_enable_valsort
42588 if test "$ol_enable_valsort" = mod ; then
42589 MFLAG=SLAPD_MOD_DYNAMIC
42590 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42592 MFLAG=SLAPD_MOD_STATIC
42593 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42596 cat >>confdefs.h <<_ACEOF
42597 #define SLAPD_OVER_VALSORT $MFLAG
42602 if test "$ol_enable_slurpd" != no &&
42603 test "$ol_link_threads" != no &&
42604 test $BUILD_SLAPD = yes ; then
42608 if test "$ol_enable_rewrite" != no ; then
42610 cat >>confdefs.h <<\_ACEOF
42611 #define ENABLE_REWRITE 1
42617 if test "$ol_enable_slapi" != no ; then
42619 cat >>confdefs.h <<\_ACEOF
42620 #define ENABLE_SLAPI 1
42624 SLAPD_SLAPI_DEPEND=libslapi.a
42629 if test "$ac_cv_mingw32" = yes ; then
42631 SLAPD_MODULES_LDFLAGS=
42715 # Check whether --with-xxinstall or --without-xxinstall was given.
42716 if test "${with_xxinstall+set}" = set; then
42717 withval="$with_xxinstall"
42722 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"
42725 ac_config_commands="$ac_config_commands default"
42729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42730 # Let make expand exec_prefix.
42731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42735 # trailing colons and then remove the whole line if VPATH becomes empty
42736 # (actually we leave an empty line to preserve line numbers).
42737 if test "x$srcdir" = x.; then
42738 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42739 s/:*\$(srcdir):*/:/;
42740 s/:*\${srcdir}:*/:/;
42742 s/^\([^=]*=[ ]*\):*/\1/;
42748 DEFS=-DHAVE_CONFIG_H
42752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42753 # 1. Remove the extension, and $U if already installed.
42754 ac_i=`echo "$ac_i" |
42755 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42757 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42758 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42760 LIBOBJS=$ac_libobjs
42762 LTLIBOBJS=$ac_ltlibobjs
42765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42766 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42767 Usually this means the macro was only invoked conditionally." >&5
42768 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42769 Usually this means the macro was only invoked conditionally." >&2;}
42770 { (exit 1); exit 1; }; }
42772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42773 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42774 Usually this means the macro was only invoked conditionally." >&5
42775 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42776 Usually this means the macro was only invoked conditionally." >&2;}
42777 { (exit 1); exit 1; }; }
42779 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42780 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42781 Usually this means the macro was only invoked conditionally." >&5
42782 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42783 Usually this means the macro was only invoked conditionally." >&2;}
42784 { (exit 1); exit 1; }; }
42787 : ${CONFIG_STATUS=./config.status}
42788 ac_clean_files_save=$ac_clean_files
42789 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42790 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42791 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42792 cat >$CONFIG_STATUS <<_ACEOF
42794 # Generated by $as_me.
42795 # Run this file to recreate the current configuration.
42796 # Compiler output produced by configure, useful for debugging
42797 # configure, is in config.log if it exists.
42800 ac_cs_recheck=false
42802 SHELL=\${CONFIG_SHELL-$SHELL}
42805 cat >>$CONFIG_STATUS <<\_ACEOF
42806 ## --------------------- ##
42807 ## M4sh Initialization. ##
42808 ## --------------------- ##
42810 # Be Bourne compatible
42811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42814 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42815 # is contrary to our usage. Disable this feature.
42816 alias -g '${1+"$@"}'='"$@"'
42817 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42820 DUALCASE=1; export DUALCASE # for MKS sh
42822 # Support unset when possible.
42823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42830 # Work around bugs in pre-3.0 UWIN ksh.
42831 $as_unset ENV MAIL MAILPATH
42838 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42839 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42840 LC_TELEPHONE LC_TIME
42842 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42843 eval $as_var=C; export $as_var
42849 # Required to use basename.
42850 if expr a : '\(a\)' >/dev/null 2>&1; then
42856 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42857 as_basename=basename
42863 # Name of the executable.
42864 as_me=`$as_basename "$0" ||
42865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42866 X"$0" : 'X\(//\)$' \| \
42867 X"$0" : 'X\(/\)$' \| \
42868 . : '\(.\)' 2>/dev/null ||
42870 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42871 /^X\/\(\/\/\)$/{ s//\1/; q; }
42872 /^X\/\(\/\).*/{ s//\1/; q; }
42876 # PATH needs CR, and LINENO needs CR and PATH.
42877 # Avoid depending upon Character Ranges.
42878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42881 as_cr_digits='0123456789'
42882 as_cr_alnum=$as_cr_Letters$as_cr_digits
42884 # The user is always right.
42885 if test "${PATH_SEPARATOR+set}" != set; then
42886 echo "#! /bin/sh" >conf$$.sh
42887 echo "exit 0" >>conf$$.sh
42889 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42898 as_lineno_1=$LINENO
42899 as_lineno_2=$LINENO
42900 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42901 test "x$as_lineno_1" != "x$as_lineno_2" &&
42902 test "x$as_lineno_3" = "x$as_lineno_2" || {
42903 # Find who we are. Look in the path if we contain no path at all
42906 *[\\/]* ) as_myself=$0 ;;
42907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42908 for as_dir in $PATH
42911 test -z "$as_dir" && as_dir=.
42912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42917 # We did not find ourselves, most probably we were run as `sh COMMAND'
42918 # in which case we are not to be found in the path.
42919 if test "x$as_myself" = x; then
42922 if test ! -f "$as_myself"; then
42923 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42924 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42925 { (exit 1); exit 1; }; }
42927 case $CONFIG_SHELL in
42929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42930 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42933 test -z "$as_dir" && as_dir=.
42934 for as_base in sh bash ksh sh5; do
42937 if ("$as_dir/$as_base" -c '
42938 as_lineno_1=$LINENO
42939 as_lineno_2=$LINENO
42940 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42941 test "x$as_lineno_1" != "x$as_lineno_2" &&
42942 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42943 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42944 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42945 CONFIG_SHELL=$as_dir/$as_base
42946 export CONFIG_SHELL
42947 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42955 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42956 # uniformly replaced by the line number. The first 'sed' inserts a
42957 # line-number line before each line; the second 'sed' does the real
42958 # work. The second script uses 'N' to pair each line-number line
42959 # with the numbered line, and appends trailing '-' during
42960 # substitution so that $LINENO is not a special case at line end.
42961 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42962 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42963 sed '=' <$as_myself |
42968 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42971 s,^['$as_cr_digits']*\n,,
42972 ' >$as_me.lineno &&
42973 chmod +x $as_me.lineno ||
42974 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42975 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42976 { (exit 1); exit 1; }; }
42978 # Don't try to exec as it changes $[0], causing all sort of problems
42979 # (the dirname of $[0] is not the place where we might find the
42980 # original and so on. Autoconf is especially sensible to this).
42982 # Exit status is that of the last command.
42987 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42988 *c*,-n*) ECHO_N= ECHO_C='
42990 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42991 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42994 if expr a : '\(a\)' >/dev/null 2>&1; then
43000 rm -f conf$$ conf$$.exe conf$$.file
43002 if ln -s conf$$.file conf$$ 2>/dev/null; then
43003 # We could just check for DJGPP; but this test a) works b) is more generic
43004 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43005 if test -f conf$$.exe; then
43006 # Don't use ln at all; we don't have any links
43011 elif ln conf$$.file conf$$ 2>/dev/null; then
43016 rm -f conf$$ conf$$.exe conf$$.file
43018 if mkdir -p . 2>/dev/null; then
43021 test -d ./-p && rmdir ./-p
43025 as_executable_p="test -f"
43027 # Sed expression to map a string onto a valid CPP name.
43028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43030 # Sed expression to map a string onto a valid variable name.
43031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43035 # We need space, tab and new line, in precisely that order.
43045 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43046 # report actual input values of CONFIG_FILES etc. instead of their
43047 # values after options handling. Logging --version etc. is OK.
43051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43052 ## Running $as_me. ##
43057 This file was extended by $as_me, which was
43058 generated by GNU Autoconf 2.59. Invocation command line was
43060 CONFIG_FILES = $CONFIG_FILES
43061 CONFIG_HEADERS = $CONFIG_HEADERS
43062 CONFIG_LINKS = $CONFIG_LINKS
43063 CONFIG_COMMANDS = $CONFIG_COMMANDS
43067 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43071 # Files that config.status was made for.
43072 if test -n "$ac_config_files"; then
43073 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43076 if test -n "$ac_config_headers"; then
43077 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43080 if test -n "$ac_config_links"; then
43081 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43084 if test -n "$ac_config_commands"; then
43085 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43088 cat >>$CONFIG_STATUS <<\_ACEOF
43091 \`$as_me' instantiates files from templates according to the
43092 current configuration.
43094 Usage: $0 [OPTIONS] [FILE]...
43096 -h, --help print this help, then exit
43097 -V, --version print version number, then exit
43098 -q, --quiet do not print progress messages
43099 -d, --debug don't remove temporary files
43100 --recheck update $as_me by reconfiguring in the same conditions
43101 --file=FILE[:TEMPLATE]
43102 instantiate the configuration file FILE
43103 --header=FILE[:TEMPLATE]
43104 instantiate the configuration header FILE
43106 Configuration files:
43109 Configuration headers:
43112 Configuration commands:
43115 Report bugs to <bug-autoconf@gnu.org>."
43118 cat >>$CONFIG_STATUS <<_ACEOF
43121 configured by $0, generated by GNU Autoconf 2.59,
43122 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43124 Copyright (C) 2003 Free Software Foundation, Inc.
43125 This config.status script is free software; the Free Software Foundation
43126 gives unlimited permission to copy, distribute and modify it."
43131 cat >>$CONFIG_STATUS <<\_ACEOF
43132 # If no file are specified by the user, then we need to provide default
43133 # value. By we need to know if files were specified by the user.
43139 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43140 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43148 *) # This is not an option, so the user has probably given explicit
43151 ac_need_defaults=false;;
43155 # Handling of the options.
43157 cat >>$CONFIG_STATUS <<\_ACEOF
43158 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43160 --version | --vers* | -V )
43161 echo "$ac_cs_version"; exit 0 ;;
43163 # Conflict between --help and --header
43164 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43165 Try \`$0 --help' for more information." >&5
43166 echo "$as_me: error: ambiguous option: $1
43167 Try \`$0 --help' for more information." >&2;}
43168 { (exit 1); exit 1; }; };;
43169 --help | --hel | -h )
43170 echo "$ac_cs_usage"; exit 0 ;;
43171 --debug | --d* | -d )
43173 --file | --fil | --fi | --f )
43175 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43176 ac_need_defaults=false;;
43177 --header | --heade | --head | --hea )
43179 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43180 ac_need_defaults=false;;
43181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43185 # This is an error.
43186 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43187 Try \`$0 --help' for more information." >&5
43188 echo "$as_me: error: unrecognized option: $1
43189 Try \`$0 --help' for more information." >&2;}
43190 { (exit 1); exit 1; }; } ;;
43192 *) ac_config_targets="$ac_config_targets $1" ;;
43198 ac_configure_extra_args=
43200 if $ac_cs_silent; then
43202 ac_configure_extra_args="$ac_configure_extra_args --silent"
43206 cat >>$CONFIG_STATUS <<_ACEOF
43207 if \$ac_cs_recheck; then
43208 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43209 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43214 cat >>$CONFIG_STATUS <<_ACEOF
43216 # INIT-COMMANDS section.
43219 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43220 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43226 cat >>$CONFIG_STATUS <<\_ACEOF
43227 for ac_config_target in $ac_config_targets
43229 case "$ac_config_target" in
43230 # Handling of arguments.
43231 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43232 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43233 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43234 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43235 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43236 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43237 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43238 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43239 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43240 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43241 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43242 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43243 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43244 "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" ;;
43245 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43246 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43247 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43248 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43249 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43250 "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" ;;
43251 "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" ;;
43252 "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" ;;
43253 "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" ;;
43254 "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" ;;
43255 "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" ;;
43256 "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" ;;
43257 "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" ;;
43258 "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" ;;
43259 "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" ;;
43260 "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" ;;
43261 "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" ;;
43262 "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" ;;
43263 "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" ;;
43264 "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" ;;
43265 "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" ;;
43266 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43267 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43268 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43269 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43270 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43271 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43272 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43273 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43274 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43275 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43276 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43278 { (exit 1); exit 1; }; };;
43282 # If the user did not use the arguments to specify the items to instantiate,
43283 # then the envvar interface is used. Set only those that are not.
43284 # We use the long form for the default assignment because of an extremely
43285 # bizarre bug on SunOS 4.1.3.
43286 if $ac_need_defaults; then
43287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43292 # Have a temporary directory for convenience. Make it in the build tree
43293 # simply because there is no reason to put it here, and in addition,
43294 # creating and moving files from /tmp can sometimes cause problems.
43295 # Create a temporary directory, and hook for its removal unless debugging.
43298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43299 trap '{ (exit 1); exit 1; }' 1 2 13 15
43302 # Create a (secure) tmp directory for tmp files.
43305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43306 test -n "$tmp" && test -d "$tmp"
43309 tmp=./confstat$$-$RANDOM
43310 (umask 077 && mkdir $tmp)
43313 echo "$me: cannot create a temporary directory in ." >&2
43314 { (exit 1); exit 1; }
43319 cat >>$CONFIG_STATUS <<_ACEOF
43322 # CONFIG_FILES section.
43325 # No need to generate the scripts if there are no CONFIG_FILES.
43326 # This happens for instance when ./config.status config.h
43327 if test -n "\$CONFIG_FILES"; then
43328 # Protect against being on the right side of a sed subst in config.status.
43329 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43330 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43331 s,@SHELL@,$SHELL,;t t
43332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43338 s,@exec_prefix@,$exec_prefix,;t t
43339 s,@prefix@,$prefix,;t t
43340 s,@program_transform_name@,$program_transform_name,;t t
43341 s,@bindir@,$bindir,;t t
43342 s,@sbindir@,$sbindir,;t t
43343 s,@libexecdir@,$libexecdir,;t t
43344 s,@datadir@,$datadir,;t t
43345 s,@sysconfdir@,$sysconfdir,;t t
43346 s,@sharedstatedir@,$sharedstatedir,;t t
43347 s,@localstatedir@,$localstatedir,;t t
43348 s,@libdir@,$libdir,;t t
43349 s,@includedir@,$includedir,;t t
43350 s,@oldincludedir@,$oldincludedir,;t t
43351 s,@infodir@,$infodir,;t t
43352 s,@mandir@,$mandir,;t t
43353 s,@build_alias@,$build_alias,;t t
43354 s,@host_alias@,$host_alias,;t t
43355 s,@target_alias@,$target_alias,;t t
43356 s,@DEFS@,$DEFS,;t t
43357 s,@ECHO_C@,$ECHO_C,;t t
43358 s,@ECHO_N@,$ECHO_N,;t t
43359 s,@ECHO_T@,$ECHO_T,;t t
43360 s,@LIBS@,$LIBS,;t t
43361 s,@build@,$build,;t t
43362 s,@build_cpu@,$build_cpu,;t t
43363 s,@build_vendor@,$build_vendor,;t t
43364 s,@build_os@,$build_os,;t t
43365 s,@host@,$host,;t t
43366 s,@host_cpu@,$host_cpu,;t t
43367 s,@host_vendor@,$host_vendor,;t t
43368 s,@host_os@,$host_os,;t t
43369 s,@target@,$target,;t t
43370 s,@target_cpu@,$target_cpu,;t t
43371 s,@target_vendor@,$target_vendor,;t t
43372 s,@target_os@,$target_os,;t t
43373 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43374 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43375 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43376 s,@CYGPATH_W@,$CYGPATH_W,;t t
43377 s,@PACKAGE@,$PACKAGE,;t t
43378 s,@VERSION@,$VERSION,;t t
43379 s,@ACLOCAL@,$ACLOCAL,;t t
43380 s,@AUTOCONF@,$AUTOCONF,;t t
43381 s,@AUTOMAKE@,$AUTOMAKE,;t t
43382 s,@AUTOHEADER@,$AUTOHEADER,;t t
43383 s,@MAKEINFO@,$MAKEINFO,;t t
43384 s,@install_sh@,$install_sh,;t t
43385 s,@STRIP@,$STRIP,;t t
43386 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43387 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43388 s,@mkdir_p@,$mkdir_p,;t t
43390 s,@SET_MAKE@,$SET_MAKE,;t t
43391 s,@am__leading_dot@,$am__leading_dot,;t t
43392 s,@AMTAR@,$AMTAR,;t t
43393 s,@am__tar@,$am__tar,;t t
43394 s,@am__untar@,$am__untar,;t t
43395 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43396 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43397 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43398 s,@top_builddir@,$top_builddir,;t t
43399 s,@ldap_subdir@,$ldap_subdir,;t t
43402 s,@CFLAGS@,$CFLAGS,;t t
43403 s,@LDFLAGS@,$LDFLAGS,;t t
43404 s,@CPPFLAGS@,$CPPFLAGS,;t t
43405 s,@ac_ct_CC@,$ac_ct_CC,;t t
43406 s,@EXEEXT@,$EXEEXT,;t t
43407 s,@OBJEXT@,$OBJEXT,;t t
43408 s,@DEPDIR@,$DEPDIR,;t t
43409 s,@am__include@,$am__include,;t t
43410 s,@am__quote@,$am__quote,;t t
43411 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43412 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43413 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43414 s,@CCDEPMODE@,$CCDEPMODE,;t t
43415 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43416 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43417 s,@EGREP@,$EGREP,;t t
43418 s,@LN_S@,$LN_S,;t t
43419 s,@ECHO@,$ECHO,;t t
43420 s,@ac_ct_AR@,$ac_ct_AR,;t t
43421 s,@RANLIB@,$RANLIB,;t t
43422 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43423 s,@DLLTOOL@,$DLLTOOL,;t t
43424 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43426 s,@ac_ct_AS@,$ac_ct_AS,;t t
43427 s,@OBJDUMP@,$OBJDUMP,;t t
43428 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43430 s,@LIBTOOL@,$LIBTOOL,;t t
43431 s,@PERLBIN@,$PERLBIN,;t t
43432 s,@OL_MKDEP@,$OL_MKDEP,;t t
43433 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43434 s,@LTSTATIC@,$LTSTATIC,;t t
43435 s,@LIBOBJS@,$LIBOBJS,;t t
43436 s,@LIBSRCS@,$LIBSRCS,;t t
43437 s,@PLAT@,$PLAT,;t t
43438 s,@WITH_SASL@,$WITH_SASL,;t t
43439 s,@WITH_TLS@,$WITH_TLS,;t t
43440 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43441 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43442 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43443 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43444 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43445 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43446 s,@BUILD_BDB@,$BUILD_BDB,;t t
43447 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43448 s,@BUILD_HDB@,$BUILD_HDB,;t t
43449 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43450 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43451 s,@BUILD_META@,$BUILD_META,;t t
43452 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43453 s,@BUILD_NULL@,$BUILD_NULL,;t t
43454 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43455 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43456 s,@BUILD_PERL@,$BUILD_PERL,;t t
43457 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43458 s,@BUILD_SQL@,$BUILD_SQL,;t t
43459 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43460 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43461 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43462 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43463 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43464 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43465 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43466 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43467 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43468 s,@BUILD_RWM@,$BUILD_RWM,;t t
43469 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43470 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43471 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43472 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43473 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43474 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43475 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43476 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43477 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43478 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43479 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43480 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43481 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43482 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43483 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43484 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43485 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43486 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43487 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43488 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43489 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43490 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43491 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43492 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43493 s,@SASL_LIBS@,$SASL_LIBS,;t t
43494 s,@TLS_LIBS@,$TLS_LIBS,;t t
43495 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43496 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43497 s,@LIBSLAPI@,$LIBSLAPI,;t t
43498 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43499 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43500 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43501 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43502 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43503 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43504 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43505 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43510 cat >>$CONFIG_STATUS <<\_ACEOF
43511 # Split the substitutions into bite-sized pieces for seds with
43512 # small command number limits, like on Digital OSF/1 and HP-UX.
43513 ac_max_sed_lines=48
43514 ac_sed_frag=1 # Number of current file.
43515 ac_beg=1 # First line for current file.
43516 ac_end=$ac_max_sed_lines # Line after last line for current file.
43519 while $ac_more_lines; do
43520 if test $ac_beg -gt 1; then
43521 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43523 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43525 if test ! -s $tmp/subs.frag; then
43526 ac_more_lines=false
43528 # The purpose of the label and of the branching condition is to
43529 # speed up the sed processing (if there are no `@' at all, there
43530 # is no need to browse any of the substitutions).
43531 # These are the two extra sed commands mentioned above.
43533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43534 if test -z "$ac_sed_cmds"; then
43535 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43537 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43539 ac_sed_frag=`expr $ac_sed_frag + 1`
43541 ac_end=`expr $ac_end + $ac_max_sed_lines`
43544 if test -z "$ac_sed_cmds"; then
43547 fi # test -n "$CONFIG_FILES"
43550 cat >>$CONFIG_STATUS <<\_ACEOF
43551 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43554 - | *:- | *:-:* ) # input from stdin
43556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43560 * ) ac_file_in=$ac_file.in ;;
43563 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43564 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43566 X"$ac_file" : 'X\(//\)[^/]' \| \
43567 X"$ac_file" : 'X\(//\)$' \| \
43568 X"$ac_file" : 'X\(/\)' \| \
43569 . : '\(.\)' 2>/dev/null ||
43571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43573 /^X\(\/\/\)$/{ s//\1/; q; }
43574 /^X\(\/\).*/{ s//\1/; q; }
43576 { if $as_mkdir_p; then
43581 while test ! -d "$as_dir"; do
43582 as_dirs="$as_dir $as_dirs"
43583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43585 X"$as_dir" : 'X\(//\)[^/]' \| \
43586 X"$as_dir" : 'X\(//\)$' \| \
43587 X"$as_dir" : 'X\(/\)' \| \
43588 . : '\(.\)' 2>/dev/null ||
43590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43592 /^X\(\/\/\)$/{ s//\1/; q; }
43593 /^X\(\/\).*/{ s//\1/; q; }
43596 test ! -n "$as_dirs" || mkdir $as_dirs
43597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43599 { (exit 1); exit 1; }; }; }
43603 if test "$ac_dir" != .; then
43604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43605 # A "../" for each directory in $ac_dir_suffix.
43606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43608 ac_dir_suffix= ac_top_builddir=
43612 .) # No --srcdir option. We are building in place.
43614 if test -z "$ac_top_builddir"; then
43617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43619 [\\/]* | ?:[\\/]* ) # Absolute path.
43620 ac_srcdir=$srcdir$ac_dir_suffix;
43621 ac_top_srcdir=$srcdir ;;
43622 *) # Relative path.
43623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43627 # Do not use `cd foo && pwd` to compute absolute paths, because
43628 # the directories may not exist.
43630 .) ac_abs_builddir="$ac_dir";;
43633 .) ac_abs_builddir=`pwd`;;
43634 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43635 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43638 case $ac_abs_builddir in
43639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43641 case ${ac_top_builddir}. in
43642 .) ac_abs_top_builddir=$ac_abs_builddir;;
43643 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43644 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43647 case $ac_abs_builddir in
43648 .) ac_abs_srcdir=$ac_srcdir;;
43651 .) ac_abs_srcdir=$ac_abs_builddir;;
43652 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43653 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43656 case $ac_abs_builddir in
43657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43659 case $ac_top_srcdir in
43660 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43661 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43662 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43668 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43669 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43672 if test x"$ac_file" != x-; then
43673 { echo "$as_me:$LINENO: creating $ac_file" >&5
43674 echo "$as_me: creating $ac_file" >&6;}
43677 # Let's still pretend it is `configure' which instantiates (i.e., don't
43678 # use $as_me), people would be surprised to read:
43679 # /* config.h. Generated by config.status. */
43680 if test x"$ac_file" = x-; then
43683 configure_input="$ac_file. "
43685 configure_input=$configure_input"Generated from `echo $ac_file_in |
43686 sed 's,.*/,,'` by configure."
43688 # First look for the input files in the build tree, otherwise in the
43690 ac_file_inputs=`IFS=:
43691 for f in $ac_file_in; do
43693 -) echo $tmp/stdin ;;
43695 # Absolute (can't be DOS-style, as IFS=:)
43696 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43697 echo "$as_me: error: cannot find input file: $f" >&2;}
43698 { (exit 1); exit 1; }; }
43701 if test -f "$f"; then
43704 elif test -f "$srcdir/$f"; then
43709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43710 echo "$as_me: error: cannot find input file: $f" >&2;}
43711 { (exit 1); exit 1; }; }
43714 done` || { (exit 1); exit 1; }
43716 cat >>$CONFIG_STATUS <<_ACEOF
43720 cat >>$CONFIG_STATUS <<\_ACEOF
43722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43723 s,@configure_input@,$configure_input,;t t
43724 s,@srcdir@,$ac_srcdir,;t t
43725 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43726 s,@top_srcdir@,$ac_top_srcdir,;t t
43727 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43728 s,@builddir@,$ac_builddir,;t t
43729 s,@abs_builddir@,$ac_abs_builddir,;t t
43730 s,@top_builddir@,$ac_top_builddir,;t t
43731 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43732 s,@INSTALL@,$ac_INSTALL,;t t
43733 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43735 if test x"$ac_file" != x-; then
43736 mv $tmp/out $ac_file
43744 cat >>$CONFIG_STATUS <<\_ACEOF
43747 # CONFIG_HEADER section.
43750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43753 # ac_d sets the value in "#define NAME VALUE" lines.
43754 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43755 ac_dB='[ ].*$,\1#\2'
43758 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43759 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
43760 ac_uB='$,\1#\2define\3'
43764 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43767 - | *:- | *:-:* ) # input from stdin
43769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43773 * ) ac_file_in=$ac_file.in ;;
43776 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43777 echo "$as_me: creating $ac_file" >&6;}
43779 # First look for the input files in the build tree, otherwise in the
43781 ac_file_inputs=`IFS=:
43782 for f in $ac_file_in; do
43784 -) echo $tmp/stdin ;;
43786 # Absolute (can't be DOS-style, as IFS=:)
43787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43788 echo "$as_me: error: cannot find input file: $f" >&2;}
43789 { (exit 1); exit 1; }; }
43790 # Do quote $f, to prevent DOS paths from being IFS'd.
43793 if test -f "$f"; then
43796 elif test -f "$srcdir/$f"; then
43801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43802 echo "$as_me: error: cannot find input file: $f" >&2;}
43803 { (exit 1); exit 1; }; }
43806 done` || { (exit 1); exit 1; }
43807 # Remove the trailing spaces.
43808 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
43812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43813 # `conftest.undefs', that substitutes the proper values into
43814 # config.h.in to produce config.h. The first handles `#define'
43815 # templates, and the second `#undef' templates.
43816 # And first: Protect against being on the right side of a sed subst in
43817 # config.status. Protect against being in an unquoted here document
43818 # in config.status.
43819 rm -f conftest.defines conftest.undefs
43820 # Using a here document instead of a string reduces the quoting nightmare.
43821 # Putting comments in sed scripts is not portable.
43823 # `end' is used to avoid that the second main sed command (meant for
43824 # 0-ary CPP macros) applies to n-ary macro definitions.
43825 # See the Autoconf documentation for `clear'.
43826 cat >confdef2sed.sed <<\_ACEOF
43831 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43833 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43836 # If some macros were called several times there might be several times
43837 # the same #defines, which is useless. Nevertheless, we may not want to
43838 # sort them, since we want the *last* AC-DEFINE to be honored.
43839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43841 rm -f confdef2sed.sed
43843 # This sed command replaces #undef with comments. This is necessary, for
43844 # example, in the case of _POSIX_SOURCE, which is predefined and required
43845 # on some systems where configure will not decide to define it.
43846 cat >>conftest.undefs <<\_ACEOF
43847 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43850 # Break up conftest.defines because some shells have a limit on the size
43851 # of here documents, and old seds have small limits too (100 cmds).
43852 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43853 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43854 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43855 echo ' :' >>$CONFIG_STATUS
43856 rm -f conftest.tail
43857 while grep . conftest.defines >/dev/null
43859 # Write a limited-size here document to $tmp/defines.sed.
43860 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43861 # Speed up: don't consider the non `#define' lines.
43862 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
43863 # Work around the forget-to-reset-the-flag bug.
43864 echo 't clr' >>$CONFIG_STATUS
43865 echo ': clr' >>$CONFIG_STATUS
43866 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43868 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43870 mv $tmp/out $tmp/in
43872 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43873 rm -f conftest.defines
43874 mv conftest.tail conftest.defines
43876 rm -f conftest.defines
43877 echo ' fi # grep' >>$CONFIG_STATUS
43878 echo >>$CONFIG_STATUS
43880 # Break up conftest.undefs because some shells have a limit on the size
43881 # of here documents, and old seds have small limits too (100 cmds).
43882 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43883 rm -f conftest.tail
43884 while grep . conftest.undefs >/dev/null
43886 # Write a limited-size here document to $tmp/undefs.sed.
43887 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43888 # Speed up: don't consider the non `#undef'
43889 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
43890 # Work around the forget-to-reset-the-flag bug.
43891 echo 't clr' >>$CONFIG_STATUS
43892 echo ': clr' >>$CONFIG_STATUS
43893 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43895 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43897 mv $tmp/out $tmp/in
43899 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43900 rm -f conftest.undefs
43901 mv conftest.tail conftest.undefs
43903 rm -f conftest.undefs
43905 cat >>$CONFIG_STATUS <<\_ACEOF
43906 # Let's still pretend it is `configure' which instantiates (i.e., don't
43907 # use $as_me), people would be surprised to read:
43908 # /* config.h. Generated by config.status. */
43909 if test x"$ac_file" = x-; then
43910 echo "/* Generated by configure. */" >$tmp/config.h
43912 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43914 cat $tmp/in >>$tmp/config.h
43916 if test x"$ac_file" != x-; then
43917 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43919 echo "$as_me: $ac_file is unchanged" >&6;}
43921 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43923 X"$ac_file" : 'X\(//\)[^/]' \| \
43924 X"$ac_file" : 'X\(//\)$' \| \
43925 X"$ac_file" : 'X\(/\)' \| \
43926 . : '\(.\)' 2>/dev/null ||
43928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43930 /^X\(\/\/\)$/{ s//\1/; q; }
43931 /^X\(\/\).*/{ s//\1/; q; }
43933 { if $as_mkdir_p; then
43938 while test ! -d "$as_dir"; do
43939 as_dirs="$as_dir $as_dirs"
43940 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43942 X"$as_dir" : 'X\(//\)[^/]' \| \
43943 X"$as_dir" : 'X\(//\)$' \| \
43944 X"$as_dir" : 'X\(/\)' \| \
43945 . : '\(.\)' 2>/dev/null ||
43947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43949 /^X\(\/\/\)$/{ s//\1/; q; }
43950 /^X\(\/\).*/{ s//\1/; q; }
43953 test ! -n "$as_dirs" || mkdir $as_dirs
43954 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43956 { (exit 1); exit 1; }; }; }
43959 mv $tmp/config.h $ac_file
43963 rm -f $tmp/config.h
43965 # Compute $ac_file's index in $config_headers.
43967 for _am_header in $config_headers :; do
43968 case $_am_header in
43969 $ac_file | $ac_file:* )
43972 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43975 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
43976 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43977 X$ac_file : 'X\(//\)[^/]' \| \
43978 X$ac_file : 'X\(//\)$' \| \
43979 X$ac_file : 'X\(/\)' \| \
43980 . : '\(.\)' 2>/dev/null ||
43982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43984 /^X\(\/\/\)$/{ s//\1/; q; }
43985 /^X\(\/\).*/{ s//\1/; q; }
43986 s/.*/./; q'`/stamp-h$_am_stamp_count
43989 cat >>$CONFIG_STATUS <<\_ACEOF
43992 # CONFIG_COMMANDS section.
43994 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43995 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43996 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43997 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43998 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43999 X"$ac_dest" : 'X\(//\)[^/]' \| \
44000 X"$ac_dest" : 'X\(//\)$' \| \
44001 X"$ac_dest" : 'X\(/\)' \| \
44002 . : '\(.\)' 2>/dev/null ||
44004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44006 /^X\(\/\/\)$/{ s//\1/; q; }
44007 /^X\(\/\).*/{ s//\1/; q; }
44009 { if $as_mkdir_p; then
44014 while test ! -d "$as_dir"; do
44015 as_dirs="$as_dir $as_dirs"
44016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44018 X"$as_dir" : 'X\(//\)[^/]' \| \
44019 X"$as_dir" : 'X\(//\)$' \| \
44020 X"$as_dir" : 'X\(/\)' \| \
44021 . : '\(.\)' 2>/dev/null ||
44023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44025 /^X\(\/\/\)$/{ s//\1/; q; }
44026 /^X\(\/\).*/{ s//\1/; q; }
44029 test ! -n "$as_dirs" || mkdir $as_dirs
44030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44032 { (exit 1); exit 1; }; }; }
44036 if test "$ac_dir" != .; then
44037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44038 # A "../" for each directory in $ac_dir_suffix.
44039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44041 ac_dir_suffix= ac_top_builddir=
44045 .) # No --srcdir option. We are building in place.
44047 if test -z "$ac_top_builddir"; then
44050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44052 [\\/]* | ?:[\\/]* ) # Absolute path.
44053 ac_srcdir=$srcdir$ac_dir_suffix;
44054 ac_top_srcdir=$srcdir ;;
44055 *) # Relative path.
44056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44060 # Do not use `cd foo && pwd` to compute absolute paths, because
44061 # the directories may not exist.
44063 .) ac_abs_builddir="$ac_dir";;
44066 .) ac_abs_builddir=`pwd`;;
44067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44071 case $ac_abs_builddir in
44072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44074 case ${ac_top_builddir}. in
44075 .) ac_abs_top_builddir=$ac_abs_builddir;;
44076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44080 case $ac_abs_builddir in
44081 .) ac_abs_srcdir=$ac_srcdir;;
44084 .) ac_abs_srcdir=$ac_abs_builddir;;
44085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44089 case $ac_abs_builddir in
44090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44092 case $ac_top_srcdir in
44093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44100 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44101 echo "$as_me: executing $ac_dest commands" >&6;}
44103 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44104 # Strip MF so we end up with the name of the file.
44105 mf=`echo "$mf" | sed -e 's/:.*$//'`
44106 # Check whether this is an Automake generated Makefile or not.
44107 # We used to match only the files named `Makefile.in', but
44108 # some people rename them; so instead we look at the file content.
44109 # Grep'ing the first line is not enough: some people post-process
44110 # each Makefile.in and add a new line on top of each file to say so.
44111 # So let's grep whole file.
44112 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44113 dirpart=`(dirname "$mf") 2>/dev/null ||
44114 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44115 X"$mf" : 'X\(//\)[^/]' \| \
44116 X"$mf" : 'X\(//\)$' \| \
44117 X"$mf" : 'X\(/\)' \| \
44118 . : '\(.\)' 2>/dev/null ||
44120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44122 /^X\(\/\/\)$/{ s//\1/; q; }
44123 /^X\(\/\).*/{ s//\1/; q; }
44128 # Extract the definition of DEPDIR, am__include, and am__quote
44129 # from the Makefile without running `make'.
44130 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44131 test -z "$DEPDIR" && continue
44132 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44133 test -z "am__include" && continue
44134 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44135 # When using ansi2knr, U may be empty or an underscore; expand it
44136 U=`sed -n 's/^U = //p' < "$mf"`
44137 # Find all dependency output files, they are included files with
44138 # $(DEPDIR) in their names. We invoke sed twice because it is the
44139 # simplest approach to changing $(DEPDIR) to its actual value in the
44141 for file in `sed -n "
44142 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44143 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44144 # Make sure the directory exists.
44145 test -f "$dirpart/$file" && continue
44146 fdir=`(dirname "$file") 2>/dev/null ||
44147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44148 X"$file" : 'X\(//\)[^/]' \| \
44149 X"$file" : 'X\(//\)$' \| \
44150 X"$file" : 'X\(/\)' \| \
44151 . : '\(.\)' 2>/dev/null ||
44153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44155 /^X\(\/\/\)$/{ s//\1/; q; }
44156 /^X\(\/\).*/{ s//\1/; q; }
44158 { if $as_mkdir_p; then
44159 mkdir -p $dirpart/$fdir
44161 as_dir=$dirpart/$fdir
44163 while test ! -d "$as_dir"; do
44164 as_dirs="$as_dir $as_dirs"
44165 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44167 X"$as_dir" : 'X\(//\)[^/]' \| \
44168 X"$as_dir" : 'X\(//\)$' \| \
44169 X"$as_dir" : 'X\(/\)' \| \
44170 . : '\(.\)' 2>/dev/null ||
44172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44174 /^X\(\/\/\)$/{ s//\1/; q; }
44175 /^X\(\/\).*/{ s//\1/; q; }
44178 test ! -n "$as_dirs" || mkdir $as_dirs
44179 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44180 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44181 { (exit 1); exit 1; }; }; }
44183 # echo "creating $dirpart/$file"
44184 echo '# dummy' > "$dirpart/$file"
44191 BACKENDSC="servers/slapd/backends.c"
44192 echo "Making $BACKENDSC"
44194 cat > $BACKENDSC << ENDX
44195 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44197 * Copyright 1998-2005 The OpenLDAP Foundation.
44198 * All rights reserved.
44200 * Redistribution and use in source and binary forms, with or without
44201 * modification, are permitted only as authorized by the OpenLDAP
44204 * A copy of this license is available in the file LICENSE in the
44205 * top-level directory of the distribution or, alternatively, at
44206 * <http://www.OpenLDAP.org/license.html>.
44208 /* This file is automatically generated by configure; please do not edit. */
44210 #include "portable.h"
44214 if test "${STATIC_BACKENDS}"; then
44215 for b in config ${STATIC_BACKENDS}; do
44216 bb=`echo "${b}" | sed -e 's/back-//'`
44217 cat >> $BACKENDSC << ENDX
44218 extern BI_init ${bb}_back_initialize;
44222 cat >> $BACKENDSC << ENDX
44224 BackendInfo slap_binfo[] = {
44227 for b in config ${STATIC_BACKENDS}; do
44228 bb=`echo "${b}" | sed -e 's/back-//'`
44229 echo " Add ${bb} ..."
44230 cat >> $BACKENDSC << ENDX
44231 { "${bb}", ${bb}_back_initialize },
44235 cat >> $BACKENDSC << ENDX
44239 /* end of generated file */
44243 echo Please run \"make depend\" to build dependencies
44249 cat >>$CONFIG_STATUS <<\_ACEOF
44251 { (exit 0); exit 0; }
44253 chmod +x $CONFIG_STATUS
44254 ac_clean_files=$ac_clean_files_save
44257 # configure is writing to config.log, and then calls config.status.
44258 # config.status does its own redirection, appending to config.log.
44259 # Unfortunately, on DOS this fails, as config.log is still kept open
44260 # by configure, so config.status won't be able to write to it; its
44261 # output is simply discarded. So we exec the FD to /dev/null,
44262 # effectively closing config.log, so it can be properly (re)opened and
44263 # appended to by config.status. When coming back to configure, we
44264 # need to make the FD available again.
44265 if test "$no_create" != yes; then
44267 ac_config_status_args=
44268 test "$silent" = yes &&
44269 ac_config_status_args="$ac_config_status_args --quiet"
44271 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44274 # would make configure fail if this is the last instruction.
44275 $ac_cs_success || { (exit 1); exit 1; }