2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.600 2005/09/17 20:22:15 hallvard 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 ssleay 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
19168 for ac_header in openssl/ssl.h ssl.h
19170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19172 echo "$as_me:$LINENO: checking for $ac_header" >&5
19173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19180 # Is the header compilable?
19181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19189 $ac_includes_default
19190 #include <$ac_header>
19192 rm -f conftest.$ac_objext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194 (eval $ac_compile) 2>conftest.er1
19196 grep -v '^ *+' conftest.er1 >conftest.err
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
19201 { ac_try='test -z "$ac_c_werror_flag"
19202 || test ! -s conftest.err'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; } &&
19208 { ac_try='test -s conftest.$ac_objext'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_header_compiler=yes
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_header_compiler=no
19221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19223 echo "${ECHO_T}$ac_header_compiler" >&6
19225 # Is the header present?
19226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 #include <$ac_header>
19236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19239 grep -v '^ *+' conftest.er1 >conftest.err
19241 cat conftest.err >&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } >/dev/null; then
19244 if test -s conftest.err; then
19245 ac_cpp_err=$ac_c_preproc_warn_flag
19246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19253 if test -z "$ac_cpp_err"; then
19254 ac_header_preproc=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_header_preproc=no
19261 rm -f conftest.err conftest.$ac_ext
19262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19263 echo "${ECHO_T}$ac_header_preproc" >&6
19265 # So? What about this header?
19266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19272 ac_header_preproc=yes
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19289 ## ------------------------------------------ ##
19290 ## Report this to the AC_PACKAGE_NAME lists. ##
19291 ## ------------------------------------------ ##
19294 sed "s/^/$as_me: WARNING: /" >&2
19297 echo "$as_me:$LINENO: checking for $ac_header" >&5
19298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 eval "$as_ac_Header=\$ac_header_preproc"
19304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19309 cat >>confdefs.h <<_ACEOF
19310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19318 if test $ac_cv_header_openssl_ssl_h = yes ||
19319 test $ac_cv_header_ssl_h = yes ; then
19320 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
19321 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
19322 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lssl -lcrypto $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19334 /* Override any gcc2 internal prototype to avoid an error. */
19338 /* We use char because int might match the return type of a gcc2
19339 builtin and then its argument prototype would still apply. */
19340 char SSLeay_add_ssl_algorithms ();
19344 SSLeay_add_ssl_algorithms ();
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351 (eval $ac_link) 2>conftest.er1
19353 grep -v '^ *+' conftest.er1 >conftest.err
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
19358 { ac_try='test -z "$ac_c_werror_flag"
19359 || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19376 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
19378 rm -f conftest.err conftest.$ac_objext \
19379 conftest$ac_exeext conftest.$ac_ext
19380 LIBS=$ac_check_lib_save_LIBS
19382 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
19383 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
19384 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
19392 if test $have_ssleay = no ; then
19393 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19394 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19395 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-lssl -lcrypto $LIBS"
19400 cat >conftest.$ac_ext <<_ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19407 /* Override any gcc2 internal prototype to avoid an error. */
19411 /* We use char because int might match the return type of a gcc2
19412 builtin and then its argument prototype would still apply. */
19413 char SSL_library_init ();
19417 SSL_library_init ();
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19424 (eval $ac_link) 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_c_werror_flag"
19432 || test ! -s conftest.err'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_cv_lib_ssl_SSL_library_init=yes
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ac_cv_lib_ssl_SSL_library_init=no
19451 rm -f conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19455 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19456 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19457 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19466 if test $have_ssleay = no ; then
19467 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19468 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19469 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19472 ac_check_lib_save_LIBS=$LIBS
19473 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19481 /* Override any gcc2 internal prototype to avoid an error. */
19485 /* We use char because int might match the return type of a gcc2
19486 builtin and then its argument prototype would still apply. */
19487 char ssl3_accept ();
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19498 (eval $ac_link) 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag"
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest$ac_exeext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_cv_lib_ssl_ssl3_accept=yes
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_cv_lib_ssl_ssl3_accept=no
19525 rm -f conftest.err conftest.$ac_objext \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19529 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19530 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19531 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19540 if test $have_ssleay = yes ; then
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_SSLEAY 1
19550 if test $need_rsaref = yes; then
19552 cat >>confdefs.h <<\_ACEOF
19553 #define HAVE_RSAREF 1
19557 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19559 TLS_LIBS="-lssl -lcrypto"
19562 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19563 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19564 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 cat >conftest.$ac_ext <<_ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19575 #ifdef HAVE_OPENSSL_SSL_H
19576 #include <openssl/ssl.h>
19581 /* Require 0.9.7d+ */
19582 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19583 char *__ssl_compat = "0.9.7d";
19587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19589 ol_cv_ssl_crl_compat=yes
19591 ol_cv_ssl_crl_compat=no
19596 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19597 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19599 if test $ol_cv_ssl_crl_compat = no ; then
19603 cat >>confdefs.h <<\_ACEOF
19604 #define HAVE_OPENSSL_CRL 1
19611 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19612 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19616 if test $ol_link_tls = yes ; then
19618 cat >>confdefs.h <<\_ACEOF
19624 elif test $ol_with_tls = auto ; then
19625 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19626 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19628 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19630 elif test $ol_with_tls != no ; then
19631 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19632 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19633 { (exit 1); exit 1; }; }
19636 if test $ol_enable_lmpasswd != no; then
19637 if test $ol_link_tls != yes ; then
19638 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19639 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19640 { (exit 1); exit 1; }; }
19644 cat >>confdefs.h <<\_ACEOF
19645 #define SLAPD_LMHASH 1
19652 case $ol_with_threads in auto | yes | nt)
19655 echo "$as_me:$LINENO: checking for _beginthread" >&5
19656 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19657 if test "${ac_cv_func__beginthread+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19668 #define _beginthread innocuous__beginthread
19670 /* System header to define __stub macros and hopefully few prototypes,
19671 which can conflict with char _beginthread (); below.
19672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673 <limits.h> exists even on freestanding compilers. */
19676 # include <limits.h>
19678 # include <assert.h>
19681 #undef _beginthread
19683 /* Override any gcc2 internal prototype to avoid an error. */
19688 /* We use char because int might match the return type of a gcc2
19689 builtin and then its argument prototype would still apply. */
19690 char _beginthread ();
19691 /* The GNU C library defines this for functions which it implements
19692 to always fail with ENOSYS. Some functions are actually named
19693 something starting with __ and the normal name is an alias. */
19694 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19697 char (*f) () = _beginthread;
19706 return f != _beginthread;
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19713 (eval $ac_link) 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_c_werror_flag"
19721 || test ! -s conftest.err'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; } &&
19727 { ac_try='test -s conftest$ac_exeext'
19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729 (eval $ac_try) 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 ac_cv_func__beginthread=yes
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19738 ac_cv_func__beginthread=no
19740 rm -f conftest.err conftest.$ac_objext \
19741 conftest$ac_exeext conftest.$ac_ext
19743 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19744 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19747 if test $ac_cv_func__beginthread = yes ; then
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_NT_THREADS 1
19753 ol_cv_nt_threads=yes
19757 if test "$ol_cv_nt_threads" = yes ; then
19759 ol_with_threads=found
19760 ol_with_yielding_select=yes
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_NT_SERVICE_MANAGER 1
19768 cat >>confdefs.h <<\_ACEOF
19769 #define HAVE_NT_EVENT_LOG 1
19774 if test $ol_with_threads = nt ; then
19775 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19776 echo "$as_me: error: could not locate NT Threads" >&2;}
19777 { (exit 1); exit 1; }; }
19782 case $ol_with_threads in auto | yes | posix)
19785 for ac_header in pthread.h
19787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789 echo "$as_me:$LINENO: checking for $ac_header" >&5
19790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19797 # Is the header compilable?
19798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19800 cat >conftest.$ac_ext <<_ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19806 $ac_includes_default
19807 #include <$ac_header>
19809 rm -f conftest.$ac_objext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19811 (eval $ac_compile) 2>conftest.er1
19813 grep -v '^ *+' conftest.er1 >conftest.err
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } &&
19818 { ac_try='test -z "$ac_c_werror_flag"
19819 || test ! -s conftest.err'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_header_compiler=yes
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_header_compiler=no
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19840 echo "${ECHO_T}$ac_header_compiler" >&6
19842 # Is the header present?
19843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #include <$ac_header>
19853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } >/dev/null; then
19861 if test -s conftest.err; then
19862 ac_cpp_err=$ac_c_preproc_warn_flag
19863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19870 if test -z "$ac_cpp_err"; then
19871 ac_header_preproc=yes
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19876 ac_header_preproc=no
19878 rm -f conftest.err conftest.$ac_ext
19879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19880 echo "${ECHO_T}$ac_header_preproc" >&6
19882 # So? What about this header?
19883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19889 ac_header_preproc=yes
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19906 ## ------------------------------------------ ##
19907 ## Report this to the AC_PACKAGE_NAME lists. ##
19908 ## ------------------------------------------ ##
19911 sed "s/^/$as_me: WARNING: /" >&2
19914 echo "$as_me:$LINENO: checking for $ac_header" >&5
19915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 eval "$as_ac_Header=\$ac_header_preproc"
19921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19926 cat >>confdefs.h <<_ACEOF
19927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19935 if test $ac_cv_header_pthread_h = yes ; then
19936 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19937 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19938 if test "${ol_cv_pthread_version+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 cat >conftest.$ac_ext <<_ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19949 # include <pthread.h>
19955 int i = PTHREAD_CREATE_JOINABLE;
19961 rm -f conftest.$ac_objext
19962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19963 (eval $ac_compile) 2>conftest.er1
19965 grep -v '^ *+' conftest.er1 >conftest.err
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } &&
19970 { ac_try='test -z "$ac_c_werror_flag"
19971 || test ! -s conftest.err'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; } &&
19977 { ac_try='test -s conftest.$ac_objext'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19984 cat >conftest.$ac_ext <<_ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 #include <pthread.h>
19993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19994 $EGREP "pthread_detach" >/dev/null 2>&1; then
19995 ol_cv_pthread_version=10
19997 ol_cv_pthread_version=8
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20013 # include <pthread.h>
20014 # ifdef PTHREAD_CREATE_UNDETACHED
20019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20020 $EGREP "draft7" >/dev/null 2>&1; then
20021 ol_cv_pthread_version=7
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20030 #include <pthread.h>
20033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20034 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20035 ol_cv_pthread_version=6
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20045 # include <pthread.h>
20046 #ifdef PTHREAD_MUTEX_INITIALIZER
20051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20052 $EGREP "draft5" >/dev/null 2>&1; then
20053 ol_cv_pthread_version=5
20055 ol_cv_pthread_version=4
20066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20069 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20070 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20073 if test $ol_cv_pthread_version != 0 ; then
20075 cat >>confdefs.h <<_ACEOF
20076 #define HAVE_PTHREADS $ol_cv_pthread_version
20080 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20081 echo "$as_me: error: unknown pthread version" >&2;}
20082 { (exit 1); exit 1; }; }
20085 # consider threads found
20086 ol_with_threads=found
20089 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20090 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20091 if test "${ol_cv_header_linux_threads+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #include <pthread.h>
20102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20104 ol_cv_header_linux_threads=yes
20106 ol_cv_header_linux_threads=no
20112 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20113 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20114 if test $ol_cv_header_linux_threads = yes; then
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_LINUX_THREADS 1
20123 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20124 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20125 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 #include <pthread.h>
20135 #ifdef _POSIX_THREAD_IS_GNU_PTH
20140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20141 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20142 ol_cv_header_gnu_pth_pthread_h=yes
20144 ol_cv_header_gnu_pth_pthread_h=no
20150 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20151 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20154 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20156 for ac_header in sched.h
20158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160 echo "$as_me:$LINENO: checking for $ac_header" >&5
20161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20168 # Is the header compilable?
20169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 $ac_includes_default
20178 #include <$ac_header>
20180 rm -f conftest.$ac_objext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20182 (eval $ac_compile) 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag"
20190 || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest.$ac_objext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_header_compiler=yes
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_header_compiler=no
20209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20211 echo "${ECHO_T}$ac_header_compiler" >&6
20213 # Is the header present?
20214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #include <$ac_header>
20224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } >/dev/null; then
20232 if test -s conftest.err; then
20233 ac_cpp_err=$ac_c_preproc_warn_flag
20234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20241 if test -z "$ac_cpp_err"; then
20242 ac_header_preproc=yes
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 ac_header_preproc=no
20249 rm -f conftest.err conftest.$ac_ext
20250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20251 echo "${ECHO_T}$ac_header_preproc" >&6
20253 # So? What about this header?
20254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20260 ac_header_preproc=yes
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20277 ## ------------------------------------------ ##
20278 ## Report this to the AC_PACKAGE_NAME lists. ##
20279 ## ------------------------------------------ ##
20282 sed "s/^/$as_me: WARNING: /" >&2
20285 echo "$as_me:$LINENO: checking for $ac_header" >&5
20286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 eval "$as_ac_Header=\$ac_header_preproc"
20292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20297 cat >>confdefs.h <<_ACEOF
20298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20308 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20309 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20310 if test "${ol_cv_pthread_create+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 if test "$cross_compiling" = yes; then
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* pthread test headers */
20323 #include <pthread.h>
20324 #if HAVE_PTHREADS < 7
20328 #define NULL (void*)0
20331 static void *task(p)
20334 return (void *) (p == NULL);
20341 /* pthread test function */
20342 #ifndef PTHREAD_CREATE_DETACHED
20343 #define PTHREAD_CREATE_DETACHED 1
20347 int detach = PTHREAD_CREATE_DETACHED;
20349 #if HAVE_PTHREADS > 4
20350 /* Final pthreads */
20351 pthread_attr_t attr;
20353 status = pthread_attr_init(&attr);
20354 if( status ) return status;
20356 #if HAVE_PTHREADS < 7
20357 status = pthread_attr_setdetachstate(&attr, &detach);
20358 if( status < 0 ) status = errno;
20360 status = pthread_attr_setdetachstate(&attr, detach);
20362 if( status ) return status;
20363 status = pthread_create( &t, &attr, task, NULL );
20364 #if HAVE_PTHREADS < 7
20365 if( status < 0 ) status = errno;
20367 if( status ) return status;
20369 /* Draft 4 pthreads */
20370 status = pthread_create( &t, pthread_attr_default, task, NULL );
20371 if( status ) return errno;
20373 /* give thread a chance to complete */
20374 /* it should remain joinable and hence detachable */
20377 status = pthread_detach( &t );
20378 if( status ) return errno;
20381 #ifdef HAVE_LINUX_THREADS
20382 pthread_kill_other_threads_np();
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag"
20401 || test ! -s conftest.err'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest$ac_exeext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ol_cv_pthread_create=yes
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ol_cv_pthread_create=no
20420 rm -f conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20423 cat >conftest.$ac_ext <<_ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 /* pthread test headers */
20431 #include <pthread.h>
20432 #if HAVE_PTHREADS < 7
20436 #define NULL (void*)0
20439 static void *task(p)
20442 return (void *) (p == NULL);
20446 int main(argc, argv)
20451 /* pthread test function */
20452 #ifndef PTHREAD_CREATE_DETACHED
20453 #define PTHREAD_CREATE_DETACHED 1
20457 int detach = PTHREAD_CREATE_DETACHED;
20459 #if HAVE_PTHREADS > 4
20460 /* Final pthreads */
20461 pthread_attr_t attr;
20463 status = pthread_attr_init(&attr);
20464 if( status ) return status;
20466 #if HAVE_PTHREADS < 7
20467 status = pthread_attr_setdetachstate(&attr, &detach);
20468 if( status < 0 ) status = errno;
20470 status = pthread_attr_setdetachstate(&attr, detach);
20472 if( status ) return status;
20473 status = pthread_create( &t, &attr, task, NULL );
20474 #if HAVE_PTHREADS < 7
20475 if( status < 0 ) status = errno;
20477 if( status ) return status;
20479 /* Draft 4 pthreads */
20480 status = pthread_create( &t, pthread_attr_default, task, NULL );
20481 if( status ) return errno;
20483 /* give thread a chance to complete */
20484 /* it should remain joinable and hence detachable */
20487 status = pthread_detach( &t );
20488 if( status ) return errno;
20491 #ifdef HAVE_LINUX_THREADS
20492 pthread_kill_other_threads_np();
20500 rm -f conftest$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ol_cv_pthread_create=yes
20513 echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ( exit $ac_status )
20518 ol_cv_pthread_create=no
20520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20523 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20524 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20526 if test $ol_cv_pthread_create != no ; then
20527 ol_link_threads=posix
20528 ol_link_pthreads=""
20531 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20532 if test "$ol_link_threads" = no ; then
20534 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20535 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20536 if test "${ol_cv_pthread_kthread+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20542 LIBS="-kthread $LIBS"
20544 if test "$cross_compiling" = yes; then
20545 cat >conftest.$ac_ext <<_ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20552 /* pthread test headers */
20553 #include <pthread.h>
20554 #if HAVE_PTHREADS < 7
20558 #define NULL (void*)0
20561 static void *task(p)
20564 return (void *) (p == NULL);
20571 /* pthread test function */
20572 #ifndef PTHREAD_CREATE_DETACHED
20573 #define PTHREAD_CREATE_DETACHED 1
20577 int detach = PTHREAD_CREATE_DETACHED;
20579 #if HAVE_PTHREADS > 4
20580 /* Final pthreads */
20581 pthread_attr_t attr;
20583 status = pthread_attr_init(&attr);
20584 if( status ) return status;
20586 #if HAVE_PTHREADS < 7
20587 status = pthread_attr_setdetachstate(&attr, &detach);
20588 if( status < 0 ) status = errno;
20590 status = pthread_attr_setdetachstate(&attr, detach);
20592 if( status ) return status;
20593 status = pthread_create( &t, &attr, task, NULL );
20594 #if HAVE_PTHREADS < 7
20595 if( status < 0 ) status = errno;
20597 if( status ) return status;
20599 /* Draft 4 pthreads */
20600 status = pthread_create( &t, pthread_attr_default, task, NULL );
20601 if( status ) return errno;
20603 /* give thread a chance to complete */
20604 /* it should remain joinable and hence detachable */
20607 status = pthread_detach( &t );
20608 if( status ) return errno;
20611 #ifdef HAVE_LINUX_THREADS
20612 pthread_kill_other_threads_np();
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623 (eval $ac_link) 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -z "$ac_c_werror_flag"
20631 || test ! -s conftest.err'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; } &&
20637 { ac_try='test -s conftest$ac_exeext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 ol_cv_pthread_kthread=yes
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ol_cv_pthread_kthread=no
20650 rm -f conftest.err conftest.$ac_objext \
20651 conftest$ac_exeext conftest.$ac_ext
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 /* pthread test headers */
20661 #include <pthread.h>
20662 #if HAVE_PTHREADS < 7
20666 #define NULL (void*)0
20669 static void *task(p)
20672 return (void *) (p == NULL);
20676 int main(argc, argv)
20681 /* pthread test function */
20682 #ifndef PTHREAD_CREATE_DETACHED
20683 #define PTHREAD_CREATE_DETACHED 1
20687 int detach = PTHREAD_CREATE_DETACHED;
20689 #if HAVE_PTHREADS > 4
20690 /* Final pthreads */
20691 pthread_attr_t attr;
20693 status = pthread_attr_init(&attr);
20694 if( status ) return status;
20696 #if HAVE_PTHREADS < 7
20697 status = pthread_attr_setdetachstate(&attr, &detach);
20698 if( status < 0 ) status = errno;
20700 status = pthread_attr_setdetachstate(&attr, detach);
20702 if( status ) return status;
20703 status = pthread_create( &t, &attr, task, NULL );
20704 #if HAVE_PTHREADS < 7
20705 if( status < 0 ) status = errno;
20707 if( status ) return status;
20709 /* Draft 4 pthreads */
20710 status = pthread_create( &t, pthread_attr_default, task, NULL );
20711 if( status ) return errno;
20713 /* give thread a chance to complete */
20714 /* it should remain joinable and hence detachable */
20717 status = pthread_detach( &t );
20718 if( status ) return errno;
20721 #ifdef HAVE_LINUX_THREADS
20722 pthread_kill_other_threads_np();
20730 rm -f conftest$ac_exeext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20732 (eval $ac_link) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
20741 ol_cv_pthread_kthread=yes
20743 echo "$as_me: program exited with status $ac_status" >&5
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ( exit $ac_status )
20748 ol_cv_pthread_kthread=no
20750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20757 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20758 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20760 if test $ol_cv_pthread_kthread = yes ; then
20761 ol_link_pthreads="-kthread"
20762 ol_link_threads=posix
20766 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20767 if test "$ol_link_threads" = no ; then
20769 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20770 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20771 if test "${ol_cv_pthread_pthread+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 LIBS="-pthread $LIBS"
20779 if test "$cross_compiling" = yes; then
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20787 /* pthread test headers */
20788 #include <pthread.h>
20789 #if HAVE_PTHREADS < 7
20793 #define NULL (void*)0
20796 static void *task(p)
20799 return (void *) (p == NULL);
20806 /* pthread test function */
20807 #ifndef PTHREAD_CREATE_DETACHED
20808 #define PTHREAD_CREATE_DETACHED 1
20812 int detach = PTHREAD_CREATE_DETACHED;
20814 #if HAVE_PTHREADS > 4
20815 /* Final pthreads */
20816 pthread_attr_t attr;
20818 status = pthread_attr_init(&attr);
20819 if( status ) return status;
20821 #if HAVE_PTHREADS < 7
20822 status = pthread_attr_setdetachstate(&attr, &detach);
20823 if( status < 0 ) status = errno;
20825 status = pthread_attr_setdetachstate(&attr, detach);
20827 if( status ) return status;
20828 status = pthread_create( &t, &attr, task, NULL );
20829 #if HAVE_PTHREADS < 7
20830 if( status < 0 ) status = errno;
20832 if( status ) return status;
20834 /* Draft 4 pthreads */
20835 status = pthread_create( &t, pthread_attr_default, task, NULL );
20836 if( status ) return errno;
20838 /* give thread a chance to complete */
20839 /* it should remain joinable and hence detachable */
20842 status = pthread_detach( &t );
20843 if( status ) return errno;
20846 #ifdef HAVE_LINUX_THREADS
20847 pthread_kill_other_threads_np();
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858 (eval $ac_link) 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest$ac_exeext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 ol_cv_pthread_pthread=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ol_cv_pthread_pthread=no
20885 rm -f conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20895 /* pthread test headers */
20896 #include <pthread.h>
20897 #if HAVE_PTHREADS < 7
20901 #define NULL (void*)0
20904 static void *task(p)
20907 return (void *) (p == NULL);
20911 int main(argc, argv)
20916 /* pthread test function */
20917 #ifndef PTHREAD_CREATE_DETACHED
20918 #define PTHREAD_CREATE_DETACHED 1
20922 int detach = PTHREAD_CREATE_DETACHED;
20924 #if HAVE_PTHREADS > 4
20925 /* Final pthreads */
20926 pthread_attr_t attr;
20928 status = pthread_attr_init(&attr);
20929 if( status ) return status;
20931 #if HAVE_PTHREADS < 7
20932 status = pthread_attr_setdetachstate(&attr, &detach);
20933 if( status < 0 ) status = errno;
20935 status = pthread_attr_setdetachstate(&attr, detach);
20937 if( status ) return status;
20938 status = pthread_create( &t, &attr, task, NULL );
20939 #if HAVE_PTHREADS < 7
20940 if( status < 0 ) status = errno;
20942 if( status ) return status;
20944 /* Draft 4 pthreads */
20945 status = pthread_create( &t, pthread_attr_default, task, NULL );
20946 if( status ) return errno;
20948 /* give thread a chance to complete */
20949 /* it should remain joinable and hence detachable */
20952 status = pthread_detach( &t );
20953 if( status ) return errno;
20956 #ifdef HAVE_LINUX_THREADS
20957 pthread_kill_other_threads_np();
20965 rm -f conftest$ac_exeext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20967 (eval $ac_link) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 ol_cv_pthread_pthread=yes
20978 echo "$as_me: program exited with status $ac_status" >&5
20979 echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ( exit $ac_status )
20983 ol_cv_pthread_pthread=no
20985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20992 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20993 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20995 if test $ol_cv_pthread_pthread = yes ; then
20996 ol_link_pthreads="-pthread"
20997 ol_link_threads=posix
21001 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21002 if test "$ol_link_threads" = no ; then
21004 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21005 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21006 if test "${ol_cv_pthread_pthreads+set}" = set; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 LIBS="-pthreads $LIBS"
21014 if test "$cross_compiling" = yes; then
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21022 /* pthread test headers */
21023 #include <pthread.h>
21024 #if HAVE_PTHREADS < 7
21028 #define NULL (void*)0
21031 static void *task(p)
21034 return (void *) (p == NULL);
21041 /* pthread test function */
21042 #ifndef PTHREAD_CREATE_DETACHED
21043 #define PTHREAD_CREATE_DETACHED 1
21047 int detach = PTHREAD_CREATE_DETACHED;
21049 #if HAVE_PTHREADS > 4
21050 /* Final pthreads */
21051 pthread_attr_t attr;
21053 status = pthread_attr_init(&attr);
21054 if( status ) return status;
21056 #if HAVE_PTHREADS < 7
21057 status = pthread_attr_setdetachstate(&attr, &detach);
21058 if( status < 0 ) status = errno;
21060 status = pthread_attr_setdetachstate(&attr, detach);
21062 if( status ) return status;
21063 status = pthread_create( &t, &attr, task, NULL );
21064 #if HAVE_PTHREADS < 7
21065 if( status < 0 ) status = errno;
21067 if( status ) return status;
21069 /* Draft 4 pthreads */
21070 status = pthread_create( &t, pthread_attr_default, task, NULL );
21071 if( status ) return errno;
21073 /* give thread a chance to complete */
21074 /* it should remain joinable and hence detachable */
21077 status = pthread_detach( &t );
21078 if( status ) return errno;
21081 #ifdef HAVE_LINUX_THREADS
21082 pthread_kill_other_threads_np();
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21093 (eval $ac_link) 2>conftest.er1
21095 grep -v '^ *+' conftest.er1 >conftest.err
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } &&
21100 { ac_try='test -z "$ac_c_werror_flag"
21101 || test ! -s conftest.err'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; } &&
21107 { ac_try='test -s conftest$ac_exeext'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ol_cv_pthread_pthreads=yes
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ol_cv_pthread_pthreads=no
21120 rm -f conftest.err conftest.$ac_objext \
21121 conftest$ac_exeext conftest.$ac_ext
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21130 /* pthread test headers */
21131 #include <pthread.h>
21132 #if HAVE_PTHREADS < 7
21136 #define NULL (void*)0
21139 static void *task(p)
21142 return (void *) (p == NULL);
21146 int main(argc, argv)
21151 /* pthread test function */
21152 #ifndef PTHREAD_CREATE_DETACHED
21153 #define PTHREAD_CREATE_DETACHED 1
21157 int detach = PTHREAD_CREATE_DETACHED;
21159 #if HAVE_PTHREADS > 4
21160 /* Final pthreads */
21161 pthread_attr_t attr;
21163 status = pthread_attr_init(&attr);
21164 if( status ) return status;
21166 #if HAVE_PTHREADS < 7
21167 status = pthread_attr_setdetachstate(&attr, &detach);
21168 if( status < 0 ) status = errno;
21170 status = pthread_attr_setdetachstate(&attr, detach);
21172 if( status ) return status;
21173 status = pthread_create( &t, &attr, task, NULL );
21174 #if HAVE_PTHREADS < 7
21175 if( status < 0 ) status = errno;
21177 if( status ) return status;
21179 /* Draft 4 pthreads */
21180 status = pthread_create( &t, pthread_attr_default, task, NULL );
21181 if( status ) return errno;
21183 /* give thread a chance to complete */
21184 /* it should remain joinable and hence detachable */
21187 status = pthread_detach( &t );
21188 if( status ) return errno;
21191 #ifdef HAVE_LINUX_THREADS
21192 pthread_kill_other_threads_np();
21200 rm -f conftest$ac_exeext
21201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21202 (eval $ac_link) 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ol_cv_pthread_pthreads=yes
21213 echo "$as_me: program exited with status $ac_status" >&5
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ( exit $ac_status )
21218 ol_cv_pthread_pthreads=no
21220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21227 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21228 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21230 if test $ol_cv_pthread_pthreads = yes ; then
21231 ol_link_pthreads="-pthreads"
21232 ol_link_threads=posix
21236 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21237 if test "$ol_link_threads" = no ; then
21239 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21240 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21241 if test "${ol_cv_pthread_mthreads+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 LIBS="-mthreads $LIBS"
21249 if test "$cross_compiling" = yes; then
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21257 /* pthread test headers */
21258 #include <pthread.h>
21259 #if HAVE_PTHREADS < 7
21263 #define NULL (void*)0
21266 static void *task(p)
21269 return (void *) (p == NULL);
21276 /* pthread test function */
21277 #ifndef PTHREAD_CREATE_DETACHED
21278 #define PTHREAD_CREATE_DETACHED 1
21282 int detach = PTHREAD_CREATE_DETACHED;
21284 #if HAVE_PTHREADS > 4
21285 /* Final pthreads */
21286 pthread_attr_t attr;
21288 status = pthread_attr_init(&attr);
21289 if( status ) return status;
21291 #if HAVE_PTHREADS < 7
21292 status = pthread_attr_setdetachstate(&attr, &detach);
21293 if( status < 0 ) status = errno;
21295 status = pthread_attr_setdetachstate(&attr, detach);
21297 if( status ) return status;
21298 status = pthread_create( &t, &attr, task, NULL );
21299 #if HAVE_PTHREADS < 7
21300 if( status < 0 ) status = errno;
21302 if( status ) return status;
21304 /* Draft 4 pthreads */
21305 status = pthread_create( &t, pthread_attr_default, task, NULL );
21306 if( status ) return errno;
21308 /* give thread a chance to complete */
21309 /* it should remain joinable and hence detachable */
21312 status = pthread_detach( &t );
21313 if( status ) return errno;
21316 #ifdef HAVE_LINUX_THREADS
21317 pthread_kill_other_threads_np();
21326 rm -f conftest.$ac_objext conftest$ac_exeext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21328 (eval $ac_link) 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
21335 { ac_try='test -z "$ac_c_werror_flag"
21336 || test ! -s conftest.err'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; } &&
21342 { ac_try='test -s conftest$ac_exeext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ol_cv_pthread_mthreads=yes
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ol_cv_pthread_mthreads=no
21355 rm -f conftest.err conftest.$ac_objext \
21356 conftest$ac_exeext conftest.$ac_ext
21358 cat >conftest.$ac_ext <<_ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21365 /* pthread test headers */
21366 #include <pthread.h>
21367 #if HAVE_PTHREADS < 7
21371 #define NULL (void*)0
21374 static void *task(p)
21377 return (void *) (p == NULL);
21381 int main(argc, argv)
21386 /* pthread test function */
21387 #ifndef PTHREAD_CREATE_DETACHED
21388 #define PTHREAD_CREATE_DETACHED 1
21392 int detach = PTHREAD_CREATE_DETACHED;
21394 #if HAVE_PTHREADS > 4
21395 /* Final pthreads */
21396 pthread_attr_t attr;
21398 status = pthread_attr_init(&attr);
21399 if( status ) return status;
21401 #if HAVE_PTHREADS < 7
21402 status = pthread_attr_setdetachstate(&attr, &detach);
21403 if( status < 0 ) status = errno;
21405 status = pthread_attr_setdetachstate(&attr, detach);
21407 if( status ) return status;
21408 status = pthread_create( &t, &attr, task, NULL );
21409 #if HAVE_PTHREADS < 7
21410 if( status < 0 ) status = errno;
21412 if( status ) return status;
21414 /* Draft 4 pthreads */
21415 status = pthread_create( &t, pthread_attr_default, task, NULL );
21416 if( status ) return errno;
21418 /* give thread a chance to complete */
21419 /* it should remain joinable and hence detachable */
21422 status = pthread_detach( &t );
21423 if( status ) return errno;
21426 #ifdef HAVE_LINUX_THREADS
21427 pthread_kill_other_threads_np();
21435 rm -f conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437 (eval $ac_link) 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446 ol_cv_pthread_mthreads=yes
21448 echo "$as_me: program exited with status $ac_status" >&5
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ( exit $ac_status )
21453 ol_cv_pthread_mthreads=no
21455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21462 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21463 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21465 if test $ol_cv_pthread_mthreads = yes ; then
21466 ol_link_pthreads="-mthreads"
21467 ol_link_threads=posix
21471 # Pthread try link: -thread (ol_cv_pthread_thread)
21472 if test "$ol_link_threads" = no ; then
21474 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21475 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21476 if test "${ol_cv_pthread_thread+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 LIBS="-thread $LIBS"
21484 if test "$cross_compiling" = yes; then
21485 cat >conftest.$ac_ext <<_ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21492 /* pthread test headers */
21493 #include <pthread.h>
21494 #if HAVE_PTHREADS < 7
21498 #define NULL (void*)0
21501 static void *task(p)
21504 return (void *) (p == NULL);
21511 /* pthread test function */
21512 #ifndef PTHREAD_CREATE_DETACHED
21513 #define PTHREAD_CREATE_DETACHED 1
21517 int detach = PTHREAD_CREATE_DETACHED;
21519 #if HAVE_PTHREADS > 4
21520 /* Final pthreads */
21521 pthread_attr_t attr;
21523 status = pthread_attr_init(&attr);
21524 if( status ) return status;
21526 #if HAVE_PTHREADS < 7
21527 status = pthread_attr_setdetachstate(&attr, &detach);
21528 if( status < 0 ) status = errno;
21530 status = pthread_attr_setdetachstate(&attr, detach);
21532 if( status ) return status;
21533 status = pthread_create( &t, &attr, task, NULL );
21534 #if HAVE_PTHREADS < 7
21535 if( status < 0 ) status = errno;
21537 if( status ) return status;
21539 /* Draft 4 pthreads */
21540 status = pthread_create( &t, pthread_attr_default, task, NULL );
21541 if( status ) return errno;
21543 /* give thread a chance to complete */
21544 /* it should remain joinable and hence detachable */
21547 status = pthread_detach( &t );
21548 if( status ) return errno;
21551 #ifdef HAVE_LINUX_THREADS
21552 pthread_kill_other_threads_np();
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563 (eval $ac_link) 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } &&
21570 { ac_try='test -z "$ac_c_werror_flag"
21571 || test ! -s conftest.err'
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; } &&
21577 { ac_try='test -s conftest$ac_exeext'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 ol_cv_pthread_thread=yes
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ol_cv_pthread_thread=no
21590 rm -f conftest.err conftest.$ac_objext \
21591 conftest$ac_exeext conftest.$ac_ext
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 /* pthread test headers */
21601 #include <pthread.h>
21602 #if HAVE_PTHREADS < 7
21606 #define NULL (void*)0
21609 static void *task(p)
21612 return (void *) (p == NULL);
21616 int main(argc, argv)
21621 /* pthread test function */
21622 #ifndef PTHREAD_CREATE_DETACHED
21623 #define PTHREAD_CREATE_DETACHED 1
21627 int detach = PTHREAD_CREATE_DETACHED;
21629 #if HAVE_PTHREADS > 4
21630 /* Final pthreads */
21631 pthread_attr_t attr;
21633 status = pthread_attr_init(&attr);
21634 if( status ) return status;
21636 #if HAVE_PTHREADS < 7
21637 status = pthread_attr_setdetachstate(&attr, &detach);
21638 if( status < 0 ) status = errno;
21640 status = pthread_attr_setdetachstate(&attr, detach);
21642 if( status ) return status;
21643 status = pthread_create( &t, &attr, task, NULL );
21644 #if HAVE_PTHREADS < 7
21645 if( status < 0 ) status = errno;
21647 if( status ) return status;
21649 /* Draft 4 pthreads */
21650 status = pthread_create( &t, pthread_attr_default, task, NULL );
21651 if( status ) return errno;
21653 /* give thread a chance to complete */
21654 /* it should remain joinable and hence detachable */
21657 status = pthread_detach( &t );
21658 if( status ) return errno;
21661 #ifdef HAVE_LINUX_THREADS
21662 pthread_kill_other_threads_np();
21670 rm -f conftest$ac_exeext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21672 (eval $ac_link) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 ol_cv_pthread_thread=yes
21683 echo "$as_me: program exited with status $ac_status" >&5
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ( exit $ac_status )
21688 ol_cv_pthread_thread=no
21690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21697 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21698 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21700 if test $ol_cv_pthread_thread = yes ; then
21701 ol_link_pthreads="-thread"
21702 ol_link_threads=posix
21707 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21708 if test "$ol_link_threads" = no ; then
21709 # try -lpthread -lmach -lexc -lc_r
21710 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21711 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21712 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21720 if test "$cross_compiling" = yes; then
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21728 /* pthread test headers */
21729 #include <pthread.h>
21730 #if HAVE_PTHREADS < 7
21734 #define NULL (void*)0
21737 static void *task(p)
21740 return (void *) (p == NULL);
21747 /* pthread test function */
21748 #ifndef PTHREAD_CREATE_DETACHED
21749 #define PTHREAD_CREATE_DETACHED 1
21753 int detach = PTHREAD_CREATE_DETACHED;
21755 #if HAVE_PTHREADS > 4
21756 /* Final pthreads */
21757 pthread_attr_t attr;
21759 status = pthread_attr_init(&attr);
21760 if( status ) return status;
21762 #if HAVE_PTHREADS < 7
21763 status = pthread_attr_setdetachstate(&attr, &detach);
21764 if( status < 0 ) status = errno;
21766 status = pthread_attr_setdetachstate(&attr, detach);
21768 if( status ) return status;
21769 status = pthread_create( &t, &attr, task, NULL );
21770 #if HAVE_PTHREADS < 7
21771 if( status < 0 ) status = errno;
21773 if( status ) return status;
21775 /* Draft 4 pthreads */
21776 status = pthread_create( &t, pthread_attr_default, task, NULL );
21777 if( status ) return errno;
21779 /* give thread a chance to complete */
21780 /* it should remain joinable and hence detachable */
21783 status = pthread_detach( &t );
21784 if( status ) return errno;
21787 #ifdef HAVE_LINUX_THREADS
21788 pthread_kill_other_threads_np();
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799 (eval $ac_link) 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } &&
21806 { ac_try='test -z "$ac_c_werror_flag"
21807 || test ! -s conftest.err'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21826 rm -f conftest.err conftest.$ac_objext \
21827 conftest$ac_exeext conftest.$ac_ext
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 /* pthread test headers */
21837 #include <pthread.h>
21838 #if HAVE_PTHREADS < 7
21842 #define NULL (void*)0
21845 static void *task(p)
21848 return (void *) (p == NULL);
21852 int main(argc, argv)
21857 /* pthread test function */
21858 #ifndef PTHREAD_CREATE_DETACHED
21859 #define PTHREAD_CREATE_DETACHED 1
21863 int detach = PTHREAD_CREATE_DETACHED;
21865 #if HAVE_PTHREADS > 4
21866 /* Final pthreads */
21867 pthread_attr_t attr;
21869 status = pthread_attr_init(&attr);
21870 if( status ) return status;
21872 #if HAVE_PTHREADS < 7
21873 status = pthread_attr_setdetachstate(&attr, &detach);
21874 if( status < 0 ) status = errno;
21876 status = pthread_attr_setdetachstate(&attr, detach);
21878 if( status ) return status;
21879 status = pthread_create( &t, &attr, task, NULL );
21880 #if HAVE_PTHREADS < 7
21881 if( status < 0 ) status = errno;
21883 if( status ) return status;
21885 /* Draft 4 pthreads */
21886 status = pthread_create( &t, pthread_attr_default, task, NULL );
21887 if( status ) return errno;
21889 /* give thread a chance to complete */
21890 /* it should remain joinable and hence detachable */
21893 status = pthread_detach( &t );
21894 if( status ) return errno;
21897 #ifdef HAVE_LINUX_THREADS
21898 pthread_kill_other_threads_np();
21906 rm -f conftest$ac_exeext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908 (eval $ac_link) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
21917 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21919 echo "$as_me: program exited with status $ac_status" >&5
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ( exit $ac_status )
21924 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21933 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21934 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21936 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21937 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21938 ol_link_threads=posix
21942 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21943 if test "$ol_link_threads" = no ; then
21944 # try -lpthread -lmach -lexc
21945 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21946 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21947 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 LIBS="-lpthread -lmach -lexc $LIBS"
21955 if test "$cross_compiling" = yes; then
21956 cat >conftest.$ac_ext <<_ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21963 /* pthread test headers */
21964 #include <pthread.h>
21965 #if HAVE_PTHREADS < 7
21969 #define NULL (void*)0
21972 static void *task(p)
21975 return (void *) (p == NULL);
21982 /* pthread test function */
21983 #ifndef PTHREAD_CREATE_DETACHED
21984 #define PTHREAD_CREATE_DETACHED 1
21988 int detach = PTHREAD_CREATE_DETACHED;
21990 #if HAVE_PTHREADS > 4
21991 /* Final pthreads */
21992 pthread_attr_t attr;
21994 status = pthread_attr_init(&attr);
21995 if( status ) return status;
21997 #if HAVE_PTHREADS < 7
21998 status = pthread_attr_setdetachstate(&attr, &detach);
21999 if( status < 0 ) status = errno;
22001 status = pthread_attr_setdetachstate(&attr, detach);
22003 if( status ) return status;
22004 status = pthread_create( &t, &attr, task, NULL );
22005 #if HAVE_PTHREADS < 7
22006 if( status < 0 ) status = errno;
22008 if( status ) return status;
22010 /* Draft 4 pthreads */
22011 status = pthread_create( &t, pthread_attr_default, task, NULL );
22012 if( status ) return errno;
22014 /* give thread a chance to complete */
22015 /* it should remain joinable and hence detachable */
22018 status = pthread_detach( &t );
22019 if( status ) return errno;
22022 #ifdef HAVE_LINUX_THREADS
22023 pthread_kill_other_threads_np();
22032 rm -f conftest.$ac_objext conftest$ac_exeext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22034 (eval $ac_link) 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_c_werror_flag"
22042 || test ! -s conftest.err'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; } &&
22048 { ac_try='test -s conftest$ac_exeext'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22054 ol_cv_pthread_lpthread_lmach_lexc=yes
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 ol_cv_pthread_lpthread_lmach_lexc=no
22061 rm -f conftest.err conftest.$ac_objext \
22062 conftest$ac_exeext conftest.$ac_ext
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22071 /* pthread test headers */
22072 #include <pthread.h>
22073 #if HAVE_PTHREADS < 7
22077 #define NULL (void*)0
22080 static void *task(p)
22083 return (void *) (p == NULL);
22087 int main(argc, argv)
22092 /* pthread test function */
22093 #ifndef PTHREAD_CREATE_DETACHED
22094 #define PTHREAD_CREATE_DETACHED 1
22098 int detach = PTHREAD_CREATE_DETACHED;
22100 #if HAVE_PTHREADS > 4
22101 /* Final pthreads */
22102 pthread_attr_t attr;
22104 status = pthread_attr_init(&attr);
22105 if( status ) return status;
22107 #if HAVE_PTHREADS < 7
22108 status = pthread_attr_setdetachstate(&attr, &detach);
22109 if( status < 0 ) status = errno;
22111 status = pthread_attr_setdetachstate(&attr, detach);
22113 if( status ) return status;
22114 status = pthread_create( &t, &attr, task, NULL );
22115 #if HAVE_PTHREADS < 7
22116 if( status < 0 ) status = errno;
22118 if( status ) return status;
22120 /* Draft 4 pthreads */
22121 status = pthread_create( &t, pthread_attr_default, task, NULL );
22122 if( status ) return errno;
22124 /* give thread a chance to complete */
22125 /* it should remain joinable and hence detachable */
22128 status = pthread_detach( &t );
22129 if( status ) return errno;
22132 #ifdef HAVE_LINUX_THREADS
22133 pthread_kill_other_threads_np();
22141 rm -f conftest$ac_exeext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22143 (eval $ac_link) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 ol_cv_pthread_lpthread_lmach_lexc=yes
22154 echo "$as_me: program exited with status $ac_status" >&5
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ( exit $ac_status )
22159 ol_cv_pthread_lpthread_lmach_lexc=no
22161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22168 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22169 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22171 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22172 ol_link_pthreads="-lpthread -lmach -lexc"
22173 ol_link_threads=posix
22178 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22179 if test "$ol_link_threads" = no ; then
22180 # try -lpthread -Wl,-woff,85
22181 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22182 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22183 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22191 if test "$cross_compiling" = yes; then
22192 cat >conftest.$ac_ext <<_ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22199 /* pthread test headers */
22200 #include <pthread.h>
22201 #if HAVE_PTHREADS < 7
22205 #define NULL (void*)0
22208 static void *task(p)
22211 return (void *) (p == NULL);
22218 /* pthread test function */
22219 #ifndef PTHREAD_CREATE_DETACHED
22220 #define PTHREAD_CREATE_DETACHED 1
22224 int detach = PTHREAD_CREATE_DETACHED;
22226 #if HAVE_PTHREADS > 4
22227 /* Final pthreads */
22228 pthread_attr_t attr;
22230 status = pthread_attr_init(&attr);
22231 if( status ) return status;
22233 #if HAVE_PTHREADS < 7
22234 status = pthread_attr_setdetachstate(&attr, &detach);
22235 if( status < 0 ) status = errno;
22237 status = pthread_attr_setdetachstate(&attr, detach);
22239 if( status ) return status;
22240 status = pthread_create( &t, &attr, task, NULL );
22241 #if HAVE_PTHREADS < 7
22242 if( status < 0 ) status = errno;
22244 if( status ) return status;
22246 /* Draft 4 pthreads */
22247 status = pthread_create( &t, pthread_attr_default, task, NULL );
22248 if( status ) return errno;
22250 /* give thread a chance to complete */
22251 /* it should remain joinable and hence detachable */
22254 status = pthread_detach( &t );
22255 if( status ) return errno;
22258 #ifdef HAVE_LINUX_THREADS
22259 pthread_kill_other_threads_np();
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270 (eval $ac_link) 2>conftest.er1
22272 grep -v '^ *+' conftest.er1 >conftest.err
22274 cat conftest.err >&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } &&
22277 { ac_try='test -z "$ac_c_werror_flag"
22278 || test ! -s conftest.err'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest$ac_exeext'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; }; then
22290 ol_cv_pthread_lib_lpthread_woff=yes
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22295 ol_cv_pthread_lib_lpthread_woff=no
22297 rm -f conftest.err conftest.$ac_objext \
22298 conftest$ac_exeext conftest.$ac_ext
22300 cat >conftest.$ac_ext <<_ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22307 /* pthread test headers */
22308 #include <pthread.h>
22309 #if HAVE_PTHREADS < 7
22313 #define NULL (void*)0
22316 static void *task(p)
22319 return (void *) (p == NULL);
22323 int main(argc, argv)
22328 /* pthread test function */
22329 #ifndef PTHREAD_CREATE_DETACHED
22330 #define PTHREAD_CREATE_DETACHED 1
22334 int detach = PTHREAD_CREATE_DETACHED;
22336 #if HAVE_PTHREADS > 4
22337 /* Final pthreads */
22338 pthread_attr_t attr;
22340 status = pthread_attr_init(&attr);
22341 if( status ) return status;
22343 #if HAVE_PTHREADS < 7
22344 status = pthread_attr_setdetachstate(&attr, &detach);
22345 if( status < 0 ) status = errno;
22347 status = pthread_attr_setdetachstate(&attr, detach);
22349 if( status ) return status;
22350 status = pthread_create( &t, &attr, task, NULL );
22351 #if HAVE_PTHREADS < 7
22352 if( status < 0 ) status = errno;
22354 if( status ) return status;
22356 /* Draft 4 pthreads */
22357 status = pthread_create( &t, pthread_attr_default, task, NULL );
22358 if( status ) return errno;
22360 /* give thread a chance to complete */
22361 /* it should remain joinable and hence detachable */
22364 status = pthread_detach( &t );
22365 if( status ) return errno;
22368 #ifdef HAVE_LINUX_THREADS
22369 pthread_kill_other_threads_np();
22377 rm -f conftest$ac_exeext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22379 (eval $ac_link) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22388 ol_cv_pthread_lib_lpthread_woff=yes
22390 echo "$as_me: program exited with status $ac_status" >&5
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 ( exit $ac_status )
22395 ol_cv_pthread_lib_lpthread_woff=no
22397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22404 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22405 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22407 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22408 ol_link_pthreads="-lpthread -Wl,-woff,85"
22409 ol_link_threads=posix
22414 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22415 if test "$ol_link_threads" = no ; then
22417 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22418 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22419 if test "${ol_cv_pthread_lpthread+set}" = set; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 LIBS="-lpthread $LIBS"
22427 if test "$cross_compiling" = yes; then
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22435 /* pthread test headers */
22436 #include <pthread.h>
22437 #if HAVE_PTHREADS < 7
22441 #define NULL (void*)0
22444 static void *task(p)
22447 return (void *) (p == NULL);
22454 /* pthread test function */
22455 #ifndef PTHREAD_CREATE_DETACHED
22456 #define PTHREAD_CREATE_DETACHED 1
22460 int detach = PTHREAD_CREATE_DETACHED;
22462 #if HAVE_PTHREADS > 4
22463 /* Final pthreads */
22464 pthread_attr_t attr;
22466 status = pthread_attr_init(&attr);
22467 if( status ) return status;
22469 #if HAVE_PTHREADS < 7
22470 status = pthread_attr_setdetachstate(&attr, &detach);
22471 if( status < 0 ) status = errno;
22473 status = pthread_attr_setdetachstate(&attr, detach);
22475 if( status ) return status;
22476 status = pthread_create( &t, &attr, task, NULL );
22477 #if HAVE_PTHREADS < 7
22478 if( status < 0 ) status = errno;
22480 if( status ) return status;
22482 /* Draft 4 pthreads */
22483 status = pthread_create( &t, pthread_attr_default, task, NULL );
22484 if( status ) return errno;
22486 /* give thread a chance to complete */
22487 /* it should remain joinable and hence detachable */
22490 status = pthread_detach( &t );
22491 if( status ) return errno;
22494 #ifdef HAVE_LINUX_THREADS
22495 pthread_kill_other_threads_np();
22504 rm -f conftest.$ac_objext conftest$ac_exeext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22506 (eval $ac_link) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag"
22514 || test ! -s conftest.err'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; } &&
22520 { ac_try='test -s conftest$ac_exeext'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 ol_cv_pthread_lpthread=yes
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22531 ol_cv_pthread_lpthread=no
22533 rm -f conftest.err conftest.$ac_objext \
22534 conftest$ac_exeext conftest.$ac_ext
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22543 /* pthread test headers */
22544 #include <pthread.h>
22545 #if HAVE_PTHREADS < 7
22549 #define NULL (void*)0
22552 static void *task(p)
22555 return (void *) (p == NULL);
22559 int main(argc, argv)
22564 /* pthread test function */
22565 #ifndef PTHREAD_CREATE_DETACHED
22566 #define PTHREAD_CREATE_DETACHED 1
22570 int detach = PTHREAD_CREATE_DETACHED;
22572 #if HAVE_PTHREADS > 4
22573 /* Final pthreads */
22574 pthread_attr_t attr;
22576 status = pthread_attr_init(&attr);
22577 if( status ) return status;
22579 #if HAVE_PTHREADS < 7
22580 status = pthread_attr_setdetachstate(&attr, &detach);
22581 if( status < 0 ) status = errno;
22583 status = pthread_attr_setdetachstate(&attr, detach);
22585 if( status ) return status;
22586 status = pthread_create( &t, &attr, task, NULL );
22587 #if HAVE_PTHREADS < 7
22588 if( status < 0 ) status = errno;
22590 if( status ) return status;
22592 /* Draft 4 pthreads */
22593 status = pthread_create( &t, pthread_attr_default, task, NULL );
22594 if( status ) return errno;
22596 /* give thread a chance to complete */
22597 /* it should remain joinable and hence detachable */
22600 status = pthread_detach( &t );
22601 if( status ) return errno;
22604 #ifdef HAVE_LINUX_THREADS
22605 pthread_kill_other_threads_np();
22613 rm -f conftest$ac_exeext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22615 (eval $ac_link) 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 ol_cv_pthread_lpthread=yes
22626 echo "$as_me: program exited with status $ac_status" >&5
22627 echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22630 ( exit $ac_status )
22631 ol_cv_pthread_lpthread=no
22633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22640 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22641 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22643 if test $ol_cv_pthread_lpthread = yes ; then
22644 ol_link_pthreads="-lpthread"
22645 ol_link_threads=posix
22649 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22650 if test "$ol_link_threads" = no ; then
22652 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22653 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22654 if test "${ol_cv_pthread_lc_r+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 if test "$cross_compiling" = yes; then
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22670 /* pthread test headers */
22671 #include <pthread.h>
22672 #if HAVE_PTHREADS < 7
22676 #define NULL (void*)0
22679 static void *task(p)
22682 return (void *) (p == NULL);
22689 /* pthread test function */
22690 #ifndef PTHREAD_CREATE_DETACHED
22691 #define PTHREAD_CREATE_DETACHED 1
22695 int detach = PTHREAD_CREATE_DETACHED;
22697 #if HAVE_PTHREADS > 4
22698 /* Final pthreads */
22699 pthread_attr_t attr;
22701 status = pthread_attr_init(&attr);
22702 if( status ) return status;
22704 #if HAVE_PTHREADS < 7
22705 status = pthread_attr_setdetachstate(&attr, &detach);
22706 if( status < 0 ) status = errno;
22708 status = pthread_attr_setdetachstate(&attr, detach);
22710 if( status ) return status;
22711 status = pthread_create( &t, &attr, task, NULL );
22712 #if HAVE_PTHREADS < 7
22713 if( status < 0 ) status = errno;
22715 if( status ) return status;
22717 /* Draft 4 pthreads */
22718 status = pthread_create( &t, pthread_attr_default, task, NULL );
22719 if( status ) return errno;
22721 /* give thread a chance to complete */
22722 /* it should remain joinable and hence detachable */
22725 status = pthread_detach( &t );
22726 if( status ) return errno;
22729 #ifdef HAVE_LINUX_THREADS
22730 pthread_kill_other_threads_np();
22739 rm -f conftest.$ac_objext conftest$ac_exeext
22740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22741 (eval $ac_link) 2>conftest.er1
22743 grep -v '^ *+' conftest.er1 >conftest.err
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } &&
22748 { ac_try='test -z "$ac_c_werror_flag"
22749 || test ! -s conftest.err'
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; } &&
22755 { ac_try='test -s conftest$ac_exeext'
22756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757 (eval $ac_try) 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 ol_cv_pthread_lc_r=yes
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ol_cv_pthread_lc_r=no
22768 rm -f conftest.err conftest.$ac_objext \
22769 conftest$ac_exeext conftest.$ac_ext
22771 cat >conftest.$ac_ext <<_ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22778 /* pthread test headers */
22779 #include <pthread.h>
22780 #if HAVE_PTHREADS < 7
22784 #define NULL (void*)0
22787 static void *task(p)
22790 return (void *) (p == NULL);
22794 int main(argc, argv)
22799 /* pthread test function */
22800 #ifndef PTHREAD_CREATE_DETACHED
22801 #define PTHREAD_CREATE_DETACHED 1
22805 int detach = PTHREAD_CREATE_DETACHED;
22807 #if HAVE_PTHREADS > 4
22808 /* Final pthreads */
22809 pthread_attr_t attr;
22811 status = pthread_attr_init(&attr);
22812 if( status ) return status;
22814 #if HAVE_PTHREADS < 7
22815 status = pthread_attr_setdetachstate(&attr, &detach);
22816 if( status < 0 ) status = errno;
22818 status = pthread_attr_setdetachstate(&attr, detach);
22820 if( status ) return status;
22821 status = pthread_create( &t, &attr, task, NULL );
22822 #if HAVE_PTHREADS < 7
22823 if( status < 0 ) status = errno;
22825 if( status ) return status;
22827 /* Draft 4 pthreads */
22828 status = pthread_create( &t, pthread_attr_default, task, NULL );
22829 if( status ) return errno;
22831 /* give thread a chance to complete */
22832 /* it should remain joinable and hence detachable */
22835 status = pthread_detach( &t );
22836 if( status ) return errno;
22839 #ifdef HAVE_LINUX_THREADS
22840 pthread_kill_other_threads_np();
22848 rm -f conftest$ac_exeext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850 (eval $ac_link) 2>&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ol_cv_pthread_lc_r=yes
22861 echo "$as_me: program exited with status $ac_status" >&5
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ( exit $ac_status )
22866 ol_cv_pthread_lc_r=no
22868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22875 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22876 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22878 if test $ol_cv_pthread_lc_r = yes ; then
22879 ol_link_pthreads="-lc_r"
22880 ol_link_threads=posix
22885 # Pthread try link: -threads (ol_cv_pthread_threads)
22886 if test "$ol_link_threads" = no ; then
22888 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22889 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22890 if test "${ol_cv_pthread_threads+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22896 LIBS="-threads $LIBS"
22898 if test "$cross_compiling" = yes; then
22899 cat >conftest.$ac_ext <<_ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h. */
22906 /* pthread test headers */
22907 #include <pthread.h>
22908 #if HAVE_PTHREADS < 7
22912 #define NULL (void*)0
22915 static void *task(p)
22918 return (void *) (p == NULL);
22925 /* pthread test function */
22926 #ifndef PTHREAD_CREATE_DETACHED
22927 #define PTHREAD_CREATE_DETACHED 1
22931 int detach = PTHREAD_CREATE_DETACHED;
22933 #if HAVE_PTHREADS > 4
22934 /* Final pthreads */
22935 pthread_attr_t attr;
22937 status = pthread_attr_init(&attr);
22938 if( status ) return status;
22940 #if HAVE_PTHREADS < 7
22941 status = pthread_attr_setdetachstate(&attr, &detach);
22942 if( status < 0 ) status = errno;
22944 status = pthread_attr_setdetachstate(&attr, detach);
22946 if( status ) return status;
22947 status = pthread_create( &t, &attr, task, NULL );
22948 #if HAVE_PTHREADS < 7
22949 if( status < 0 ) status = errno;
22951 if( status ) return status;
22953 /* Draft 4 pthreads */
22954 status = pthread_create( &t, pthread_attr_default, task, NULL );
22955 if( status ) return errno;
22957 /* give thread a chance to complete */
22958 /* it should remain joinable and hence detachable */
22961 status = pthread_detach( &t );
22962 if( status ) return errno;
22965 #ifdef HAVE_LINUX_THREADS
22966 pthread_kill_other_threads_np();
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977 (eval $ac_link) 2>conftest.er1
22979 grep -v '^ *+' conftest.er1 >conftest.err
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
22984 { ac_try='test -z "$ac_c_werror_flag"
22985 || test ! -s conftest.err'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } &&
22991 { ac_try='test -s conftest$ac_exeext'
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; }; then
22997 ol_cv_pthread_threads=yes
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ol_cv_pthread_threads=no
23004 rm -f conftest.err conftest.$ac_objext \
23005 conftest$ac_exeext conftest.$ac_ext
23007 cat >conftest.$ac_ext <<_ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23014 /* pthread test headers */
23015 #include <pthread.h>
23016 #if HAVE_PTHREADS < 7
23020 #define NULL (void*)0
23023 static void *task(p)
23026 return (void *) (p == NULL);
23030 int main(argc, argv)
23035 /* pthread test function */
23036 #ifndef PTHREAD_CREATE_DETACHED
23037 #define PTHREAD_CREATE_DETACHED 1
23041 int detach = PTHREAD_CREATE_DETACHED;
23043 #if HAVE_PTHREADS > 4
23044 /* Final pthreads */
23045 pthread_attr_t attr;
23047 status = pthread_attr_init(&attr);
23048 if( status ) return status;
23050 #if HAVE_PTHREADS < 7
23051 status = pthread_attr_setdetachstate(&attr, &detach);
23052 if( status < 0 ) status = errno;
23054 status = pthread_attr_setdetachstate(&attr, detach);
23056 if( status ) return status;
23057 status = pthread_create( &t, &attr, task, NULL );
23058 #if HAVE_PTHREADS < 7
23059 if( status < 0 ) status = errno;
23061 if( status ) return status;
23063 /* Draft 4 pthreads */
23064 status = pthread_create( &t, pthread_attr_default, task, NULL );
23065 if( status ) return errno;
23067 /* give thread a chance to complete */
23068 /* it should remain joinable and hence detachable */
23071 status = pthread_detach( &t );
23072 if( status ) return errno;
23075 #ifdef HAVE_LINUX_THREADS
23076 pthread_kill_other_threads_np();
23084 rm -f conftest$ac_exeext
23085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23086 (eval $ac_link) 2>&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ol_cv_pthread_threads=yes
23097 echo "$as_me: program exited with status $ac_status" >&5
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 ( exit $ac_status )
23102 ol_cv_pthread_threads=no
23104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23111 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23112 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23114 if test $ol_cv_pthread_threads = yes ; then
23115 ol_link_pthreads="-threads"
23116 ol_link_threads=posix
23121 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23122 if test "$ol_link_threads" = no ; then
23123 # try -lpthreads -lmach -lexc -lc_r
23124 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23125 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23126 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23132 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23134 if test "$cross_compiling" = yes; then
23135 cat >conftest.$ac_ext <<_ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h. */
23142 /* pthread test headers */
23143 #include <pthread.h>
23144 #if HAVE_PTHREADS < 7
23148 #define NULL (void*)0
23151 static void *task(p)
23154 return (void *) (p == NULL);
23161 /* pthread test function */
23162 #ifndef PTHREAD_CREATE_DETACHED
23163 #define PTHREAD_CREATE_DETACHED 1
23167 int detach = PTHREAD_CREATE_DETACHED;
23169 #if HAVE_PTHREADS > 4
23170 /* Final pthreads */
23171 pthread_attr_t attr;
23173 status = pthread_attr_init(&attr);
23174 if( status ) return status;
23176 #if HAVE_PTHREADS < 7
23177 status = pthread_attr_setdetachstate(&attr, &detach);
23178 if( status < 0 ) status = errno;
23180 status = pthread_attr_setdetachstate(&attr, detach);
23182 if( status ) return status;
23183 status = pthread_create( &t, &attr, task, NULL );
23184 #if HAVE_PTHREADS < 7
23185 if( status < 0 ) status = errno;
23187 if( status ) return status;
23189 /* Draft 4 pthreads */
23190 status = pthread_create( &t, pthread_attr_default, task, NULL );
23191 if( status ) return errno;
23193 /* give thread a chance to complete */
23194 /* it should remain joinable and hence detachable */
23197 status = pthread_detach( &t );
23198 if( status ) return errno;
23201 #ifdef HAVE_LINUX_THREADS
23202 pthread_kill_other_threads_np();
23211 rm -f conftest.$ac_objext conftest$ac_exeext
23212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23213 (eval $ac_link) 2>conftest.er1
23215 grep -v '^ *+' conftest.er1 >conftest.err
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } &&
23220 { ac_try='test -z "$ac_c_werror_flag"
23221 || test ! -s conftest.err'
23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; } &&
23227 { ac_try='test -s conftest$ac_exeext'
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; }; then
23233 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23238 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23240 rm -f conftest.err conftest.$ac_objext \
23241 conftest$ac_exeext conftest.$ac_ext
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 /* pthread test headers */
23251 #include <pthread.h>
23252 #if HAVE_PTHREADS < 7
23256 #define NULL (void*)0
23259 static void *task(p)
23262 return (void *) (p == NULL);
23266 int main(argc, argv)
23271 /* pthread test function */
23272 #ifndef PTHREAD_CREATE_DETACHED
23273 #define PTHREAD_CREATE_DETACHED 1
23277 int detach = PTHREAD_CREATE_DETACHED;
23279 #if HAVE_PTHREADS > 4
23280 /* Final pthreads */
23281 pthread_attr_t attr;
23283 status = pthread_attr_init(&attr);
23284 if( status ) return status;
23286 #if HAVE_PTHREADS < 7
23287 status = pthread_attr_setdetachstate(&attr, &detach);
23288 if( status < 0 ) status = errno;
23290 status = pthread_attr_setdetachstate(&attr, detach);
23292 if( status ) return status;
23293 status = pthread_create( &t, &attr, task, NULL );
23294 #if HAVE_PTHREADS < 7
23295 if( status < 0 ) status = errno;
23297 if( status ) return status;
23299 /* Draft 4 pthreads */
23300 status = pthread_create( &t, pthread_attr_default, task, NULL );
23301 if( status ) return errno;
23303 /* give thread a chance to complete */
23304 /* it should remain joinable and hence detachable */
23307 status = pthread_detach( &t );
23308 if( status ) return errno;
23311 #ifdef HAVE_LINUX_THREADS
23312 pthread_kill_other_threads_np();
23320 rm -f conftest$ac_exeext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23322 (eval $ac_link) 2>&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327 (eval $ac_try) 2>&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; }; then
23331 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23333 echo "$as_me: program exited with status $ac_status" >&5
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 ( exit $ac_status )
23338 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23347 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23348 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23350 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23351 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23352 ol_link_threads=posix
23356 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23357 if test "$ol_link_threads" = no ; then
23358 # try -lpthreads -lmach -lexc
23359 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23360 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23361 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 LIBS="-lpthreads -lmach -lexc $LIBS"
23369 if test "$cross_compiling" = yes; then
23370 cat >conftest.$ac_ext <<_ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23377 /* pthread test headers */
23378 #include <pthread.h>
23379 #if HAVE_PTHREADS < 7
23383 #define NULL (void*)0
23386 static void *task(p)
23389 return (void *) (p == NULL);
23396 /* pthread test function */
23397 #ifndef PTHREAD_CREATE_DETACHED
23398 #define PTHREAD_CREATE_DETACHED 1
23402 int detach = PTHREAD_CREATE_DETACHED;
23404 #if HAVE_PTHREADS > 4
23405 /* Final pthreads */
23406 pthread_attr_t attr;
23408 status = pthread_attr_init(&attr);
23409 if( status ) return status;
23411 #if HAVE_PTHREADS < 7
23412 status = pthread_attr_setdetachstate(&attr, &detach);
23413 if( status < 0 ) status = errno;
23415 status = pthread_attr_setdetachstate(&attr, detach);
23417 if( status ) return status;
23418 status = pthread_create( &t, &attr, task, NULL );
23419 #if HAVE_PTHREADS < 7
23420 if( status < 0 ) status = errno;
23422 if( status ) return status;
23424 /* Draft 4 pthreads */
23425 status = pthread_create( &t, pthread_attr_default, task, NULL );
23426 if( status ) return errno;
23428 /* give thread a chance to complete */
23429 /* it should remain joinable and hence detachable */
23432 status = pthread_detach( &t );
23433 if( status ) return errno;
23436 #ifdef HAVE_LINUX_THREADS
23437 pthread_kill_other_threads_np();
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23448 (eval $ac_link) 2>conftest.er1
23450 grep -v '^ *+' conftest.er1 >conftest.err
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } &&
23455 { ac_try='test -z "$ac_c_werror_flag"
23456 || test ! -s conftest.err'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; } &&
23462 { ac_try='test -s conftest$ac_exeext'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; }; then
23468 ol_cv_pthread_lpthreads_lmach_lexc=yes
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23473 ol_cv_pthread_lpthreads_lmach_lexc=no
23475 rm -f conftest.err conftest.$ac_objext \
23476 conftest$ac_exeext conftest.$ac_ext
23478 cat >conftest.$ac_ext <<_ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23485 /* pthread test headers */
23486 #include <pthread.h>
23487 #if HAVE_PTHREADS < 7
23491 #define NULL (void*)0
23494 static void *task(p)
23497 return (void *) (p == NULL);
23501 int main(argc, argv)
23506 /* pthread test function */
23507 #ifndef PTHREAD_CREATE_DETACHED
23508 #define PTHREAD_CREATE_DETACHED 1
23512 int detach = PTHREAD_CREATE_DETACHED;
23514 #if HAVE_PTHREADS > 4
23515 /* Final pthreads */
23516 pthread_attr_t attr;
23518 status = pthread_attr_init(&attr);
23519 if( status ) return status;
23521 #if HAVE_PTHREADS < 7
23522 status = pthread_attr_setdetachstate(&attr, &detach);
23523 if( status < 0 ) status = errno;
23525 status = pthread_attr_setdetachstate(&attr, detach);
23527 if( status ) return status;
23528 status = pthread_create( &t, &attr, task, NULL );
23529 #if HAVE_PTHREADS < 7
23530 if( status < 0 ) status = errno;
23532 if( status ) return status;
23534 /* Draft 4 pthreads */
23535 status = pthread_create( &t, pthread_attr_default, task, NULL );
23536 if( status ) return errno;
23538 /* give thread a chance to complete */
23539 /* it should remain joinable and hence detachable */
23542 status = pthread_detach( &t );
23543 if( status ) return errno;
23546 #ifdef HAVE_LINUX_THREADS
23547 pthread_kill_other_threads_np();
23555 rm -f conftest$ac_exeext
23556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557 (eval $ac_link) 2>&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 ol_cv_pthread_lpthreads_lmach_lexc=yes
23568 echo "$as_me: program exited with status $ac_status" >&5
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23572 ( exit $ac_status )
23573 ol_cv_pthread_lpthreads_lmach_lexc=no
23575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23582 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23583 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23585 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23586 ol_link_pthreads="-lpthreads -lmach -lexc"
23587 ol_link_threads=posix
23591 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23592 if test "$ol_link_threads" = no ; then
23593 # try -lpthreads -lexc
23594 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23595 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23596 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23602 LIBS="-lpthreads -lexc $LIBS"
23604 if test "$cross_compiling" = yes; then
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23612 /* pthread test headers */
23613 #include <pthread.h>
23614 #if HAVE_PTHREADS < 7
23618 #define NULL (void*)0
23621 static void *task(p)
23624 return (void *) (p == NULL);
23631 /* pthread test function */
23632 #ifndef PTHREAD_CREATE_DETACHED
23633 #define PTHREAD_CREATE_DETACHED 1
23637 int detach = PTHREAD_CREATE_DETACHED;
23639 #if HAVE_PTHREADS > 4
23640 /* Final pthreads */
23641 pthread_attr_t attr;
23643 status = pthread_attr_init(&attr);
23644 if( status ) return status;
23646 #if HAVE_PTHREADS < 7
23647 status = pthread_attr_setdetachstate(&attr, &detach);
23648 if( status < 0 ) status = errno;
23650 status = pthread_attr_setdetachstate(&attr, detach);
23652 if( status ) return status;
23653 status = pthread_create( &t, &attr, task, NULL );
23654 #if HAVE_PTHREADS < 7
23655 if( status < 0 ) status = errno;
23657 if( status ) return status;
23659 /* Draft 4 pthreads */
23660 status = pthread_create( &t, pthread_attr_default, task, NULL );
23661 if( status ) return errno;
23663 /* give thread a chance to complete */
23664 /* it should remain joinable and hence detachable */
23667 status = pthread_detach( &t );
23668 if( status ) return errno;
23671 #ifdef HAVE_LINUX_THREADS
23672 pthread_kill_other_threads_np();
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23683 (eval $ac_link) 2>conftest.er1
23685 grep -v '^ *+' conftest.er1 >conftest.err
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } &&
23690 { ac_try='test -z "$ac_c_werror_flag"
23691 || test ! -s conftest.err'
23692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693 (eval $ac_try) 2>&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); }; } &&
23697 { ac_try='test -s conftest$ac_exeext'
23698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699 (eval $ac_try) 2>&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; }; then
23703 ol_cv_pthread_lpthreads_lexc=yes
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23708 ol_cv_pthread_lpthreads_lexc=no
23710 rm -f conftest.err conftest.$ac_objext \
23711 conftest$ac_exeext conftest.$ac_ext
23713 cat >conftest.$ac_ext <<_ACEOF
23716 cat confdefs.h >>conftest.$ac_ext
23717 cat >>conftest.$ac_ext <<_ACEOF
23718 /* end confdefs.h. */
23720 /* pthread test headers */
23721 #include <pthread.h>
23722 #if HAVE_PTHREADS < 7
23726 #define NULL (void*)0
23729 static void *task(p)
23732 return (void *) (p == NULL);
23736 int main(argc, argv)
23741 /* pthread test function */
23742 #ifndef PTHREAD_CREATE_DETACHED
23743 #define PTHREAD_CREATE_DETACHED 1
23747 int detach = PTHREAD_CREATE_DETACHED;
23749 #if HAVE_PTHREADS > 4
23750 /* Final pthreads */
23751 pthread_attr_t attr;
23753 status = pthread_attr_init(&attr);
23754 if( status ) return status;
23756 #if HAVE_PTHREADS < 7
23757 status = pthread_attr_setdetachstate(&attr, &detach);
23758 if( status < 0 ) status = errno;
23760 status = pthread_attr_setdetachstate(&attr, detach);
23762 if( status ) return status;
23763 status = pthread_create( &t, &attr, task, NULL );
23764 #if HAVE_PTHREADS < 7
23765 if( status < 0 ) status = errno;
23767 if( status ) return status;
23769 /* Draft 4 pthreads */
23770 status = pthread_create( &t, pthread_attr_default, task, NULL );
23771 if( status ) return errno;
23773 /* give thread a chance to complete */
23774 /* it should remain joinable and hence detachable */
23777 status = pthread_detach( &t );
23778 if( status ) return errno;
23781 #ifdef HAVE_LINUX_THREADS
23782 pthread_kill_other_threads_np();
23790 rm -f conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792 (eval $ac_link) 2>&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797 (eval $ac_try) 2>&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); }; }; then
23801 ol_cv_pthread_lpthreads_lexc=yes
23803 echo "$as_me: program exited with status $ac_status" >&5
23804 echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23807 ( exit $ac_status )
23808 ol_cv_pthread_lpthreads_lexc=no
23810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23817 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23818 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23820 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23821 ol_link_pthreads="-lpthreads -lexc"
23822 ol_link_threads=posix
23827 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23828 if test "$ol_link_threads" = no ; then
23830 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23831 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23832 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23838 LIBS="-lpthreads $LIBS"
23840 if test "$cross_compiling" = yes; then
23841 cat >conftest.$ac_ext <<_ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23848 /* pthread test headers */
23849 #include <pthread.h>
23850 #if HAVE_PTHREADS < 7
23854 #define NULL (void*)0
23857 static void *task(p)
23860 return (void *) (p == NULL);
23867 /* pthread test function */
23868 #ifndef PTHREAD_CREATE_DETACHED
23869 #define PTHREAD_CREATE_DETACHED 1
23873 int detach = PTHREAD_CREATE_DETACHED;
23875 #if HAVE_PTHREADS > 4
23876 /* Final pthreads */
23877 pthread_attr_t attr;
23879 status = pthread_attr_init(&attr);
23880 if( status ) return status;
23882 #if HAVE_PTHREADS < 7
23883 status = pthread_attr_setdetachstate(&attr, &detach);
23884 if( status < 0 ) status = errno;
23886 status = pthread_attr_setdetachstate(&attr, detach);
23888 if( status ) return status;
23889 status = pthread_create( &t, &attr, task, NULL );
23890 #if HAVE_PTHREADS < 7
23891 if( status < 0 ) status = errno;
23893 if( status ) return status;
23895 /* Draft 4 pthreads */
23896 status = pthread_create( &t, pthread_attr_default, task, NULL );
23897 if( status ) return errno;
23899 /* give thread a chance to complete */
23900 /* it should remain joinable and hence detachable */
23903 status = pthread_detach( &t );
23904 if( status ) return errno;
23907 #ifdef HAVE_LINUX_THREADS
23908 pthread_kill_other_threads_np();
23917 rm -f conftest.$ac_objext conftest$ac_exeext
23918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23919 (eval $ac_link) 2>conftest.er1
23921 grep -v '^ *+' conftest.er1 >conftest.err
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } &&
23926 { ac_try='test -z "$ac_c_werror_flag"
23927 || test ! -s conftest.err'
23928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929 (eval $ac_try) 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; } &&
23933 { ac_try='test -s conftest$ac_exeext'
23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935 (eval $ac_try) 2>&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; }; then
23939 ol_cv_pthread_lib_lpthreads=yes
23941 echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23944 ol_cv_pthread_lib_lpthreads=no
23946 rm -f conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
23949 cat >conftest.$ac_ext <<_ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h. */
23956 /* pthread test headers */
23957 #include <pthread.h>
23958 #if HAVE_PTHREADS < 7
23962 #define NULL (void*)0
23965 static void *task(p)
23968 return (void *) (p == NULL);
23972 int main(argc, argv)
23977 /* pthread test function */
23978 #ifndef PTHREAD_CREATE_DETACHED
23979 #define PTHREAD_CREATE_DETACHED 1
23983 int detach = PTHREAD_CREATE_DETACHED;
23985 #if HAVE_PTHREADS > 4
23986 /* Final pthreads */
23987 pthread_attr_t attr;
23989 status = pthread_attr_init(&attr);
23990 if( status ) return status;
23992 #if HAVE_PTHREADS < 7
23993 status = pthread_attr_setdetachstate(&attr, &detach);
23994 if( status < 0 ) status = errno;
23996 status = pthread_attr_setdetachstate(&attr, detach);
23998 if( status ) return status;
23999 status = pthread_create( &t, &attr, task, NULL );
24000 #if HAVE_PTHREADS < 7
24001 if( status < 0 ) status = errno;
24003 if( status ) return status;
24005 /* Draft 4 pthreads */
24006 status = pthread_create( &t, pthread_attr_default, task, NULL );
24007 if( status ) return errno;
24009 /* give thread a chance to complete */
24010 /* it should remain joinable and hence detachable */
24013 status = pthread_detach( &t );
24014 if( status ) return errno;
24017 #ifdef HAVE_LINUX_THREADS
24018 pthread_kill_other_threads_np();
24026 rm -f conftest$ac_exeext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24028 (eval $ac_link) 2>&5
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033 (eval $ac_try) 2>&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; }; then
24037 ol_cv_pthread_lib_lpthreads=yes
24039 echo "$as_me: program exited with status $ac_status" >&5
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24043 ( exit $ac_status )
24044 ol_cv_pthread_lib_lpthreads=no
24046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24053 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24054 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24056 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24057 ol_link_pthreads="-lpthreads"
24058 ol_link_threads=posix
24063 if test $ol_link_threads != no ; then
24064 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24066 save_CPPFLAGS="$CPPFLAGS"
24068 LIBS="$LTHREAD_LIBS $LIBS"
24073 for ac_func in sched_yield pthread_yield thr_yield
24075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24076 echo "$as_me:$LINENO: checking for $ac_func" >&5
24077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24078 if eval "test \"\${$as_ac_var+set}\" = set"; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 cat >conftest.$ac_ext <<_ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24089 #define $ac_func innocuous_$ac_func
24091 /* System header to define __stub macros and hopefully few prototypes,
24092 which can conflict with char $ac_func (); below.
24093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24094 <limits.h> exists even on freestanding compilers. */
24097 # include <limits.h>
24099 # include <assert.h>
24104 /* Override any gcc2 internal prototype to avoid an error. */
24109 /* We use char because int might match the return type of a gcc2
24110 builtin and then its argument prototype would still apply. */
24112 /* The GNU C library defines this for functions which it implements
24113 to always fail with ENOSYS. Some functions are actually named
24114 something starting with __ and the normal name is an alias. */
24115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24118 char (*f) () = $ac_func;
24127 return f != $ac_func;
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24134 (eval $ac_link) 2>conftest.er1
24136 grep -v '^ *+' conftest.er1 >conftest.err
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } &&
24141 { ac_try='test -z "$ac_c_werror_flag"
24142 || test ! -s conftest.err'
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; } &&
24148 { ac_try='test -s conftest$ac_exeext'
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; }; then
24154 eval "$as_ac_var=yes"
24156 echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24159 eval "$as_ac_var=no"
24161 rm -f conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext conftest.$ac_ext
24164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24166 if test `eval echo '${'$as_ac_var'}'` = yes; then
24167 cat >>confdefs.h <<_ACEOF
24168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24175 if test $ac_cv_func_sched_yield = no &&
24176 test $ac_cv_func_pthread_yield = no &&
24177 test $ac_cv_func_thr_yield = no ; then
24178 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24179 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24180 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24183 ac_check_lib_save_LIBS=$LIBS
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24192 /* Override any gcc2 internal prototype to avoid an error. */
24196 /* We use char because int might match the return type of a gcc2
24197 builtin and then its argument prototype would still apply. */
24198 char sched_yield ();
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>conftest.er1
24211 grep -v '^ *+' conftest.er1 >conftest.err
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
24216 { ac_try='test -z "$ac_c_werror_flag"
24217 || test ! -s conftest.err'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; } &&
24223 { ac_try='test -s conftest$ac_exeext'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24229 ac_cv_lib_rt_sched_yield=yes
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 ac_cv_lib_rt_sched_yield=no
24236 rm -f conftest.err conftest.$ac_objext \
24237 conftest$ac_exeext conftest.$ac_ext
24238 LIBS=$ac_check_lib_save_LIBS
24240 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24241 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24242 if test $ac_cv_lib_rt_sched_yield = yes; then
24243 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24245 cat >>confdefs.h <<\_ACEOF
24246 #define HAVE_SCHED_YIELD 1
24249 ac_cv_func_sched_yield=yes
24251 ac_cv_func_sched_yield=no
24255 if test $ac_cv_func_sched_yield = no &&
24256 test $ac_cv_func_pthread_yield = no &&
24257 test "$ac_cv_func_thr_yield" = no ; then
24258 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24259 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24264 for ac_func in pthread_kill pthread_rwlock_destroy
24266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24267 echo "$as_me:$LINENO: checking for $ac_func" >&5
24268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24269 if eval "test \"\${$as_ac_var+set}\" = set"; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24272 cat >conftest.$ac_ext <<_ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24280 #define $ac_func innocuous_$ac_func
24282 /* System header to define __stub macros and hopefully few prototypes,
24283 which can conflict with char $ac_func (); below.
24284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24285 <limits.h> exists even on freestanding compilers. */
24288 # include <limits.h>
24290 # include <assert.h>
24295 /* Override any gcc2 internal prototype to avoid an error. */
24300 /* We use char because int might match the return type of a gcc2
24301 builtin and then its argument prototype would still apply. */
24303 /* The GNU C library defines this for functions which it implements
24304 to always fail with ENOSYS. Some functions are actually named
24305 something starting with __ and the normal name is an alias. */
24306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24309 char (*f) () = $ac_func;
24318 return f != $ac_func;
24323 rm -f conftest.$ac_objext conftest$ac_exeext
24324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24325 (eval $ac_link) 2>conftest.er1
24327 grep -v '^ *+' conftest.er1 >conftest.err
24329 cat conftest.err >&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); } &&
24332 { ac_try='test -z "$ac_c_werror_flag"
24333 || test ! -s conftest.err'
24334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335 (eval $ac_try) 2>&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; } &&
24339 { ac_try='test -s conftest$ac_exeext'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; }; then
24345 eval "$as_ac_var=yes"
24347 echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24350 eval "$as_ac_var=no"
24352 rm -f conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
24355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24357 if test `eval echo '${'$as_ac_var'}'` = yes; then
24358 cat >>confdefs.h <<_ACEOF
24359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24366 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24367 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24368 if test "${ol_cv_func_pthread_detach+set}" = set; then
24369 echo $ECHO_N "(cached) $ECHO_C" >&6
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24379 #include <pthread.h>
24381 #define NULL (void*)0
24387 pthread_detach(NULL);
24392 rm -f conftest.$ac_objext conftest$ac_exeext
24393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24394 (eval $ac_link) 2>conftest.er1
24396 grep -v '^ *+' conftest.er1 >conftest.err
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } &&
24401 { ac_try='test -z "$ac_c_werror_flag"
24402 || test ! -s conftest.err'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; } &&
24408 { ac_try='test -s conftest$ac_exeext'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; }; then
24414 ol_cv_func_pthread_detach=yes
24416 echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24419 ol_cv_func_pthread_detach=no
24421 rm -f conftest.err conftest.$ac_objext \
24422 conftest$ac_exeext conftest.$ac_ext
24425 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24426 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24428 if test $ol_cv_func_pthread_detach = no ; then
24429 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24430 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24431 { (exit 1); exit 1; }; }
24435 cat >>confdefs.h <<\_ACEOF
24436 #define HAVE_PTHREAD_DETACH 1
24445 pthread_setconcurrency \
24446 pthread_getconcurrency \
24447 thr_setconcurrency \
24448 thr_getconcurrency \
24451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24452 echo "$as_me:$LINENO: checking for $ac_func" >&5
24453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24454 if eval "test \"\${$as_ac_var+set}\" = set"; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24457 cat >conftest.$ac_ext <<_ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24465 #define $ac_func innocuous_$ac_func
24467 /* System header to define __stub macros and hopefully few prototypes,
24468 which can conflict with char $ac_func (); below.
24469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24470 <limits.h> exists even on freestanding compilers. */
24473 # include <limits.h>
24475 # include <assert.h>
24480 /* Override any gcc2 internal prototype to avoid an error. */
24485 /* We use char because int might match the return type of a gcc2
24486 builtin and then its argument prototype would still apply. */
24488 /* The GNU C library defines this for functions which it implements
24489 to always fail with ENOSYS. Some functions are actually named
24490 something starting with __ and the normal name is an alias. */
24491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24494 char (*f) () = $ac_func;
24503 return f != $ac_func;
24508 rm -f conftest.$ac_objext conftest$ac_exeext
24509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24510 (eval $ac_link) 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } &&
24517 { ac_try='test -z "$ac_c_werror_flag"
24518 || test ! -s conftest.err'
24519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; } &&
24524 { ac_try='test -s conftest$ac_exeext'
24525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526 (eval $ac_try) 2>&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 eval "$as_ac_var=yes"
24532 echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24535 eval "$as_ac_var=no"
24537 rm -f conftest.err conftest.$ac_objext \
24538 conftest$ac_exeext conftest.$ac_ext
24540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24542 if test `eval echo '${'$as_ac_var'}'` = yes; then
24543 cat >>confdefs.h <<_ACEOF
24544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24553 for ac_func in pthread_kill_other_threads_np
24555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24556 echo "$as_me:$LINENO: checking for $ac_func" >&5
24557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24558 if eval "test \"\${$as_ac_var+set}\" = set"; then
24559 echo $ECHO_N "(cached) $ECHO_C" >&6
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24569 #define $ac_func innocuous_$ac_func
24571 /* System header to define __stub macros and hopefully few prototypes,
24572 which can conflict with char $ac_func (); below.
24573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24574 <limits.h> exists even on freestanding compilers. */
24577 # include <limits.h>
24579 # include <assert.h>
24584 /* Override any gcc2 internal prototype to avoid an error. */
24589 /* We use char because int might match the return type of a gcc2
24590 builtin and then its argument prototype would still apply. */
24592 /* The GNU C library defines this for functions which it implements
24593 to always fail with ENOSYS. Some functions are actually named
24594 something starting with __ and the normal name is an alias. */
24595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24598 char (*f) () = $ac_func;
24607 return f != $ac_func;
24612 rm -f conftest.$ac_objext conftest$ac_exeext
24613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24614 (eval $ac_link) 2>conftest.er1
24616 grep -v '^ *+' conftest.er1 >conftest.err
24618 cat conftest.err >&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } &&
24621 { ac_try='test -z "$ac_c_werror_flag"
24622 || test ! -s conftest.err'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; } &&
24628 { ac_try='test -s conftest$ac_exeext'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; }; then
24634 eval "$as_ac_var=yes"
24636 echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24639 eval "$as_ac_var=no"
24641 rm -f conftest.err conftest.$ac_objext \
24642 conftest$ac_exeext conftest.$ac_ext
24644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24646 if test `eval echo '${'$as_ac_var'}'` = yes; then
24647 cat >>confdefs.h <<_ACEOF
24648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24654 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24655 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24656 if test "${ol_cv_sys_linux_threads+set}" = set; then
24657 echo $ECHO_N "(cached) $ECHO_C" >&6
24659 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24661 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24662 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24667 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24668 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24669 if test "${ol_cv_linux_threads+set}" = set; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 if test $ol_cv_header_linux_threads = yes &&
24674 test $ol_cv_sys_linux_threads = yes; then
24675 ol_cv_linux_threads=yes
24676 elif test $ol_cv_header_linux_threads = no &&
24677 test $ol_cv_sys_linux_threads = no; then
24678 ol_cv_linux_threads=no
24680 ol_cv_linux_threads=error
24684 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24685 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24688 if test $ol_cv_linux_threads = error; then
24689 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24690 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24691 { (exit 1); exit 1; }; };
24694 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24695 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24696 if test "${ol_cv_pthread_create_works+set}" = set; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24700 if test "$cross_compiling" = yes; then
24701 ol_cv_pthread_create_works=yes
24703 cat >conftest.$ac_ext <<_ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h. */
24710 /* pthread test headers */
24711 #include <pthread.h>
24712 #if HAVE_PTHREADS < 7
24716 #define NULL (void*)0
24719 static void *task(p)
24722 return (void *) (p == NULL);
24726 int main(argc, argv)
24731 /* pthread test function */
24732 #ifndef PTHREAD_CREATE_DETACHED
24733 #define PTHREAD_CREATE_DETACHED 1
24737 int detach = PTHREAD_CREATE_DETACHED;
24739 #if HAVE_PTHREADS > 4
24740 /* Final pthreads */
24741 pthread_attr_t attr;
24743 status = pthread_attr_init(&attr);
24744 if( status ) return status;
24746 #if HAVE_PTHREADS < 7
24747 status = pthread_attr_setdetachstate(&attr, &detach);
24748 if( status < 0 ) status = errno;
24750 status = pthread_attr_setdetachstate(&attr, detach);
24752 if( status ) return status;
24753 status = pthread_create( &t, &attr, task, NULL );
24754 #if HAVE_PTHREADS < 7
24755 if( status < 0 ) status = errno;
24757 if( status ) return status;
24759 /* Draft 4 pthreads */
24760 status = pthread_create( &t, pthread_attr_default, task, NULL );
24761 if( status ) return errno;
24763 /* give thread a chance to complete */
24764 /* it should remain joinable and hence detachable */
24767 status = pthread_detach( &t );
24768 if( status ) return errno;
24771 #ifdef HAVE_LINUX_THREADS
24772 pthread_kill_other_threads_np();
24780 rm -f conftest$ac_exeext
24781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782 (eval $ac_link) 2>&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24791 ol_cv_pthread_create_works=yes
24793 echo "$as_me: program exited with status $ac_status" >&5
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 ( exit $ac_status )
24798 ol_cv_pthread_create_works=no
24800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24803 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24804 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24806 if test $ol_cv_pthread_create_works = no ; then
24807 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24808 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24809 { (exit 1); exit 1; }; }
24812 if test $ol_with_yielding_select = auto ; then
24813 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24814 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24815 if test "${ol_cv_pthread_select_yields+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24819 if test "$cross_compiling" = yes; then
24820 ol_cv_pthread_select_yields=cross
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24829 #include <sys/types.h>
24830 #include <sys/time.h>
24831 #include <unistd.h>
24832 #include <pthread.h>
24834 #define NULL (void*) 0
24837 static int fildes[2];
24839 static void *task(p)
24851 FD_SET(fildes[0], &rfds);
24853 /* we're not interested in any fds */
24854 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24861 exit(0); /* if we exit here, the select blocked the whole process */
24864 int main(argc, argv)
24870 /* create a pipe to select */
24871 if(pipe(&fildes[0])) {
24876 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24877 (void) pthread_setconcurrency(2);
24879 #ifdef HAVE_THR_SETCONCURRENCY
24880 /* Set Solaris LWP concurrency to 2 */
24881 thr_setconcurrency(2);
24885 #if HAVE_PTHREADS < 6
24886 pthread_create(&t, pthread_attr_default, task, NULL);
24888 pthread_create(&t, NULL, task, NULL);
24891 /* make sure task runs first */
24894 #elif defined( HAVE_SCHED_YIELD )
24896 #elif defined( HAVE_PTHREAD_YIELD )
24903 rm -f conftest$ac_exeext
24904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24905 (eval $ac_link) 2>&5
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 ol_cv_pthread_select_yields=no
24916 echo "$as_me: program exited with status $ac_status" >&5
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ( exit $ac_status )
24921 ol_cv_pthread_select_yields=yes
24923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24926 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24927 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24929 if test $ol_cv_pthread_select_yields = cross ; then
24930 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24931 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24932 { (exit 1); exit 1; }; }
24935 if test $ol_cv_pthread_select_yields = yes ; then
24936 ol_with_yielding_select=yes
24940 CPPFLAGS="$save_CPPFLAGS"
24943 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24944 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24945 { (exit 1); exit 1; }; }
24949 if test $ol_with_threads = posix ; then
24950 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24951 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24952 { (exit 1); exit 1; }; }
24957 case $ol_with_threads in auto | yes | mach)
24961 for ac_header in mach/cthreads.h cthreads.h
24963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24965 echo "$as_me:$LINENO: checking for $ac_header" >&5
24966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24968 echo $ECHO_N "(cached) $ECHO_C" >&6
24970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24973 # Is the header compilable?
24974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24976 cat >conftest.$ac_ext <<_ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h. */
24982 $ac_includes_default
24983 #include <$ac_header>
24985 rm -f conftest.$ac_objext
24986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24987 (eval $ac_compile) 2>conftest.er1
24989 grep -v '^ *+' conftest.er1 >conftest.err
24991 cat conftest.err >&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } &&
24994 { ac_try='test -z "$ac_c_werror_flag"
24995 || test ! -s conftest.err'
24996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997 (eval $ac_try) 2>&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); }; } &&
25001 { ac_try='test -s conftest.$ac_objext'
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; }; then
25007 ac_header_compiler=yes
25009 echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ac_header_compiler=no
25014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25016 echo "${ECHO_T}$ac_header_compiler" >&6
25018 # Is the header present?
25019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25021 cat >conftest.$ac_ext <<_ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25027 #include <$ac_header>
25029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25032 grep -v '^ *+' conftest.er1 >conftest.err
25034 cat conftest.err >&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } >/dev/null; then
25037 if test -s conftest.err; then
25038 ac_cpp_err=$ac_c_preproc_warn_flag
25039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25046 if test -z "$ac_cpp_err"; then
25047 ac_header_preproc=yes
25049 echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25052 ac_header_preproc=no
25054 rm -f conftest.err conftest.$ac_ext
25055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25056 echo "${ECHO_T}$ac_header_preproc" >&6
25058 # So? What about this header?
25059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25065 ac_header_preproc=yes
25068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25082 ## ------------------------------------------ ##
25083 ## Report this to the AC_PACKAGE_NAME lists. ##
25084 ## ------------------------------------------ ##
25087 sed "s/^/$as_me: WARNING: /" >&2
25090 echo "$as_me:$LINENO: checking for $ac_header" >&5
25091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 eval "$as_ac_Header=\$ac_header_preproc"
25097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25102 cat >>confdefs.h <<_ACEOF
25103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25110 if test $ac_cv_header_mach_cthreads_h = yes ; then
25111 ol_with_threads=found
25113 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25114 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25115 if test "${ac_cv_func_cthread_fork+set}" = set; then
25116 echo $ECHO_N "(cached) $ECHO_C" >&6
25118 cat >conftest.$ac_ext <<_ACEOF
25121 cat confdefs.h >>conftest.$ac_ext
25122 cat >>conftest.$ac_ext <<_ACEOF
25123 /* end confdefs.h. */
25124 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25126 #define cthread_fork innocuous_cthread_fork
25128 /* System header to define __stub macros and hopefully few prototypes,
25129 which can conflict with char cthread_fork (); below.
25130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25131 <limits.h> exists even on freestanding compilers. */
25134 # include <limits.h>
25136 # include <assert.h>
25139 #undef cthread_fork
25141 /* Override any gcc2 internal prototype to avoid an error. */
25146 /* We use char because int might match the return type of a gcc2
25147 builtin and then its argument prototype would still apply. */
25148 char cthread_fork ();
25149 /* The GNU C library defines this for functions which it implements
25150 to always fail with ENOSYS. Some functions are actually named
25151 something starting with __ and the normal name is an alias. */
25152 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25155 char (*f) () = cthread_fork;
25164 return f != cthread_fork;
25169 rm -f conftest.$ac_objext conftest$ac_exeext
25170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25171 (eval $ac_link) 2>conftest.er1
25173 grep -v '^ *+' conftest.er1 >conftest.err
25175 cat conftest.err >&5
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); } &&
25178 { ac_try='test -z "$ac_c_werror_flag"
25179 || test ! -s conftest.err'
25180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25181 (eval $ac_try) 2>&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); }; } &&
25185 { ac_try='test -s conftest$ac_exeext'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 ac_cv_func_cthread_fork=yes
25193 echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25196 ac_cv_func_cthread_fork=no
25198 rm -f conftest.err conftest.$ac_objext \
25199 conftest$ac_exeext conftest.$ac_ext
25201 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25202 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25203 if test $ac_cv_func_cthread_fork = yes; then
25204 ol_link_threads=yes
25208 if test $ol_link_threads = no ; then
25209 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25210 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25211 if test "${ol_cv_cthread_all_load+set}" = set; then
25212 echo $ECHO_N "(cached) $ECHO_C" >&6
25216 LIBS="-all_load $LIBS"
25217 cat >conftest.$ac_ext <<_ACEOF
25220 cat confdefs.h >>conftest.$ac_ext
25221 cat >>conftest.$ac_ext <<_ACEOF
25222 /* end confdefs.h. */
25223 #include <mach/cthreads.h>
25228 cthread_fork((void *)0, (void *)0);
25234 rm -f conftest.$ac_objext conftest$ac_exeext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25236 (eval $ac_link) 2>conftest.er1
25238 grep -v '^ *+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } &&
25243 { ac_try='test -z "$ac_c_werror_flag"
25244 || test ! -s conftest.err'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; } &&
25250 { ac_try='test -s conftest$ac_exeext'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; }; then
25256 ol_cv_cthread_all_load=yes
25258 echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25261 ol_cv_cthread_all_load=no
25263 rm -f conftest.err conftest.$ac_objext \
25264 conftest$ac_exeext conftest.$ac_ext
25268 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25269 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25271 if test $ol_cv_cthread_all_load = yes ; then
25272 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25273 ol_link_threads=mach
25274 ol_with_threads=found
25278 elif test $ac_cv_header_cthreads_h = yes ; then
25280 ol_with_threads=found
25283 LIBS="$LIBS -lthreads"
25284 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25285 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25286 if test "${ac_cv_func_cthread_fork+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 cat >conftest.$ac_ext <<_ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25295 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25297 #define cthread_fork innocuous_cthread_fork
25299 /* System header to define __stub macros and hopefully few prototypes,
25300 which can conflict with char cthread_fork (); below.
25301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25302 <limits.h> exists even on freestanding compilers. */
25305 # include <limits.h>
25307 # include <assert.h>
25310 #undef cthread_fork
25312 /* Override any gcc2 internal prototype to avoid an error. */
25317 /* We use char because int might match the return type of a gcc2
25318 builtin and then its argument prototype would still apply. */
25319 char cthread_fork ();
25320 /* The GNU C library defines this for functions which it implements
25321 to always fail with ENOSYS. Some functions are actually named
25322 something starting with __ and the normal name is an alias. */
25323 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25326 char (*f) () = cthread_fork;
25335 return f != cthread_fork;
25340 rm -f conftest.$ac_objext conftest$ac_exeext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25342 (eval $ac_link) 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
25349 { ac_try='test -z "$ac_c_werror_flag"
25350 || test ! -s conftest.err'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest$ac_exeext'
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_func_cthread_fork=yes
25364 echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25367 ac_cv_func_cthread_fork=no
25369 rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
25372 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25373 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25374 if test $ac_cv_func_cthread_fork = yes; then
25375 ol_link_threads=yes
25380 if test $ol_link_threads = yes ; then
25381 LTHREAD_LIBS="-lthreads"
25382 ol_link_threads=mach
25383 ol_with_threads=found
25385 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25386 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25387 { (exit 1); exit 1; }; }
25390 elif test $ol_with_threads = mach ; then
25391 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25392 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25393 { (exit 1); exit 1; }; }
25396 if test $ol_link_threads = mach ; then
25398 cat >>confdefs.h <<\_ACEOF
25399 #define HAVE_MACH_CTHREADS 1
25402 elif test $ol_with_threads = found ; then
25403 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25404 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25405 { (exit 1); exit 1; }; }
25410 case $ol_with_threads in auto | yes | pth)
25413 for ac_header in pth.h
25415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25417 echo "$as_me:$LINENO: checking for $ac_header" >&5
25418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25425 # Is the header compilable?
25426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25428 cat >conftest.$ac_ext <<_ACEOF
25431 cat confdefs.h >>conftest.$ac_ext
25432 cat >>conftest.$ac_ext <<_ACEOF
25433 /* end confdefs.h. */
25434 $ac_includes_default
25435 #include <$ac_header>
25437 rm -f conftest.$ac_objext
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439 (eval $ac_compile) 2>conftest.er1
25441 grep -v '^ *+' conftest.er1 >conftest.err
25443 cat conftest.err >&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); } &&
25446 { ac_try='test -z "$ac_c_werror_flag"
25447 || test ! -s conftest.err'
25448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449 (eval $ac_try) 2>&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; } &&
25453 { ac_try='test -s conftest.$ac_objext'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; }; then
25459 ac_header_compiler=yes
25461 echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 ac_header_compiler=no
25466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 echo "${ECHO_T}$ac_header_compiler" >&6
25470 # Is the header present?
25471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 #include <$ac_header>
25481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25484 grep -v '^ *+' conftest.er1 >conftest.err
25486 cat conftest.err >&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } >/dev/null; then
25489 if test -s conftest.err; then
25490 ac_cpp_err=$ac_c_preproc_warn_flag
25491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25498 if test -z "$ac_cpp_err"; then
25499 ac_header_preproc=yes
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_preproc=no
25506 rm -f conftest.err conftest.$ac_ext
25507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 echo "${ECHO_T}$ac_header_preproc" >&6
25510 # So? What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25517 ac_header_preproc=yes
25520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25534 ## ------------------------------------------ ##
25535 ## Report this to the AC_PACKAGE_NAME lists. ##
25536 ## ------------------------------------------ ##
25539 sed "s/^/$as_me: WARNING: /" >&2
25542 echo "$as_me:$LINENO: checking for $ac_header" >&5
25543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25545 echo $ECHO_N "(cached) $ECHO_C" >&6
25547 eval "$as_ac_Header=\$ac_header_preproc"
25549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25554 cat >>confdefs.h <<_ACEOF
25555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25563 if test $ac_cv_header_pth_h = yes ; then
25564 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25565 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25566 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25569 ac_check_lib_save_LIBS=$LIBS
25571 cat >conftest.$ac_ext <<_ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h. */
25578 /* Override any gcc2 internal prototype to avoid an error. */
25582 /* We use char because int might match the return type of a gcc2
25583 builtin and then its argument prototype would still apply. */
25584 char pth_version ();
25593 rm -f conftest.$ac_objext conftest$ac_exeext
25594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25595 (eval $ac_link) 2>conftest.er1
25597 grep -v '^ *+' conftest.er1 >conftest.err
25599 cat conftest.err >&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } &&
25602 { ac_try='test -z "$ac_c_werror_flag"
25603 || test ! -s conftest.err'
25604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605 (eval $ac_try) 2>&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); }; } &&
25609 { ac_try='test -s conftest$ac_exeext'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; }; then
25615 ac_cv_lib_pth_pth_version=yes
25617 echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25620 ac_cv_lib_pth_pth_version=no
25622 rm -f conftest.err conftest.$ac_objext \
25623 conftest$ac_exeext conftest.$ac_ext
25624 LIBS=$ac_check_lib_save_LIBS
25626 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25627 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25628 if test $ac_cv_lib_pth_pth_version = yes; then
25635 if test $have_pth = yes ; then
25637 cat >>confdefs.h <<\_ACEOF
25638 #define HAVE_GNU_PTH 1
25641 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25642 ol_link_threads=pth
25643 ol_with_threads=found
25645 if test $ol_with_yielding_select = auto ; then
25646 ol_with_yielding_select=yes
25653 case $ol_with_threads in auto | yes | lwp)
25657 for ac_header in thread.h synch.h
25659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25661 echo "$as_me:$LINENO: checking for $ac_header" >&5
25662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25664 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25669 # Is the header compilable?
25670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25672 cat >conftest.$ac_ext <<_ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25678 $ac_includes_default
25679 #include <$ac_header>
25681 rm -f conftest.$ac_objext
25682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25683 (eval $ac_compile) 2>conftest.er1
25685 grep -v '^ *+' conftest.er1 >conftest.err
25687 cat conftest.err >&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } &&
25690 { ac_try='test -z "$ac_c_werror_flag"
25691 || test ! -s conftest.err'
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; } &&
25697 { ac_try='test -s conftest.$ac_objext'
25698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699 (eval $ac_try) 2>&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; }; then
25703 ac_header_compiler=yes
25705 echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25708 ac_header_compiler=no
25710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25712 echo "${ECHO_T}$ac_header_compiler" >&6
25714 # Is the header present?
25715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25717 cat >conftest.$ac_ext <<_ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h. */
25723 #include <$ac_header>
25725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } >/dev/null; then
25733 if test -s conftest.err; then
25734 ac_cpp_err=$ac_c_preproc_warn_flag
25735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25742 if test -z "$ac_cpp_err"; then
25743 ac_header_preproc=yes
25745 echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25748 ac_header_preproc=no
25750 rm -f conftest.err conftest.$ac_ext
25751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25752 echo "${ECHO_T}$ac_header_preproc" >&6
25754 # So? What about this header?
25755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25761 ac_header_preproc=yes
25764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25778 ## ------------------------------------------ ##
25779 ## Report this to the AC_PACKAGE_NAME lists. ##
25780 ## ------------------------------------------ ##
25783 sed "s/^/$as_me: WARNING: /" >&2
25786 echo "$as_me:$LINENO: checking for $ac_header" >&5
25787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25789 echo $ECHO_N "(cached) $ECHO_C" >&6
25791 eval "$as_ac_Header=\$ac_header_preproc"
25793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25798 cat >>confdefs.h <<_ACEOF
25799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25806 if test $ac_cv_header_thread_h = yes &&
25807 test $ac_cv_header_synch_h = yes ; then
25808 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25809 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25810 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 ac_check_lib_save_LIBS=$LIBS
25814 LIBS="-lthread $LIBS"
25815 cat >conftest.$ac_ext <<_ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25822 /* Override any gcc2 internal prototype to avoid an error. */
25826 /* We use char because int might match the return type of a gcc2
25827 builtin and then its argument prototype would still apply. */
25828 char thr_create ();
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25839 (eval $ac_link) 2>conftest.er1
25841 grep -v '^ *+' conftest.er1 >conftest.err
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
25846 { ac_try='test -z "$ac_c_werror_flag"
25847 || test ! -s conftest.err'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; } &&
25853 { ac_try='test -s conftest$ac_exeext'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; }; then
25859 ac_cv_lib_thread_thr_create=yes
25861 echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 ac_cv_lib_thread_thr_create=no
25866 rm -f conftest.err conftest.$ac_objext \
25867 conftest$ac_exeext conftest.$ac_ext
25868 LIBS=$ac_check_lib_save_LIBS
25870 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25871 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25872 if test $ac_cv_lib_thread_thr_create = yes; then
25879 if test $have_thr = yes ; then
25881 cat >>confdefs.h <<\_ACEOF
25885 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25886 ol_link_threads=thr
25888 if test $ol_with_yielding_select = auto ; then
25889 ol_with_yielding_select=yes
25895 thr_setconcurrency \
25896 thr_getconcurrency \
25899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25900 echo "$as_me:$LINENO: checking for $ac_func" >&5
25901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25902 if eval "test \"\${$as_ac_var+set}\" = set"; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
25905 cat >conftest.$ac_ext <<_ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25913 #define $ac_func innocuous_$ac_func
25915 /* System header to define __stub macros and hopefully few prototypes,
25916 which can conflict with char $ac_func (); below.
25917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25918 <limits.h> exists even on freestanding compilers. */
25921 # include <limits.h>
25923 # include <assert.h>
25928 /* Override any gcc2 internal prototype to avoid an error. */
25933 /* We use char because int might match the return type of a gcc2
25934 builtin and then its argument prototype would still apply. */
25936 /* The GNU C library defines this for functions which it implements
25937 to always fail with ENOSYS. Some functions are actually named
25938 something starting with __ and the normal name is an alias. */
25939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25942 char (*f) () = $ac_func;
25951 return f != $ac_func;
25956 rm -f conftest.$ac_objext conftest$ac_exeext
25957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25958 (eval $ac_link) 2>conftest.er1
25960 grep -v '^ *+' conftest.er1 >conftest.err
25962 cat conftest.err >&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); } &&
25965 { ac_try='test -z "$ac_c_werror_flag"
25966 || test ! -s conftest.err'
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); }; } &&
25972 { ac_try='test -s conftest$ac_exeext'
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25978 eval "$as_ac_var=yes"
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 eval "$as_ac_var=no"
25985 rm -f conftest.err conftest.$ac_objext \
25986 conftest$ac_exeext conftest.$ac_ext
25988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25990 if test `eval echo '${'$as_ac_var'}'` = yes; then
25991 cat >>confdefs.h <<_ACEOF
25992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26002 for ac_header in lwp/lwp.h
26004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26006 echo "$as_me:$LINENO: checking for $ac_header" >&5
26007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26014 # Is the header compilable?
26015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 $ac_includes_default
26024 #include <$ac_header>
26026 rm -f conftest.$ac_objext
26027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26028 (eval $ac_compile) 2>conftest.er1
26030 grep -v '^ *+' conftest.er1 >conftest.err
26032 cat conftest.err >&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } &&
26035 { ac_try='test -z "$ac_c_werror_flag"
26036 || test ! -s conftest.err'
26037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038 (eval $ac_try) 2>&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); }; } &&
26042 { ac_try='test -s conftest.$ac_objext'
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; }; then
26048 ac_header_compiler=yes
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053 ac_header_compiler=no
26055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26057 echo "${ECHO_T}$ac_header_compiler" >&6
26059 # Is the header present?
26060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26062 cat >conftest.$ac_ext <<_ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h. */
26068 #include <$ac_header>
26070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26073 grep -v '^ *+' conftest.er1 >conftest.err
26075 cat conftest.err >&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); } >/dev/null; then
26078 if test -s conftest.err; then
26079 ac_cpp_err=$ac_c_preproc_warn_flag
26080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26087 if test -z "$ac_cpp_err"; then
26088 ac_header_preproc=yes
26090 echo "$as_me: failed program was:" >&5
26091 sed 's/^/| /' conftest.$ac_ext >&5
26093 ac_header_preproc=no
26095 rm -f conftest.err conftest.$ac_ext
26096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26097 echo "${ECHO_T}$ac_header_preproc" >&6
26099 # So? What about this header?
26100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26106 ac_header_preproc=yes
26109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26123 ## ------------------------------------------ ##
26124 ## Report this to the AC_PACKAGE_NAME lists. ##
26125 ## ------------------------------------------ ##
26128 sed "s/^/$as_me: WARNING: /" >&2
26131 echo "$as_me:$LINENO: checking for $ac_header" >&5
26132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26134 echo $ECHO_N "(cached) $ECHO_C" >&6
26136 eval "$as_ac_Header=\$ac_header_preproc"
26138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26143 cat >>confdefs.h <<_ACEOF
26144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26151 if test $ac_cv_header_lwp_lwp_h = yes ; then
26152 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26153 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26154 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26155 echo $ECHO_N "(cached) $ECHO_C" >&6
26157 ac_check_lib_save_LIBS=$LIBS
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26166 /* Override any gcc2 internal prototype to avoid an error. */
26170 /* We use char because int might match the return type of a gcc2
26171 builtin and then its argument prototype would still apply. */
26172 char lwp_create ();
26181 rm -f conftest.$ac_objext conftest$ac_exeext
26182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26183 (eval $ac_link) 2>conftest.er1
26185 grep -v '^ *+' conftest.er1 >conftest.err
26187 cat conftest.err >&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); } &&
26190 { ac_try='test -z "$ac_c_werror_flag"
26191 || test ! -s conftest.err'
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; } &&
26197 { ac_try='test -s conftest$ac_exeext'
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; }; then
26203 ac_cv_lib_lwp_lwp_create=yes
26205 echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26208 ac_cv_lib_lwp_lwp_create=no
26210 rm -f conftest.err conftest.$ac_objext \
26211 conftest$ac_exeext conftest.$ac_ext
26212 LIBS=$ac_check_lib_save_LIBS
26214 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26215 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26216 if test $ac_cv_lib_lwp_lwp_create = yes; then
26223 if test $have_lwp = yes ; then
26225 cat >>confdefs.h <<\_ACEOF
26229 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26230 ol_link_threads=lwp
26232 if test $ol_with_yielding_select = auto ; then
26233 ol_with_yielding_select=no
26240 if test $ol_with_yielding_select = yes ; then
26242 cat >>confdefs.h <<\_ACEOF
26243 #define HAVE_YIELDING_SELECT 1
26248 if test $ol_with_threads = manual ; then
26249 ol_link_threads=yes
26251 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26252 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26256 for ac_header in pthread.h sched.h
26258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26260 echo "$as_me:$LINENO: checking for $ac_header" >&5
26261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26263 echo $ECHO_N "(cached) $ECHO_C" >&6
26265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26268 # Is the header compilable?
26269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26271 cat >conftest.$ac_ext <<_ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h. */
26277 $ac_includes_default
26278 #include <$ac_header>
26280 rm -f conftest.$ac_objext
26281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26282 (eval $ac_compile) 2>conftest.er1
26284 grep -v '^ *+' conftest.er1 >conftest.err
26286 cat conftest.err >&5
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); } &&
26289 { ac_try='test -z "$ac_c_werror_flag"
26290 || test ! -s conftest.err'
26291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292 (eval $ac_try) 2>&5
26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); }; } &&
26296 { ac_try='test -s conftest.$ac_objext'
26297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298 (eval $ac_try) 2>&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; }; then
26302 ac_header_compiler=yes
26304 echo "$as_me: failed program was:" >&5
26305 sed 's/^/| /' conftest.$ac_ext >&5
26307 ac_header_compiler=no
26309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26311 echo "${ECHO_T}$ac_header_compiler" >&6
26313 # Is the header present?
26314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26316 cat >conftest.$ac_ext <<_ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h. */
26322 #include <$ac_header>
26324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26327 grep -v '^ *+' conftest.er1 >conftest.err
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } >/dev/null; then
26332 if test -s conftest.err; then
26333 ac_cpp_err=$ac_c_preproc_warn_flag
26334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26341 if test -z "$ac_cpp_err"; then
26342 ac_header_preproc=yes
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 ac_header_preproc=no
26349 rm -f conftest.err conftest.$ac_ext
26350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26351 echo "${ECHO_T}$ac_header_preproc" >&6
26353 # So? What about this header?
26354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26360 ac_header_preproc=yes
26363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26377 ## ------------------------------------------ ##
26378 ## Report this to the AC_PACKAGE_NAME lists. ##
26379 ## ------------------------------------------ ##
26382 sed "s/^/$as_me: WARNING: /" >&2
26385 echo "$as_me:$LINENO: checking for $ac_header" >&5
26386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 eval "$as_ac_Header=\$ac_header_preproc"
26392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26397 cat >>confdefs.h <<_ACEOF
26398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26407 for ac_func in sched_yield pthread_yield
26409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26410 echo "$as_me:$LINENO: checking for $ac_func" >&5
26411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26412 if eval "test \"\${$as_ac_var+set}\" = set"; then
26413 echo $ECHO_N "(cached) $ECHO_C" >&6
26415 cat >conftest.$ac_ext <<_ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h. */
26421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26423 #define $ac_func innocuous_$ac_func
26425 /* System header to define __stub macros and hopefully few prototypes,
26426 which can conflict with char $ac_func (); below.
26427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26428 <limits.h> exists even on freestanding compilers. */
26431 # include <limits.h>
26433 # include <assert.h>
26438 /* Override any gcc2 internal prototype to avoid an error. */
26443 /* We use char because int might match the return type of a gcc2
26444 builtin and then its argument prototype would still apply. */
26446 /* The GNU C library defines this for functions which it implements
26447 to always fail with ENOSYS. Some functions are actually named
26448 something starting with __ and the normal name is an alias. */
26449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26452 char (*f) () = $ac_func;
26461 return f != $ac_func;
26466 rm -f conftest.$ac_objext conftest$ac_exeext
26467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26468 (eval $ac_link) 2>conftest.er1
26470 grep -v '^ *+' conftest.er1 >conftest.err
26472 cat conftest.err >&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } &&
26475 { ac_try='test -z "$ac_c_werror_flag"
26476 || test ! -s conftest.err'
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; } &&
26482 { ac_try='test -s conftest$ac_exeext'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; }; then
26488 eval "$as_ac_var=yes"
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26493 eval "$as_ac_var=no"
26495 rm -f conftest.err conftest.$ac_objext \
26496 conftest$ac_exeext conftest.$ac_ext
26498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26500 if test `eval echo '${'$as_ac_var'}'` = yes; then
26501 cat >>confdefs.h <<_ACEOF
26502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26509 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26510 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26511 if test "${ol_cv_header_linux_threads+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 cat >conftest.$ac_ext <<_ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26520 #include <pthread.h>
26522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26523 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26524 ol_cv_header_linux_threads=yes
26526 ol_cv_header_linux_threads=no
26532 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26533 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26534 if test $ol_cv_header_linux_threads = yes; then
26536 cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_LINUX_THREADS 1
26544 for ac_header in mach/cthreads.h
26546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26548 echo "$as_me:$LINENO: checking for $ac_header" >&5
26549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26556 # Is the header compilable?
26557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26559 cat >conftest.$ac_ext <<_ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h. */
26565 $ac_includes_default
26566 #include <$ac_header>
26568 rm -f conftest.$ac_objext
26569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26570 (eval $ac_compile) 2>conftest.er1
26572 grep -v '^ *+' conftest.er1 >conftest.err
26574 cat conftest.err >&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } &&
26577 { ac_try='test -z "$ac_c_werror_flag"
26578 || test ! -s conftest.err'
26579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580 (eval $ac_try) 2>&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; } &&
26584 { ac_try='test -s conftest.$ac_objext'
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; }; then
26590 ac_header_compiler=yes
26592 echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26595 ac_header_compiler=no
26597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26599 echo "${ECHO_T}$ac_header_compiler" >&6
26601 # Is the header present?
26602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26604 cat >conftest.$ac_ext <<_ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26610 #include <$ac_header>
26612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26615 grep -v '^ *+' conftest.er1 >conftest.err
26617 cat conftest.err >&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } >/dev/null; then
26620 if test -s conftest.err; then
26621 ac_cpp_err=$ac_c_preproc_warn_flag
26622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26629 if test -z "$ac_cpp_err"; then
26630 ac_header_preproc=yes
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26635 ac_header_preproc=no
26637 rm -f conftest.err conftest.$ac_ext
26638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26639 echo "${ECHO_T}$ac_header_preproc" >&6
26641 # So? What about this header?
26642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26648 ac_header_preproc=yes
26651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26665 ## ------------------------------------------ ##
26666 ## Report this to the AC_PACKAGE_NAME lists. ##
26667 ## ------------------------------------------ ##
26670 sed "s/^/$as_me: WARNING: /" >&2
26673 echo "$as_me:$LINENO: checking for $ac_header" >&5
26674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26678 eval "$as_ac_Header=\$ac_header_preproc"
26680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26685 cat >>confdefs.h <<_ACEOF
26686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26694 for ac_header in lwp/lwp.h
26696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26698 echo "$as_me:$LINENO: checking for $ac_header" >&5
26699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26701 echo $ECHO_N "(cached) $ECHO_C" >&6
26703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26706 # Is the header compilable?
26707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26709 cat >conftest.$ac_ext <<_ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h. */
26715 $ac_includes_default
26716 #include <$ac_header>
26718 rm -f conftest.$ac_objext
26719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26720 (eval $ac_compile) 2>conftest.er1
26722 grep -v '^ *+' conftest.er1 >conftest.err
26724 cat conftest.err >&5
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
26727 { ac_try='test -z "$ac_c_werror_flag"
26728 || test ! -s conftest.err'
26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; } &&
26734 { ac_try='test -s conftest.$ac_objext'
26735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736 (eval $ac_try) 2>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; }; then
26740 ac_header_compiler=yes
26742 echo "$as_me: failed program was:" >&5
26743 sed 's/^/| /' conftest.$ac_ext >&5
26745 ac_header_compiler=no
26747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26749 echo "${ECHO_T}$ac_header_compiler" >&6
26751 # Is the header present?
26752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26754 cat >conftest.$ac_ext <<_ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26760 #include <$ac_header>
26762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26765 grep -v '^ *+' conftest.er1 >conftest.err
26767 cat conftest.err >&5
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } >/dev/null; then
26770 if test -s conftest.err; then
26771 ac_cpp_err=$ac_c_preproc_warn_flag
26772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26779 if test -z "$ac_cpp_err"; then
26780 ac_header_preproc=yes
26782 echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 ac_header_preproc=no
26787 rm -f conftest.err conftest.$ac_ext
26788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26789 echo "${ECHO_T}$ac_header_preproc" >&6
26791 # So? What about this header?
26792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26798 ac_header_preproc=yes
26801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26815 ## ------------------------------------------ ##
26816 ## Report this to the AC_PACKAGE_NAME lists. ##
26817 ## ------------------------------------------ ##
26820 sed "s/^/$as_me: WARNING: /" >&2
26823 echo "$as_me:$LINENO: checking for $ac_header" >&5
26824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26828 eval "$as_ac_Header=\$ac_header_preproc"
26830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26835 cat >>confdefs.h <<_ACEOF
26836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26845 for ac_header in thread.h synch.h
26847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26849 echo "$as_me:$LINENO: checking for $ac_header" >&5
26850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26857 # Is the header compilable?
26858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26860 cat >conftest.$ac_ext <<_ACEOF
26863 cat confdefs.h >>conftest.$ac_ext
26864 cat >>conftest.$ac_ext <<_ACEOF
26865 /* end confdefs.h. */
26866 $ac_includes_default
26867 #include <$ac_header>
26869 rm -f conftest.$ac_objext
26870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26871 (eval $ac_compile) 2>conftest.er1
26873 grep -v '^ *+' conftest.er1 >conftest.err
26875 cat conftest.err >&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); } &&
26878 { ac_try='test -z "$ac_c_werror_flag"
26879 || test ! -s conftest.err'
26880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881 (eval $ac_try) 2>&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; } &&
26885 { ac_try='test -s conftest.$ac_objext'
26886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26887 (eval $ac_try) 2>&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); }; }; then
26891 ac_header_compiler=yes
26893 echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26896 ac_header_compiler=no
26898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26900 echo "${ECHO_T}$ac_header_compiler" >&6
26902 # Is the header present?
26903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26905 cat >conftest.$ac_ext <<_ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h. */
26911 #include <$ac_header>
26913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26916 grep -v '^ *+' conftest.er1 >conftest.err
26918 cat conftest.err >&5
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); } >/dev/null; then
26921 if test -s conftest.err; then
26922 ac_cpp_err=$ac_c_preproc_warn_flag
26923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26930 if test -z "$ac_cpp_err"; then
26931 ac_header_preproc=yes
26933 echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26936 ac_header_preproc=no
26938 rm -f conftest.err conftest.$ac_ext
26939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26940 echo "${ECHO_T}$ac_header_preproc" >&6
26942 # So? What about this header?
26943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26949 ac_header_preproc=yes
26952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26966 ## ------------------------------------------ ##
26967 ## Report this to the AC_PACKAGE_NAME lists. ##
26968 ## ------------------------------------------ ##
26971 sed "s/^/$as_me: WARNING: /" >&2
26974 echo "$as_me:$LINENO: checking for $ac_header" >&5
26975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26979 eval "$as_ac_Header=\$ac_header_preproc"
26981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26986 cat >>confdefs.h <<_ACEOF
26987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26996 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26997 cat >>confdefs.h <<\_ACEOF
26998 #define REENTRANT 1
27001 cat >>confdefs.h <<\_ACEOF
27002 #define _REENTRANT 1
27005 cat >>confdefs.h <<\_ACEOF
27006 #define THREAD_SAFE 1
27009 cat >>confdefs.h <<\_ACEOF
27010 #define _THREAD_SAFE 1
27013 cat >>confdefs.h <<\_ACEOF
27014 #define THREADSAFE 1
27017 cat >>confdefs.h <<\_ACEOF
27018 #define _THREADSAFE 1
27021 cat >>confdefs.h <<\_ACEOF
27022 #define _SGI_MP_SOURCE 1
27026 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27027 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27028 if test "${ol_cv_errno_thread_specific+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27032 cat >conftest.$ac_ext <<_ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27049 (eval $ac_link) 2>conftest.er1
27051 grep -v '^ *+' conftest.er1 >conftest.err
27053 cat conftest.err >&5
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); } &&
27056 { ac_try='test -z "$ac_c_werror_flag"
27057 || test ! -s conftest.err'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; } &&
27063 { ac_try='test -s conftest$ac_exeext'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
27069 ol_cv_errno_thread_specific=yes
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27074 ol_cv_errno_thread_specific=no
27076 rm -f conftest.err conftest.$ac_objext \
27077 conftest$ac_exeext conftest.$ac_ext
27080 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27081 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27083 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27084 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27085 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 cat >conftest.$ac_ext <<_ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h. */
27104 rm -f conftest.$ac_objext conftest$ac_exeext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27106 (eval $ac_link) 2>conftest.er1
27108 grep -v '^ *+' conftest.er1 >conftest.err
27110 cat conftest.err >&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); } &&
27113 { ac_try='test -z "$ac_c_werror_flag"
27114 || test ! -s conftest.err'
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; } &&
27120 { ac_try='test -s conftest$ac_exeext'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; }; then
27126 ol_cv_h_errno_thread_specific=yes
27128 echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27131 ol_cv_h_errno_thread_specific=no
27133 rm -f conftest.err conftest.$ac_objext \
27134 conftest$ac_exeext conftest.$ac_ext
27137 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27138 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27140 if test $ol_cv_errno_thread_specific != yes ||
27141 test $ol_cv_h_errno_thread_specific != yes ; then
27142 LIBS="$LTHREAD_LIBS $LIBS"
27148 if test $ol_link_threads = no ; then
27149 if test $ol_with_threads = yes ; then
27150 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27151 echo "$as_me: error: no suitable thread support" >&2;}
27152 { (exit 1); exit 1; }; }
27155 if test $ol_with_threads = auto ; then
27156 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27157 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27162 cat >>confdefs.h <<\_ACEOF
27163 #define NO_THREADS 1
27169 if test $ol_link_threads != no ; then
27171 cat >>confdefs.h <<\_ACEOF
27172 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27182 gethostbyname_r gethostbyaddr_r \
27185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27186 echo "$as_me:$LINENO: checking for $ac_func" >&5
27187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27188 if eval "test \"\${$as_ac_var+set}\" = set"; then
27189 echo $ECHO_N "(cached) $ECHO_C" >&6
27191 cat >conftest.$ac_ext <<_ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h. */
27197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27199 #define $ac_func innocuous_$ac_func
27201 /* System header to define __stub macros and hopefully few prototypes,
27202 which can conflict with char $ac_func (); below.
27203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27204 <limits.h> exists even on freestanding compilers. */
27207 # include <limits.h>
27209 # include <assert.h>
27214 /* Override any gcc2 internal prototype to avoid an error. */
27219 /* We use char because int might match the return type of a gcc2
27220 builtin and then its argument prototype would still apply. */
27222 /* The GNU C library defines this for functions which it implements
27223 to always fail with ENOSYS. Some functions are actually named
27224 something starting with __ and the normal name is an alias. */
27225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27228 char (*f) () = $ac_func;
27237 return f != $ac_func;
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244 (eval $ac_link) 2>conftest.er1
27246 grep -v '^ *+' conftest.er1 >conftest.err
27248 cat conftest.err >&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } &&
27251 { ac_try='test -z "$ac_c_werror_flag"
27252 || test ! -s conftest.err'
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; } &&
27258 { ac_try='test -s conftest$ac_exeext'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 eval "$as_ac_var=yes"
27266 echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27269 eval "$as_ac_var=no"
27271 rm -f conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
27274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27276 if test `eval echo '${'$as_ac_var'}'` = yes; then
27277 cat >>confdefs.h <<_ACEOF
27278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27285 if test "$ac_cv_func_ctime_r" = no ; then
27286 ol_cv_func_ctime_r_nargs=0
27288 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27289 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27290 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27293 cat >conftest.$ac_ext <<_ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h. */
27303 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27308 rm -f conftest.$ac_objext
27309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27310 (eval $ac_compile) 2>conftest.er1
27312 grep -v '^ *+' conftest.er1 >conftest.err
27314 cat conftest.err >&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); } &&
27317 { ac_try='test -z "$ac_c_werror_flag"
27318 || test ! -s conftest.err'
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; } &&
27324 { ac_try='test -s conftest.$ac_objext'
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
27330 ol_cv_func_ctime_r_nargs3=yes
27332 echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27335 ol_cv_func_ctime_r_nargs3=no
27337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27339 cat >conftest.$ac_ext <<_ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27349 time_t ti; char *buffer; ctime_r(&ti,buffer);
27354 rm -f conftest.$ac_objext
27355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27356 (eval $ac_compile) 2>conftest.er1
27358 grep -v '^ *+' conftest.er1 >conftest.err
27360 cat conftest.err >&5
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } &&
27363 { ac_try='test -z "$ac_c_werror_flag"
27364 || test ! -s conftest.err'
27365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366 (eval $ac_try) 2>&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); }; } &&
27370 { ac_try='test -s conftest.$ac_objext'
27371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372 (eval $ac_try) 2>&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); }; }; then
27376 ol_cv_func_ctime_r_nargs2=yes
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27381 ol_cv_func_ctime_r_nargs2=no
27383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27385 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27386 test $ol_cv_func_ctime_r_nargs2 = no ; then
27388 ol_cv_func_ctime_r_nargs=3
27390 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27391 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27393 ol_cv_func_ctime_r_nargs=2
27396 ol_cv_func_ctime_r_nargs=0
27400 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27401 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27403 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27405 cat >>confdefs.h <<_ACEOF
27406 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27413 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27414 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27415 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27416 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27419 cat >conftest.$ac_ext <<_ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h. */
27425 #include <sys/types.h>
27426 #include <sys/socket.h>
27427 #include <netinet/in.h>
27429 #define BUFSIZE (sizeof(struct hostent)+10)
27433 struct hostent hent; char buffer[BUFSIZE];
27434 int bufsize=BUFSIZE;int h_errno;
27435 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27436 buffer, bufsize, &h_errno);
27441 rm -f conftest.$ac_objext
27442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27443 (eval $ac_compile) 2>conftest.er1
27445 grep -v '^ *+' conftest.er1 >conftest.err
27447 cat conftest.err >&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); } &&
27450 { ac_try='test -z "$ac_c_werror_flag"
27451 || test ! -s conftest.err'
27452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453 (eval $ac_try) 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; } &&
27457 { ac_try='test -s conftest.$ac_objext'
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; }; then
27463 ol_cv_func_gethostbyname_r_nargs5=yes
27465 echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27468 ol_cv_func_gethostbyname_r_nargs5=no
27470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27478 #include <sys/types.h>
27479 #include <sys/socket.h>
27480 #include <netinet/in.h>
27482 #define BUFSIZE (sizeof(struct hostent)+10)
27486 struct hostent hent;struct hostent *rhent;
27487 char buffer[BUFSIZE];
27488 int bufsize=BUFSIZE;int h_errno;
27489 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27495 rm -f conftest.$ac_objext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27497 (eval $ac_compile) 2>conftest.er1
27499 grep -v '^ *+' conftest.er1 >conftest.err
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); } &&
27504 { ac_try='test -z "$ac_c_werror_flag"
27505 || test ! -s conftest.err'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; } &&
27511 { ac_try='test -s conftest.$ac_objext'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; }; then
27517 ol_cv_func_gethostbyname_r_nargs6=yes
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 ol_cv_func_gethostbyname_r_nargs6=no
27524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27526 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27527 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27529 ol_cv_func_gethostbyname_r_nargs=5
27531 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27532 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27534 ol_cv_func_gethostbyname_r_nargs=6
27537 ol_cv_func_gethostbyname_r_nargs=0
27541 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27542 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27543 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27545 cat >>confdefs.h <<_ACEOF
27546 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27552 ol_cv_func_gethostbyname_r_nargs=0
27555 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27556 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27557 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27558 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27561 cat >conftest.$ac_ext <<_ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h. */
27567 #include <sys/types.h>
27568 #include <sys/socket.h>
27569 #include <netinet/in.h>
27571 #define BUFSIZE (sizeof(struct hostent)+10)
27575 struct hostent hent; char buffer[BUFSIZE];
27576 struct in_addr add;
27577 size_t alen=sizeof(struct in_addr);
27578 int bufsize=BUFSIZE;int h_errno;
27579 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27580 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27585 rm -f conftest.$ac_objext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27587 (eval $ac_compile) 2>conftest.er1
27589 grep -v '^ *+' conftest.er1 >conftest.err
27591 cat conftest.err >&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } &&
27594 { ac_try='test -z "$ac_c_werror_flag"
27595 || test ! -s conftest.err'
27596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597 (eval $ac_try) 2>&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; } &&
27601 { ac_try='test -s conftest.$ac_objext'
27602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603 (eval $ac_try) 2>&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; }; then
27607 ol_cv_func_gethostbyaddr_r_nargs7=yes
27609 echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27612 ol_cv_func_gethostbyaddr_r_nargs7=no
27614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27616 cat >conftest.$ac_ext <<_ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h. */
27622 #include <sys/types.h>
27623 #include <sys/socket.h>
27624 #include <netinet/in.h>
27626 #define BUFSIZE (sizeof(struct hostent)+10)
27630 struct hostent hent;
27631 struct hostent *rhent; char buffer[BUFSIZE];
27632 struct in_addr add;
27633 size_t alen=sizeof(struct in_addr);
27634 int bufsize=BUFSIZE;int h_errno;
27635 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27636 alen, AF_INET, &hent, buffer, bufsize,
27642 rm -f conftest.$ac_objext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27644 (eval $ac_compile) 2>conftest.er1
27646 grep -v '^ *+' conftest.er1 >conftest.err
27648 cat conftest.err >&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
27651 { ac_try='test -z "$ac_c_werror_flag"
27652 || test ! -s conftest.err'
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; } &&
27658 { ac_try='test -s conftest.$ac_objext'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; }; then
27664 ol_cv_func_gethostbyaddr_r_nargs8=yes
27666 echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27669 ol_cv_func_gethostbyaddr_r_nargs8=no
27671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27673 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27674 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27676 ol_cv_func_gethostbyaddr_r_nargs=7
27678 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27679 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27681 ol_cv_func_gethostbyaddr_r_nargs=8
27684 ol_cv_func_gethostbyaddr_r_nargs=0
27688 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27689 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27690 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27692 cat >>confdefs.h <<_ACEOF
27693 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27699 ol_cv_func_gethostbyaddr_r_nargs=0
27704 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27706 if test $ol_enable_ldbm_api = bcompat; then \
27709 for ac_header in db_185.h db.h
27711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27713 echo "$as_me:$LINENO: checking for $ac_header" >&5
27714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27716 echo $ECHO_N "(cached) $ECHO_C" >&6
27718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27721 # Is the header compilable?
27722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27724 cat >conftest.$ac_ext <<_ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27730 $ac_includes_default
27731 #include <$ac_header>
27733 rm -f conftest.$ac_objext
27734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27735 (eval $ac_compile) 2>conftest.er1
27737 grep -v '^ *+' conftest.er1 >conftest.err
27739 cat conftest.err >&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } &&
27742 { ac_try='test -z "$ac_c_werror_flag"
27743 || test ! -s conftest.err'
27744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745 (eval $ac_try) 2>&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); }; } &&
27749 { ac_try='test -s conftest.$ac_objext'
27750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27751 (eval $ac_try) 2>&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; }; then
27755 ac_header_compiler=yes
27757 echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 ac_header_compiler=no
27762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27764 echo "${ECHO_T}$ac_header_compiler" >&6
27766 # Is the header present?
27767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <$ac_header>
27777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27780 grep -v '^ *+' conftest.er1 >conftest.err
27782 cat conftest.err >&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); } >/dev/null; then
27785 if test -s conftest.err; then
27786 ac_cpp_err=$ac_c_preproc_warn_flag
27787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27794 if test -z "$ac_cpp_err"; then
27795 ac_header_preproc=yes
27797 echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27800 ac_header_preproc=no
27802 rm -f conftest.err conftest.$ac_ext
27803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27804 echo "${ECHO_T}$ac_header_preproc" >&6
27806 # So? What about this header?
27807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27813 ac_header_preproc=yes
27816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27830 ## ------------------------------------------ ##
27831 ## Report this to the AC_PACKAGE_NAME lists. ##
27832 ## ------------------------------------------ ##
27835 sed "s/^/$as_me: WARNING: /" >&2
27838 echo "$as_me:$LINENO: checking for $ac_header" >&5
27839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27841 echo $ECHO_N "(cached) $ECHO_C" >&6
27843 eval "$as_ac_Header=\$ac_header_preproc"
27845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27850 cat >>confdefs.h <<_ACEOF
27851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27858 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27859 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27860 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27861 if test "${ol_cv_header_db1+set}" = set; then
27862 echo $ECHO_N "(cached) $ECHO_C" >&6
27865 cat >conftest.$ac_ext <<_ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h. */
27873 # include <db_185.h>
27878 /* this check could be improved */
27879 #ifndef DB_VERSION_MAJOR
27880 # define DB_VERSION_MAJOR 1
27883 #if DB_VERSION_MAJOR == 1
27888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27889 $EGREP "__db_version_1" >/dev/null 2>&1; then
27890 ol_cv_header_db1=yes
27892 ol_cv_header_db1=no
27897 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27898 echo "${ECHO_T}$ol_cv_header_db1" >&6
27900 if test $ol_cv_header_db1 = yes ; then
27902 if test $ol_cv_lib_db = no ; then
27903 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27904 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27905 if test "${ol_cv_db_none+set}" = set; then
27906 echo $ECHO_N "(cached) $ECHO_C" >&6
27911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27913 cat >conftest.$ac_ext <<_ACEOF
27916 cat confdefs.h >>conftest.$ac_ext
27917 cat >>conftest.$ac_ext <<_ACEOF
27918 /* end confdefs.h. */
27920 #ifdef HAVE_DB_185_H
27921 # include <db_185.h>
27926 #ifndef DB_VERSION_MAJOR
27927 # define DB_VERSION_MAJOR 1
27931 #define NULL ((void*)0)
27938 #if DB_VERSION_MAJOR > 1
27941 int major, minor, patch;
27943 version = db_version( &major, &minor, &patch );
27945 if( major != DB_VERSION_MAJOR ||
27946 minor < DB_VERSION_MINOR )
27948 printf("Berkeley DB version mismatch\n"
27949 "\theader: %s\n\tlibrary: %s\n",
27950 DB_VERSION_STRING, version);
27956 #if DB_VERSION_MAJOR > 2
27957 db_env_create( NULL, 0 );
27958 #elif DB_VERSION_MAJOR > 1
27959 db_appexit( NULL );
27961 (void) dbopen( NULL, 0, 0, 0, NULL);
27968 rm -f conftest.$ac_objext conftest$ac_exeext
27969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27970 (eval $ac_link) 2>conftest.er1
27972 grep -v '^ *+' conftest.er1 >conftest.err
27974 cat conftest.err >&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } &&
27977 { ac_try='test -z "$ac_c_werror_flag"
27978 || test ! -s conftest.err'
27979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980 (eval $ac_try) 2>&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); }; } &&
27984 { ac_try='test -s conftest$ac_exeext'
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; }; then
27992 echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27997 rm -f conftest.err conftest.$ac_objext \
27998 conftest$ac_exeext conftest.$ac_ext
28003 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28004 echo "${ECHO_T}$ol_cv_db_none" >&6
28006 if test $ol_cv_db_none = yes ; then
28011 if test $ol_cv_lib_db = no ; then
28012 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28013 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28014 if test "${ol_cv_db_db43+set}" = set; then
28015 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28029 #ifdef HAVE_DB_185_H
28030 # include <db_185.h>
28035 #ifndef DB_VERSION_MAJOR
28036 # define DB_VERSION_MAJOR 1
28040 #define NULL ((void*)0)
28047 #if DB_VERSION_MAJOR > 1
28050 int major, minor, patch;
28052 version = db_version( &major, &minor, &patch );
28054 if( major != DB_VERSION_MAJOR ||
28055 minor < DB_VERSION_MINOR )
28057 printf("Berkeley DB version mismatch\n"
28058 "\theader: %s\n\tlibrary: %s\n",
28059 DB_VERSION_STRING, version);
28065 #if DB_VERSION_MAJOR > 2
28066 db_env_create( NULL, 0 );
28067 #elif DB_VERSION_MAJOR > 1
28068 db_appexit( NULL );
28070 (void) dbopen( NULL, 0, 0, 0, NULL);
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28079 (eval $ac_link) 2>conftest.er1
28081 grep -v '^ *+' conftest.er1 >conftest.err
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag"
28087 || test ! -s conftest.err'
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; } &&
28093 { ac_try='test -s conftest$ac_exeext'
28094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095 (eval $ac_try) 2>&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; }; then
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28106 rm -f conftest.err conftest.$ac_objext \
28107 conftest$ac_exeext conftest.$ac_ext
28112 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28113 echo "${ECHO_T}$ol_cv_db_db43" >&6
28115 if test $ol_cv_db_db43 = yes ; then
28116 ol_cv_lib_db=-ldb43
28120 if test $ol_cv_lib_db = no ; then
28121 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28122 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28123 if test "${ol_cv_db_db_43+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28129 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28131 cat >conftest.$ac_ext <<_ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h. */
28138 #ifdef HAVE_DB_185_H
28139 # include <db_185.h>
28144 #ifndef DB_VERSION_MAJOR
28145 # define DB_VERSION_MAJOR 1
28149 #define NULL ((void*)0)
28156 #if DB_VERSION_MAJOR > 1
28159 int major, minor, patch;
28161 version = db_version( &major, &minor, &patch );
28163 if( major != DB_VERSION_MAJOR ||
28164 minor < DB_VERSION_MINOR )
28166 printf("Berkeley DB version mismatch\n"
28167 "\theader: %s\n\tlibrary: %s\n",
28168 DB_VERSION_STRING, version);
28174 #if DB_VERSION_MAJOR > 2
28175 db_env_create( NULL, 0 );
28176 #elif DB_VERSION_MAJOR > 1
28177 db_appexit( NULL );
28179 (void) dbopen( NULL, 0, 0, 0, NULL);
28186 rm -f conftest.$ac_objext conftest$ac_exeext
28187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28188 (eval $ac_link) 2>conftest.er1
28190 grep -v '^ *+' conftest.er1 >conftest.err
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } &&
28195 { ac_try='test -z "$ac_c_werror_flag"
28196 || test ! -s conftest.err'
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; } &&
28202 { ac_try='test -s conftest$ac_exeext'
28203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204 (eval $ac_try) 2>&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; }; then
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28215 rm -f conftest.err conftest.$ac_objext \
28216 conftest$ac_exeext conftest.$ac_ext
28221 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28222 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28224 if test $ol_cv_db_db_43 = yes ; then
28225 ol_cv_lib_db=-ldb-43
28229 if test $ol_cv_lib_db = no ; then
28230 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28231 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28232 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28240 cat >conftest.$ac_ext <<_ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28247 #ifdef HAVE_DB_185_H
28248 # include <db_185.h>
28253 #ifndef DB_VERSION_MAJOR
28254 # define DB_VERSION_MAJOR 1
28258 #define NULL ((void*)0)
28265 #if DB_VERSION_MAJOR > 1
28268 int major, minor, patch;
28270 version = db_version( &major, &minor, &patch );
28272 if( major != DB_VERSION_MAJOR ||
28273 minor < DB_VERSION_MINOR )
28275 printf("Berkeley DB version mismatch\n"
28276 "\theader: %s\n\tlibrary: %s\n",
28277 DB_VERSION_STRING, version);
28283 #if DB_VERSION_MAJOR > 2
28284 db_env_create( NULL, 0 );
28285 #elif DB_VERSION_MAJOR > 1
28286 db_appexit( NULL );
28288 (void) dbopen( NULL, 0, 0, 0, NULL);
28295 rm -f conftest.$ac_objext conftest$ac_exeext
28296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28297 (eval $ac_link) 2>conftest.er1
28299 grep -v '^ *+' conftest.er1 >conftest.err
28301 cat conftest.err >&5
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } &&
28304 { ac_try='test -z "$ac_c_werror_flag"
28305 || test ! -s conftest.err'
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
28311 { ac_try='test -s conftest$ac_exeext'
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ol_cv_db_db_4_dot_3=yes
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28322 ol_cv_db_db_4_dot_3=no
28324 rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
28330 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28331 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28333 if test $ol_cv_db_db_4_dot_3 = yes ; then
28334 ol_cv_lib_db=-ldb-4.3
28338 if test $ol_cv_lib_db = no ; then
28339 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28340 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28341 if test "${ol_cv_db_db_4_3+set}" = set; then
28342 echo $ECHO_N "(cached) $ECHO_C" >&6
28347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28349 cat >conftest.$ac_ext <<_ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h. */
28356 #ifdef HAVE_DB_185_H
28357 # include <db_185.h>
28362 #ifndef DB_VERSION_MAJOR
28363 # define DB_VERSION_MAJOR 1
28367 #define NULL ((void*)0)
28374 #if DB_VERSION_MAJOR > 1
28377 int major, minor, patch;
28379 version = db_version( &major, &minor, &patch );
28381 if( major != DB_VERSION_MAJOR ||
28382 minor < DB_VERSION_MINOR )
28384 printf("Berkeley DB version mismatch\n"
28385 "\theader: %s\n\tlibrary: %s\n",
28386 DB_VERSION_STRING, version);
28392 #if DB_VERSION_MAJOR > 2
28393 db_env_create( NULL, 0 );
28394 #elif DB_VERSION_MAJOR > 1
28395 db_appexit( NULL );
28397 (void) dbopen( NULL, 0, 0, 0, NULL);
28404 rm -f conftest.$ac_objext conftest$ac_exeext
28405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28406 (eval $ac_link) 2>conftest.er1
28408 grep -v '^ *+' conftest.er1 >conftest.err
28410 cat conftest.err >&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); } &&
28413 { ac_try='test -z "$ac_c_werror_flag"
28414 || test ! -s conftest.err'
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; } &&
28420 { ac_try='test -s conftest$ac_exeext'
28421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422 (eval $ac_try) 2>&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; }; then
28426 ol_cv_db_db_4_3=yes
28428 echo "$as_me: failed program was:" >&5
28429 sed 's/^/| /' conftest.$ac_ext >&5
28433 rm -f conftest.err conftest.$ac_objext \
28434 conftest$ac_exeext conftest.$ac_ext
28439 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28440 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28442 if test $ol_cv_db_db_4_3 = yes ; then
28443 ol_cv_lib_db=-ldb-4-3
28447 if test $ol_cv_lib_db = no ; then
28448 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28449 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28450 if test "${ol_cv_db_db42+set}" = set; then
28451 echo $ECHO_N "(cached) $ECHO_C" >&6
28456 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28458 cat >conftest.$ac_ext <<_ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28465 #ifdef HAVE_DB_185_H
28466 # include <db_185.h>
28471 #ifndef DB_VERSION_MAJOR
28472 # define DB_VERSION_MAJOR 1
28476 #define NULL ((void*)0)
28483 #if DB_VERSION_MAJOR > 1
28486 int major, minor, patch;
28488 version = db_version( &major, &minor, &patch );
28490 if( major != DB_VERSION_MAJOR ||
28491 minor < DB_VERSION_MINOR )
28493 printf("Berkeley DB version mismatch\n"
28494 "\theader: %s\n\tlibrary: %s\n",
28495 DB_VERSION_STRING, version);
28501 #if DB_VERSION_MAJOR > 2
28502 db_env_create( NULL, 0 );
28503 #elif DB_VERSION_MAJOR > 1
28504 db_appexit( NULL );
28506 (void) dbopen( NULL, 0, 0, 0, NULL);
28513 rm -f conftest.$ac_objext conftest$ac_exeext
28514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28515 (eval $ac_link) 2>conftest.er1
28517 grep -v '^ *+' conftest.er1 >conftest.err
28519 cat conftest.err >&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } &&
28522 { ac_try='test -z "$ac_c_werror_flag"
28523 || test ! -s conftest.err'
28524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525 (eval $ac_try) 2>&5
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; } &&
28529 { ac_try='test -s conftest$ac_exeext'
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; }; then
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28542 rm -f conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
28548 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28549 echo "${ECHO_T}$ol_cv_db_db42" >&6
28551 if test $ol_cv_db_db42 = yes ; then
28552 ol_cv_lib_db=-ldb42
28556 if test $ol_cv_lib_db = no ; then
28557 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28558 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28559 if test "${ol_cv_db_db_42+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28565 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28567 cat >conftest.$ac_ext <<_ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h. */
28574 #ifdef HAVE_DB_185_H
28575 # include <db_185.h>
28580 #ifndef DB_VERSION_MAJOR
28581 # define DB_VERSION_MAJOR 1
28585 #define NULL ((void*)0)
28592 #if DB_VERSION_MAJOR > 1
28595 int major, minor, patch;
28597 version = db_version( &major, &minor, &patch );
28599 if( major != DB_VERSION_MAJOR ||
28600 minor < DB_VERSION_MINOR )
28602 printf("Berkeley DB version mismatch\n"
28603 "\theader: %s\n\tlibrary: %s\n",
28604 DB_VERSION_STRING, version);
28610 #if DB_VERSION_MAJOR > 2
28611 db_env_create( NULL, 0 );
28612 #elif DB_VERSION_MAJOR > 1
28613 db_appexit( NULL );
28615 (void) dbopen( NULL, 0, 0, 0, NULL);
28622 rm -f conftest.$ac_objext conftest$ac_exeext
28623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624 (eval $ac_link) 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } &&
28631 { ac_try='test -z "$ac_c_werror_flag"
28632 || test ! -s conftest.err'
28633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634 (eval $ac_try) 2>&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; } &&
28638 { ac_try='test -s conftest$ac_exeext'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; }; then
28646 echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28651 rm -f conftest.err conftest.$ac_objext \
28652 conftest$ac_exeext conftest.$ac_ext
28657 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28658 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28660 if test $ol_cv_db_db_42 = yes ; then
28661 ol_cv_lib_db=-ldb-42
28665 if test $ol_cv_lib_db = no ; then
28666 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28667 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28668 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28669 echo $ECHO_N "(cached) $ECHO_C" >&6
28674 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28676 cat >conftest.$ac_ext <<_ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h. */
28683 #ifdef HAVE_DB_185_H
28684 # include <db_185.h>
28689 #ifndef DB_VERSION_MAJOR
28690 # define DB_VERSION_MAJOR 1
28694 #define NULL ((void*)0)
28701 #if DB_VERSION_MAJOR > 1
28704 int major, minor, patch;
28706 version = db_version( &major, &minor, &patch );
28708 if( major != DB_VERSION_MAJOR ||
28709 minor < DB_VERSION_MINOR )
28711 printf("Berkeley DB version mismatch\n"
28712 "\theader: %s\n\tlibrary: %s\n",
28713 DB_VERSION_STRING, version);
28719 #if DB_VERSION_MAJOR > 2
28720 db_env_create( NULL, 0 );
28721 #elif DB_VERSION_MAJOR > 1
28722 db_appexit( NULL );
28724 (void) dbopen( NULL, 0, 0, 0, NULL);
28731 rm -f conftest.$ac_objext conftest$ac_exeext
28732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28733 (eval $ac_link) 2>conftest.er1
28735 grep -v '^ *+' conftest.er1 >conftest.err
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } &&
28740 { ac_try='test -z "$ac_c_werror_flag"
28741 || test ! -s conftest.err'
28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; } &&
28747 { ac_try='test -s conftest$ac_exeext'
28748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749 (eval $ac_try) 2>&5
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); }; }; then
28753 ol_cv_db_db_4_dot_2=yes
28755 echo "$as_me: failed program was:" >&5
28756 sed 's/^/| /' conftest.$ac_ext >&5
28758 ol_cv_db_db_4_dot_2=no
28760 rm -f conftest.err conftest.$ac_objext \
28761 conftest$ac_exeext conftest.$ac_ext
28766 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28767 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28769 if test $ol_cv_db_db_4_dot_2 = yes ; then
28770 ol_cv_lib_db=-ldb-4.2
28774 if test $ol_cv_lib_db = no ; then
28775 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28776 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28777 if test "${ol_cv_db_db_4_2+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28785 cat >conftest.$ac_ext <<_ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h. */
28792 #ifdef HAVE_DB_185_H
28793 # include <db_185.h>
28798 #ifndef DB_VERSION_MAJOR
28799 # define DB_VERSION_MAJOR 1
28803 #define NULL ((void*)0)
28810 #if DB_VERSION_MAJOR > 1
28813 int major, minor, patch;
28815 version = db_version( &major, &minor, &patch );
28817 if( major != DB_VERSION_MAJOR ||
28818 minor < DB_VERSION_MINOR )
28820 printf("Berkeley DB version mismatch\n"
28821 "\theader: %s\n\tlibrary: %s\n",
28822 DB_VERSION_STRING, version);
28828 #if DB_VERSION_MAJOR > 2
28829 db_env_create( NULL, 0 );
28830 #elif DB_VERSION_MAJOR > 1
28831 db_appexit( NULL );
28833 (void) dbopen( NULL, 0, 0, 0, NULL);
28840 rm -f conftest.$ac_objext conftest$ac_exeext
28841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28842 (eval $ac_link) 2>conftest.er1
28844 grep -v '^ *+' conftest.er1 >conftest.err
28846 cat conftest.err >&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } &&
28849 { ac_try='test -z "$ac_c_werror_flag"
28850 || test ! -s conftest.err'
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; } &&
28856 { ac_try='test -s conftest$ac_exeext'
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; }; then
28862 ol_cv_db_db_4_2=yes
28864 echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28869 rm -f conftest.err conftest.$ac_objext \
28870 conftest$ac_exeext conftest.$ac_ext
28875 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28876 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28878 if test $ol_cv_db_db_4_2 = yes ; then
28879 ol_cv_lib_db=-ldb-4-2
28883 if test $ol_cv_lib_db = no ; then
28884 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28885 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28886 if test "${ol_cv_db_db_4+set}" = set; then
28887 echo $ECHO_N "(cached) $ECHO_C" >&6
28892 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28894 cat >conftest.$ac_ext <<_ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28901 #ifdef HAVE_DB_185_H
28902 # include <db_185.h>
28907 #ifndef DB_VERSION_MAJOR
28908 # define DB_VERSION_MAJOR 1
28912 #define NULL ((void*)0)
28919 #if DB_VERSION_MAJOR > 1
28922 int major, minor, patch;
28924 version = db_version( &major, &minor, &patch );
28926 if( major != DB_VERSION_MAJOR ||
28927 minor < DB_VERSION_MINOR )
28929 printf("Berkeley DB version mismatch\n"
28930 "\theader: %s\n\tlibrary: %s\n",
28931 DB_VERSION_STRING, version);
28937 #if DB_VERSION_MAJOR > 2
28938 db_env_create( NULL, 0 );
28939 #elif DB_VERSION_MAJOR > 1
28940 db_appexit( NULL );
28942 (void) dbopen( NULL, 0, 0, 0, NULL);
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28951 (eval $ac_link) 2>conftest.er1
28953 grep -v '^ *+' conftest.er1 >conftest.err
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } &&
28958 { ac_try='test -z "$ac_c_werror_flag"
28959 || test ! -s conftest.err'
28960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest$ac_exeext'
28966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967 (eval $ac_try) 2>&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; }; then
28973 echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28978 rm -f conftest.err conftest.$ac_objext \
28979 conftest$ac_exeext conftest.$ac_ext
28984 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28985 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28987 if test $ol_cv_db_db_4 = yes ; then
28988 ol_cv_lib_db=-ldb-4
28992 if test $ol_cv_lib_db = no ; then
28993 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28994 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28995 if test "${ol_cv_db_db4+set}" = set; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
29001 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29010 #ifdef HAVE_DB_185_H
29011 # include <db_185.h>
29016 #ifndef DB_VERSION_MAJOR
29017 # define DB_VERSION_MAJOR 1
29021 #define NULL ((void*)0)
29028 #if DB_VERSION_MAJOR > 1
29031 int major, minor, patch;
29033 version = db_version( &major, &minor, &patch );
29035 if( major != DB_VERSION_MAJOR ||
29036 minor < DB_VERSION_MINOR )
29038 printf("Berkeley DB version mismatch\n"
29039 "\theader: %s\n\tlibrary: %s\n",
29040 DB_VERSION_STRING, version);
29046 #if DB_VERSION_MAJOR > 2
29047 db_env_create( NULL, 0 );
29048 #elif DB_VERSION_MAJOR > 1
29049 db_appexit( NULL );
29051 (void) dbopen( NULL, 0, 0, 0, NULL);
29058 rm -f conftest.$ac_objext conftest$ac_exeext
29059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29060 (eval $ac_link) 2>conftest.er1
29062 grep -v '^ *+' conftest.er1 >conftest.err
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } &&
29067 { ac_try='test -z "$ac_c_werror_flag"
29068 || test ! -s conftest.err'
29069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29070 (eval $ac_try) 2>&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; } &&
29074 { ac_try='test -s conftest$ac_exeext'
29075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29076 (eval $ac_try) 2>&5
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); }; }; then
29082 echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29087 rm -f conftest.err conftest.$ac_objext \
29088 conftest$ac_exeext conftest.$ac_ext
29093 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29094 echo "${ECHO_T}$ol_cv_db_db4" >&6
29096 if test $ol_cv_db_db4 = yes ; then
29101 if test $ol_cv_lib_db = no ; then
29102 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29103 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29104 if test "${ol_cv_db_db+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29110 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29119 #ifdef HAVE_DB_185_H
29120 # include <db_185.h>
29125 #ifndef DB_VERSION_MAJOR
29126 # define DB_VERSION_MAJOR 1
29130 #define NULL ((void*)0)
29137 #if DB_VERSION_MAJOR > 1
29140 int major, minor, patch;
29142 version = db_version( &major, &minor, &patch );
29144 if( major != DB_VERSION_MAJOR ||
29145 minor < DB_VERSION_MINOR )
29147 printf("Berkeley DB version mismatch\n"
29148 "\theader: %s\n\tlibrary: %s\n",
29149 DB_VERSION_STRING, version);
29155 #if DB_VERSION_MAJOR > 2
29156 db_env_create( NULL, 0 );
29157 #elif DB_VERSION_MAJOR > 1
29158 db_appexit( NULL );
29160 (void) dbopen( NULL, 0, 0, 0, NULL);
29167 rm -f conftest.$ac_objext conftest$ac_exeext
29168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29169 (eval $ac_link) 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } &&
29176 { ac_try='test -z "$ac_c_werror_flag"
29177 || test ! -s conftest.err'
29178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179 (eval $ac_try) 2>&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; } &&
29183 { ac_try='test -s conftest$ac_exeext'
29184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
29191 echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29196 rm -f conftest.err conftest.$ac_objext \
29197 conftest$ac_exeext conftest.$ac_ext
29202 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29203 echo "${ECHO_T}$ol_cv_db_db" >&6
29205 if test $ol_cv_db_db = yes ; then
29210 if test $ol_cv_lib_db = no ; then
29211 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29212 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29213 if test "${ol_cv_db_db41+set}" = set; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29221 cat >conftest.$ac_ext <<_ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h. */
29228 #ifdef HAVE_DB_185_H
29229 # include <db_185.h>
29234 #ifndef DB_VERSION_MAJOR
29235 # define DB_VERSION_MAJOR 1
29239 #define NULL ((void*)0)
29246 #if DB_VERSION_MAJOR > 1
29249 int major, minor, patch;
29251 version = db_version( &major, &minor, &patch );
29253 if( major != DB_VERSION_MAJOR ||
29254 minor < DB_VERSION_MINOR )
29256 printf("Berkeley DB version mismatch\n"
29257 "\theader: %s\n\tlibrary: %s\n",
29258 DB_VERSION_STRING, version);
29264 #if DB_VERSION_MAJOR > 2
29265 db_env_create( NULL, 0 );
29266 #elif DB_VERSION_MAJOR > 1
29267 db_appexit( NULL );
29269 (void) dbopen( NULL, 0, 0, 0, NULL);
29276 rm -f conftest.$ac_objext conftest$ac_exeext
29277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29278 (eval $ac_link) 2>conftest.er1
29280 grep -v '^ *+' conftest.er1 >conftest.err
29282 cat conftest.err >&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } &&
29285 { ac_try='test -z "$ac_c_werror_flag"
29286 || test ! -s conftest.err'
29287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288 (eval $ac_try) 2>&5
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); }; } &&
29292 { ac_try='test -s conftest$ac_exeext'
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; }; then
29300 echo "$as_me: failed program was:" >&5
29301 sed 's/^/| /' conftest.$ac_ext >&5
29305 rm -f conftest.err conftest.$ac_objext \
29306 conftest$ac_exeext conftest.$ac_ext
29311 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29312 echo "${ECHO_T}$ol_cv_db_db41" >&6
29314 if test $ol_cv_db_db41 = yes ; then
29315 ol_cv_lib_db=-ldb41
29319 if test $ol_cv_lib_db = no ; then
29320 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29321 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29322 if test "${ol_cv_db_db_41+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29328 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29330 cat >conftest.$ac_ext <<_ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29337 #ifdef HAVE_DB_185_H
29338 # include <db_185.h>
29343 #ifndef DB_VERSION_MAJOR
29344 # define DB_VERSION_MAJOR 1
29348 #define NULL ((void*)0)
29355 #if DB_VERSION_MAJOR > 1
29358 int major, minor, patch;
29360 version = db_version( &major, &minor, &patch );
29362 if( major != DB_VERSION_MAJOR ||
29363 minor < DB_VERSION_MINOR )
29365 printf("Berkeley DB version mismatch\n"
29366 "\theader: %s\n\tlibrary: %s\n",
29367 DB_VERSION_STRING, version);
29373 #if DB_VERSION_MAJOR > 2
29374 db_env_create( NULL, 0 );
29375 #elif DB_VERSION_MAJOR > 1
29376 db_appexit( NULL );
29378 (void) dbopen( NULL, 0, 0, 0, NULL);
29385 rm -f conftest.$ac_objext conftest$ac_exeext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29387 (eval $ac_link) 2>conftest.er1
29389 grep -v '^ *+' conftest.er1 >conftest.err
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } &&
29394 { ac_try='test -z "$ac_c_werror_flag"
29395 || test ! -s conftest.err'
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; } &&
29401 { ac_try='test -s conftest$ac_exeext'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29409 echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29414 rm -f conftest.err conftest.$ac_objext \
29415 conftest$ac_exeext conftest.$ac_ext
29420 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29421 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29423 if test $ol_cv_db_db_41 = yes ; then
29424 ol_cv_lib_db=-ldb-41
29428 if test $ol_cv_lib_db = no ; then
29429 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29430 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29431 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29437 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29446 #ifdef HAVE_DB_185_H
29447 # include <db_185.h>
29452 #ifndef DB_VERSION_MAJOR
29453 # define DB_VERSION_MAJOR 1
29457 #define NULL ((void*)0)
29464 #if DB_VERSION_MAJOR > 1
29467 int major, minor, patch;
29469 version = db_version( &major, &minor, &patch );
29471 if( major != DB_VERSION_MAJOR ||
29472 minor < DB_VERSION_MINOR )
29474 printf("Berkeley DB version mismatch\n"
29475 "\theader: %s\n\tlibrary: %s\n",
29476 DB_VERSION_STRING, version);
29482 #if DB_VERSION_MAJOR > 2
29483 db_env_create( NULL, 0 );
29484 #elif DB_VERSION_MAJOR > 1
29485 db_appexit( NULL );
29487 (void) dbopen( NULL, 0, 0, 0, NULL);
29494 rm -f conftest.$ac_objext conftest$ac_exeext
29495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29496 (eval $ac_link) 2>conftest.er1
29498 grep -v '^ *+' conftest.er1 >conftest.err
29500 cat conftest.err >&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); } &&
29503 { ac_try='test -z "$ac_c_werror_flag"
29504 || test ! -s conftest.err'
29505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506 (eval $ac_try) 2>&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; } &&
29510 { ac_try='test -s conftest$ac_exeext'
29511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29512 (eval $ac_try) 2>&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); }; }; then
29516 ol_cv_db_db_4_dot_1=yes
29518 echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29521 ol_cv_db_db_4_dot_1=no
29523 rm -f conftest.err conftest.$ac_objext \
29524 conftest$ac_exeext conftest.$ac_ext
29529 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29530 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29532 if test $ol_cv_db_db_4_dot_1 = yes ; then
29533 ol_cv_lib_db=-ldb-4.1
29537 if test $ol_cv_lib_db = no ; then
29538 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29539 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29540 if test "${ol_cv_db_db_4_1+set}" = set; then
29541 echo $ECHO_N "(cached) $ECHO_C" >&6
29546 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29548 cat >conftest.$ac_ext <<_ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29555 #ifdef HAVE_DB_185_H
29556 # include <db_185.h>
29561 #ifndef DB_VERSION_MAJOR
29562 # define DB_VERSION_MAJOR 1
29566 #define NULL ((void*)0)
29573 #if DB_VERSION_MAJOR > 1
29576 int major, minor, patch;
29578 version = db_version( &major, &minor, &patch );
29580 if( major != DB_VERSION_MAJOR ||
29581 minor < DB_VERSION_MINOR )
29583 printf("Berkeley DB version mismatch\n"
29584 "\theader: %s\n\tlibrary: %s\n",
29585 DB_VERSION_STRING, version);
29591 #if DB_VERSION_MAJOR > 2
29592 db_env_create( NULL, 0 );
29593 #elif DB_VERSION_MAJOR > 1
29594 db_appexit( NULL );
29596 (void) dbopen( NULL, 0, 0, 0, NULL);
29603 rm -f conftest.$ac_objext conftest$ac_exeext
29604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29605 (eval $ac_link) 2>conftest.er1
29607 grep -v '^ *+' conftest.er1 >conftest.err
29609 cat conftest.err >&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
29612 { ac_try='test -z "$ac_c_werror_flag"
29613 || test ! -s conftest.err'
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest$ac_exeext'
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ol_cv_db_db_4_1=yes
29627 echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29632 rm -f conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
29638 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29639 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29641 if test $ol_cv_db_db_4_1 = yes ; then
29642 ol_cv_lib_db=-ldb-4-1
29646 if test $ol_cv_lib_db = no ; then
29647 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29648 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29649 if test "${ol_cv_db_db3+set}" = set; then
29650 echo $ECHO_N "(cached) $ECHO_C" >&6
29655 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29657 cat >conftest.$ac_ext <<_ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h. */
29664 #ifdef HAVE_DB_185_H
29665 # include <db_185.h>
29670 #ifndef DB_VERSION_MAJOR
29671 # define DB_VERSION_MAJOR 1
29675 #define NULL ((void*)0)
29682 #if DB_VERSION_MAJOR > 1
29685 int major, minor, patch;
29687 version = db_version( &major, &minor, &patch );
29689 if( major != DB_VERSION_MAJOR ||
29690 minor < DB_VERSION_MINOR )
29692 printf("Berkeley DB version mismatch\n"
29693 "\theader: %s\n\tlibrary: %s\n",
29694 DB_VERSION_STRING, version);
29700 #if DB_VERSION_MAJOR > 2
29701 db_env_create( NULL, 0 );
29702 #elif DB_VERSION_MAJOR > 1
29703 db_appexit( NULL );
29705 (void) dbopen( NULL, 0, 0, 0, NULL);
29712 rm -f conftest.$ac_objext conftest$ac_exeext
29713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29714 (eval $ac_link) 2>conftest.er1
29716 grep -v '^ *+' conftest.er1 >conftest.err
29718 cat conftest.err >&5
29719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); } &&
29721 { ac_try='test -z "$ac_c_werror_flag"
29722 || test ! -s conftest.err'
29723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29724 (eval $ac_try) 2>&5
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; } &&
29728 { ac_try='test -s conftest$ac_exeext'
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; }; then
29736 echo "$as_me: failed program was:" >&5
29737 sed 's/^/| /' conftest.$ac_ext >&5
29741 rm -f conftest.err conftest.$ac_objext \
29742 conftest$ac_exeext conftest.$ac_ext
29747 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29748 echo "${ECHO_T}$ol_cv_db_db3" >&6
29750 if test $ol_cv_db_db3 = yes ; then
29755 if test $ol_cv_lib_db = no ; then
29756 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29757 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29758 if test "${ol_cv_db_db_3+set}" = set; then
29759 echo $ECHO_N "(cached) $ECHO_C" >&6
29764 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29766 cat >conftest.$ac_ext <<_ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h. */
29773 #ifdef HAVE_DB_185_H
29774 # include <db_185.h>
29779 #ifndef DB_VERSION_MAJOR
29780 # define DB_VERSION_MAJOR 1
29784 #define NULL ((void*)0)
29791 #if DB_VERSION_MAJOR > 1
29794 int major, minor, patch;
29796 version = db_version( &major, &minor, &patch );
29798 if( major != DB_VERSION_MAJOR ||
29799 minor < DB_VERSION_MINOR )
29801 printf("Berkeley DB version mismatch\n"
29802 "\theader: %s\n\tlibrary: %s\n",
29803 DB_VERSION_STRING, version);
29809 #if DB_VERSION_MAJOR > 2
29810 db_env_create( NULL, 0 );
29811 #elif DB_VERSION_MAJOR > 1
29812 db_appexit( NULL );
29814 (void) dbopen( NULL, 0, 0, 0, NULL);
29821 rm -f conftest.$ac_objext conftest$ac_exeext
29822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29823 (eval $ac_link) 2>conftest.er1
29825 grep -v '^ *+' conftest.er1 >conftest.err
29827 cat conftest.err >&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
29830 { ac_try='test -z "$ac_c_werror_flag"
29831 || test ! -s conftest.err'
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; } &&
29837 { ac_try='test -s conftest$ac_exeext'
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
29845 echo "$as_me: failed program was:" >&5
29846 sed 's/^/| /' conftest.$ac_ext >&5
29850 rm -f conftest.err conftest.$ac_objext \
29851 conftest$ac_exeext conftest.$ac_ext
29856 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29857 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29859 if test $ol_cv_db_db_3 = yes ; then
29860 ol_cv_lib_db=-ldb-3
29864 if test $ol_cv_lib_db = no ; then
29865 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29866 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29867 if test "${ol_cv_db_db2+set}" = set; then
29868 echo $ECHO_N "(cached) $ECHO_C" >&6
29873 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29875 cat >conftest.$ac_ext <<_ACEOF
29878 cat confdefs.h >>conftest.$ac_ext
29879 cat >>conftest.$ac_ext <<_ACEOF
29880 /* end confdefs.h. */
29882 #ifdef HAVE_DB_185_H
29883 # include <db_185.h>
29888 #ifndef DB_VERSION_MAJOR
29889 # define DB_VERSION_MAJOR 1
29893 #define NULL ((void*)0)
29900 #if DB_VERSION_MAJOR > 1
29903 int major, minor, patch;
29905 version = db_version( &major, &minor, &patch );
29907 if( major != DB_VERSION_MAJOR ||
29908 minor < DB_VERSION_MINOR )
29910 printf("Berkeley DB version mismatch\n"
29911 "\theader: %s\n\tlibrary: %s\n",
29912 DB_VERSION_STRING, version);
29918 #if DB_VERSION_MAJOR > 2
29919 db_env_create( NULL, 0 );
29920 #elif DB_VERSION_MAJOR > 1
29921 db_appexit( NULL );
29923 (void) dbopen( NULL, 0, 0, 0, NULL);
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29932 (eval $ac_link) 2>conftest.er1
29934 grep -v '^ *+' conftest.er1 >conftest.err
29936 cat conftest.err >&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } &&
29939 { ac_try='test -z "$ac_c_werror_flag"
29940 || test ! -s conftest.err'
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; } &&
29946 { ac_try='test -s conftest$ac_exeext'
29947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948 (eval $ac_try) 2>&5
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; }; then
29954 echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.$ac_ext >&5
29959 rm -f conftest.err conftest.$ac_objext \
29960 conftest$ac_exeext conftest.$ac_ext
29965 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29966 echo "${ECHO_T}$ol_cv_db_db2" >&6
29968 if test $ol_cv_db_db2 = yes ; then
29973 if test $ol_cv_lib_db = no ; then
29974 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29975 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29976 if test "${ol_cv_db_db_2+set}" = set; then
29977 echo $ECHO_N "(cached) $ECHO_C" >&6
29982 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29984 cat >conftest.$ac_ext <<_ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29991 #ifdef HAVE_DB_185_H
29992 # include <db_185.h>
29997 #ifndef DB_VERSION_MAJOR
29998 # define DB_VERSION_MAJOR 1
30002 #define NULL ((void*)0)
30009 #if DB_VERSION_MAJOR > 1
30012 int major, minor, patch;
30014 version = db_version( &major, &minor, &patch );
30016 if( major != DB_VERSION_MAJOR ||
30017 minor < DB_VERSION_MINOR )
30019 printf("Berkeley DB version mismatch\n"
30020 "\theader: %s\n\tlibrary: %s\n",
30021 DB_VERSION_STRING, version);
30027 #if DB_VERSION_MAJOR > 2
30028 db_env_create( NULL, 0 );
30029 #elif DB_VERSION_MAJOR > 1
30030 db_appexit( NULL );
30032 (void) dbopen( NULL, 0, 0, 0, NULL);
30039 rm -f conftest.$ac_objext conftest$ac_exeext
30040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30041 (eval $ac_link) 2>conftest.er1
30043 grep -v '^ *+' conftest.er1 >conftest.err
30045 cat conftest.err >&5
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } &&
30048 { ac_try='test -z "$ac_c_werror_flag"
30049 || test ! -s conftest.err'
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest$ac_exeext'
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30063 echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30068 rm -f conftest.err conftest.$ac_objext \
30069 conftest$ac_exeext conftest.$ac_ext
30074 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30075 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30077 if test $ol_cv_db_db_2 = yes ; then
30078 ol_cv_lib_db=-ldb-2
30082 if test $ol_cv_lib_db = no ; then
30083 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30084 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30085 if test "${ol_cv_db_db1+set}" = set; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30091 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30093 cat >conftest.$ac_ext <<_ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h. */
30100 #ifdef HAVE_DB_185_H
30101 # include <db_185.h>
30106 #ifndef DB_VERSION_MAJOR
30107 # define DB_VERSION_MAJOR 1
30111 #define NULL ((void*)0)
30118 #if DB_VERSION_MAJOR > 1
30121 int major, minor, patch;
30123 version = db_version( &major, &minor, &patch );
30125 if( major != DB_VERSION_MAJOR ||
30126 minor < DB_VERSION_MINOR )
30128 printf("Berkeley DB version mismatch\n"
30129 "\theader: %s\n\tlibrary: %s\n",
30130 DB_VERSION_STRING, version);
30136 #if DB_VERSION_MAJOR > 2
30137 db_env_create( NULL, 0 );
30138 #elif DB_VERSION_MAJOR > 1
30139 db_appexit( NULL );
30141 (void) dbopen( NULL, 0, 0, 0, NULL);
30148 rm -f conftest.$ac_objext conftest$ac_exeext
30149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30150 (eval $ac_link) 2>conftest.er1
30152 grep -v '^ *+' conftest.er1 >conftest.err
30154 cat conftest.err >&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } &&
30157 { ac_try='test -z "$ac_c_werror_flag"
30158 || test ! -s conftest.err'
30159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30160 (eval $ac_try) 2>&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); }; } &&
30164 { ac_try='test -s conftest$ac_exeext'
30165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30166 (eval $ac_try) 2>&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); }; }; then
30172 echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30177 rm -f conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
30183 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30184 echo "${ECHO_T}$ol_cv_db_db1" >&6
30186 if test $ol_cv_db_db1 = yes ; then
30191 if test $ol_cv_lib_db = no ; then
30192 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30193 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30194 if test "${ol_cv_db_db_1+set}" = set; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
30200 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30202 cat >conftest.$ac_ext <<_ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h. */
30209 #ifdef HAVE_DB_185_H
30210 # include <db_185.h>
30215 #ifndef DB_VERSION_MAJOR
30216 # define DB_VERSION_MAJOR 1
30220 #define NULL ((void*)0)
30227 #if DB_VERSION_MAJOR > 1
30230 int major, minor, patch;
30232 version = db_version( &major, &minor, &patch );
30234 if( major != DB_VERSION_MAJOR ||
30235 minor < DB_VERSION_MINOR )
30237 printf("Berkeley DB version mismatch\n"
30238 "\theader: %s\n\tlibrary: %s\n",
30239 DB_VERSION_STRING, version);
30245 #if DB_VERSION_MAJOR > 2
30246 db_env_create( NULL, 0 );
30247 #elif DB_VERSION_MAJOR > 1
30248 db_appexit( NULL );
30250 (void) dbopen( NULL, 0, 0, 0, NULL);
30257 rm -f conftest.$ac_objext conftest$ac_exeext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259 (eval $ac_link) 2>conftest.er1
30261 grep -v '^ *+' conftest.er1 >conftest.err
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } &&
30266 { ac_try='test -z "$ac_c_werror_flag"
30267 || test ! -s conftest.err'
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; } &&
30273 { ac_try='test -s conftest$ac_exeext'
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30281 echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30286 rm -f conftest.err conftest.$ac_objext \
30287 conftest$ac_exeext conftest.$ac_ext
30292 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30293 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30295 if test $ol_cv_db_db_1 = yes ; then
30296 ol_cv_lib_db=-ldb-1
30301 if test "$ol_cv_lib_db" != no ; then
30302 ol_cv_berkeley_db=yes
30308 ol_cv_berkeley_db=no
30310 for ac_header in db.h
30312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30314 echo "$as_me:$LINENO: checking for $ac_header" >&5
30315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30322 # Is the header compilable?
30323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30325 cat >conftest.$ac_ext <<_ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30331 $ac_includes_default
30332 #include <$ac_header>
30334 rm -f conftest.$ac_objext
30335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30336 (eval $ac_compile) 2>conftest.er1
30338 grep -v '^ *+' conftest.er1 >conftest.err
30340 cat conftest.err >&5
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); } &&
30343 { ac_try='test -z "$ac_c_werror_flag"
30344 || test ! -s conftest.err'
30345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30346 (eval $ac_try) 2>&5
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); }; } &&
30350 { ac_try='test -s conftest.$ac_objext'
30351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30352 (eval $ac_try) 2>&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
30356 ac_header_compiler=yes
30358 echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30361 ac_header_compiler=no
30363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30365 echo "${ECHO_T}$ac_header_compiler" >&6
30367 # Is the header present?
30368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30370 cat >conftest.$ac_ext <<_ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h. */
30376 #include <$ac_header>
30378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30381 grep -v '^ *+' conftest.er1 >conftest.err
30383 cat conftest.err >&5
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); } >/dev/null; then
30386 if test -s conftest.err; then
30387 ac_cpp_err=$ac_c_preproc_warn_flag
30388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30395 if test -z "$ac_cpp_err"; then
30396 ac_header_preproc=yes
30398 echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.$ac_ext >&5
30401 ac_header_preproc=no
30403 rm -f conftest.err conftest.$ac_ext
30404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30405 echo "${ECHO_T}$ac_header_preproc" >&6
30407 # So? What about this header?
30408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30414 ac_header_preproc=yes
30417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30431 ## ------------------------------------------ ##
30432 ## Report this to the AC_PACKAGE_NAME lists. ##
30433 ## ------------------------------------------ ##
30436 sed "s/^/$as_me: WARNING: /" >&2
30439 echo "$as_me:$LINENO: checking for $ac_header" >&5
30440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30442 echo $ECHO_N "(cached) $ECHO_C" >&6
30444 eval "$as_ac_Header=\$ac_header_preproc"
30446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30451 cat >>confdefs.h <<_ACEOF
30452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30459 if test $ac_cv_header_db_h = yes; then
30461 if test $ol_cv_lib_db = no ; then
30462 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30463 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30464 if test "${ol_cv_db_none+set}" = set; then
30465 echo $ECHO_N "(cached) $ECHO_C" >&6
30470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30472 cat >conftest.$ac_ext <<_ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h. */
30479 #ifdef HAVE_DB_185_H
30480 # include <db_185.h>
30485 #ifndef DB_VERSION_MAJOR
30486 # define DB_VERSION_MAJOR 1
30490 #define NULL ((void*)0)
30497 #if DB_VERSION_MAJOR > 1
30500 int major, minor, patch;
30502 version = db_version( &major, &minor, &patch );
30504 if( major != DB_VERSION_MAJOR ||
30505 minor < DB_VERSION_MINOR )
30507 printf("Berkeley DB version mismatch\n"
30508 "\theader: %s\n\tlibrary: %s\n",
30509 DB_VERSION_STRING, version);
30515 #if DB_VERSION_MAJOR > 2
30516 db_env_create( NULL, 0 );
30517 #elif DB_VERSION_MAJOR > 1
30518 db_appexit( NULL );
30520 (void) dbopen( NULL, 0, 0, 0, NULL);
30527 rm -f conftest.$ac_objext conftest$ac_exeext
30528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30529 (eval $ac_link) 2>conftest.er1
30531 grep -v '^ *+' conftest.er1 >conftest.err
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
30536 { ac_try='test -z "$ac_c_werror_flag"
30537 || test ! -s conftest.err'
30538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539 (eval $ac_try) 2>&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; } &&
30543 { ac_try='test -s conftest$ac_exeext'
30544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30545 (eval $ac_try) 2>&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; }; then
30551 echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30556 rm -f conftest.err conftest.$ac_objext \
30557 conftest$ac_exeext conftest.$ac_ext
30562 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30563 echo "${ECHO_T}$ol_cv_db_none" >&6
30565 if test $ol_cv_db_none = yes ; then
30570 if test $ol_cv_lib_db = no ; then
30571 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30572 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30573 if test "${ol_cv_db_db43+set}" = set; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30581 cat >conftest.$ac_ext <<_ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h. */
30588 #ifdef HAVE_DB_185_H
30589 # include <db_185.h>
30594 #ifndef DB_VERSION_MAJOR
30595 # define DB_VERSION_MAJOR 1
30599 #define NULL ((void*)0)
30606 #if DB_VERSION_MAJOR > 1
30609 int major, minor, patch;
30611 version = db_version( &major, &minor, &patch );
30613 if( major != DB_VERSION_MAJOR ||
30614 minor < DB_VERSION_MINOR )
30616 printf("Berkeley DB version mismatch\n"
30617 "\theader: %s\n\tlibrary: %s\n",
30618 DB_VERSION_STRING, version);
30624 #if DB_VERSION_MAJOR > 2
30625 db_env_create( NULL, 0 );
30626 #elif DB_VERSION_MAJOR > 1
30627 db_appexit( NULL );
30629 (void) dbopen( NULL, 0, 0, 0, NULL);
30636 rm -f conftest.$ac_objext conftest$ac_exeext
30637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30638 (eval $ac_link) 2>conftest.er1
30640 grep -v '^ *+' conftest.er1 >conftest.err
30642 cat conftest.err >&5
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); } &&
30645 { ac_try='test -z "$ac_c_werror_flag"
30646 || test ! -s conftest.err'
30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648 (eval $ac_try) 2>&5
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; } &&
30652 { ac_try='test -s conftest$ac_exeext'
30653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654 (eval $ac_try) 2>&5
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; }; then
30660 echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30665 rm -f conftest.err conftest.$ac_objext \
30666 conftest$ac_exeext conftest.$ac_ext
30671 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30672 echo "${ECHO_T}$ol_cv_db_db43" >&6
30674 if test $ol_cv_db_db43 = yes ; then
30675 ol_cv_lib_db=-ldb43
30679 if test $ol_cv_lib_db = no ; then
30680 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30681 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30682 if test "${ol_cv_db_db_43+set}" = set; then
30683 echo $ECHO_N "(cached) $ECHO_C" >&6
30688 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30690 cat >conftest.$ac_ext <<_ACEOF
30693 cat confdefs.h >>conftest.$ac_ext
30694 cat >>conftest.$ac_ext <<_ACEOF
30695 /* end confdefs.h. */
30697 #ifdef HAVE_DB_185_H
30698 # include <db_185.h>
30703 #ifndef DB_VERSION_MAJOR
30704 # define DB_VERSION_MAJOR 1
30708 #define NULL ((void*)0)
30715 #if DB_VERSION_MAJOR > 1
30718 int major, minor, patch;
30720 version = db_version( &major, &minor, &patch );
30722 if( major != DB_VERSION_MAJOR ||
30723 minor < DB_VERSION_MINOR )
30725 printf("Berkeley DB version mismatch\n"
30726 "\theader: %s\n\tlibrary: %s\n",
30727 DB_VERSION_STRING, version);
30733 #if DB_VERSION_MAJOR > 2
30734 db_env_create( NULL, 0 );
30735 #elif DB_VERSION_MAJOR > 1
30736 db_appexit( NULL );
30738 (void) dbopen( NULL, 0, 0, 0, NULL);
30745 rm -f conftest.$ac_objext conftest$ac_exeext
30746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30747 (eval $ac_link) 2>conftest.er1
30749 grep -v '^ *+' conftest.er1 >conftest.err
30751 cat conftest.err >&5
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); } &&
30754 { ac_try='test -z "$ac_c_werror_flag"
30755 || test ! -s conftest.err'
30756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30757 (eval $ac_try) 2>&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); }; } &&
30761 { ac_try='test -s conftest$ac_exeext'
30762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30763 (eval $ac_try) 2>&5
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); }; }; then
30769 echo "$as_me: failed program was:" >&5
30770 sed 's/^/| /' conftest.$ac_ext >&5
30774 rm -f conftest.err conftest.$ac_objext \
30775 conftest$ac_exeext conftest.$ac_ext
30780 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30781 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30783 if test $ol_cv_db_db_43 = yes ; then
30784 ol_cv_lib_db=-ldb-43
30788 if test $ol_cv_lib_db = no ; then
30789 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30790 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30791 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30792 echo $ECHO_N "(cached) $ECHO_C" >&6
30797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30799 cat >conftest.$ac_ext <<_ACEOF
30802 cat confdefs.h >>conftest.$ac_ext
30803 cat >>conftest.$ac_ext <<_ACEOF
30804 /* end confdefs.h. */
30806 #ifdef HAVE_DB_185_H
30807 # include <db_185.h>
30812 #ifndef DB_VERSION_MAJOR
30813 # define DB_VERSION_MAJOR 1
30817 #define NULL ((void*)0)
30824 #if DB_VERSION_MAJOR > 1
30827 int major, minor, patch;
30829 version = db_version( &major, &minor, &patch );
30831 if( major != DB_VERSION_MAJOR ||
30832 minor < DB_VERSION_MINOR )
30834 printf("Berkeley DB version mismatch\n"
30835 "\theader: %s\n\tlibrary: %s\n",
30836 DB_VERSION_STRING, version);
30842 #if DB_VERSION_MAJOR > 2
30843 db_env_create( NULL, 0 );
30844 #elif DB_VERSION_MAJOR > 1
30845 db_appexit( NULL );
30847 (void) dbopen( NULL, 0, 0, 0, NULL);
30854 rm -f conftest.$ac_objext conftest$ac_exeext
30855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30856 (eval $ac_link) 2>conftest.er1
30858 grep -v '^ *+' conftest.er1 >conftest.err
30860 cat conftest.err >&5
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); } &&
30863 { ac_try='test -z "$ac_c_werror_flag"
30864 || test ! -s conftest.err'
30865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866 (eval $ac_try) 2>&5
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; } &&
30870 { ac_try='test -s conftest$ac_exeext'
30871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872 (eval $ac_try) 2>&5
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); }; }; then
30876 ol_cv_db_db_4_dot_3=yes
30878 echo "$as_me: failed program was:" >&5
30879 sed 's/^/| /' conftest.$ac_ext >&5
30881 ol_cv_db_db_4_dot_3=no
30883 rm -f conftest.err conftest.$ac_objext \
30884 conftest$ac_exeext conftest.$ac_ext
30889 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30890 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30892 if test $ol_cv_db_db_4_dot_3 = yes ; then
30893 ol_cv_lib_db=-ldb-4.3
30897 if test $ol_cv_lib_db = no ; then
30898 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30899 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30900 if test "${ol_cv_db_db_4_3+set}" = set; then
30901 echo $ECHO_N "(cached) $ECHO_C" >&6
30906 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30908 cat >conftest.$ac_ext <<_ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30915 #ifdef HAVE_DB_185_H
30916 # include <db_185.h>
30921 #ifndef DB_VERSION_MAJOR
30922 # define DB_VERSION_MAJOR 1
30926 #define NULL ((void*)0)
30933 #if DB_VERSION_MAJOR > 1
30936 int major, minor, patch;
30938 version = db_version( &major, &minor, &patch );
30940 if( major != DB_VERSION_MAJOR ||
30941 minor < DB_VERSION_MINOR )
30943 printf("Berkeley DB version mismatch\n"
30944 "\theader: %s\n\tlibrary: %s\n",
30945 DB_VERSION_STRING, version);
30951 #if DB_VERSION_MAJOR > 2
30952 db_env_create( NULL, 0 );
30953 #elif DB_VERSION_MAJOR > 1
30954 db_appexit( NULL );
30956 (void) dbopen( NULL, 0, 0, 0, NULL);
30963 rm -f conftest.$ac_objext conftest$ac_exeext
30964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30965 (eval $ac_link) 2>conftest.er1
30967 grep -v '^ *+' conftest.er1 >conftest.err
30969 cat conftest.err >&5
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); } &&
30972 { ac_try='test -z "$ac_c_werror_flag"
30973 || test ! -s conftest.err'
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; } &&
30979 { ac_try='test -s conftest$ac_exeext'
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; }; then
30985 ol_cv_db_db_4_3=yes
30987 echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30992 rm -f conftest.err conftest.$ac_objext \
30993 conftest$ac_exeext conftest.$ac_ext
30998 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30999 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
31001 if test $ol_cv_db_db_4_3 = yes ; then
31002 ol_cv_lib_db=-ldb-4-3
31006 if test $ol_cv_lib_db = no ; then
31007 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31008 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
31009 if test "${ol_cv_db_db42+set}" = set; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31015 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31017 cat >conftest.$ac_ext <<_ACEOF
31020 cat confdefs.h >>conftest.$ac_ext
31021 cat >>conftest.$ac_ext <<_ACEOF
31022 /* end confdefs.h. */
31024 #ifdef HAVE_DB_185_H
31025 # include <db_185.h>
31030 #ifndef DB_VERSION_MAJOR
31031 # define DB_VERSION_MAJOR 1
31035 #define NULL ((void*)0)
31042 #if DB_VERSION_MAJOR > 1
31045 int major, minor, patch;
31047 version = db_version( &major, &minor, &patch );
31049 if( major != DB_VERSION_MAJOR ||
31050 minor < DB_VERSION_MINOR )
31052 printf("Berkeley DB version mismatch\n"
31053 "\theader: %s\n\tlibrary: %s\n",
31054 DB_VERSION_STRING, version);
31060 #if DB_VERSION_MAJOR > 2
31061 db_env_create( NULL, 0 );
31062 #elif DB_VERSION_MAJOR > 1
31063 db_appexit( NULL );
31065 (void) dbopen( NULL, 0, 0, 0, NULL);
31072 rm -f conftest.$ac_objext conftest$ac_exeext
31073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31074 (eval $ac_link) 2>conftest.er1
31076 grep -v '^ *+' conftest.er1 >conftest.err
31078 cat conftest.err >&5
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); } &&
31081 { ac_try='test -z "$ac_c_werror_flag"
31082 || test ! -s conftest.err'
31083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31084 (eval $ac_try) 2>&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; } &&
31088 { ac_try='test -s conftest$ac_exeext'
31089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31090 (eval $ac_try) 2>&5
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); }; }; then
31096 echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31101 rm -f conftest.err conftest.$ac_objext \
31102 conftest$ac_exeext conftest.$ac_ext
31107 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31108 echo "${ECHO_T}$ol_cv_db_db42" >&6
31110 if test $ol_cv_db_db42 = yes ; then
31111 ol_cv_lib_db=-ldb42
31115 if test $ol_cv_lib_db = no ; then
31116 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31117 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31118 if test "${ol_cv_db_db_42+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31124 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31126 cat >conftest.$ac_ext <<_ACEOF
31129 cat confdefs.h >>conftest.$ac_ext
31130 cat >>conftest.$ac_ext <<_ACEOF
31131 /* end confdefs.h. */
31133 #ifdef HAVE_DB_185_H
31134 # include <db_185.h>
31139 #ifndef DB_VERSION_MAJOR
31140 # define DB_VERSION_MAJOR 1
31144 #define NULL ((void*)0)
31151 #if DB_VERSION_MAJOR > 1
31154 int major, minor, patch;
31156 version = db_version( &major, &minor, &patch );
31158 if( major != DB_VERSION_MAJOR ||
31159 minor < DB_VERSION_MINOR )
31161 printf("Berkeley DB version mismatch\n"
31162 "\theader: %s\n\tlibrary: %s\n",
31163 DB_VERSION_STRING, version);
31169 #if DB_VERSION_MAJOR > 2
31170 db_env_create( NULL, 0 );
31171 #elif DB_VERSION_MAJOR > 1
31172 db_appexit( NULL );
31174 (void) dbopen( NULL, 0, 0, 0, NULL);
31181 rm -f conftest.$ac_objext conftest$ac_exeext
31182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31183 (eval $ac_link) 2>conftest.er1
31185 grep -v '^ *+' conftest.er1 >conftest.err
31187 cat conftest.err >&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); } &&
31190 { ac_try='test -z "$ac_c_werror_flag"
31191 || test ! -s conftest.err'
31192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193 (eval $ac_try) 2>&5
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); }; } &&
31197 { ac_try='test -s conftest$ac_exeext'
31198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199 (eval $ac_try) 2>&5
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; }; then
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31210 rm -f conftest.err conftest.$ac_objext \
31211 conftest$ac_exeext conftest.$ac_ext
31216 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31217 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31219 if test $ol_cv_db_db_42 = yes ; then
31220 ol_cv_lib_db=-ldb-42
31224 if test $ol_cv_lib_db = no ; then
31225 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31226 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31227 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31228 echo $ECHO_N "(cached) $ECHO_C" >&6
31233 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31235 cat >conftest.$ac_ext <<_ACEOF
31238 cat confdefs.h >>conftest.$ac_ext
31239 cat >>conftest.$ac_ext <<_ACEOF
31240 /* end confdefs.h. */
31242 #ifdef HAVE_DB_185_H
31243 # include <db_185.h>
31248 #ifndef DB_VERSION_MAJOR
31249 # define DB_VERSION_MAJOR 1
31253 #define NULL ((void*)0)
31260 #if DB_VERSION_MAJOR > 1
31263 int major, minor, patch;
31265 version = db_version( &major, &minor, &patch );
31267 if( major != DB_VERSION_MAJOR ||
31268 minor < DB_VERSION_MINOR )
31270 printf("Berkeley DB version mismatch\n"
31271 "\theader: %s\n\tlibrary: %s\n",
31272 DB_VERSION_STRING, version);
31278 #if DB_VERSION_MAJOR > 2
31279 db_env_create( NULL, 0 );
31280 #elif DB_VERSION_MAJOR > 1
31281 db_appexit( NULL );
31283 (void) dbopen( NULL, 0, 0, 0, NULL);
31290 rm -f conftest.$ac_objext conftest$ac_exeext
31291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31292 (eval $ac_link) 2>conftest.er1
31294 grep -v '^ *+' conftest.er1 >conftest.err
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag"
31300 || test ! -s conftest.err'
31301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31302 (eval $ac_try) 2>&5
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); }; } &&
31306 { ac_try='test -s conftest$ac_exeext'
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; }; then
31312 ol_cv_db_db_4_dot_2=yes
31314 echo "$as_me: failed program was:" >&5
31315 sed 's/^/| /' conftest.$ac_ext >&5
31317 ol_cv_db_db_4_dot_2=no
31319 rm -f conftest.err conftest.$ac_objext \
31320 conftest$ac_exeext conftest.$ac_ext
31325 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31326 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31328 if test $ol_cv_db_db_4_dot_2 = yes ; then
31329 ol_cv_lib_db=-ldb-4.2
31333 if test $ol_cv_lib_db = no ; then
31334 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31336 if test "${ol_cv_db_db_4_2+set}" = set; then
31337 echo $ECHO_N "(cached) $ECHO_C" >&6
31342 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31344 cat >conftest.$ac_ext <<_ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h. */
31351 #ifdef HAVE_DB_185_H
31352 # include <db_185.h>
31357 #ifndef DB_VERSION_MAJOR
31358 # define DB_VERSION_MAJOR 1
31362 #define NULL ((void*)0)
31369 #if DB_VERSION_MAJOR > 1
31372 int major, minor, patch;
31374 version = db_version( &major, &minor, &patch );
31376 if( major != DB_VERSION_MAJOR ||
31377 minor < DB_VERSION_MINOR )
31379 printf("Berkeley DB version mismatch\n"
31380 "\theader: %s\n\tlibrary: %s\n",
31381 DB_VERSION_STRING, version);
31387 #if DB_VERSION_MAJOR > 2
31388 db_env_create( NULL, 0 );
31389 #elif DB_VERSION_MAJOR > 1
31390 db_appexit( NULL );
31392 (void) dbopen( NULL, 0, 0, 0, NULL);
31399 rm -f conftest.$ac_objext conftest$ac_exeext
31400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31401 (eval $ac_link) 2>conftest.er1
31403 grep -v '^ *+' conftest.er1 >conftest.err
31405 cat conftest.err >&5
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); } &&
31408 { ac_try='test -z "$ac_c_werror_flag"
31409 || test ! -s conftest.err'
31410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31411 (eval $ac_try) 2>&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; } &&
31415 { ac_try='test -s conftest$ac_exeext'
31416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31417 (eval $ac_try) 2>&5
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; }; then
31421 ol_cv_db_db_4_2=yes
31423 echo "$as_me: failed program was:" >&5
31424 sed 's/^/| /' conftest.$ac_ext >&5
31428 rm -f conftest.err conftest.$ac_objext \
31429 conftest$ac_exeext conftest.$ac_ext
31434 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31435 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31437 if test $ol_cv_db_db_4_2 = yes ; then
31438 ol_cv_lib_db=-ldb-4-2
31442 if test $ol_cv_lib_db = no ; then
31443 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31444 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31445 if test "${ol_cv_db_db_4+set}" = set; then
31446 echo $ECHO_N "(cached) $ECHO_C" >&6
31451 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31453 cat >conftest.$ac_ext <<_ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h. */
31460 #ifdef HAVE_DB_185_H
31461 # include <db_185.h>
31466 #ifndef DB_VERSION_MAJOR
31467 # define DB_VERSION_MAJOR 1
31471 #define NULL ((void*)0)
31478 #if DB_VERSION_MAJOR > 1
31481 int major, minor, patch;
31483 version = db_version( &major, &minor, &patch );
31485 if( major != DB_VERSION_MAJOR ||
31486 minor < DB_VERSION_MINOR )
31488 printf("Berkeley DB version mismatch\n"
31489 "\theader: %s\n\tlibrary: %s\n",
31490 DB_VERSION_STRING, version);
31496 #if DB_VERSION_MAJOR > 2
31497 db_env_create( NULL, 0 );
31498 #elif DB_VERSION_MAJOR > 1
31499 db_appexit( NULL );
31501 (void) dbopen( NULL, 0, 0, 0, NULL);
31508 rm -f conftest.$ac_objext conftest$ac_exeext
31509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31510 (eval $ac_link) 2>conftest.er1
31512 grep -v '^ *+' conftest.er1 >conftest.err
31514 cat conftest.err >&5
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); } &&
31517 { ac_try='test -z "$ac_c_werror_flag"
31518 || test ! -s conftest.err'
31519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31520 (eval $ac_try) 2>&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); }; } &&
31524 { ac_try='test -s conftest$ac_exeext'
31525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31526 (eval $ac_try) 2>&5
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); }; }; then
31532 echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31537 rm -f conftest.err conftest.$ac_objext \
31538 conftest$ac_exeext conftest.$ac_ext
31543 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31544 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31546 if test $ol_cv_db_db_4 = yes ; then
31547 ol_cv_lib_db=-ldb-4
31551 if test $ol_cv_lib_db = no ; then
31552 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31553 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31554 if test "${ol_cv_db_db4+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31560 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31562 cat >conftest.$ac_ext <<_ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h. */
31569 #ifdef HAVE_DB_185_H
31570 # include <db_185.h>
31575 #ifndef DB_VERSION_MAJOR
31576 # define DB_VERSION_MAJOR 1
31580 #define NULL ((void*)0)
31587 #if DB_VERSION_MAJOR > 1
31590 int major, minor, patch;
31592 version = db_version( &major, &minor, &patch );
31594 if( major != DB_VERSION_MAJOR ||
31595 minor < DB_VERSION_MINOR )
31597 printf("Berkeley DB version mismatch\n"
31598 "\theader: %s\n\tlibrary: %s\n",
31599 DB_VERSION_STRING, version);
31605 #if DB_VERSION_MAJOR > 2
31606 db_env_create( NULL, 0 );
31607 #elif DB_VERSION_MAJOR > 1
31608 db_appexit( NULL );
31610 (void) dbopen( NULL, 0, 0, 0, NULL);
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31619 (eval $ac_link) 2>conftest.er1
31621 grep -v '^ *+' conftest.er1 >conftest.err
31623 cat conftest.err >&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
31626 { ac_try='test -z "$ac_c_werror_flag"
31627 || test ! -s conftest.err'
31628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629 (eval $ac_try) 2>&5
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; } &&
31633 { ac_try='test -s conftest$ac_exeext'
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31646 rm -f conftest.err conftest.$ac_objext \
31647 conftest$ac_exeext conftest.$ac_ext
31652 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31653 echo "${ECHO_T}$ol_cv_db_db4" >&6
31655 if test $ol_cv_db_db4 = yes ; then
31660 if test $ol_cv_lib_db = no ; then
31661 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31662 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31663 if test "${ol_cv_db_db+set}" = set; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31669 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31671 cat >conftest.$ac_ext <<_ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h. */
31678 #ifdef HAVE_DB_185_H
31679 # include <db_185.h>
31684 #ifndef DB_VERSION_MAJOR
31685 # define DB_VERSION_MAJOR 1
31689 #define NULL ((void*)0)
31696 #if DB_VERSION_MAJOR > 1
31699 int major, minor, patch;
31701 version = db_version( &major, &minor, &patch );
31703 if( major != DB_VERSION_MAJOR ||
31704 minor < DB_VERSION_MINOR )
31706 printf("Berkeley DB version mismatch\n"
31707 "\theader: %s\n\tlibrary: %s\n",
31708 DB_VERSION_STRING, version);
31714 #if DB_VERSION_MAJOR > 2
31715 db_env_create( NULL, 0 );
31716 #elif DB_VERSION_MAJOR > 1
31717 db_appexit( NULL );
31719 (void) dbopen( NULL, 0, 0, 0, NULL);
31726 rm -f conftest.$ac_objext conftest$ac_exeext
31727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31728 (eval $ac_link) 2>conftest.er1
31730 grep -v '^ *+' conftest.er1 >conftest.err
31732 cat conftest.err >&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } &&
31735 { ac_try='test -z "$ac_c_werror_flag"
31736 || test ! -s conftest.err'
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; } &&
31742 { ac_try='test -s conftest$ac_exeext'
31743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31744 (eval $ac_try) 2>&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); }; }; then
31750 echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31755 rm -f conftest.err conftest.$ac_objext \
31756 conftest$ac_exeext conftest.$ac_ext
31761 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31762 echo "${ECHO_T}$ol_cv_db_db" >&6
31764 if test $ol_cv_db_db = yes ; then
31769 if test $ol_cv_lib_db = no ; then
31770 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31771 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31772 if test "${ol_cv_db_db41+set}" = set; then
31773 echo $ECHO_N "(cached) $ECHO_C" >&6
31778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31780 cat >conftest.$ac_ext <<_ACEOF
31783 cat confdefs.h >>conftest.$ac_ext
31784 cat >>conftest.$ac_ext <<_ACEOF
31785 /* end confdefs.h. */
31787 #ifdef HAVE_DB_185_H
31788 # include <db_185.h>
31793 #ifndef DB_VERSION_MAJOR
31794 # define DB_VERSION_MAJOR 1
31798 #define NULL ((void*)0)
31805 #if DB_VERSION_MAJOR > 1
31808 int major, minor, patch;
31810 version = db_version( &major, &minor, &patch );
31812 if( major != DB_VERSION_MAJOR ||
31813 minor < DB_VERSION_MINOR )
31815 printf("Berkeley DB version mismatch\n"
31816 "\theader: %s\n\tlibrary: %s\n",
31817 DB_VERSION_STRING, version);
31823 #if DB_VERSION_MAJOR > 2
31824 db_env_create( NULL, 0 );
31825 #elif DB_VERSION_MAJOR > 1
31826 db_appexit( NULL );
31828 (void) dbopen( NULL, 0, 0, 0, NULL);
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31837 (eval $ac_link) 2>conftest.er1
31839 grep -v '^ *+' conftest.er1 >conftest.err
31841 cat conftest.err >&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
31844 { ac_try='test -z "$ac_c_werror_flag"
31845 || test ! -s conftest.err'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest$ac_exeext'
31852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31853 (eval $ac_try) 2>&5
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); }; }; then
31859 echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31864 rm -f conftest.err conftest.$ac_objext \
31865 conftest$ac_exeext conftest.$ac_ext
31870 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31871 echo "${ECHO_T}$ol_cv_db_db41" >&6
31873 if test $ol_cv_db_db41 = yes ; then
31874 ol_cv_lib_db=-ldb41
31878 if test $ol_cv_lib_db = no ; then
31879 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31880 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31881 if test "${ol_cv_db_db_41+set}" = set; then
31882 echo $ECHO_N "(cached) $ECHO_C" >&6
31887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31889 cat >conftest.$ac_ext <<_ACEOF
31892 cat confdefs.h >>conftest.$ac_ext
31893 cat >>conftest.$ac_ext <<_ACEOF
31894 /* end confdefs.h. */
31896 #ifdef HAVE_DB_185_H
31897 # include <db_185.h>
31902 #ifndef DB_VERSION_MAJOR
31903 # define DB_VERSION_MAJOR 1
31907 #define NULL ((void*)0)
31914 #if DB_VERSION_MAJOR > 1
31917 int major, minor, patch;
31919 version = db_version( &major, &minor, &patch );
31921 if( major != DB_VERSION_MAJOR ||
31922 minor < DB_VERSION_MINOR )
31924 printf("Berkeley DB version mismatch\n"
31925 "\theader: %s\n\tlibrary: %s\n",
31926 DB_VERSION_STRING, version);
31932 #if DB_VERSION_MAJOR > 2
31933 db_env_create( NULL, 0 );
31934 #elif DB_VERSION_MAJOR > 1
31935 db_appexit( NULL );
31937 (void) dbopen( NULL, 0, 0, 0, NULL);
31944 rm -f conftest.$ac_objext conftest$ac_exeext
31945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31946 (eval $ac_link) 2>conftest.er1
31948 grep -v '^ *+' conftest.er1 >conftest.err
31950 cat conftest.err >&5
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); } &&
31953 { ac_try='test -z "$ac_c_werror_flag"
31954 || test ! -s conftest.err'
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; } &&
31960 { ac_try='test -s conftest$ac_exeext'
31961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962 (eval $ac_try) 2>&5
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); }; }; then
31968 echo "$as_me: failed program was:" >&5
31969 sed 's/^/| /' conftest.$ac_ext >&5
31973 rm -f conftest.err conftest.$ac_objext \
31974 conftest$ac_exeext conftest.$ac_ext
31979 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31980 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31982 if test $ol_cv_db_db_41 = yes ; then
31983 ol_cv_lib_db=-ldb-41
31987 if test $ol_cv_lib_db = no ; then
31988 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31990 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31991 echo $ECHO_N "(cached) $ECHO_C" >&6
31996 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31998 cat >conftest.$ac_ext <<_ACEOF
32001 cat confdefs.h >>conftest.$ac_ext
32002 cat >>conftest.$ac_ext <<_ACEOF
32003 /* end confdefs.h. */
32005 #ifdef HAVE_DB_185_H
32006 # include <db_185.h>
32011 #ifndef DB_VERSION_MAJOR
32012 # define DB_VERSION_MAJOR 1
32016 #define NULL ((void*)0)
32023 #if DB_VERSION_MAJOR > 1
32026 int major, minor, patch;
32028 version = db_version( &major, &minor, &patch );
32030 if( major != DB_VERSION_MAJOR ||
32031 minor < DB_VERSION_MINOR )
32033 printf("Berkeley DB version mismatch\n"
32034 "\theader: %s\n\tlibrary: %s\n",
32035 DB_VERSION_STRING, version);
32041 #if DB_VERSION_MAJOR > 2
32042 db_env_create( NULL, 0 );
32043 #elif DB_VERSION_MAJOR > 1
32044 db_appexit( NULL );
32046 (void) dbopen( NULL, 0, 0, 0, NULL);
32053 rm -f conftest.$ac_objext conftest$ac_exeext
32054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32055 (eval $ac_link) 2>conftest.er1
32057 grep -v '^ *+' conftest.er1 >conftest.err
32059 cat conftest.err >&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } &&
32062 { ac_try='test -z "$ac_c_werror_flag"
32063 || test ! -s conftest.err'
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
32070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071 (eval $ac_try) 2>&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; }; then
32075 ol_cv_db_db_4_dot_1=yes
32077 echo "$as_me: failed program was:" >&5
32078 sed 's/^/| /' conftest.$ac_ext >&5
32080 ol_cv_db_db_4_dot_1=no
32082 rm -f conftest.err conftest.$ac_objext \
32083 conftest$ac_exeext conftest.$ac_ext
32088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32089 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32091 if test $ol_cv_db_db_4_dot_1 = yes ; then
32092 ol_cv_lib_db=-ldb-4.1
32096 if test $ol_cv_lib_db = no ; then
32097 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32098 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32099 if test "${ol_cv_db_db_4_1+set}" = set; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32105 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32107 cat >conftest.$ac_ext <<_ACEOF
32110 cat confdefs.h >>conftest.$ac_ext
32111 cat >>conftest.$ac_ext <<_ACEOF
32112 /* end confdefs.h. */
32114 #ifdef HAVE_DB_185_H
32115 # include <db_185.h>
32120 #ifndef DB_VERSION_MAJOR
32121 # define DB_VERSION_MAJOR 1
32125 #define NULL ((void*)0)
32132 #if DB_VERSION_MAJOR > 1
32135 int major, minor, patch;
32137 version = db_version( &major, &minor, &patch );
32139 if( major != DB_VERSION_MAJOR ||
32140 minor < DB_VERSION_MINOR )
32142 printf("Berkeley DB version mismatch\n"
32143 "\theader: %s\n\tlibrary: %s\n",
32144 DB_VERSION_STRING, version);
32150 #if DB_VERSION_MAJOR > 2
32151 db_env_create( NULL, 0 );
32152 #elif DB_VERSION_MAJOR > 1
32153 db_appexit( NULL );
32155 (void) dbopen( NULL, 0, 0, 0, NULL);
32162 rm -f conftest.$ac_objext conftest$ac_exeext
32163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32164 (eval $ac_link) 2>conftest.er1
32166 grep -v '^ *+' conftest.er1 >conftest.err
32168 cat conftest.err >&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } &&
32171 { ac_try='test -z "$ac_c_werror_flag"
32172 || test ! -s conftest.err'
32173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174 (eval $ac_try) 2>&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; } &&
32178 { ac_try='test -s conftest$ac_exeext'
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; }; then
32184 ol_cv_db_db_4_1=yes
32186 echo "$as_me: failed program was:" >&5
32187 sed 's/^/| /' conftest.$ac_ext >&5
32191 rm -f conftest.err conftest.$ac_objext \
32192 conftest$ac_exeext conftest.$ac_ext
32197 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32198 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32200 if test $ol_cv_db_db_4_1 = yes ; then
32201 ol_cv_lib_db=-ldb-4-1
32205 if test $ol_cv_lib_db = no ; then
32206 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32207 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32208 if test "${ol_cv_db_db3+set}" = set; then
32209 echo $ECHO_N "(cached) $ECHO_C" >&6
32214 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32216 cat >conftest.$ac_ext <<_ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32223 #ifdef HAVE_DB_185_H
32224 # include <db_185.h>
32229 #ifndef DB_VERSION_MAJOR
32230 # define DB_VERSION_MAJOR 1
32234 #define NULL ((void*)0)
32241 #if DB_VERSION_MAJOR > 1
32244 int major, minor, patch;
32246 version = db_version( &major, &minor, &patch );
32248 if( major != DB_VERSION_MAJOR ||
32249 minor < DB_VERSION_MINOR )
32251 printf("Berkeley DB version mismatch\n"
32252 "\theader: %s\n\tlibrary: %s\n",
32253 DB_VERSION_STRING, version);
32259 #if DB_VERSION_MAJOR > 2
32260 db_env_create( NULL, 0 );
32261 #elif DB_VERSION_MAJOR > 1
32262 db_appexit( NULL );
32264 (void) dbopen( NULL, 0, 0, 0, NULL);
32271 rm -f conftest.$ac_objext conftest$ac_exeext
32272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32273 (eval $ac_link) 2>conftest.er1
32275 grep -v '^ *+' conftest.er1 >conftest.err
32277 cat conftest.err >&5
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); } &&
32280 { ac_try='test -z "$ac_c_werror_flag"
32281 || test ! -s conftest.err'
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; } &&
32287 { ac_try='test -s conftest$ac_exeext'
32288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32289 (eval $ac_try) 2>&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; }; then
32295 echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.$ac_ext >&5
32300 rm -f conftest.err conftest.$ac_objext \
32301 conftest$ac_exeext conftest.$ac_ext
32306 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32307 echo "${ECHO_T}$ol_cv_db_db3" >&6
32309 if test $ol_cv_db_db3 = yes ; then
32314 if test $ol_cv_lib_db = no ; then
32315 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32316 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32317 if test "${ol_cv_db_db_3+set}" = set; then
32318 echo $ECHO_N "(cached) $ECHO_C" >&6
32323 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32325 cat >conftest.$ac_ext <<_ACEOF
32328 cat confdefs.h >>conftest.$ac_ext
32329 cat >>conftest.$ac_ext <<_ACEOF
32330 /* end confdefs.h. */
32332 #ifdef HAVE_DB_185_H
32333 # include <db_185.h>
32338 #ifndef DB_VERSION_MAJOR
32339 # define DB_VERSION_MAJOR 1
32343 #define NULL ((void*)0)
32350 #if DB_VERSION_MAJOR > 1
32353 int major, minor, patch;
32355 version = db_version( &major, &minor, &patch );
32357 if( major != DB_VERSION_MAJOR ||
32358 minor < DB_VERSION_MINOR )
32360 printf("Berkeley DB version mismatch\n"
32361 "\theader: %s\n\tlibrary: %s\n",
32362 DB_VERSION_STRING, version);
32368 #if DB_VERSION_MAJOR > 2
32369 db_env_create( NULL, 0 );
32370 #elif DB_VERSION_MAJOR > 1
32371 db_appexit( NULL );
32373 (void) dbopen( NULL, 0, 0, 0, NULL);
32380 rm -f conftest.$ac_objext conftest$ac_exeext
32381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32382 (eval $ac_link) 2>conftest.er1
32384 grep -v '^ *+' conftest.er1 >conftest.err
32386 cat conftest.err >&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } &&
32389 { ac_try='test -z "$ac_c_werror_flag"
32390 || test ! -s conftest.err'
32391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32392 (eval $ac_try) 2>&5
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); }; } &&
32396 { ac_try='test -s conftest$ac_exeext'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; }; then
32404 echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32409 rm -f conftest.err conftest.$ac_objext \
32410 conftest$ac_exeext conftest.$ac_ext
32415 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32416 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32418 if test $ol_cv_db_db_3 = yes ; then
32419 ol_cv_lib_db=-ldb-3
32423 if test $ol_cv_lib_db = no ; then
32424 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32425 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32426 if test "${ol_cv_db_db2+set}" = set; then
32427 echo $ECHO_N "(cached) $ECHO_C" >&6
32432 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32434 cat >conftest.$ac_ext <<_ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h. */
32441 #ifdef HAVE_DB_185_H
32442 # include <db_185.h>
32447 #ifndef DB_VERSION_MAJOR
32448 # define DB_VERSION_MAJOR 1
32452 #define NULL ((void*)0)
32459 #if DB_VERSION_MAJOR > 1
32462 int major, minor, patch;
32464 version = db_version( &major, &minor, &patch );
32466 if( major != DB_VERSION_MAJOR ||
32467 minor < DB_VERSION_MINOR )
32469 printf("Berkeley DB version mismatch\n"
32470 "\theader: %s\n\tlibrary: %s\n",
32471 DB_VERSION_STRING, version);
32477 #if DB_VERSION_MAJOR > 2
32478 db_env_create( NULL, 0 );
32479 #elif DB_VERSION_MAJOR > 1
32480 db_appexit( NULL );
32482 (void) dbopen( NULL, 0, 0, 0, NULL);
32489 rm -f conftest.$ac_objext conftest$ac_exeext
32490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32491 (eval $ac_link) 2>conftest.er1
32493 grep -v '^ *+' conftest.er1 >conftest.err
32495 cat conftest.err >&5
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); } &&
32498 { ac_try='test -z "$ac_c_werror_flag"
32499 || test ! -s conftest.err'
32500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32501 (eval $ac_try) 2>&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; } &&
32505 { ac_try='test -s conftest$ac_exeext'
32506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507 (eval $ac_try) 2>&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; }; then
32513 echo "$as_me: failed program was:" >&5
32514 sed 's/^/| /' conftest.$ac_ext >&5
32518 rm -f conftest.err conftest.$ac_objext \
32519 conftest$ac_exeext conftest.$ac_ext
32524 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32525 echo "${ECHO_T}$ol_cv_db_db2" >&6
32527 if test $ol_cv_db_db2 = yes ; then
32532 if test $ol_cv_lib_db = no ; then
32533 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32534 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32535 if test "${ol_cv_db_db_2+set}" = set; then
32536 echo $ECHO_N "(cached) $ECHO_C" >&6
32541 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32543 cat >conftest.$ac_ext <<_ACEOF
32546 cat confdefs.h >>conftest.$ac_ext
32547 cat >>conftest.$ac_ext <<_ACEOF
32548 /* end confdefs.h. */
32550 #ifdef HAVE_DB_185_H
32551 # include <db_185.h>
32556 #ifndef DB_VERSION_MAJOR
32557 # define DB_VERSION_MAJOR 1
32561 #define NULL ((void*)0)
32568 #if DB_VERSION_MAJOR > 1
32571 int major, minor, patch;
32573 version = db_version( &major, &minor, &patch );
32575 if( major != DB_VERSION_MAJOR ||
32576 minor < DB_VERSION_MINOR )
32578 printf("Berkeley DB version mismatch\n"
32579 "\theader: %s\n\tlibrary: %s\n",
32580 DB_VERSION_STRING, version);
32586 #if DB_VERSION_MAJOR > 2
32587 db_env_create( NULL, 0 );
32588 #elif DB_VERSION_MAJOR > 1
32589 db_appexit( NULL );
32591 (void) dbopen( NULL, 0, 0, 0, NULL);
32598 rm -f conftest.$ac_objext conftest$ac_exeext
32599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32600 (eval $ac_link) 2>conftest.er1
32602 grep -v '^ *+' conftest.er1 >conftest.err
32604 cat conftest.err >&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } &&
32607 { ac_try='test -z "$ac_c_werror_flag"
32608 || test ! -s conftest.err'
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest$ac_exeext'
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32627 rm -f conftest.err conftest.$ac_objext \
32628 conftest$ac_exeext conftest.$ac_ext
32633 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32634 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32636 if test $ol_cv_db_db_2 = yes ; then
32637 ol_cv_lib_db=-ldb-2
32641 if test $ol_cv_lib_db = no ; then
32642 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32643 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32644 if test "${ol_cv_db_db1+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32650 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32652 cat >conftest.$ac_ext <<_ACEOF
32655 cat confdefs.h >>conftest.$ac_ext
32656 cat >>conftest.$ac_ext <<_ACEOF
32657 /* end confdefs.h. */
32659 #ifdef HAVE_DB_185_H
32660 # include <db_185.h>
32665 #ifndef DB_VERSION_MAJOR
32666 # define DB_VERSION_MAJOR 1
32670 #define NULL ((void*)0)
32677 #if DB_VERSION_MAJOR > 1
32680 int major, minor, patch;
32682 version = db_version( &major, &minor, &patch );
32684 if( major != DB_VERSION_MAJOR ||
32685 minor < DB_VERSION_MINOR )
32687 printf("Berkeley DB version mismatch\n"
32688 "\theader: %s\n\tlibrary: %s\n",
32689 DB_VERSION_STRING, version);
32695 #if DB_VERSION_MAJOR > 2
32696 db_env_create( NULL, 0 );
32697 #elif DB_VERSION_MAJOR > 1
32698 db_appexit( NULL );
32700 (void) dbopen( NULL, 0, 0, 0, NULL);
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32709 (eval $ac_link) 2>conftest.er1
32711 grep -v '^ *+' conftest.er1 >conftest.err
32713 cat conftest.err >&5
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); } &&
32716 { ac_try='test -z "$ac_c_werror_flag"
32717 || test ! -s conftest.err'
32718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719 (eval $ac_try) 2>&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; } &&
32723 { ac_try='test -s conftest$ac_exeext'
32724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32725 (eval $ac_try) 2>&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; }; then
32731 echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32736 rm -f conftest.err conftest.$ac_objext \
32737 conftest$ac_exeext conftest.$ac_ext
32742 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32743 echo "${ECHO_T}$ol_cv_db_db1" >&6
32745 if test $ol_cv_db_db1 = yes ; then
32750 if test $ol_cv_lib_db = no ; then
32751 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32752 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32753 if test "${ol_cv_db_db_1+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32761 cat >conftest.$ac_ext <<_ACEOF
32764 cat confdefs.h >>conftest.$ac_ext
32765 cat >>conftest.$ac_ext <<_ACEOF
32766 /* end confdefs.h. */
32768 #ifdef HAVE_DB_185_H
32769 # include <db_185.h>
32774 #ifndef DB_VERSION_MAJOR
32775 # define DB_VERSION_MAJOR 1
32779 #define NULL ((void*)0)
32786 #if DB_VERSION_MAJOR > 1
32789 int major, minor, patch;
32791 version = db_version( &major, &minor, &patch );
32793 if( major != DB_VERSION_MAJOR ||
32794 minor < DB_VERSION_MINOR )
32796 printf("Berkeley DB version mismatch\n"
32797 "\theader: %s\n\tlibrary: %s\n",
32798 DB_VERSION_STRING, version);
32804 #if DB_VERSION_MAJOR > 2
32805 db_env_create( NULL, 0 );
32806 #elif DB_VERSION_MAJOR > 1
32807 db_appexit( NULL );
32809 (void) dbopen( NULL, 0, 0, 0, NULL);
32816 rm -f conftest.$ac_objext conftest$ac_exeext
32817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32818 (eval $ac_link) 2>conftest.er1
32820 grep -v '^ *+' conftest.er1 >conftest.err
32822 cat conftest.err >&5
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); } &&
32825 { ac_try='test -z "$ac_c_werror_flag"
32826 || test ! -s conftest.err'
32827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828 (eval $ac_try) 2>&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; } &&
32832 { ac_try='test -s conftest$ac_exeext'
32833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834 (eval $ac_try) 2>&5
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32840 echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32845 rm -f conftest.err conftest.$ac_objext \
32846 conftest$ac_exeext conftest.$ac_ext
32851 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32852 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32854 if test $ol_cv_db_db_1 = yes ; then
32855 ol_cv_lib_db=-ldb-1
32860 if test "$ol_cv_lib_db" != no ; then
32861 ol_cv_berkeley_db=yes
32862 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32863 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32864 if test "${ol_cv_berkeley_db_version+set}" = set; then
32865 echo $ECHO_N "(cached) $ECHO_C" >&6
32869 LIBS="$LTHREAD_LIBS $LIBS"
32870 if test $ol_cv_lib_db != yes ; then
32871 LIBS="$ol_cv_lib_db $LIBS"
32874 if test "$cross_compiling" = yes; then
32875 ol_cv_berkeley_db_version=cross
32877 cat >conftest.$ac_ext <<_ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h. */
32884 #ifdef HAVE_DB_185_H
32889 #ifndef DB_VERSION_MAJOR
32890 # define DB_VERSION_MAJOR 1
32893 #define NULL ((void *)0)
32897 #if DB_VERSION_MAJOR > 1
32899 int major, minor, patch;
32901 version = db_version( &major, &minor, &patch );
32903 if( major != DB_VERSION_MAJOR ||
32904 minor != DB_VERSION_MINOR ||
32905 patch != DB_VERSION_PATCH )
32907 printf("Berkeley DB version mismatch\n"
32908 "\theader: %s\n\tlibrary: %s\n",
32909 DB_VERSION_STRING, version);
32917 rm -f conftest$ac_exeext
32918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32919 (eval $ac_link) 2>&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32924 (eval $ac_try) 2>&5
32926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 (exit $ac_status); }; }; then
32928 ol_cv_berkeley_db_version=yes
32930 echo "$as_me: program exited with status $ac_status" >&5
32931 echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32934 ( exit $ac_status )
32935 ol_cv_berkeley_db_version=no
32937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32943 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32944 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32946 if test $ol_cv_berkeley_db_version = no ; then
32947 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32948 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32949 { (exit 1); exit 1; }; }
32952 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32953 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32954 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32955 echo $ECHO_N "(cached) $ECHO_C" >&6
32959 LIBS="$LTHREAD_LIBS $LIBS"
32960 if test $ol_cv_lib_db != yes ; then
32961 LIBS="$ol_cv_lib_db $LIBS"
32964 if test "$cross_compiling" = yes; then
32965 ol_cv_berkeley_db_thread=cross
32967 cat >conftest.$ac_ext <<_ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h. */
32974 #ifdef HAVE_DB_185_H
32980 #define NULL ((void *)0)
32985 u_int32_t flags = DB_CREATE |
32991 #if DB_VERSION_MAJOR > 2
32992 DB_ENV *env = NULL;
32994 rc = db_env_create( &env, 0 );
32996 flags |= DB_INIT_MPOOL;
32997 #ifdef DB_MPOOL_PRIVATE
32998 flags |= DB_MPOOL_PRIVATE;
33002 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33006 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
33007 rc = env->open( env, NULL, flags, 0 );
33009 rc = env->open( env, NULL, NULL, flags, 0 );
33013 rc = env->close( env, 0 );
33017 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33023 memset( &env, '\0', sizeof(env) );
33025 rc = db_appinit( NULL, NULL, &env, flags );
33028 db_appexit( &env );
33031 unlink("__db_mpool.share");
33032 unlink("__db_lock.share");
33038 rm -f conftest$ac_exeext
33039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33040 (eval $ac_link) 2>&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33045 (eval $ac_try) 2>&5
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); }; }; then
33049 ol_cv_berkeley_db_thread=yes
33051 echo "$as_me: program exited with status $ac_status" >&5
33052 echo "$as_me: failed program was:" >&5
33053 sed 's/^/| /' conftest.$ac_ext >&5
33055 ( exit $ac_status )
33056 ol_cv_berkeley_db_thread=no
33058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33064 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
33065 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
33067 if test $ol_cv_berkeley_db_thread != no ; then
33069 cat >>confdefs.h <<\_ACEOF
33070 #define HAVE_BERKELEY_DB_THREAD 1
33080 if test $ol_cv_berkeley_db != no ; then
33082 cat >>confdefs.h <<\_ACEOF
33083 #define HAVE_BERKELEY_DB 1
33087 ol_link_ldbm=berkeley
33088 ol_enable_ldbm_api=berkeley
33090 if test $ol_enable_ldbm_type = hash ; then
33092 cat >>confdefs.h <<\_ACEOF
33093 #define LDBM_USE_DBHASH 1
33098 cat >>confdefs.h <<\_ACEOF
33099 #define LDBM_USE_DBBTREE 1
33104 if test $ol_cv_lib_db != yes ; then
33105 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33111 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
33112 if test $ol_link_ldbm != berkeley ; then
33113 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33114 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33115 { (exit 1); exit 1; }; }
33117 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33118 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33119 if test "${ol_cv_bdb_compat+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33123 cat >conftest.$ac_ext <<_ACEOF
33126 cat confdefs.h >>conftest.$ac_ext
33127 cat >>conftest.$ac_ext <<_ACEOF
33128 /* end confdefs.h. */
33132 /* this check could be improved */
33133 #ifndef DB_VERSION_MAJOR
33134 # define DB_VERSION_MAJOR 1
33136 #ifndef DB_VERSION_MINOR
33137 # define DB_VERSION_MINOR 0
33140 /* require 4.2 or later */
33141 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33142 __db_version_compat
33146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33147 $EGREP "__db_version_compat" >/dev/null 2>&1; then
33148 ol_cv_bdb_compat=yes
33150 ol_cv_bdb_compat=no
33155 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33156 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33159 if test $ol_cv_bdb_compat != yes ; then
33160 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33161 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33162 { (exit 1); exit 1; }; }
33167 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
33168 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33169 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33170 ol_enable_ldbm_api=none
33173 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
33174 echo "$as_me:$LINENO: checking for MDBM library" >&5
33175 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33176 if test "${ol_cv_lib_mdbm+set}" = set; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33180 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33181 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33182 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33185 cat >conftest.$ac_ext <<_ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h. */
33191 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33193 #define mdbm_set_chain innocuous_mdbm_set_chain
33195 /* System header to define __stub macros and hopefully few prototypes,
33196 which can conflict with char mdbm_set_chain (); below.
33197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33198 <limits.h> exists even on freestanding compilers. */
33201 # include <limits.h>
33203 # include <assert.h>
33206 #undef mdbm_set_chain
33208 /* Override any gcc2 internal prototype to avoid an error. */
33213 /* We use char because int might match the return type of a gcc2
33214 builtin and then its argument prototype would still apply. */
33215 char mdbm_set_chain ();
33216 /* The GNU C library defines this for functions which it implements
33217 to always fail with ENOSYS. Some functions are actually named
33218 something starting with __ and the normal name is an alias. */
33219 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33222 char (*f) () = mdbm_set_chain;
33231 return f != mdbm_set_chain;
33236 rm -f conftest.$ac_objext conftest$ac_exeext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33238 (eval $ac_link) 2>conftest.er1
33240 grep -v '^ *+' conftest.er1 >conftest.err
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } &&
33245 { ac_try='test -z "$ac_c_werror_flag"
33246 || test ! -s conftest.err'
33247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248 (eval $ac_try) 2>&5
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; } &&
33252 { ac_try='test -s conftest$ac_exeext'
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; }; then
33258 ac_cv_func_mdbm_set_chain=yes
33260 echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33263 ac_cv_func_mdbm_set_chain=no
33265 rm -f conftest.err conftest.$ac_objext \
33266 conftest$ac_exeext conftest.$ac_ext
33268 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33269 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33270 if test $ac_cv_func_mdbm_set_chain = yes; then
33274 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33275 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33276 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33277 echo $ECHO_N "(cached) $ECHO_C" >&6
33279 ac_check_lib_save_LIBS=$LIBS
33280 LIBS="-lmdbm $LIBS"
33281 cat >conftest.$ac_ext <<_ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h. */
33288 /* Override any gcc2 internal prototype to avoid an error. */
33292 /* We use char because int might match the return type of a gcc2
33293 builtin and then its argument prototype would still apply. */
33294 char mdbm_set_chain ();
33303 rm -f conftest.$ac_objext conftest$ac_exeext
33304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33305 (eval $ac_link) 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_exeext'
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_cv_lib_mdbm_mdbm_set_chain=yes
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_cv_lib_mdbm_mdbm_set_chain=no
33332 rm -f conftest.err conftest.$ac_objext \
33333 conftest$ac_exeext conftest.$ac_ext
33334 LIBS=$ac_check_lib_save_LIBS
33336 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33337 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33338 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33339 ol_cv_lib_mdbm=-lmdbm
33350 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33351 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33355 for ac_header in mdbm.h
33357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33359 echo "$as_me:$LINENO: checking for $ac_header" >&5
33360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33362 echo $ECHO_N "(cached) $ECHO_C" >&6
33364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33367 # Is the header compilable?
33368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33370 cat >conftest.$ac_ext <<_ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h. */
33376 $ac_includes_default
33377 #include <$ac_header>
33379 rm -f conftest.$ac_objext
33380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33381 (eval $ac_compile) 2>conftest.er1
33383 grep -v '^ *+' conftest.er1 >conftest.err
33385 cat conftest.err >&5
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); } &&
33388 { ac_try='test -z "$ac_c_werror_flag"
33389 || test ! -s conftest.err'
33390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33391 (eval $ac_try) 2>&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); }; } &&
33395 { ac_try='test -s conftest.$ac_objext'
33396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33397 (eval $ac_try) 2>&5
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); }; }; then
33401 ac_header_compiler=yes
33403 echo "$as_me: failed program was:" >&5
33404 sed 's/^/| /' conftest.$ac_ext >&5
33406 ac_header_compiler=no
33408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33410 echo "${ECHO_T}$ac_header_compiler" >&6
33412 # Is the header present?
33413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33415 cat >conftest.$ac_ext <<_ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33421 #include <$ac_header>
33423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33426 grep -v '^ *+' conftest.er1 >conftest.err
33428 cat conftest.err >&5
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } >/dev/null; then
33431 if test -s conftest.err; then
33432 ac_cpp_err=$ac_c_preproc_warn_flag
33433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33440 if test -z "$ac_cpp_err"; then
33441 ac_header_preproc=yes
33443 echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33446 ac_header_preproc=no
33448 rm -f conftest.err conftest.$ac_ext
33449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33450 echo "${ECHO_T}$ac_header_preproc" >&6
33452 # So? What about this header?
33453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33459 ac_header_preproc=yes
33462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33476 ## ------------------------------------------ ##
33477 ## Report this to the AC_PACKAGE_NAME lists. ##
33478 ## ------------------------------------------ ##
33481 sed "s/^/$as_me: WARNING: /" >&2
33484 echo "$as_me:$LINENO: checking for $ac_header" >&5
33485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33487 echo $ECHO_N "(cached) $ECHO_C" >&6
33489 eval "$as_ac_Header=\$ac_header_preproc"
33491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33496 cat >>confdefs.h <<_ACEOF
33497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33504 echo "$as_me:$LINENO: checking for db" >&5
33505 echo $ECHO_N "checking for db... $ECHO_C" >&6
33506 if test "${ol_cv_mdbm+set}" = set; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33510 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
33517 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33518 echo "${ECHO_T}$ol_cv_mdbm" >&6
33519 if test $ol_cv_mdbm = yes ; then
33521 cat >>confdefs.h <<\_ACEOF
33522 #define HAVE_MDBM 1
33528 if test $ol_cv_mdbm = yes ; then
33530 ol_enable_ldbm_api=mdbm
33531 if test $ol_cv_lib_mdbm != yes ; then
33532 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33537 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
33538 echo "$as_me:$LINENO: checking for GDBM library" >&5
33539 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33540 if test "${ol_cv_lib_gdbm+set}" = set; then
33541 echo $ECHO_N "(cached) $ECHO_C" >&6
33544 echo "$as_me:$LINENO: checking for gdbm_open" >&5
33545 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33546 if test "${ac_cv_func_gdbm_open+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 cat >conftest.$ac_ext <<_ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h. */
33555 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33557 #define gdbm_open innocuous_gdbm_open
33559 /* System header to define __stub macros and hopefully few prototypes,
33560 which can conflict with char gdbm_open (); below.
33561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33562 <limits.h> exists even on freestanding compilers. */
33565 # include <limits.h>
33567 # include <assert.h>
33572 /* Override any gcc2 internal prototype to avoid an error. */
33577 /* We use char because int might match the return type of a gcc2
33578 builtin and then its argument prototype would still apply. */
33580 /* The GNU C library defines this for functions which it implements
33581 to always fail with ENOSYS. Some functions are actually named
33582 something starting with __ and the normal name is an alias. */
33583 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33586 char (*f) () = gdbm_open;
33595 return f != gdbm_open;
33600 rm -f conftest.$ac_objext conftest$ac_exeext
33601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33602 (eval $ac_link) 2>conftest.er1
33604 grep -v '^ *+' conftest.er1 >conftest.err
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
33609 { ac_try='test -z "$ac_c_werror_flag"
33610 || test ! -s conftest.err'
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest$ac_exeext'
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; }; then
33622 ac_cv_func_gdbm_open=yes
33624 echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33627 ac_cv_func_gdbm_open=no
33629 rm -f conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
33632 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33633 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33634 if test $ac_cv_func_gdbm_open = yes; then
33638 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33639 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33640 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33641 echo $ECHO_N "(cached) $ECHO_C" >&6
33643 ac_check_lib_save_LIBS=$LIBS
33644 LIBS="-lgdbm $LIBS"
33645 cat >conftest.$ac_ext <<_ACEOF
33648 cat confdefs.h >>conftest.$ac_ext
33649 cat >>conftest.$ac_ext <<_ACEOF
33650 /* end confdefs.h. */
33652 /* Override any gcc2 internal prototype to avoid an error. */
33656 /* We use char because int might match the return type of a gcc2
33657 builtin and then its argument prototype would still apply. */
33667 rm -f conftest.$ac_objext conftest$ac_exeext
33668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33669 (eval $ac_link) 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_exeext'
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_cv_lib_gdbm_gdbm_open=yes
33691 echo "$as_me: failed program was:" >&5
33692 sed 's/^/| /' conftest.$ac_ext >&5
33694 ac_cv_lib_gdbm_gdbm_open=no
33696 rm -f conftest.err conftest.$ac_objext \
33697 conftest$ac_exeext conftest.$ac_ext
33698 LIBS=$ac_check_lib_save_LIBS
33700 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33701 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33702 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33703 ol_cv_lib_gdbm=-lgdbm
33714 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33715 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33719 for ac_header in gdbm.h
33721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33723 echo "$as_me:$LINENO: checking for $ac_header" >&5
33724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33726 echo $ECHO_N "(cached) $ECHO_C" >&6
33728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33731 # Is the header compilable?
33732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33734 cat >conftest.$ac_ext <<_ACEOF
33737 cat confdefs.h >>conftest.$ac_ext
33738 cat >>conftest.$ac_ext <<_ACEOF
33739 /* end confdefs.h. */
33740 $ac_includes_default
33741 #include <$ac_header>
33743 rm -f conftest.$ac_objext
33744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33745 (eval $ac_compile) 2>conftest.er1
33747 grep -v '^ *+' conftest.er1 >conftest.err
33749 cat conftest.err >&5
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); } &&
33752 { ac_try='test -z "$ac_c_werror_flag"
33753 || test ! -s conftest.err'
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest.$ac_objext'
33760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33761 (eval $ac_try) 2>&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); }; }; then
33765 ac_header_compiler=yes
33767 echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33770 ac_header_compiler=no
33772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33774 echo "${ECHO_T}$ac_header_compiler" >&6
33776 # Is the header present?
33777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33779 cat >conftest.$ac_ext <<_ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h. */
33785 #include <$ac_header>
33787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33790 grep -v '^ *+' conftest.er1 >conftest.err
33792 cat conftest.err >&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } >/dev/null; then
33795 if test -s conftest.err; then
33796 ac_cpp_err=$ac_c_preproc_warn_flag
33797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33804 if test -z "$ac_cpp_err"; then
33805 ac_header_preproc=yes
33807 echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33810 ac_header_preproc=no
33812 rm -f conftest.err conftest.$ac_ext
33813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33814 echo "${ECHO_T}$ac_header_preproc" >&6
33816 # So? What about this header?
33817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33823 ac_header_preproc=yes
33826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33840 ## ------------------------------------------ ##
33841 ## Report this to the AC_PACKAGE_NAME lists. ##
33842 ## ------------------------------------------ ##
33845 sed "s/^/$as_me: WARNING: /" >&2
33848 echo "$as_me:$LINENO: checking for $ac_header" >&5
33849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33851 echo $ECHO_N "(cached) $ECHO_C" >&6
33853 eval "$as_ac_Header=\$ac_header_preproc"
33855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33860 cat >>confdefs.h <<_ACEOF
33861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33868 echo "$as_me:$LINENO: checking for db" >&5
33869 echo $ECHO_N "checking for db... $ECHO_C" >&6
33870 if test "${ol_cv_gdbm+set}" = set; then
33871 echo $ECHO_N "(cached) $ECHO_C" >&6
33874 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
33881 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33882 echo "${ECHO_T}$ol_cv_gdbm" >&6
33883 if test $ol_cv_gdbm = yes ; then
33885 cat >>confdefs.h <<\_ACEOF
33886 #define HAVE_GDBM 1
33892 if test $ol_cv_gdbm = yes ; then
33894 ol_enable_ldbm_api=gdbm
33896 if test $ol_cv_lib_gdbm != yes ; then
33897 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33902 if test $ol_enable_ldbm_api = ndbm ; then
33903 echo "$as_me:$LINENO: checking for NDBM library" >&5
33904 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33905 if test "${ol_cv_lib_ndbm+set}" = set; then
33906 echo $ECHO_N "(cached) $ECHO_C" >&6
33909 echo "$as_me:$LINENO: checking for dbm_open" >&5
33910 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33911 if test "${ac_cv_func_dbm_open+set}" = set; then
33912 echo $ECHO_N "(cached) $ECHO_C" >&6
33914 cat >conftest.$ac_ext <<_ACEOF
33917 cat confdefs.h >>conftest.$ac_ext
33918 cat >>conftest.$ac_ext <<_ACEOF
33919 /* end confdefs.h. */
33920 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33922 #define dbm_open innocuous_dbm_open
33924 /* System header to define __stub macros and hopefully few prototypes,
33925 which can conflict with char dbm_open (); below.
33926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33927 <limits.h> exists even on freestanding compilers. */
33930 # include <limits.h>
33932 # include <assert.h>
33937 /* Override any gcc2 internal prototype to avoid an error. */
33942 /* We use char because int might match the return type of a gcc2
33943 builtin and then its argument prototype would still apply. */
33945 /* The GNU C library defines this for functions which it implements
33946 to always fail with ENOSYS. Some functions are actually named
33947 something starting with __ and the normal name is an alias. */
33948 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33951 char (*f) () = dbm_open;
33960 return f != dbm_open;
33965 rm -f conftest.$ac_objext conftest$ac_exeext
33966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33967 (eval $ac_link) 2>conftest.er1
33969 grep -v '^ *+' conftest.er1 >conftest.err
33971 cat conftest.err >&5
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
33974 { ac_try='test -z "$ac_c_werror_flag"
33975 || test ! -s conftest.err'
33976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977 (eval $ac_try) 2>&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); }; } &&
33981 { ac_try='test -s conftest$ac_exeext'
33982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983 (eval $ac_try) 2>&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); }; }; then
33987 ac_cv_func_dbm_open=yes
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33992 ac_cv_func_dbm_open=no
33994 rm -f conftest.err conftest.$ac_objext \
33995 conftest$ac_exeext conftest.$ac_ext
33997 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33998 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33999 if test $ac_cv_func_dbm_open = yes; then
34003 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
34004 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
34005 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
34006 echo $ECHO_N "(cached) $ECHO_C" >&6
34008 ac_check_lib_save_LIBS=$LIBS
34009 LIBS="-lndbm $LIBS"
34010 cat >conftest.$ac_ext <<_ACEOF
34013 cat confdefs.h >>conftest.$ac_ext
34014 cat >>conftest.$ac_ext <<_ACEOF
34015 /* end confdefs.h. */
34017 /* Override any gcc2 internal prototype to avoid an error. */
34021 /* We use char because int might match the return type of a gcc2
34022 builtin and then its argument prototype would still apply. */
34032 rm -f conftest.$ac_objext conftest$ac_exeext
34033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34034 (eval $ac_link) 2>conftest.er1
34036 grep -v '^ *+' conftest.er1 >conftest.err
34038 cat conftest.err >&5
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); } &&
34041 { ac_try='test -z "$ac_c_werror_flag"
34042 || test ! -s conftest.err'
34043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044 (eval $ac_try) 2>&5
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); }; } &&
34048 { ac_try='test -s conftest$ac_exeext'
34049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34050 (eval $ac_try) 2>&5
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); }; }; then
34054 ac_cv_lib_ndbm_dbm_open=yes
34056 echo "$as_me: failed program was:" >&5
34057 sed 's/^/| /' conftest.$ac_ext >&5
34059 ac_cv_lib_ndbm_dbm_open=no
34061 rm -f conftest.err conftest.$ac_objext \
34062 conftest$ac_exeext conftest.$ac_ext
34063 LIBS=$ac_check_lib_save_LIBS
34065 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
34066 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
34067 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34068 ol_cv_lib_ndbm=-lndbm
34071 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34072 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34073 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34074 echo $ECHO_N "(cached) $ECHO_C" >&6
34076 ac_check_lib_save_LIBS=$LIBS
34078 cat >conftest.$ac_ext <<_ACEOF
34081 cat confdefs.h >>conftest.$ac_ext
34082 cat >>conftest.$ac_ext <<_ACEOF
34083 /* end confdefs.h. */
34085 /* Override any gcc2 internal prototype to avoid an error. */
34089 /* We use char because int might match the return type of a gcc2
34090 builtin and then its argument prototype would still apply. */
34100 rm -f conftest.$ac_objext conftest$ac_exeext
34101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34102 (eval $ac_link) 2>conftest.er1
34104 grep -v '^ *+' conftest.er1 >conftest.err
34106 cat conftest.err >&5
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); } &&
34109 { ac_try='test -z "$ac_c_werror_flag"
34110 || test ! -s conftest.err'
34111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34112 (eval $ac_try) 2>&5
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); }; } &&
34116 { ac_try='test -s conftest$ac_exeext'
34117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34118 (eval $ac_try) 2>&5
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); }; }; then
34122 ac_cv_lib_dbm_dbm_open=yes
34124 echo "$as_me: failed program was:" >&5
34125 sed 's/^/| /' conftest.$ac_ext >&5
34127 ac_cv_lib_dbm_dbm_open=no
34129 rm -f conftest.err conftest.$ac_objext \
34130 conftest$ac_exeext conftest.$ac_ext
34131 LIBS=$ac_check_lib_save_LIBS
34133 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34134 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34135 if test $ac_cv_lib_dbm_dbm_open = yes; then
34136 ol_cv_lib_ndbm=-ldbm
34149 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34150 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34154 for ac_header in ndbm.h
34156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34158 echo "$as_me:$LINENO: checking for $ac_header" >&5
34159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34161 echo $ECHO_N "(cached) $ECHO_C" >&6
34163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34166 # Is the header compilable?
34167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34169 cat >conftest.$ac_ext <<_ACEOF
34172 cat confdefs.h >>conftest.$ac_ext
34173 cat >>conftest.$ac_ext <<_ACEOF
34174 /* end confdefs.h. */
34175 $ac_includes_default
34176 #include <$ac_header>
34178 rm -f conftest.$ac_objext
34179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34180 (eval $ac_compile) 2>conftest.er1
34182 grep -v '^ *+' conftest.er1 >conftest.err
34184 cat conftest.err >&5
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); } &&
34187 { ac_try='test -z "$ac_c_werror_flag"
34188 || test ! -s conftest.err'
34189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190 (eval $ac_try) 2>&5
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); }; } &&
34194 { ac_try='test -s conftest.$ac_objext'
34195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196 (eval $ac_try) 2>&5
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); }; }; then
34200 ac_header_compiler=yes
34202 echo "$as_me: failed program was:" >&5
34203 sed 's/^/| /' conftest.$ac_ext >&5
34205 ac_header_compiler=no
34207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34209 echo "${ECHO_T}$ac_header_compiler" >&6
34211 # Is the header present?
34212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34214 cat >conftest.$ac_ext <<_ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h. */
34220 #include <$ac_header>
34222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34225 grep -v '^ *+' conftest.er1 >conftest.err
34227 cat conftest.err >&5
34228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229 (exit $ac_status); } >/dev/null; then
34230 if test -s conftest.err; then
34231 ac_cpp_err=$ac_c_preproc_warn_flag
34232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34239 if test -z "$ac_cpp_err"; then
34240 ac_header_preproc=yes
34242 echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34245 ac_header_preproc=no
34247 rm -f conftest.err conftest.$ac_ext
34248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34249 echo "${ECHO_T}$ac_header_preproc" >&6
34251 # So? What about this header?
34252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34258 ac_header_preproc=yes
34261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34275 ## ------------------------------------------ ##
34276 ## Report this to the AC_PACKAGE_NAME lists. ##
34277 ## ------------------------------------------ ##
34280 sed "s/^/$as_me: WARNING: /" >&2
34283 echo "$as_me:$LINENO: checking for $ac_header" >&5
34284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34286 echo $ECHO_N "(cached) $ECHO_C" >&6
34288 eval "$as_ac_Header=\$ac_header_preproc"
34290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34295 cat >>confdefs.h <<_ACEOF
34296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34303 echo "$as_me:$LINENO: checking for db" >&5
34304 echo $ECHO_N "checking for db... $ECHO_C" >&6
34305 if test "${ol_cv_ndbm+set}" = set; then
34306 echo $ECHO_N "(cached) $ECHO_C" >&6
34309 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
34316 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34317 echo "${ECHO_T}$ol_cv_ndbm" >&6
34318 if test $ol_cv_ndbm = yes ; then
34320 cat >>confdefs.h <<\_ACEOF
34321 #define HAVE_NDBM 1
34327 if test $ol_cv_ndbm = yes ; then
34329 ol_enable_ldbm_api=ndbm
34331 if test $ol_cv_lib_ndbm != yes ; then
34332 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34337 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
34338 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34339 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34340 { (exit 1); exit 1; }; }
34343 if test $ol_enable_bdb = yes ||
34344 test $ol_enable_hdb = yes ||
34345 test $ol_enable_ldbm = yes ; then
34346 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34350 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34351 BUILD_LIBS_DYNAMIC=shared
34353 cat >>confdefs.h <<\_ACEOF
34354 #define LDAP_LIBS_DYNAMIC 1
34359 BUILD_LIBS_DYNAMIC=static
34363 if test $ol_enable_wrappers != no ; then
34365 for ac_header in tcpd.h
34367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34369 echo "$as_me:$LINENO: checking for $ac_header" >&5
34370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34372 echo $ECHO_N "(cached) $ECHO_C" >&6
34374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34377 # Is the header compilable?
34378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34380 cat >conftest.$ac_ext <<_ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h. */
34386 $ac_includes_default
34387 #include <$ac_header>
34389 rm -f conftest.$ac_objext
34390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34391 (eval $ac_compile) 2>conftest.er1
34393 grep -v '^ *+' conftest.er1 >conftest.err
34395 cat conftest.err >&5
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); } &&
34398 { ac_try='test -z "$ac_c_werror_flag"
34399 || test ! -s conftest.err'
34400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34401 (eval $ac_try) 2>&5
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); }; } &&
34405 { ac_try='test -s conftest.$ac_objext'
34406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407 (eval $ac_try) 2>&5
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; }; then
34411 ac_header_compiler=yes
34413 echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34416 ac_header_compiler=no
34418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34420 echo "${ECHO_T}$ac_header_compiler" >&6
34422 # Is the header present?
34423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34425 cat >conftest.$ac_ext <<_ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h. */
34431 #include <$ac_header>
34433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34436 grep -v '^ *+' conftest.er1 >conftest.err
34438 cat conftest.err >&5
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } >/dev/null; then
34441 if test -s conftest.err; then
34442 ac_cpp_err=$ac_c_preproc_warn_flag
34443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34450 if test -z "$ac_cpp_err"; then
34451 ac_header_preproc=yes
34453 echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34456 ac_header_preproc=no
34458 rm -f conftest.err conftest.$ac_ext
34459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34460 echo "${ECHO_T}$ac_header_preproc" >&6
34462 # So? What about this header?
34463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34469 ac_header_preproc=yes
34472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34486 ## ------------------------------------------ ##
34487 ## Report this to the AC_PACKAGE_NAME lists. ##
34488 ## ------------------------------------------ ##
34491 sed "s/^/$as_me: WARNING: /" >&2
34494 echo "$as_me:$LINENO: checking for $ac_header" >&5
34495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34497 echo $ECHO_N "(cached) $ECHO_C" >&6
34499 eval "$as_ac_Header=\$ac_header_preproc"
34501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34506 cat >>confdefs.h <<_ACEOF
34507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34510 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34511 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34513 LIBS="$LIBS -lwrap"
34514 cat >conftest.$ac_ext <<_ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h. */
34522 int allow_severity = 0;
34523 int deny_severity = 0;
34525 struct request_info *req;
34537 rm -f conftest.$ac_objext conftest$ac_exeext
34538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34539 (eval $ac_link) 2>conftest.er1
34541 grep -v '^ *+' conftest.er1 >conftest.err
34543 cat conftest.err >&5
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); } &&
34546 { ac_try='test -z "$ac_c_werror_flag"
34547 || test ! -s conftest.err'
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; } &&
34553 { ac_try='test -s conftest$ac_exeext'
34554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555 (eval $ac_try) 2>&5
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); }; }; then
34559 echo "$as_me:$LINENO: result: -lwrap" >&5
34560 echo "${ECHO_T}-lwrap" >&6
34564 echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34569 cat >conftest.$ac_ext <<_ACEOF
34572 cat confdefs.h >>conftest.$ac_ext
34573 cat >>conftest.$ac_ext <<_ACEOF
34574 /* end confdefs.h. */
34577 int allow_severity = 0;
34578 int deny_severity = 0;
34580 struct request_info *req;
34592 rm -f conftest.$ac_objext conftest$ac_exeext
34593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34594 (eval $ac_link) 2>conftest.er1
34596 grep -v '^ *+' conftest.er1 >conftest.err
34598 cat conftest.err >&5
34599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600 (exit $ac_status); } &&
34601 { ac_try='test -z "$ac_c_werror_flag"
34602 || test ! -s conftest.err'
34603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34604 (eval $ac_try) 2>&5
34606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); }; } &&
34608 { ac_try='test -s conftest$ac_exeext'
34609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34610 (eval $ac_try) 2>&5
34612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613 (exit $ac_status); }; }; then
34614 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34615 echo "${ECHO_T}-lwrap -lnsl" >&6
34617 LIBS="$save_LIBS -lnsl"
34619 echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34623 echo "$as_me:$LINENO: result: no" >&5
34624 echo "${ECHO_T}no" >&6
34628 rm -f conftest.err conftest.$ac_objext \
34629 conftest$ac_exeext conftest.$ac_ext
34631 rm -f conftest.err conftest.$ac_objext \
34632 conftest$ac_exeext conftest.$ac_ext
34640 if test $have_wrappers = yes ; then
34642 cat >>confdefs.h <<\_ACEOF
34643 #define HAVE_TCPD 1
34647 elif test $ol_enable_wrappers = yes ; then
34648 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34649 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34650 { (exit 1); exit 1; }; }
34652 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34653 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34658 if test $ol_enable_syslog != no ; then
34659 echo "$as_me:$LINENO: checking for openlog" >&5
34660 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34661 if test "${ac_cv_func_openlog+set}" = set; then
34662 echo $ECHO_N "(cached) $ECHO_C" >&6
34664 cat >conftest.$ac_ext <<_ACEOF
34667 cat confdefs.h >>conftest.$ac_ext
34668 cat >>conftest.$ac_ext <<_ACEOF
34669 /* end confdefs.h. */
34670 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34672 #define openlog innocuous_openlog
34674 /* System header to define __stub macros and hopefully few prototypes,
34675 which can conflict with char openlog (); below.
34676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34677 <limits.h> exists even on freestanding compilers. */
34680 # include <limits.h>
34682 # include <assert.h>
34687 /* Override any gcc2 internal prototype to avoid an error. */
34692 /* We use char because int might match the return type of a gcc2
34693 builtin and then its argument prototype would still apply. */
34695 /* The GNU C library defines this for functions which it implements
34696 to always fail with ENOSYS. Some functions are actually named
34697 something starting with __ and the normal name is an alias. */
34698 #if defined (__stub_openlog) || defined (__stub___openlog)
34701 char (*f) () = openlog;
34710 return f != openlog;
34715 rm -f conftest.$ac_objext conftest$ac_exeext
34716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34717 (eval $ac_link) 2>conftest.er1
34719 grep -v '^ *+' conftest.er1 >conftest.err
34721 cat conftest.err >&5
34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723 (exit $ac_status); } &&
34724 { ac_try='test -z "$ac_c_werror_flag"
34725 || test ! -s conftest.err'
34726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34727 (eval $ac_try) 2>&5
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); }; } &&
34731 { ac_try='test -s conftest$ac_exeext'
34732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733 (eval $ac_try) 2>&5
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); }; }; then
34737 ac_cv_func_openlog=yes
34739 echo "$as_me: failed program was:" >&5
34740 sed 's/^/| /' conftest.$ac_ext >&5
34742 ac_cv_func_openlog=no
34744 rm -f conftest.err conftest.$ac_objext \
34745 conftest$ac_exeext conftest.$ac_ext
34747 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34748 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34750 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34751 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34752 echo "$as_me: error: could not find syslog" >&2;}
34753 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34755 ol_enable_syslog=$ac_cv_func_openlog
34759 if test $ol_enable_sql != no ; then
34762 for ac_header in sql.h sqlext.h
34764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34766 echo "$as_me:$LINENO: checking for $ac_header" >&5
34767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34769 echo $ECHO_N "(cached) $ECHO_C" >&6
34771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34774 # Is the header compilable?
34775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34777 cat >conftest.$ac_ext <<_ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h. */
34783 $ac_includes_default
34784 #include <$ac_header>
34786 rm -f conftest.$ac_objext
34787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34788 (eval $ac_compile) 2>conftest.er1
34790 grep -v '^ *+' conftest.er1 >conftest.err
34792 cat conftest.err >&5
34793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794 (exit $ac_status); } &&
34795 { ac_try='test -z "$ac_c_werror_flag"
34796 || test ! -s conftest.err'
34797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34798 (eval $ac_try) 2>&5
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); }; } &&
34802 { ac_try='test -s conftest.$ac_objext'
34803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34804 (eval $ac_try) 2>&5
34806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); }; }; then
34808 ac_header_compiler=yes
34810 echo "$as_me: failed program was:" >&5
34811 sed 's/^/| /' conftest.$ac_ext >&5
34813 ac_header_compiler=no
34815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34817 echo "${ECHO_T}$ac_header_compiler" >&6
34819 # Is the header present?
34820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34822 cat >conftest.$ac_ext <<_ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h. */
34828 #include <$ac_header>
34830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34833 grep -v '^ *+' conftest.er1 >conftest.err
34835 cat conftest.err >&5
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); } >/dev/null; then
34838 if test -s conftest.err; then
34839 ac_cpp_err=$ac_c_preproc_warn_flag
34840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34847 if test -z "$ac_cpp_err"; then
34848 ac_header_preproc=yes
34850 echo "$as_me: failed program was:" >&5
34851 sed 's/^/| /' conftest.$ac_ext >&5
34853 ac_header_preproc=no
34855 rm -f conftest.err conftest.$ac_ext
34856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34857 echo "${ECHO_T}$ac_header_preproc" >&6
34859 # So? What about this header?
34860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34866 ac_header_preproc=yes
34869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34883 ## ------------------------------------------ ##
34884 ## Report this to the AC_PACKAGE_NAME lists. ##
34885 ## ------------------------------------------ ##
34888 sed "s/^/$as_me: WARNING: /" >&2
34891 echo "$as_me:$LINENO: checking for $ac_header" >&5
34892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34894 echo $ECHO_N "(cached) $ECHO_C" >&6
34896 eval "$as_ac_Header=\$ac_header_preproc"
34898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34903 cat >>confdefs.h <<_ACEOF
34904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34909 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34910 echo "$as_me: error: could not locate SQL headers" >&2;}
34911 { (exit 1); exit 1; }; }
34919 LIBS="$LTHREAD_LIBS"
34921 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34922 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34923 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34924 echo $ECHO_N "(cached) $ECHO_C" >&6
34926 ac_check_lib_save_LIBS=$LIBS
34927 LIBS="-liodbc $LIBS"
34928 cat >conftest.$ac_ext <<_ACEOF
34931 cat confdefs.h >>conftest.$ac_ext
34932 cat >>conftest.$ac_ext <<_ACEOF
34933 /* end confdefs.h. */
34935 /* Override any gcc2 internal prototype to avoid an error. */
34939 /* We use char because int might match the return type of a gcc2
34940 builtin and then its argument prototype would still apply. */
34941 char SQLDriverConnect ();
34945 SQLDriverConnect ();
34950 rm -f conftest.$ac_objext conftest$ac_exeext
34951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34952 (eval $ac_link) 2>conftest.er1
34954 grep -v '^ *+' conftest.er1 >conftest.err
34956 cat conftest.err >&5
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); } &&
34959 { ac_try='test -z "$ac_c_werror_flag"
34960 || test ! -s conftest.err'
34961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962 (eval $ac_try) 2>&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); }; } &&
34966 { ac_try='test -s conftest$ac_exeext'
34967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968 (eval $ac_try) 2>&5
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); }; }; then
34972 ac_cv_lib_iodbc_SQLDriverConnect=yes
34974 echo "$as_me: failed program was:" >&5
34975 sed 's/^/| /' conftest.$ac_ext >&5
34977 ac_cv_lib_iodbc_SQLDriverConnect=no
34979 rm -f conftest.err conftest.$ac_objext \
34980 conftest$ac_exeext conftest.$ac_ext
34981 LIBS=$ac_check_lib_save_LIBS
34983 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34984 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34985 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34991 if test $have_iodbc = yes ; then
34992 ol_link_sql="-liodbc"
34994 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34995 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34996 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34997 echo $ECHO_N "(cached) $ECHO_C" >&6
34999 ac_check_lib_save_LIBS=$LIBS
35000 LIBS="-lodbc $LIBS"
35001 cat >conftest.$ac_ext <<_ACEOF
35004 cat confdefs.h >>conftest.$ac_ext
35005 cat >>conftest.$ac_ext <<_ACEOF
35006 /* end confdefs.h. */
35008 /* Override any gcc2 internal prototype to avoid an error. */
35012 /* We use char because int might match the return type of a gcc2
35013 builtin and then its argument prototype would still apply. */
35014 char SQLDriverConnect ();
35018 SQLDriverConnect ();
35023 rm -f conftest.$ac_objext conftest$ac_exeext
35024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35025 (eval $ac_link) 2>conftest.er1
35027 grep -v '^ *+' conftest.er1 >conftest.err
35029 cat conftest.err >&5
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); } &&
35032 { ac_try='test -z "$ac_c_werror_flag"
35033 || test ! -s conftest.err'
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; } &&
35039 { ac_try='test -s conftest$ac_exeext'
35040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041 (eval $ac_try) 2>&5
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; }; then
35045 ac_cv_lib_odbc_SQLDriverConnect=yes
35047 echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35050 ac_cv_lib_odbc_SQLDriverConnect=no
35052 rm -f conftest.err conftest.$ac_objext \
35053 conftest$ac_exeext conftest.$ac_ext
35054 LIBS=$ac_check_lib_save_LIBS
35056 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35057 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
35058 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35064 if test $have_odbc = yes ; then
35065 ol_link_sql="-lodbc"
35071 if test $ol_link_sql != no ; then
35072 SLAPD_SQL_LIBS="$ol_link_sql"
35074 elif test $ol_enable_sql != auto ; then
35075 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35076 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35077 { (exit 1); exit 1; }; }
35084 if test $ol_with_cyrus_sasl != no ; then
35087 for ac_header in sasl/sasl.h sasl.h
35089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35091 echo "$as_me:$LINENO: checking for $ac_header" >&5
35092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35094 echo $ECHO_N "(cached) $ECHO_C" >&6
35096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35099 # Is the header compilable?
35100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35102 cat >conftest.$ac_ext <<_ACEOF
35105 cat confdefs.h >>conftest.$ac_ext
35106 cat >>conftest.$ac_ext <<_ACEOF
35107 /* end confdefs.h. */
35108 $ac_includes_default
35109 #include <$ac_header>
35111 rm -f conftest.$ac_objext
35112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35113 (eval $ac_compile) 2>conftest.er1
35115 grep -v '^ *+' conftest.er1 >conftest.err
35117 cat conftest.err >&5
35118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35119 (exit $ac_status); } &&
35120 { ac_try='test -z "$ac_c_werror_flag"
35121 || test ! -s conftest.err'
35122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35123 (eval $ac_try) 2>&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); }; } &&
35127 { ac_try='test -s conftest.$ac_objext'
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; }; then
35133 ac_header_compiler=yes
35135 echo "$as_me: failed program was:" >&5
35136 sed 's/^/| /' conftest.$ac_ext >&5
35138 ac_header_compiler=no
35140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35142 echo "${ECHO_T}$ac_header_compiler" >&6
35144 # Is the header present?
35145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35147 cat >conftest.$ac_ext <<_ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35153 #include <$ac_header>
35155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35158 grep -v '^ *+' conftest.er1 >conftest.err
35160 cat conftest.err >&5
35161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35162 (exit $ac_status); } >/dev/null; then
35163 if test -s conftest.err; then
35164 ac_cpp_err=$ac_c_preproc_warn_flag
35165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35172 if test -z "$ac_cpp_err"; then
35173 ac_header_preproc=yes
35175 echo "$as_me: failed program was:" >&5
35176 sed 's/^/| /' conftest.$ac_ext >&5
35178 ac_header_preproc=no
35180 rm -f conftest.err conftest.$ac_ext
35181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35182 echo "${ECHO_T}$ac_header_preproc" >&6
35184 # So? What about this header?
35185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35191 ac_header_preproc=yes
35194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35208 ## ------------------------------------------ ##
35209 ## Report this to the AC_PACKAGE_NAME lists. ##
35210 ## ------------------------------------------ ##
35213 sed "s/^/$as_me: WARNING: /" >&2
35216 echo "$as_me:$LINENO: checking for $ac_header" >&5
35217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35219 echo $ECHO_N "(cached) $ECHO_C" >&6
35221 eval "$as_ac_Header=\$ac_header_preproc"
35223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35228 cat >>confdefs.h <<_ACEOF
35229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35237 if test $ac_cv_header_sasl_sasl_h = yes ||
35238 test $ac_cv_header_sasl_h = yes; then
35239 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35240 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35241 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35242 echo $ECHO_N "(cached) $ECHO_C" >&6
35244 ac_check_lib_save_LIBS=$LIBS
35245 LIBS="-lsasl2 $LIBS"
35246 cat >conftest.$ac_ext <<_ACEOF
35249 cat confdefs.h >>conftest.$ac_ext
35250 cat >>conftest.$ac_ext <<_ACEOF
35251 /* end confdefs.h. */
35253 /* Override any gcc2 internal prototype to avoid an error. */
35257 /* We use char because int might match the return type of a gcc2
35258 builtin and then its argument prototype would still apply. */
35259 char sasl_client_init ();
35263 sasl_client_init ();
35268 rm -f conftest.$ac_objext conftest$ac_exeext
35269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35270 (eval $ac_link) 2>conftest.er1
35272 grep -v '^ *+' conftest.er1 >conftest.err
35274 cat conftest.err >&5
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); } &&
35277 { ac_try='test -z "$ac_c_werror_flag"
35278 || test ! -s conftest.err'
35279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280 (eval $ac_try) 2>&5
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; } &&
35284 { ac_try='test -s conftest$ac_exeext'
35285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286 (eval $ac_try) 2>&5
35288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289 (exit $ac_status); }; }; then
35290 ac_cv_lib_sasl2_sasl_client_init=yes
35292 echo "$as_me: failed program was:" >&5
35293 sed 's/^/| /' conftest.$ac_ext >&5
35295 ac_cv_lib_sasl2_sasl_client_init=no
35297 rm -f conftest.err conftest.$ac_objext \
35298 conftest$ac_exeext conftest.$ac_ext
35299 LIBS=$ac_check_lib_save_LIBS
35301 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35302 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35303 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35304 ol_link_sasl="-lsasl2"
35306 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35307 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35308 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35309 echo $ECHO_N "(cached) $ECHO_C" >&6
35311 ac_check_lib_save_LIBS=$LIBS
35312 LIBS="-lsasl $LIBS"
35313 cat >conftest.$ac_ext <<_ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h. */
35320 /* Override any gcc2 internal prototype to avoid an error. */
35324 /* We use char because int might match the return type of a gcc2
35325 builtin and then its argument prototype would still apply. */
35326 char sasl_client_init ();
35330 sasl_client_init ();
35335 rm -f conftest.$ac_objext conftest$ac_exeext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35337 (eval $ac_link) 2>conftest.er1
35339 grep -v '^ *+' conftest.er1 >conftest.err
35341 cat conftest.err >&5
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); } &&
35344 { ac_try='test -z "$ac_c_werror_flag"
35345 || test ! -s conftest.err'
35346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347 (eval $ac_try) 2>&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest$ac_exeext'
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; }; then
35357 ac_cv_lib_sasl_sasl_client_init=yes
35359 echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35362 ac_cv_lib_sasl_sasl_client_init=no
35364 rm -f conftest.err conftest.$ac_objext \
35365 conftest$ac_exeext conftest.$ac_ext
35366 LIBS=$ac_check_lib_save_LIBS
35368 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35369 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35370 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35371 ol_link_sasl="-lsasl"
35378 if test $ol_link_sasl = no ; then
35379 if test $ol_with_cyrus_sasl != auto ; then
35380 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35381 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35382 { (exit 1); exit 1; }; }
35384 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35385 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35386 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35387 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35388 if test $ol_link_tls = no ; then
35389 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35390 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35394 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35395 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35396 if test "${ol_cv_sasl_compat+set}" = set; then
35397 echo $ECHO_N "(cached) $ECHO_C" >&6
35400 cat >conftest.$ac_ext <<_ACEOF
35403 cat confdefs.h >>conftest.$ac_ext
35404 cat >>conftest.$ac_ext <<_ACEOF
35405 /* end confdefs.h. */
35407 #ifdef HAVE_SASL_SASL_H
35408 #include <sasl/sasl.h>
35413 /* Require 2.1.15+ */
35414 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
35415 char *__sasl_compat = "2.2+ or better okay (we guess)";
35416 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
35417 && SASL_VERSION_STEP >=15
35418 char *__sasl_compat = "2.1.15+ or better okay";
35422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35423 $EGREP "__sasl_compat" >/dev/null 2>&1; then
35424 ol_cv_sasl_compat=yes
35426 ol_cv_sasl_compat=no
35431 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35432 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35434 if test $ol_cv_sasl_compat = no ; then
35436 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35437 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35438 { (exit 1); exit 1; }; }
35442 cat >>confdefs.h <<\_ACEOF
35443 #define HAVE_CYRUS_SASL 1
35446 SASL_LIBS="$ol_link_sasl"
35447 if test $ol_enable_spasswd != no ; then
35448 ol_link_spasswd=yes
35451 ac_save_LIBS="$LIBS"
35452 LIBS="$LIBS $ol_link_sasl"
35453 echo "$as_me:$LINENO: checking for sasl_version" >&5
35454 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35455 if test "${ac_cv_func_sasl_version+set}" = set; then
35456 echo $ECHO_N "(cached) $ECHO_C" >&6
35458 cat >conftest.$ac_ext <<_ACEOF
35461 cat confdefs.h >>conftest.$ac_ext
35462 cat >>conftest.$ac_ext <<_ACEOF
35463 /* end confdefs.h. */
35464 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35466 #define sasl_version innocuous_sasl_version
35468 /* System header to define __stub macros and hopefully few prototypes,
35469 which can conflict with char sasl_version (); below.
35470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35471 <limits.h> exists even on freestanding compilers. */
35474 # include <limits.h>
35476 # include <assert.h>
35479 #undef sasl_version
35481 /* Override any gcc2 internal prototype to avoid an error. */
35486 /* We use char because int might match the return type of a gcc2
35487 builtin and then its argument prototype would still apply. */
35488 char sasl_version ();
35489 /* The GNU C library defines this for functions which it implements
35490 to always fail with ENOSYS. Some functions are actually named
35491 something starting with __ and the normal name is an alias. */
35492 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35495 char (*f) () = sasl_version;
35504 return f != sasl_version;
35509 rm -f conftest.$ac_objext conftest$ac_exeext
35510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35511 (eval $ac_link) 2>conftest.er1
35513 grep -v '^ *+' conftest.er1 >conftest.err
35515 cat conftest.err >&5
35516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); } &&
35518 { ac_try='test -z "$ac_c_werror_flag"
35519 || test ! -s conftest.err'
35520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35521 (eval $ac_try) 2>&5
35523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35524 (exit $ac_status); }; } &&
35525 { ac_try='test -s conftest$ac_exeext'
35526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35527 (eval $ac_try) 2>&5
35529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530 (exit $ac_status); }; }; then
35531 ac_cv_func_sasl_version=yes
35533 echo "$as_me: failed program was:" >&5
35534 sed 's/^/| /' conftest.$ac_ext >&5
35536 ac_cv_func_sasl_version=no
35538 rm -f conftest.err conftest.$ac_objext \
35539 conftest$ac_exeext conftest.$ac_ext
35541 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35542 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35543 if test $ac_cv_func_sasl_version = yes; then
35545 cat >>confdefs.h <<\_ACEOF
35546 #define HAVE_SASL_VERSION 1
35551 LIBS="$ac_save_LIBS"
35557 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35558 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35559 if test $ol_link_tls = no ; then
35560 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35561 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35565 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
35567 if test -r /dev/urandom ; then
35568 dev="/dev/urandom";
35569 elif test -r /idev/urandom ; then
35570 dev="/idev/urandom";
35571 elif test -r /dev/srandom ; then
35572 dev="/dev/srandom";
35573 elif test -r /dev/random ; then
35575 elif test -r /idev/random ; then
35576 dev="/idev/random";
35579 if test $dev != no ; then
35581 cat >>confdefs.h <<_ACEOF
35582 #define URANDOM_DEVICE "$dev"
35589 if test $ol_with_fetch != no ; then
35591 LIBS="-lfetch -lcom_err $LIBS"
35592 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35593 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35594 if test "${ol_cv_lib_fetch+set}" = set; then
35595 echo $ECHO_N "(cached) $ECHO_C" >&6
35598 cat >conftest.$ac_ext <<_ACEOF
35601 cat confdefs.h >>conftest.$ac_ext
35602 cat >>conftest.$ac_ext <<_ACEOF
35603 /* end confdefs.h. */
35605 #include <sys/param.h>
35611 struct url *u = fetchParseURL("file:///");
35616 rm -f conftest.$ac_objext conftest$ac_exeext
35617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35618 (eval $ac_link) 2>conftest.er1
35620 grep -v '^ *+' conftest.er1 >conftest.err
35622 cat conftest.err >&5
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); } &&
35625 { ac_try='test -z "$ac_c_werror_flag"
35626 || test ! -s conftest.err'
35627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35628 (eval $ac_try) 2>&5
35630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631 (exit $ac_status); }; } &&
35632 { ac_try='test -s conftest$ac_exeext'
35633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35634 (eval $ac_try) 2>&5
35636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35637 (exit $ac_status); }; }; then
35638 ol_cv_lib_fetch=yes
35640 echo "$as_me: failed program was:" >&5
35641 sed 's/^/| /' conftest.$ac_ext >&5
35645 rm -f conftest.err conftest.$ac_objext \
35646 conftest$ac_exeext conftest.$ac_ext
35648 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35649 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35651 if test $ol_cv_lib_fetch != no ; then
35652 ol_link_fetch="-lfetch -lcom_err"
35654 cat >>confdefs.h <<\_ACEOF
35655 #define HAVE_FETCH 1
35661 if test $ol_cv_lib_fetch != no ; then
35662 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35663 ol_link_fetch=freebsd
35665 elif test $ol_with_fetch != auto ; then
35666 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35667 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35668 { (exit 1); exit 1; }; }
35672 if test $ol_enable_crypt != no ; then
35674 LIBS="$TLS_LIBS $LIBS"
35676 echo "$as_me:$LINENO: checking for crypt" >&5
35677 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35678 if test "${ac_cv_func_crypt+set}" = set; then
35679 echo $ECHO_N "(cached) $ECHO_C" >&6
35681 cat >conftest.$ac_ext <<_ACEOF
35684 cat confdefs.h >>conftest.$ac_ext
35685 cat >>conftest.$ac_ext <<_ACEOF
35686 /* end confdefs.h. */
35687 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35689 #define crypt innocuous_crypt
35691 /* System header to define __stub macros and hopefully few prototypes,
35692 which can conflict with char crypt (); below.
35693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35694 <limits.h> exists even on freestanding compilers. */
35697 # include <limits.h>
35699 # include <assert.h>
35704 /* Override any gcc2 internal prototype to avoid an error. */
35709 /* We use char because int might match the return type of a gcc2
35710 builtin and then its argument prototype would still apply. */
35712 /* The GNU C library defines this for functions which it implements
35713 to always fail with ENOSYS. Some functions are actually named
35714 something starting with __ and the normal name is an alias. */
35715 #if defined (__stub_crypt) || defined (__stub___crypt)
35718 char (*f) () = crypt;
35732 rm -f conftest.$ac_objext conftest$ac_exeext
35733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35734 (eval $ac_link) 2>conftest.er1
35736 grep -v '^ *+' conftest.er1 >conftest.err
35738 cat conftest.err >&5
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); } &&
35741 { ac_try='test -z "$ac_c_werror_flag"
35742 || test ! -s conftest.err'
35743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744 (eval $ac_try) 2>&5
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); }; } &&
35748 { ac_try='test -s conftest$ac_exeext'
35749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750 (eval $ac_try) 2>&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); }; }; then
35754 ac_cv_func_crypt=yes
35756 echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35759 ac_cv_func_crypt=no
35761 rm -f conftest.err conftest.$ac_objext \
35762 conftest$ac_exeext conftest.$ac_ext
35764 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35765 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35766 if test $ac_cv_func_crypt = yes; then
35771 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35772 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35773 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35774 echo $ECHO_N "(cached) $ECHO_C" >&6
35776 ac_check_lib_save_LIBS=$LIBS
35777 LIBS="-lcrypt $LIBS"
35778 cat >conftest.$ac_ext <<_ACEOF
35781 cat confdefs.h >>conftest.$ac_ext
35782 cat >>conftest.$ac_ext <<_ACEOF
35783 /* end confdefs.h. */
35785 /* Override any gcc2 internal prototype to avoid an error. */
35789 /* We use char because int might match the return type of a gcc2
35790 builtin and then its argument prototype would still apply. */
35800 rm -f conftest.$ac_objext conftest$ac_exeext
35801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35802 (eval $ac_link) 2>conftest.er1
35804 grep -v '^ *+' conftest.er1 >conftest.err
35806 cat conftest.err >&5
35807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 (exit $ac_status); } &&
35809 { ac_try='test -z "$ac_c_werror_flag"
35810 || test ! -s conftest.err'
35811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35812 (eval $ac_try) 2>&5
35814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815 (exit $ac_status); }; } &&
35816 { ac_try='test -s conftest$ac_exeext'
35817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35818 (eval $ac_try) 2>&5
35820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821 (exit $ac_status); }; }; then
35822 ac_cv_lib_crypt_crypt=yes
35824 echo "$as_me: failed program was:" >&5
35825 sed 's/^/| /' conftest.$ac_ext >&5
35827 ac_cv_lib_crypt_crypt=no
35829 rm -f conftest.err conftest.$ac_objext \
35830 conftest$ac_exeext conftest.$ac_ext
35831 LIBS=$ac_check_lib_save_LIBS
35833 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35834 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35835 if test $ac_cv_lib_crypt_crypt = yes; then
35836 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35847 if test $have_crypt = yes ; then
35849 cat >>confdefs.h <<\_ACEOF
35850 #define HAVE_CRYPT 1
35854 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35855 echo "$as_me: WARNING: could not find crypt" >&2;}
35856 if test $ol_enable_crypt = yes ; then
35857 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35858 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35859 { (exit 1); exit 1; }; }
35862 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35863 echo "$as_me: WARNING: disabling crypt support" >&2;}
35868 if test $ol_enable_proctitle != no ; then
35869 echo "$as_me:$LINENO: checking for setproctitle" >&5
35870 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35871 if test "${ac_cv_func_setproctitle+set}" = set; then
35872 echo $ECHO_N "(cached) $ECHO_C" >&6
35874 cat >conftest.$ac_ext <<_ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h. */
35880 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35882 #define setproctitle innocuous_setproctitle
35884 /* System header to define __stub macros and hopefully few prototypes,
35885 which can conflict with char setproctitle (); below.
35886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35887 <limits.h> exists even on freestanding compilers. */
35890 # include <limits.h>
35892 # include <assert.h>
35895 #undef setproctitle
35897 /* Override any gcc2 internal prototype to avoid an error. */
35902 /* We use char because int might match the return type of a gcc2
35903 builtin and then its argument prototype would still apply. */
35904 char setproctitle ();
35905 /* The GNU C library defines this for functions which it implements
35906 to always fail with ENOSYS. Some functions are actually named
35907 something starting with __ and the normal name is an alias. */
35908 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35911 char (*f) () = setproctitle;
35920 return f != setproctitle;
35925 rm -f conftest.$ac_objext conftest$ac_exeext
35926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35927 (eval $ac_link) 2>conftest.er1
35929 grep -v '^ *+' conftest.er1 >conftest.err
35931 cat conftest.err >&5
35932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933 (exit $ac_status); } &&
35934 { ac_try='test -z "$ac_c_werror_flag"
35935 || test ! -s conftest.err'
35936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35937 (eval $ac_try) 2>&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); }; } &&
35941 { ac_try='test -s conftest$ac_exeext'
35942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35943 (eval $ac_try) 2>&5
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); }; }; then
35947 ac_cv_func_setproctitle=yes
35949 echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35952 ac_cv_func_setproctitle=no
35954 rm -f conftest.err conftest.$ac_objext \
35955 conftest$ac_exeext conftest.$ac_ext
35957 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35958 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35959 if test $ac_cv_func_setproctitle = yes; then
35960 have_setproctitle=yes
35963 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35964 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35965 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35966 echo $ECHO_N "(cached) $ECHO_C" >&6
35968 ac_check_lib_save_LIBS=$LIBS
35969 LIBS="-lutil $LIBS"
35970 cat >conftest.$ac_ext <<_ACEOF
35973 cat confdefs.h >>conftest.$ac_ext
35974 cat >>conftest.$ac_ext <<_ACEOF
35975 /* end confdefs.h. */
35977 /* Override any gcc2 internal prototype to avoid an error. */
35981 /* We use char because int might match the return type of a gcc2
35982 builtin and then its argument prototype would still apply. */
35983 char setproctitle ();
35992 rm -f conftest.$ac_objext conftest$ac_exeext
35993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35994 (eval $ac_link) 2>conftest.er1
35996 grep -v '^ *+' conftest.er1 >conftest.err
35998 cat conftest.err >&5
35999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000 (exit $ac_status); } &&
36001 { ac_try='test -z "$ac_c_werror_flag"
36002 || test ! -s conftest.err'
36003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004 (eval $ac_try) 2>&5
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); }; } &&
36008 { ac_try='test -s conftest$ac_exeext'
36009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36010 (eval $ac_try) 2>&5
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); }; }; then
36014 ac_cv_lib_util_setproctitle=yes
36016 echo "$as_me: failed program was:" >&5
36017 sed 's/^/| /' conftest.$ac_ext >&5
36019 ac_cv_lib_util_setproctitle=no
36021 rm -f conftest.err conftest.$ac_objext \
36022 conftest$ac_exeext conftest.$ac_ext
36023 LIBS=$ac_check_lib_save_LIBS
36025 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36026 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
36027 if test $ac_cv_lib_util_setproctitle = yes; then
36028 have_setproctitle=yes
36029 LUTIL_LIBS="$LUTIL_LIBS -lutil"
36031 have_setproctitle=no
36033 "setproctitle.$ac_objext" | \
36034 *" setproctitle.$ac_objext" | \
36035 "setproctitle.$ac_objext "* | \
36036 *" setproctitle.$ac_objext "* ) ;;
36037 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
36040 LIBSRCS="$LIBSRCS setproctitle.c"
36046 if test $have_setproctitle = yes ; then
36048 cat >>confdefs.h <<\_ACEOF
36049 #define HAVE_SETPROCTITLE 1
36055 if test $ol_enable_slp != no ; then
36057 for ac_header in slp.h
36059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36061 echo "$as_me:$LINENO: checking for $ac_header" >&5
36062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36064 echo $ECHO_N "(cached) $ECHO_C" >&6
36066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36069 # Is the header compilable?
36070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36072 cat >conftest.$ac_ext <<_ACEOF
36075 cat confdefs.h >>conftest.$ac_ext
36076 cat >>conftest.$ac_ext <<_ACEOF
36077 /* end confdefs.h. */
36078 $ac_includes_default
36079 #include <$ac_header>
36081 rm -f conftest.$ac_objext
36082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36083 (eval $ac_compile) 2>conftest.er1
36085 grep -v '^ *+' conftest.er1 >conftest.err
36087 cat conftest.err >&5
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); } &&
36090 { ac_try='test -z "$ac_c_werror_flag"
36091 || test ! -s conftest.err'
36092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36093 (eval $ac_try) 2>&5
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); }; } &&
36097 { ac_try='test -s conftest.$ac_objext'
36098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36099 (eval $ac_try) 2>&5
36101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102 (exit $ac_status); }; }; then
36103 ac_header_compiler=yes
36105 echo "$as_me: failed program was:" >&5
36106 sed 's/^/| /' conftest.$ac_ext >&5
36108 ac_header_compiler=no
36110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36112 echo "${ECHO_T}$ac_header_compiler" >&6
36114 # Is the header present?
36115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36117 cat >conftest.$ac_ext <<_ACEOF
36120 cat confdefs.h >>conftest.$ac_ext
36121 cat >>conftest.$ac_ext <<_ACEOF
36122 /* end confdefs.h. */
36123 #include <$ac_header>
36125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36128 grep -v '^ *+' conftest.er1 >conftest.err
36130 cat conftest.err >&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); } >/dev/null; then
36133 if test -s conftest.err; then
36134 ac_cpp_err=$ac_c_preproc_warn_flag
36135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36142 if test -z "$ac_cpp_err"; then
36143 ac_header_preproc=yes
36145 echo "$as_me: failed program was:" >&5
36146 sed 's/^/| /' conftest.$ac_ext >&5
36148 ac_header_preproc=no
36150 rm -f conftest.err conftest.$ac_ext
36151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36152 echo "${ECHO_T}$ac_header_preproc" >&6
36154 # So? What about this header?
36155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36161 ac_header_preproc=yes
36164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36178 ## ------------------------------------------ ##
36179 ## Report this to the AC_PACKAGE_NAME lists. ##
36180 ## ------------------------------------------ ##
36183 sed "s/^/$as_me: WARNING: /" >&2
36186 echo "$as_me:$LINENO: checking for $ac_header" >&5
36187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36189 echo $ECHO_N "(cached) $ECHO_C" >&6
36191 eval "$as_ac_Header=\$ac_header_preproc"
36193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36198 cat >>confdefs.h <<_ACEOF
36199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36207 if test $ac_cv_header_slp_h = yes ; then
36208 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36209 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36210 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36211 echo $ECHO_N "(cached) $ECHO_C" >&6
36213 ac_check_lib_save_LIBS=$LIBS
36215 cat >conftest.$ac_ext <<_ACEOF
36218 cat confdefs.h >>conftest.$ac_ext
36219 cat >>conftest.$ac_ext <<_ACEOF
36220 /* end confdefs.h. */
36222 /* Override any gcc2 internal prototype to avoid an error. */
36226 /* We use char because int might match the return type of a gcc2
36227 builtin and then its argument prototype would still apply. */
36237 rm -f conftest.$ac_objext conftest$ac_exeext
36238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36239 (eval $ac_link) 2>conftest.er1
36241 grep -v '^ *+' conftest.er1 >conftest.err
36243 cat conftest.err >&5
36244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245 (exit $ac_status); } &&
36246 { ac_try='test -z "$ac_c_werror_flag"
36247 || test ! -s conftest.err'
36248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36249 (eval $ac_try) 2>&5
36251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252 (exit $ac_status); }; } &&
36253 { ac_try='test -s conftest$ac_exeext'
36254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36255 (eval $ac_try) 2>&5
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); }; }; then
36259 ac_cv_lib_slp_SLPOpen=yes
36261 echo "$as_me: failed program was:" >&5
36262 sed 's/^/| /' conftest.$ac_ext >&5
36264 ac_cv_lib_slp_SLPOpen=no
36266 rm -f conftest.err conftest.$ac_objext \
36267 conftest$ac_exeext conftest.$ac_ext
36268 LIBS=$ac_check_lib_save_LIBS
36270 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36271 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36272 if test $ac_cv_lib_slp_SLPOpen = yes; then
36278 if test $have_slp = yes ; then
36280 cat >>confdefs.h <<\_ACEOF
36284 SLAPD_SLP_LIBS=-lslp
36287 elif test $ol_enable_slp = yes ; then
36288 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36289 echo "$as_me: error: SLP not found" >&2;}
36290 { (exit 1); exit 1; }; }
36294 if test "$ol_with_multiple_precision" != "no" ; then
36300 for ac_header in openssl/bn.h bn.h
36302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36304 echo "$as_me:$LINENO: checking for $ac_header" >&5
36305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36307 echo $ECHO_N "(cached) $ECHO_C" >&6
36309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36312 # Is the header compilable?
36313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36315 cat >conftest.$ac_ext <<_ACEOF
36318 cat confdefs.h >>conftest.$ac_ext
36319 cat >>conftest.$ac_ext <<_ACEOF
36320 /* end confdefs.h. */
36321 $ac_includes_default
36322 #include <$ac_header>
36324 rm -f conftest.$ac_objext
36325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36326 (eval $ac_compile) 2>conftest.er1
36328 grep -v '^ *+' conftest.er1 >conftest.err
36330 cat conftest.err >&5
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); } &&
36333 { ac_try='test -z "$ac_c_werror_flag"
36334 || test ! -s conftest.err'
36335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336 (eval $ac_try) 2>&5
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); }; } &&
36340 { ac_try='test -s conftest.$ac_objext'
36341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342 (eval $ac_try) 2>&5
36344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345 (exit $ac_status); }; }; then
36346 ac_header_compiler=yes
36348 echo "$as_me: failed program was:" >&5
36349 sed 's/^/| /' conftest.$ac_ext >&5
36351 ac_header_compiler=no
36353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36355 echo "${ECHO_T}$ac_header_compiler" >&6
36357 # Is the header present?
36358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36360 cat >conftest.$ac_ext <<_ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h. */
36366 #include <$ac_header>
36368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36371 grep -v '^ *+' conftest.er1 >conftest.err
36373 cat conftest.err >&5
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); } >/dev/null; then
36376 if test -s conftest.err; then
36377 ac_cpp_err=$ac_c_preproc_warn_flag
36378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36385 if test -z "$ac_cpp_err"; then
36386 ac_header_preproc=yes
36388 echo "$as_me: failed program was:" >&5
36389 sed 's/^/| /' conftest.$ac_ext >&5
36391 ac_header_preproc=no
36393 rm -f conftest.err conftest.$ac_ext
36394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36395 echo "${ECHO_T}$ac_header_preproc" >&6
36397 # So? What about this header?
36398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36404 ac_header_preproc=yes
36407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36421 ## ------------------------------------------ ##
36422 ## Report this to the AC_PACKAGE_NAME lists. ##
36423 ## ------------------------------------------ ##
36426 sed "s/^/$as_me: WARNING: /" >&2
36429 echo "$as_me:$LINENO: checking for $ac_header" >&5
36430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36432 echo $ECHO_N "(cached) $ECHO_C" >&6
36434 eval "$as_ac_Header=\$ac_header_preproc"
36436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36441 cat >>confdefs.h <<_ACEOF
36442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36451 for ac_header in openssl/crypto.h crypto.h
36453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36455 echo "$as_me:$LINENO: checking for $ac_header" >&5
36456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36458 echo $ECHO_N "(cached) $ECHO_C" >&6
36460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36463 # Is the header compilable?
36464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36466 cat >conftest.$ac_ext <<_ACEOF
36469 cat confdefs.h >>conftest.$ac_ext
36470 cat >>conftest.$ac_ext <<_ACEOF
36471 /* end confdefs.h. */
36472 $ac_includes_default
36473 #include <$ac_header>
36475 rm -f conftest.$ac_objext
36476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36477 (eval $ac_compile) 2>conftest.er1
36479 grep -v '^ *+' conftest.er1 >conftest.err
36481 cat conftest.err >&5
36482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483 (exit $ac_status); } &&
36484 { ac_try='test -z "$ac_c_werror_flag"
36485 || test ! -s conftest.err'
36486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487 (eval $ac_try) 2>&5
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); }; } &&
36491 { ac_try='test -s conftest.$ac_objext'
36492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493 (eval $ac_try) 2>&5
36495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496 (exit $ac_status); }; }; then
36497 ac_header_compiler=yes
36499 echo "$as_me: failed program was:" >&5
36500 sed 's/^/| /' conftest.$ac_ext >&5
36502 ac_header_compiler=no
36504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36506 echo "${ECHO_T}$ac_header_compiler" >&6
36508 # Is the header present?
36509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36511 cat >conftest.$ac_ext <<_ACEOF
36514 cat confdefs.h >>conftest.$ac_ext
36515 cat >>conftest.$ac_ext <<_ACEOF
36516 /* end confdefs.h. */
36517 #include <$ac_header>
36519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36522 grep -v '^ *+' conftest.er1 >conftest.err
36524 cat conftest.err >&5
36525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526 (exit $ac_status); } >/dev/null; then
36527 if test -s conftest.err; then
36528 ac_cpp_err=$ac_c_preproc_warn_flag
36529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36536 if test -z "$ac_cpp_err"; then
36537 ac_header_preproc=yes
36539 echo "$as_me: failed program was:" >&5
36540 sed 's/^/| /' conftest.$ac_ext >&5
36542 ac_header_preproc=no
36544 rm -f conftest.err conftest.$ac_ext
36545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36546 echo "${ECHO_T}$ac_header_preproc" >&6
36548 # So? What about this header?
36549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36555 ac_header_preproc=yes
36558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36572 ## ------------------------------------------ ##
36573 ## Report this to the AC_PACKAGE_NAME lists. ##
36574 ## ------------------------------------------ ##
36577 sed "s/^/$as_me: WARNING: /" >&2
36580 echo "$as_me:$LINENO: checking for $ac_header" >&5
36581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36583 echo $ECHO_N "(cached) $ECHO_C" >&6
36585 eval "$as_ac_Header=\$ac_header_preproc"
36587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36592 cat >>confdefs.h <<_ACEOF
36593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36601 for ac_header in gmp.h
36603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36605 echo "$as_me:$LINENO: checking for $ac_header" >&5
36606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36608 echo $ECHO_N "(cached) $ECHO_C" >&6
36610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36613 # Is the header compilable?
36614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36616 cat >conftest.$ac_ext <<_ACEOF
36619 cat confdefs.h >>conftest.$ac_ext
36620 cat >>conftest.$ac_ext <<_ACEOF
36621 /* end confdefs.h. */
36622 $ac_includes_default
36623 #include <$ac_header>
36625 rm -f conftest.$ac_objext
36626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36627 (eval $ac_compile) 2>conftest.er1
36629 grep -v '^ *+' conftest.er1 >conftest.err
36631 cat conftest.err >&5
36632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633 (exit $ac_status); } &&
36634 { ac_try='test -z "$ac_c_werror_flag"
36635 || test ! -s conftest.err'
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; } &&
36641 { ac_try='test -s conftest.$ac_objext'
36642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643 (eval $ac_try) 2>&5
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); }; }; then
36647 ac_header_compiler=yes
36649 echo "$as_me: failed program was:" >&5
36650 sed 's/^/| /' conftest.$ac_ext >&5
36652 ac_header_compiler=no
36654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36656 echo "${ECHO_T}$ac_header_compiler" >&6
36658 # Is the header present?
36659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36661 cat >conftest.$ac_ext <<_ACEOF
36664 cat confdefs.h >>conftest.$ac_ext
36665 cat >>conftest.$ac_ext <<_ACEOF
36666 /* end confdefs.h. */
36667 #include <$ac_header>
36669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36672 grep -v '^ *+' conftest.er1 >conftest.err
36674 cat conftest.err >&5
36675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676 (exit $ac_status); } >/dev/null; then
36677 if test -s conftest.err; then
36678 ac_cpp_err=$ac_c_preproc_warn_flag
36679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36686 if test -z "$ac_cpp_err"; then
36687 ac_header_preproc=yes
36689 echo "$as_me: failed program was:" >&5
36690 sed 's/^/| /' conftest.$ac_ext >&5
36692 ac_header_preproc=no
36694 rm -f conftest.err conftest.$ac_ext
36695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36696 echo "${ECHO_T}$ac_header_preproc" >&6
36698 # So? What about this header?
36699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36705 ac_header_preproc=yes
36708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36722 ## ------------------------------------------ ##
36723 ## Report this to the AC_PACKAGE_NAME lists. ##
36724 ## ------------------------------------------ ##
36727 sed "s/^/$as_me: WARNING: /" >&2
36730 echo "$as_me:$LINENO: checking for $ac_header" >&5
36731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36733 echo $ECHO_N "(cached) $ECHO_C" >&6
36735 eval "$as_ac_Header=\$ac_header_preproc"
36737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36742 cat >>confdefs.h <<_ACEOF
36743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36751 if test "$ol_with_tls" = "found" ; then
36753 ol_have_crypto_h=no
36755 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
36756 test "$ac_cv_header_bn_h" = "yes" ; then
36760 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
36761 test "$ac_cv_header_crypto_h" = "yes" ; then
36762 ol_have_crypto_h=yes
36765 if test "$ol_have_bn_h" = "yes" &&
36766 test "$ol_have_crypto_h" = "yes" ; then
36771 if test $ac_cv_header_gmp_h = yes ; then
36772 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36773 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36774 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36775 echo $ECHO_N "(cached) $ECHO_C" >&6
36777 ac_check_lib_save_LIBS=$LIBS
36779 cat >conftest.$ac_ext <<_ACEOF
36782 cat confdefs.h >>conftest.$ac_ext
36783 cat >>conftest.$ac_ext <<_ACEOF
36784 /* end confdefs.h. */
36786 /* Override any gcc2 internal prototype to avoid an error. */
36790 /* We use char because int might match the return type of a gcc2
36791 builtin and then its argument prototype would still apply. */
36792 char __gmpz_add_ui ();
36801 rm -f conftest.$ac_objext conftest$ac_exeext
36802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36803 (eval $ac_link) 2>conftest.er1
36805 grep -v '^ *+' conftest.er1 >conftest.err
36807 cat conftest.err >&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } &&
36810 { ac_try='test -z "$ac_c_werror_flag"
36811 || test ! -s conftest.err'
36812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813 (eval $ac_try) 2>&5
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; } &&
36817 { ac_try='test -s conftest$ac_exeext'
36818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36819 (eval $ac_try) 2>&5
36821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822 (exit $ac_status); }; }; then
36823 ac_cv_lib_gmp___gmpz_add_ui=yes
36825 echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.$ac_ext >&5
36828 ac_cv_lib_gmp___gmpz_add_ui=no
36830 rm -f conftest.err conftest.$ac_objext \
36831 conftest$ac_exeext conftest.$ac_ext
36832 LIBS=$ac_check_lib_save_LIBS
36834 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36835 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36836 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36842 if test $have_gmp = yes ; then
36847 echo "$as_me:$LINENO: checking for multiple precision support" >&5
36848 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36850 ol_mp_support="none"
36851 case "$ol_with_multiple_precision" in
36853 if test "$ol_have_bignum" = "yes" ; then
36854 ol_mp_support="bignum"
36856 if test "$ol_have_gmp" = "yes" ; then
36857 ol_mp_support="gmp"
36862 if test "$ol_have_bignum" != "yes" ; then
36863 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36864 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36865 { (exit 1); exit 1; }; }
36867 ol_mp_support="bignum"
36870 if test "$ol_have_gmp" != "yes" ; then
36871 { { echo "$as_me:$LINENO: error: GMP not available" >&5
36872 echo "$as_me: error: GMP not available" >&2;}
36873 { (exit 1); exit 1; }; }
36875 ol_mp_support="gmp"
36878 if test "$ol_have_bignum" = "yes" ; then
36879 ol_mp_support="bignum"
36880 elif test "$ol_have_gmp" = "yes" ; then
36881 ol_mp_support="gmp"
36883 { { echo "$as_me:$LINENO: error: not available" >&5
36884 echo "$as_me: error: not available" >&2;}
36885 { (exit 1); exit 1; }; }
36890 case "$ol_mp_support" in
36893 cat >>confdefs.h <<\_ACEOF
36894 #define HAVE_BIGNUM 1
36900 cat >>confdefs.h <<\_ACEOF
36904 SLAPD_GMP_LIBS=-lgmp
36910 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36911 echo "${ECHO_T}$ol_mp_support" >&6
36915 echo "$as_me:$LINENO: checking for mode_t" >&5
36916 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36917 if test "${ac_cv_type_mode_t+set}" = set; then
36918 echo $ECHO_N "(cached) $ECHO_C" >&6
36920 cat >conftest.$ac_ext <<_ACEOF
36923 cat confdefs.h >>conftest.$ac_ext
36924 cat >>conftest.$ac_ext <<_ACEOF
36925 /* end confdefs.h. */
36926 $ac_includes_default
36932 if (sizeof (mode_t))
36938 rm -f conftest.$ac_objext
36939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36940 (eval $ac_compile) 2>conftest.er1
36942 grep -v '^ *+' conftest.er1 >conftest.err
36944 cat conftest.err >&5
36945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946 (exit $ac_status); } &&
36947 { ac_try='test -z "$ac_c_werror_flag"
36948 || test ! -s conftest.err'
36949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36950 (eval $ac_try) 2>&5
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); }; } &&
36954 { ac_try='test -s conftest.$ac_objext'
36955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956 (eval $ac_try) 2>&5
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; }; then
36960 ac_cv_type_mode_t=yes
36962 echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36965 ac_cv_type_mode_t=no
36967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36969 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36970 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36971 if test $ac_cv_type_mode_t = yes; then
36975 cat >>confdefs.h <<_ACEOF
36981 echo "$as_me:$LINENO: checking for off_t" >&5
36982 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36983 if test "${ac_cv_type_off_t+set}" = set; then
36984 echo $ECHO_N "(cached) $ECHO_C" >&6
36986 cat >conftest.$ac_ext <<_ACEOF
36989 cat confdefs.h >>conftest.$ac_ext
36990 cat >>conftest.$ac_ext <<_ACEOF
36991 /* end confdefs.h. */
36992 $ac_includes_default
36998 if (sizeof (off_t))
37004 rm -f conftest.$ac_objext
37005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37006 (eval $ac_compile) 2>conftest.er1
37008 grep -v '^ *+' conftest.er1 >conftest.err
37010 cat conftest.err >&5
37011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012 (exit $ac_status); } &&
37013 { ac_try='test -z "$ac_c_werror_flag"
37014 || test ! -s conftest.err'
37015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37016 (eval $ac_try) 2>&5
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); }; } &&
37020 { ac_try='test -s conftest.$ac_objext'
37021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37022 (eval $ac_try) 2>&5
37024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025 (exit $ac_status); }; }; then
37026 ac_cv_type_off_t=yes
37028 echo "$as_me: failed program was:" >&5
37029 sed 's/^/| /' conftest.$ac_ext >&5
37031 ac_cv_type_off_t=no
37033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37035 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37036 echo "${ECHO_T}$ac_cv_type_off_t" >&6
37037 if test $ac_cv_type_off_t = yes; then
37041 cat >>confdefs.h <<_ACEOF
37047 echo "$as_me:$LINENO: checking for pid_t" >&5
37048 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
37049 if test "${ac_cv_type_pid_t+set}" = set; then
37050 echo $ECHO_N "(cached) $ECHO_C" >&6
37052 cat >conftest.$ac_ext <<_ACEOF
37055 cat confdefs.h >>conftest.$ac_ext
37056 cat >>conftest.$ac_ext <<_ACEOF
37057 /* end confdefs.h. */
37058 $ac_includes_default
37064 if (sizeof (pid_t))
37070 rm -f conftest.$ac_objext
37071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37072 (eval $ac_compile) 2>conftest.er1
37074 grep -v '^ *+' conftest.er1 >conftest.err
37076 cat conftest.err >&5
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); } &&
37079 { ac_try='test -z "$ac_c_werror_flag"
37080 || test ! -s conftest.err'
37081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082 (eval $ac_try) 2>&5
37084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085 (exit $ac_status); }; } &&
37086 { ac_try='test -s conftest.$ac_objext'
37087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088 (eval $ac_try) 2>&5
37090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; }; then
37092 ac_cv_type_pid_t=yes
37094 echo "$as_me: failed program was:" >&5
37095 sed 's/^/| /' conftest.$ac_ext >&5
37097 ac_cv_type_pid_t=no
37099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37101 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37102 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37103 if test $ac_cv_type_pid_t = yes; then
37107 cat >>confdefs.h <<_ACEOF
37113 echo "$as_me:$LINENO: checking for ssize_t" >&5
37114 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37115 if test "${ac_cv_type_ssize_t+set}" = set; then
37116 echo $ECHO_N "(cached) $ECHO_C" >&6
37118 cat >conftest.$ac_ext <<_ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h. */
37124 $ac_includes_default
37130 if (sizeof (ssize_t))
37136 rm -f conftest.$ac_objext
37137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37138 (eval $ac_compile) 2>conftest.er1
37140 grep -v '^ *+' conftest.er1 >conftest.err
37142 cat conftest.err >&5
37143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144 (exit $ac_status); } &&
37145 { ac_try='test -z "$ac_c_werror_flag"
37146 || test ! -s conftest.err'
37147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37148 (eval $ac_try) 2>&5
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); }; } &&
37152 { ac_try='test -s conftest.$ac_objext'
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; }; then
37158 ac_cv_type_ssize_t=yes
37160 echo "$as_me: failed program was:" >&5
37161 sed 's/^/| /' conftest.$ac_ext >&5
37163 ac_cv_type_ssize_t=no
37165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37167 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37168 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37169 if test $ac_cv_type_ssize_t = yes; then
37173 cat >>confdefs.h <<_ACEOF
37174 #define ssize_t signed int
37179 echo "$as_me:$LINENO: checking for caddr_t" >&5
37180 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37181 if test "${ac_cv_type_caddr_t+set}" = set; then
37182 echo $ECHO_N "(cached) $ECHO_C" >&6
37184 cat >conftest.$ac_ext <<_ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h. */
37190 $ac_includes_default
37196 if (sizeof (caddr_t))
37202 rm -f conftest.$ac_objext
37203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37204 (eval $ac_compile) 2>conftest.er1
37206 grep -v '^ *+' conftest.er1 >conftest.err
37208 cat conftest.err >&5
37209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210 (exit $ac_status); } &&
37211 { ac_try='test -z "$ac_c_werror_flag"
37212 || test ! -s conftest.err'
37213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37214 (eval $ac_try) 2>&5
37216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217 (exit $ac_status); }; } &&
37218 { ac_try='test -s conftest.$ac_objext'
37219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220 (eval $ac_try) 2>&5
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); }; }; then
37224 ac_cv_type_caddr_t=yes
37226 echo "$as_me: failed program was:" >&5
37227 sed 's/^/| /' conftest.$ac_ext >&5
37229 ac_cv_type_caddr_t=no
37231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37233 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37234 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37235 if test $ac_cv_type_caddr_t = yes; then
37239 cat >>confdefs.h <<_ACEOF
37240 #define caddr_t char *
37245 echo "$as_me:$LINENO: checking for size_t" >&5
37246 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37247 if test "${ac_cv_type_size_t+set}" = set; then
37248 echo $ECHO_N "(cached) $ECHO_C" >&6
37250 cat >conftest.$ac_ext <<_ACEOF
37253 cat confdefs.h >>conftest.$ac_ext
37254 cat >>conftest.$ac_ext <<_ACEOF
37255 /* end confdefs.h. */
37256 $ac_includes_default
37262 if (sizeof (size_t))
37268 rm -f conftest.$ac_objext
37269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37270 (eval $ac_compile) 2>conftest.er1
37272 grep -v '^ *+' conftest.er1 >conftest.err
37274 cat conftest.err >&5
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); } &&
37277 { ac_try='test -z "$ac_c_werror_flag"
37278 || test ! -s conftest.err'
37279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37280 (eval $ac_try) 2>&5
37282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283 (exit $ac_status); }; } &&
37284 { ac_try='test -s conftest.$ac_objext'
37285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37286 (eval $ac_try) 2>&5
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); }; }; then
37290 ac_cv_type_size_t=yes
37292 echo "$as_me: failed program was:" >&5
37293 sed 's/^/| /' conftest.$ac_ext >&5
37295 ac_cv_type_size_t=no
37297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37299 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37300 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37301 if test $ac_cv_type_size_t = yes; then
37305 cat >>confdefs.h <<_ACEOF
37306 #define size_t unsigned
37312 echo "$as_me:$LINENO: checking for long long" >&5
37313 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37314 if test "${ac_cv_type_long_long+set}" = set; then
37315 echo $ECHO_N "(cached) $ECHO_C" >&6
37317 cat >conftest.$ac_ext <<_ACEOF
37320 cat confdefs.h >>conftest.$ac_ext
37321 cat >>conftest.$ac_ext <<_ACEOF
37322 /* end confdefs.h. */
37323 $ac_includes_default
37327 if ((long long *) 0)
37329 if (sizeof (long long))
37335 rm -f conftest.$ac_objext
37336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37337 (eval $ac_compile) 2>conftest.er1
37339 grep -v '^ *+' conftest.er1 >conftest.err
37341 cat conftest.err >&5
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); } &&
37344 { ac_try='test -z "$ac_c_werror_flag"
37345 || test ! -s conftest.err'
37346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37347 (eval $ac_try) 2>&5
37349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350 (exit $ac_status); }; } &&
37351 { ac_try='test -s conftest.$ac_objext'
37352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353 (eval $ac_try) 2>&5
37355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356 (exit $ac_status); }; }; then
37357 ac_cv_type_long_long=yes
37359 echo "$as_me: failed program was:" >&5
37360 sed 's/^/| /' conftest.$ac_ext >&5
37362 ac_cv_type_long_long=no
37364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37366 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37367 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37368 if test $ac_cv_type_long_long = yes; then
37370 cat >>confdefs.h <<_ACEOF
37371 #define HAVE_LONG_LONG 1
37377 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37378 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37379 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37380 echo $ECHO_N "(cached) $ECHO_C" >&6
37382 cat >conftest.$ac_ext <<_ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37388 $ac_includes_default
37392 if ((ptrdiff_t *) 0)
37394 if (sizeof (ptrdiff_t))
37400 rm -f conftest.$ac_objext
37401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37402 (eval $ac_compile) 2>conftest.er1
37404 grep -v '^ *+' conftest.er1 >conftest.err
37406 cat conftest.err >&5
37407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408 (exit $ac_status); } &&
37409 { ac_try='test -z "$ac_c_werror_flag"
37410 || test ! -s conftest.err'
37411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37412 (eval $ac_try) 2>&5
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); }; } &&
37416 { ac_try='test -s conftest.$ac_objext'
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; }; then
37422 ac_cv_type_ptrdiff_t=yes
37424 echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37427 ac_cv_type_ptrdiff_t=no
37429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37431 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37432 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37433 if test $ac_cv_type_ptrdiff_t = yes; then
37435 cat >>confdefs.h <<_ACEOF
37436 #define HAVE_PTRDIFF_T 1
37443 echo "$as_me:$LINENO: checking for socklen_t" >&5
37444 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37445 if test "${ac_cv_type_socklen_t+set}" = set; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37448 cat >conftest.$ac_ext <<_ACEOF
37451 cat confdefs.h >>conftest.$ac_ext
37452 cat >>conftest.$ac_ext <<_ACEOF
37453 /* end confdefs.h. */
37454 $ac_includes_default
37455 #ifdef HAVE_SYS_SOCKET_H
37456 #include <sys/socket.h>
37463 if ((socklen_t *) 0)
37465 if (sizeof (socklen_t))
37471 rm -f conftest.$ac_objext
37472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37473 (eval $ac_compile) 2>conftest.er1
37475 grep -v '^ *+' conftest.er1 >conftest.err
37477 cat conftest.err >&5
37478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479 (exit $ac_status); } &&
37480 { ac_try='test -z "$ac_c_werror_flag"
37481 || test ! -s conftest.err'
37482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37483 (eval $ac_try) 2>&5
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); }; } &&
37487 { ac_try='test -s conftest.$ac_objext'
37488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37489 (eval $ac_try) 2>&5
37491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37492 (exit $ac_status); }; }; then
37493 ac_cv_type_socklen_t=yes
37495 echo "$as_me: failed program was:" >&5
37496 sed 's/^/| /' conftest.$ac_ext >&5
37498 ac_cv_type_socklen_t=no
37500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37502 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37503 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37504 if test $ac_cv_type_socklen_t = yes; then
37508 cat >>confdefs.h <<_ACEOF
37509 #define socklen_t int
37515 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37516 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37517 if test "${ac_cv_type_signal+set}" = set; then
37518 echo $ECHO_N "(cached) $ECHO_C" >&6
37520 cat >conftest.$ac_ext <<_ACEOF
37523 cat confdefs.h >>conftest.$ac_ext
37524 cat >>conftest.$ac_ext <<_ACEOF
37525 /* end confdefs.h. */
37526 #include <sys/types.h>
37527 #include <signal.h>
37532 extern "C" void (*signal (int, void (*)(int)))(int);
37534 void (*signal ()) ();
37545 rm -f conftest.$ac_objext
37546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37547 (eval $ac_compile) 2>conftest.er1
37549 grep -v '^ *+' conftest.er1 >conftest.err
37551 cat conftest.err >&5
37552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553 (exit $ac_status); } &&
37554 { ac_try='test -z "$ac_c_werror_flag"
37555 || test ! -s conftest.err'
37556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37557 (eval $ac_try) 2>&5
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); }; } &&
37561 { ac_try='test -s conftest.$ac_objext'
37562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37563 (eval $ac_try) 2>&5
37565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566 (exit $ac_status); }; }; then
37567 ac_cv_type_signal=void
37569 echo "$as_me: failed program was:" >&5
37570 sed 's/^/| /' conftest.$ac_ext >&5
37572 ac_cv_type_signal=int
37574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37576 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37577 echo "${ECHO_T}$ac_cv_type_signal" >&6
37579 cat >>confdefs.h <<_ACEOF
37580 #define RETSIGTYPE $ac_cv_type_signal
37585 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37586 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37587 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37588 echo $ECHO_N "(cached) $ECHO_C" >&6
37590 cat >conftest.$ac_ext <<_ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h. */
37596 $ac_includes_default
37597 #include <signal.h>
37603 if ((sig_atomic_t *) 0)
37605 if (sizeof (sig_atomic_t))
37611 rm -f conftest.$ac_objext
37612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37613 (eval $ac_compile) 2>conftest.er1
37615 grep -v '^ *+' conftest.er1 >conftest.err
37617 cat conftest.err >&5
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); } &&
37620 { ac_try='test -z "$ac_c_werror_flag"
37621 || test ! -s conftest.err'
37622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37623 (eval $ac_try) 2>&5
37625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626 (exit $ac_status); }; } &&
37627 { ac_try='test -s conftest.$ac_objext'
37628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37629 (eval $ac_try) 2>&5
37631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632 (exit $ac_status); }; }; then
37633 ac_cv_type_sig_atomic_t=yes
37635 echo "$as_me: failed program was:" >&5
37636 sed 's/^/| /' conftest.$ac_ext >&5
37638 ac_cv_type_sig_atomic_t=no
37640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37642 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37643 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37644 if test $ac_cv_type_sig_atomic_t = yes; then
37648 cat >>confdefs.h <<_ACEOF
37649 #define sig_atomic_t int
37655 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37656 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37657 if test "${ac_cv_type_uid_t+set}" = set; then
37658 echo $ECHO_N "(cached) $ECHO_C" >&6
37660 cat >conftest.$ac_ext <<_ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h. */
37666 #include <sys/types.h>
37669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37670 $EGREP "uid_t" >/dev/null 2>&1; then
37671 ac_cv_type_uid_t=yes
37673 ac_cv_type_uid_t=no
37678 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37679 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37680 if test $ac_cv_type_uid_t = no; then
37682 cat >>confdefs.h <<\_ACEOF
37687 cat >>confdefs.h <<\_ACEOF
37694 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37695 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37696 if test "${ac_cv_header_time+set}" = set; then
37697 echo $ECHO_N "(cached) $ECHO_C" >&6
37699 cat >conftest.$ac_ext <<_ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h. */
37705 #include <sys/types.h>
37706 #include <sys/time.h>
37712 if ((struct tm *) 0)
37718 rm -f conftest.$ac_objext
37719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37720 (eval $ac_compile) 2>conftest.er1
37722 grep -v '^ *+' conftest.er1 >conftest.err
37724 cat conftest.err >&5
37725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726 (exit $ac_status); } &&
37727 { ac_try='test -z "$ac_c_werror_flag"
37728 || test ! -s conftest.err'
37729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37730 (eval $ac_try) 2>&5
37732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733 (exit $ac_status); }; } &&
37734 { ac_try='test -s conftest.$ac_objext'
37735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736 (eval $ac_try) 2>&5
37738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739 (exit $ac_status); }; }; then
37740 ac_cv_header_time=yes
37742 echo "$as_me: failed program was:" >&5
37743 sed 's/^/| /' conftest.$ac_ext >&5
37745 ac_cv_header_time=no
37747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37749 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37750 echo "${ECHO_T}$ac_cv_header_time" >&6
37751 if test $ac_cv_header_time = yes; then
37753 cat >>confdefs.h <<\_ACEOF
37754 #define TIME_WITH_SYS_TIME 1
37759 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37760 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37761 if test "${ac_cv_struct_tm+set}" = set; then
37762 echo $ECHO_N "(cached) $ECHO_C" >&6
37764 cat >conftest.$ac_ext <<_ACEOF
37767 cat confdefs.h >>conftest.$ac_ext
37768 cat >>conftest.$ac_ext <<_ACEOF
37769 /* end confdefs.h. */
37770 #include <sys/types.h>
37776 struct tm *tp; tp->tm_sec;
37781 rm -f conftest.$ac_objext
37782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37783 (eval $ac_compile) 2>conftest.er1
37785 grep -v '^ *+' conftest.er1 >conftest.err
37787 cat conftest.err >&5
37788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); } &&
37790 { ac_try='test -z "$ac_c_werror_flag"
37791 || test ! -s conftest.err'
37792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37793 (eval $ac_try) 2>&5
37795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796 (exit $ac_status); }; } &&
37797 { ac_try='test -s conftest.$ac_objext'
37798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799 (eval $ac_try) 2>&5
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); }; }; then
37803 ac_cv_struct_tm=time.h
37805 echo "$as_me: failed program was:" >&5
37806 sed 's/^/| /' conftest.$ac_ext >&5
37808 ac_cv_struct_tm=sys/time.h
37810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37812 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37813 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37814 if test $ac_cv_struct_tm = sys/time.h; then
37816 cat >>confdefs.h <<\_ACEOF
37817 #define TM_IN_SYS_TIME 1
37822 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37823 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37824 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37825 echo $ECHO_N "(cached) $ECHO_C" >&6
37827 cat >conftest.$ac_ext <<_ACEOF
37830 cat confdefs.h >>conftest.$ac_ext
37831 cat >>conftest.$ac_ext <<_ACEOF
37832 /* end confdefs.h. */
37833 $ac_includes_default
37837 static struct stat ac_aggr;
37838 if (ac_aggr.st_blksize)
37844 rm -f conftest.$ac_objext
37845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37846 (eval $ac_compile) 2>conftest.er1
37848 grep -v '^ *+' conftest.er1 >conftest.err
37850 cat conftest.err >&5
37851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852 (exit $ac_status); } &&
37853 { ac_try='test -z "$ac_c_werror_flag"
37854 || test ! -s conftest.err'
37855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37856 (eval $ac_try) 2>&5
37858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859 (exit $ac_status); }; } &&
37860 { ac_try='test -s conftest.$ac_objext'
37861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37862 (eval $ac_try) 2>&5
37864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865 (exit $ac_status); }; }; then
37866 ac_cv_member_struct_stat_st_blksize=yes
37868 echo "$as_me: failed program was:" >&5
37869 sed 's/^/| /' conftest.$ac_ext >&5
37871 cat >conftest.$ac_ext <<_ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h. */
37877 $ac_includes_default
37881 static struct stat ac_aggr;
37882 if (sizeof ac_aggr.st_blksize)
37888 rm -f conftest.$ac_objext
37889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37890 (eval $ac_compile) 2>conftest.er1
37892 grep -v '^ *+' conftest.er1 >conftest.err
37894 cat conftest.err >&5
37895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896 (exit $ac_status); } &&
37897 { ac_try='test -z "$ac_c_werror_flag"
37898 || test ! -s conftest.err'
37899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900 (eval $ac_try) 2>&5
37902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903 (exit $ac_status); }; } &&
37904 { ac_try='test -s conftest.$ac_objext'
37905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906 (eval $ac_try) 2>&5
37908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909 (exit $ac_status); }; }; then
37910 ac_cv_member_struct_stat_st_blksize=yes
37912 echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37915 ac_cv_member_struct_stat_st_blksize=no
37917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37921 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37922 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37923 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37925 cat >>confdefs.h <<_ACEOF
37926 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37932 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37933 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37934 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37935 echo $ECHO_N "(cached) $ECHO_C" >&6
37937 cat >conftest.$ac_ext <<_ACEOF
37940 cat confdefs.h >>conftest.$ac_ext
37941 cat >>conftest.$ac_ext <<_ACEOF
37942 /* end confdefs.h. */
37943 $ac_includes_default
37949 static struct passwd ac_aggr;
37950 if (ac_aggr.pw_gecos)
37956 rm -f conftest.$ac_objext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37958 (eval $ac_compile) 2>conftest.er1
37960 grep -v '^ *+' conftest.er1 >conftest.err
37962 cat conftest.err >&5
37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964 (exit $ac_status); } &&
37965 { ac_try='test -z "$ac_c_werror_flag"
37966 || test ! -s conftest.err'
37967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968 (eval $ac_try) 2>&5
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); }; } &&
37972 { ac_try='test -s conftest.$ac_objext'
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; }; then
37978 ac_cv_member_struct_passwd_pw_gecos=yes
37980 echo "$as_me: failed program was:" >&5
37981 sed 's/^/| /' conftest.$ac_ext >&5
37983 cat >conftest.$ac_ext <<_ACEOF
37986 cat confdefs.h >>conftest.$ac_ext
37987 cat >>conftest.$ac_ext <<_ACEOF
37988 /* end confdefs.h. */
37989 $ac_includes_default
37995 static struct passwd ac_aggr;
37996 if (sizeof ac_aggr.pw_gecos)
38002 rm -f conftest.$ac_objext
38003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38004 (eval $ac_compile) 2>conftest.er1
38006 grep -v '^ *+' conftest.er1 >conftest.err
38008 cat conftest.err >&5
38009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010 (exit $ac_status); } &&
38011 { ac_try='test -z "$ac_c_werror_flag"
38012 || test ! -s conftest.err'
38013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38014 (eval $ac_try) 2>&5
38016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017 (exit $ac_status); }; } &&
38018 { ac_try='test -s conftest.$ac_objext'
38019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020 (eval $ac_try) 2>&5
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); }; }; then
38024 ac_cv_member_struct_passwd_pw_gecos=yes
38026 echo "$as_me: failed program was:" >&5
38027 sed 's/^/| /' conftest.$ac_ext >&5
38029 ac_cv_member_struct_passwd_pw_gecos=no
38031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38035 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38036 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
38037 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38039 cat >>confdefs.h <<_ACEOF
38040 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38046 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38047 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
38048 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38049 echo $ECHO_N "(cached) $ECHO_C" >&6
38051 cat >conftest.$ac_ext <<_ACEOF
38054 cat confdefs.h >>conftest.$ac_ext
38055 cat >>conftest.$ac_ext <<_ACEOF
38056 /* end confdefs.h. */
38057 $ac_includes_default
38063 static struct passwd ac_aggr;
38064 if (ac_aggr.pw_passwd)
38070 rm -f conftest.$ac_objext
38071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38072 (eval $ac_compile) 2>conftest.er1
38074 grep -v '^ *+' conftest.er1 >conftest.err
38076 cat conftest.err >&5
38077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); } &&
38079 { ac_try='test -z "$ac_c_werror_flag"
38080 || test ! -s conftest.err'
38081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38082 (eval $ac_try) 2>&5
38084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085 (exit $ac_status); }; } &&
38086 { ac_try='test -s conftest.$ac_objext'
38087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088 (eval $ac_try) 2>&5
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); }; }; then
38092 ac_cv_member_struct_passwd_pw_passwd=yes
38094 echo "$as_me: failed program was:" >&5
38095 sed 's/^/| /' conftest.$ac_ext >&5
38097 cat >conftest.$ac_ext <<_ACEOF
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h. */
38103 $ac_includes_default
38109 static struct passwd ac_aggr;
38110 if (sizeof ac_aggr.pw_passwd)
38116 rm -f conftest.$ac_objext
38117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38118 (eval $ac_compile) 2>conftest.er1
38120 grep -v '^ *+' conftest.er1 >conftest.err
38122 cat conftest.err >&5
38123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124 (exit $ac_status); } &&
38125 { ac_try='test -z "$ac_c_werror_flag"
38126 || test ! -s conftest.err'
38127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38128 (eval $ac_try) 2>&5
38130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131 (exit $ac_status); }; } &&
38132 { ac_try='test -s conftest.$ac_objext'
38133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38134 (eval $ac_try) 2>&5
38136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); }; }; then
38138 ac_cv_member_struct_passwd_pw_passwd=yes
38140 echo "$as_me: failed program was:" >&5
38141 sed 's/^/| /' conftest.$ac_ext >&5
38143 ac_cv_member_struct_passwd_pw_passwd=no
38145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38149 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38150 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38151 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38153 cat >>confdefs.h <<_ACEOF
38154 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38161 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38162 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38163 if test "${ol_cv_c_upper_lower+set}" = set; then
38164 echo $ECHO_N "(cached) $ECHO_C" >&6
38167 if test "$cross_compiling" = yes; then
38168 ol_cv_c_upper_lower=safe
38170 cat >conftest.$ac_ext <<_ACEOF
38173 cat confdefs.h >>conftest.$ac_ext
38174 cat >>conftest.$ac_ext <<_ACEOF
38175 /* end confdefs.h. */
38180 if ('C' == toupper('C'))
38186 rm -f conftest$ac_exeext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38188 (eval $ac_link) 2>&5
38190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38193 (eval $ac_try) 2>&5
38195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196 (exit $ac_status); }; }; then
38197 ol_cv_c_upper_lower=no
38199 echo "$as_me: program exited with status $ac_status" >&5
38200 echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38203 ( exit $ac_status )
38204 ol_cv_c_upper_lower=yes
38206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38209 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38210 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38211 if test $ol_cv_c_upper_lower != no ; then
38213 cat >>confdefs.h <<\_ACEOF
38214 #define C_UPPER_LOWER 1
38219 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38220 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38221 if test "${ac_cv_c_const+set}" = set; then
38222 echo $ECHO_N "(cached) $ECHO_C" >&6
38224 cat >conftest.$ac_ext <<_ACEOF
38227 cat confdefs.h >>conftest.$ac_ext
38228 cat >>conftest.$ac_ext <<_ACEOF
38229 /* end confdefs.h. */
38234 /* FIXME: Include the comments suggested by Paul. */
38235 #ifndef __cplusplus
38236 /* Ultrix mips cc rejects this. */
38237 typedef int charset[2];
38239 /* SunOS 4.1.1 cc rejects this. */
38240 char const *const *ccp;
38242 /* NEC SVR4.0.2 mips cc rejects this. */
38243 struct point {int x, y;};
38244 static struct point const zero = {0,0};
38245 /* AIX XL C 1.02.0.0 rejects this.
38246 It does not let you subtract one const X* pointer from another in
38247 an arm of an if-expression whose if-part is not a constant
38249 const char *g = "string";
38250 ccp = &g + (g ? g-g : 0);
38251 /* HPUX 7.0 cc rejects these. */
38254 ccp = (char const *const *) p;
38255 { /* SCO 3.2v4 cc rejects this. */
38257 char const *s = 0 ? (char *) 0 : (char const *) 0;
38261 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38262 int x[] = {25, 17};
38263 const int *foo = &x[0];
38266 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38267 typedef const int *iptr;
38271 { /* AIX XL C 1.02.0.0 rejects this saying
38272 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38273 struct s { int j; const int *ap[3]; };
38274 struct s *b; b->j = 5;
38276 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38277 const int foo = 10;
38285 rm -f conftest.$ac_objext
38286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38287 (eval $ac_compile) 2>conftest.er1
38289 grep -v '^ *+' conftest.er1 >conftest.err
38291 cat conftest.err >&5
38292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293 (exit $ac_status); } &&
38294 { ac_try='test -z "$ac_c_werror_flag"
38295 || test ! -s conftest.err'
38296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38297 (eval $ac_try) 2>&5
38299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38300 (exit $ac_status); }; } &&
38301 { ac_try='test -s conftest.$ac_objext'
38302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38303 (eval $ac_try) 2>&5
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); }; }; then
38309 echo "$as_me: failed program was:" >&5
38310 sed 's/^/| /' conftest.$ac_ext >&5
38314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38316 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38317 echo "${ECHO_T}$ac_cv_c_const" >&6
38318 if test $ac_cv_c_const = no; then
38320 cat >>confdefs.h <<\_ACEOF
38326 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38327 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38328 if test "${ol_cv_c_volatile+set}" = set; then
38329 echo $ECHO_N "(cached) $ECHO_C" >&6
38331 cat >conftest.$ac_ext <<_ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h. */
38341 volatile int a; int * volatile b = x ? &y : &z;
38342 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38348 rm -f conftest.$ac_objext
38349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38350 (eval $ac_compile) 2>conftest.er1
38352 grep -v '^ *+' conftest.er1 >conftest.err
38354 cat conftest.err >&5
38355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356 (exit $ac_status); } &&
38357 { ac_try='test -z "$ac_c_werror_flag"
38358 || test ! -s conftest.err'
38359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38360 (eval $ac_try) 2>&5
38362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363 (exit $ac_status); }; } &&
38364 { ac_try='test -s conftest.$ac_objext'
38365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38366 (eval $ac_try) 2>&5
38368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38369 (exit $ac_status); }; }; then
38370 ol_cv_c_volatile=yes
38372 echo "$as_me: failed program was:" >&5
38373 sed 's/^/| /' conftest.$ac_ext >&5
38375 ol_cv_c_volatile=no
38377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38379 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38380 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38381 if test $ol_cv_c_volatile = yes; then
38385 cat >>confdefs.h <<\_ACEOF
38392 if test $cross_compiling = yes ; then
38393 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38394 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38396 cat >>confdefs.h <<\_ACEOF
38397 #define CROSS_COMPILING 1
38401 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38402 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38403 if test "${ac_cv_c_bigendian+set}" = set; then
38404 echo $ECHO_N "(cached) $ECHO_C" >&6
38406 # See if sys/param.h defines the BYTE_ORDER macro.
38407 cat >conftest.$ac_ext <<_ACEOF
38410 cat confdefs.h >>conftest.$ac_ext
38411 cat >>conftest.$ac_ext <<_ACEOF
38412 /* end confdefs.h. */
38413 #include <sys/types.h>
38414 #include <sys/param.h>
38419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38420 bogus endian macros
38427 rm -f conftest.$ac_objext
38428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38429 (eval $ac_compile) 2>conftest.er1
38431 grep -v '^ *+' conftest.er1 >conftest.err
38433 cat conftest.err >&5
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); } &&
38436 { ac_try='test -z "$ac_c_werror_flag"
38437 || test ! -s conftest.err'
38438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38439 (eval $ac_try) 2>&5
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); }; } &&
38443 { ac_try='test -s conftest.$ac_objext'
38444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38445 (eval $ac_try) 2>&5
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); }; }; then
38449 # It does; now see whether it defined to BIG_ENDIAN or not.
38450 cat >conftest.$ac_ext <<_ACEOF
38453 cat confdefs.h >>conftest.$ac_ext
38454 cat >>conftest.$ac_ext <<_ACEOF
38455 /* end confdefs.h. */
38456 #include <sys/types.h>
38457 #include <sys/param.h>
38462 #if BYTE_ORDER != BIG_ENDIAN
38470 rm -f conftest.$ac_objext
38471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38472 (eval $ac_compile) 2>conftest.er1
38474 grep -v '^ *+' conftest.er1 >conftest.err
38476 cat conftest.err >&5
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); } &&
38479 { ac_try='test -z "$ac_c_werror_flag"
38480 || test ! -s conftest.err'
38481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38482 (eval $ac_try) 2>&5
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); }; } &&
38486 { ac_try='test -s conftest.$ac_objext'
38487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38488 (eval $ac_try) 2>&5
38490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38491 (exit $ac_status); }; }; then
38492 ac_cv_c_bigendian=yes
38494 echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38497 ac_cv_c_bigendian=no
38499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38501 echo "$as_me: failed program was:" >&5
38502 sed 's/^/| /' conftest.$ac_ext >&5
38504 # It does not; compile a test program.
38505 if test "$cross_compiling" = yes; then
38506 # try to guess the endianness by grepping values into an object file
38507 ac_cv_c_bigendian=unknown
38508 cat >conftest.$ac_ext <<_ACEOF
38511 cat confdefs.h >>conftest.$ac_ext
38512 cat >>conftest.$ac_ext <<_ACEOF
38513 /* end confdefs.h. */
38514 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38515 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38516 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38517 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38518 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38519 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38523 _ascii (); _ebcdic ();
38528 rm -f conftest.$ac_objext
38529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38530 (eval $ac_compile) 2>conftest.er1
38532 grep -v '^ *+' conftest.er1 >conftest.err
38534 cat conftest.err >&5
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); } &&
38537 { ac_try='test -z "$ac_c_werror_flag"
38538 || test ! -s conftest.err'
38539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38540 (eval $ac_try) 2>&5
38542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38543 (exit $ac_status); }; } &&
38544 { ac_try='test -s conftest.$ac_objext'
38545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38546 (eval $ac_try) 2>&5
38548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549 (exit $ac_status); }; }; then
38550 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38551 ac_cv_c_bigendian=yes
38553 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38554 if test "$ac_cv_c_bigendian" = unknown; then
38555 ac_cv_c_bigendian=no
38557 # finding both strings is unlikely to happen, but who knows?
38558 ac_cv_c_bigendian=unknown
38562 echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38568 cat >conftest.$ac_ext <<_ACEOF
38571 cat confdefs.h >>conftest.$ac_ext
38572 cat >>conftest.$ac_ext <<_ACEOF
38573 /* end confdefs.h. */
38577 /* Are we little or big endian? From Harbison&Steele. */
38581 char c[sizeof (long)];
38584 exit (u.c[sizeof (long) - 1] == 1);
38587 rm -f conftest$ac_exeext
38588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38589 (eval $ac_link) 2>&5
38591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38594 (eval $ac_try) 2>&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); }; }; then
38598 ac_cv_c_bigendian=no
38600 echo "$as_me: program exited with status $ac_status" >&5
38601 echo "$as_me: failed program was:" >&5
38602 sed 's/^/| /' conftest.$ac_ext >&5
38604 ( exit $ac_status )
38605 ac_cv_c_bigendian=yes
38607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38612 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38613 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38614 case $ac_cv_c_bigendian in
38617 cat >>confdefs.h <<\_ACEOF
38618 #define WORDS_BIGENDIAN 1
38624 { { echo "$as_me:$LINENO: error: unknown endianness
38625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38626 echo "$as_me: error: unknown endianness
38627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38628 { (exit 1); exit 1; }; } ;;
38633 echo "$as_me:$LINENO: checking for short" >&5
38634 echo $ECHO_N "checking for short... $ECHO_C" >&6
38635 if test "${ac_cv_type_short+set}" = set; then
38636 echo $ECHO_N "(cached) $ECHO_C" >&6
38638 cat >conftest.$ac_ext <<_ACEOF
38641 cat confdefs.h >>conftest.$ac_ext
38642 cat >>conftest.$ac_ext <<_ACEOF
38643 /* end confdefs.h. */
38644 $ac_includes_default
38650 if (sizeof (short))
38656 rm -f conftest.$ac_objext
38657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38658 (eval $ac_compile) 2>conftest.er1
38660 grep -v '^ *+' conftest.er1 >conftest.err
38662 cat conftest.err >&5
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); } &&
38665 { ac_try='test -z "$ac_c_werror_flag"
38666 || test ! -s conftest.err'
38667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668 (eval $ac_try) 2>&5
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); }; } &&
38672 { ac_try='test -s conftest.$ac_objext'
38673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674 (eval $ac_try) 2>&5
38676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); }; }; then
38678 ac_cv_type_short=yes
38680 echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38683 ac_cv_type_short=no
38685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38687 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38688 echo "${ECHO_T}$ac_cv_type_short" >&6
38690 echo "$as_me:$LINENO: checking size of short" >&5
38691 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38692 if test "${ac_cv_sizeof_short+set}" = set; then
38693 echo $ECHO_N "(cached) $ECHO_C" >&6
38695 if test "$ac_cv_type_short" = yes; then
38696 # The cast to unsigned long works around a bug in the HP C Compiler
38697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38699 # This bug is HP SR number 8606223364.
38700 if test "$cross_compiling" = yes; then
38701 # Depending upon the size, compute the lo and hi bounds.
38702 cat >conftest.$ac_ext <<_ACEOF
38705 cat confdefs.h >>conftest.$ac_ext
38706 cat >>conftest.$ac_ext <<_ACEOF
38707 /* end confdefs.h. */
38708 $ac_includes_default
38712 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38719 rm -f conftest.$ac_objext
38720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38721 (eval $ac_compile) 2>conftest.er1
38723 grep -v '^ *+' conftest.er1 >conftest.err
38725 cat conftest.err >&5
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); } &&
38728 { ac_try='test -z "$ac_c_werror_flag"
38729 || test ! -s conftest.err'
38730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38731 (eval $ac_try) 2>&5
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); }; } &&
38735 { ac_try='test -s conftest.$ac_objext'
38736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38737 (eval $ac_try) 2>&5
38739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740 (exit $ac_status); }; }; then
38743 cat >conftest.$ac_ext <<_ACEOF
38746 cat confdefs.h >>conftest.$ac_ext
38747 cat >>conftest.$ac_ext <<_ACEOF
38748 /* end confdefs.h. */
38749 $ac_includes_default
38753 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38760 rm -f conftest.$ac_objext
38761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38762 (eval $ac_compile) 2>conftest.er1
38764 grep -v '^ *+' conftest.er1 >conftest.err
38766 cat conftest.err >&5
38767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768 (exit $ac_status); } &&
38769 { ac_try='test -z "$ac_c_werror_flag"
38770 || test ! -s conftest.err'
38771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38772 (eval $ac_try) 2>&5
38774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775 (exit $ac_status); }; } &&
38776 { ac_try='test -s conftest.$ac_objext'
38777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38778 (eval $ac_try) 2>&5
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); }; }; then
38782 ac_hi=$ac_mid; break
38784 echo "$as_me: failed program was:" >&5
38785 sed 's/^/| /' conftest.$ac_ext >&5
38787 ac_lo=`expr $ac_mid + 1`
38788 if test $ac_lo -le $ac_mid; then
38792 ac_mid=`expr 2 '*' $ac_mid + 1`
38794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38797 echo "$as_me: failed program was:" >&5
38798 sed 's/^/| /' conftest.$ac_ext >&5
38800 cat >conftest.$ac_ext <<_ACEOF
38803 cat confdefs.h >>conftest.$ac_ext
38804 cat >>conftest.$ac_ext <<_ACEOF
38805 /* end confdefs.h. */
38806 $ac_includes_default
38810 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38817 rm -f conftest.$ac_objext
38818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38819 (eval $ac_compile) 2>conftest.er1
38821 grep -v '^ *+' conftest.er1 >conftest.err
38823 cat conftest.err >&5
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); } &&
38826 { ac_try='test -z "$ac_c_werror_flag"
38827 || test ! -s conftest.err'
38828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829 (eval $ac_try) 2>&5
38831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832 (exit $ac_status); }; } &&
38833 { ac_try='test -s conftest.$ac_objext'
38834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38835 (eval $ac_try) 2>&5
38837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38838 (exit $ac_status); }; }; then
38841 cat >conftest.$ac_ext <<_ACEOF
38844 cat confdefs.h >>conftest.$ac_ext
38845 cat >>conftest.$ac_ext <<_ACEOF
38846 /* end confdefs.h. */
38847 $ac_includes_default
38851 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38858 rm -f conftest.$ac_objext
38859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38860 (eval $ac_compile) 2>conftest.er1
38862 grep -v '^ *+' conftest.er1 >conftest.err
38864 cat conftest.err >&5
38865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866 (exit $ac_status); } &&
38867 { ac_try='test -z "$ac_c_werror_flag"
38868 || test ! -s conftest.err'
38869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870 (eval $ac_try) 2>&5
38872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873 (exit $ac_status); }; } &&
38874 { ac_try='test -s conftest.$ac_objext'
38875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38876 (eval $ac_try) 2>&5
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); }; }; then
38880 ac_lo=$ac_mid; break
38882 echo "$as_me: failed program was:" >&5
38883 sed 's/^/| /' conftest.$ac_ext >&5
38885 ac_hi=`expr '(' $ac_mid ')' - 1`
38886 if test $ac_mid -le $ac_hi; then
38890 ac_mid=`expr 2 '*' $ac_mid`
38892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38895 echo "$as_me: failed program was:" >&5
38896 sed 's/^/| /' conftest.$ac_ext >&5
38900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38903 # Binary search between lo and hi bounds.
38904 while test "x$ac_lo" != "x$ac_hi"; do
38905 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38906 cat >conftest.$ac_ext <<_ACEOF
38909 cat confdefs.h >>conftest.$ac_ext
38910 cat >>conftest.$ac_ext <<_ACEOF
38911 /* end confdefs.h. */
38912 $ac_includes_default
38916 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38923 rm -f conftest.$ac_objext
38924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38925 (eval $ac_compile) 2>conftest.er1
38927 grep -v '^ *+' conftest.er1 >conftest.err
38929 cat conftest.err >&5
38930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38931 (exit $ac_status); } &&
38932 { ac_try='test -z "$ac_c_werror_flag"
38933 || test ! -s conftest.err'
38934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935 (eval $ac_try) 2>&5
38937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938 (exit $ac_status); }; } &&
38939 { ac_try='test -s conftest.$ac_objext'
38940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38941 (eval $ac_try) 2>&5
38943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944 (exit $ac_status); }; }; then
38947 echo "$as_me: failed program was:" >&5
38948 sed 's/^/| /' conftest.$ac_ext >&5
38950 ac_lo=`expr '(' $ac_mid ')' + 1`
38952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38955 ?*) ac_cv_sizeof_short=$ac_lo;;
38956 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38957 See \`config.log' for more details." >&5
38958 echo "$as_me: error: cannot compute sizeof (short), 77
38959 See \`config.log' for more details." >&2;}
38960 { (exit 1); exit 1; }; } ;;
38963 if test "$cross_compiling" = yes; then
38964 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38965 See \`config.log' for more details." >&5
38966 echo "$as_me: error: cannot run test program while cross compiling
38967 See \`config.log' for more details." >&2;}
38968 { (exit 1); exit 1; }; }
38970 cat >conftest.$ac_ext <<_ACEOF
38973 cat confdefs.h >>conftest.$ac_ext
38974 cat >>conftest.$ac_ext <<_ACEOF
38975 /* end confdefs.h. */
38976 $ac_includes_default
38977 long longval () { return (long) (sizeof (short)); }
38978 unsigned long ulongval () { return (long) (sizeof (short)); }
38980 #include <stdlib.h>
38985 FILE *f = fopen ("conftest.val", "w");
38988 if (((long) (sizeof (short))) < 0)
38990 long i = longval ();
38991 if (i != ((long) (sizeof (short))))
38993 fprintf (f, "%ld\n", i);
38997 unsigned long i = ulongval ();
38998 if (i != ((long) (sizeof (short))))
39000 fprintf (f, "%lu\n", i);
39002 exit (ferror (f) || fclose (f) != 0);
39008 rm -f conftest$ac_exeext
39009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39010 (eval $ac_link) 2>&5
39012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39015 (eval $ac_try) 2>&5
39017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018 (exit $ac_status); }; }; then
39019 ac_cv_sizeof_short=`cat conftest.val`
39021 echo "$as_me: program exited with status $ac_status" >&5
39022 echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39025 ( exit $ac_status )
39026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
39027 See \`config.log' for more details." >&5
39028 echo "$as_me: error: cannot compute sizeof (short), 77
39029 See \`config.log' for more details." >&2;}
39030 { (exit 1); exit 1; }; }
39032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39037 ac_cv_sizeof_short=0
39040 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39041 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
39042 cat >>confdefs.h <<_ACEOF
39043 #define SIZEOF_SHORT $ac_cv_sizeof_short
39047 echo "$as_me:$LINENO: checking for int" >&5
39048 echo $ECHO_N "checking for int... $ECHO_C" >&6
39049 if test "${ac_cv_type_int+set}" = set; then
39050 echo $ECHO_N "(cached) $ECHO_C" >&6
39052 cat >conftest.$ac_ext <<_ACEOF
39055 cat confdefs.h >>conftest.$ac_ext
39056 cat >>conftest.$ac_ext <<_ACEOF
39057 /* end confdefs.h. */
39058 $ac_includes_default
39070 rm -f conftest.$ac_objext
39071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39072 (eval $ac_compile) 2>conftest.er1
39074 grep -v '^ *+' conftest.er1 >conftest.err
39076 cat conftest.err >&5
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); } &&
39079 { ac_try='test -z "$ac_c_werror_flag"
39080 || test ! -s conftest.err'
39081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39082 (eval $ac_try) 2>&5
39084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085 (exit $ac_status); }; } &&
39086 { ac_try='test -s conftest.$ac_objext'
39087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39088 (eval $ac_try) 2>&5
39090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091 (exit $ac_status); }; }; then
39094 echo "$as_me: failed program was:" >&5
39095 sed 's/^/| /' conftest.$ac_ext >&5
39099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39101 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39102 echo "${ECHO_T}$ac_cv_type_int" >&6
39104 echo "$as_me:$LINENO: checking size of int" >&5
39105 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39106 if test "${ac_cv_sizeof_int+set}" = set; then
39107 echo $ECHO_N "(cached) $ECHO_C" >&6
39109 if test "$ac_cv_type_int" = yes; then
39110 # The cast to unsigned long works around a bug in the HP C Compiler
39111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39113 # This bug is HP SR number 8606223364.
39114 if test "$cross_compiling" = yes; then
39115 # Depending upon the size, compute the lo and hi bounds.
39116 cat >conftest.$ac_ext <<_ACEOF
39119 cat confdefs.h >>conftest.$ac_ext
39120 cat >>conftest.$ac_ext <<_ACEOF
39121 /* end confdefs.h. */
39122 $ac_includes_default
39126 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39133 rm -f conftest.$ac_objext
39134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39135 (eval $ac_compile) 2>conftest.er1
39137 grep -v '^ *+' conftest.er1 >conftest.err
39139 cat conftest.err >&5
39140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141 (exit $ac_status); } &&
39142 { ac_try='test -z "$ac_c_werror_flag"
39143 || test ! -s conftest.err'
39144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39145 (eval $ac_try) 2>&5
39147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148 (exit $ac_status); }; } &&
39149 { ac_try='test -s conftest.$ac_objext'
39150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39151 (eval $ac_try) 2>&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); }; }; then
39157 cat >conftest.$ac_ext <<_ACEOF
39160 cat confdefs.h >>conftest.$ac_ext
39161 cat >>conftest.$ac_ext <<_ACEOF
39162 /* end confdefs.h. */
39163 $ac_includes_default
39167 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39174 rm -f conftest.$ac_objext
39175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39176 (eval $ac_compile) 2>conftest.er1
39178 grep -v '^ *+' conftest.er1 >conftest.err
39180 cat conftest.err >&5
39181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182 (exit $ac_status); } &&
39183 { ac_try='test -z "$ac_c_werror_flag"
39184 || test ! -s conftest.err'
39185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39186 (eval $ac_try) 2>&5
39188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189 (exit $ac_status); }; } &&
39190 { ac_try='test -s conftest.$ac_objext'
39191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39192 (eval $ac_try) 2>&5
39194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39195 (exit $ac_status); }; }; then
39196 ac_hi=$ac_mid; break
39198 echo "$as_me: failed program was:" >&5
39199 sed 's/^/| /' conftest.$ac_ext >&5
39201 ac_lo=`expr $ac_mid + 1`
39202 if test $ac_lo -le $ac_mid; then
39206 ac_mid=`expr 2 '*' $ac_mid + 1`
39208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39211 echo "$as_me: failed program was:" >&5
39212 sed 's/^/| /' conftest.$ac_ext >&5
39214 cat >conftest.$ac_ext <<_ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h. */
39220 $ac_includes_default
39224 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39231 rm -f conftest.$ac_objext
39232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39233 (eval $ac_compile) 2>conftest.er1
39235 grep -v '^ *+' conftest.er1 >conftest.err
39237 cat conftest.err >&5
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); } &&
39240 { ac_try='test -z "$ac_c_werror_flag"
39241 || test ! -s conftest.err'
39242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243 (eval $ac_try) 2>&5
39245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246 (exit $ac_status); }; } &&
39247 { ac_try='test -s conftest.$ac_objext'
39248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39249 (eval $ac_try) 2>&5
39251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252 (exit $ac_status); }; }; then
39255 cat >conftest.$ac_ext <<_ACEOF
39258 cat confdefs.h >>conftest.$ac_ext
39259 cat >>conftest.$ac_ext <<_ACEOF
39260 /* end confdefs.h. */
39261 $ac_includes_default
39265 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39272 rm -f conftest.$ac_objext
39273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39274 (eval $ac_compile) 2>conftest.er1
39276 grep -v '^ *+' conftest.er1 >conftest.err
39278 cat conftest.err >&5
39279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280 (exit $ac_status); } &&
39281 { ac_try='test -z "$ac_c_werror_flag"
39282 || test ! -s conftest.err'
39283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39284 (eval $ac_try) 2>&5
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); }; } &&
39288 { ac_try='test -s conftest.$ac_objext'
39289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39290 (eval $ac_try) 2>&5
39292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293 (exit $ac_status); }; }; then
39294 ac_lo=$ac_mid; break
39296 echo "$as_me: failed program was:" >&5
39297 sed 's/^/| /' conftest.$ac_ext >&5
39299 ac_hi=`expr '(' $ac_mid ')' - 1`
39300 if test $ac_mid -le $ac_hi; then
39304 ac_mid=`expr 2 '*' $ac_mid`
39306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39309 echo "$as_me: failed program was:" >&5
39310 sed 's/^/| /' conftest.$ac_ext >&5
39314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39317 # Binary search between lo and hi bounds.
39318 while test "x$ac_lo" != "x$ac_hi"; do
39319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39320 cat >conftest.$ac_ext <<_ACEOF
39323 cat confdefs.h >>conftest.$ac_ext
39324 cat >>conftest.$ac_ext <<_ACEOF
39325 /* end confdefs.h. */
39326 $ac_includes_default
39330 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39337 rm -f conftest.$ac_objext
39338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39339 (eval $ac_compile) 2>conftest.er1
39341 grep -v '^ *+' conftest.er1 >conftest.err
39343 cat conftest.err >&5
39344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39345 (exit $ac_status); } &&
39346 { ac_try='test -z "$ac_c_werror_flag"
39347 || test ! -s conftest.err'
39348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39349 (eval $ac_try) 2>&5
39351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39352 (exit $ac_status); }; } &&
39353 { ac_try='test -s conftest.$ac_objext'
39354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39355 (eval $ac_try) 2>&5
39357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39358 (exit $ac_status); }; }; then
39361 echo "$as_me: failed program was:" >&5
39362 sed 's/^/| /' conftest.$ac_ext >&5
39364 ac_lo=`expr '(' $ac_mid ')' + 1`
39366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39369 ?*) ac_cv_sizeof_int=$ac_lo;;
39370 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39371 See \`config.log' for more details." >&5
39372 echo "$as_me: error: cannot compute sizeof (int), 77
39373 See \`config.log' for more details." >&2;}
39374 { (exit 1); exit 1; }; } ;;
39377 if test "$cross_compiling" = yes; then
39378 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39379 See \`config.log' for more details." >&5
39380 echo "$as_me: error: cannot run test program while cross compiling
39381 See \`config.log' for more details." >&2;}
39382 { (exit 1); exit 1; }; }
39384 cat >conftest.$ac_ext <<_ACEOF
39387 cat confdefs.h >>conftest.$ac_ext
39388 cat >>conftest.$ac_ext <<_ACEOF
39389 /* end confdefs.h. */
39390 $ac_includes_default
39391 long longval () { return (long) (sizeof (int)); }
39392 unsigned long ulongval () { return (long) (sizeof (int)); }
39394 #include <stdlib.h>
39399 FILE *f = fopen ("conftest.val", "w");
39402 if (((long) (sizeof (int))) < 0)
39404 long i = longval ();
39405 if (i != ((long) (sizeof (int))))
39407 fprintf (f, "%ld\n", i);
39411 unsigned long i = ulongval ();
39412 if (i != ((long) (sizeof (int))))
39414 fprintf (f, "%lu\n", i);
39416 exit (ferror (f) || fclose (f) != 0);
39422 rm -f conftest$ac_exeext
39423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39424 (eval $ac_link) 2>&5
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429 (eval $ac_try) 2>&5
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); }; }; then
39433 ac_cv_sizeof_int=`cat conftest.val`
39435 echo "$as_me: program exited with status $ac_status" >&5
39436 echo "$as_me: failed program was:" >&5
39437 sed 's/^/| /' conftest.$ac_ext >&5
39439 ( exit $ac_status )
39440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39441 See \`config.log' for more details." >&5
39442 echo "$as_me: error: cannot compute sizeof (int), 77
39443 See \`config.log' for more details." >&2;}
39444 { (exit 1); exit 1; }; }
39446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39454 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39455 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39456 cat >>confdefs.h <<_ACEOF
39457 #define SIZEOF_INT $ac_cv_sizeof_int
39461 echo "$as_me:$LINENO: checking for long" >&5
39462 echo $ECHO_N "checking for long... $ECHO_C" >&6
39463 if test "${ac_cv_type_long+set}" = set; then
39464 echo $ECHO_N "(cached) $ECHO_C" >&6
39466 cat >conftest.$ac_ext <<_ACEOF
39469 cat confdefs.h >>conftest.$ac_ext
39470 cat >>conftest.$ac_ext <<_ACEOF
39471 /* end confdefs.h. */
39472 $ac_includes_default
39484 rm -f conftest.$ac_objext
39485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39486 (eval $ac_compile) 2>conftest.er1
39488 grep -v '^ *+' conftest.er1 >conftest.err
39490 cat conftest.err >&5
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); } &&
39493 { ac_try='test -z "$ac_c_werror_flag"
39494 || test ! -s conftest.err'
39495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39496 (eval $ac_try) 2>&5
39498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499 (exit $ac_status); }; } &&
39500 { ac_try='test -s conftest.$ac_objext'
39501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39502 (eval $ac_try) 2>&5
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); }; }; then
39506 ac_cv_type_long=yes
39508 echo "$as_me: failed program was:" >&5
39509 sed 's/^/| /' conftest.$ac_ext >&5
39513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39515 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39516 echo "${ECHO_T}$ac_cv_type_long" >&6
39518 echo "$as_me:$LINENO: checking size of long" >&5
39519 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39520 if test "${ac_cv_sizeof_long+set}" = set; then
39521 echo $ECHO_N "(cached) $ECHO_C" >&6
39523 if test "$ac_cv_type_long" = yes; then
39524 # The cast to unsigned long works around a bug in the HP C Compiler
39525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39527 # This bug is HP SR number 8606223364.
39528 if test "$cross_compiling" = yes; then
39529 # Depending upon the size, compute the lo and hi bounds.
39530 cat >conftest.$ac_ext <<_ACEOF
39533 cat confdefs.h >>conftest.$ac_ext
39534 cat >>conftest.$ac_ext <<_ACEOF
39535 /* end confdefs.h. */
39536 $ac_includes_default
39540 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39547 rm -f conftest.$ac_objext
39548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39549 (eval $ac_compile) 2>conftest.er1
39551 grep -v '^ *+' conftest.er1 >conftest.err
39553 cat conftest.err >&5
39554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555 (exit $ac_status); } &&
39556 { ac_try='test -z "$ac_c_werror_flag"
39557 || test ! -s conftest.err'
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; } &&
39563 { ac_try='test -s conftest.$ac_objext'
39564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565 (eval $ac_try) 2>&5
39567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568 (exit $ac_status); }; }; then
39571 cat >conftest.$ac_ext <<_ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h. */
39577 $ac_includes_default
39581 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39588 rm -f conftest.$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590 (eval $ac_compile) 2>conftest.er1
39592 grep -v '^ *+' conftest.er1 >conftest.err
39594 cat conftest.err >&5
39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596 (exit $ac_status); } &&
39597 { ac_try='test -z "$ac_c_werror_flag"
39598 || test ! -s conftest.err'
39599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600 (eval $ac_try) 2>&5
39602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603 (exit $ac_status); }; } &&
39604 { ac_try='test -s conftest.$ac_objext'
39605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606 (eval $ac_try) 2>&5
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); }; }; then
39610 ac_hi=$ac_mid; break
39612 echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39615 ac_lo=`expr $ac_mid + 1`
39616 if test $ac_lo -le $ac_mid; then
39620 ac_mid=`expr 2 '*' $ac_mid + 1`
39622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39625 echo "$as_me: failed program was:" >&5
39626 sed 's/^/| /' conftest.$ac_ext >&5
39628 cat >conftest.$ac_ext <<_ACEOF
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h. */
39634 $ac_includes_default
39638 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39645 rm -f conftest.$ac_objext
39646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39647 (eval $ac_compile) 2>conftest.er1
39649 grep -v '^ *+' conftest.er1 >conftest.err
39651 cat conftest.err >&5
39652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653 (exit $ac_status); } &&
39654 { ac_try='test -z "$ac_c_werror_flag"
39655 || test ! -s conftest.err'
39656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39657 (eval $ac_try) 2>&5
39659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660 (exit $ac_status); }; } &&
39661 { ac_try='test -s conftest.$ac_objext'
39662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39663 (eval $ac_try) 2>&5
39665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666 (exit $ac_status); }; }; then
39669 cat >conftest.$ac_ext <<_ACEOF
39672 cat confdefs.h >>conftest.$ac_ext
39673 cat >>conftest.$ac_ext <<_ACEOF
39674 /* end confdefs.h. */
39675 $ac_includes_default
39679 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39686 rm -f conftest.$ac_objext
39687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39688 (eval $ac_compile) 2>conftest.er1
39690 grep -v '^ *+' conftest.er1 >conftest.err
39692 cat conftest.err >&5
39693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); } &&
39695 { ac_try='test -z "$ac_c_werror_flag"
39696 || test ! -s conftest.err'
39697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39698 (eval $ac_try) 2>&5
39700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701 (exit $ac_status); }; } &&
39702 { ac_try='test -s conftest.$ac_objext'
39703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39704 (eval $ac_try) 2>&5
39706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707 (exit $ac_status); }; }; then
39708 ac_lo=$ac_mid; break
39710 echo "$as_me: failed program was:" >&5
39711 sed 's/^/| /' conftest.$ac_ext >&5
39713 ac_hi=`expr '(' $ac_mid ')' - 1`
39714 if test $ac_mid -le $ac_hi; then
39718 ac_mid=`expr 2 '*' $ac_mid`
39720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39723 echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39731 # Binary search between lo and hi bounds.
39732 while test "x$ac_lo" != "x$ac_hi"; do
39733 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39734 cat >conftest.$ac_ext <<_ACEOF
39737 cat confdefs.h >>conftest.$ac_ext
39738 cat >>conftest.$ac_ext <<_ACEOF
39739 /* end confdefs.h. */
39740 $ac_includes_default
39744 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39751 rm -f conftest.$ac_objext
39752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39753 (eval $ac_compile) 2>conftest.er1
39755 grep -v '^ *+' conftest.er1 >conftest.err
39757 cat conftest.err >&5
39758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); } &&
39760 { ac_try='test -z "$ac_c_werror_flag"
39761 || test ! -s conftest.err'
39762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39763 (eval $ac_try) 2>&5
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); }; } &&
39767 { ac_try='test -s conftest.$ac_objext'
39768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39769 (eval $ac_try) 2>&5
39771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772 (exit $ac_status); }; }; then
39775 echo "$as_me: failed program was:" >&5
39776 sed 's/^/| /' conftest.$ac_ext >&5
39778 ac_lo=`expr '(' $ac_mid ')' + 1`
39780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39783 ?*) ac_cv_sizeof_long=$ac_lo;;
39784 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39785 See \`config.log' for more details." >&5
39786 echo "$as_me: error: cannot compute sizeof (long), 77
39787 See \`config.log' for more details." >&2;}
39788 { (exit 1); exit 1; }; } ;;
39791 if test "$cross_compiling" = yes; then
39792 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39793 See \`config.log' for more details." >&5
39794 echo "$as_me: error: cannot run test program while cross compiling
39795 See \`config.log' for more details." >&2;}
39796 { (exit 1); exit 1; }; }
39798 cat >conftest.$ac_ext <<_ACEOF
39801 cat confdefs.h >>conftest.$ac_ext
39802 cat >>conftest.$ac_ext <<_ACEOF
39803 /* end confdefs.h. */
39804 $ac_includes_default
39805 long longval () { return (long) (sizeof (long)); }
39806 unsigned long ulongval () { return (long) (sizeof (long)); }
39808 #include <stdlib.h>
39813 FILE *f = fopen ("conftest.val", "w");
39816 if (((long) (sizeof (long))) < 0)
39818 long i = longval ();
39819 if (i != ((long) (sizeof (long))))
39821 fprintf (f, "%ld\n", i);
39825 unsigned long i = ulongval ();
39826 if (i != ((long) (sizeof (long))))
39828 fprintf (f, "%lu\n", i);
39830 exit (ferror (f) || fclose (f) != 0);
39836 rm -f conftest$ac_exeext
39837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39838 (eval $ac_link) 2>&5
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39843 (eval $ac_try) 2>&5
39845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846 (exit $ac_status); }; }; then
39847 ac_cv_sizeof_long=`cat conftest.val`
39849 echo "$as_me: program exited with status $ac_status" >&5
39850 echo "$as_me: failed program was:" >&5
39851 sed 's/^/| /' conftest.$ac_ext >&5
39853 ( exit $ac_status )
39854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39855 See \`config.log' for more details." >&5
39856 echo "$as_me: error: cannot compute sizeof (long), 77
39857 See \`config.log' for more details." >&2;}
39858 { (exit 1); exit 1; }; }
39860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39865 ac_cv_sizeof_long=0
39868 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39869 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39870 cat >>confdefs.h <<_ACEOF
39871 #define SIZEOF_LONG $ac_cv_sizeof_long
39875 echo "$as_me:$LINENO: checking for wchar_t" >&5
39876 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39877 if test "${ac_cv_type_wchar_t+set}" = set; then
39878 echo $ECHO_N "(cached) $ECHO_C" >&6
39880 cat >conftest.$ac_ext <<_ACEOF
39883 cat confdefs.h >>conftest.$ac_ext
39884 cat >>conftest.$ac_ext <<_ACEOF
39885 /* end confdefs.h. */
39886 $ac_includes_default
39892 if (sizeof (wchar_t))
39898 rm -f conftest.$ac_objext
39899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39900 (eval $ac_compile) 2>conftest.er1
39902 grep -v '^ *+' conftest.er1 >conftest.err
39904 cat conftest.err >&5
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); } &&
39907 { ac_try='test -z "$ac_c_werror_flag"
39908 || test ! -s conftest.err'
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; } &&
39914 { ac_try='test -s conftest.$ac_objext'
39915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39916 (eval $ac_try) 2>&5
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); }; }; then
39920 ac_cv_type_wchar_t=yes
39922 echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39925 ac_cv_type_wchar_t=no
39927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39929 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39930 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39932 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39933 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39934 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39935 echo $ECHO_N "(cached) $ECHO_C" >&6
39937 if test "$ac_cv_type_wchar_t" = yes; then
39938 # The cast to unsigned long works around a bug in the HP C Compiler
39939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39941 # This bug is HP SR number 8606223364.
39942 if test "$cross_compiling" = yes; then
39943 # Depending upon the size, compute the lo and hi bounds.
39944 cat >conftest.$ac_ext <<_ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h. */
39950 $ac_includes_default
39954 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39961 rm -f conftest.$ac_objext
39962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39963 (eval $ac_compile) 2>conftest.er1
39965 grep -v '^ *+' conftest.er1 >conftest.err
39967 cat conftest.err >&5
39968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969 (exit $ac_status); } &&
39970 { ac_try='test -z "$ac_c_werror_flag"
39971 || test ! -s conftest.err'
39972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39973 (eval $ac_try) 2>&5
39975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976 (exit $ac_status); }; } &&
39977 { ac_try='test -s conftest.$ac_objext'
39978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39979 (eval $ac_try) 2>&5
39981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982 (exit $ac_status); }; }; then
39985 cat >conftest.$ac_ext <<_ACEOF
39988 cat confdefs.h >>conftest.$ac_ext
39989 cat >>conftest.$ac_ext <<_ACEOF
39990 /* end confdefs.h. */
39991 $ac_includes_default
39995 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40002 rm -f conftest.$ac_objext
40003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40004 (eval $ac_compile) 2>conftest.er1
40006 grep -v '^ *+' conftest.er1 >conftest.err
40008 cat conftest.err >&5
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); } &&
40011 { ac_try='test -z "$ac_c_werror_flag"
40012 || test ! -s conftest.err'
40013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40014 (eval $ac_try) 2>&5
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); }; } &&
40018 { ac_try='test -s conftest.$ac_objext'
40019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40020 (eval $ac_try) 2>&5
40022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023 (exit $ac_status); }; }; then
40024 ac_hi=$ac_mid; break
40026 echo "$as_me: failed program was:" >&5
40027 sed 's/^/| /' conftest.$ac_ext >&5
40029 ac_lo=`expr $ac_mid + 1`
40030 if test $ac_lo -le $ac_mid; then
40034 ac_mid=`expr 2 '*' $ac_mid + 1`
40036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40039 echo "$as_me: failed program was:" >&5
40040 sed 's/^/| /' conftest.$ac_ext >&5
40042 cat >conftest.$ac_ext <<_ACEOF
40045 cat confdefs.h >>conftest.$ac_ext
40046 cat >>conftest.$ac_ext <<_ACEOF
40047 /* end confdefs.h. */
40048 $ac_includes_default
40052 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
40059 rm -f conftest.$ac_objext
40060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40061 (eval $ac_compile) 2>conftest.er1
40063 grep -v '^ *+' conftest.er1 >conftest.err
40065 cat conftest.err >&5
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); } &&
40068 { ac_try='test -z "$ac_c_werror_flag"
40069 || test ! -s conftest.err'
40070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40071 (eval $ac_try) 2>&5
40073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074 (exit $ac_status); }; } &&
40075 { ac_try='test -s conftest.$ac_objext'
40076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40077 (eval $ac_try) 2>&5
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); }; }; then
40083 cat >conftest.$ac_ext <<_ACEOF
40086 cat confdefs.h >>conftest.$ac_ext
40087 cat >>conftest.$ac_ext <<_ACEOF
40088 /* end confdefs.h. */
40089 $ac_includes_default
40093 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40100 rm -f conftest.$ac_objext
40101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40102 (eval $ac_compile) 2>conftest.er1
40104 grep -v '^ *+' conftest.er1 >conftest.err
40106 cat conftest.err >&5
40107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108 (exit $ac_status); } &&
40109 { ac_try='test -z "$ac_c_werror_flag"
40110 || test ! -s conftest.err'
40111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40112 (eval $ac_try) 2>&5
40114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115 (exit $ac_status); }; } &&
40116 { ac_try='test -s conftest.$ac_objext'
40117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40118 (eval $ac_try) 2>&5
40120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121 (exit $ac_status); }; }; then
40122 ac_lo=$ac_mid; break
40124 echo "$as_me: failed program was:" >&5
40125 sed 's/^/| /' conftest.$ac_ext >&5
40127 ac_hi=`expr '(' $ac_mid ')' - 1`
40128 if test $ac_mid -le $ac_hi; then
40132 ac_mid=`expr 2 '*' $ac_mid`
40134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40137 echo "$as_me: failed program was:" >&5
40138 sed 's/^/| /' conftest.$ac_ext >&5
40142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40145 # Binary search between lo and hi bounds.
40146 while test "x$ac_lo" != "x$ac_hi"; do
40147 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40148 cat >conftest.$ac_ext <<_ACEOF
40151 cat confdefs.h >>conftest.$ac_ext
40152 cat >>conftest.$ac_ext <<_ACEOF
40153 /* end confdefs.h. */
40154 $ac_includes_default
40158 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40165 rm -f conftest.$ac_objext
40166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40167 (eval $ac_compile) 2>conftest.er1
40169 grep -v '^ *+' conftest.er1 >conftest.err
40171 cat conftest.err >&5
40172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40173 (exit $ac_status); } &&
40174 { ac_try='test -z "$ac_c_werror_flag"
40175 || test ! -s conftest.err'
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; } &&
40181 { ac_try='test -s conftest.$ac_objext'
40182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40183 (eval $ac_try) 2>&5
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); }; }; then
40189 echo "$as_me: failed program was:" >&5
40190 sed 's/^/| /' conftest.$ac_ext >&5
40192 ac_lo=`expr '(' $ac_mid ')' + 1`
40194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40197 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40199 See \`config.log' for more details." >&5
40200 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40201 See \`config.log' for more details." >&2;}
40202 { (exit 1); exit 1; }; } ;;
40205 if test "$cross_compiling" = yes; then
40206 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40207 See \`config.log' for more details." >&5
40208 echo "$as_me: error: cannot run test program while cross compiling
40209 See \`config.log' for more details." >&2;}
40210 { (exit 1); exit 1; }; }
40212 cat >conftest.$ac_ext <<_ACEOF
40215 cat confdefs.h >>conftest.$ac_ext
40216 cat >>conftest.$ac_ext <<_ACEOF
40217 /* end confdefs.h. */
40218 $ac_includes_default
40219 long longval () { return (long) (sizeof (wchar_t)); }
40220 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40222 #include <stdlib.h>
40227 FILE *f = fopen ("conftest.val", "w");
40230 if (((long) (sizeof (wchar_t))) < 0)
40232 long i = longval ();
40233 if (i != ((long) (sizeof (wchar_t))))
40235 fprintf (f, "%ld\n", i);
40239 unsigned long i = ulongval ();
40240 if (i != ((long) (sizeof (wchar_t))))
40242 fprintf (f, "%lu\n", i);
40244 exit (ferror (f) || fclose (f) != 0);
40250 rm -f conftest$ac_exeext
40251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40252 (eval $ac_link) 2>&5
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257 (eval $ac_try) 2>&5
40259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); }; }; then
40261 ac_cv_sizeof_wchar_t=`cat conftest.val`
40263 echo "$as_me: program exited with status $ac_status" >&5
40264 echo "$as_me: failed program was:" >&5
40265 sed 's/^/| /' conftest.$ac_ext >&5
40267 ( exit $ac_status )
40268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40269 See \`config.log' for more details." >&5
40270 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40271 See \`config.log' for more details." >&2;}
40272 { (exit 1); exit 1; }; }
40274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40279 ac_cv_sizeof_wchar_t=0
40282 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40283 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40284 cat >>confdefs.h <<_ACEOF
40285 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40290 if test "$ac_cv_sizeof_int" -lt 4 ; then
40291 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40292 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40295 cat >>confdefs.h <<\_ACEOF
40296 #define LBER_INT_T long
40301 cat >>confdefs.h <<\_ACEOF
40302 #define LBER_INT_T int
40308 cat >>confdefs.h <<\_ACEOF
40309 #define LBER_LEN_T long
40313 cat >>confdefs.h <<\_ACEOF
40314 #define LBER_SOCKET_T int
40318 cat >>confdefs.h <<\_ACEOF
40319 #define LBER_TAG_T long
40323 echo "$as_me:$LINENO: checking for working memcmp" >&5
40324 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40325 if test "${ac_cv_func_memcmp_working+set}" = set; then
40326 echo $ECHO_N "(cached) $ECHO_C" >&6
40328 if test "$cross_compiling" = yes; then
40329 ac_cv_func_memcmp_working=no
40331 cat >conftest.$ac_ext <<_ACEOF
40334 cat confdefs.h >>conftest.$ac_ext
40335 cat >>conftest.$ac_ext <<_ACEOF
40336 /* end confdefs.h. */
40337 $ac_includes_default
40342 /* Some versions of memcmp are not 8-bit clean. */
40343 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40344 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40347 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40348 or more and with at least one buffer not starting on a 4-byte boundary.
40349 William Lewis provided this test program. */
40354 for (i = 0; i < 4; i++)
40358 strcpy (a, "--------01111111");
40359 strcpy (b, "--------10000000");
40360 if (memcmp (a, b, 16) >= 0)
40370 rm -f conftest$ac_exeext
40371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40372 (eval $ac_link) 2>&5
40374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40377 (eval $ac_try) 2>&5
40379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380 (exit $ac_status); }; }; then
40381 ac_cv_func_memcmp_working=yes
40383 echo "$as_me: program exited with status $ac_status" >&5
40384 echo "$as_me: failed program was:" >&5
40385 sed 's/^/| /' conftest.$ac_ext >&5
40387 ( exit $ac_status )
40388 ac_cv_func_memcmp_working=no
40390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40393 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40394 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40395 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40396 "memcmp.$ac_objext" | \
40397 *" memcmp.$ac_objext" | \
40398 "memcmp.$ac_objext "* | \
40399 *" memcmp.$ac_objext "* ) ;;
40400 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40405 if test $ac_cv_func_memcmp_working = no ; then
40407 cat >>confdefs.h <<\_ACEOF
40408 #define NEED_MEMCMP_REPLACEMENT 1
40414 for ac_func in strftime
40416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40417 echo "$as_me:$LINENO: checking for $ac_func" >&5
40418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40419 if eval "test \"\${$as_ac_var+set}\" = set"; then
40420 echo $ECHO_N "(cached) $ECHO_C" >&6
40422 cat >conftest.$ac_ext <<_ACEOF
40425 cat confdefs.h >>conftest.$ac_ext
40426 cat >>conftest.$ac_ext <<_ACEOF
40427 /* end confdefs.h. */
40428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40430 #define $ac_func innocuous_$ac_func
40432 /* System header to define __stub macros and hopefully few prototypes,
40433 which can conflict with char $ac_func (); below.
40434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40435 <limits.h> exists even on freestanding compilers. */
40438 # include <limits.h>
40440 # include <assert.h>
40445 /* Override any gcc2 internal prototype to avoid an error. */
40450 /* We use char because int might match the return type of a gcc2
40451 builtin and then its argument prototype would still apply. */
40453 /* The GNU C library defines this for functions which it implements
40454 to always fail with ENOSYS. Some functions are actually named
40455 something starting with __ and the normal name is an alias. */
40456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40459 char (*f) () = $ac_func;
40468 return f != $ac_func;
40473 rm -f conftest.$ac_objext conftest$ac_exeext
40474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40475 (eval $ac_link) 2>conftest.er1
40477 grep -v '^ *+' conftest.er1 >conftest.err
40479 cat conftest.err >&5
40480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40481 (exit $ac_status); } &&
40482 { ac_try='test -z "$ac_c_werror_flag"
40483 || test ! -s conftest.err'
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); }; } &&
40489 { ac_try='test -s conftest$ac_exeext'
40490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40491 (eval $ac_try) 2>&5
40493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40494 (exit $ac_status); }; }; then
40495 eval "$as_ac_var=yes"
40497 echo "$as_me: failed program was:" >&5
40498 sed 's/^/| /' conftest.$ac_ext >&5
40500 eval "$as_ac_var=no"
40502 rm -f conftest.err conftest.$ac_objext \
40503 conftest$ac_exeext conftest.$ac_ext
40505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40507 if test `eval echo '${'$as_ac_var'}'` = yes; then
40508 cat >>confdefs.h <<_ACEOF
40509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40513 # strftime is in -lintl on SCO UNIX.
40514 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40515 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40516 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40517 echo $ECHO_N "(cached) $ECHO_C" >&6
40519 ac_check_lib_save_LIBS=$LIBS
40520 LIBS="-lintl $LIBS"
40521 cat >conftest.$ac_ext <<_ACEOF
40524 cat confdefs.h >>conftest.$ac_ext
40525 cat >>conftest.$ac_ext <<_ACEOF
40526 /* end confdefs.h. */
40528 /* Override any gcc2 internal prototype to avoid an error. */
40532 /* We use char because int might match the return type of a gcc2
40533 builtin and then its argument prototype would still apply. */
40543 rm -f conftest.$ac_objext conftest$ac_exeext
40544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40545 (eval $ac_link) 2>conftest.er1
40547 grep -v '^ *+' conftest.er1 >conftest.err
40549 cat conftest.err >&5
40550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551 (exit $ac_status); } &&
40552 { ac_try='test -z "$ac_c_werror_flag"
40553 || test ! -s conftest.err'
40554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40555 (eval $ac_try) 2>&5
40557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558 (exit $ac_status); }; } &&
40559 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
40565 ac_cv_lib_intl_strftime=yes
40567 echo "$as_me: failed program was:" >&5
40568 sed 's/^/| /' conftest.$ac_ext >&5
40570 ac_cv_lib_intl_strftime=no
40572 rm -f conftest.err conftest.$ac_objext \
40573 conftest$ac_exeext conftest.$ac_ext
40574 LIBS=$ac_check_lib_save_LIBS
40576 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40577 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40578 if test $ac_cv_lib_intl_strftime = yes; then
40579 cat >>confdefs.h <<\_ACEOF
40580 #define HAVE_STRFTIME 1
40583 LIBS="-lintl $LIBS"
40590 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40591 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40592 if test "${ol_cv_func_inet_aton+set}" = set; then
40593 echo $ECHO_N "(cached) $ECHO_C" >&6
40595 cat >conftest.$ac_ext <<_ACEOF
40598 cat confdefs.h >>conftest.$ac_ext
40599 cat >>conftest.$ac_ext <<_ACEOF
40600 /* end confdefs.h. */
40602 #ifdef HAVE_SYS_TYPES_H
40603 # include <sys/types.h>
40605 #ifdef HAVE_SYS_SOCKET_H
40606 # include <sys/socket.h>
40607 # ifdef HAVE_SYS_SELECT_H
40608 # include <sys/select.h>
40610 # include <netinet/in.h>
40611 # ifdef HAVE_ARPA_INET_H
40612 # include <arpa/inet.h>
40620 int rc = inet_aton( "255.255.255.255", &in );
40625 rm -f conftest.$ac_objext conftest$ac_exeext
40626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40627 (eval $ac_link) 2>conftest.er1
40629 grep -v '^ *+' conftest.er1 >conftest.err
40631 cat conftest.err >&5
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); } &&
40634 { ac_try='test -z "$ac_c_werror_flag"
40635 || test ! -s conftest.err'
40636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40637 (eval $ac_try) 2>&5
40639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640 (exit $ac_status); }; } &&
40641 { ac_try='test -s conftest$ac_exeext'
40642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40643 (eval $ac_try) 2>&5
40645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646 (exit $ac_status); }; }; then
40647 ol_cv_func_inet_aton=yes
40649 echo "$as_me: failed program was:" >&5
40650 sed 's/^/| /' conftest.$ac_ext >&5
40652 ol_cv_func_inet_aton=no
40654 rm -f conftest.err conftest.$ac_objext \
40655 conftest$ac_exeext conftest.$ac_ext
40657 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40658 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40659 if test $ol_cv_func_inet_aton != no; then
40661 cat >>confdefs.h <<\_ACEOF
40662 #define HAVE_INET_ATON 1
40668 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40669 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40670 if test "${ac_cv_func__spawnlp+set}" = set; then
40671 echo $ECHO_N "(cached) $ECHO_C" >&6
40673 cat >conftest.$ac_ext <<_ACEOF
40676 cat confdefs.h >>conftest.$ac_ext
40677 cat >>conftest.$ac_ext <<_ACEOF
40678 /* end confdefs.h. */
40679 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40681 #define _spawnlp innocuous__spawnlp
40683 /* System header to define __stub macros and hopefully few prototypes,
40684 which can conflict with char _spawnlp (); below.
40685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40686 <limits.h> exists even on freestanding compilers. */
40689 # include <limits.h>
40691 # include <assert.h>
40696 /* Override any gcc2 internal prototype to avoid an error. */
40701 /* We use char because int might match the return type of a gcc2
40702 builtin and then its argument prototype would still apply. */
40704 /* The GNU C library defines this for functions which it implements
40705 to always fail with ENOSYS. Some functions are actually named
40706 something starting with __ and the normal name is an alias. */
40707 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40710 char (*f) () = _spawnlp;
40719 return f != _spawnlp;
40724 rm -f conftest.$ac_objext conftest$ac_exeext
40725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40726 (eval $ac_link) 2>conftest.er1
40728 grep -v '^ *+' conftest.er1 >conftest.err
40730 cat conftest.err >&5
40731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40732 (exit $ac_status); } &&
40733 { ac_try='test -z "$ac_c_werror_flag"
40734 || test ! -s conftest.err'
40735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40736 (eval $ac_try) 2>&5
40738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739 (exit $ac_status); }; } &&
40740 { ac_try='test -s conftest$ac_exeext'
40741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40742 (eval $ac_try) 2>&5
40744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745 (exit $ac_status); }; }; then
40746 ac_cv_func__spawnlp=yes
40748 echo "$as_me: failed program was:" >&5
40749 sed 's/^/| /' conftest.$ac_ext >&5
40751 ac_cv_func__spawnlp=no
40753 rm -f conftest.err conftest.$ac_objext \
40754 conftest$ac_exeext conftest.$ac_ext
40756 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40757 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40758 if test $ac_cv_func__spawnlp = yes; then
40760 cat >>confdefs.h <<\_ACEOF
40761 #define HAVE_SPAWNLP 1
40767 echo "$as_me:$LINENO: checking for _snprintf" >&5
40768 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40769 if test "${ac_cv_func__snprintf+set}" = set; then
40770 echo $ECHO_N "(cached) $ECHO_C" >&6
40772 cat >conftest.$ac_ext <<_ACEOF
40775 cat confdefs.h >>conftest.$ac_ext
40776 cat >>conftest.$ac_ext <<_ACEOF
40777 /* end confdefs.h. */
40778 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40780 #define _snprintf innocuous__snprintf
40782 /* System header to define __stub macros and hopefully few prototypes,
40783 which can conflict with char _snprintf (); below.
40784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40785 <limits.h> exists even on freestanding compilers. */
40788 # include <limits.h>
40790 # include <assert.h>
40795 /* Override any gcc2 internal prototype to avoid an error. */
40800 /* We use char because int might match the return type of a gcc2
40801 builtin and then its argument prototype would still apply. */
40803 /* The GNU C library defines this for functions which it implements
40804 to always fail with ENOSYS. Some functions are actually named
40805 something starting with __ and the normal name is an alias. */
40806 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40809 char (*f) () = _snprintf;
40818 return f != _snprintf;
40823 rm -f conftest.$ac_objext conftest$ac_exeext
40824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40825 (eval $ac_link) 2>conftest.er1
40827 grep -v '^ *+' conftest.er1 >conftest.err
40829 cat conftest.err >&5
40830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40831 (exit $ac_status); } &&
40832 { ac_try='test -z "$ac_c_werror_flag"
40833 || test ! -s conftest.err'
40834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40835 (eval $ac_try) 2>&5
40837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838 (exit $ac_status); }; } &&
40839 { ac_try='test -s conftest$ac_exeext'
40840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40841 (eval $ac_try) 2>&5
40843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844 (exit $ac_status); }; }; then
40845 ac_cv_func__snprintf=yes
40847 echo "$as_me: failed program was:" >&5
40848 sed 's/^/| /' conftest.$ac_ext >&5
40850 ac_cv_func__snprintf=no
40852 rm -f conftest.err conftest.$ac_objext \
40853 conftest$ac_exeext conftest.$ac_ext
40855 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40856 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40857 if test $ac_cv_func__snprintf = yes; then
40858 ac_cv_func_snprintf=yes
40860 cat >>confdefs.h <<\_ACEOF
40861 #define snprintf _snprintf
40868 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40869 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40870 if test "${ac_cv_func__vsnprintf+set}" = set; then
40871 echo $ECHO_N "(cached) $ECHO_C" >&6
40873 cat >conftest.$ac_ext <<_ACEOF
40876 cat confdefs.h >>conftest.$ac_ext
40877 cat >>conftest.$ac_ext <<_ACEOF
40878 /* end confdefs.h. */
40879 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40881 #define _vsnprintf innocuous__vsnprintf
40883 /* System header to define __stub macros and hopefully few prototypes,
40884 which can conflict with char _vsnprintf (); below.
40885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40886 <limits.h> exists even on freestanding compilers. */
40889 # include <limits.h>
40891 # include <assert.h>
40896 /* Override any gcc2 internal prototype to avoid an error. */
40901 /* We use char because int might match the return type of a gcc2
40902 builtin and then its argument prototype would still apply. */
40903 char _vsnprintf ();
40904 /* The GNU C library defines this for functions which it implements
40905 to always fail with ENOSYS. Some functions are actually named
40906 something starting with __ and the normal name is an alias. */
40907 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40910 char (*f) () = _vsnprintf;
40919 return f != _vsnprintf;
40924 rm -f conftest.$ac_objext conftest$ac_exeext
40925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40926 (eval $ac_link) 2>conftest.er1
40928 grep -v '^ *+' conftest.er1 >conftest.err
40930 cat conftest.err >&5
40931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932 (exit $ac_status); } &&
40933 { ac_try='test -z "$ac_c_werror_flag"
40934 || test ! -s conftest.err'
40935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40936 (eval $ac_try) 2>&5
40938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939 (exit $ac_status); }; } &&
40940 { ac_try='test -s conftest$ac_exeext'
40941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40942 (eval $ac_try) 2>&5
40944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40945 (exit $ac_status); }; }; then
40946 ac_cv_func__vsnprintf=yes
40948 echo "$as_me: failed program was:" >&5
40949 sed 's/^/| /' conftest.$ac_ext >&5
40951 ac_cv_func__vsnprintf=no
40953 rm -f conftest.err conftest.$ac_objext \
40954 conftest$ac_exeext conftest.$ac_ext
40956 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40957 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40958 if test $ac_cv_func__vsnprintf = yes; then
40959 ac_cv_func_vsnprintf=yes
40961 cat >>confdefs.h <<\_ACEOF
40962 #define vsnprintf _vsnprintf
40970 for ac_func in vprintf
40972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40973 echo "$as_me:$LINENO: checking for $ac_func" >&5
40974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40975 if eval "test \"\${$as_ac_var+set}\" = set"; then
40976 echo $ECHO_N "(cached) $ECHO_C" >&6
40978 cat >conftest.$ac_ext <<_ACEOF
40981 cat confdefs.h >>conftest.$ac_ext
40982 cat >>conftest.$ac_ext <<_ACEOF
40983 /* end confdefs.h. */
40984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40986 #define $ac_func innocuous_$ac_func
40988 /* System header to define __stub macros and hopefully few prototypes,
40989 which can conflict with char $ac_func (); below.
40990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40991 <limits.h> exists even on freestanding compilers. */
40994 # include <limits.h>
40996 # include <assert.h>
41001 /* Override any gcc2 internal prototype to avoid an error. */
41006 /* We use char because int might match the return type of a gcc2
41007 builtin and then its argument prototype would still apply. */
41009 /* The GNU C library defines this for functions which it implements
41010 to always fail with ENOSYS. Some functions are actually named
41011 something starting with __ and the normal name is an alias. */
41012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41015 char (*f) () = $ac_func;
41024 return f != $ac_func;
41029 rm -f conftest.$ac_objext conftest$ac_exeext
41030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41031 (eval $ac_link) 2>conftest.er1
41033 grep -v '^ *+' conftest.er1 >conftest.err
41035 cat conftest.err >&5
41036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41037 (exit $ac_status); } &&
41038 { ac_try='test -z "$ac_c_werror_flag"
41039 || test ! -s conftest.err'
41040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41041 (eval $ac_try) 2>&5
41043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41044 (exit $ac_status); }; } &&
41045 { ac_try='test -s conftest$ac_exeext'
41046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41047 (eval $ac_try) 2>&5
41049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41050 (exit $ac_status); }; }; then
41051 eval "$as_ac_var=yes"
41053 echo "$as_me: failed program was:" >&5
41054 sed 's/^/| /' conftest.$ac_ext >&5
41056 eval "$as_ac_var=no"
41058 rm -f conftest.err conftest.$ac_objext \
41059 conftest$ac_exeext conftest.$ac_ext
41061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41063 if test `eval echo '${'$as_ac_var'}'` = yes; then
41064 cat >>confdefs.h <<_ACEOF
41065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41068 echo "$as_me:$LINENO: checking for _doprnt" >&5
41069 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41070 if test "${ac_cv_func__doprnt+set}" = set; then
41071 echo $ECHO_N "(cached) $ECHO_C" >&6
41073 cat >conftest.$ac_ext <<_ACEOF
41076 cat confdefs.h >>conftest.$ac_ext
41077 cat >>conftest.$ac_ext <<_ACEOF
41078 /* end confdefs.h. */
41079 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41081 #define _doprnt innocuous__doprnt
41083 /* System header to define __stub macros and hopefully few prototypes,
41084 which can conflict with char _doprnt (); below.
41085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41086 <limits.h> exists even on freestanding compilers. */
41089 # include <limits.h>
41091 # include <assert.h>
41096 /* Override any gcc2 internal prototype to avoid an error. */
41101 /* We use char because int might match the return type of a gcc2
41102 builtin and then its argument prototype would still apply. */
41104 /* The GNU C library defines this for functions which it implements
41105 to always fail with ENOSYS. Some functions are actually named
41106 something starting with __ and the normal name is an alias. */
41107 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41110 char (*f) () = _doprnt;
41119 return f != _doprnt;
41124 rm -f conftest.$ac_objext conftest$ac_exeext
41125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41126 (eval $ac_link) 2>conftest.er1
41128 grep -v '^ *+' conftest.er1 >conftest.err
41130 cat conftest.err >&5
41131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132 (exit $ac_status); } &&
41133 { ac_try='test -z "$ac_c_werror_flag"
41134 || test ! -s conftest.err'
41135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41136 (eval $ac_try) 2>&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); }; } &&
41140 { ac_try='test -s conftest$ac_exeext'
41141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41142 (eval $ac_try) 2>&5
41144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145 (exit $ac_status); }; }; then
41146 ac_cv_func__doprnt=yes
41148 echo "$as_me: failed program was:" >&5
41149 sed 's/^/| /' conftest.$ac_ext >&5
41151 ac_cv_func__doprnt=no
41153 rm -f conftest.err conftest.$ac_objext \
41154 conftest$ac_exeext conftest.$ac_ext
41156 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41157 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41158 if test $ac_cv_func__doprnt = yes; then
41160 cat >>confdefs.h <<\_ACEOF
41161 #define HAVE_DOPRNT 1
41171 if test $ac_cv_func_vprintf = yes ; then
41174 for ac_func in snprintf vsnprintf
41176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41177 echo "$as_me:$LINENO: checking for $ac_func" >&5
41178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41179 if eval "test \"\${$as_ac_var+set}\" = set"; then
41180 echo $ECHO_N "(cached) $ECHO_C" >&6
41182 cat >conftest.$ac_ext <<_ACEOF
41185 cat confdefs.h >>conftest.$ac_ext
41186 cat >>conftest.$ac_ext <<_ACEOF
41187 /* end confdefs.h. */
41188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41190 #define $ac_func innocuous_$ac_func
41192 /* System header to define __stub macros and hopefully few prototypes,
41193 which can conflict with char $ac_func (); below.
41194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41195 <limits.h> exists even on freestanding compilers. */
41198 # include <limits.h>
41200 # include <assert.h>
41205 /* Override any gcc2 internal prototype to avoid an error. */
41210 /* We use char because int might match the return type of a gcc2
41211 builtin and then its argument prototype would still apply. */
41213 /* The GNU C library defines this for functions which it implements
41214 to always fail with ENOSYS. Some functions are actually named
41215 something starting with __ and the normal name is an alias. */
41216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41219 char (*f) () = $ac_func;
41228 return f != $ac_func;
41233 rm -f conftest.$ac_objext conftest$ac_exeext
41234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41235 (eval $ac_link) 2>conftest.er1
41237 grep -v '^ *+' conftest.er1 >conftest.err
41239 cat conftest.err >&5
41240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241 (exit $ac_status); } &&
41242 { ac_try='test -z "$ac_c_werror_flag"
41243 || test ! -s conftest.err'
41244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245 (eval $ac_try) 2>&5
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); }; } &&
41249 { ac_try='test -s conftest$ac_exeext'
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; }; then
41255 eval "$as_ac_var=yes"
41257 echo "$as_me: failed program was:" >&5
41258 sed 's/^/| /' conftest.$ac_ext >&5
41260 eval "$as_ac_var=no"
41262 rm -f conftest.err conftest.$ac_objext \
41263 conftest$ac_exeext conftest.$ac_ext
41265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41267 if test `eval echo '${'$as_ac_var'}'` = yes; then
41268 cat >>confdefs.h <<_ACEOF
41269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41387 echo "$as_me:$LINENO: checking for $ac_func" >&5
41388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41389 if eval "test \"\${$as_ac_var+set}\" = set"; then
41390 echo $ECHO_N "(cached) $ECHO_C" >&6
41392 cat >conftest.$ac_ext <<_ACEOF
41395 cat confdefs.h >>conftest.$ac_ext
41396 cat >>conftest.$ac_ext <<_ACEOF
41397 /* end confdefs.h. */
41398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41400 #define $ac_func innocuous_$ac_func
41402 /* System header to define __stub macros and hopefully few prototypes,
41403 which can conflict with char $ac_func (); below.
41404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41405 <limits.h> exists even on freestanding compilers. */
41408 # include <limits.h>
41410 # include <assert.h>
41415 /* Override any gcc2 internal prototype to avoid an error. */
41420 /* We use char because int might match the return type of a gcc2
41421 builtin and then its argument prototype would still apply. */
41423 /* The GNU C library defines this for functions which it implements
41424 to always fail with ENOSYS. Some functions are actually named
41425 something starting with __ and the normal name is an alias. */
41426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41429 char (*f) () = $ac_func;
41438 return f != $ac_func;
41443 rm -f conftest.$ac_objext conftest$ac_exeext
41444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41445 (eval $ac_link) 2>conftest.er1
41447 grep -v '^ *+' conftest.er1 >conftest.err
41449 cat conftest.err >&5
41450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451 (exit $ac_status); } &&
41452 { ac_try='test -z "$ac_c_werror_flag"
41453 || test ! -s conftest.err'
41454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41455 (eval $ac_try) 2>&5
41457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41458 (exit $ac_status); }; } &&
41459 { ac_try='test -s conftest$ac_exeext'
41460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461 (eval $ac_try) 2>&5
41463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464 (exit $ac_status); }; }; then
41465 eval "$as_ac_var=yes"
41467 echo "$as_me: failed program was:" >&5
41468 sed 's/^/| /' conftest.$ac_ext >&5
41470 eval "$as_ac_var=no"
41472 rm -f conftest.err conftest.$ac_objext \
41473 conftest$ac_exeext conftest.$ac_ext
41475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41477 if test `eval echo '${'$as_ac_var'}'` = yes; then
41478 cat >>confdefs.h <<_ACEOF
41479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41488 for ac_func in getopt getpeereid
41490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41491 echo "$as_me:$LINENO: checking for $ac_func" >&5
41492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41493 if eval "test \"\${$as_ac_var+set}\" = set"; then
41494 echo $ECHO_N "(cached) $ECHO_C" >&6
41496 cat >conftest.$ac_ext <<_ACEOF
41499 cat confdefs.h >>conftest.$ac_ext
41500 cat >>conftest.$ac_ext <<_ACEOF
41501 /* end confdefs.h. */
41502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41504 #define $ac_func innocuous_$ac_func
41506 /* System header to define __stub macros and hopefully few prototypes,
41507 which can conflict with char $ac_func (); below.
41508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41509 <limits.h> exists even on freestanding compilers. */
41512 # include <limits.h>
41514 # include <assert.h>
41519 /* Override any gcc2 internal prototype to avoid an error. */
41524 /* We use char because int might match the return type of a gcc2
41525 builtin and then its argument prototype would still apply. */
41527 /* The GNU C library defines this for functions which it implements
41528 to always fail with ENOSYS. Some functions are actually named
41529 something starting with __ and the normal name is an alias. */
41530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41533 char (*f) () = $ac_func;
41542 return f != $ac_func;
41547 rm -f conftest.$ac_objext conftest$ac_exeext
41548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41549 (eval $ac_link) 2>conftest.er1
41551 grep -v '^ *+' conftest.er1 >conftest.err
41553 cat conftest.err >&5
41554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41555 (exit $ac_status); } &&
41556 { ac_try='test -z "$ac_c_werror_flag"
41557 || test ! -s conftest.err'
41558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559 (eval $ac_try) 2>&5
41561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); }; } &&
41563 { ac_try='test -s conftest$ac_exeext'
41564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41565 (eval $ac_try) 2>&5
41567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568 (exit $ac_status); }; }; then
41569 eval "$as_ac_var=yes"
41571 echo "$as_me: failed program was:" >&5
41572 sed 's/^/| /' conftest.$ac_ext >&5
41574 eval "$as_ac_var=no"
41576 rm -f conftest.err conftest.$ac_objext \
41577 conftest$ac_exeext conftest.$ac_ext
41579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41581 if test `eval echo '${'$as_ac_var'}'` = yes; then
41582 cat >>confdefs.h <<_ACEOF
41583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41588 "$ac_func.$ac_objext" | \
41589 *" $ac_func.$ac_objext" | \
41590 "$ac_func.$ac_objext "* | \
41591 *" $ac_func.$ac_objext "* ) ;;
41592 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41600 if test "$ac_cv_func_getopt" != yes; then
41601 LIBSRCS="$LIBSRCS getopt.c"
41603 if test "$ac_cv_func_getpeereid" != yes; then
41604 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41605 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41606 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41607 echo $ECHO_N "(cached) $ECHO_C" >&6
41609 cat >conftest.$ac_ext <<_ACEOF
41612 cat confdefs.h >>conftest.$ac_ext
41613 cat >>conftest.$ac_ext <<_ACEOF
41614 /* end confdefs.h. */
41615 $ac_includes_default
41616 #ifdef HAVE_SYS_SOCKET_H
41617 #include <sys/socket.h>
41623 static struct msghdr ac_aggr;
41624 if (ac_aggr.msg_accrightslen)
41630 rm -f conftest.$ac_objext
41631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41632 (eval $ac_compile) 2>conftest.er1
41634 grep -v '^ *+' conftest.er1 >conftest.err
41636 cat conftest.err >&5
41637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638 (exit $ac_status); } &&
41639 { ac_try='test -z "$ac_c_werror_flag"
41640 || test ! -s conftest.err'
41641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41642 (eval $ac_try) 2>&5
41644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41645 (exit $ac_status); }; } &&
41646 { ac_try='test -s conftest.$ac_objext'
41647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41648 (eval $ac_try) 2>&5
41650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651 (exit $ac_status); }; }; then
41652 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41654 echo "$as_me: failed program was:" >&5
41655 sed 's/^/| /' conftest.$ac_ext >&5
41657 cat >conftest.$ac_ext <<_ACEOF
41660 cat confdefs.h >>conftest.$ac_ext
41661 cat >>conftest.$ac_ext <<_ACEOF
41662 /* end confdefs.h. */
41663 $ac_includes_default
41664 #ifdef HAVE_SYS_SOCKET_H
41665 #include <sys/socket.h>
41671 static struct msghdr ac_aggr;
41672 if (sizeof ac_aggr.msg_accrightslen)
41678 rm -f conftest.$ac_objext
41679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41680 (eval $ac_compile) 2>conftest.er1
41682 grep -v '^ *+' conftest.er1 >conftest.err
41684 cat conftest.err >&5
41685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 (exit $ac_status); } &&
41687 { ac_try='test -z "$ac_c_werror_flag"
41688 || test ! -s conftest.err'
41689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41690 (eval $ac_try) 2>&5
41692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41693 (exit $ac_status); }; } &&
41694 { ac_try='test -s conftest.$ac_objext'
41695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41696 (eval $ac_try) 2>&5
41698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699 (exit $ac_status); }; }; then
41700 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41702 echo "$as_me: failed program was:" >&5
41703 sed 's/^/| /' conftest.$ac_ext >&5
41705 ac_cv_member_struct_msghdr_msg_accrightslen=no
41707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41711 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41712 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41713 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41715 cat >>confdefs.h <<_ACEOF
41716 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41722 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41723 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41724 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41725 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41726 echo $ECHO_N "(cached) $ECHO_C" >&6
41728 cat >conftest.$ac_ext <<_ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h. */
41734 $ac_includes_default
41735 #ifdef HAVE_SYS_SOCKET_H
41736 #include <sys/socket.h>
41742 static struct msghdr ac_aggr;
41743 if (ac_aggr.msg_control)
41749 rm -f conftest.$ac_objext
41750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41751 (eval $ac_compile) 2>conftest.er1
41753 grep -v '^ *+' conftest.er1 >conftest.err
41755 cat conftest.err >&5
41756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41757 (exit $ac_status); } &&
41758 { ac_try='test -z "$ac_c_werror_flag"
41759 || test ! -s conftest.err'
41760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41761 (eval $ac_try) 2>&5
41763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41764 (exit $ac_status); }; } &&
41765 { ac_try='test -s conftest.$ac_objext'
41766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41767 (eval $ac_try) 2>&5
41769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770 (exit $ac_status); }; }; then
41771 ac_cv_member_struct_msghdr_msg_control=yes
41773 echo "$as_me: failed program was:" >&5
41774 sed 's/^/| /' conftest.$ac_ext >&5
41776 cat >conftest.$ac_ext <<_ACEOF
41779 cat confdefs.h >>conftest.$ac_ext
41780 cat >>conftest.$ac_ext <<_ACEOF
41781 /* end confdefs.h. */
41782 $ac_includes_default
41783 #ifdef HAVE_SYS_SOCKET_H
41784 #include <sys/socket.h>
41790 static struct msghdr ac_aggr;
41791 if (sizeof ac_aggr.msg_control)
41797 rm -f conftest.$ac_objext
41798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41799 (eval $ac_compile) 2>conftest.er1
41801 grep -v '^ *+' conftest.er1 >conftest.err
41803 cat conftest.err >&5
41804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41805 (exit $ac_status); } &&
41806 { ac_try='test -z "$ac_c_werror_flag"
41807 || test ! -s conftest.err'
41808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41809 (eval $ac_try) 2>&5
41811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41812 (exit $ac_status); }; } &&
41813 { ac_try='test -s conftest.$ac_objext'
41814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41815 (eval $ac_try) 2>&5
41817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818 (exit $ac_status); }; }; then
41819 ac_cv_member_struct_msghdr_msg_control=yes
41821 echo "$as_me: failed program was:" >&5
41822 sed 's/^/| /' conftest.$ac_ext >&5
41824 ac_cv_member_struct_msghdr_msg_control=no
41826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41830 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41831 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41832 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41834 cat >>confdefs.h <<_ACEOF
41835 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41842 LIBSRCS="$LIBSRCS getpeereid.c"
41844 if test "$ac_cv_func_snprintf" != yes ||
41845 test "$ac_cv_func_vsnprintf" != yes; then
41846 if test "$ac_cv_func_snprintf" != yes; then
41848 cat >>confdefs.h <<\_ACEOF
41849 #define snprintf ber_pvt_snprintf
41853 if test "$ac_cv_func_vsnprintf" != yes; then
41855 cat >>confdefs.h <<\_ACEOF
41856 #define vsnprintf ber_pvt_vsnprintf
41863 if test "$ol_enable_slapi" != no ; then
41865 for ac_header in ltdl.h
41867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41869 echo "$as_me:$LINENO: checking for $ac_header" >&5
41870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41872 echo $ECHO_N "(cached) $ECHO_C" >&6
41874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41877 # Is the header compilable?
41878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41880 cat >conftest.$ac_ext <<_ACEOF
41883 cat confdefs.h >>conftest.$ac_ext
41884 cat >>conftest.$ac_ext <<_ACEOF
41885 /* end confdefs.h. */
41886 $ac_includes_default
41887 #include <$ac_header>
41889 rm -f conftest.$ac_objext
41890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41891 (eval $ac_compile) 2>conftest.er1
41893 grep -v '^ *+' conftest.er1 >conftest.err
41895 cat conftest.err >&5
41896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41897 (exit $ac_status); } &&
41898 { ac_try='test -z "$ac_c_werror_flag"
41899 || test ! -s conftest.err'
41900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41901 (eval $ac_try) 2>&5
41903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904 (exit $ac_status); }; } &&
41905 { ac_try='test -s conftest.$ac_objext'
41906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41907 (eval $ac_try) 2>&5
41909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910 (exit $ac_status); }; }; then
41911 ac_header_compiler=yes
41913 echo "$as_me: failed program was:" >&5
41914 sed 's/^/| /' conftest.$ac_ext >&5
41916 ac_header_compiler=no
41918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41920 echo "${ECHO_T}$ac_header_compiler" >&6
41922 # Is the header present?
41923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41925 cat >conftest.$ac_ext <<_ACEOF
41928 cat confdefs.h >>conftest.$ac_ext
41929 cat >>conftest.$ac_ext <<_ACEOF
41930 /* end confdefs.h. */
41931 #include <$ac_header>
41933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41936 grep -v '^ *+' conftest.er1 >conftest.err
41938 cat conftest.err >&5
41939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940 (exit $ac_status); } >/dev/null; then
41941 if test -s conftest.err; then
41942 ac_cpp_err=$ac_c_preproc_warn_flag
41943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41950 if test -z "$ac_cpp_err"; then
41951 ac_header_preproc=yes
41953 echo "$as_me: failed program was:" >&5
41954 sed 's/^/| /' conftest.$ac_ext >&5
41956 ac_header_preproc=no
41958 rm -f conftest.err conftest.$ac_ext
41959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41960 echo "${ECHO_T}$ac_header_preproc" >&6
41962 # So? What about this header?
41963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41969 ac_header_preproc=yes
41972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41986 ## ------------------------------------------ ##
41987 ## Report this to the AC_PACKAGE_NAME lists. ##
41988 ## ------------------------------------------ ##
41991 sed "s/^/$as_me: WARNING: /" >&2
41994 echo "$as_me:$LINENO: checking for $ac_header" >&5
41995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41997 echo $ECHO_N "(cached) $ECHO_C" >&6
41999 eval "$as_ac_Header=\$ac_header_preproc"
42001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42006 cat >>confdefs.h <<_ACEOF
42007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42015 if test $ac_cv_header_ltdl_h != yes ; then
42016 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
42017 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
42018 { (exit 1); exit 1; }; }
42020 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
42021 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
42022 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
42023 echo $ECHO_N "(cached) $ECHO_C" >&6
42025 ac_check_lib_save_LIBS=$LIBS
42026 LIBS="-lltdl $LIBS"
42027 cat >conftest.$ac_ext <<_ACEOF
42030 cat confdefs.h >>conftest.$ac_ext
42031 cat >>conftest.$ac_ext <<_ACEOF
42032 /* end confdefs.h. */
42034 /* Override any gcc2 internal prototype to avoid an error. */
42038 /* We use char because int might match the return type of a gcc2
42039 builtin and then its argument prototype would still apply. */
42049 rm -f conftest.$ac_objext conftest$ac_exeext
42050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42051 (eval $ac_link) 2>conftest.er1
42053 grep -v '^ *+' conftest.er1 >conftest.err
42055 cat conftest.err >&5
42056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057 (exit $ac_status); } &&
42058 { ac_try='test -z "$ac_c_werror_flag"
42059 || test ! -s conftest.err'
42060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42061 (eval $ac_try) 2>&5
42063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064 (exit $ac_status); }; } &&
42065 { ac_try='test -s conftest$ac_exeext'
42066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42067 (eval $ac_try) 2>&5
42069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42070 (exit $ac_status); }; }; then
42071 ac_cv_lib_ltdl_lt_dlinit=yes
42073 echo "$as_me: failed program was:" >&5
42074 sed 's/^/| /' conftest.$ac_ext >&5
42076 ac_cv_lib_ltdl_lt_dlinit=no
42078 rm -f conftest.err conftest.$ac_objext \
42079 conftest$ac_exeext conftest.$ac_ext
42080 LIBS=$ac_check_lib_save_LIBS
42082 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42083 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42084 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42087 LIBSLAPI=libslapi.a
42088 LIBSLAPITOOLS=../libslapi.a
42090 cat >>confdefs.h <<\_ACEOF
42091 #define HAVE_LIBLTDL 1
42096 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42097 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42098 { (exit 1); exit 1; }; }
42103 cat >>confdefs.h <<\_ACEOF
42104 #define LDAP_SLAPI 1
42109 if test "$ol_enable_debug" != no ; then
42111 cat >>confdefs.h <<\_ACEOF
42112 #define LDAP_DEBUG 1
42116 if test "$ol_enable_syslog" = yes ; then
42118 cat >>confdefs.h <<\_ACEOF
42119 #define LDAP_SYSLOG 1
42123 if test "$ol_link_kbind" != no ; then
42125 cat >>confdefs.h <<\_ACEOF
42126 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42130 if test "$ol_enable_proctitle" != no ; then
42132 cat >>confdefs.h <<\_ACEOF
42133 #define LDAP_PROCTITLE 1
42137 if test "$ol_enable_referrals" != no ; then
42139 cat >>confdefs.h <<\_ACEOF
42140 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42144 if test "$ol_enable_local" != no; then
42146 cat >>confdefs.h <<\_ACEOF
42147 #define LDAP_PF_LOCAL 1
42151 if test "$ol_link_ipv6" != no; then
42153 cat >>confdefs.h <<\_ACEOF
42154 #define LDAP_PF_INET6 1
42158 if test "$ol_enable_cleartext" != no ; then
42160 cat >>confdefs.h <<\_ACEOF
42161 #define SLAPD_CLEARTEXT 1
42165 if test "$ol_enable_crypt" != no ; then
42167 cat >>confdefs.h <<\_ACEOF
42168 #define SLAPD_CRYPT 1
42172 if test "$ol_link_spasswd" != no ; then
42174 cat >>confdefs.h <<\_ACEOF
42175 #define SLAPD_SPASSWD 1
42179 if test "$ol_enable_multimaster" != no ; then
42181 cat >>confdefs.h <<\_ACEOF
42182 #define SLAPD_MULTIMASTER 1
42186 if test "$ol_enable_rlookups" != no ; then
42188 cat >>confdefs.h <<\_ACEOF
42189 #define SLAPD_RLOOKUPS 1
42193 if test "$ol_enable_aci" != no ; then
42195 cat >>confdefs.h <<\_ACEOF
42196 #define SLAPD_ACI_ENABLED 1
42199 WITH_ACI_ENABLED=yes
42201 WITH_ACI_ENABLED=no
42204 if test "$ol_link_modules" != no ; then
42206 cat >>confdefs.h <<\_ACEOF
42207 #define SLAPD_MODULES 1
42211 SLAPD_MODULES_LDFLAGS="-dlopen self"
42215 cat >>confdefs.h <<\_ACEOF
42216 #define SLAPD_MOD_STATIC 1
42220 cat >>confdefs.h <<\_ACEOF
42221 #define SLAPD_MOD_DYNAMIC 2
42225 if test "$ol_enable_bdb" != no ; then
42227 BUILD_BDB=$ol_enable_bdb
42228 if test "$ol_enable_bdb" = mod ; then
42229 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42230 MFLAG=SLAPD_MOD_DYNAMIC
42232 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42233 MFLAG=SLAPD_MOD_STATIC
42236 cat >>confdefs.h <<_ACEOF
42237 #define SLAPD_BDB $MFLAG
42242 if test "$ol_enable_dnssrv" != no ; then
42244 BUILD_DNSSRV=$ol_enable_dnssrv
42245 if test "$ol_enable_dnssrv" = mod ; then
42246 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42247 MFLAG=SLAPD_MOD_DYNAMIC
42249 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42250 MFLAG=SLAPD_MOD_STATIC
42253 cat >>confdefs.h <<_ACEOF
42254 #define SLAPD_DNSSRV $MFLAG
42259 if test "$ol_enable_hdb" != no ; then
42261 BUILD_HDB=$ol_enable_hdb
42262 if test "$ol_enable_hdb" = mod ; then
42263 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42264 MFLAG=SLAPD_MOD_DYNAMIC
42266 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42267 MFLAG=SLAPD_MOD_STATIC
42270 cat >>confdefs.h <<_ACEOF
42271 #define SLAPD_HDB $MFLAG
42276 if test "$ol_enable_ldap" != no ; then
42278 BUILD_LDAP=$ol_enable_ldap
42279 if test "$ol_enable_ldap" = mod ; then
42280 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42281 MFLAG=SLAPD_MOD_DYNAMIC
42283 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42284 MFLAG=SLAPD_MOD_STATIC
42287 cat >>confdefs.h <<_ACEOF
42288 #define SLAPD_LDAP $MFLAG
42293 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
42295 BUILD_LDBM=$ol_enable_ldbm
42296 if test "$ol_enable_ldbm" = mod ; then
42297 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42298 MFLAG=SLAPD_MOD_DYNAMIC
42300 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42301 MFLAG=SLAPD_MOD_STATIC
42304 cat >>confdefs.h <<_ACEOF
42305 #define SLAPD_LDBM $MFLAG
42310 if test "$ol_enable_meta" != no ; then
42312 BUILD_META=$ol_enable_meta
42314 if test "$ol_enable_meta" = mod ; then
42315 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42316 MFLAG=SLAPD_MOD_DYNAMIC
42318 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42319 MFLAG=SLAPD_MOD_STATIC
42322 cat >>confdefs.h <<_ACEOF
42323 #define SLAPD_META $MFLAG
42328 if test "$ol_enable_monitor" != no ; then
42330 BUILD_MONITOR=$ol_enable_monitor
42331 if test "$ol_enable_monitor" = mod ; then
42332 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42333 MFLAG=SLAPD_MOD_DYNAMIC
42335 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42336 MFLAG=SLAPD_MOD_STATIC
42339 cat >>confdefs.h <<_ACEOF
42340 #define SLAPD_MONITOR $MFLAG
42345 if test "$ol_enable_null" != no ; then
42347 BUILD_NULL=$ol_enable_null
42348 if test "$ol_enable_null" = mod ; then
42349 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42350 MFLAG=SLAPD_MOD_DYNAMIC
42352 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42353 MFLAG=SLAPD_MOD_STATIC
42356 cat >>confdefs.h <<_ACEOF
42357 #define SLAPD_NULL $MFLAG
42362 if test "$ol_enable_passwd" != no ; then
42364 BUILD_PASSWD=$ol_enable_passwd
42365 if test "$ol_enable_passwd" = mod ; then
42366 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42367 MFLAG=SLAPD_MOD_DYNAMIC
42369 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42370 MFLAG=SLAPD_MOD_STATIC
42373 cat >>confdefs.h <<_ACEOF
42374 #define SLAPD_PASSWD $MFLAG
42379 if test "$ol_link_perl" != no ; then
42381 BUILD_PERL=$ol_enable_perl
42382 if test "$ol_enable_perl" = mod ; then
42383 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42384 MFLAG=SLAPD_MOD_DYNAMIC
42386 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42387 MFLAG=SLAPD_MOD_STATIC
42390 cat >>confdefs.h <<_ACEOF
42391 #define SLAPD_PERL $MFLAG
42396 if test "$ol_enable_relay" != no ; then
42398 BUILD_RELAY=$ol_enable_relay
42399 if test "$ol_enable_relay" = mod ; then
42400 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42401 MFLAG=SLAPD_MOD_DYNAMIC
42403 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42404 MFLAG=SLAPD_MOD_STATIC
42407 cat >>confdefs.h <<_ACEOF
42408 #define SLAPD_RELAY $MFLAG
42413 if test "$ol_enable_shell" != no ; then
42414 if test "$ol_link_threads" != no ; then
42415 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42416 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42419 BUILD_SHELL=$ol_enable_shell
42420 if test "$ol_enable_shell" = mod ; then
42421 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42422 MFLAG=SLAPD_MOD_DYNAMIC
42424 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42425 MFLAG=SLAPD_MOD_STATIC
42428 cat >>confdefs.h <<_ACEOF
42429 #define SLAPD_SHELL $MFLAG
42434 if test "$ol_link_sql" != no ; then
42436 BUILD_SQL=$ol_enable_sql
42437 if test "$ol_enable_sql" = mod; then
42438 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42439 MFLAG=SLAPD_MOD_DYNAMIC
42441 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42442 MFLAG=SLAPD_MOD_STATIC
42445 cat >>confdefs.h <<_ACEOF
42446 #define SLAPD_SQL $MFLAG
42451 if test "$ol_enable_accesslog" != no ; then
42452 BUILD_ACCESSLOG=$ol_enable_accesslog
42453 if test "$ol_enable_accesslog" = mod ; then
42454 MFLAG=SLAPD_MOD_DYNAMIC
42455 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42457 MFLAG=SLAPD_MOD_STATIC
42458 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42461 cat >>confdefs.h <<_ACEOF
42462 #define SLAPD_OVER_ACCESSLOG $MFLAG
42467 if test "$ol_enable_denyop" != no ; then
42468 BUILD_DENYOP=$ol_enable_denyop
42469 if test "$ol_enable_denyop" = mod ; then
42470 MFLAG=SLAPD_MOD_DYNAMIC
42471 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42473 MFLAG=SLAPD_MOD_STATIC
42474 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42477 cat >>confdefs.h <<_ACEOF
42478 #define SLAPD_OVER_DENYOP $MFLAG
42483 if test "$ol_enable_dyngroup" != no ; then
42484 BUILD_DYNGROUP=$ol_enable_dyngroup
42485 if test "$ol_enable_dyngroup" = mod ; then
42486 MFLAG=SLAPD_MOD_DYNAMIC
42487 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42489 MFLAG=SLAPD_MOD_STATIC
42490 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42493 cat >>confdefs.h <<_ACEOF
42494 #define SLAPD_OVER_DYNGROUP $MFLAG
42499 if test "$ol_enable_dynlist" != no ; then
42500 BUILD_DYNLIST=$ol_enable_dynlist
42501 if test "$ol_enable_dynlist" = mod ; then
42502 MFLAG=SLAPD_MOD_DYNAMIC
42503 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42505 MFLAG=SLAPD_MOD_STATIC
42506 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42509 cat >>confdefs.h <<_ACEOF
42510 #define SLAPD_OVER_DYNLIST $MFLAG
42515 if test "$ol_enable_lastmod" != no ; then
42516 BUILD_LASTMOD=$ol_enable_lastmod
42517 if test "$ol_enable_lastmod" = mod ; then
42518 MFLAG=SLAPD_MOD_DYNAMIC
42519 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42521 MFLAG=SLAPD_MOD_STATIC
42522 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42525 cat >>confdefs.h <<_ACEOF
42526 #define SLAPD_OVER_LASTMOD $MFLAG
42531 if test "$ol_enable_ppolicy" != no ; then
42532 BUILD_PPOLICY=$ol_enable_ppolicy
42533 if test "$ol_enable_ppolicy" = mod ; then
42534 MFLAG=SLAPD_MOD_DYNAMIC
42535 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42537 MFLAG=SLAPD_MOD_STATIC
42538 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42541 cat >>confdefs.h <<_ACEOF
42542 #define SLAPD_OVER_PPOLICY $MFLAG
42547 if test "$ol_enable_proxycache" != no ; then
42548 BUILD_PROXYCACHE=$ol_enable_proxycache
42549 if test "$ol_enable_proxycache" = mod ; then
42550 MFLAG=SLAPD_MOD_DYNAMIC
42551 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42553 MFLAG=SLAPD_MOD_STATIC
42554 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42557 cat >>confdefs.h <<_ACEOF
42558 #define SLAPD_OVER_PROXYCACHE $MFLAG
42563 if test "$ol_enable_refint" != no ; then
42564 BUILD_REFINT=$ol_enable_refint
42565 if test "$ol_enable_refint" = mod ; then
42566 MFLAG=SLAPD_MOD_DYNAMIC
42567 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42569 MFLAG=SLAPD_MOD_STATIC
42570 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42573 cat >>confdefs.h <<_ACEOF
42574 #define SLAPD_OVER_REFINT $MFLAG
42579 if test "$ol_enable_retcode" != no ; then
42580 BUILD_RETCODE=$ol_enable_retcode
42581 if test "$ol_enable_retcode" = mod ; then
42582 MFLAG=SLAPD_MOD_DYNAMIC
42583 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42585 MFLAG=SLAPD_MOD_STATIC
42586 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42589 cat >>confdefs.h <<_ACEOF
42590 #define SLAPD_OVER_RETCODE $MFLAG
42595 if test "$ol_enable_rwm" != no ; then
42597 BUILD_RWM=$ol_enable_rwm
42598 if test "$ol_enable_rwm" = mod ; then
42599 MFLAG=SLAPD_MOD_DYNAMIC
42600 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42602 MFLAG=SLAPD_MOD_STATIC
42603 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42606 cat >>confdefs.h <<_ACEOF
42607 #define SLAPD_OVER_RWM $MFLAG
42612 if test "$ol_enable_syncprov" != no ; then
42613 BUILD_SYNCPROV=$ol_enable_syncprov
42614 if test "$ol_enable_syncprov" = mod ; then
42615 MFLAG=SLAPD_MOD_DYNAMIC
42616 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42618 MFLAG=SLAPD_MOD_STATIC
42619 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42622 cat >>confdefs.h <<_ACEOF
42623 #define SLAPD_OVER_SYNCPROV $MFLAG
42628 if test "$ol_enable_translucent" != no ; then
42629 BUILD_TRANSLUCENT=$ol_enable_translucent
42630 if test "$ol_enable_translucent" = mod ; then
42631 MFLAG=SLAPD_MOD_DYNAMIC
42632 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42634 MFLAG=SLAPD_MOD_STATIC
42635 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42638 cat >>confdefs.h <<_ACEOF
42639 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42644 if test "$ol_enable_unique" != no ; then
42645 BUILD_UNIQUE=$ol_enable_unique
42646 if test "$ol_enable_unique" = mod ; then
42647 MFLAG=SLAPD_MOD_DYNAMIC
42648 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42650 MFLAG=SLAPD_MOD_STATIC
42651 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42654 cat >>confdefs.h <<_ACEOF
42655 #define SLAPD_OVER_UNIQUE $MFLAG
42660 if test "$ol_enable_valsort" != no ; then
42661 BUILD_VALSORT=$ol_enable_valsort
42662 if test "$ol_enable_valsort" = mod ; then
42663 MFLAG=SLAPD_MOD_DYNAMIC
42664 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42666 MFLAG=SLAPD_MOD_STATIC
42667 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42670 cat >>confdefs.h <<_ACEOF
42671 #define SLAPD_OVER_VALSORT $MFLAG
42676 if test "$ol_enable_slurpd" != no &&
42677 test "$ol_link_threads" != no &&
42678 test $BUILD_SLAPD = yes ; then
42682 if test "$ol_enable_rewrite" != no ; then
42684 cat >>confdefs.h <<\_ACEOF
42685 #define ENABLE_REWRITE 1
42691 if test "$ol_enable_slapi" != no ; then
42693 cat >>confdefs.h <<\_ACEOF
42694 #define ENABLE_SLAPI 1
42698 SLAPD_SLAPI_DEPEND=libslapi.a
42703 if test "$ac_cv_mingw32" = yes ; then
42705 SLAPD_MODULES_LDFLAGS=
42789 # Check whether --with-xxinstall or --without-xxinstall was given.
42790 if test "${with_xxinstall+set}" = set; then
42791 withval="$with_xxinstall"
42796 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"
42799 ac_config_commands="$ac_config_commands default"
42803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42804 # Let make expand exec_prefix.
42805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42809 # trailing colons and then remove the whole line if VPATH becomes empty
42810 # (actually we leave an empty line to preserve line numbers).
42811 if test "x$srcdir" = x.; then
42812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42813 s/:*\$(srcdir):*/:/;
42814 s/:*\${srcdir}:*/:/;
42816 s/^\([^=]*=[ ]*\):*/\1/;
42822 DEFS=-DHAVE_CONFIG_H
42826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42827 # 1. Remove the extension, and $U if already installed.
42828 ac_i=`echo "$ac_i" |
42829 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42831 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42832 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42834 LIBOBJS=$ac_libobjs
42836 LTLIBOBJS=$ac_ltlibobjs
42839 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42840 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42841 Usually this means the macro was only invoked conditionally." >&5
42842 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42843 Usually this means the macro was only invoked conditionally." >&2;}
42844 { (exit 1); exit 1; }; }
42846 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42847 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42848 Usually this means the macro was only invoked conditionally." >&5
42849 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42850 Usually this means the macro was only invoked conditionally." >&2;}
42851 { (exit 1); exit 1; }; }
42853 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42854 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42855 Usually this means the macro was only invoked conditionally." >&5
42856 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42857 Usually this means the macro was only invoked conditionally." >&2;}
42858 { (exit 1); exit 1; }; }
42861 : ${CONFIG_STATUS=./config.status}
42862 ac_clean_files_save=$ac_clean_files
42863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42864 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42865 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42866 cat >$CONFIG_STATUS <<_ACEOF
42868 # Generated by $as_me.
42869 # Run this file to recreate the current configuration.
42870 # Compiler output produced by configure, useful for debugging
42871 # configure, is in config.log if it exists.
42874 ac_cs_recheck=false
42876 SHELL=\${CONFIG_SHELL-$SHELL}
42879 cat >>$CONFIG_STATUS <<\_ACEOF
42880 ## --------------------- ##
42881 ## M4sh Initialization. ##
42882 ## --------------------- ##
42884 # Be Bourne compatible
42885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42888 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42889 # is contrary to our usage. Disable this feature.
42890 alias -g '${1+"$@"}'='"$@"'
42891 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42894 DUALCASE=1; export DUALCASE # for MKS sh
42896 # Support unset when possible.
42897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42904 # Work around bugs in pre-3.0 UWIN ksh.
42905 $as_unset ENV MAIL MAILPATH
42912 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42913 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42914 LC_TELEPHONE LC_TIME
42916 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42917 eval $as_var=C; export $as_var
42923 # Required to use basename.
42924 if expr a : '\(a\)' >/dev/null 2>&1; then
42930 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42931 as_basename=basename
42937 # Name of the executable.
42938 as_me=`$as_basename "$0" ||
42939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42940 X"$0" : 'X\(//\)$' \| \
42941 X"$0" : 'X\(/\)$' \| \
42942 . : '\(.\)' 2>/dev/null ||
42944 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42945 /^X\/\(\/\/\)$/{ s//\1/; q; }
42946 /^X\/\(\/\).*/{ s//\1/; q; }
42950 # PATH needs CR, and LINENO needs CR and PATH.
42951 # Avoid depending upon Character Ranges.
42952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42955 as_cr_digits='0123456789'
42956 as_cr_alnum=$as_cr_Letters$as_cr_digits
42958 # The user is always right.
42959 if test "${PATH_SEPARATOR+set}" != set; then
42960 echo "#! /bin/sh" >conf$$.sh
42961 echo "exit 0" >>conf$$.sh
42963 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42972 as_lineno_1=$LINENO
42973 as_lineno_2=$LINENO
42974 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42975 test "x$as_lineno_1" != "x$as_lineno_2" &&
42976 test "x$as_lineno_3" = "x$as_lineno_2" || {
42977 # Find who we are. Look in the path if we contain no path at all
42980 *[\\/]* ) as_myself=$0 ;;
42981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42982 for as_dir in $PATH
42985 test -z "$as_dir" && as_dir=.
42986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42991 # We did not find ourselves, most probably we were run as `sh COMMAND'
42992 # in which case we are not to be found in the path.
42993 if test "x$as_myself" = x; then
42996 if test ! -f "$as_myself"; then
42997 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42998 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42999 { (exit 1); exit 1; }; }
43001 case $CONFIG_SHELL in
43003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43004 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43007 test -z "$as_dir" && as_dir=.
43008 for as_base in sh bash ksh sh5; do
43011 if ("$as_dir/$as_base" -c '
43012 as_lineno_1=$LINENO
43013 as_lineno_2=$LINENO
43014 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43015 test "x$as_lineno_1" != "x$as_lineno_2" &&
43016 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43017 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43018 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43019 CONFIG_SHELL=$as_dir/$as_base
43020 export CONFIG_SHELL
43021 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43029 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43030 # uniformly replaced by the line number. The first 'sed' inserts a
43031 # line-number line before each line; the second 'sed' does the real
43032 # work. The second script uses 'N' to pair each line-number line
43033 # with the numbered line, and appends trailing '-' during
43034 # substitution so that $LINENO is not a special case at line end.
43035 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43036 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43037 sed '=' <$as_myself |
43042 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43045 s,^['$as_cr_digits']*\n,,
43046 ' >$as_me.lineno &&
43047 chmod +x $as_me.lineno ||
43048 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43049 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43050 { (exit 1); exit 1; }; }
43052 # Don't try to exec as it changes $[0], causing all sort of problems
43053 # (the dirname of $[0] is not the place where we might find the
43054 # original and so on. Autoconf is especially sensible to this).
43056 # Exit status is that of the last command.
43061 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43062 *c*,-n*) ECHO_N= ECHO_C='
43064 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43065 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43068 if expr a : '\(a\)' >/dev/null 2>&1; then
43074 rm -f conf$$ conf$$.exe conf$$.file
43076 if ln -s conf$$.file conf$$ 2>/dev/null; then
43077 # We could just check for DJGPP; but this test a) works b) is more generic
43078 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43079 if test -f conf$$.exe; then
43080 # Don't use ln at all; we don't have any links
43085 elif ln conf$$.file conf$$ 2>/dev/null; then
43090 rm -f conf$$ conf$$.exe conf$$.file
43092 if mkdir -p . 2>/dev/null; then
43095 test -d ./-p && rmdir ./-p
43099 as_executable_p="test -f"
43101 # Sed expression to map a string onto a valid CPP name.
43102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43104 # Sed expression to map a string onto a valid variable name.
43105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43109 # We need space, tab and new line, in precisely that order.
43119 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43120 # report actual input values of CONFIG_FILES etc. instead of their
43121 # values after options handling. Logging --version etc. is OK.
43125 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43126 ## Running $as_me. ##
43131 This file was extended by $as_me, which was
43132 generated by GNU Autoconf 2.59. Invocation command line was
43134 CONFIG_FILES = $CONFIG_FILES
43135 CONFIG_HEADERS = $CONFIG_HEADERS
43136 CONFIG_LINKS = $CONFIG_LINKS
43137 CONFIG_COMMANDS = $CONFIG_COMMANDS
43141 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43145 # Files that config.status was made for.
43146 if test -n "$ac_config_files"; then
43147 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43150 if test -n "$ac_config_headers"; then
43151 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43154 if test -n "$ac_config_links"; then
43155 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43158 if test -n "$ac_config_commands"; then
43159 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43162 cat >>$CONFIG_STATUS <<\_ACEOF
43165 \`$as_me' instantiates files from templates according to the
43166 current configuration.
43168 Usage: $0 [OPTIONS] [FILE]...
43170 -h, --help print this help, then exit
43171 -V, --version print version number, then exit
43172 -q, --quiet do not print progress messages
43173 -d, --debug don't remove temporary files
43174 --recheck update $as_me by reconfiguring in the same conditions
43175 --file=FILE[:TEMPLATE]
43176 instantiate the configuration file FILE
43177 --header=FILE[:TEMPLATE]
43178 instantiate the configuration header FILE
43180 Configuration files:
43183 Configuration headers:
43186 Configuration commands:
43189 Report bugs to <bug-autoconf@gnu.org>."
43192 cat >>$CONFIG_STATUS <<_ACEOF
43195 configured by $0, generated by GNU Autoconf 2.59,
43196 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43198 Copyright (C) 2003 Free Software Foundation, Inc.
43199 This config.status script is free software; the Free Software Foundation
43200 gives unlimited permission to copy, distribute and modify it."
43205 cat >>$CONFIG_STATUS <<\_ACEOF
43206 # If no file are specified by the user, then we need to provide default
43207 # value. By we need to know if files were specified by the user.
43213 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43214 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43222 *) # This is not an option, so the user has probably given explicit
43225 ac_need_defaults=false;;
43229 # Handling of the options.
43231 cat >>$CONFIG_STATUS <<\_ACEOF
43232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43234 --version | --vers* | -V )
43235 echo "$ac_cs_version"; exit 0 ;;
43237 # Conflict between --help and --header
43238 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43239 Try \`$0 --help' for more information." >&5
43240 echo "$as_me: error: ambiguous option: $1
43241 Try \`$0 --help' for more information." >&2;}
43242 { (exit 1); exit 1; }; };;
43243 --help | --hel | -h )
43244 echo "$ac_cs_usage"; exit 0 ;;
43245 --debug | --d* | -d )
43247 --file | --fil | --fi | --f )
43249 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43250 ac_need_defaults=false;;
43251 --header | --heade | --head | --hea )
43253 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43254 ac_need_defaults=false;;
43255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43256 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43259 # This is an error.
43260 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43261 Try \`$0 --help' for more information." >&5
43262 echo "$as_me: error: unrecognized option: $1
43263 Try \`$0 --help' for more information." >&2;}
43264 { (exit 1); exit 1; }; } ;;
43266 *) ac_config_targets="$ac_config_targets $1" ;;
43272 ac_configure_extra_args=
43274 if $ac_cs_silent; then
43276 ac_configure_extra_args="$ac_configure_extra_args --silent"
43280 cat >>$CONFIG_STATUS <<_ACEOF
43281 if \$ac_cs_recheck; then
43282 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43283 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43288 cat >>$CONFIG_STATUS <<_ACEOF
43290 # INIT-COMMANDS section.
43293 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43294 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43300 cat >>$CONFIG_STATUS <<\_ACEOF
43301 for ac_config_target in $ac_config_targets
43303 case "$ac_config_target" in
43304 # Handling of arguments.
43305 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43306 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43307 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43308 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43309 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43310 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43311 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43312 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43313 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43314 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43315 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43316 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43317 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43318 "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" ;;
43319 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43320 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43321 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43322 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43323 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43324 "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" ;;
43325 "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" ;;
43326 "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" ;;
43327 "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" ;;
43328 "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" ;;
43329 "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" ;;
43330 "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" ;;
43331 "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" ;;
43332 "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" ;;
43333 "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" ;;
43334 "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" ;;
43335 "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" ;;
43336 "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" ;;
43337 "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" ;;
43338 "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" ;;
43339 "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" ;;
43340 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43341 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43342 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43343 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43344 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43345 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43346 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43347 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43348 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43349 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43350 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43351 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43352 { (exit 1); exit 1; }; };;
43356 # If the user did not use the arguments to specify the items to instantiate,
43357 # then the envvar interface is used. Set only those that are not.
43358 # We use the long form for the default assignment because of an extremely
43359 # bizarre bug on SunOS 4.1.3.
43360 if $ac_need_defaults; then
43361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43366 # Have a temporary directory for convenience. Make it in the build tree
43367 # simply because there is no reason to put it here, and in addition,
43368 # creating and moving files from /tmp can sometimes cause problems.
43369 # Create a temporary directory, and hook for its removal unless debugging.
43372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43373 trap '{ (exit 1); exit 1; }' 1 2 13 15
43376 # Create a (secure) tmp directory for tmp files.
43379 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43380 test -n "$tmp" && test -d "$tmp"
43383 tmp=./confstat$$-$RANDOM
43384 (umask 077 && mkdir $tmp)
43387 echo "$me: cannot create a temporary directory in ." >&2
43388 { (exit 1); exit 1; }
43393 cat >>$CONFIG_STATUS <<_ACEOF
43396 # CONFIG_FILES section.
43399 # No need to generate the scripts if there are no CONFIG_FILES.
43400 # This happens for instance when ./config.status config.h
43401 if test -n "\$CONFIG_FILES"; then
43402 # Protect against being on the right side of a sed subst in config.status.
43403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43405 s,@SHELL@,$SHELL,;t t
43406 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43407 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43408 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43409 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43410 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43411 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43412 s,@exec_prefix@,$exec_prefix,;t t
43413 s,@prefix@,$prefix,;t t
43414 s,@program_transform_name@,$program_transform_name,;t t
43415 s,@bindir@,$bindir,;t t
43416 s,@sbindir@,$sbindir,;t t
43417 s,@libexecdir@,$libexecdir,;t t
43418 s,@datadir@,$datadir,;t t
43419 s,@sysconfdir@,$sysconfdir,;t t
43420 s,@sharedstatedir@,$sharedstatedir,;t t
43421 s,@localstatedir@,$localstatedir,;t t
43422 s,@libdir@,$libdir,;t t
43423 s,@includedir@,$includedir,;t t
43424 s,@oldincludedir@,$oldincludedir,;t t
43425 s,@infodir@,$infodir,;t t
43426 s,@mandir@,$mandir,;t t
43427 s,@build_alias@,$build_alias,;t t
43428 s,@host_alias@,$host_alias,;t t
43429 s,@target_alias@,$target_alias,;t t
43430 s,@DEFS@,$DEFS,;t t
43431 s,@ECHO_C@,$ECHO_C,;t t
43432 s,@ECHO_N@,$ECHO_N,;t t
43433 s,@ECHO_T@,$ECHO_T,;t t
43434 s,@LIBS@,$LIBS,;t t
43435 s,@build@,$build,;t t
43436 s,@build_cpu@,$build_cpu,;t t
43437 s,@build_vendor@,$build_vendor,;t t
43438 s,@build_os@,$build_os,;t t
43439 s,@host@,$host,;t t
43440 s,@host_cpu@,$host_cpu,;t t
43441 s,@host_vendor@,$host_vendor,;t t
43442 s,@host_os@,$host_os,;t t
43443 s,@target@,$target,;t t
43444 s,@target_cpu@,$target_cpu,;t t
43445 s,@target_vendor@,$target_vendor,;t t
43446 s,@target_os@,$target_os,;t t
43447 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43448 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43449 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43450 s,@CYGPATH_W@,$CYGPATH_W,;t t
43451 s,@PACKAGE@,$PACKAGE,;t t
43452 s,@VERSION@,$VERSION,;t t
43453 s,@ACLOCAL@,$ACLOCAL,;t t
43454 s,@AUTOCONF@,$AUTOCONF,;t t
43455 s,@AUTOMAKE@,$AUTOMAKE,;t t
43456 s,@AUTOHEADER@,$AUTOHEADER,;t t
43457 s,@MAKEINFO@,$MAKEINFO,;t t
43458 s,@install_sh@,$install_sh,;t t
43459 s,@STRIP@,$STRIP,;t t
43460 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43461 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43462 s,@mkdir_p@,$mkdir_p,;t t
43464 s,@SET_MAKE@,$SET_MAKE,;t t
43465 s,@am__leading_dot@,$am__leading_dot,;t t
43466 s,@AMTAR@,$AMTAR,;t t
43467 s,@am__tar@,$am__tar,;t t
43468 s,@am__untar@,$am__untar,;t t
43469 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43470 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43471 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43472 s,@top_builddir@,$top_builddir,;t t
43473 s,@ldap_subdir@,$ldap_subdir,;t t
43476 s,@CFLAGS@,$CFLAGS,;t t
43477 s,@LDFLAGS@,$LDFLAGS,;t t
43478 s,@CPPFLAGS@,$CPPFLAGS,;t t
43479 s,@ac_ct_CC@,$ac_ct_CC,;t t
43480 s,@EXEEXT@,$EXEEXT,;t t
43481 s,@OBJEXT@,$OBJEXT,;t t
43482 s,@DEPDIR@,$DEPDIR,;t t
43483 s,@am__include@,$am__include,;t t
43484 s,@am__quote@,$am__quote,;t t
43485 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43486 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43487 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43488 s,@CCDEPMODE@,$CCDEPMODE,;t t
43489 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43490 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43491 s,@EGREP@,$EGREP,;t t
43492 s,@LN_S@,$LN_S,;t t
43493 s,@ECHO@,$ECHO,;t t
43494 s,@ac_ct_AR@,$ac_ct_AR,;t t
43495 s,@RANLIB@,$RANLIB,;t t
43496 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43497 s,@DLLTOOL@,$DLLTOOL,;t t
43498 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43500 s,@ac_ct_AS@,$ac_ct_AS,;t t
43501 s,@OBJDUMP@,$OBJDUMP,;t t
43502 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43504 s,@LIBTOOL@,$LIBTOOL,;t t
43505 s,@PERLBIN@,$PERLBIN,;t t
43506 s,@OL_MKDEP@,$OL_MKDEP,;t t
43507 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43508 s,@LTSTATIC@,$LTSTATIC,;t t
43509 s,@LIBOBJS@,$LIBOBJS,;t t
43510 s,@LIBSRCS@,$LIBSRCS,;t t
43511 s,@PLAT@,$PLAT,;t t
43512 s,@WITH_SASL@,$WITH_SASL,;t t
43513 s,@WITH_TLS@,$WITH_TLS,;t t
43514 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43515 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43516 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43517 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43518 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43519 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43520 s,@BUILD_BDB@,$BUILD_BDB,;t t
43521 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43522 s,@BUILD_HDB@,$BUILD_HDB,;t t
43523 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43524 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43525 s,@BUILD_META@,$BUILD_META,;t t
43526 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43527 s,@BUILD_NULL@,$BUILD_NULL,;t t
43528 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43529 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43530 s,@BUILD_PERL@,$BUILD_PERL,;t t
43531 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43532 s,@BUILD_SQL@,$BUILD_SQL,;t t
43533 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43534 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43535 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43536 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43537 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43538 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43539 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43540 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43541 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43542 s,@BUILD_RWM@,$BUILD_RWM,;t t
43543 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43544 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43545 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43546 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43547 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43548 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43549 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43550 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43551 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43552 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43553 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43554 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43555 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43556 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43557 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43558 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43559 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43560 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43561 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43562 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43563 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43564 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43565 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43566 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43567 s,@SASL_LIBS@,$SASL_LIBS,;t t
43568 s,@TLS_LIBS@,$TLS_LIBS,;t t
43569 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43570 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43571 s,@LIBSLAPI@,$LIBSLAPI,;t t
43572 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43573 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43574 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43575 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43576 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43577 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43578 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43579 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43584 cat >>$CONFIG_STATUS <<\_ACEOF
43585 # Split the substitutions into bite-sized pieces for seds with
43586 # small command number limits, like on Digital OSF/1 and HP-UX.
43587 ac_max_sed_lines=48
43588 ac_sed_frag=1 # Number of current file.
43589 ac_beg=1 # First line for current file.
43590 ac_end=$ac_max_sed_lines # Line after last line for current file.
43593 while $ac_more_lines; do
43594 if test $ac_beg -gt 1; then
43595 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43597 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43599 if test ! -s $tmp/subs.frag; then
43600 ac_more_lines=false
43602 # The purpose of the label and of the branching condition is to
43603 # speed up the sed processing (if there are no `@' at all, there
43604 # is no need to browse any of the substitutions).
43605 # These are the two extra sed commands mentioned above.
43607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43608 if test -z "$ac_sed_cmds"; then
43609 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43611 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43613 ac_sed_frag=`expr $ac_sed_frag + 1`
43615 ac_end=`expr $ac_end + $ac_max_sed_lines`
43618 if test -z "$ac_sed_cmds"; then
43621 fi # test -n "$CONFIG_FILES"
43624 cat >>$CONFIG_STATUS <<\_ACEOF
43625 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43626 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43628 - | *:- | *:-:* ) # input from stdin
43630 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43632 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43634 * ) ac_file_in=$ac_file.in ;;
43637 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43638 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43640 X"$ac_file" : 'X\(//\)[^/]' \| \
43641 X"$ac_file" : 'X\(//\)$' \| \
43642 X"$ac_file" : 'X\(/\)' \| \
43643 . : '\(.\)' 2>/dev/null ||
43645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43647 /^X\(\/\/\)$/{ s//\1/; q; }
43648 /^X\(\/\).*/{ s//\1/; q; }
43650 { if $as_mkdir_p; then
43655 while test ! -d "$as_dir"; do
43656 as_dirs="$as_dir $as_dirs"
43657 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43659 X"$as_dir" : 'X\(//\)[^/]' \| \
43660 X"$as_dir" : 'X\(//\)$' \| \
43661 X"$as_dir" : 'X\(/\)' \| \
43662 . : '\(.\)' 2>/dev/null ||
43664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43666 /^X\(\/\/\)$/{ s//\1/; q; }
43667 /^X\(\/\).*/{ s//\1/; q; }
43670 test ! -n "$as_dirs" || mkdir $as_dirs
43671 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43672 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43673 { (exit 1); exit 1; }; }; }
43677 if test "$ac_dir" != .; then
43678 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43679 # A "../" for each directory in $ac_dir_suffix.
43680 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43682 ac_dir_suffix= ac_top_builddir=
43686 .) # No --srcdir option. We are building in place.
43688 if test -z "$ac_top_builddir"; then
43691 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43693 [\\/]* | ?:[\\/]* ) # Absolute path.
43694 ac_srcdir=$srcdir$ac_dir_suffix;
43695 ac_top_srcdir=$srcdir ;;
43696 *) # Relative path.
43697 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43698 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43701 # Do not use `cd foo && pwd` to compute absolute paths, because
43702 # the directories may not exist.
43704 .) ac_abs_builddir="$ac_dir";;
43707 .) ac_abs_builddir=`pwd`;;
43708 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43709 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43712 case $ac_abs_builddir in
43713 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43715 case ${ac_top_builddir}. in
43716 .) ac_abs_top_builddir=$ac_abs_builddir;;
43717 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43718 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43721 case $ac_abs_builddir in
43722 .) ac_abs_srcdir=$ac_srcdir;;
43725 .) ac_abs_srcdir=$ac_abs_builddir;;
43726 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43727 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43730 case $ac_abs_builddir in
43731 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43733 case $ac_top_srcdir in
43734 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43735 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43736 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43743 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43746 if test x"$ac_file" != x-; then
43747 { echo "$as_me:$LINENO: creating $ac_file" >&5
43748 echo "$as_me: creating $ac_file" >&6;}
43751 # Let's still pretend it is `configure' which instantiates (i.e., don't
43752 # use $as_me), people would be surprised to read:
43753 # /* config.h. Generated by config.status. */
43754 if test x"$ac_file" = x-; then
43757 configure_input="$ac_file. "
43759 configure_input=$configure_input"Generated from `echo $ac_file_in |
43760 sed 's,.*/,,'` by configure."
43762 # First look for the input files in the build tree, otherwise in the
43764 ac_file_inputs=`IFS=:
43765 for f in $ac_file_in; do
43767 -) echo $tmp/stdin ;;
43769 # Absolute (can't be DOS-style, as IFS=:)
43770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43771 echo "$as_me: error: cannot find input file: $f" >&2;}
43772 { (exit 1); exit 1; }; }
43775 if test -f "$f"; then
43778 elif test -f "$srcdir/$f"; then
43783 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43784 echo "$as_me: error: cannot find input file: $f" >&2;}
43785 { (exit 1); exit 1; }; }
43788 done` || { (exit 1); exit 1; }
43790 cat >>$CONFIG_STATUS <<_ACEOF
43794 cat >>$CONFIG_STATUS <<\_ACEOF
43796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43797 s,@configure_input@,$configure_input,;t t
43798 s,@srcdir@,$ac_srcdir,;t t
43799 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43800 s,@top_srcdir@,$ac_top_srcdir,;t t
43801 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43802 s,@builddir@,$ac_builddir,;t t
43803 s,@abs_builddir@,$ac_abs_builddir,;t t
43804 s,@top_builddir@,$ac_top_builddir,;t t
43805 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43806 s,@INSTALL@,$ac_INSTALL,;t t
43807 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43809 if test x"$ac_file" != x-; then
43810 mv $tmp/out $ac_file
43818 cat >>$CONFIG_STATUS <<\_ACEOF
43821 # CONFIG_HEADER section.
43824 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43825 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43827 # ac_d sets the value in "#define NAME VALUE" lines.
43828 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43829 ac_dB='[ ].*$,\1#\2'
43832 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43833 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
43834 ac_uB='$,\1#\2define\3'
43838 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43841 - | *:- | *:-:* ) # input from stdin
43843 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43845 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43847 * ) ac_file_in=$ac_file.in ;;
43850 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43851 echo "$as_me: creating $ac_file" >&6;}
43853 # First look for the input files in the build tree, otherwise in the
43855 ac_file_inputs=`IFS=:
43856 for f in $ac_file_in; do
43858 -) echo $tmp/stdin ;;
43860 # Absolute (can't be DOS-style, as IFS=:)
43861 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43862 echo "$as_me: error: cannot find input file: $f" >&2;}
43863 { (exit 1); exit 1; }; }
43864 # Do quote $f, to prevent DOS paths from being IFS'd.
43867 if test -f "$f"; then
43870 elif test -f "$srcdir/$f"; then
43875 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43876 echo "$as_me: error: cannot find input file: $f" >&2;}
43877 { (exit 1); exit 1; }; }
43880 done` || { (exit 1); exit 1; }
43881 # Remove the trailing spaces.
43882 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
43886 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43887 # `conftest.undefs', that substitutes the proper values into
43888 # config.h.in to produce config.h. The first handles `#define'
43889 # templates, and the second `#undef' templates.
43890 # And first: Protect against being on the right side of a sed subst in
43891 # config.status. Protect against being in an unquoted here document
43892 # in config.status.
43893 rm -f conftest.defines conftest.undefs
43894 # Using a here document instead of a string reduces the quoting nightmare.
43895 # Putting comments in sed scripts is not portable.
43897 # `end' is used to avoid that the second main sed command (meant for
43898 # 0-ary CPP macros) applies to n-ary macro definitions.
43899 # See the Autoconf documentation for `clear'.
43900 cat >confdef2sed.sed <<\_ACEOF
43905 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43907 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43910 # If some macros were called several times there might be several times
43911 # the same #defines, which is useless. Nevertheless, we may not want to
43912 # sort them, since we want the *last* AC-DEFINE to be honored.
43913 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43914 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43915 rm -f confdef2sed.sed
43917 # This sed command replaces #undef with comments. This is necessary, for
43918 # example, in the case of _POSIX_SOURCE, which is predefined and required
43919 # on some systems where configure will not decide to define it.
43920 cat >>conftest.undefs <<\_ACEOF
43921 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43924 # Break up conftest.defines because some shells have a limit on the size
43925 # of here documents, and old seds have small limits too (100 cmds).
43926 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43927 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43928 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43929 echo ' :' >>$CONFIG_STATUS
43930 rm -f conftest.tail
43931 while grep . conftest.defines >/dev/null
43933 # Write a limited-size here document to $tmp/defines.sed.
43934 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43935 # Speed up: don't consider the non `#define' lines.
43936 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
43937 # Work around the forget-to-reset-the-flag bug.
43938 echo 't clr' >>$CONFIG_STATUS
43939 echo ': clr' >>$CONFIG_STATUS
43940 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43942 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43944 mv $tmp/out $tmp/in
43946 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43947 rm -f conftest.defines
43948 mv conftest.tail conftest.defines
43950 rm -f conftest.defines
43951 echo ' fi # grep' >>$CONFIG_STATUS
43952 echo >>$CONFIG_STATUS
43954 # Break up conftest.undefs because some shells have a limit on the size
43955 # of here documents, and old seds have small limits too (100 cmds).
43956 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43957 rm -f conftest.tail
43958 while grep . conftest.undefs >/dev/null
43960 # Write a limited-size here document to $tmp/undefs.sed.
43961 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43962 # Speed up: don't consider the non `#undef'
43963 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
43964 # Work around the forget-to-reset-the-flag bug.
43965 echo 't clr' >>$CONFIG_STATUS
43966 echo ': clr' >>$CONFIG_STATUS
43967 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43969 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43971 mv $tmp/out $tmp/in
43973 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43974 rm -f conftest.undefs
43975 mv conftest.tail conftest.undefs
43977 rm -f conftest.undefs
43979 cat >>$CONFIG_STATUS <<\_ACEOF
43980 # Let's still pretend it is `configure' which instantiates (i.e., don't
43981 # use $as_me), people would be surprised to read:
43982 # /* config.h. Generated by config.status. */
43983 if test x"$ac_file" = x-; then
43984 echo "/* Generated by configure. */" >$tmp/config.h
43986 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43988 cat $tmp/in >>$tmp/config.h
43990 if test x"$ac_file" != x-; then
43991 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43993 echo "$as_me: $ac_file is unchanged" >&6;}
43995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43997 X"$ac_file" : 'X\(//\)[^/]' \| \
43998 X"$ac_file" : 'X\(//\)$' \| \
43999 X"$ac_file" : 'X\(/\)' \| \
44000 . : '\(.\)' 2>/dev/null ||
44002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44004 /^X\(\/\/\)$/{ s//\1/; q; }
44005 /^X\(\/\).*/{ s//\1/; q; }
44007 { if $as_mkdir_p; then
44012 while test ! -d "$as_dir"; do
44013 as_dirs="$as_dir $as_dirs"
44014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44016 X"$as_dir" : 'X\(//\)[^/]' \| \
44017 X"$as_dir" : 'X\(//\)$' \| \
44018 X"$as_dir" : 'X\(/\)' \| \
44019 . : '\(.\)' 2>/dev/null ||
44021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44023 /^X\(\/\/\)$/{ s//\1/; q; }
44024 /^X\(\/\).*/{ s//\1/; q; }
44027 test ! -n "$as_dirs" || mkdir $as_dirs
44028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44029 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44030 { (exit 1); exit 1; }; }; }
44033 mv $tmp/config.h $ac_file
44037 rm -f $tmp/config.h
44039 # Compute $ac_file's index in $config_headers.
44041 for _am_header in $config_headers :; do
44042 case $_am_header in
44043 $ac_file | $ac_file:* )
44046 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44049 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
44050 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44051 X$ac_file : 'X\(//\)[^/]' \| \
44052 X$ac_file : 'X\(//\)$' \| \
44053 X$ac_file : 'X\(/\)' \| \
44054 . : '\(.\)' 2>/dev/null ||
44056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44058 /^X\(\/\/\)$/{ s//\1/; q; }
44059 /^X\(\/\).*/{ s//\1/; q; }
44060 s/.*/./; q'`/stamp-h$_am_stamp_count
44063 cat >>$CONFIG_STATUS <<\_ACEOF
44066 # CONFIG_COMMANDS section.
44068 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44069 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44070 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44071 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44072 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44073 X"$ac_dest" : 'X\(//\)[^/]' \| \
44074 X"$ac_dest" : 'X\(//\)$' \| \
44075 X"$ac_dest" : 'X\(/\)' \| \
44076 . : '\(.\)' 2>/dev/null ||
44078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44080 /^X\(\/\/\)$/{ s//\1/; q; }
44081 /^X\(\/\).*/{ s//\1/; q; }
44083 { if $as_mkdir_p; then
44088 while test ! -d "$as_dir"; do
44089 as_dirs="$as_dir $as_dirs"
44090 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44092 X"$as_dir" : 'X\(//\)[^/]' \| \
44093 X"$as_dir" : 'X\(//\)$' \| \
44094 X"$as_dir" : 'X\(/\)' \| \
44095 . : '\(.\)' 2>/dev/null ||
44097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44099 /^X\(\/\/\)$/{ s//\1/; q; }
44100 /^X\(\/\).*/{ s//\1/; q; }
44103 test ! -n "$as_dirs" || mkdir $as_dirs
44104 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44105 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44106 { (exit 1); exit 1; }; }; }
44110 if test "$ac_dir" != .; then
44111 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44112 # A "../" for each directory in $ac_dir_suffix.
44113 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44115 ac_dir_suffix= ac_top_builddir=
44119 .) # No --srcdir option. We are building in place.
44121 if test -z "$ac_top_builddir"; then
44124 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44126 [\\/]* | ?:[\\/]* ) # Absolute path.
44127 ac_srcdir=$srcdir$ac_dir_suffix;
44128 ac_top_srcdir=$srcdir ;;
44129 *) # Relative path.
44130 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44131 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44134 # Do not use `cd foo && pwd` to compute absolute paths, because
44135 # the directories may not exist.
44137 .) ac_abs_builddir="$ac_dir";;
44140 .) ac_abs_builddir=`pwd`;;
44141 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44142 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44145 case $ac_abs_builddir in
44146 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44148 case ${ac_top_builddir}. in
44149 .) ac_abs_top_builddir=$ac_abs_builddir;;
44150 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44151 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44154 case $ac_abs_builddir in
44155 .) ac_abs_srcdir=$ac_srcdir;;
44158 .) ac_abs_srcdir=$ac_abs_builddir;;
44159 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44160 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44163 case $ac_abs_builddir in
44164 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44166 case $ac_top_srcdir in
44167 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44168 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44169 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44174 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44175 echo "$as_me: executing $ac_dest commands" >&6;}
44177 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44178 # Strip MF so we end up with the name of the file.
44179 mf=`echo "$mf" | sed -e 's/:.*$//'`
44180 # Check whether this is an Automake generated Makefile or not.
44181 # We used to match only the files named `Makefile.in', but
44182 # some people rename them; so instead we look at the file content.
44183 # Grep'ing the first line is not enough: some people post-process
44184 # each Makefile.in and add a new line on top of each file to say so.
44185 # So let's grep whole file.
44186 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44187 dirpart=`(dirname "$mf") 2>/dev/null ||
44188 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44189 X"$mf" : 'X\(//\)[^/]' \| \
44190 X"$mf" : 'X\(//\)$' \| \
44191 X"$mf" : 'X\(/\)' \| \
44192 . : '\(.\)' 2>/dev/null ||
44194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44196 /^X\(\/\/\)$/{ s//\1/; q; }
44197 /^X\(\/\).*/{ s//\1/; q; }
44202 # Extract the definition of DEPDIR, am__include, and am__quote
44203 # from the Makefile without running `make'.
44204 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44205 test -z "$DEPDIR" && continue
44206 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44207 test -z "am__include" && continue
44208 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44209 # When using ansi2knr, U may be empty or an underscore; expand it
44210 U=`sed -n 's/^U = //p' < "$mf"`
44211 # Find all dependency output files, they are included files with
44212 # $(DEPDIR) in their names. We invoke sed twice because it is the
44213 # simplest approach to changing $(DEPDIR) to its actual value in the
44215 for file in `sed -n "
44216 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44217 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44218 # Make sure the directory exists.
44219 test -f "$dirpart/$file" && continue
44220 fdir=`(dirname "$file") 2>/dev/null ||
44221 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44222 X"$file" : 'X\(//\)[^/]' \| \
44223 X"$file" : 'X\(//\)$' \| \
44224 X"$file" : 'X\(/\)' \| \
44225 . : '\(.\)' 2>/dev/null ||
44227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44229 /^X\(\/\/\)$/{ s//\1/; q; }
44230 /^X\(\/\).*/{ s//\1/; q; }
44232 { if $as_mkdir_p; then
44233 mkdir -p $dirpart/$fdir
44235 as_dir=$dirpart/$fdir
44237 while test ! -d "$as_dir"; do
44238 as_dirs="$as_dir $as_dirs"
44239 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44241 X"$as_dir" : 'X\(//\)[^/]' \| \
44242 X"$as_dir" : 'X\(//\)$' \| \
44243 X"$as_dir" : 'X\(/\)' \| \
44244 . : '\(.\)' 2>/dev/null ||
44246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44248 /^X\(\/\/\)$/{ s//\1/; q; }
44249 /^X\(\/\).*/{ s//\1/; q; }
44252 test ! -n "$as_dirs" || mkdir $as_dirs
44253 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44254 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44255 { (exit 1); exit 1; }; }; }
44257 # echo "creating $dirpart/$file"
44258 echo '# dummy' > "$dirpart/$file"
44265 BACKENDSC="servers/slapd/backends.c"
44266 echo "Making $BACKENDSC"
44268 cat > $BACKENDSC << ENDX
44269 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44271 * Copyright 1998-2005 The OpenLDAP Foundation.
44272 * All rights reserved.
44274 * Redistribution and use in source and binary forms, with or without
44275 * modification, are permitted only as authorized by the OpenLDAP
44278 * A copy of this license is available in the file LICENSE in the
44279 * top-level directory of the distribution or, alternatively, at
44280 * <http://www.OpenLDAP.org/license.html>.
44282 /* This file is automatically generated by configure; please do not edit. */
44284 #include "portable.h"
44288 if test "${STATIC_BACKENDS}"; then
44289 for b in config ${STATIC_BACKENDS}; do
44290 bb=`echo "${b}" | sed -e 's/back-//'`
44291 cat >> $BACKENDSC << ENDX
44292 extern BI_init ${bb}_back_initialize;
44296 cat >> $BACKENDSC << ENDX
44298 BackendInfo slap_binfo[] = {
44301 for b in config ${STATIC_BACKENDS}; do
44302 bb=`echo "${b}" | sed -e 's/back-//'`
44303 echo " Add ${bb} ..."
44304 cat >> $BACKENDSC << ENDX
44305 { "${bb}", ${bb}_back_initialize },
44309 cat >> $BACKENDSC << ENDX
44313 /* end of generated file */
44317 echo Please run \"make depend\" to build dependencies
44323 cat >>$CONFIG_STATUS <<\_ACEOF
44325 { (exit 0); exit 0; }
44327 chmod +x $CONFIG_STATUS
44328 ac_clean_files=$ac_clean_files_save
44331 # configure is writing to config.log, and then calls config.status.
44332 # config.status does its own redirection, appending to config.log.
44333 # Unfortunately, on DOS this fails, as config.log is still kept open
44334 # by configure, so config.status won't be able to write to it; its
44335 # output is simply discarded. So we exec the FD to /dev/null,
44336 # effectively closing config.log, so it can be properly (re)opened and
44337 # appended to by config.status. When coming back to configure, we
44338 # need to make the FD available again.
44339 if test "$no_create" != yes; then
44341 ac_config_status_args=
44342 test "$silent" = yes &&
44343 ac_config_status_args="$ac_config_status_args --quiet"
44345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44348 # would make configure fail if this is the last instruction.
44349 $ac_cs_success || { (exit 1); exit 1; }